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
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 include protocol PCache;
6 include protocol PCacheStreamControl;
8 include PBackgroundSharedTypes;
10 include "mozilla/dom/cache/IPCUtils.h";
11 include "mozilla/dom/FetchIPCTypes.h";
12 include "mozilla/ipc/TransportSecurityInfoUtils.h";
14 using mozilla::dom::HeadersGuardEnum from "mozilla/dom/HeadersBinding.h";
15 using mozilla::dom::cache::Namespace from "mozilla/dom/cache/Types.h";
16 using mozilla::dom::cache::OpenMode from "mozilla/dom/cache/Types.h";
17 using mozilla::dom::ReferrerPolicy from "mozilla/dom/ReferrerPolicyBinding.h";
18 using mozilla::dom::RequestCredentials from "mozilla/dom/RequestBinding.h";
19 using mozilla::dom::RequestMode from "mozilla/dom/RequestBinding.h";
20 using mozilla::dom::RequestCache from "mozilla/dom/RequestBinding.h";
21 using mozilla::dom::RequestRedirect from "mozilla/dom/RequestBinding.h";
22 using mozilla::dom::ResponseType from "mozilla/dom/ResponseBinding.h";
23 using mozilla::void_t from "mozilla/ipc/IPCCore.h";
24 using nsContentPolicyType from "nsIContentPolicy.h";
25 using struct nsID from "nsID.h";
26 using nsILoadInfo::CrossOriginEmbedderPolicy from "nsILoadInfo.h";
27 [RefCounted] using class nsITransportSecurityInfo from "nsITransportSecurityInfo.h";
33 struct CacheQueryParams
42 struct CacheReadStream
45 nullable PCacheStreamControl control;
57 nsCString urlWithoutQuery;
59 nsCString urlFragment;
60 HeadersEntry[] headers;
61 HeadersGuardEnum headersGuard;
63 ReferrerPolicy referrerPolicy;
65 RequestCredentials credentials;
66 CacheReadStream? body;
68 nsContentPolicyType contentPolicyType;
69 RequestCache requestCache;
70 RequestRedirect requestRedirect;
72 CrossOriginEmbedderPolicy loadingEmbedderPolicy;
73 PrincipalInfo? principalInfo;
82 HeadersEntry[] headers;
83 HeadersGuardEnum headersGuard;
84 CacheReadStream? body;
86 nullable nsITransportSecurityInfo securityInfo;
87 PrincipalInfo? principalInfo;
90 RequestCredentials credentials;
93 struct CacheRequestResponse
96 CacheResponse response;
101 CacheRequest request;
102 CacheQueryParams params;
106 struct CacheMatchAllArgs
108 CacheRequest? maybeRequest;
109 CacheQueryParams params;
113 struct CachePutAllArgs
115 CacheRequestResponse[] requestResponseList;
118 struct CacheDeleteArgs
120 CacheRequest request;
121 CacheQueryParams params;
126 CacheRequest? maybeRequest;
127 CacheQueryParams params;
131 struct StorageMatchArgs
133 CacheRequest request;
134 CacheQueryParams params;
138 struct StorageHasArgs
143 struct StorageOpenArgs
148 struct StorageDeleteArgs
153 struct StorageKeysArgs
171 struct CacheMatchResult
173 CacheResponse? maybeResponse;
176 struct CacheMatchAllResult
178 CacheResponse[] responseList;
181 struct CachePutAllResult
185 struct CacheDeleteResult
190 struct CacheKeysResult
192 CacheRequest[] requestList;
195 struct StorageMatchResult
197 CacheResponse? maybeResponse;
200 struct StorageHasResult
205 struct StorageOpenResult
207 nullable PCache actor;
211 struct StorageDeleteResult
216 struct StorageKeysResult
238 } // namespace mozilla