Bug 1526591 - Remove devtools.inspector.shapesHighlighter.enabled pref. r=rcaliman
[gecko.git] / dom / quota / QuotaResults.h
blob332df3fa8615c180dd559afa9120881b72770b15
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
10 #include "nsIQuotaResults.h"
12 namespace mozilla {
13 namespace dom {
14 namespace quota {
16 class UsageResult : public nsIQuotaUsageResult {
17 nsCString mOrigin;
18 uint64_t mUsage;
19 bool mPersisted;
20 uint64_t mLastAccessed;
22 public:
23 UsageResult(const nsACString& aOrigin, bool aPersisted, uint64_t aUsage,
24 uint64_t aLastAccessed);
26 private:
27 virtual ~UsageResult() {}
29 NS_DECL_ISUPPORTS
30 NS_DECL_NSIQUOTAUSAGERESULT
33 class OriginUsageResult : public nsIQuotaOriginUsageResult {
34 uint64_t mUsage;
35 uint64_t mFileUsage;
36 uint64_t mLimit;
38 public:
39 OriginUsageResult(uint64_t aUsage, uint64_t aFileUsage, uint64_t aLimit);
41 private:
42 virtual ~OriginUsageResult() {}
44 NS_DECL_ISUPPORTS
45 NS_DECL_NSIQUOTAORIGINUSAGERESULT
48 } // namespace quota
49 } // namespace dom
50 } // namespace mozilla
52 #endif // mozilla_dom_quota_QuotaResults_h