Bug 1700051: part 26) Correct typo in comment of `mozInlineSpellWordUtil::BuildSoftTe...
[gecko.git] / dom / fetch / FetchTypes.ipdlh
bloba01c5154e5b9c2e8ce7c3dfb9345aec51c6af400
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 IPCStream;
6 include ChannelInfo;
7 include PBackgroundSharedTypes;
9 include protocol PRemoteLazyInputStream;
11 include "mozilla/dom/FetchIPCTypes.h";
13 using HeadersGuardEnum from "mozilla/dom/HeadersBinding.h";
14 using ReferrerPolicy from "mozilla/dom/ReferrerPolicyBinding.h";
15 using RequestCache from "mozilla/dom/RequestBinding.h";
16 using RequestCredentials from "mozilla/dom/RequestBinding.h";
17 using RequestMode from "mozilla/dom/RequestBinding.h";
18 using RequestRedirect from "mozilla/dom/RequestBinding.h";
19 using ResponseType from "mozilla/dom/ResponseBinding.h";
20 using struct nsID from "nsID.h";
22 namespace mozilla {
23 namespace dom {
25 struct HeadersEntry {
26   nsCString name;
27   nsCString value;
30 struct ParentToParentStream {
31   // Used as a key for RemoteLazyInputStreamStorage
32   nsID uuid;
35 struct ParentToChildStream {
36   PRemoteLazyInputStream actor;
39 struct ChildToParentStream {
40   IPCStream stream;
43 union BodyStreamVariant {
44   ParentToParentStream;
45   ParentToChildStream;
46   ChildToParentStream;
49 struct IPCInternalRequest {
50   nsCString method;
51   nsCString[] urlList;
52   HeadersGuardEnum headersGuard;
53   HeadersEntry[] headers;
54   BodyStreamVariant? body;
55   int64_t bodySize;
56   nsCString preferredAlternativeDataType;
57   uint32_t contentPolicyType;
58   nsString referrer;
59   ReferrerPolicy referrerPolicy;
60   RequestMode requestMode;
61   RequestCredentials requestCredentials;
62   RequestCache cacheMode;
63   RequestRedirect requestRedirect;
64   nsString integrity;
65   nsCString fragment;
66   PrincipalInfo? principalInfo;
69 struct IPCInternalResponse {
70   ResponseType type;
71   nsCString[] urlList;
72   uint16_t status;
73   nsCString statusText;
74   HeadersGuardEnum headersGuard;
75   HeadersEntry[] headers;
76   BodyStreamVariant? body;
77   int64_t bodySize;
78   nsresult errorCode;
79   nsCString alternativeDataType;
80   BodyStreamVariant? alternativeBody;
81   IPCChannelInfo channelInfo;
82   PrincipalInfo? principalInfo;
85 } // namespace ipc
86 } // namespace mozilla