Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/net/PHttpChannelParent.h"
8 : #include "mozilla/net/TimingStruct.h"
9 : #include "nsHttpHeaderArray.h"
10 :
11 : #include "mozilla/net/PNeckoParent.h"
12 :
13 : #include "nsIFile.h"
14 : #include "GeckoProfiler.h"
15 :
16 : namespace mozilla {
17 : namespace net {
18 :
19 :
20 2 : auto PHttpChannelParent::Recv__delete__() -> mozilla::ipc::IPCResult
21 : {
22 2 : return IPC_OK();
23 : }
24 :
25 :
26 3 : MOZ_IMPLICIT PHttpChannelParent::PHttpChannelParent() :
27 : mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
28 3 : mState(PHttpChannel::__Dead)
29 : {
30 3 : MOZ_COUNT_CTOR(PHttpChannelParent);
31 3 : }
32 :
33 4 : PHttpChannelParent::~PHttpChannelParent()
34 : {
35 2 : MOZ_COUNT_DTOR(PHttpChannelParent);
36 2 : }
37 :
38 5 : auto PHttpChannelParent::Manager() const -> PNeckoParent*
39 : {
40 5 : return static_cast<PNeckoParent*>(IProtocol::Manager());
41 : }
42 :
43 3 : auto PHttpChannelParent::SendOnStartRequest(
44 : const nsresult& channelStatus,
45 : const nsHttpResponseHead& responseHead,
46 : const bool& useResponseHead,
47 : const nsHttpHeaderArray& requestHeaders,
48 : const bool& isFromCache,
49 : const bool& cacheEntryAvailable,
50 : const int32_t& cacheFetchCount,
51 : const uint32_t& cacheLastFetched,
52 : const uint32_t& cacheExpirationTime,
53 : const nsCString& cachedCharset,
54 : const nsCString& securityInfoSerialization,
55 : const NetAddr& selfAddr,
56 : const NetAddr& peerAddr,
57 : const int16_t& redirectCount,
58 : const uint32_t& cacheKey,
59 : const nsCString& altDataType,
60 : const int64_t& altDataLength) -> bool
61 : {
62 3 : IPC::Message* msg__ = PHttpChannel::Msg_OnStartRequest(Id());
63 :
64 3 : Write(channelStatus, msg__);
65 : // Sentinel = 'channelStatus'
66 3 : (msg__)->WriteSentinel(3148019746);
67 3 : Write(responseHead, msg__);
68 : // Sentinel = 'responseHead'
69 3 : (msg__)->WriteSentinel(3038698187);
70 3 : Write(useResponseHead, msg__);
71 : // Sentinel = 'useResponseHead'
72 3 : (msg__)->WriteSentinel(2994626489);
73 3 : Write(requestHeaders, msg__);
74 : // Sentinel = 'requestHeaders'
75 3 : (msg__)->WriteSentinel(2055989545);
76 3 : Write(isFromCache, msg__);
77 : // Sentinel = 'isFromCache'
78 3 : (msg__)->WriteSentinel(4089953117);
79 3 : Write(cacheEntryAvailable, msg__);
80 : // Sentinel = 'cacheEntryAvailable'
81 3 : (msg__)->WriteSentinel(2363064);
82 3 : Write(cacheFetchCount, msg__);
83 : // Sentinel = 'cacheFetchCount'
84 3 : (msg__)->WriteSentinel(2824496928);
85 3 : Write(cacheLastFetched, msg__);
86 : // Sentinel = 'cacheLastFetched'
87 3 : (msg__)->WriteSentinel(1123401681);
88 3 : Write(cacheExpirationTime, msg__);
89 : // Sentinel = 'cacheExpirationTime'
90 3 : (msg__)->WriteSentinel(439162213);
91 3 : Write(cachedCharset, msg__);
92 : // Sentinel = 'cachedCharset'
93 3 : (msg__)->WriteSentinel(1570160399);
94 3 : Write(securityInfoSerialization, msg__);
95 : // Sentinel = 'securityInfoSerialization'
96 3 : (msg__)->WriteSentinel(985832975);
97 3 : Write(selfAddr, msg__);
98 : // Sentinel = 'selfAddr'
99 3 : (msg__)->WriteSentinel(463888251);
100 3 : Write(peerAddr, msg__);
101 : // Sentinel = 'peerAddr'
102 3 : (msg__)->WriteSentinel(1373265573);
103 3 : Write(redirectCount, msg__);
104 : // Sentinel = 'redirectCount'
105 3 : (msg__)->WriteSentinel(1874411984);
106 3 : Write(cacheKey, msg__);
107 : // Sentinel = 'cacheKey'
108 3 : (msg__)->WriteSentinel(249191363);
109 3 : Write(altDataType, msg__);
110 : // Sentinel = 'altDataType'
111 3 : (msg__)->WriteSentinel(2339988114);
112 3 : Write(altDataLength, msg__);
113 : // Sentinel = 'altDataLength'
114 3 : (msg__)->WriteSentinel(2685793220);
115 :
116 :
117 :
118 :
119 3 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
120 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
121 : }
122 6 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_OnStartRequest", OTHER);
123 3 : PHttpChannel::Transition(PHttpChannel::Msg_OnStartRequest__ID, (&(mState)));
124 :
125 3 : bool sendok__ = (GetIPCChannel())->Send(msg__);
126 6 : return sendok__;
127 : }
128 :
129 0 : auto PHttpChannelParent::SendFailedAsyncOpen(const nsresult& status) -> bool
130 : {
131 0 : IPC::Message* msg__ = PHttpChannel::Msg_FailedAsyncOpen(Id());
132 :
133 0 : Write(status, msg__);
134 : // Sentinel = 'status'
135 0 : (msg__)->WriteSentinel(3714608576);
136 :
137 :
138 :
139 :
140 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
141 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
142 : }
143 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_FailedAsyncOpen", OTHER);
144 0 : PHttpChannel::Transition(PHttpChannel::Msg_FailedAsyncOpen__ID, (&(mState)));
145 :
146 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
147 0 : return sendok__;
148 : }
149 :
150 0 : auto PHttpChannelParent::SendRedirect1Begin(
151 : const uint32_t& registrarId,
152 : const URIParams& newOriginalUri,
153 : const uint32_t& redirectFlags,
154 : const nsHttpResponseHead& responseHead,
155 : const nsCString& securityInfoSerialization,
156 : const uint64_t& channelId,
157 : const NetAddr& oldPeerAddr) -> bool
158 : {
159 0 : IPC::Message* msg__ = PHttpChannel::Msg_Redirect1Begin(Id());
160 :
161 0 : Write(registrarId, msg__);
162 : // Sentinel = 'registrarId'
163 0 : (msg__)->WriteSentinel(3202787989);
164 0 : Write(newOriginalUri, msg__);
165 : // Sentinel = 'newOriginalUri'
166 0 : (msg__)->WriteSentinel(361019297);
167 0 : Write(redirectFlags, msg__);
168 : // Sentinel = 'redirectFlags'
169 0 : (msg__)->WriteSentinel(286770900);
170 0 : Write(responseHead, msg__);
171 : // Sentinel = 'responseHead'
172 0 : (msg__)->WriteSentinel(3038698187);
173 0 : Write(securityInfoSerialization, msg__);
174 : // Sentinel = 'securityInfoSerialization'
175 0 : (msg__)->WriteSentinel(985832975);
176 0 : Write(channelId, msg__);
177 : // Sentinel = 'channelId'
178 0 : (msg__)->WriteSentinel(6854027);
179 0 : Write(oldPeerAddr, msg__);
180 : // Sentinel = 'oldPeerAddr'
181 0 : (msg__)->WriteSentinel(1696652009);
182 :
183 :
184 :
185 :
186 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
187 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
188 : }
189 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_Redirect1Begin", OTHER);
190 0 : PHttpChannel::Transition(PHttpChannel::Msg_Redirect1Begin__ID, (&(mState)));
191 :
192 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
193 0 : return sendok__;
194 : }
195 :
196 0 : auto PHttpChannelParent::SendRedirect3Complete() -> bool
197 : {
198 0 : IPC::Message* msg__ = PHttpChannel::Msg_Redirect3Complete(Id());
199 :
200 :
201 :
202 :
203 :
204 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
205 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
206 : }
207 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_Redirect3Complete", OTHER);
208 0 : PHttpChannel::Transition(PHttpChannel::Msg_Redirect3Complete__ID, (&(mState)));
209 :
210 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
211 0 : return sendok__;
212 : }
213 :
214 0 : auto PHttpChannelParent::SendAssociateApplicationCache(
215 : const nsCString& groupID,
216 : const nsCString& clientID) -> bool
217 : {
218 0 : IPC::Message* msg__ = PHttpChannel::Msg_AssociateApplicationCache(Id());
219 :
220 0 : Write(groupID, msg__);
221 : // Sentinel = 'groupID'
222 0 : (msg__)->WriteSentinel(2673822077);
223 0 : Write(clientID, msg__);
224 : // Sentinel = 'clientID'
225 0 : (msg__)->WriteSentinel(3831418318);
226 :
227 :
228 :
229 :
230 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
231 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
232 : }
233 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_AssociateApplicationCache", OTHER);
234 0 : PHttpChannel::Transition(PHttpChannel::Msg_AssociateApplicationCache__ID, (&(mState)));
235 :
236 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
237 0 : return sendok__;
238 : }
239 :
240 0 : auto PHttpChannelParent::SendReportSecurityMessage(
241 : const nsString& messageTag,
242 : const nsString& messageCategory) -> bool
243 : {
244 0 : IPC::Message* msg__ = PHttpChannel::Msg_ReportSecurityMessage(Id());
245 :
246 0 : Write(messageTag, msg__);
247 : // Sentinel = 'messageTag'
248 0 : (msg__)->WriteSentinel(1576364117);
249 0 : Write(messageCategory, msg__);
250 : // Sentinel = 'messageCategory'
251 0 : (msg__)->WriteSentinel(3375428022);
252 :
253 :
254 :
255 :
256 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
257 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
258 : }
259 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_ReportSecurityMessage", OTHER);
260 0 : PHttpChannel::Transition(PHttpChannel::Msg_ReportSecurityMessage__ID, (&(mState)));
261 :
262 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
263 0 : return sendok__;
264 : }
265 :
266 2 : auto PHttpChannelParent::SendDeleteSelf() -> bool
267 : {
268 2 : IPC::Message* msg__ = PHttpChannel::Msg_DeleteSelf(Id());
269 :
270 :
271 :
272 :
273 :
274 2 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
275 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
276 : }
277 4 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_DeleteSelf", OTHER);
278 2 : PHttpChannel::Transition(PHttpChannel::Msg_DeleteSelf__ID, (&(mState)));
279 :
280 2 : bool sendok__ = (GetIPCChannel())->Send(msg__);
281 4 : return sendok__;
282 : }
283 :
284 0 : auto PHttpChannelParent::SendIssueDeprecationWarning(
285 : const uint32_t& warning,
286 : const bool& asError) -> bool
287 : {
288 0 : IPC::Message* msg__ = PHttpChannel::Msg_IssueDeprecationWarning(Id());
289 :
290 0 : Write(warning, msg__);
291 : // Sentinel = 'warning'
292 0 : (msg__)->WriteSentinel(3208968083);
293 0 : Write(asError, msg__);
294 : // Sentinel = 'asError'
295 0 : (msg__)->WriteSentinel(4187201829);
296 :
297 :
298 :
299 :
300 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
301 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
302 : }
303 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_IssueDeprecationWarning", OTHER);
304 0 : PHttpChannel::Transition(PHttpChannel::Msg_IssueDeprecationWarning__ID, (&(mState)));
305 :
306 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
307 0 : return sendok__;
308 : }
309 :
310 0 : auto PHttpChannelParent::SendFinishInterceptedRedirect() -> bool
311 : {
312 0 : IPC::Message* msg__ = PHttpChannel::Msg_FinishInterceptedRedirect(Id());
313 :
314 :
315 :
316 :
317 :
318 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
319 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
320 : }
321 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_FinishInterceptedRedirect", OTHER);
322 0 : PHttpChannel::Transition(PHttpChannel::Msg_FinishInterceptedRedirect__ID, (&(mState)));
323 :
324 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
325 0 : return sendok__;
326 : }
327 :
328 1 : auto PHttpChannelParent::SendSetPriority(const int16_t& priority) -> bool
329 : {
330 1 : IPC::Message* msg__ = PHttpChannel::Msg_SetPriority(Id());
331 :
332 1 : Write(priority, msg__);
333 : // Sentinel = 'priority'
334 1 : (msg__)->WriteSentinel(558136112);
335 :
336 :
337 :
338 :
339 1 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
340 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
341 : }
342 2 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_SetPriority", OTHER);
343 1 : PHttpChannel::Transition(PHttpChannel::Msg_SetPriority__ID, (&(mState)));
344 :
345 1 : bool sendok__ = (GetIPCChannel())->Send(msg__);
346 2 : return sendok__;
347 : }
348 :
349 0 : auto PHttpChannelParent::RemoveManagee(
350 : int32_t aProtocolId,
351 : ProtocolBase* aListener) -> void
352 : {
353 0 : FatalError("unreached");
354 0 : return;
355 : }
356 :
357 5 : auto PHttpChannelParent::OnMessageReceived(const Message& msg__) -> PHttpChannelParent::Result
358 : {
359 5 : switch ((msg__).type()) {
360 : case PHttpChannel::Msg_SetClassOfService__ID:
361 : {
362 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
363 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
364 : }
365 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_SetClassOfService", OTHER);
366 :
367 0 : PickleIterator iter__(msg__);
368 : uint32_t cos;
369 :
370 0 : if ((!(Read((&(cos)), (&(msg__)), (&(iter__)))))) {
371 0 : FatalError("Error deserializing 'uint32_t'");
372 0 : return MsgValueError;
373 : }
374 : // Sentinel = 'cos'
375 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 403875042)))) {
376 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
377 0 : return MsgValueError;
378 : }
379 0 : (msg__).EndRead(iter__, (msg__).type());
380 0 : PHttpChannel::Transition(PHttpChannel::Msg_SetClassOfService__ID, (&(mState)));
381 0 : if ((!(RecvSetClassOfService(mozilla::Move(cos))))) {
382 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
383 : // Error handled in mozilla::ipc::IPCResult
384 0 : return MsgProcessingError;
385 : }
386 :
387 0 : return MsgProcessed;
388 : }
389 : case PHttpChannel::Msg_SetCacheTokenCachedCharset__ID:
390 : {
391 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
392 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
393 : }
394 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_SetCacheTokenCachedCharset", OTHER);
395 :
396 0 : PickleIterator iter__(msg__);
397 0 : nsCString charset;
398 :
399 0 : if ((!(Read((&(charset)), (&(msg__)), (&(iter__)))))) {
400 0 : FatalError("Error deserializing 'nsCString'");
401 0 : return MsgValueError;
402 : }
403 : // Sentinel = 'charset'
404 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1551550891)))) {
405 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
406 0 : return MsgValueError;
407 : }
408 0 : (msg__).EndRead(iter__, (msg__).type());
409 0 : PHttpChannel::Transition(PHttpChannel::Msg_SetCacheTokenCachedCharset__ID, (&(mState)));
410 0 : if ((!(RecvSetCacheTokenCachedCharset(mozilla::Move(charset))))) {
411 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
412 : // Error handled in mozilla::ipc::IPCResult
413 0 : return MsgProcessingError;
414 : }
415 :
416 0 : return MsgProcessed;
417 : }
418 : case PHttpChannel::Msg_UpdateAssociatedContentSecurity__ID:
419 : {
420 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
421 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
422 : }
423 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_UpdateAssociatedContentSecurity", OTHER);
424 :
425 0 : PickleIterator iter__(msg__);
426 : int32_t broken;
427 : int32_t no;
428 :
429 0 : if ((!(Read((&(broken)), (&(msg__)), (&(iter__)))))) {
430 0 : FatalError("Error deserializing 'int32_t'");
431 0 : return MsgValueError;
432 : }
433 : // Sentinel = 'broken'
434 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2083835601)))) {
435 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
436 0 : return MsgValueError;
437 : }
438 0 : if ((!(Read((&(no)), (&(msg__)), (&(iter__)))))) {
439 0 : FatalError("Error deserializing 'int32_t'");
440 0 : return MsgValueError;
441 : }
442 : // Sentinel = 'no'
443 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 677832615)))) {
444 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
445 0 : return MsgValueError;
446 : }
447 0 : (msg__).EndRead(iter__, (msg__).type());
448 0 : PHttpChannel::Transition(PHttpChannel::Msg_UpdateAssociatedContentSecurity__ID, (&(mState)));
449 0 : if ((!(RecvUpdateAssociatedContentSecurity(mozilla::Move(broken), mozilla::Move(no))))) {
450 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
451 : // Error handled in mozilla::ipc::IPCResult
452 0 : return MsgProcessingError;
453 : }
454 :
455 0 : return MsgProcessed;
456 : }
457 : case PHttpChannel::Msg_Suspend__ID:
458 : {
459 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
460 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
461 : }
462 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_Suspend", OTHER);
463 :
464 0 : PHttpChannel::Transition(PHttpChannel::Msg_Suspend__ID, (&(mState)));
465 0 : if ((!(RecvSuspend()))) {
466 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
467 : // Error handled in mozilla::ipc::IPCResult
468 0 : return MsgProcessingError;
469 : }
470 :
471 0 : return MsgProcessed;
472 : }
473 : case PHttpChannel::Msg_Resume__ID:
474 : {
475 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
476 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
477 : }
478 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_Resume", OTHER);
479 :
480 0 : PHttpChannel::Transition(PHttpChannel::Msg_Resume__ID, (&(mState)));
481 0 : if ((!(RecvResume()))) {
482 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
483 : // Error handled in mozilla::ipc::IPCResult
484 0 : return MsgProcessingError;
485 : }
486 :
487 0 : return MsgProcessed;
488 : }
489 : case PHttpChannel::Msg_Cancel__ID:
490 : {
491 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
492 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
493 : }
494 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_Cancel", OTHER);
495 :
496 0 : PickleIterator iter__(msg__);
497 : nsresult status;
498 :
499 0 : if ((!(Read((&(status)), (&(msg__)), (&(iter__)))))) {
500 0 : FatalError("Error deserializing 'nsresult'");
501 0 : return MsgValueError;
502 : }
503 : // Sentinel = 'status'
504 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3714608576)))) {
505 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
506 0 : return MsgValueError;
507 : }
508 0 : (msg__).EndRead(iter__, (msg__).type());
509 0 : PHttpChannel::Transition(PHttpChannel::Msg_Cancel__ID, (&(mState)));
510 0 : if ((!(RecvCancel(mozilla::Move(status))))) {
511 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
512 : // Error handled in mozilla::ipc::IPCResult
513 0 : return MsgProcessingError;
514 : }
515 :
516 0 : return MsgProcessed;
517 : }
518 : case PHttpChannel::Msg_Redirect2Verify__ID:
519 : {
520 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
521 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
522 : }
523 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_Redirect2Verify", OTHER);
524 :
525 0 : PickleIterator iter__(msg__);
526 : nsresult result;
527 0 : RequestHeaderTuples changedHeaders;
528 : uint32_t loadFlags;
529 : uint32_t referrerPolicy;
530 0 : OptionalURIParams referrerUri;
531 0 : OptionalURIParams apiRedirectTo;
532 0 : OptionalCorsPreflightArgs corsPreflightArgs;
533 : bool forceHSTSPriming;
534 : bool mixedContentWouldBlock;
535 : bool chooseAppcache;
536 :
537 0 : if ((!(Read((&(result)), (&(msg__)), (&(iter__)))))) {
538 0 : FatalError("Error deserializing 'nsresult'");
539 0 : return MsgValueError;
540 : }
541 : // Sentinel = 'result'
542 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3991766165)))) {
543 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
544 0 : return MsgValueError;
545 : }
546 0 : if ((!(Read((&(changedHeaders)), (&(msg__)), (&(iter__)))))) {
547 0 : FatalError("Error deserializing 'RequestHeaderTuples'");
548 0 : return MsgValueError;
549 : }
550 : // Sentinel = 'changedHeaders'
551 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1574138284)))) {
552 0 : mozilla::ipc::SentinelReadError("Error deserializing 'RequestHeaderTuples'");
553 0 : return MsgValueError;
554 : }
555 0 : if ((!(Read((&(loadFlags)), (&(msg__)), (&(iter__)))))) {
556 0 : FatalError("Error deserializing 'uint32_t'");
557 0 : return MsgValueError;
558 : }
559 : // Sentinel = 'loadFlags'
560 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2391120444)))) {
561 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
562 0 : return MsgValueError;
563 : }
564 0 : if ((!(Read((&(referrerPolicy)), (&(msg__)), (&(iter__)))))) {
565 0 : FatalError("Error deserializing 'uint32_t'");
566 0 : return MsgValueError;
567 : }
568 : // Sentinel = 'referrerPolicy'
569 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2269890057)))) {
570 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
571 0 : return MsgValueError;
572 : }
573 0 : if ((!(Read((&(referrerUri)), (&(msg__)), (&(iter__)))))) {
574 0 : FatalError("Error deserializing 'OptionalURIParams'");
575 0 : return MsgValueError;
576 : }
577 : // Sentinel = 'referrerUri'
578 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 622910354)))) {
579 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
580 0 : return MsgValueError;
581 : }
582 0 : if ((!(Read((&(apiRedirectTo)), (&(msg__)), (&(iter__)))))) {
583 0 : FatalError("Error deserializing 'OptionalURIParams'");
584 0 : return MsgValueError;
585 : }
586 : // Sentinel = 'apiRedirectTo'
587 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3162811030)))) {
588 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
589 0 : return MsgValueError;
590 : }
591 0 : if ((!(Read((&(corsPreflightArgs)), (&(msg__)), (&(iter__)))))) {
592 0 : FatalError("Error deserializing 'OptionalCorsPreflightArgs'");
593 0 : return MsgValueError;
594 : }
595 : // Sentinel = 'corsPreflightArgs'
596 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1890063766)))) {
597 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OptionalCorsPreflightArgs'");
598 0 : return MsgValueError;
599 : }
600 0 : if ((!(Read((&(forceHSTSPriming)), (&(msg__)), (&(iter__)))))) {
601 0 : FatalError("Error deserializing 'bool'");
602 0 : return MsgValueError;
603 : }
604 : // Sentinel = 'forceHSTSPriming'
605 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1123937751)))) {
606 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
607 0 : return MsgValueError;
608 : }
609 0 : if ((!(Read((&(mixedContentWouldBlock)), (&(msg__)), (&(iter__)))))) {
610 0 : FatalError("Error deserializing 'bool'");
611 0 : return MsgValueError;
612 : }
613 : // Sentinel = 'mixedContentWouldBlock'
614 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3609505564)))) {
615 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
616 0 : return MsgValueError;
617 : }
618 0 : if ((!(Read((&(chooseAppcache)), (&(msg__)), (&(iter__)))))) {
619 0 : FatalError("Error deserializing 'bool'");
620 0 : return MsgValueError;
621 : }
622 : // Sentinel = 'chooseAppcache'
623 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 868254728)))) {
624 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
625 0 : return MsgValueError;
626 : }
627 0 : (msg__).EndRead(iter__, (msg__).type());
628 0 : PHttpChannel::Transition(PHttpChannel::Msg_Redirect2Verify__ID, (&(mState)));
629 0 : if ((!(RecvRedirect2Verify(mozilla::Move(result), mozilla::Move(changedHeaders), mozilla::Move(loadFlags), mozilla::Move(referrerPolicy), mozilla::Move(referrerUri), mozilla::Move(apiRedirectTo), mozilla::Move(corsPreflightArgs), mozilla::Move(forceHSTSPriming), mozilla::Move(mixedContentWouldBlock), mozilla::Move(chooseAppcache))))) {
630 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
631 : // Error handled in mozilla::ipc::IPCResult
632 0 : return MsgProcessingError;
633 : }
634 :
635 0 : return MsgProcessed;
636 : }
637 : case PHttpChannel::Msg_DocumentChannelCleanup__ID:
638 : {
639 1 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
640 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
641 : }
642 2 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_DocumentChannelCleanup", OTHER);
643 :
644 1 : PHttpChannel::Transition(PHttpChannel::Msg_DocumentChannelCleanup__ID, (&(mState)));
645 1 : if ((!(RecvDocumentChannelCleanup()))) {
646 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
647 : // Error handled in mozilla::ipc::IPCResult
648 0 : return MsgProcessingError;
649 : }
650 :
651 1 : return MsgProcessed;
652 : }
653 : case PHttpChannel::Msg_MarkOfflineCacheEntryAsForeign__ID:
654 : {
655 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
656 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
657 : }
658 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_MarkOfflineCacheEntryAsForeign", OTHER);
659 :
660 0 : PHttpChannel::Transition(PHttpChannel::Msg_MarkOfflineCacheEntryAsForeign__ID, (&(mState)));
661 0 : if ((!(RecvMarkOfflineCacheEntryAsForeign()))) {
662 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
663 : // Error handled in mozilla::ipc::IPCResult
664 0 : return MsgProcessingError;
665 : }
666 :
667 0 : return MsgProcessed;
668 : }
669 : case PHttpChannel::Msg_DivertOnDataAvailable__ID:
670 : {
671 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
672 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
673 : }
674 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_DivertOnDataAvailable", OTHER);
675 :
676 0 : PickleIterator iter__(msg__);
677 0 : nsCString data;
678 : uint64_t offset;
679 : uint32_t count;
680 :
681 0 : if ((!(Read((&(data)), (&(msg__)), (&(iter__)))))) {
682 0 : FatalError("Error deserializing 'nsCString'");
683 0 : return MsgValueError;
684 : }
685 : // Sentinel = 'data'
686 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 843352540)))) {
687 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
688 0 : return MsgValueError;
689 : }
690 0 : if ((!(Read((&(offset)), (&(msg__)), (&(iter__)))))) {
691 0 : FatalError("Error deserializing 'uint64_t'");
692 0 : return MsgValueError;
693 : }
694 : // Sentinel = 'offset'
695 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1369947863)))) {
696 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
697 0 : return MsgValueError;
698 : }
699 0 : if ((!(Read((&(count)), (&(msg__)), (&(iter__)))))) {
700 0 : FatalError("Error deserializing 'uint32_t'");
701 0 : return MsgValueError;
702 : }
703 : // Sentinel = 'count'
704 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2126421856)))) {
705 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
706 0 : return MsgValueError;
707 : }
708 0 : (msg__).EndRead(iter__, (msg__).type());
709 0 : PHttpChannel::Transition(PHttpChannel::Msg_DivertOnDataAvailable__ID, (&(mState)));
710 0 : if ((!(RecvDivertOnDataAvailable(mozilla::Move(data), mozilla::Move(offset), mozilla::Move(count))))) {
711 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
712 : // Error handled in mozilla::ipc::IPCResult
713 0 : return MsgProcessingError;
714 : }
715 :
716 0 : return MsgProcessed;
717 : }
718 : case PHttpChannel::Msg_DivertOnStopRequest__ID:
719 : {
720 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
721 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
722 : }
723 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_DivertOnStopRequest", OTHER);
724 :
725 0 : PickleIterator iter__(msg__);
726 : nsresult statusCode;
727 :
728 0 : if ((!(Read((&(statusCode)), (&(msg__)), (&(iter__)))))) {
729 0 : FatalError("Error deserializing 'nsresult'");
730 0 : return MsgValueError;
731 : }
732 : // Sentinel = 'statusCode'
733 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2709278591)))) {
734 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
735 0 : return MsgValueError;
736 : }
737 0 : (msg__).EndRead(iter__, (msg__).type());
738 0 : PHttpChannel::Transition(PHttpChannel::Msg_DivertOnStopRequest__ID, (&(mState)));
739 0 : if ((!(RecvDivertOnStopRequest(mozilla::Move(statusCode))))) {
740 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
741 : // Error handled in mozilla::ipc::IPCResult
742 0 : return MsgProcessingError;
743 : }
744 :
745 0 : return MsgProcessed;
746 : }
747 : case PHttpChannel::Msg_DivertComplete__ID:
748 : {
749 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
750 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
751 : }
752 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_DivertComplete", OTHER);
753 :
754 0 : PHttpChannel::Transition(PHttpChannel::Msg_DivertComplete__ID, (&(mState)));
755 0 : if ((!(RecvDivertComplete()))) {
756 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
757 : // Error handled in mozilla::ipc::IPCResult
758 0 : return MsgProcessingError;
759 : }
760 :
761 0 : return MsgProcessed;
762 : }
763 : case PHttpChannel::Msg_RemoveCorsPreflightCacheEntry__ID:
764 : {
765 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
766 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
767 : }
768 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_RemoveCorsPreflightCacheEntry", OTHER);
769 :
770 0 : PickleIterator iter__(msg__);
771 0 : URIParams uri;
772 0 : PrincipalInfo requestingPrincipal;
773 :
774 0 : if ((!(Read((&(uri)), (&(msg__)), (&(iter__)))))) {
775 0 : FatalError("Error deserializing 'URIParams'");
776 0 : return MsgValueError;
777 : }
778 : // Sentinel = 'uri'
779 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
780 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
781 0 : return MsgValueError;
782 : }
783 0 : if ((!(Read((&(requestingPrincipal)), (&(msg__)), (&(iter__)))))) {
784 0 : FatalError("Error deserializing 'PrincipalInfo'");
785 0 : return MsgValueError;
786 : }
787 : // Sentinel = 'requestingPrincipal'
788 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1124847050)))) {
789 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo'");
790 0 : return MsgValueError;
791 : }
792 0 : (msg__).EndRead(iter__, (msg__).type());
793 0 : PHttpChannel::Transition(PHttpChannel::Msg_RemoveCorsPreflightCacheEntry__ID, (&(mState)));
794 0 : if ((!(RecvRemoveCorsPreflightCacheEntry(mozilla::Move(uri), mozilla::Move(requestingPrincipal))))) {
795 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
796 : // Error handled in mozilla::ipc::IPCResult
797 0 : return MsgProcessingError;
798 : }
799 :
800 0 : return MsgProcessed;
801 : }
802 : case PHttpChannel::Msg_DeletingChannel__ID:
803 : {
804 2 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
805 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
806 : }
807 4 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_DeletingChannel", OTHER);
808 :
809 2 : PHttpChannel::Transition(PHttpChannel::Msg_DeletingChannel__ID, (&(mState)));
810 2 : if ((!(RecvDeletingChannel()))) {
811 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
812 : // Error handled in mozilla::ipc::IPCResult
813 0 : return MsgProcessingError;
814 : }
815 :
816 2 : return MsgProcessed;
817 : }
818 : case PHttpChannel::Msg___delete____ID:
819 : {
820 2 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
821 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
822 : }
823 4 : AUTO_PROFILER_LABEL("PHttpChannel::Msg___delete__", OTHER);
824 :
825 2 : PickleIterator iter__(msg__);
826 : PHttpChannelParent* actor;
827 :
828 2 : if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
829 0 : FatalError("Error deserializing 'PHttpChannelParent'");
830 0 : return MsgValueError;
831 : }
832 : // Sentinel = 'actor'
833 2 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
834 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PHttpChannelParent'");
835 0 : return MsgValueError;
836 : }
837 2 : (msg__).EndRead(iter__, (msg__).type());
838 2 : PHttpChannel::Transition(PHttpChannel::Msg___delete____ID, (&(mState)));
839 2 : if ((!(Recv__delete__()))) {
840 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
841 : // Error handled in mozilla::ipc::IPCResult
842 0 : return MsgProcessingError;
843 : }
844 :
845 :
846 2 : IProtocol* mgr = (actor)->Manager();
847 2 : (actor)->DestroySubtree(Deletion);
848 2 : (actor)->DeallocSubtree();
849 2 : (mgr)->RemoveManagee(PHttpChannelMsgStart, actor);
850 :
851 2 : return MsgProcessed;
852 : }
853 : case PHttpChannel::Msg_FinishInterceptedRedirect__ID:
854 : {
855 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
856 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
857 : }
858 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_FinishInterceptedRedirect", OTHER);
859 :
860 0 : PHttpChannel::Transition(PHttpChannel::Msg_FinishInterceptedRedirect__ID, (&(mState)));
861 0 : if ((!(RecvFinishInterceptedRedirect()))) {
862 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
863 : // Error handled in mozilla::ipc::IPCResult
864 0 : return MsgProcessingError;
865 : }
866 :
867 0 : return MsgProcessed;
868 : }
869 : case PHttpChannel::Msg_SetPriority__ID:
870 : {
871 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
872 0 : mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
873 : }
874 0 : AUTO_PROFILER_LABEL("PHttpChannel::Msg_SetPriority", OTHER);
875 :
876 0 : PickleIterator iter__(msg__);
877 : int16_t priority;
878 :
879 0 : if ((!(Read((&(priority)), (&(msg__)), (&(iter__)))))) {
880 0 : FatalError("Error deserializing 'int16_t'");
881 0 : return MsgValueError;
882 : }
883 : // Sentinel = 'priority'
884 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 558136112)))) {
885 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int16_t'");
886 0 : return MsgValueError;
887 : }
888 0 : (msg__).EndRead(iter__, (msg__).type());
889 0 : PHttpChannel::Transition(PHttpChannel::Msg_SetPriority__ID, (&(mState)));
890 0 : if ((!(RecvSetPriority(mozilla::Move(priority))))) {
891 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
892 : // Error handled in mozilla::ipc::IPCResult
893 0 : return MsgProcessingError;
894 : }
895 :
896 0 : return MsgProcessed;
897 : }
898 : default:
899 : {
900 0 : return MsgNotKnown;
901 : }
902 : }
903 : }
904 :
905 0 : auto PHttpChannelParent::OnMessageReceived(
906 : const Message& msg__,
907 : Message*& reply__) -> PHttpChannelParent::Result
908 : {
909 0 : return MsgNotKnown;
910 : }
911 :
912 0 : auto PHttpChannelParent::OnCallReceived(
913 : const Message& msg__,
914 : Message*& reply__) -> PHttpChannelParent::Result
915 : {
916 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
917 : return MsgNotKnown;
918 : }
919 :
920 2 : auto PHttpChannelParent::GetProtocolTypeId() -> int32_t
921 : {
922 2 : return PHttpChannelMsgStart;
923 : }
924 :
925 0 : auto PHttpChannelParent::ProtocolName() const -> const char*
926 : {
927 0 : return "PHttpChannelParent";
928 : }
929 :
930 2 : auto PHttpChannelParent::DestroySubtree(ActorDestroyReason why) -> void
931 : {
932 : // Unregister from our manager.
933 2 : Unregister(Id());
934 :
935 : // Reject owning pending promises.
936 2 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
937 :
938 : // Finally, destroy "us".
939 2 : ActorDestroy(why);
940 2 : }
941 :
942 2 : auto PHttpChannelParent::DeallocSubtree() -> void
943 : {
944 2 : }
945 :
946 0 : auto PHttpChannelParent::Write(
947 : const SystemPrincipalInfo& v__,
948 : Message* msg__) -> void
949 : {
950 0 : }
951 :
952 0 : auto PHttpChannelParent::Read(
953 : SystemPrincipalInfo* v__,
954 : const Message* msg__,
955 : PickleIterator* iter__) -> bool
956 : {
957 0 : return true;
958 : }
959 :
960 0 : auto PHttpChannelParent::Write(
961 : const nsTArray<PrincipalInfo>& v__,
962 : Message* msg__) -> void
963 : {
964 0 : uint32_t length = (v__).Length();
965 0 : Write(length, msg__);
966 : // Sentinel = ('length', 'PrincipalInfo[]')
967 0 : (msg__)->WriteSentinel(1032188126);
968 :
969 0 : for (auto& elem : v__) {
970 0 : Write(elem, msg__);
971 : // Sentinel = 'PrincipalInfo[]'
972 0 : (msg__)->WriteSentinel(413380193);
973 : }
974 0 : }
975 :
976 0 : auto PHttpChannelParent::Read(
977 : nsTArray<PrincipalInfo>* v__,
978 : const Message* msg__,
979 : PickleIterator* iter__) -> bool
980 : {
981 0 : nsTArray<PrincipalInfo> fa;
982 : uint32_t length;
983 0 : if ((!(Read((&(length)), msg__, iter__)))) {
984 0 : mozilla::ipc::ArrayLengthReadError("PrincipalInfo[]");
985 0 : return false;
986 : }
987 : // Sentinel = ('length', 'PrincipalInfo[]')
988 0 : if ((!((msg__)->ReadSentinel(iter__, 1032188126)))) {
989 0 : mozilla::ipc::SentinelReadError("PrincipalInfo[]");
990 0 : return false;
991 : }
992 :
993 0 : PrincipalInfo* elems = (fa).AppendElements(length);
994 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
995 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
996 0 : FatalError("Error deserializing 'PrincipalInfo[i]'");
997 0 : return false;
998 : }
999 : // Sentinel = 'PrincipalInfo[]'
1000 0 : if ((!((msg__)->ReadSentinel(iter__, 413380193)))) {
1001 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo[i]'");
1002 0 : return false;
1003 : }
1004 : }
1005 0 : (v__)->SwapElements(fa);
1006 0 : return true;
1007 : }
1008 :
1009 0 : auto PHttpChannelParent::Write(
1010 : const OptionalURIParams& v__,
1011 : Message* msg__) -> void
1012 : {
1013 : typedef OptionalURIParams type__;
1014 0 : Write(int((v__).type()), msg__);
1015 : // Sentinel = 'OptionalURIParams'
1016 0 : (msg__)->WriteSentinel(1977079525);
1017 :
1018 0 : switch ((v__).type()) {
1019 : case type__::Tvoid_t:
1020 : {
1021 0 : Write((v__).get_void_t(), msg__);
1022 : // Sentinel = 'Tvoid_t'
1023 0 : (msg__)->WriteSentinel(3041273328);
1024 0 : return;
1025 : }
1026 : case type__::TURIParams:
1027 : {
1028 0 : Write((v__).get_URIParams(), msg__);
1029 : // Sentinel = 'TURIParams'
1030 0 : (msg__)->WriteSentinel(1132652062);
1031 0 : return;
1032 : }
1033 : default:
1034 : {
1035 0 : FatalError("unknown union type");
1036 0 : return;
1037 : }
1038 : }
1039 : }
1040 :
1041 0 : auto PHttpChannelParent::Read(
1042 : OptionalURIParams* v__,
1043 : const Message* msg__,
1044 : PickleIterator* iter__) -> bool
1045 : {
1046 : typedef OptionalURIParams type__;
1047 : int type;
1048 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1049 0 : mozilla::ipc::UnionTypeReadError("OptionalURIParams");
1050 0 : return false;
1051 : }
1052 : // Sentinel = 'OptionalURIParams'
1053 0 : if ((!((msg__)->ReadSentinel(iter__, 1977079525)))) {
1054 0 : mozilla::ipc::SentinelReadError("OptionalURIParams");
1055 0 : return false;
1056 : }
1057 :
1058 0 : switch (type) {
1059 : case type__::Tvoid_t:
1060 : {
1061 : void_t tmp = void_t();
1062 0 : (*(v__)) = tmp;
1063 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
1064 0 : FatalError("Error deserializing Union type");
1065 0 : return false;
1066 : }
1067 : // Sentinel = 'Tvoid_t'
1068 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
1069 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1070 0 : return false;
1071 : }
1072 0 : return true;
1073 : }
1074 : case type__::TURIParams:
1075 : {
1076 0 : URIParams tmp = URIParams();
1077 0 : (*(v__)) = tmp;
1078 0 : if ((!(Read((&((v__)->get_URIParams())), msg__, iter__)))) {
1079 0 : FatalError("Error deserializing Union type");
1080 0 : return false;
1081 : }
1082 : // Sentinel = 'TURIParams'
1083 0 : if ((!((msg__)->ReadSentinel(iter__, 1132652062)))) {
1084 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1085 0 : return false;
1086 : }
1087 0 : return true;
1088 : }
1089 : default:
1090 : {
1091 0 : FatalError("unknown union type");
1092 0 : return false;
1093 : }
1094 : }
1095 : }
1096 :
1097 0 : auto PHttpChannelParent::Write(
1098 : const ContentPrincipalInfoOriginNoSuffix& v__,
1099 : Message* msg__) -> void
1100 : {
1101 : typedef ContentPrincipalInfoOriginNoSuffix type__;
1102 0 : Write(int((v__).type()), msg__);
1103 : // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
1104 0 : (msg__)->WriteSentinel(2442066713);
1105 :
1106 0 : switch ((v__).type()) {
1107 : case type__::TnsCString:
1108 : {
1109 0 : Write((v__).get_nsCString(), msg__);
1110 : // Sentinel = 'TnsCString'
1111 0 : (msg__)->WriteSentinel(2427411293);
1112 0 : return;
1113 : }
1114 : case type__::Tvoid_t:
1115 : {
1116 0 : Write((v__).get_void_t(), msg__);
1117 : // Sentinel = 'Tvoid_t'
1118 0 : (msg__)->WriteSentinel(3041273328);
1119 0 : return;
1120 : }
1121 : default:
1122 : {
1123 0 : FatalError("unknown union type");
1124 0 : return;
1125 : }
1126 : }
1127 : }
1128 :
1129 0 : auto PHttpChannelParent::Read(
1130 : ContentPrincipalInfoOriginNoSuffix* v__,
1131 : const Message* msg__,
1132 : PickleIterator* iter__) -> bool
1133 : {
1134 : typedef ContentPrincipalInfoOriginNoSuffix type__;
1135 : int type;
1136 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1137 0 : mozilla::ipc::UnionTypeReadError("ContentPrincipalInfoOriginNoSuffix");
1138 0 : return false;
1139 : }
1140 : // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
1141 0 : if ((!((msg__)->ReadSentinel(iter__, 2442066713)))) {
1142 0 : mozilla::ipc::SentinelReadError("ContentPrincipalInfoOriginNoSuffix");
1143 0 : return false;
1144 : }
1145 :
1146 0 : switch (type) {
1147 : case type__::TnsCString:
1148 : {
1149 0 : nsCString tmp = nsCString();
1150 0 : (*(v__)) = tmp;
1151 0 : if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
1152 0 : FatalError("Error deserializing Union type");
1153 0 : return false;
1154 : }
1155 : // Sentinel = 'TnsCString'
1156 0 : if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
1157 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1158 0 : return false;
1159 : }
1160 0 : return true;
1161 : }
1162 : case type__::Tvoid_t:
1163 : {
1164 : void_t tmp = void_t();
1165 0 : (*(v__)) = tmp;
1166 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
1167 0 : FatalError("Error deserializing Union type");
1168 0 : return false;
1169 : }
1170 : // Sentinel = 'Tvoid_t'
1171 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
1172 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1173 0 : return false;
1174 : }
1175 0 : return true;
1176 : }
1177 : default:
1178 : {
1179 0 : FatalError("unknown union type");
1180 0 : return false;
1181 : }
1182 : }
1183 : }
1184 :
1185 0 : auto PHttpChannelParent::Write(
1186 : const StandardURLParams& v__,
1187 : Message* msg__) -> void
1188 : {
1189 0 : Write((v__).urlType(), msg__);
1190 : // Sentinel = 'urlType'
1191 0 : (msg__)->WriteSentinel(4149428228);
1192 0 : Write((v__).port(), msg__);
1193 : // Sentinel = 'port'
1194 0 : (msg__)->WriteSentinel(3633211549);
1195 0 : Write((v__).defaultPort(), msg__);
1196 : // Sentinel = 'defaultPort'
1197 0 : (msg__)->WriteSentinel(599318897);
1198 0 : Write((v__).spec(), msg__);
1199 : // Sentinel = 'spec'
1200 0 : (msg__)->WriteSentinel(1630740541);
1201 0 : Write((v__).scheme(), msg__);
1202 : // Sentinel = 'scheme'
1203 0 : (msg__)->WriteSentinel(3619238715);
1204 0 : Write((v__).authority(), msg__);
1205 : // Sentinel = 'authority'
1206 0 : (msg__)->WriteSentinel(1669684878);
1207 0 : Write((v__).username(), msg__);
1208 : // Sentinel = 'username'
1209 0 : (msg__)->WriteSentinel(689225024);
1210 0 : Write((v__).password(), msg__);
1211 : // Sentinel = 'password'
1212 0 : (msg__)->WriteSentinel(2527534683);
1213 0 : Write((v__).host(), msg__);
1214 : // Sentinel = 'host'
1215 0 : (msg__)->WriteSentinel(4070301394);
1216 0 : Write((v__).path(), msg__);
1217 : // Sentinel = 'path'
1218 0 : (msg__)->WriteSentinel(913629401);
1219 0 : Write((v__).filePath(), msg__);
1220 : // Sentinel = 'filePath'
1221 0 : (msg__)->WriteSentinel(4122896455);
1222 0 : Write((v__).directory(), msg__);
1223 : // Sentinel = 'directory'
1224 0 : (msg__)->WriteSentinel(1201172472);
1225 0 : Write((v__).baseName(), msg__);
1226 : // Sentinel = 'baseName'
1227 0 : (msg__)->WriteSentinel(2448877418);
1228 0 : Write((v__).extension(), msg__);
1229 : // Sentinel = 'extension'
1230 0 : (msg__)->WriteSentinel(3211853542);
1231 0 : Write((v__).query(), msg__);
1232 : // Sentinel = 'query'
1233 0 : (msg__)->WriteSentinel(4249802777);
1234 0 : Write((v__).ref(), msg__);
1235 : // Sentinel = 'ref'
1236 0 : (msg__)->WriteSentinel(2626476732);
1237 0 : Write((v__).originCharset(), msg__);
1238 : // Sentinel = 'originCharset'
1239 0 : (msg__)->WriteSentinel(1320725495);
1240 0 : Write((v__).isMutable(), msg__);
1241 : // Sentinel = 'isMutable'
1242 0 : (msg__)->WriteSentinel(3552466783);
1243 0 : Write((v__).supportsFileURL(), msg__);
1244 : // Sentinel = 'supportsFileURL'
1245 0 : (msg__)->WriteSentinel(1871785710);
1246 0 : }
1247 :
1248 0 : auto PHttpChannelParent::Read(
1249 : StandardURLParams* v__,
1250 : const Message* msg__,
1251 : PickleIterator* iter__) -> bool
1252 : {
1253 0 : if ((!(Read((&((v__)->urlType())), msg__, iter__)))) {
1254 0 : FatalError("Error deserializing 'urlType' (uint32_t) member of 'StandardURLParams'");
1255 0 : return false;
1256 : }
1257 : // Sentinel = 'urlType'
1258 0 : if ((!((msg__)->ReadSentinel(iter__, 4149428228)))) {
1259 0 : mozilla::ipc::SentinelReadError("Error deserializing 'urlType' (uint32_t) member of 'StandardURLParams'");
1260 0 : return false;
1261 : }
1262 0 : if ((!(Read((&((v__)->port())), msg__, iter__)))) {
1263 0 : FatalError("Error deserializing 'port' (int32_t) member of 'StandardURLParams'");
1264 0 : return false;
1265 : }
1266 : // Sentinel = 'port'
1267 0 : if ((!((msg__)->ReadSentinel(iter__, 3633211549)))) {
1268 0 : mozilla::ipc::SentinelReadError("Error deserializing 'port' (int32_t) member of 'StandardURLParams'");
1269 0 : return false;
1270 : }
1271 0 : if ((!(Read((&((v__)->defaultPort())), msg__, iter__)))) {
1272 0 : FatalError("Error deserializing 'defaultPort' (int32_t) member of 'StandardURLParams'");
1273 0 : return false;
1274 : }
1275 : // Sentinel = 'defaultPort'
1276 0 : if ((!((msg__)->ReadSentinel(iter__, 599318897)))) {
1277 0 : mozilla::ipc::SentinelReadError("Error deserializing 'defaultPort' (int32_t) member of 'StandardURLParams'");
1278 0 : return false;
1279 : }
1280 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
1281 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'StandardURLParams'");
1282 0 : return false;
1283 : }
1284 : // Sentinel = 'spec'
1285 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
1286 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'StandardURLParams'");
1287 0 : return false;
1288 : }
1289 0 : if ((!(Read((&((v__)->scheme())), msg__, iter__)))) {
1290 0 : FatalError("Error deserializing 'scheme' (StandardURLSegment) member of 'StandardURLParams'");
1291 0 : return false;
1292 : }
1293 : // Sentinel = 'scheme'
1294 0 : if ((!((msg__)->ReadSentinel(iter__, 3619238715)))) {
1295 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scheme' (StandardURLSegment) member of 'StandardURLParams'");
1296 0 : return false;
1297 : }
1298 0 : if ((!(Read((&((v__)->authority())), msg__, iter__)))) {
1299 0 : FatalError("Error deserializing 'authority' (StandardURLSegment) member of 'StandardURLParams'");
1300 0 : return false;
1301 : }
1302 : // Sentinel = 'authority'
1303 0 : if ((!((msg__)->ReadSentinel(iter__, 1669684878)))) {
1304 0 : mozilla::ipc::SentinelReadError("Error deserializing 'authority' (StandardURLSegment) member of 'StandardURLParams'");
1305 0 : return false;
1306 : }
1307 0 : if ((!(Read((&((v__)->username())), msg__, iter__)))) {
1308 0 : FatalError("Error deserializing 'username' (StandardURLSegment) member of 'StandardURLParams'");
1309 0 : return false;
1310 : }
1311 : // Sentinel = 'username'
1312 0 : if ((!((msg__)->ReadSentinel(iter__, 689225024)))) {
1313 0 : mozilla::ipc::SentinelReadError("Error deserializing 'username' (StandardURLSegment) member of 'StandardURLParams'");
1314 0 : return false;
1315 : }
1316 0 : if ((!(Read((&((v__)->password())), msg__, iter__)))) {
1317 0 : FatalError("Error deserializing 'password' (StandardURLSegment) member of 'StandardURLParams'");
1318 0 : return false;
1319 : }
1320 : // Sentinel = 'password'
1321 0 : if ((!((msg__)->ReadSentinel(iter__, 2527534683)))) {
1322 0 : mozilla::ipc::SentinelReadError("Error deserializing 'password' (StandardURLSegment) member of 'StandardURLParams'");
1323 0 : return false;
1324 : }
1325 0 : if ((!(Read((&((v__)->host())), msg__, iter__)))) {
1326 0 : FatalError("Error deserializing 'host' (StandardURLSegment) member of 'StandardURLParams'");
1327 0 : return false;
1328 : }
1329 : // Sentinel = 'host'
1330 0 : if ((!((msg__)->ReadSentinel(iter__, 4070301394)))) {
1331 0 : mozilla::ipc::SentinelReadError("Error deserializing 'host' (StandardURLSegment) member of 'StandardURLParams'");
1332 0 : return false;
1333 : }
1334 0 : if ((!(Read((&((v__)->path())), msg__, iter__)))) {
1335 0 : FatalError("Error deserializing 'path' (StandardURLSegment) member of 'StandardURLParams'");
1336 0 : return false;
1337 : }
1338 : // Sentinel = 'path'
1339 0 : if ((!((msg__)->ReadSentinel(iter__, 913629401)))) {
1340 0 : mozilla::ipc::SentinelReadError("Error deserializing 'path' (StandardURLSegment) member of 'StandardURLParams'");
1341 0 : return false;
1342 : }
1343 0 : if ((!(Read((&((v__)->filePath())), msg__, iter__)))) {
1344 0 : FatalError("Error deserializing 'filePath' (StandardURLSegment) member of 'StandardURLParams'");
1345 0 : return false;
1346 : }
1347 : // Sentinel = 'filePath'
1348 0 : if ((!((msg__)->ReadSentinel(iter__, 4122896455)))) {
1349 0 : mozilla::ipc::SentinelReadError("Error deserializing 'filePath' (StandardURLSegment) member of 'StandardURLParams'");
1350 0 : return false;
1351 : }
1352 0 : if ((!(Read((&((v__)->directory())), msg__, iter__)))) {
1353 0 : FatalError("Error deserializing 'directory' (StandardURLSegment) member of 'StandardURLParams'");
1354 0 : return false;
1355 : }
1356 : // Sentinel = 'directory'
1357 0 : if ((!((msg__)->ReadSentinel(iter__, 1201172472)))) {
1358 0 : mozilla::ipc::SentinelReadError("Error deserializing 'directory' (StandardURLSegment) member of 'StandardURLParams'");
1359 0 : return false;
1360 : }
1361 0 : if ((!(Read((&((v__)->baseName())), msg__, iter__)))) {
1362 0 : FatalError("Error deserializing 'baseName' (StandardURLSegment) member of 'StandardURLParams'");
1363 0 : return false;
1364 : }
1365 : // Sentinel = 'baseName'
1366 0 : if ((!((msg__)->ReadSentinel(iter__, 2448877418)))) {
1367 0 : mozilla::ipc::SentinelReadError("Error deserializing 'baseName' (StandardURLSegment) member of 'StandardURLParams'");
1368 0 : return false;
1369 : }
1370 0 : if ((!(Read((&((v__)->extension())), msg__, iter__)))) {
1371 0 : FatalError("Error deserializing 'extension' (StandardURLSegment) member of 'StandardURLParams'");
1372 0 : return false;
1373 : }
1374 : // Sentinel = 'extension'
1375 0 : if ((!((msg__)->ReadSentinel(iter__, 3211853542)))) {
1376 0 : mozilla::ipc::SentinelReadError("Error deserializing 'extension' (StandardURLSegment) member of 'StandardURLParams'");
1377 0 : return false;
1378 : }
1379 0 : if ((!(Read((&((v__)->query())), msg__, iter__)))) {
1380 0 : FatalError("Error deserializing 'query' (StandardURLSegment) member of 'StandardURLParams'");
1381 0 : return false;
1382 : }
1383 : // Sentinel = 'query'
1384 0 : if ((!((msg__)->ReadSentinel(iter__, 4249802777)))) {
1385 0 : mozilla::ipc::SentinelReadError("Error deserializing 'query' (StandardURLSegment) member of 'StandardURLParams'");
1386 0 : return false;
1387 : }
1388 0 : if ((!(Read((&((v__)->ref())), msg__, iter__)))) {
1389 0 : FatalError("Error deserializing 'ref' (StandardURLSegment) member of 'StandardURLParams'");
1390 0 : return false;
1391 : }
1392 : // Sentinel = 'ref'
1393 0 : if ((!((msg__)->ReadSentinel(iter__, 2626476732)))) {
1394 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ref' (StandardURLSegment) member of 'StandardURLParams'");
1395 0 : return false;
1396 : }
1397 0 : if ((!(Read((&((v__)->originCharset())), msg__, iter__)))) {
1398 0 : FatalError("Error deserializing 'originCharset' (nsCString) member of 'StandardURLParams'");
1399 0 : return false;
1400 : }
1401 : // Sentinel = 'originCharset'
1402 0 : if ((!((msg__)->ReadSentinel(iter__, 1320725495)))) {
1403 0 : mozilla::ipc::SentinelReadError("Error deserializing 'originCharset' (nsCString) member of 'StandardURLParams'");
1404 0 : return false;
1405 : }
1406 0 : if ((!(Read((&((v__)->isMutable())), msg__, iter__)))) {
1407 0 : FatalError("Error deserializing 'isMutable' (bool) member of 'StandardURLParams'");
1408 0 : return false;
1409 : }
1410 : // Sentinel = 'isMutable'
1411 0 : if ((!((msg__)->ReadSentinel(iter__, 3552466783)))) {
1412 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isMutable' (bool) member of 'StandardURLParams'");
1413 0 : return false;
1414 : }
1415 0 : if ((!(Read((&((v__)->supportsFileURL())), msg__, iter__)))) {
1416 0 : FatalError("Error deserializing 'supportsFileURL' (bool) member of 'StandardURLParams'");
1417 0 : return false;
1418 : }
1419 : // Sentinel = 'supportsFileURL'
1420 0 : if ((!((msg__)->ReadSentinel(iter__, 1871785710)))) {
1421 0 : mozilla::ipc::SentinelReadError("Error deserializing 'supportsFileURL' (bool) member of 'StandardURLParams'");
1422 0 : return false;
1423 : }
1424 0 : return true;
1425 : }
1426 :
1427 0 : auto PHttpChannelParent::Write(
1428 : const URIParams& v__,
1429 : Message* msg__) -> void
1430 : {
1431 : typedef URIParams type__;
1432 0 : Write(int((v__).type()), msg__);
1433 : // Sentinel = 'URIParams'
1434 0 : (msg__)->WriteSentinel(1039516337);
1435 :
1436 0 : switch ((v__).type()) {
1437 : case type__::TSimpleURIParams:
1438 : {
1439 0 : Write((v__).get_SimpleURIParams(), msg__);
1440 : // Sentinel = 'TSimpleURIParams'
1441 0 : (msg__)->WriteSentinel(4028607586);
1442 0 : return;
1443 : }
1444 : case type__::TStandardURLParams:
1445 : {
1446 0 : Write((v__).get_StandardURLParams(), msg__);
1447 : // Sentinel = 'TStandardURLParams'
1448 0 : (msg__)->WriteSentinel(248174578);
1449 0 : return;
1450 : }
1451 : case type__::TJARURIParams:
1452 : {
1453 0 : Write((v__).get_JARURIParams(), msg__);
1454 : // Sentinel = 'TJARURIParams'
1455 0 : (msg__)->WriteSentinel(3404434792);
1456 0 : return;
1457 : }
1458 : case type__::TIconURIParams:
1459 : {
1460 0 : Write((v__).get_IconURIParams(), msg__);
1461 : // Sentinel = 'TIconURIParams'
1462 0 : (msg__)->WriteSentinel(1824279023);
1463 0 : return;
1464 : }
1465 : case type__::TNullPrincipalURIParams:
1466 : {
1467 0 : Write((v__).get_NullPrincipalURIParams(), msg__);
1468 : // Sentinel = 'TNullPrincipalURIParams'
1469 0 : (msg__)->WriteSentinel(216801182);
1470 0 : return;
1471 : }
1472 : case type__::TJSURIParams:
1473 : {
1474 0 : Write((v__).get_JSURIParams(), msg__);
1475 : // Sentinel = 'TJSURIParams'
1476 0 : (msg__)->WriteSentinel(32222119);
1477 0 : return;
1478 : }
1479 : case type__::TSimpleNestedURIParams:
1480 : {
1481 0 : Write((v__).get_SimpleNestedURIParams(), msg__);
1482 : // Sentinel = 'TSimpleNestedURIParams'
1483 0 : (msg__)->WriteSentinel(3192238307);
1484 0 : return;
1485 : }
1486 : case type__::THostObjectURIParams:
1487 : {
1488 0 : Write((v__).get_HostObjectURIParams(), msg__);
1489 : // Sentinel = 'THostObjectURIParams'
1490 0 : (msg__)->WriteSentinel(1307971301);
1491 0 : return;
1492 : }
1493 : default:
1494 : {
1495 0 : FatalError("unknown union type");
1496 0 : return;
1497 : }
1498 : }
1499 : }
1500 :
1501 0 : auto PHttpChannelParent::Read(
1502 : URIParams* v__,
1503 : const Message* msg__,
1504 : PickleIterator* iter__) -> bool
1505 : {
1506 : typedef URIParams type__;
1507 : int type;
1508 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1509 0 : mozilla::ipc::UnionTypeReadError("URIParams");
1510 0 : return false;
1511 : }
1512 : // Sentinel = 'URIParams'
1513 0 : if ((!((msg__)->ReadSentinel(iter__, 1039516337)))) {
1514 0 : mozilla::ipc::SentinelReadError("URIParams");
1515 0 : return false;
1516 : }
1517 :
1518 0 : switch (type) {
1519 : case type__::TSimpleURIParams:
1520 : {
1521 0 : SimpleURIParams tmp = SimpleURIParams();
1522 0 : (*(v__)) = tmp;
1523 0 : if ((!(Read((&((v__)->get_SimpleURIParams())), msg__, iter__)))) {
1524 0 : FatalError("Error deserializing Union type");
1525 0 : return false;
1526 : }
1527 : // Sentinel = 'TSimpleURIParams'
1528 0 : if ((!((msg__)->ReadSentinel(iter__, 4028607586)))) {
1529 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1530 0 : return false;
1531 : }
1532 0 : return true;
1533 : }
1534 : case type__::TStandardURLParams:
1535 : {
1536 0 : StandardURLParams tmp = StandardURLParams();
1537 0 : (*(v__)) = tmp;
1538 0 : if ((!(Read((&((v__)->get_StandardURLParams())), msg__, iter__)))) {
1539 0 : FatalError("Error deserializing Union type");
1540 0 : return false;
1541 : }
1542 : // Sentinel = 'TStandardURLParams'
1543 0 : if ((!((msg__)->ReadSentinel(iter__, 248174578)))) {
1544 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1545 0 : return false;
1546 : }
1547 0 : return true;
1548 : }
1549 : case type__::TJARURIParams:
1550 : {
1551 0 : JARURIParams tmp = JARURIParams();
1552 0 : (*(v__)) = tmp;
1553 0 : if ((!(Read((&((v__)->get_JARURIParams())), msg__, iter__)))) {
1554 0 : FatalError("Error deserializing Union type");
1555 0 : return false;
1556 : }
1557 : // Sentinel = 'TJARURIParams'
1558 0 : if ((!((msg__)->ReadSentinel(iter__, 3404434792)))) {
1559 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1560 0 : return false;
1561 : }
1562 0 : return true;
1563 : }
1564 : case type__::TIconURIParams:
1565 : {
1566 0 : IconURIParams tmp = IconURIParams();
1567 0 : (*(v__)) = tmp;
1568 0 : if ((!(Read((&((v__)->get_IconURIParams())), msg__, iter__)))) {
1569 0 : FatalError("Error deserializing Union type");
1570 0 : return false;
1571 : }
1572 : // Sentinel = 'TIconURIParams'
1573 0 : if ((!((msg__)->ReadSentinel(iter__, 1824279023)))) {
1574 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1575 0 : return false;
1576 : }
1577 0 : return true;
1578 : }
1579 : case type__::TNullPrincipalURIParams:
1580 : {
1581 0 : NullPrincipalURIParams tmp = NullPrincipalURIParams();
1582 0 : (*(v__)) = tmp;
1583 0 : if ((!(Read((&((v__)->get_NullPrincipalURIParams())), msg__, iter__)))) {
1584 0 : FatalError("Error deserializing Union type");
1585 0 : return false;
1586 : }
1587 : // Sentinel = 'TNullPrincipalURIParams'
1588 0 : if ((!((msg__)->ReadSentinel(iter__, 216801182)))) {
1589 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1590 0 : return false;
1591 : }
1592 0 : return true;
1593 : }
1594 : case type__::TJSURIParams:
1595 : {
1596 0 : JSURIParams tmp = JSURIParams();
1597 0 : (*(v__)) = tmp;
1598 0 : if ((!(Read((&((v__)->get_JSURIParams())), msg__, iter__)))) {
1599 0 : FatalError("Error deserializing Union type");
1600 0 : return false;
1601 : }
1602 : // Sentinel = 'TJSURIParams'
1603 0 : if ((!((msg__)->ReadSentinel(iter__, 32222119)))) {
1604 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1605 0 : return false;
1606 : }
1607 0 : return true;
1608 : }
1609 : case type__::TSimpleNestedURIParams:
1610 : {
1611 0 : SimpleNestedURIParams tmp = SimpleNestedURIParams();
1612 0 : (*(v__)) = tmp;
1613 0 : if ((!(Read((&((v__)->get_SimpleNestedURIParams())), msg__, iter__)))) {
1614 0 : FatalError("Error deserializing Union type");
1615 0 : return false;
1616 : }
1617 : // Sentinel = 'TSimpleNestedURIParams'
1618 0 : if ((!((msg__)->ReadSentinel(iter__, 3192238307)))) {
1619 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1620 0 : return false;
1621 : }
1622 0 : return true;
1623 : }
1624 : case type__::THostObjectURIParams:
1625 : {
1626 0 : HostObjectURIParams tmp = HostObjectURIParams();
1627 0 : (*(v__)) = tmp;
1628 0 : if ((!(Read((&((v__)->get_HostObjectURIParams())), msg__, iter__)))) {
1629 0 : FatalError("Error deserializing Union type");
1630 0 : return false;
1631 : }
1632 : // Sentinel = 'THostObjectURIParams'
1633 0 : if ((!((msg__)->ReadSentinel(iter__, 1307971301)))) {
1634 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1635 0 : return false;
1636 : }
1637 0 : return true;
1638 : }
1639 : default:
1640 : {
1641 0 : FatalError("unknown union type");
1642 0 : return false;
1643 : }
1644 : }
1645 : }
1646 :
1647 0 : auto PHttpChannelParent::Write(
1648 : const CorsPreflightArgs& v__,
1649 : Message* msg__) -> void
1650 : {
1651 0 : Write((v__).unsafeHeaders(), msg__);
1652 : // Sentinel = 'unsafeHeaders'
1653 0 : (msg__)->WriteSentinel(259870561);
1654 0 : }
1655 :
1656 0 : auto PHttpChannelParent::Read(
1657 : CorsPreflightArgs* v__,
1658 : const Message* msg__,
1659 : PickleIterator* iter__) -> bool
1660 : {
1661 0 : if ((!(Read((&((v__)->unsafeHeaders())), msg__, iter__)))) {
1662 0 : FatalError("Error deserializing 'unsafeHeaders' (nsCString[]) member of 'CorsPreflightArgs'");
1663 0 : return false;
1664 : }
1665 : // Sentinel = 'unsafeHeaders'
1666 0 : if ((!((msg__)->ReadSentinel(iter__, 259870561)))) {
1667 0 : mozilla::ipc::SentinelReadError("Error deserializing 'unsafeHeaders' (nsCString[]) member of 'CorsPreflightArgs'");
1668 0 : return false;
1669 : }
1670 0 : return true;
1671 : }
1672 :
1673 0 : auto PHttpChannelParent::Write(
1674 : const SimpleNestedURIParams& v__,
1675 : Message* msg__) -> void
1676 : {
1677 0 : Write((v__).simpleParams(), msg__);
1678 : // Sentinel = 'simpleParams'
1679 0 : (msg__)->WriteSentinel(3404291700);
1680 0 : Write((v__).innerURI(), msg__);
1681 : // Sentinel = 'innerURI'
1682 0 : (msg__)->WriteSentinel(2573245334);
1683 0 : }
1684 :
1685 0 : auto PHttpChannelParent::Read(
1686 : SimpleNestedURIParams* v__,
1687 : const Message* msg__,
1688 : PickleIterator* iter__) -> bool
1689 : {
1690 0 : if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
1691 0 : FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'SimpleNestedURIParams'");
1692 0 : return false;
1693 : }
1694 : // Sentinel = 'simpleParams'
1695 0 : if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
1696 0 : mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'SimpleNestedURIParams'");
1697 0 : return false;
1698 : }
1699 0 : if ((!(Read((&((v__)->innerURI())), msg__, iter__)))) {
1700 0 : FatalError("Error deserializing 'innerURI' (URIParams) member of 'SimpleNestedURIParams'");
1701 0 : return false;
1702 : }
1703 : // Sentinel = 'innerURI'
1704 0 : if ((!((msg__)->ReadSentinel(iter__, 2573245334)))) {
1705 0 : mozilla::ipc::SentinelReadError("Error deserializing 'innerURI' (URIParams) member of 'SimpleNestedURIParams'");
1706 0 : return false;
1707 : }
1708 0 : return true;
1709 : }
1710 :
1711 0 : auto PHttpChannelParent::Write(
1712 : const OptionalPrincipalInfo& v__,
1713 : Message* msg__) -> void
1714 : {
1715 : typedef OptionalPrincipalInfo type__;
1716 0 : Write(int((v__).type()), msg__);
1717 : // Sentinel = 'OptionalPrincipalInfo'
1718 0 : (msg__)->WriteSentinel(3041452007);
1719 :
1720 0 : switch ((v__).type()) {
1721 : case type__::Tvoid_t:
1722 : {
1723 0 : Write((v__).get_void_t(), msg__);
1724 : // Sentinel = 'Tvoid_t'
1725 0 : (msg__)->WriteSentinel(3041273328);
1726 0 : return;
1727 : }
1728 : case type__::TPrincipalInfo:
1729 : {
1730 0 : Write((v__).get_PrincipalInfo(), msg__);
1731 : // Sentinel = 'TPrincipalInfo'
1732 0 : (msg__)->WriteSentinel(1396743580);
1733 0 : return;
1734 : }
1735 : default:
1736 : {
1737 0 : FatalError("unknown union type");
1738 0 : return;
1739 : }
1740 : }
1741 : }
1742 :
1743 0 : auto PHttpChannelParent::Read(
1744 : OptionalPrincipalInfo* v__,
1745 : const Message* msg__,
1746 : PickleIterator* iter__) -> bool
1747 : {
1748 : typedef OptionalPrincipalInfo type__;
1749 : int type;
1750 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1751 0 : mozilla::ipc::UnionTypeReadError("OptionalPrincipalInfo");
1752 0 : return false;
1753 : }
1754 : // Sentinel = 'OptionalPrincipalInfo'
1755 0 : if ((!((msg__)->ReadSentinel(iter__, 3041452007)))) {
1756 0 : mozilla::ipc::SentinelReadError("OptionalPrincipalInfo");
1757 0 : return false;
1758 : }
1759 :
1760 0 : switch (type) {
1761 : case type__::Tvoid_t:
1762 : {
1763 : void_t tmp = void_t();
1764 0 : (*(v__)) = tmp;
1765 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
1766 0 : FatalError("Error deserializing Union type");
1767 0 : return false;
1768 : }
1769 : // Sentinel = 'Tvoid_t'
1770 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
1771 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1772 0 : return false;
1773 : }
1774 0 : return true;
1775 : }
1776 : case type__::TPrincipalInfo:
1777 : {
1778 0 : PrincipalInfo tmp = PrincipalInfo();
1779 0 : (*(v__)) = tmp;
1780 0 : if ((!(Read((&((v__)->get_PrincipalInfo())), msg__, iter__)))) {
1781 0 : FatalError("Error deserializing Union type");
1782 0 : return false;
1783 : }
1784 : // Sentinel = 'TPrincipalInfo'
1785 0 : if ((!((msg__)->ReadSentinel(iter__, 1396743580)))) {
1786 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1787 0 : return false;
1788 : }
1789 0 : return true;
1790 : }
1791 : default:
1792 : {
1793 0 : FatalError("unknown union type");
1794 0 : return false;
1795 : }
1796 : }
1797 : }
1798 :
1799 0 : auto PHttpChannelParent::Write(
1800 : const ExpandedPrincipalInfo& v__,
1801 : Message* msg__) -> void
1802 : {
1803 0 : Write((v__).attrs(), msg__);
1804 : // Sentinel = 'attrs'
1805 0 : (msg__)->WriteSentinel(3014987797);
1806 0 : Write((v__).whitelist(), msg__);
1807 : // Sentinel = 'whitelist'
1808 0 : (msg__)->WriteSentinel(3731637258);
1809 0 : }
1810 :
1811 0 : auto PHttpChannelParent::Read(
1812 : ExpandedPrincipalInfo* v__,
1813 : const Message* msg__,
1814 : PickleIterator* iter__) -> bool
1815 : {
1816 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
1817 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
1818 0 : return false;
1819 : }
1820 : // Sentinel = 'attrs'
1821 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
1822 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
1823 0 : return false;
1824 : }
1825 0 : if ((!(Read((&((v__)->whitelist())), msg__, iter__)))) {
1826 0 : FatalError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
1827 0 : return false;
1828 : }
1829 : // Sentinel = 'whitelist'
1830 0 : if ((!((msg__)->ReadSentinel(iter__, 3731637258)))) {
1831 0 : mozilla::ipc::SentinelReadError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
1832 0 : return false;
1833 : }
1834 0 : return true;
1835 : }
1836 :
1837 0 : auto PHttpChannelParent::Write(
1838 : const HostObjectURIParams& v__,
1839 : Message* msg__) -> void
1840 : {
1841 0 : Write((v__).simpleParams(), msg__);
1842 : // Sentinel = 'simpleParams'
1843 0 : (msg__)->WriteSentinel(3404291700);
1844 0 : Write((v__).principal(), msg__);
1845 : // Sentinel = 'principal'
1846 0 : (msg__)->WriteSentinel(732240927);
1847 0 : }
1848 :
1849 0 : auto PHttpChannelParent::Read(
1850 : HostObjectURIParams* v__,
1851 : const Message* msg__,
1852 : PickleIterator* iter__) -> bool
1853 : {
1854 0 : if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
1855 0 : FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'HostObjectURIParams'");
1856 0 : return false;
1857 : }
1858 : // Sentinel = 'simpleParams'
1859 0 : if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
1860 0 : mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'HostObjectURIParams'");
1861 0 : return false;
1862 : }
1863 0 : if ((!(Read((&((v__)->principal())), msg__, iter__)))) {
1864 0 : FatalError("Error deserializing 'principal' (OptionalPrincipalInfo) member of 'HostObjectURIParams'");
1865 0 : return false;
1866 : }
1867 : // Sentinel = 'principal'
1868 0 : if ((!((msg__)->ReadSentinel(iter__, 732240927)))) {
1869 0 : mozilla::ipc::SentinelReadError("Error deserializing 'principal' (OptionalPrincipalInfo) member of 'HostObjectURIParams'");
1870 0 : return false;
1871 : }
1872 0 : return true;
1873 : }
1874 :
1875 0 : auto PHttpChannelParent::Write(
1876 : const PHttpChannelParent* v__,
1877 : Message* msg__,
1878 : bool nullable__) -> void
1879 : {
1880 : int32_t id;
1881 0 : if ((!(v__))) {
1882 0 : if ((!(nullable__))) {
1883 0 : FatalError("NULL actor value passed to non-nullable param");
1884 : }
1885 0 : id = 0;
1886 : }
1887 : else {
1888 0 : id = (v__)->Id();
1889 0 : if ((1) == (id)) {
1890 0 : FatalError("actor has been |delete|d");
1891 : }
1892 : }
1893 :
1894 0 : Write(id, msg__);
1895 0 : }
1896 :
1897 2 : auto PHttpChannelParent::Read(
1898 : PHttpChannelParent** v__,
1899 : const Message* msg__,
1900 : PickleIterator* iter__,
1901 : bool nullable__) -> bool
1902 : {
1903 4 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PHttpChannel", PHttpChannelMsgStart);
1904 2 : if ((actor).isNothing()) {
1905 0 : return false;
1906 : }
1907 :
1908 2 : (*(v__)) = static_cast<PHttpChannelParent*>((actor).value());
1909 2 : return true;
1910 : }
1911 :
1912 0 : auto PHttpChannelParent::Write(
1913 : const PrincipalInfo& v__,
1914 : Message* msg__) -> void
1915 : {
1916 : typedef PrincipalInfo type__;
1917 0 : Write(int((v__).type()), msg__);
1918 : // Sentinel = 'PrincipalInfo'
1919 0 : (msg__)->WriteSentinel(4194518819);
1920 :
1921 0 : switch ((v__).type()) {
1922 : case type__::TContentPrincipalInfo:
1923 : {
1924 0 : Write((v__).get_ContentPrincipalInfo(), msg__);
1925 : // Sentinel = 'TContentPrincipalInfo'
1926 0 : (msg__)->WriteSentinel(3677342258);
1927 0 : return;
1928 : }
1929 : case type__::TSystemPrincipalInfo:
1930 : {
1931 0 : Write((v__).get_SystemPrincipalInfo(), msg__);
1932 : // Sentinel = 'TSystemPrincipalInfo'
1933 0 : (msg__)->WriteSentinel(3590603679);
1934 0 : return;
1935 : }
1936 : case type__::TNullPrincipalInfo:
1937 : {
1938 0 : Write((v__).get_NullPrincipalInfo(), msg__);
1939 : // Sentinel = 'TNullPrincipalInfo'
1940 0 : (msg__)->WriteSentinel(3477774965);
1941 0 : return;
1942 : }
1943 : case type__::TExpandedPrincipalInfo:
1944 : {
1945 0 : Write((v__).get_ExpandedPrincipalInfo(), msg__);
1946 : // Sentinel = 'TExpandedPrincipalInfo'
1947 0 : (msg__)->WriteSentinel(589324917);
1948 0 : return;
1949 : }
1950 : default:
1951 : {
1952 0 : FatalError("unknown union type");
1953 0 : return;
1954 : }
1955 : }
1956 : }
1957 :
1958 0 : auto PHttpChannelParent::Read(
1959 : PrincipalInfo* v__,
1960 : const Message* msg__,
1961 : PickleIterator* iter__) -> bool
1962 : {
1963 : typedef PrincipalInfo type__;
1964 : int type;
1965 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1966 0 : mozilla::ipc::UnionTypeReadError("PrincipalInfo");
1967 0 : return false;
1968 : }
1969 : // Sentinel = 'PrincipalInfo'
1970 0 : if ((!((msg__)->ReadSentinel(iter__, 4194518819)))) {
1971 0 : mozilla::ipc::SentinelReadError("PrincipalInfo");
1972 0 : return false;
1973 : }
1974 :
1975 0 : switch (type) {
1976 : case type__::TContentPrincipalInfo:
1977 : {
1978 0 : ContentPrincipalInfo tmp = ContentPrincipalInfo();
1979 0 : (*(v__)) = tmp;
1980 0 : if ((!(Read((&((v__)->get_ContentPrincipalInfo())), msg__, iter__)))) {
1981 0 : FatalError("Error deserializing Union type");
1982 0 : return false;
1983 : }
1984 : // Sentinel = 'TContentPrincipalInfo'
1985 0 : if ((!((msg__)->ReadSentinel(iter__, 3677342258)))) {
1986 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1987 0 : return false;
1988 : }
1989 0 : return true;
1990 : }
1991 : case type__::TSystemPrincipalInfo:
1992 : {
1993 0 : SystemPrincipalInfo tmp = SystemPrincipalInfo();
1994 0 : (*(v__)) = tmp;
1995 0 : if ((!(Read((&((v__)->get_SystemPrincipalInfo())), msg__, iter__)))) {
1996 0 : FatalError("Error deserializing Union type");
1997 0 : return false;
1998 : }
1999 : // Sentinel = 'TSystemPrincipalInfo'
2000 0 : if ((!((msg__)->ReadSentinel(iter__, 3590603679)))) {
2001 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2002 0 : return false;
2003 : }
2004 0 : return true;
2005 : }
2006 : case type__::TNullPrincipalInfo:
2007 : {
2008 0 : NullPrincipalInfo tmp = NullPrincipalInfo();
2009 0 : (*(v__)) = tmp;
2010 0 : if ((!(Read((&((v__)->get_NullPrincipalInfo())), msg__, iter__)))) {
2011 0 : FatalError("Error deserializing Union type");
2012 0 : return false;
2013 : }
2014 : // Sentinel = 'TNullPrincipalInfo'
2015 0 : if ((!((msg__)->ReadSentinel(iter__, 3477774965)))) {
2016 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2017 0 : return false;
2018 : }
2019 0 : return true;
2020 : }
2021 : case type__::TExpandedPrincipalInfo:
2022 : {
2023 0 : ExpandedPrincipalInfo tmp = ExpandedPrincipalInfo();
2024 0 : (*(v__)) = tmp;
2025 0 : if ((!(Read((&((v__)->get_ExpandedPrincipalInfo())), msg__, iter__)))) {
2026 0 : FatalError("Error deserializing Union type");
2027 0 : return false;
2028 : }
2029 : // Sentinel = 'TExpandedPrincipalInfo'
2030 0 : if ((!((msg__)->ReadSentinel(iter__, 589324917)))) {
2031 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2032 0 : return false;
2033 : }
2034 0 : return true;
2035 : }
2036 : default:
2037 : {
2038 0 : FatalError("unknown union type");
2039 0 : return false;
2040 : }
2041 : }
2042 : }
2043 :
2044 0 : auto PHttpChannelParent::Write(
2045 : const JARURIParams& v__,
2046 : Message* msg__) -> void
2047 : {
2048 0 : Write((v__).jarFile(), msg__);
2049 : // Sentinel = 'jarFile'
2050 0 : (msg__)->WriteSentinel(1572070078);
2051 0 : Write((v__).jarEntry(), msg__);
2052 : // Sentinel = 'jarEntry'
2053 0 : (msg__)->WriteSentinel(941016033);
2054 0 : Write((v__).charset(), msg__);
2055 : // Sentinel = 'charset'
2056 0 : (msg__)->WriteSentinel(1551550891);
2057 0 : }
2058 :
2059 0 : auto PHttpChannelParent::Read(
2060 : JARURIParams* v__,
2061 : const Message* msg__,
2062 : PickleIterator* iter__) -> bool
2063 : {
2064 0 : if ((!(Read((&((v__)->jarFile())), msg__, iter__)))) {
2065 0 : FatalError("Error deserializing 'jarFile' (URIParams) member of 'JARURIParams'");
2066 0 : return false;
2067 : }
2068 : // Sentinel = 'jarFile'
2069 0 : if ((!((msg__)->ReadSentinel(iter__, 1572070078)))) {
2070 0 : mozilla::ipc::SentinelReadError("Error deserializing 'jarFile' (URIParams) member of 'JARURIParams'");
2071 0 : return false;
2072 : }
2073 0 : if ((!(Read((&((v__)->jarEntry())), msg__, iter__)))) {
2074 0 : FatalError("Error deserializing 'jarEntry' (URIParams) member of 'JARURIParams'");
2075 0 : return false;
2076 : }
2077 : // Sentinel = 'jarEntry'
2078 0 : if ((!((msg__)->ReadSentinel(iter__, 941016033)))) {
2079 0 : mozilla::ipc::SentinelReadError("Error deserializing 'jarEntry' (URIParams) member of 'JARURIParams'");
2080 0 : return false;
2081 : }
2082 0 : if ((!(Read((&((v__)->charset())), msg__, iter__)))) {
2083 0 : FatalError("Error deserializing 'charset' (nsCString) member of 'JARURIParams'");
2084 0 : return false;
2085 : }
2086 : // Sentinel = 'charset'
2087 0 : if ((!((msg__)->ReadSentinel(iter__, 1551550891)))) {
2088 0 : mozilla::ipc::SentinelReadError("Error deserializing 'charset' (nsCString) member of 'JARURIParams'");
2089 0 : return false;
2090 : }
2091 0 : return true;
2092 : }
2093 :
2094 0 : auto PHttpChannelParent::Write(
2095 : const ContentPrincipalInfo& v__,
2096 : Message* msg__) -> void
2097 : {
2098 0 : Write((v__).attrs(), msg__);
2099 : // Sentinel = 'attrs'
2100 0 : (msg__)->WriteSentinel(3014987797);
2101 0 : Write((v__).originNoSuffix(), msg__);
2102 : // Sentinel = 'originNoSuffix'
2103 0 : (msg__)->WriteSentinel(2833071422);
2104 0 : Write((v__).spec(), msg__);
2105 : // Sentinel = 'spec'
2106 0 : (msg__)->WriteSentinel(1630740541);
2107 0 : }
2108 :
2109 0 : auto PHttpChannelParent::Read(
2110 : ContentPrincipalInfo* v__,
2111 : const Message* msg__,
2112 : PickleIterator* iter__) -> bool
2113 : {
2114 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
2115 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
2116 0 : return false;
2117 : }
2118 : // Sentinel = 'attrs'
2119 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
2120 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
2121 0 : return false;
2122 : }
2123 0 : if ((!(Read((&((v__)->originNoSuffix())), msg__, iter__)))) {
2124 0 : FatalError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
2125 0 : return false;
2126 : }
2127 : // Sentinel = 'originNoSuffix'
2128 0 : if ((!((msg__)->ReadSentinel(iter__, 2833071422)))) {
2129 0 : mozilla::ipc::SentinelReadError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
2130 0 : return false;
2131 : }
2132 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
2133 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
2134 0 : return false;
2135 : }
2136 : // Sentinel = 'spec'
2137 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
2138 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
2139 0 : return false;
2140 : }
2141 0 : return true;
2142 : }
2143 :
2144 0 : auto PHttpChannelParent::Write(
2145 : const SimpleURIParams& v__,
2146 : Message* msg__) -> void
2147 : {
2148 0 : Write((v__).scheme(), msg__);
2149 : // Sentinel = 'scheme'
2150 0 : (msg__)->WriteSentinel(3619238715);
2151 0 : Write((v__).path(), msg__);
2152 : // Sentinel = 'path'
2153 0 : (msg__)->WriteSentinel(913629401);
2154 0 : Write((v__).ref(), msg__);
2155 : // Sentinel = 'ref'
2156 0 : (msg__)->WriteSentinel(2626476732);
2157 0 : Write((v__).query(), msg__);
2158 : // Sentinel = 'query'
2159 0 : (msg__)->WriteSentinel(4249802777);
2160 0 : Write((v__).isMutable(), msg__);
2161 : // Sentinel = 'isMutable'
2162 0 : (msg__)->WriteSentinel(3552466783);
2163 0 : }
2164 :
2165 0 : auto PHttpChannelParent::Read(
2166 : SimpleURIParams* v__,
2167 : const Message* msg__,
2168 : PickleIterator* iter__) -> bool
2169 : {
2170 0 : if ((!(Read((&((v__)->scheme())), msg__, iter__)))) {
2171 0 : FatalError("Error deserializing 'scheme' (nsCString) member of 'SimpleURIParams'");
2172 0 : return false;
2173 : }
2174 : // Sentinel = 'scheme'
2175 0 : if ((!((msg__)->ReadSentinel(iter__, 3619238715)))) {
2176 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scheme' (nsCString) member of 'SimpleURIParams'");
2177 0 : return false;
2178 : }
2179 0 : if ((!(Read((&((v__)->path())), msg__, iter__)))) {
2180 0 : FatalError("Error deserializing 'path' (nsCString) member of 'SimpleURIParams'");
2181 0 : return false;
2182 : }
2183 : // Sentinel = 'path'
2184 0 : if ((!((msg__)->ReadSentinel(iter__, 913629401)))) {
2185 0 : mozilla::ipc::SentinelReadError("Error deserializing 'path' (nsCString) member of 'SimpleURIParams'");
2186 0 : return false;
2187 : }
2188 0 : if ((!(Read((&((v__)->ref())), msg__, iter__)))) {
2189 0 : FatalError("Error deserializing 'ref' (nsCString) member of 'SimpleURIParams'");
2190 0 : return false;
2191 : }
2192 : // Sentinel = 'ref'
2193 0 : if ((!((msg__)->ReadSentinel(iter__, 2626476732)))) {
2194 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ref' (nsCString) member of 'SimpleURIParams'");
2195 0 : return false;
2196 : }
2197 0 : if ((!(Read((&((v__)->query())), msg__, iter__)))) {
2198 0 : FatalError("Error deserializing 'query' (nsCString) member of 'SimpleURIParams'");
2199 0 : return false;
2200 : }
2201 : // Sentinel = 'query'
2202 0 : if ((!((msg__)->ReadSentinel(iter__, 4249802777)))) {
2203 0 : mozilla::ipc::SentinelReadError("Error deserializing 'query' (nsCString) member of 'SimpleURIParams'");
2204 0 : return false;
2205 : }
2206 0 : if ((!(Read((&((v__)->isMutable())), msg__, iter__)))) {
2207 0 : FatalError("Error deserializing 'isMutable' (bool) member of 'SimpleURIParams'");
2208 0 : return false;
2209 : }
2210 : // Sentinel = 'isMutable'
2211 0 : if ((!((msg__)->ReadSentinel(iter__, 3552466783)))) {
2212 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isMutable' (bool) member of 'SimpleURIParams'");
2213 0 : return false;
2214 : }
2215 0 : return true;
2216 : }
2217 :
2218 0 : auto PHttpChannelParent::Write(
2219 : const NullPrincipalURIParams& v__,
2220 : Message* msg__) -> void
2221 : {
2222 0 : }
2223 :
2224 0 : auto PHttpChannelParent::Read(
2225 : NullPrincipalURIParams* v__,
2226 : const Message* msg__,
2227 : PickleIterator* iter__) -> bool
2228 : {
2229 0 : return true;
2230 : }
2231 :
2232 0 : auto PHttpChannelParent::Write(
2233 : const IconURIParams& v__,
2234 : Message* msg__) -> void
2235 : {
2236 0 : Write((v__).uri(), msg__);
2237 : // Sentinel = 'uri'
2238 0 : (msg__)->WriteSentinel(1453210605);
2239 0 : Write((v__).size(), msg__);
2240 : // Sentinel = 'size'
2241 0 : (msg__)->WriteSentinel(931048223);
2242 0 : Write((v__).contentType(), msg__);
2243 : // Sentinel = 'contentType'
2244 0 : (msg__)->WriteSentinel(2092571716);
2245 0 : Write((v__).fileName(), msg__);
2246 : // Sentinel = 'fileName'
2247 0 : (msg__)->WriteSentinel(3833449039);
2248 0 : Write((v__).stockIcon(), msg__);
2249 : // Sentinel = 'stockIcon'
2250 0 : (msg__)->WriteSentinel(3601770784);
2251 0 : Write((v__).iconSize(), msg__);
2252 : // Sentinel = 'iconSize'
2253 0 : (msg__)->WriteSentinel(2585310920);
2254 0 : Write((v__).iconState(), msg__);
2255 : // Sentinel = 'iconState'
2256 0 : (msg__)->WriteSentinel(3444306207);
2257 0 : }
2258 :
2259 0 : auto PHttpChannelParent::Read(
2260 : IconURIParams* v__,
2261 : const Message* msg__,
2262 : PickleIterator* iter__) -> bool
2263 : {
2264 0 : if ((!(Read((&((v__)->uri())), msg__, iter__)))) {
2265 0 : FatalError("Error deserializing 'uri' (OptionalURIParams) member of 'IconURIParams'");
2266 0 : return false;
2267 : }
2268 : // Sentinel = 'uri'
2269 0 : if ((!((msg__)->ReadSentinel(iter__, 1453210605)))) {
2270 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uri' (OptionalURIParams) member of 'IconURIParams'");
2271 0 : return false;
2272 : }
2273 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
2274 0 : FatalError("Error deserializing 'size' (uint32_t) member of 'IconURIParams'");
2275 0 : return false;
2276 : }
2277 : // Sentinel = 'size'
2278 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
2279 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (uint32_t) member of 'IconURIParams'");
2280 0 : return false;
2281 : }
2282 0 : if ((!(Read((&((v__)->contentType())), msg__, iter__)))) {
2283 0 : FatalError("Error deserializing 'contentType' (nsCString) member of 'IconURIParams'");
2284 0 : return false;
2285 : }
2286 : // Sentinel = 'contentType'
2287 0 : if ((!((msg__)->ReadSentinel(iter__, 2092571716)))) {
2288 0 : mozilla::ipc::SentinelReadError("Error deserializing 'contentType' (nsCString) member of 'IconURIParams'");
2289 0 : return false;
2290 : }
2291 0 : if ((!(Read((&((v__)->fileName())), msg__, iter__)))) {
2292 0 : FatalError("Error deserializing 'fileName' (nsCString) member of 'IconURIParams'");
2293 0 : return false;
2294 : }
2295 : // Sentinel = 'fileName'
2296 0 : if ((!((msg__)->ReadSentinel(iter__, 3833449039)))) {
2297 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileName' (nsCString) member of 'IconURIParams'");
2298 0 : return false;
2299 : }
2300 0 : if ((!(Read((&((v__)->stockIcon())), msg__, iter__)))) {
2301 0 : FatalError("Error deserializing 'stockIcon' (nsCString) member of 'IconURIParams'");
2302 0 : return false;
2303 : }
2304 : // Sentinel = 'stockIcon'
2305 0 : if ((!((msg__)->ReadSentinel(iter__, 3601770784)))) {
2306 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stockIcon' (nsCString) member of 'IconURIParams'");
2307 0 : return false;
2308 : }
2309 0 : if ((!(Read((&((v__)->iconSize())), msg__, iter__)))) {
2310 0 : FatalError("Error deserializing 'iconSize' (int32_t) member of 'IconURIParams'");
2311 0 : return false;
2312 : }
2313 : // Sentinel = 'iconSize'
2314 0 : if ((!((msg__)->ReadSentinel(iter__, 2585310920)))) {
2315 0 : mozilla::ipc::SentinelReadError("Error deserializing 'iconSize' (int32_t) member of 'IconURIParams'");
2316 0 : return false;
2317 : }
2318 0 : if ((!(Read((&((v__)->iconState())), msg__, iter__)))) {
2319 0 : FatalError("Error deserializing 'iconState' (int32_t) member of 'IconURIParams'");
2320 0 : return false;
2321 : }
2322 : // Sentinel = 'iconState'
2323 0 : if ((!((msg__)->ReadSentinel(iter__, 3444306207)))) {
2324 0 : mozilla::ipc::SentinelReadError("Error deserializing 'iconState' (int32_t) member of 'IconURIParams'");
2325 0 : return false;
2326 : }
2327 0 : return true;
2328 : }
2329 :
2330 0 : auto PHttpChannelParent::Write(
2331 : const StandardURLSegment& v__,
2332 : Message* msg__) -> void
2333 : {
2334 0 : Write((v__).position(), msg__);
2335 : // Sentinel = 'position'
2336 0 : (msg__)->WriteSentinel(50847225);
2337 0 : Write((v__).length(), msg__);
2338 : // Sentinel = 'length'
2339 0 : (msg__)->WriteSentinel(1726618354);
2340 0 : }
2341 :
2342 0 : auto PHttpChannelParent::Read(
2343 : StandardURLSegment* v__,
2344 : const Message* msg__,
2345 : PickleIterator* iter__) -> bool
2346 : {
2347 0 : if ((!(Read((&((v__)->position())), msg__, iter__)))) {
2348 0 : FatalError("Error deserializing 'position' (uint32_t) member of 'StandardURLSegment'");
2349 0 : return false;
2350 : }
2351 : // Sentinel = 'position'
2352 0 : if ((!((msg__)->ReadSentinel(iter__, 50847225)))) {
2353 0 : mozilla::ipc::SentinelReadError("Error deserializing 'position' (uint32_t) member of 'StandardURLSegment'");
2354 0 : return false;
2355 : }
2356 0 : if ((!(Read((&((v__)->length())), msg__, iter__)))) {
2357 0 : FatalError("Error deserializing 'length' (int32_t) member of 'StandardURLSegment'");
2358 0 : return false;
2359 : }
2360 : // Sentinel = 'length'
2361 0 : if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
2362 0 : mozilla::ipc::SentinelReadError("Error deserializing 'length' (int32_t) member of 'StandardURLSegment'");
2363 0 : return false;
2364 : }
2365 0 : return true;
2366 : }
2367 :
2368 0 : auto PHttpChannelParent::Write(
2369 : const JSURIParams& v__,
2370 : Message* msg__) -> void
2371 : {
2372 0 : Write((v__).simpleParams(), msg__);
2373 : // Sentinel = 'simpleParams'
2374 0 : (msg__)->WriteSentinel(3404291700);
2375 0 : Write((v__).baseURI(), msg__);
2376 : // Sentinel = 'baseURI'
2377 0 : (msg__)->WriteSentinel(1836705256);
2378 0 : }
2379 :
2380 0 : auto PHttpChannelParent::Read(
2381 : JSURIParams* v__,
2382 : const Message* msg__,
2383 : PickleIterator* iter__) -> bool
2384 : {
2385 0 : if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
2386 0 : FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'JSURIParams'");
2387 0 : return false;
2388 : }
2389 : // Sentinel = 'simpleParams'
2390 0 : if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
2391 0 : mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'JSURIParams'");
2392 0 : return false;
2393 : }
2394 0 : if ((!(Read((&((v__)->baseURI())), msg__, iter__)))) {
2395 0 : FatalError("Error deserializing 'baseURI' (OptionalURIParams) member of 'JSURIParams'");
2396 0 : return false;
2397 : }
2398 : // Sentinel = 'baseURI'
2399 0 : if ((!((msg__)->ReadSentinel(iter__, 1836705256)))) {
2400 0 : mozilla::ipc::SentinelReadError("Error deserializing 'baseURI' (OptionalURIParams) member of 'JSURIParams'");
2401 0 : return false;
2402 : }
2403 0 : return true;
2404 : }
2405 :
2406 0 : auto PHttpChannelParent::Write(
2407 : const NullPrincipalInfo& v__,
2408 : Message* msg__) -> void
2409 : {
2410 0 : Write((v__).attrs(), msg__);
2411 : // Sentinel = 'attrs'
2412 0 : (msg__)->WriteSentinel(3014987797);
2413 0 : Write((v__).spec(), msg__);
2414 : // Sentinel = 'spec'
2415 0 : (msg__)->WriteSentinel(1630740541);
2416 0 : }
2417 :
2418 0 : auto PHttpChannelParent::Read(
2419 : NullPrincipalInfo* v__,
2420 : const Message* msg__,
2421 : PickleIterator* iter__) -> bool
2422 : {
2423 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
2424 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
2425 0 : return false;
2426 : }
2427 : // Sentinel = 'attrs'
2428 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
2429 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
2430 0 : return false;
2431 : }
2432 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
2433 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
2434 0 : return false;
2435 : }
2436 : // Sentinel = 'spec'
2437 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
2438 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
2439 0 : return false;
2440 : }
2441 0 : return true;
2442 : }
2443 :
2444 0 : auto PHttpChannelParent::Write(
2445 : const OptionalCorsPreflightArgs& v__,
2446 : Message* msg__) -> void
2447 : {
2448 : typedef OptionalCorsPreflightArgs type__;
2449 0 : Write(int((v__).type()), msg__);
2450 : // Sentinel = 'OptionalCorsPreflightArgs'
2451 0 : (msg__)->WriteSentinel(3238697490);
2452 :
2453 0 : switch ((v__).type()) {
2454 : case type__::Tvoid_t:
2455 : {
2456 0 : Write((v__).get_void_t(), msg__);
2457 : // Sentinel = 'Tvoid_t'
2458 0 : (msg__)->WriteSentinel(3041273328);
2459 0 : return;
2460 : }
2461 : case type__::TCorsPreflightArgs:
2462 : {
2463 0 : Write((v__).get_CorsPreflightArgs(), msg__);
2464 : // Sentinel = 'TCorsPreflightArgs'
2465 0 : (msg__)->WriteSentinel(2263898105);
2466 0 : return;
2467 : }
2468 : default:
2469 : {
2470 0 : FatalError("unknown union type");
2471 0 : return;
2472 : }
2473 : }
2474 : }
2475 :
2476 0 : auto PHttpChannelParent::Read(
2477 : OptionalCorsPreflightArgs* v__,
2478 : const Message* msg__,
2479 : PickleIterator* iter__) -> bool
2480 : {
2481 : typedef OptionalCorsPreflightArgs type__;
2482 : int type;
2483 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2484 0 : mozilla::ipc::UnionTypeReadError("OptionalCorsPreflightArgs");
2485 0 : return false;
2486 : }
2487 : // Sentinel = 'OptionalCorsPreflightArgs'
2488 0 : if ((!((msg__)->ReadSentinel(iter__, 3238697490)))) {
2489 0 : mozilla::ipc::SentinelReadError("OptionalCorsPreflightArgs");
2490 0 : return false;
2491 : }
2492 :
2493 0 : switch (type) {
2494 : case type__::Tvoid_t:
2495 : {
2496 : void_t tmp = void_t();
2497 0 : (*(v__)) = tmp;
2498 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
2499 0 : FatalError("Error deserializing Union type");
2500 0 : return false;
2501 : }
2502 : // Sentinel = 'Tvoid_t'
2503 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
2504 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2505 0 : return false;
2506 : }
2507 0 : return true;
2508 : }
2509 : case type__::TCorsPreflightArgs:
2510 : {
2511 0 : CorsPreflightArgs tmp = CorsPreflightArgs();
2512 0 : (*(v__)) = tmp;
2513 0 : if ((!(Read((&((v__)->get_CorsPreflightArgs())), msg__, iter__)))) {
2514 0 : FatalError("Error deserializing Union type");
2515 0 : return false;
2516 : }
2517 : // Sentinel = 'TCorsPreflightArgs'
2518 0 : if ((!((msg__)->ReadSentinel(iter__, 2263898105)))) {
2519 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2520 0 : return false;
2521 : }
2522 0 : return true;
2523 : }
2524 : default:
2525 : {
2526 0 : FatalError("unknown union type");
2527 0 : return false;
2528 : }
2529 : }
2530 : }
2531 :
2532 :
2533 :
2534 : } // namespace net
2535 : } // namespace mozilla
|