Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/dom/FetchTypes.h"
8 :
9 :
10 : //-----------------------------------------------------------------------------
11 : // Method definitions for the IPDL type |struct HeadersEntry|
12 : //
13 : namespace mozilla {
14 : namespace dom {
15 0 : MOZ_IMPLICIT HeadersEntry::HeadersEntry() :
16 : name_(),
17 0 : value_()
18 : {
19 0 : Init();
20 0 : }
21 :
22 0 : HeadersEntry::~HeadersEntry()
23 : {
24 0 : }
25 :
26 0 : auto HeadersEntry::operator==(const HeadersEntry& _o) const -> bool
27 : {
28 0 : if ((!((name()) == ((_o).name())))) {
29 0 : return false;
30 : }
31 0 : if ((!((value()) == ((_o).value())))) {
32 0 : return false;
33 : }
34 0 : return true;
35 : }
36 :
37 0 : auto HeadersEntry::operator!=(const HeadersEntry& _o) const -> bool
38 : {
39 0 : return (!(operator==(_o)));
40 : }
41 :
42 0 : auto HeadersEntry::Init() -> void
43 : {
44 0 : }
45 :
46 0 : auto HeadersEntry::Assign(
47 : const nsCString& _name,
48 : const nsCString& _value) -> void
49 : {
50 0 : name_ = _name;
51 0 : value_ = _value;
52 0 : }
53 :
54 : } // namespace dom
55 : } // namespace mozilla
56 :
57 : //-----------------------------------------------------------------------------
58 : // Method definitions for the IPDL type |struct IPCInternalRequest|
59 : //
60 : namespace mozilla {
61 : namespace dom {
62 0 : MOZ_IMPLICIT IPCInternalRequest::IPCInternalRequest() :
63 : method_(),
64 : headersGuard_(),
65 : referrer_(),
66 : referrerPolicy_(),
67 : mode_(),
68 : credentials_(),
69 : contentPolicyType_(),
70 : requestCache_(),
71 0 : requestRedirect_()
72 : {
73 0 : Init();
74 0 : }
75 :
76 0 : IPCInternalRequest::~IPCInternalRequest()
77 : {
78 0 : }
79 :
80 0 : auto IPCInternalRequest::operator==(const IPCInternalRequest& _o) const -> bool
81 : {
82 0 : if ((!((urls()) == ((_o).urls())))) {
83 0 : return false;
84 : }
85 0 : if ((!((method()) == ((_o).method())))) {
86 0 : return false;
87 : }
88 0 : if ((!((headers()) == ((_o).headers())))) {
89 0 : return false;
90 : }
91 0 : if ((!((headersGuard()) == ((_o).headersGuard())))) {
92 0 : return false;
93 : }
94 0 : if ((!((referrer()) == ((_o).referrer())))) {
95 0 : return false;
96 : }
97 0 : if ((!((referrerPolicy()) == ((_o).referrerPolicy())))) {
98 0 : return false;
99 : }
100 0 : if ((!((mode()) == ((_o).mode())))) {
101 0 : return false;
102 : }
103 0 : if ((!((credentials()) == ((_o).credentials())))) {
104 0 : return false;
105 : }
106 0 : if ((!((contentPolicyType()) == ((_o).contentPolicyType())))) {
107 0 : return false;
108 : }
109 0 : if ((!((requestCache()) == ((_o).requestCache())))) {
110 0 : return false;
111 : }
112 0 : if ((!((requestRedirect()) == ((_o).requestRedirect())))) {
113 0 : return false;
114 : }
115 0 : return true;
116 : }
117 :
118 0 : auto IPCInternalRequest::operator!=(const IPCInternalRequest& _o) const -> bool
119 : {
120 0 : return (!(operator==(_o)));
121 : }
122 :
123 0 : auto IPCInternalRequest::Init() -> void
124 : {
125 0 : }
126 :
127 0 : auto IPCInternalRequest::Assign(
128 : const nsTArray<nsCString>& _urls,
129 : const nsCString& _method,
130 : const nsTArray<HeadersEntry>& _headers,
131 : const HeadersGuardEnum& _headersGuard,
132 : const nsString& _referrer,
133 : const ReferrerPolicy& _referrerPolicy,
134 : const RequestMode& _mode,
135 : const RequestCredentials& _credentials,
136 : const uint32_t& _contentPolicyType,
137 : const RequestCache& _requestCache,
138 : const RequestRedirect& _requestRedirect) -> void
139 : {
140 0 : urls_ = _urls;
141 0 : method_ = _method;
142 0 : headers_ = _headers;
143 0 : headersGuard_ = _headersGuard;
144 0 : referrer_ = _referrer;
145 0 : referrerPolicy_ = _referrerPolicy;
146 0 : mode_ = _mode;
147 0 : credentials_ = _credentials;
148 0 : contentPolicyType_ = _contentPolicyType;
149 0 : requestCache_ = _requestCache;
150 0 : requestRedirect_ = _requestRedirect;
151 0 : }
152 :
153 : } // namespace dom
154 : } // namespace mozilla
155 :
156 : //-----------------------------------------------------------------------------
157 : // Method definitions for the IPDL type |struct IPCInternalResponse|
158 : //
159 : namespace mozilla {
160 : namespace dom {
161 0 : MOZ_IMPLICIT IPCInternalResponse::IPCInternalResponse() :
162 : type_(),
163 : status_(),
164 : statusText_(),
165 : headersGuard_(),
166 0 : bodySize_()
167 : {
168 0 : Init();
169 0 : }
170 :
171 0 : IPCInternalResponse::~IPCInternalResponse()
172 : {
173 0 : }
174 :
175 0 : auto IPCInternalResponse::operator==(const IPCInternalResponse& _o) const -> bool
176 : {
177 0 : if ((!((type()) == ((_o).type())))) {
178 0 : return false;
179 : }
180 0 : if ((!((urlList()) == ((_o).urlList())))) {
181 0 : return false;
182 : }
183 0 : if ((!((status()) == ((_o).status())))) {
184 0 : return false;
185 : }
186 0 : if ((!((statusText()) == ((_o).statusText())))) {
187 0 : return false;
188 : }
189 0 : if ((!((headers()) == ((_o).headers())))) {
190 0 : return false;
191 : }
192 0 : if ((!((headersGuard()) == ((_o).headersGuard())))) {
193 0 : return false;
194 : }
195 0 : if ((!((channelInfo()) == ((_o).channelInfo())))) {
196 0 : return false;
197 : }
198 0 : if ((!((principalInfo()) == ((_o).principalInfo())))) {
199 0 : return false;
200 : }
201 0 : if ((!((body()) == ((_o).body())))) {
202 0 : return false;
203 : }
204 0 : if ((!((bodySize()) == ((_o).bodySize())))) {
205 0 : return false;
206 : }
207 0 : return true;
208 : }
209 :
210 0 : auto IPCInternalResponse::operator!=(const IPCInternalResponse& _o) const -> bool
211 : {
212 0 : return (!(operator==(_o)));
213 : }
214 :
215 0 : auto IPCInternalResponse::Init() -> void
216 : {
217 0 : }
218 :
219 0 : auto IPCInternalResponse::Assign(
220 : const ResponseType& _type,
221 : const nsTArray<nsCString>& _urlList,
222 : const uint32_t& _status,
223 : const nsCString& _statusText,
224 : const nsTArray<HeadersEntry>& _headers,
225 : const HeadersGuardEnum& _headersGuard,
226 : const IPCChannelInfo& _channelInfo,
227 : const OptionalPrincipalInfo& _principalInfo,
228 : const OptionalIPCStream& _body,
229 : const int64_t& _bodySize) -> void
230 : {
231 0 : type_ = _type;
232 0 : urlList_ = _urlList;
233 0 : status_ = _status;
234 0 : statusText_ = _statusText;
235 0 : headers_ = _headers;
236 0 : headersGuard_ = _headersGuard;
237 0 : channelInfo_ = _channelInfo;
238 0 : principalInfo_ = _principalInfo;
239 0 : body_ = _body;
240 0 : bodySize_ = _bodySize;
241 0 : }
242 :
243 : } // namespace dom
244 : } // namespace mozilla
|