1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=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 #include
"nsISupports.idl"
10 namespace mozilla
::dom
::quota
{
12 } // namespace mozilla::dom::quota
15 [ref] native UsageInfoRef
(mozilla
::dom
::quota
::UsageInfo
);
18 [scriptable
, uuid(4d8def75
-014e-404d
-bf30
-e2f0Bfcf4d89
)]
19 interface nsIQuotaFullOriginMetadataResult
: nsISupports
21 readonly attribute ACString suffix
;
23 readonly attribute ACString group
;
25 readonly attribute ACString origin
;
27 readonly attribute ACString storageOrigin
;
29 readonly attribute ACString persistenceType
;
31 readonly attribute
boolean persisted
;
33 readonly attribute
long long lastAccessTime
;
36 [scriptable
, uuid(d8c9328b
-9aa8
-4f5d
-90e6
-482de4a6d5b8
)]
37 interface nsIQuotaUsageResult
: nsISupports
39 readonly attribute ACString origin
;
41 readonly attribute
boolean persisted
;
43 readonly attribute
unsigned long long usage
;
45 readonly attribute
unsigned long long lastAccessed
;
48 [scriptable
, builtinclass
, uuid(96df03d2
-116a
-493f
-bb0b
-118c212a6b32
)]
49 interface nsIQuotaOriginUsageResult
: nsISupports
51 readonly attribute
unsigned long long databaseUsage
;
53 readonly attribute
unsigned long long fileUsage
;
55 // TODO: Rename to totalUsage.
56 readonly attribute
unsigned long long usage
;
58 readonly attribute
boolean databaseUsageIsExplicit
;
60 readonly attribute
boolean fileUsageIsExplicit
;
62 readonly attribute
boolean totalUsageIsExplicit
;
64 [notxpcom
, nostdcall
] readonly attribute UsageInfoRef usageInfo
;
67 [scriptable
, uuid(9827fc69
-7ea9
-48ef
-b30d
-2e2ae0451ec0
)]
68 interface nsIQuotaEstimateResult
: nsISupports
70 readonly attribute
unsigned long long usage
;
72 readonly attribute
unsigned long long limit
;