tor-browser

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

PQuotaRequest.ipdl (1091B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      3  * You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 include protocol PQuota;
      6 
      7 include "mozilla/dom/quota/SerializationHelpers.h";
      8 
      9 using mozilla::dom::quota::FullOriginMetadata
     10   from "mozilla/dom/quota/CommonMetadata.h";
     11 
     12 namespace mozilla {
     13 namespace dom {
     14 namespace quota {
     15 
     16 struct StorageNameResponse
     17 {
     18   nsString name;
     19 };
     20 
     21 struct GetFullOriginMetadataResponse
     22 {
     23   FullOriginMetadata? maybeFullOriginMetadata;
     24 };
     25 
     26 struct PersistedResponse
     27 {
     28   bool persisted;
     29 };
     30 
     31 struct PersistResponse
     32 {
     33 };
     34 
     35 struct EstimateResponse
     36 {
     37   uint64_t usage;
     38   uint64_t limit;
     39 };
     40 
     41 union RequestResponse
     42 {
     43   nsresult;
     44   StorageNameResponse;
     45   GetFullOriginMetadataResponse;
     46   PersistedResponse;
     47   PersistResponse;
     48   EstimateResponse;
     49 };
     50 
     51 [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
     52 protocol PQuotaRequest
     53 {
     54   manager PQuota;
     55 
     56 child:
     57   async __delete__(RequestResponse response);
     58 };
     59 
     60 } // namespace quota
     61 } // namespace dom
     62 } // namespace mozilla