tor-browser

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

nsIQuotaRequests.idl (1404B)


      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 interface nsIPrincipal;
     10 interface nsIQuotaCallback;
     11 interface nsIQuotaUsageCallback;
     12 interface nsIVariant;
     13 
     14 [scriptable, uuid(9af54222-0407-48fd-a4ab-9457c986fc49)]
     15 interface nsIQuotaRequestBase : nsISupports
     16 {
     17  readonly attribute nsIPrincipal principal;
     18 
     19  [must_use] readonly attribute nsresult resultCode;
     20 
     21  [must_use] readonly attribute ACString resultName;
     22 };
     23 
     24 [scriptable, uuid(166e28e6-cf6d-4927-a6d7-b51bca9d3469)]
     25 interface nsIQuotaUsageRequest : nsIQuotaRequestBase
     26 {
     27  // The result can contain one of these types:
     28  //   array of nsIQuotaUsageResult
     29  //   nsIQuotaOriginUsageResult
     30  [must_use] readonly attribute nsIVariant result;
     31 
     32  attribute nsIQuotaUsageCallback callback;
     33 
     34  [must_use] void
     35  cancel();
     36 };
     37 
     38 [scriptable, uuid(22890e3e-ff25-4372-9684-d901060e2f6c)]
     39 interface nsIQuotaRequest : nsIQuotaRequestBase
     40 {
     41  // The result can contain one of these types:
     42  //   void
     43  //   bool
     44  //   nsIQuotaEstimateResult
     45  //   array of strings
     46  [must_use] readonly attribute nsIVariant result;
     47 
     48  attribute nsIQuotaCallback callback;
     49 };