Bug 1704628 Part 4: Avoid use of ESC to close context menu in browser_toolbox_content...
[gecko.git] / dom / cache / CacheTypes.ipdlh
blobedfc007eb65f68d38bfbc7cc4d87d49d7c20b0d0
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;
7 include protocol PChildToParentStream;
8 include IPCStream;
9 include ChannelInfo;
10 include PBackgroundSharedTypes;
12 include "mozilla/dom/cache/IPCUtils.h";
13 include "mozilla/dom/FetchIPCTypes.h";
15 using HeadersGuardEnum from "mozilla/dom/HeadersBinding.h";
16 using Namespace from "mozilla/dom/cache/Types.h";
17 using OpenMode from "mozilla/dom/cache/Types.h";
18 using ReferrerPolicy from "mozilla/dom/ReferrerPolicyBinding.h";
19 using RequestCredentials from "mozilla/dom/RequestBinding.h";
20 using RequestMode from "mozilla/dom/RequestBinding.h";
21 using RequestCache from "mozilla/dom/RequestBinding.h";
22 using RequestRedirect from "mozilla/dom/RequestBinding.h";
23 using ResponseType from "mozilla/dom/ResponseBinding.h";
24 using struct mozilla::void_t from "mozilla/ipc/IPCCore.h";
25 using nsContentPolicyType from "nsIContentPolicy.h";
26 using struct nsID from "nsID.h";
27 using nsILoadInfo::CrossOriginEmbedderPolicy from "nsILoadInfo.h";
29 namespace mozilla {
30 namespace dom {
31 namespace cache {
33 struct CacheQueryParams
35   bool ignoreSearch;
36   bool ignoreMethod;
37   bool ignoreVary;
38   bool cacheNameSet;
39   nsString cacheName;
42 struct CacheReadStream
44   nsID id;
45   nullable PCacheStreamControl control;
46   IPCStream? stream;
49 struct HeadersEntry
51   nsCString name;
52   nsCString value;
54 struct CacheRequest
56   nsCString method;
57   nsCString urlWithoutQuery;
58   nsCString urlQuery;
59   nsCString urlFragment;
60   HeadersEntry[] headers;
61   HeadersGuardEnum headersGuard;
62   nsString referrer;
63   ReferrerPolicy referrerPolicy;
64   RequestMode mode;
65   RequestCredentials credentials;
66   CacheReadStream? body;
67   nsContentPolicyType contentPolicyType;
68   RequestCache requestCache;
69   RequestRedirect requestRedirect;
70   nsString integrity;
71   CrossOriginEmbedderPolicy loadingEmbedderPolicy;
72   PrincipalInfo? principalInfo;
75 struct CacheResponse
77   ResponseType type;
78   nsCString[] urlList;
79   uint32_t status;
80   nsCString statusText;
81   HeadersEntry[] headers;
82   HeadersGuardEnum headersGuard;
83   CacheReadStream? body;
84   IPCChannelInfo channelInfo;
85   PrincipalInfo? principalInfo;
86   uint32_t paddingInfo;
87   int64_t paddingSize;
90 struct CacheRequestResponse
92   CacheRequest request;
93   CacheResponse response;
96 struct CacheMatchArgs
98   CacheRequest request;
99   CacheQueryParams params;
100   OpenMode openMode;
103 struct CacheMatchAllArgs
105   CacheRequest? maybeRequest;
106   CacheQueryParams params;
107   OpenMode openMode;
110 struct CachePutAllArgs
112   CacheRequestResponse[] requestResponseList;
115 struct CacheDeleteArgs
117   CacheRequest request;
118   CacheQueryParams params;
121 struct CacheKeysArgs
123   CacheRequest? maybeRequest;
124   CacheQueryParams params;
125   OpenMode openMode;
128 struct StorageMatchArgs
130   CacheRequest request;
131   CacheQueryParams params;
132   OpenMode openMode;
135 struct StorageHasArgs
137   nsString key;
140 struct StorageOpenArgs
142   nsString key;
145 struct StorageDeleteArgs
147   nsString key;
150 struct StorageKeysArgs
154 union CacheOpArgs
156   CacheMatchArgs;
157   CacheMatchAllArgs;
158   CachePutAllArgs;
159   CacheDeleteArgs;
160   CacheKeysArgs;
161   StorageMatchArgs;
162   StorageHasArgs;
163   StorageOpenArgs;
164   StorageDeleteArgs;
165   StorageKeysArgs;
168 struct CacheMatchResult
170   CacheResponse? maybeResponse;
173 struct CacheMatchAllResult
175   CacheResponse[] responseList;
178 struct CachePutAllResult
182 struct CacheDeleteResult
184   bool success;
187 struct CacheKeysResult
189   CacheRequest[] requestList;
192 struct StorageMatchResult
194   CacheResponse? maybeResponse;
197 struct StorageHasResult
199   bool success;
202 struct StorageOpenResult
204   nullable PCache actor;
205   Namespace ns;
208 struct StorageDeleteResult
210   bool success;
213 struct StorageKeysResult
215   nsString[] keyList;
218 union CacheOpResult
220   void_t;
221   CacheMatchResult;
222   CacheMatchAllResult;
223   CachePutAllResult;
224   CacheDeleteResult;
225   CacheKeysResult;
226   StorageMatchResult;
227   StorageHasResult;
228   StorageOpenResult;
229   StorageDeleteResult;
230   StorageKeysResult;
233 } // namespace cache
234 } // namespace dom
235 } // namespace mozilla