Bug 1874684 - Part 6: Limit day length calculations to safe integers. r=mgaudet
[gecko.git] / dom / quota / PQuotaRequest.ipdl
blob59a6cd0c2bbbb89c90504ded6f3928cbd1682630
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/. */
5 include protocol PQuota;
7 include "mozilla/dom/quota/SerializationHelpers.h";
9 using mozilla::dom::quota::FullOriginMetadata
10   from "mozilla/dom/quota/CommonMetadata.h";
12 namespace mozilla {
13 namespace dom {
14 namespace quota {
16 struct StorageNameResponse
18   nsString name;
21 struct InitializePersistentOriginResponse
23   bool created;
26 struct InitializeTemporaryOriginResponse
28   bool created;
31 struct GetFullOriginMetadataResponse
33   FullOriginMetadata? maybeFullOriginMetadata;
36 struct ResetOriginResponse
40 struct PersistedResponse
42   bool persisted;
45 struct PersistResponse
49 struct EstimateResponse
51   uint64_t usage;
52   uint64_t limit;
55 struct ListOriginsResponse
57   nsCString[] origins;
60 union RequestResponse
62   nsresult;
63   StorageNameResponse;
64   InitializePersistentOriginResponse;
65   InitializeTemporaryOriginResponse;
66   GetFullOriginMetadataResponse;
67   ResetOriginResponse;
68   PersistedResponse;
69   PersistResponse;
70   EstimateResponse;
71   ListOriginsResponse;
74 [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
75 protocol PQuotaRequest
77   manager PQuota;
79 child:
80   async __delete__(RequestResponse response);
83 } // namespace quota
84 } // namespace dom
85 } // namespace mozilla