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";
29 struct StorageNameParams
33 struct StorageInitializedParams
37 struct TemporaryStorageInitializedParams
45 struct InitTemporaryStorageParams
49 struct InitializePersistentOriginParams
51 PrincipalInfo principalInfo;
54 struct InitializeTemporaryOriginParams
56 PersistenceType persistenceType;
57 PrincipalInfo principalInfo;
65 struct OriginUsageParams
67 PrincipalInfo principalInfo;
71 union UsageRequestParams
77 struct ClearResetOriginParams
79 PrincipalInfo principalInfo;
80 PersistenceType persistenceType;
81 bool persistenceTypeIsExplicit;
83 bool clientTypeIsExplicit;
86 struct ClearOriginParams
88 ClearResetOriginParams commonParams;
92 struct ResetOriginParams
94 ClearResetOriginParams commonParams;
97 struct ClearDataParams
99 OriginAttributesPattern pattern;
102 struct ClearAllParams
106 struct ResetAllParams
110 struct PersistedParams
112 PrincipalInfo principalInfo;
117 PrincipalInfo principalInfo;
120 struct EstimateParams
122 PrincipalInfo principalInfo;
125 struct ListOriginsParams
132 StorageInitializedParams;
133 TemporaryStorageInitializedParams;
135 InitTemporaryStorageParams;
136 InitializePersistentOriginParams;
137 InitializeTemporaryOriginParams;
153 manages PQuotaRequest;
154 manages PQuotaUsageRequest;
159 async PQuotaUsageRequest(UsageRequestParams params);
161 async PQuotaRequest(RequestParams params);
163 async StartIdleMaintenance();
165 async StopIdleMaintenance();
167 async AbortOperationsForProcess(ContentParentId contentParentId);
172 } // namespace mozilla