1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_dom_quota_QuotaResults_h
8 #define mozilla_dom_quota_QuotaResults_h
11 #include "nsIQuotaResults.h"
12 #include "nsISupports.h"
19 class UsageResult
: public nsIQuotaUsageResult
{
23 uint64_t mLastAccessed
;
26 UsageResult(const nsACString
& aOrigin
, bool aPersisted
, uint64_t aUsage
,
27 uint64_t aLastAccessed
);
30 virtual ~UsageResult() = default;
33 NS_DECL_NSIQUOTAUSAGERESULT
36 class OriginUsageResult
: public nsIQuotaOriginUsageResult
{
41 OriginUsageResult(uint64_t aUsage
, uint64_t aFileUsage
);
44 virtual ~OriginUsageResult() = default;
47 NS_DECL_NSIQUOTAORIGINUSAGERESULT
50 class EstimateResult
: public nsIQuotaEstimateResult
{
55 EstimateResult(uint64_t aUsage
, uint64_t aLimit
);
58 virtual ~EstimateResult() = default;
61 NS_DECL_NSIQUOTAESTIMATERESULT
66 } // namespace mozilla
68 #endif // mozilla_dom_quota_QuotaResults_h