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;
67 nsContentPolicyType contentPolicyType;
68 RequestCache requestCache;
69 RequestRedirect requestRedirect;
71 CrossOriginEmbedderPolicy loadingEmbedderPolicy;
72 PrincipalInfo? principalInfo;
81 HeadersEntry[] headers;
82 HeadersGuardEnum headersGuard;
83 CacheReadStream? body;
84 nullable nsITransportSecurityInfo securityInfo;
85 PrincipalInfo? principalInfo;
88 RequestCredentials credentials;
91 struct CacheRequestResponse
94 CacheResponse response;
100 CacheQueryParams params;
104 struct CacheMatchAllArgs
106 CacheRequest? maybeRequest;
107 CacheQueryParams params;
111 struct CachePutAllArgs
113 CacheRequestResponse[] requestResponseList;
116 struct CacheDeleteArgs
118 CacheRequest request;
119 CacheQueryParams params;
124 CacheRequest? maybeRequest;
125 CacheQueryParams params;
129 struct StorageMatchArgs
131 CacheRequest request;
132 CacheQueryParams params;
136 struct StorageHasArgs
141 struct StorageOpenArgs
146 struct StorageDeleteArgs
151 struct StorageKeysArgs
169 struct CacheMatchResult
171 CacheResponse? maybeResponse;
174 struct CacheMatchAllResult
176 CacheResponse[] responseList;
179 struct CachePutAllResult
183 struct CacheDeleteResult
188 struct CacheKeysResult
190 CacheRequest[] requestList;
193 struct StorageMatchResult
195 CacheResponse? maybeResponse;
198 struct StorageHasResult
203 struct StorageOpenResult
205 nullable PCache actor;
209 struct StorageDeleteResult
214 struct StorageKeysResult
236 } // namespace mozilla