tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsIQuotaResults.idl (2233B)


      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/. */
      6 
      7 #include "nsISupports.idl"
      8 
      9 %{C++
     10 namespace mozilla::dom::quota {
     11 class UsageInfo;
     12 }  // namespace mozilla::dom::quota
     13 %}
     14 
     15 [ref] native UsageInfoRef(mozilla::dom::quota::UsageInfo);
     16 
     17 
     18 [scriptable, uuid(4d8def75-014e-404d-bf30-e2f0Bfcf4d89)]
     19 interface nsIQuotaFullOriginMetadataResult : nsISupports
     20 {
     21  readonly attribute ACString suffix;
     22 
     23  readonly attribute ACString group;
     24 
     25  readonly attribute ACString origin;
     26 
     27  readonly attribute ACString storageOrigin;
     28 
     29  readonly attribute boolean private;
     30 
     31  readonly attribute ACString persistenceType;
     32 
     33  readonly attribute long long lastAccessTime;
     34 
     35  readonly attribute long lastMaintenanceDate;
     36 
     37  readonly attribute boolean accessed;
     38 
     39  readonly attribute boolean persisted;
     40 
     41  readonly attribute ACString clientUsages;
     42 
     43  readonly attribute unsigned long long originUsage;
     44 
     45  readonly attribute unsigned long quotaVersion;
     46 };
     47 
     48 [scriptable, uuid(d8c9328b-9aa8-4f5d-90e6-482de4a6d5b8)]
     49 interface nsIQuotaUsageResult : nsISupports
     50 {
     51  readonly attribute ACString origin;
     52 
     53  readonly attribute boolean persisted;
     54 
     55  readonly attribute unsigned long long usage;
     56 
     57  readonly attribute unsigned long long lastAccessed;
     58 };
     59 
     60 [scriptable, builtinclass, uuid(96df03d2-116a-493f-bb0b-118c212a6b32)]
     61 interface nsIQuotaOriginUsageResult : nsISupports
     62 {
     63  readonly attribute unsigned long long databaseUsage;
     64 
     65  readonly attribute unsigned long long fileUsage;
     66 
     67  // TODO: Rename to totalUsage.
     68  readonly attribute unsigned long long usage;
     69 
     70  readonly attribute boolean databaseUsageIsExplicit;
     71 
     72  readonly attribute boolean fileUsageIsExplicit;
     73 
     74  readonly attribute boolean totalUsageIsExplicit;
     75 
     76  [notxpcom, nostdcall] readonly attribute UsageInfoRef usageInfo;
     77 };
     78 
     79 [scriptable, uuid(9827fc69-7ea9-48ef-b30d-2e2ae0451ec0)]
     80 interface nsIQuotaEstimateResult : nsISupports
     81 {
     82  readonly attribute unsigned long long usage;
     83 
     84  readonly attribute unsigned long long limit;
     85 };