Bug 1698238 return default dictionary from GetUserMediaRequest#getConstraints() if...
[gecko.git] / dom / quota / PQuota.ipdl
blob27e12d2ef4236523d4bebd091b79a152736ad7f4
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 PBackground;
6 include protocol PQuotaRequest;
7 include protocol PQuotaUsageRequest;
9 include PBackgroundSharedTypes;
11 include "mozilla/dom/quota/SerializationHelpers.h";
13 using mozilla::OriginAttributesPattern
14   from "mozilla/OriginAttributes.h";
16 using mozilla::dom::quota::PersistenceType
17   from "mozilla/dom/quota/PersistenceType.h";
19 using mozilla::dom::quota::Client::Type
20   from "mozilla/dom/quota/Client.h";
22 using mozilla::dom::ContentParentId
23   from "mozilla/dom/ipc/IdType.h";
25 namespace mozilla {
26 namespace dom {
27 namespace quota {
29 struct StorageNameParams
33 struct StorageInitializedParams
37 struct TemporaryStorageInitializedParams
41 struct InitParams
45 struct InitTemporaryStorageParams
49 struct InitializePersistentOriginParams
51   PrincipalInfo principalInfo;
54 struct InitializeTemporaryOriginParams
56   PersistenceType persistenceType;
57   PrincipalInfo principalInfo;
60 struct AllUsageParams
62   bool getAll;
65 struct OriginUsageParams
67   PrincipalInfo principalInfo;
68   bool fromMemory;
71 union UsageRequestParams
73   AllUsageParams;
74   OriginUsageParams;
77 struct ClearResetOriginParams
79   PrincipalInfo principalInfo;
80   PersistenceType persistenceType;
81   bool persistenceTypeIsExplicit;
82   Type clientType;
83   bool clientTypeIsExplicit;
86 struct ClearOriginParams
88   ClearResetOriginParams commonParams;
89   bool matchAll;
92 struct ResetOriginParams
94   ClearResetOriginParams commonParams;
97 struct ClearDataParams
99   OriginAttributesPattern pattern;
102 struct ClearAllParams
106 struct ResetAllParams
110 struct PersistedParams
112   PrincipalInfo principalInfo;
115 struct PersistParams
117   PrincipalInfo principalInfo;
120 struct EstimateParams
122   PrincipalInfo principalInfo;
125 struct ListOriginsParams
129 union RequestParams
131   StorageNameParams;
132   StorageInitializedParams;
133   TemporaryStorageInitializedParams;
134   InitParams;
135   InitTemporaryStorageParams;
136   InitializePersistentOriginParams;
137   InitializeTemporaryOriginParams;
138   ClearOriginParams;
139   ResetOriginParams;
140   ClearDataParams;
141   ClearAllParams;
142   ResetAllParams;
143   PersistedParams;
144   PersistParams;
145   EstimateParams;
146   ListOriginsParams;
149 protocol PQuota
151   manager PBackground;
153   manages PQuotaRequest;
154   manages PQuotaUsageRequest;
156 parent:
157   async __delete__();
159   async PQuotaUsageRequest(UsageRequestParams params);
161   async PQuotaRequest(RequestParams params);
163   async StartIdleMaintenance();
165   async StopIdleMaintenance();
167   async AbortOperationsForProcess(ContentParentId contentParentId);
170 } // namespace quota
171 } // namespace dom
172 } // namespace mozilla