Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/net/PNeckoParent.h"
8 : #include "SerializedLoadContext.h"
9 : #include "mozilla/dom/PermissionMessageUtils.h"
10 :
11 : #include "mozilla/dom/PContentParent.h"
12 : #include "mozilla/net/PHttpChannelParent.h"
13 : #include "mozilla/net/PCookieServiceParent.h"
14 : #include "mozilla/dom/PBrowserParent.h"
15 : #include "mozilla/net/PWyciwygChannelParent.h"
16 : #include "mozilla/net/PFTPChannelParent.h"
17 : #include "mozilla/net/PWebSocketParent.h"
18 : #include "mozilla/net/PWebSocketEventListenerParent.h"
19 : #include "mozilla/net/PTCPSocketParent.h"
20 : #include "mozilla/net/PTCPServerSocketParent.h"
21 : #include "mozilla/net/PUDPSocketParent.h"
22 : #include "mozilla/net/PDNSRequestParent.h"
23 : #include "mozilla/net/PChannelDiverterParent.h"
24 : #include "mozilla/ipc/PFileDescriptorSetParent.h"
25 : #include "mozilla/net/PDataChannelParent.h"
26 : #include "mozilla/net/PTransportProviderParent.h"
27 : #include "mozilla/ipc/PChildToParentStreamParent.h"
28 : #include "mozilla/ipc/PParentToChildStreamParent.h"
29 : #include "mozilla/net/PStunAddrsRequestParent.h"
30 : #include "mozilla/net/PFileChannelParent.h"
31 : #include "mozilla/net/PRtspControllerParent.h"
32 : #include "mozilla/net/PRtspChannelParent.h"
33 : #include "mozilla/net/PAltDataOutputStreamParent.h"
34 :
35 : #include "nsIFile.h"
36 : #include "GeckoProfiler.h"
37 :
38 : namespace mozilla {
39 : namespace net {
40 :
41 :
42 0 : auto PNeckoParent::Recv__delete__() -> mozilla::ipc::IPCResult
43 : {
44 0 : return IPC_OK();
45 : }
46 :
47 0 : auto PNeckoParent::RecvPCookieServiceConstructor(PCookieServiceParent* actor) -> mozilla::ipc::IPCResult
48 : {
49 0 : return IPC_OK();
50 : }
51 :
52 0 : auto PNeckoParent::RecvPHttpChannelConstructor(
53 : PHttpChannelParent* actor,
54 : const PBrowserOrId& browser,
55 : const SerializedLoadContext& loadContext,
56 : const HttpChannelCreationArgs& args) -> mozilla::ipc::IPCResult
57 : {
58 0 : return IPC_OK();
59 : }
60 :
61 0 : auto PNeckoParent::RecvPWyciwygChannelConstructor(PWyciwygChannelParent* actor) -> mozilla::ipc::IPCResult
62 : {
63 0 : return IPC_OK();
64 : }
65 :
66 0 : auto PNeckoParent::RecvPFTPChannelConstructor(
67 : PFTPChannelParent* actor,
68 : const PBrowserOrId& browser,
69 : const SerializedLoadContext& loadContext,
70 : const FTPChannelCreationArgs& args) -> mozilla::ipc::IPCResult
71 : {
72 0 : return IPC_OK();
73 : }
74 :
75 0 : auto PNeckoParent::RecvPWebSocketConstructor(
76 : PWebSocketParent* actor,
77 : const PBrowserOrId& browser,
78 : const SerializedLoadContext& loadContext,
79 : const uint32_t& aSerialID) -> mozilla::ipc::IPCResult
80 : {
81 0 : return IPC_OK();
82 : }
83 :
84 0 : auto PNeckoParent::RecvPTCPServerSocketConstructor(
85 : PTCPServerSocketParent* actor,
86 : const uint16_t& localPort,
87 : const uint16_t& backlog,
88 : const bool& useArrayBuffers) -> mozilla::ipc::IPCResult
89 : {
90 0 : return IPC_OK();
91 : }
92 :
93 0 : auto PNeckoParent::RecvPUDPSocketConstructor(
94 : PUDPSocketParent* actor,
95 : const Principal& principal,
96 : const nsCString& filter) -> mozilla::ipc::IPCResult
97 : {
98 0 : return IPC_OK();
99 : }
100 :
101 0 : auto PNeckoParent::RecvPDNSRequestConstructor(
102 : PDNSRequestParent* actor,
103 : const nsCString& hostName,
104 : const OriginAttributes& originAttributes,
105 : const uint32_t& flags,
106 : const nsCString& networkInterface) -> mozilla::ipc::IPCResult
107 : {
108 0 : return IPC_OK();
109 : }
110 :
111 0 : auto PNeckoParent::RecvPWebSocketEventListenerConstructor(
112 : PWebSocketEventListenerParent* actor,
113 : const uint64_t& aInnerWindowID) -> mozilla::ipc::IPCResult
114 : {
115 0 : return IPC_OK();
116 : }
117 :
118 0 : auto PNeckoParent::RecvPDataChannelConstructor(
119 : PDataChannelParent* actor,
120 : const uint32_t& channelId) -> mozilla::ipc::IPCResult
121 : {
122 0 : return IPC_OK();
123 : }
124 :
125 0 : auto PNeckoParent::RecvPFileChannelConstructor(
126 : PFileChannelParent* actor,
127 : const uint32_t& channelId) -> mozilla::ipc::IPCResult
128 : {
129 0 : return IPC_OK();
130 : }
131 :
132 0 : auto PNeckoParent::RecvPRtspControllerConstructor(PRtspControllerParent* actor) -> mozilla::ipc::IPCResult
133 : {
134 0 : return IPC_OK();
135 : }
136 :
137 0 : auto PNeckoParent::RecvPRtspChannelConstructor(
138 : PRtspChannelParent* actor,
139 : const RtspChannelConnectArgs& args) -> mozilla::ipc::IPCResult
140 : {
141 0 : return IPC_OK();
142 : }
143 :
144 0 : auto PNeckoParent::RecvPChannelDiverterConstructor(
145 : PChannelDiverterParent* actor,
146 : const ChannelDiverterArgs& channel) -> mozilla::ipc::IPCResult
147 : {
148 0 : return IPC_OK();
149 : }
150 :
151 0 : auto PNeckoParent::RecvPAltDataOutputStreamConstructor(
152 : PAltDataOutputStreamParent* actor,
153 : const nsCString& type,
154 : PHttpChannelParent* channel) -> mozilla::ipc::IPCResult
155 : {
156 0 : return IPC_OK();
157 : }
158 :
159 0 : auto PNeckoParent::RecvPStunAddrsRequestConstructor(PStunAddrsRequestParent* actor) -> mozilla::ipc::IPCResult
160 : {
161 0 : return IPC_OK();
162 : }
163 :
164 0 : auto PNeckoParent::RecvPTCPSocketConstructor(
165 : PTCPSocketParent* actor,
166 : const nsString& host,
167 : const uint16_t& port) -> mozilla::ipc::IPCResult
168 : {
169 0 : return IPC_OK();
170 : }
171 :
172 :
173 1 : MOZ_IMPLICIT PNeckoParent::PNeckoParent() :
174 : mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
175 1 : mState(PNecko::__Dead)
176 : {
177 1 : MOZ_COUNT_CTOR(PNeckoParent);
178 1 : }
179 :
180 0 : PNeckoParent::~PNeckoParent()
181 : {
182 0 : MOZ_COUNT_DTOR(PNeckoParent);
183 0 : }
184 :
185 6 : auto PNeckoParent::Manager() const -> PContentParent*
186 : {
187 6 : return static_cast<PContentParent*>(IProtocol::Manager());
188 : }
189 :
190 0 : auto PNeckoParent::ManagedPHttpChannelParent(nsTArray<PHttpChannelParent*>& aArr) const -> void
191 : {
192 0 : (mManagedPHttpChannelParent).ToArray(aArr);
193 0 : }
194 :
195 0 : auto PNeckoParent::ManagedPHttpChannelParent() const -> const ManagedContainer<PHttpChannelParent>&
196 : {
197 0 : return mManagedPHttpChannelParent;
198 : }
199 :
200 0 : auto PNeckoParent::ManagedPCookieServiceParent(nsTArray<PCookieServiceParent*>& aArr) const -> void
201 : {
202 0 : (mManagedPCookieServiceParent).ToArray(aArr);
203 0 : }
204 :
205 0 : auto PNeckoParent::ManagedPCookieServiceParent() const -> const ManagedContainer<PCookieServiceParent>&
206 : {
207 0 : return mManagedPCookieServiceParent;
208 : }
209 :
210 0 : auto PNeckoParent::ManagedPWyciwygChannelParent(nsTArray<PWyciwygChannelParent*>& aArr) const -> void
211 : {
212 0 : (mManagedPWyciwygChannelParent).ToArray(aArr);
213 0 : }
214 :
215 0 : auto PNeckoParent::ManagedPWyciwygChannelParent() const -> const ManagedContainer<PWyciwygChannelParent>&
216 : {
217 0 : return mManagedPWyciwygChannelParent;
218 : }
219 :
220 0 : auto PNeckoParent::ManagedPFTPChannelParent(nsTArray<PFTPChannelParent*>& aArr) const -> void
221 : {
222 0 : (mManagedPFTPChannelParent).ToArray(aArr);
223 0 : }
224 :
225 0 : auto PNeckoParent::ManagedPFTPChannelParent() const -> const ManagedContainer<PFTPChannelParent>&
226 : {
227 0 : return mManagedPFTPChannelParent;
228 : }
229 :
230 0 : auto PNeckoParent::ManagedPWebSocketParent(nsTArray<PWebSocketParent*>& aArr) const -> void
231 : {
232 0 : (mManagedPWebSocketParent).ToArray(aArr);
233 0 : }
234 :
235 0 : auto PNeckoParent::ManagedPWebSocketParent() const -> const ManagedContainer<PWebSocketParent>&
236 : {
237 0 : return mManagedPWebSocketParent;
238 : }
239 :
240 0 : auto PNeckoParent::ManagedPWebSocketEventListenerParent(nsTArray<PWebSocketEventListenerParent*>& aArr) const -> void
241 : {
242 0 : (mManagedPWebSocketEventListenerParent).ToArray(aArr);
243 0 : }
244 :
245 0 : auto PNeckoParent::ManagedPWebSocketEventListenerParent() const -> const ManagedContainer<PWebSocketEventListenerParent>&
246 : {
247 0 : return mManagedPWebSocketEventListenerParent;
248 : }
249 :
250 0 : auto PNeckoParent::ManagedPTCPSocketParent(nsTArray<PTCPSocketParent*>& aArr) const -> void
251 : {
252 0 : (mManagedPTCPSocketParent).ToArray(aArr);
253 0 : }
254 :
255 0 : auto PNeckoParent::ManagedPTCPSocketParent() const -> const ManagedContainer<PTCPSocketParent>&
256 : {
257 0 : return mManagedPTCPSocketParent;
258 : }
259 :
260 0 : auto PNeckoParent::ManagedPTCPServerSocketParent(nsTArray<PTCPServerSocketParent*>& aArr) const -> void
261 : {
262 0 : (mManagedPTCPServerSocketParent).ToArray(aArr);
263 0 : }
264 :
265 0 : auto PNeckoParent::ManagedPTCPServerSocketParent() const -> const ManagedContainer<PTCPServerSocketParent>&
266 : {
267 0 : return mManagedPTCPServerSocketParent;
268 : }
269 :
270 0 : auto PNeckoParent::ManagedPUDPSocketParent(nsTArray<PUDPSocketParent*>& aArr) const -> void
271 : {
272 0 : (mManagedPUDPSocketParent).ToArray(aArr);
273 0 : }
274 :
275 0 : auto PNeckoParent::ManagedPUDPSocketParent() const -> const ManagedContainer<PUDPSocketParent>&
276 : {
277 0 : return mManagedPUDPSocketParent;
278 : }
279 :
280 0 : auto PNeckoParent::ManagedPDNSRequestParent(nsTArray<PDNSRequestParent*>& aArr) const -> void
281 : {
282 0 : (mManagedPDNSRequestParent).ToArray(aArr);
283 0 : }
284 :
285 0 : auto PNeckoParent::ManagedPDNSRequestParent() const -> const ManagedContainer<PDNSRequestParent>&
286 : {
287 0 : return mManagedPDNSRequestParent;
288 : }
289 :
290 0 : auto PNeckoParent::ManagedPDataChannelParent(nsTArray<PDataChannelParent*>& aArr) const -> void
291 : {
292 0 : (mManagedPDataChannelParent).ToArray(aArr);
293 0 : }
294 :
295 0 : auto PNeckoParent::ManagedPDataChannelParent() const -> const ManagedContainer<PDataChannelParent>&
296 : {
297 0 : return mManagedPDataChannelParent;
298 : }
299 :
300 0 : auto PNeckoParent::ManagedPFileChannelParent(nsTArray<PFileChannelParent*>& aArr) const -> void
301 : {
302 0 : (mManagedPFileChannelParent).ToArray(aArr);
303 0 : }
304 :
305 0 : auto PNeckoParent::ManagedPFileChannelParent() const -> const ManagedContainer<PFileChannelParent>&
306 : {
307 0 : return mManagedPFileChannelParent;
308 : }
309 :
310 0 : auto PNeckoParent::ManagedPRtspControllerParent(nsTArray<PRtspControllerParent*>& aArr) const -> void
311 : {
312 0 : (mManagedPRtspControllerParent).ToArray(aArr);
313 0 : }
314 :
315 0 : auto PNeckoParent::ManagedPRtspControllerParent() const -> const ManagedContainer<PRtspControllerParent>&
316 : {
317 0 : return mManagedPRtspControllerParent;
318 : }
319 :
320 0 : auto PNeckoParent::ManagedPRtspChannelParent(nsTArray<PRtspChannelParent*>& aArr) const -> void
321 : {
322 0 : (mManagedPRtspChannelParent).ToArray(aArr);
323 0 : }
324 :
325 0 : auto PNeckoParent::ManagedPRtspChannelParent() const -> const ManagedContainer<PRtspChannelParent>&
326 : {
327 0 : return mManagedPRtspChannelParent;
328 : }
329 :
330 0 : auto PNeckoParent::ManagedPChannelDiverterParent(nsTArray<PChannelDiverterParent*>& aArr) const -> void
331 : {
332 0 : (mManagedPChannelDiverterParent).ToArray(aArr);
333 0 : }
334 :
335 0 : auto PNeckoParent::ManagedPChannelDiverterParent() const -> const ManagedContainer<PChannelDiverterParent>&
336 : {
337 0 : return mManagedPChannelDiverterParent;
338 : }
339 :
340 0 : auto PNeckoParent::ManagedPTransportProviderParent(nsTArray<PTransportProviderParent*>& aArr) const -> void
341 : {
342 0 : (mManagedPTransportProviderParent).ToArray(aArr);
343 0 : }
344 :
345 0 : auto PNeckoParent::ManagedPTransportProviderParent() const -> const ManagedContainer<PTransportProviderParent>&
346 : {
347 0 : return mManagedPTransportProviderParent;
348 : }
349 :
350 0 : auto PNeckoParent::ManagedPAltDataOutputStreamParent(nsTArray<PAltDataOutputStreamParent*>& aArr) const -> void
351 : {
352 0 : (mManagedPAltDataOutputStreamParent).ToArray(aArr);
353 0 : }
354 :
355 0 : auto PNeckoParent::ManagedPAltDataOutputStreamParent() const -> const ManagedContainer<PAltDataOutputStreamParent>&
356 : {
357 0 : return mManagedPAltDataOutputStreamParent;
358 : }
359 :
360 0 : auto PNeckoParent::ManagedPStunAddrsRequestParent(nsTArray<PStunAddrsRequestParent*>& aArr) const -> void
361 : {
362 0 : (mManagedPStunAddrsRequestParent).ToArray(aArr);
363 0 : }
364 :
365 0 : auto PNeckoParent::ManagedPStunAddrsRequestParent() const -> const ManagedContainer<PStunAddrsRequestParent>&
366 : {
367 0 : return mManagedPStunAddrsRequestParent;
368 : }
369 :
370 0 : auto PNeckoParent::SendAsyncAuthPromptForNestedFrame(
371 : const TabId& nestedFrameId,
372 : const nsCString& uri,
373 : const nsString& realm,
374 : const uint64_t& callbackId) -> bool
375 : {
376 0 : IPC::Message* msg__ = PNecko::Msg_AsyncAuthPromptForNestedFrame(Id());
377 :
378 0 : Write(nestedFrameId, msg__);
379 : // Sentinel = 'nestedFrameId'
380 0 : (msg__)->WriteSentinel(168911970);
381 0 : Write(uri, msg__);
382 : // Sentinel = 'uri'
383 0 : (msg__)->WriteSentinel(1453210605);
384 0 : Write(realm, msg__);
385 : // Sentinel = 'realm'
386 0 : (msg__)->WriteSentinel(1127162788);
387 0 : Write(callbackId, msg__);
388 : // Sentinel = 'callbackId'
389 0 : (msg__)->WriteSentinel(4163989448);
390 :
391 :
392 :
393 :
394 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
395 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
396 : }
397 0 : AUTO_PROFILER_LABEL("PNecko::Msg_AsyncAuthPromptForNestedFrame", OTHER);
398 0 : PNecko::Transition(PNecko::Msg_AsyncAuthPromptForNestedFrame__ID, (&(mState)));
399 :
400 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
401 0 : return sendok__;
402 : }
403 :
404 0 : auto PNeckoParent::SendPredOnPredictPrefetch(
405 : const URIParams& uri,
406 : const uint32_t& httpStatus) -> bool
407 : {
408 0 : IPC::Message* msg__ = PNecko::Msg_PredOnPredictPrefetch(Id());
409 :
410 0 : Write(uri, msg__);
411 : // Sentinel = 'uri'
412 0 : (msg__)->WriteSentinel(1453210605);
413 0 : Write(httpStatus, msg__);
414 : // Sentinel = 'httpStatus'
415 0 : (msg__)->WriteSentinel(2648726124);
416 :
417 :
418 :
419 :
420 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
421 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
422 : }
423 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PredOnPredictPrefetch", OTHER);
424 0 : PNecko::Transition(PNecko::Msg_PredOnPredictPrefetch__ID, (&(mState)));
425 :
426 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
427 0 : return sendok__;
428 : }
429 :
430 0 : auto PNeckoParent::SendPredOnPredictPreconnect(const URIParams& uri) -> bool
431 : {
432 0 : IPC::Message* msg__ = PNecko::Msg_PredOnPredictPreconnect(Id());
433 :
434 0 : Write(uri, msg__);
435 : // Sentinel = 'uri'
436 0 : (msg__)->WriteSentinel(1453210605);
437 :
438 :
439 :
440 :
441 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
442 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
443 : }
444 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PredOnPredictPreconnect", OTHER);
445 0 : PNecko::Transition(PNecko::Msg_PredOnPredictPreconnect__ID, (&(mState)));
446 :
447 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
448 0 : return sendok__;
449 : }
450 :
451 0 : auto PNeckoParent::SendPredOnPredictDNS(const URIParams& uri) -> bool
452 : {
453 0 : IPC::Message* msg__ = PNecko::Msg_PredOnPredictDNS(Id());
454 :
455 0 : Write(uri, msg__);
456 : // Sentinel = 'uri'
457 0 : (msg__)->WriteSentinel(1453210605);
458 :
459 :
460 :
461 :
462 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
463 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
464 : }
465 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PredOnPredictDNS", OTHER);
466 0 : PNecko::Transition(PNecko::Msg_PredOnPredictDNS__ID, (&(mState)));
467 :
468 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
469 0 : return sendok__;
470 : }
471 :
472 0 : auto PNeckoParent::SendSpeculativeConnectRequest() -> bool
473 : {
474 0 : IPC::Message* msg__ = PNecko::Msg_SpeculativeConnectRequest(Id());
475 :
476 :
477 :
478 :
479 :
480 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
481 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
482 : }
483 0 : AUTO_PROFILER_LABEL("PNecko::Msg_SpeculativeConnectRequest", OTHER);
484 0 : PNecko::Transition(PNecko::Msg_SpeculativeConnectRequest__ID, (&(mState)));
485 :
486 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
487 0 : return sendok__;
488 : }
489 :
490 0 : auto PNeckoParent::SendPTransportProviderConstructor() -> PTransportProviderParent*
491 : {
492 0 : return SendPTransportProviderConstructor(AllocPTransportProviderParent());
493 : }
494 :
495 0 : auto PNeckoParent::SendPTransportProviderConstructor(PTransportProviderParent* actor) -> PTransportProviderParent*
496 : {
497 0 : if ((!(actor))) {
498 0 : NS_WARNING("Error constructing actor PTransportProviderParent");
499 0 : return nullptr;
500 : }
501 0 : (actor)->SetManager(this);
502 0 : Register(actor);
503 0 : (actor)->SetIPCChannel(GetIPCChannel());
504 0 : (mManagedPTransportProviderParent).PutEntry(actor);
505 0 : (actor)->mState = mozilla::net::PTransportProvider::__Start;
506 :
507 0 : IPC::Message* msg__ = PNecko::Msg_PTransportProviderConstructor(Id());
508 :
509 0 : Write(actor, msg__, false);
510 : // Sentinel = 'actor'
511 0 : (msg__)->WriteSentinel(875202478);
512 :
513 0 : (msg__)->set_constructor();
514 :
515 :
516 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
517 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
518 : }
519 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PTransportProviderConstructor", OTHER);
520 0 : PNecko::Transition(PNecko::Msg_PTransportProviderConstructor__ID, (&(mState)));
521 :
522 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
523 0 : if ((!(sendok__))) {
524 0 : IProtocol* mgr = (actor)->Manager();
525 0 : (actor)->DestroySubtree(FailedConstructor);
526 0 : (actor)->DeallocSubtree();
527 0 : (mgr)->RemoveManagee(PTransportProviderMsgStart, actor);
528 0 : return nullptr;
529 : }
530 0 : return actor;
531 : }
532 :
533 0 : auto PNeckoParent::SendPTCPSocketConstructor(
534 : const nsString& host,
535 : const uint16_t& port) -> PTCPSocketParent*
536 : {
537 0 : return SendPTCPSocketConstructor(AllocPTCPSocketParent(host, port), host, port);
538 : }
539 :
540 0 : auto PNeckoParent::SendPTCPSocketConstructor(
541 : PTCPSocketParent* actor,
542 : const nsString& host,
543 : const uint16_t& port) -> PTCPSocketParent*
544 : {
545 0 : if ((!(actor))) {
546 0 : NS_WARNING("Error constructing actor PTCPSocketParent");
547 0 : return nullptr;
548 : }
549 0 : (actor)->SetManager(this);
550 0 : Register(actor);
551 0 : (actor)->SetIPCChannel(GetIPCChannel());
552 0 : (mManagedPTCPSocketParent).PutEntry(actor);
553 0 : (actor)->mState = mozilla::net::PTCPSocket::__Start;
554 :
555 0 : IPC::Message* msg__ = PNecko::Msg_PTCPSocketConstructor(Id());
556 :
557 0 : Write(actor, msg__, false);
558 : // Sentinel = 'actor'
559 0 : (msg__)->WriteSentinel(875202478);
560 0 : Write(host, msg__);
561 : // Sentinel = 'host'
562 0 : (msg__)->WriteSentinel(4070301394);
563 0 : Write(port, msg__);
564 : // Sentinel = 'port'
565 0 : (msg__)->WriteSentinel(3633211549);
566 :
567 0 : (msg__)->set_constructor();
568 :
569 :
570 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
571 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
572 : }
573 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PTCPSocketConstructor", OTHER);
574 0 : PNecko::Transition(PNecko::Msg_PTCPSocketConstructor__ID, (&(mState)));
575 :
576 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
577 0 : if ((!(sendok__))) {
578 0 : IProtocol* mgr = (actor)->Manager();
579 0 : (actor)->DestroySubtree(FailedConstructor);
580 0 : (actor)->DeallocSubtree();
581 0 : (mgr)->RemoveManagee(PTCPSocketMsgStart, actor);
582 0 : return nullptr;
583 : }
584 0 : return actor;
585 : }
586 :
587 2 : auto PNeckoParent::RemoveManagee(
588 : int32_t aProtocolId,
589 : ProtocolBase* aListener) -> void
590 : {
591 2 : switch (aProtocolId) {
592 : case PHttpChannelMsgStart:
593 : {
594 2 : PHttpChannelParent* actor = static_cast<PHttpChannelParent*>(aListener);
595 2 : auto& container = mManagedPHttpChannelParent;
596 2 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
597 :
598 2 : (container).RemoveEntry(actor);
599 2 : DeallocPHttpChannelParent(actor);
600 2 : return;
601 : }
602 : case PCookieServiceMsgStart:
603 : {
604 0 : PCookieServiceParent* actor = static_cast<PCookieServiceParent*>(aListener);
605 0 : auto& container = mManagedPCookieServiceParent;
606 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
607 :
608 0 : (container).RemoveEntry(actor);
609 0 : DeallocPCookieServiceParent(actor);
610 0 : return;
611 : }
612 : case PWyciwygChannelMsgStart:
613 : {
614 0 : PWyciwygChannelParent* actor = static_cast<PWyciwygChannelParent*>(aListener);
615 0 : auto& container = mManagedPWyciwygChannelParent;
616 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
617 :
618 0 : (container).RemoveEntry(actor);
619 0 : DeallocPWyciwygChannelParent(actor);
620 0 : return;
621 : }
622 : case PFTPChannelMsgStart:
623 : {
624 0 : PFTPChannelParent* actor = static_cast<PFTPChannelParent*>(aListener);
625 0 : auto& container = mManagedPFTPChannelParent;
626 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
627 :
628 0 : (container).RemoveEntry(actor);
629 0 : DeallocPFTPChannelParent(actor);
630 0 : return;
631 : }
632 : case PWebSocketMsgStart:
633 : {
634 0 : PWebSocketParent* actor = static_cast<PWebSocketParent*>(aListener);
635 0 : auto& container = mManagedPWebSocketParent;
636 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
637 :
638 0 : (container).RemoveEntry(actor);
639 0 : DeallocPWebSocketParent(actor);
640 0 : return;
641 : }
642 : case PWebSocketEventListenerMsgStart:
643 : {
644 0 : PWebSocketEventListenerParent* actor = static_cast<PWebSocketEventListenerParent*>(aListener);
645 0 : auto& container = mManagedPWebSocketEventListenerParent;
646 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
647 :
648 0 : (container).RemoveEntry(actor);
649 0 : DeallocPWebSocketEventListenerParent(actor);
650 0 : return;
651 : }
652 : case PTCPSocketMsgStart:
653 : {
654 0 : PTCPSocketParent* actor = static_cast<PTCPSocketParent*>(aListener);
655 0 : auto& container = mManagedPTCPSocketParent;
656 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
657 :
658 0 : (container).RemoveEntry(actor);
659 0 : DeallocPTCPSocketParent(actor);
660 0 : return;
661 : }
662 : case PTCPServerSocketMsgStart:
663 : {
664 0 : PTCPServerSocketParent* actor = static_cast<PTCPServerSocketParent*>(aListener);
665 0 : auto& container = mManagedPTCPServerSocketParent;
666 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
667 :
668 0 : (container).RemoveEntry(actor);
669 0 : DeallocPTCPServerSocketParent(actor);
670 0 : return;
671 : }
672 : case PUDPSocketMsgStart:
673 : {
674 0 : PUDPSocketParent* actor = static_cast<PUDPSocketParent*>(aListener);
675 0 : auto& container = mManagedPUDPSocketParent;
676 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
677 :
678 0 : (container).RemoveEntry(actor);
679 0 : DeallocPUDPSocketParent(actor);
680 0 : return;
681 : }
682 : case PDNSRequestMsgStart:
683 : {
684 0 : PDNSRequestParent* actor = static_cast<PDNSRequestParent*>(aListener);
685 0 : auto& container = mManagedPDNSRequestParent;
686 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
687 :
688 0 : (container).RemoveEntry(actor);
689 0 : DeallocPDNSRequestParent(actor);
690 0 : return;
691 : }
692 : case PDataChannelMsgStart:
693 : {
694 0 : PDataChannelParent* actor = static_cast<PDataChannelParent*>(aListener);
695 0 : auto& container = mManagedPDataChannelParent;
696 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
697 :
698 0 : (container).RemoveEntry(actor);
699 0 : DeallocPDataChannelParent(actor);
700 0 : return;
701 : }
702 : case PFileChannelMsgStart:
703 : {
704 0 : PFileChannelParent* actor = static_cast<PFileChannelParent*>(aListener);
705 0 : auto& container = mManagedPFileChannelParent;
706 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
707 :
708 0 : (container).RemoveEntry(actor);
709 0 : DeallocPFileChannelParent(actor);
710 0 : return;
711 : }
712 : case PRtspControllerMsgStart:
713 : {
714 0 : PRtspControllerParent* actor = static_cast<PRtspControllerParent*>(aListener);
715 0 : auto& container = mManagedPRtspControllerParent;
716 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
717 :
718 0 : (container).RemoveEntry(actor);
719 0 : DeallocPRtspControllerParent(actor);
720 0 : return;
721 : }
722 : case PRtspChannelMsgStart:
723 : {
724 0 : PRtspChannelParent* actor = static_cast<PRtspChannelParent*>(aListener);
725 0 : auto& container = mManagedPRtspChannelParent;
726 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
727 :
728 0 : (container).RemoveEntry(actor);
729 0 : DeallocPRtspChannelParent(actor);
730 0 : return;
731 : }
732 : case PChannelDiverterMsgStart:
733 : {
734 0 : PChannelDiverterParent* actor = static_cast<PChannelDiverterParent*>(aListener);
735 0 : auto& container = mManagedPChannelDiverterParent;
736 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
737 :
738 0 : (container).RemoveEntry(actor);
739 0 : DeallocPChannelDiverterParent(actor);
740 0 : return;
741 : }
742 : case PTransportProviderMsgStart:
743 : {
744 0 : PTransportProviderParent* actor = static_cast<PTransportProviderParent*>(aListener);
745 0 : auto& container = mManagedPTransportProviderParent;
746 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
747 :
748 0 : (container).RemoveEntry(actor);
749 0 : DeallocPTransportProviderParent(actor);
750 0 : return;
751 : }
752 : case PAltDataOutputStreamMsgStart:
753 : {
754 0 : PAltDataOutputStreamParent* actor = static_cast<PAltDataOutputStreamParent*>(aListener);
755 0 : auto& container = mManagedPAltDataOutputStreamParent;
756 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
757 :
758 0 : (container).RemoveEntry(actor);
759 0 : DeallocPAltDataOutputStreamParent(actor);
760 0 : return;
761 : }
762 : case PStunAddrsRequestMsgStart:
763 : {
764 0 : PStunAddrsRequestParent* actor = static_cast<PStunAddrsRequestParent*>(aListener);
765 0 : auto& container = mManagedPStunAddrsRequestParent;
766 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
767 :
768 0 : (container).RemoveEntry(actor);
769 0 : DeallocPStunAddrsRequestParent(actor);
770 0 : return;
771 : }
772 : default:
773 : {
774 0 : FatalError("unreached");
775 0 : return;
776 : }
777 : }
778 : }
779 :
780 9 : auto PNeckoParent::OnMessageReceived(const Message& msg__) -> PNeckoParent::Result
781 : {
782 9 : switch ((msg__).type()) {
783 : case PNecko::Msg___delete____ID:
784 : {
785 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
786 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
787 : }
788 0 : AUTO_PROFILER_LABEL("PNecko::Msg___delete__", OTHER);
789 :
790 0 : PickleIterator iter__(msg__);
791 : PNeckoParent* actor;
792 :
793 0 : if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
794 0 : FatalError("Error deserializing 'PNeckoParent'");
795 0 : return MsgValueError;
796 : }
797 : // Sentinel = 'actor'
798 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
799 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PNeckoParent'");
800 0 : return MsgValueError;
801 : }
802 0 : (msg__).EndRead(iter__, (msg__).type());
803 0 : PNecko::Transition(PNecko::Msg___delete____ID, (&(mState)));
804 0 : if ((!(Recv__delete__()))) {
805 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
806 : // Error handled in mozilla::ipc::IPCResult
807 0 : return MsgProcessingError;
808 : }
809 :
810 :
811 0 : IProtocol* mgr = (actor)->Manager();
812 0 : (actor)->DestroySubtree(Deletion);
813 0 : (actor)->DeallocSubtree();
814 0 : (mgr)->RemoveManagee(PNeckoMsgStart, actor);
815 :
816 0 : return MsgProcessed;
817 : }
818 : case PNecko::Msg_PCookieServiceConstructor__ID:
819 : {
820 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
821 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
822 : }
823 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PCookieServiceConstructor", OTHER);
824 :
825 0 : PickleIterator iter__(msg__);
826 : ActorHandle handle__;
827 : PCookieServiceParent* actor;
828 :
829 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
830 0 : FatalError("Error deserializing 'ActorHandle'");
831 0 : return MsgValueError;
832 : }
833 : // Sentinel = 'actor'
834 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
835 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
836 0 : return MsgValueError;
837 : }
838 0 : (msg__).EndRead(iter__, (msg__).type());
839 0 : PNecko::Transition(PNecko::Msg_PCookieServiceConstructor__ID, (&(mState)));
840 0 : actor = AllocPCookieServiceParent();
841 0 : if ((!(actor))) {
842 0 : NS_WARNING("Error constructing actor PCookieServiceParent");
843 0 : return MsgValueError;
844 : }
845 0 : (actor)->SetManager(this);
846 0 : RegisterID(actor, (handle__).mId);
847 0 : (actor)->SetIPCChannel(GetIPCChannel());
848 0 : (mManagedPCookieServiceParent).PutEntry(actor);
849 0 : (actor)->mState = mozilla::net::PCookieService::__Start;
850 :
851 0 : if ((!(RecvPCookieServiceConstructor(mozilla::Move(actor))))) {
852 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
853 : // Error handled in mozilla::ipc::IPCResult
854 0 : return MsgProcessingError;
855 : }
856 :
857 0 : return MsgProcessed;
858 : }
859 : case PNecko::Msg_PHttpChannelConstructor__ID:
860 : {
861 3 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
862 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
863 : }
864 6 : AUTO_PROFILER_LABEL("PNecko::Msg_PHttpChannelConstructor", OTHER);
865 :
866 3 : PickleIterator iter__(msg__);
867 : ActorHandle handle__;
868 : PHttpChannelParent* actor;
869 6 : PBrowserOrId browser;
870 6 : SerializedLoadContext loadContext;
871 6 : HttpChannelCreationArgs args;
872 :
873 3 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
874 0 : FatalError("Error deserializing 'ActorHandle'");
875 0 : return MsgValueError;
876 : }
877 : // Sentinel = 'actor'
878 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
879 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
880 0 : return MsgValueError;
881 : }
882 3 : if ((!(Read((&(browser)), (&(msg__)), (&(iter__)))))) {
883 0 : FatalError("Error deserializing 'PBrowserOrId'");
884 0 : return MsgValueError;
885 : }
886 : // Sentinel = 'browser'
887 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2836343679)))) {
888 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserOrId'");
889 0 : return MsgValueError;
890 : }
891 3 : if ((!(Read((&(loadContext)), (&(msg__)), (&(iter__)))))) {
892 0 : FatalError("Error deserializing 'SerializedLoadContext'");
893 0 : return MsgValueError;
894 : }
895 : // Sentinel = 'loadContext'
896 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2917317838)))) {
897 0 : mozilla::ipc::SentinelReadError("Error deserializing 'SerializedLoadContext'");
898 0 : return MsgValueError;
899 : }
900 3 : if ((!(Read((&(args)), (&(msg__)), (&(iter__)))))) {
901 0 : FatalError("Error deserializing 'HttpChannelCreationArgs'");
902 0 : return MsgValueError;
903 : }
904 : // Sentinel = 'args'
905 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2823760587)))) {
906 0 : mozilla::ipc::SentinelReadError("Error deserializing 'HttpChannelCreationArgs'");
907 0 : return MsgValueError;
908 : }
909 3 : (msg__).EndRead(iter__, (msg__).type());
910 3 : PNecko::Transition(PNecko::Msg_PHttpChannelConstructor__ID, (&(mState)));
911 3 : actor = AllocPHttpChannelParent(browser, loadContext, args);
912 3 : if ((!(actor))) {
913 0 : NS_WARNING("Error constructing actor PHttpChannelParent");
914 0 : return MsgValueError;
915 : }
916 3 : (actor)->SetManager(this);
917 3 : RegisterID(actor, (handle__).mId);
918 3 : (actor)->SetIPCChannel(GetIPCChannel());
919 3 : (mManagedPHttpChannelParent).PutEntry(actor);
920 3 : (actor)->mState = mozilla::net::PHttpChannel::__Start;
921 :
922 3 : if ((!(RecvPHttpChannelConstructor(mozilla::Move(actor), mozilla::Move(browser), mozilla::Move(loadContext), mozilla::Move(args))))) {
923 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
924 : // Error handled in mozilla::ipc::IPCResult
925 0 : return MsgProcessingError;
926 : }
927 :
928 3 : return MsgProcessed;
929 : }
930 : case PNecko::Msg_PWyciwygChannelConstructor__ID:
931 : {
932 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
933 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
934 : }
935 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PWyciwygChannelConstructor", OTHER);
936 :
937 0 : PickleIterator iter__(msg__);
938 : ActorHandle handle__;
939 : PWyciwygChannelParent* actor;
940 :
941 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
942 0 : FatalError("Error deserializing 'ActorHandle'");
943 0 : return MsgValueError;
944 : }
945 : // Sentinel = 'actor'
946 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
947 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
948 0 : return MsgValueError;
949 : }
950 0 : (msg__).EndRead(iter__, (msg__).type());
951 0 : PNecko::Transition(PNecko::Msg_PWyciwygChannelConstructor__ID, (&(mState)));
952 0 : actor = AllocPWyciwygChannelParent();
953 0 : if ((!(actor))) {
954 0 : NS_WARNING("Error constructing actor PWyciwygChannelParent");
955 0 : return MsgValueError;
956 : }
957 0 : (actor)->SetManager(this);
958 0 : RegisterID(actor, (handle__).mId);
959 0 : (actor)->SetIPCChannel(GetIPCChannel());
960 0 : (mManagedPWyciwygChannelParent).PutEntry(actor);
961 0 : (actor)->mState = mozilla::net::PWyciwygChannel::__Start;
962 :
963 0 : if ((!(RecvPWyciwygChannelConstructor(mozilla::Move(actor))))) {
964 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
965 : // Error handled in mozilla::ipc::IPCResult
966 0 : return MsgProcessingError;
967 : }
968 :
969 0 : return MsgProcessed;
970 : }
971 : case PNecko::Msg_PFTPChannelConstructor__ID:
972 : {
973 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
974 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
975 : }
976 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PFTPChannelConstructor", OTHER);
977 :
978 0 : PickleIterator iter__(msg__);
979 : ActorHandle handle__;
980 : PFTPChannelParent* actor;
981 0 : PBrowserOrId browser;
982 0 : SerializedLoadContext loadContext;
983 0 : FTPChannelCreationArgs args;
984 :
985 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
986 0 : FatalError("Error deserializing 'ActorHandle'");
987 0 : return MsgValueError;
988 : }
989 : // Sentinel = 'actor'
990 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
991 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
992 0 : return MsgValueError;
993 : }
994 0 : if ((!(Read((&(browser)), (&(msg__)), (&(iter__)))))) {
995 0 : FatalError("Error deserializing 'PBrowserOrId'");
996 0 : return MsgValueError;
997 : }
998 : // Sentinel = 'browser'
999 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2836343679)))) {
1000 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserOrId'");
1001 0 : return MsgValueError;
1002 : }
1003 0 : if ((!(Read((&(loadContext)), (&(msg__)), (&(iter__)))))) {
1004 0 : FatalError("Error deserializing 'SerializedLoadContext'");
1005 0 : return MsgValueError;
1006 : }
1007 : // Sentinel = 'loadContext'
1008 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2917317838)))) {
1009 0 : mozilla::ipc::SentinelReadError("Error deserializing 'SerializedLoadContext'");
1010 0 : return MsgValueError;
1011 : }
1012 0 : if ((!(Read((&(args)), (&(msg__)), (&(iter__)))))) {
1013 0 : FatalError("Error deserializing 'FTPChannelCreationArgs'");
1014 0 : return MsgValueError;
1015 : }
1016 : // Sentinel = 'args'
1017 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2823760587)))) {
1018 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FTPChannelCreationArgs'");
1019 0 : return MsgValueError;
1020 : }
1021 0 : (msg__).EndRead(iter__, (msg__).type());
1022 0 : PNecko::Transition(PNecko::Msg_PFTPChannelConstructor__ID, (&(mState)));
1023 0 : actor = AllocPFTPChannelParent(browser, loadContext, args);
1024 0 : if ((!(actor))) {
1025 0 : NS_WARNING("Error constructing actor PFTPChannelParent");
1026 0 : return MsgValueError;
1027 : }
1028 0 : (actor)->SetManager(this);
1029 0 : RegisterID(actor, (handle__).mId);
1030 0 : (actor)->SetIPCChannel(GetIPCChannel());
1031 0 : (mManagedPFTPChannelParent).PutEntry(actor);
1032 0 : (actor)->mState = mozilla::net::PFTPChannel::__Start;
1033 :
1034 0 : if ((!(RecvPFTPChannelConstructor(mozilla::Move(actor), mozilla::Move(browser), mozilla::Move(loadContext), mozilla::Move(args))))) {
1035 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1036 : // Error handled in mozilla::ipc::IPCResult
1037 0 : return MsgProcessingError;
1038 : }
1039 :
1040 0 : return MsgProcessed;
1041 : }
1042 : case PNecko::Msg_PWebSocketConstructor__ID:
1043 : {
1044 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1045 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1046 : }
1047 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PWebSocketConstructor", OTHER);
1048 :
1049 0 : PickleIterator iter__(msg__);
1050 : ActorHandle handle__;
1051 : PWebSocketParent* actor;
1052 0 : PBrowserOrId browser;
1053 0 : SerializedLoadContext loadContext;
1054 : uint32_t aSerialID;
1055 :
1056 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
1057 0 : FatalError("Error deserializing 'ActorHandle'");
1058 0 : return MsgValueError;
1059 : }
1060 : // Sentinel = 'actor'
1061 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1062 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1063 0 : return MsgValueError;
1064 : }
1065 0 : if ((!(Read((&(browser)), (&(msg__)), (&(iter__)))))) {
1066 0 : FatalError("Error deserializing 'PBrowserOrId'");
1067 0 : return MsgValueError;
1068 : }
1069 : // Sentinel = 'browser'
1070 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2836343679)))) {
1071 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserOrId'");
1072 0 : return MsgValueError;
1073 : }
1074 0 : if ((!(Read((&(loadContext)), (&(msg__)), (&(iter__)))))) {
1075 0 : FatalError("Error deserializing 'SerializedLoadContext'");
1076 0 : return MsgValueError;
1077 : }
1078 : // Sentinel = 'loadContext'
1079 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2917317838)))) {
1080 0 : mozilla::ipc::SentinelReadError("Error deserializing 'SerializedLoadContext'");
1081 0 : return MsgValueError;
1082 : }
1083 0 : if ((!(Read((&(aSerialID)), (&(msg__)), (&(iter__)))))) {
1084 0 : FatalError("Error deserializing 'uint32_t'");
1085 0 : return MsgValueError;
1086 : }
1087 : // Sentinel = 'aSerialID'
1088 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1337008615)))) {
1089 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
1090 0 : return MsgValueError;
1091 : }
1092 0 : (msg__).EndRead(iter__, (msg__).type());
1093 0 : PNecko::Transition(PNecko::Msg_PWebSocketConstructor__ID, (&(mState)));
1094 0 : actor = AllocPWebSocketParent(browser, loadContext, aSerialID);
1095 0 : if ((!(actor))) {
1096 0 : NS_WARNING("Error constructing actor PWebSocketParent");
1097 0 : return MsgValueError;
1098 : }
1099 0 : (actor)->SetManager(this);
1100 0 : RegisterID(actor, (handle__).mId);
1101 0 : (actor)->SetIPCChannel(GetIPCChannel());
1102 0 : (mManagedPWebSocketParent).PutEntry(actor);
1103 0 : (actor)->mState = mozilla::net::PWebSocket::__Start;
1104 :
1105 0 : if ((!(RecvPWebSocketConstructor(mozilla::Move(actor), mozilla::Move(browser), mozilla::Move(loadContext), mozilla::Move(aSerialID))))) {
1106 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1107 : // Error handled in mozilla::ipc::IPCResult
1108 0 : return MsgProcessingError;
1109 : }
1110 :
1111 0 : return MsgProcessed;
1112 : }
1113 : case PNecko::Msg_PTCPServerSocketConstructor__ID:
1114 : {
1115 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1116 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1117 : }
1118 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PTCPServerSocketConstructor", OTHER);
1119 :
1120 0 : PickleIterator iter__(msg__);
1121 : ActorHandle handle__;
1122 : PTCPServerSocketParent* actor;
1123 : uint16_t localPort;
1124 : uint16_t backlog;
1125 : bool useArrayBuffers;
1126 :
1127 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
1128 0 : FatalError("Error deserializing 'ActorHandle'");
1129 0 : return MsgValueError;
1130 : }
1131 : // Sentinel = 'actor'
1132 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1133 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1134 0 : return MsgValueError;
1135 : }
1136 0 : if ((!(Read((&(localPort)), (&(msg__)), (&(iter__)))))) {
1137 0 : FatalError("Error deserializing 'uint16_t'");
1138 0 : return MsgValueError;
1139 : }
1140 : // Sentinel = 'localPort'
1141 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2930268933)))) {
1142 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint16_t'");
1143 0 : return MsgValueError;
1144 : }
1145 0 : if ((!(Read((&(backlog)), (&(msg__)), (&(iter__)))))) {
1146 0 : FatalError("Error deserializing 'uint16_t'");
1147 0 : return MsgValueError;
1148 : }
1149 : // Sentinel = 'backlog'
1150 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 403095166)))) {
1151 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint16_t'");
1152 0 : return MsgValueError;
1153 : }
1154 0 : if ((!(Read((&(useArrayBuffers)), (&(msg__)), (&(iter__)))))) {
1155 0 : FatalError("Error deserializing 'bool'");
1156 0 : return MsgValueError;
1157 : }
1158 : // Sentinel = 'useArrayBuffers'
1159 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1444022734)))) {
1160 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
1161 0 : return MsgValueError;
1162 : }
1163 0 : (msg__).EndRead(iter__, (msg__).type());
1164 0 : PNecko::Transition(PNecko::Msg_PTCPServerSocketConstructor__ID, (&(mState)));
1165 0 : actor = AllocPTCPServerSocketParent(localPort, backlog, useArrayBuffers);
1166 0 : if ((!(actor))) {
1167 0 : NS_WARNING("Error constructing actor PTCPServerSocketParent");
1168 0 : return MsgValueError;
1169 : }
1170 0 : (actor)->SetManager(this);
1171 0 : RegisterID(actor, (handle__).mId);
1172 0 : (actor)->SetIPCChannel(GetIPCChannel());
1173 0 : (mManagedPTCPServerSocketParent).PutEntry(actor);
1174 0 : (actor)->mState = mozilla::net::PTCPServerSocket::__Start;
1175 :
1176 0 : if ((!(RecvPTCPServerSocketConstructor(mozilla::Move(actor), mozilla::Move(localPort), mozilla::Move(backlog), mozilla::Move(useArrayBuffers))))) {
1177 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1178 : // Error handled in mozilla::ipc::IPCResult
1179 0 : return MsgProcessingError;
1180 : }
1181 :
1182 0 : return MsgProcessed;
1183 : }
1184 : case PNecko::Msg_PUDPSocketConstructor__ID:
1185 : {
1186 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1187 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1188 : }
1189 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PUDPSocketConstructor", OTHER);
1190 :
1191 0 : PickleIterator iter__(msg__);
1192 : ActorHandle handle__;
1193 : PUDPSocketParent* actor;
1194 0 : Principal principal;
1195 0 : nsCString filter;
1196 :
1197 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
1198 0 : FatalError("Error deserializing 'ActorHandle'");
1199 0 : return MsgValueError;
1200 : }
1201 : // Sentinel = 'actor'
1202 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1203 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1204 0 : return MsgValueError;
1205 : }
1206 0 : if ((!(Read((&(principal)), (&(msg__)), (&(iter__)))))) {
1207 0 : FatalError("Error deserializing 'Principal'");
1208 0 : return MsgValueError;
1209 : }
1210 : // Sentinel = 'principal'
1211 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
1212 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
1213 0 : return MsgValueError;
1214 : }
1215 0 : if ((!(Read((&(filter)), (&(msg__)), (&(iter__)))))) {
1216 0 : FatalError("Error deserializing 'nsCString'");
1217 0 : return MsgValueError;
1218 : }
1219 : // Sentinel = 'filter'
1220 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2236769008)))) {
1221 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
1222 0 : return MsgValueError;
1223 : }
1224 0 : (msg__).EndRead(iter__, (msg__).type());
1225 0 : PNecko::Transition(PNecko::Msg_PUDPSocketConstructor__ID, (&(mState)));
1226 0 : actor = AllocPUDPSocketParent(principal, filter);
1227 0 : if ((!(actor))) {
1228 0 : NS_WARNING("Error constructing actor PUDPSocketParent");
1229 0 : return MsgValueError;
1230 : }
1231 0 : (actor)->SetManager(this);
1232 0 : RegisterID(actor, (handle__).mId);
1233 0 : (actor)->SetIPCChannel(GetIPCChannel());
1234 0 : (mManagedPUDPSocketParent).PutEntry(actor);
1235 0 : (actor)->mState = mozilla::net::PUDPSocket::__Start;
1236 :
1237 0 : if ((!(RecvPUDPSocketConstructor(mozilla::Move(actor), mozilla::Move(principal), mozilla::Move(filter))))) {
1238 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1239 : // Error handled in mozilla::ipc::IPCResult
1240 0 : return MsgProcessingError;
1241 : }
1242 :
1243 0 : return MsgProcessed;
1244 : }
1245 : case PNecko::Msg_PDNSRequestConstructor__ID:
1246 : {
1247 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1248 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1249 : }
1250 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PDNSRequestConstructor", OTHER);
1251 :
1252 0 : PickleIterator iter__(msg__);
1253 : ActorHandle handle__;
1254 : PDNSRequestParent* actor;
1255 0 : nsCString hostName;
1256 0 : OriginAttributes originAttributes;
1257 : uint32_t flags;
1258 0 : nsCString networkInterface;
1259 :
1260 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
1261 0 : FatalError("Error deserializing 'ActorHandle'");
1262 0 : return MsgValueError;
1263 : }
1264 : // Sentinel = 'actor'
1265 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1266 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1267 0 : return MsgValueError;
1268 : }
1269 0 : if ((!(Read((&(hostName)), (&(msg__)), (&(iter__)))))) {
1270 0 : FatalError("Error deserializing 'nsCString'");
1271 0 : return MsgValueError;
1272 : }
1273 : // Sentinel = 'hostName'
1274 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1367899915)))) {
1275 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
1276 0 : return MsgValueError;
1277 : }
1278 0 : if ((!(Read((&(originAttributes)), (&(msg__)), (&(iter__)))))) {
1279 0 : FatalError("Error deserializing 'OriginAttributes'");
1280 0 : return MsgValueError;
1281 : }
1282 : // Sentinel = 'originAttributes'
1283 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2655275965)))) {
1284 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OriginAttributes'");
1285 0 : return MsgValueError;
1286 : }
1287 0 : if ((!(Read((&(flags)), (&(msg__)), (&(iter__)))))) {
1288 0 : FatalError("Error deserializing 'uint32_t'");
1289 0 : return MsgValueError;
1290 : }
1291 : // Sentinel = 'flags'
1292 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2550519284)))) {
1293 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
1294 0 : return MsgValueError;
1295 : }
1296 0 : if ((!(Read((&(networkInterface)), (&(msg__)), (&(iter__)))))) {
1297 0 : FatalError("Error deserializing 'nsCString'");
1298 0 : return MsgValueError;
1299 : }
1300 : // Sentinel = 'networkInterface'
1301 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1813484207)))) {
1302 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
1303 0 : return MsgValueError;
1304 : }
1305 0 : (msg__).EndRead(iter__, (msg__).type());
1306 0 : PNecko::Transition(PNecko::Msg_PDNSRequestConstructor__ID, (&(mState)));
1307 0 : actor = AllocPDNSRequestParent(hostName, originAttributes, flags, networkInterface);
1308 0 : if ((!(actor))) {
1309 0 : NS_WARNING("Error constructing actor PDNSRequestParent");
1310 0 : return MsgValueError;
1311 : }
1312 0 : (actor)->SetManager(this);
1313 0 : RegisterID(actor, (handle__).mId);
1314 0 : (actor)->SetIPCChannel(GetIPCChannel());
1315 0 : (mManagedPDNSRequestParent).PutEntry(actor);
1316 0 : (actor)->mState = mozilla::net::PDNSRequest::__Start;
1317 :
1318 0 : if ((!(RecvPDNSRequestConstructor(mozilla::Move(actor), mozilla::Move(hostName), mozilla::Move(originAttributes), mozilla::Move(flags), mozilla::Move(networkInterface))))) {
1319 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1320 : // Error handled in mozilla::ipc::IPCResult
1321 0 : return MsgProcessingError;
1322 : }
1323 :
1324 0 : return MsgProcessed;
1325 : }
1326 : case PNecko::Msg_PWebSocketEventListenerConstructor__ID:
1327 : {
1328 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1329 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1330 : }
1331 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PWebSocketEventListenerConstructor", OTHER);
1332 :
1333 0 : PickleIterator iter__(msg__);
1334 : ActorHandle handle__;
1335 : PWebSocketEventListenerParent* actor;
1336 : uint64_t aInnerWindowID;
1337 :
1338 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
1339 0 : FatalError("Error deserializing 'ActorHandle'");
1340 0 : return MsgValueError;
1341 : }
1342 : // Sentinel = 'actor'
1343 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1344 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1345 0 : return MsgValueError;
1346 : }
1347 0 : if ((!(Read((&(aInnerWindowID)), (&(msg__)), (&(iter__)))))) {
1348 0 : FatalError("Error deserializing 'uint64_t'");
1349 0 : return MsgValueError;
1350 : }
1351 : // Sentinel = 'aInnerWindowID'
1352 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3059251422)))) {
1353 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
1354 0 : return MsgValueError;
1355 : }
1356 0 : (msg__).EndRead(iter__, (msg__).type());
1357 0 : PNecko::Transition(PNecko::Msg_PWebSocketEventListenerConstructor__ID, (&(mState)));
1358 0 : actor = AllocPWebSocketEventListenerParent(aInnerWindowID);
1359 0 : if ((!(actor))) {
1360 0 : NS_WARNING("Error constructing actor PWebSocketEventListenerParent");
1361 0 : return MsgValueError;
1362 : }
1363 0 : (actor)->SetManager(this);
1364 0 : RegisterID(actor, (handle__).mId);
1365 0 : (actor)->SetIPCChannel(GetIPCChannel());
1366 0 : (mManagedPWebSocketEventListenerParent).PutEntry(actor);
1367 0 : (actor)->mState = mozilla::net::PWebSocketEventListener::__Start;
1368 :
1369 0 : if ((!(RecvPWebSocketEventListenerConstructor(mozilla::Move(actor), mozilla::Move(aInnerWindowID))))) {
1370 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1371 : // Error handled in mozilla::ipc::IPCResult
1372 0 : return MsgProcessingError;
1373 : }
1374 :
1375 0 : return MsgProcessed;
1376 : }
1377 : case PNecko::Msg_PredPredict__ID:
1378 : {
1379 1 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1380 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1381 : }
1382 2 : AUTO_PROFILER_LABEL("PNecko::Msg_PredPredict", OTHER);
1383 :
1384 1 : PickleIterator iter__(msg__);
1385 2 : OptionalURIParams targetURI;
1386 2 : OptionalURIParams sourceURI;
1387 : uint32_t reason;
1388 2 : OriginAttributes originAttributes;
1389 : bool hasVerifier;
1390 :
1391 1 : if ((!(Read((&(targetURI)), (&(msg__)), (&(iter__)))))) {
1392 0 : FatalError("Error deserializing 'OptionalURIParams'");
1393 0 : return MsgValueError;
1394 : }
1395 : // Sentinel = 'targetURI'
1396 1 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1361914354)))) {
1397 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
1398 0 : return MsgValueError;
1399 : }
1400 1 : if ((!(Read((&(sourceURI)), (&(msg__)), (&(iter__)))))) {
1401 0 : FatalError("Error deserializing 'OptionalURIParams'");
1402 0 : return MsgValueError;
1403 : }
1404 : // Sentinel = 'sourceURI'
1405 1 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3017222278)))) {
1406 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
1407 0 : return MsgValueError;
1408 : }
1409 1 : if ((!(Read((&(reason)), (&(msg__)), (&(iter__)))))) {
1410 0 : FatalError("Error deserializing 'uint32_t'");
1411 0 : return MsgValueError;
1412 : }
1413 : // Sentinel = 'reason'
1414 1 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4151390930)))) {
1415 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
1416 0 : return MsgValueError;
1417 : }
1418 1 : if ((!(Read((&(originAttributes)), (&(msg__)), (&(iter__)))))) {
1419 0 : FatalError("Error deserializing 'OriginAttributes'");
1420 0 : return MsgValueError;
1421 : }
1422 : // Sentinel = 'originAttributes'
1423 1 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2655275965)))) {
1424 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OriginAttributes'");
1425 0 : return MsgValueError;
1426 : }
1427 1 : if ((!(Read((&(hasVerifier)), (&(msg__)), (&(iter__)))))) {
1428 0 : FatalError("Error deserializing 'bool'");
1429 0 : return MsgValueError;
1430 : }
1431 : // Sentinel = 'hasVerifier'
1432 1 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1905198201)))) {
1433 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
1434 0 : return MsgValueError;
1435 : }
1436 1 : (msg__).EndRead(iter__, (msg__).type());
1437 1 : PNecko::Transition(PNecko::Msg_PredPredict__ID, (&(mState)));
1438 1 : if ((!(RecvPredPredict(mozilla::Move(targetURI), mozilla::Move(sourceURI), mozilla::Move(reason), mozilla::Move(originAttributes), mozilla::Move(hasVerifier))))) {
1439 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1440 : // Error handled in mozilla::ipc::IPCResult
1441 0 : return MsgProcessingError;
1442 : }
1443 :
1444 1 : return MsgProcessed;
1445 : }
1446 : case PNecko::Msg_PredLearn__ID:
1447 : {
1448 3 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1449 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1450 : }
1451 6 : AUTO_PROFILER_LABEL("PNecko::Msg_PredLearn", OTHER);
1452 :
1453 3 : PickleIterator iter__(msg__);
1454 6 : URIParams targetURI;
1455 6 : OptionalURIParams sourceURI;
1456 : uint32_t reason;
1457 6 : OriginAttributes originAttributes;
1458 :
1459 3 : if ((!(Read((&(targetURI)), (&(msg__)), (&(iter__)))))) {
1460 0 : FatalError("Error deserializing 'URIParams'");
1461 0 : return MsgValueError;
1462 : }
1463 : // Sentinel = 'targetURI'
1464 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1361914354)))) {
1465 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
1466 0 : return MsgValueError;
1467 : }
1468 3 : if ((!(Read((&(sourceURI)), (&(msg__)), (&(iter__)))))) {
1469 0 : FatalError("Error deserializing 'OptionalURIParams'");
1470 0 : return MsgValueError;
1471 : }
1472 : // Sentinel = 'sourceURI'
1473 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3017222278)))) {
1474 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
1475 0 : return MsgValueError;
1476 : }
1477 3 : if ((!(Read((&(reason)), (&(msg__)), (&(iter__)))))) {
1478 0 : FatalError("Error deserializing 'uint32_t'");
1479 0 : return MsgValueError;
1480 : }
1481 : // Sentinel = 'reason'
1482 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4151390930)))) {
1483 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
1484 0 : return MsgValueError;
1485 : }
1486 3 : if ((!(Read((&(originAttributes)), (&(msg__)), (&(iter__)))))) {
1487 0 : FatalError("Error deserializing 'OriginAttributes'");
1488 0 : return MsgValueError;
1489 : }
1490 : // Sentinel = 'originAttributes'
1491 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2655275965)))) {
1492 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OriginAttributes'");
1493 0 : return MsgValueError;
1494 : }
1495 3 : (msg__).EndRead(iter__, (msg__).type());
1496 3 : PNecko::Transition(PNecko::Msg_PredLearn__ID, (&(mState)));
1497 3 : if ((!(RecvPredLearn(mozilla::Move(targetURI), mozilla::Move(sourceURI), mozilla::Move(reason), mozilla::Move(originAttributes))))) {
1498 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1499 : // Error handled in mozilla::ipc::IPCResult
1500 0 : return MsgProcessingError;
1501 : }
1502 :
1503 3 : return MsgProcessed;
1504 : }
1505 : case PNecko::Msg_PredReset__ID:
1506 : {
1507 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1508 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1509 : }
1510 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PredReset", OTHER);
1511 :
1512 0 : PNecko::Transition(PNecko::Msg_PredReset__ID, (&(mState)));
1513 0 : if ((!(RecvPredReset()))) {
1514 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1515 : // Error handled in mozilla::ipc::IPCResult
1516 0 : return MsgProcessingError;
1517 : }
1518 :
1519 0 : return MsgProcessed;
1520 : }
1521 : case PNecko::Msg_SpeculativeConnect__ID:
1522 : {
1523 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1524 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1525 : }
1526 0 : AUTO_PROFILER_LABEL("PNecko::Msg_SpeculativeConnect", OTHER);
1527 :
1528 0 : PickleIterator iter__(msg__);
1529 0 : URIParams uri;
1530 0 : Principal principal;
1531 : bool anonymous;
1532 :
1533 0 : if ((!(Read((&(uri)), (&(msg__)), (&(iter__)))))) {
1534 0 : FatalError("Error deserializing 'URIParams'");
1535 0 : return MsgValueError;
1536 : }
1537 : // Sentinel = 'uri'
1538 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
1539 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
1540 0 : return MsgValueError;
1541 : }
1542 0 : if ((!(Read((&(principal)), (&(msg__)), (&(iter__)))))) {
1543 0 : FatalError("Error deserializing 'Principal'");
1544 0 : return MsgValueError;
1545 : }
1546 : // Sentinel = 'principal'
1547 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
1548 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
1549 0 : return MsgValueError;
1550 : }
1551 0 : if ((!(Read((&(anonymous)), (&(msg__)), (&(iter__)))))) {
1552 0 : FatalError("Error deserializing 'bool'");
1553 0 : return MsgValueError;
1554 : }
1555 : // Sentinel = 'anonymous'
1556 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 479504470)))) {
1557 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
1558 0 : return MsgValueError;
1559 : }
1560 0 : (msg__).EndRead(iter__, (msg__).type());
1561 0 : PNecko::Transition(PNecko::Msg_SpeculativeConnect__ID, (&(mState)));
1562 0 : if ((!(RecvSpeculativeConnect(mozilla::Move(uri), mozilla::Move(principal), mozilla::Move(anonymous))))) {
1563 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1564 : // Error handled in mozilla::ipc::IPCResult
1565 0 : return MsgProcessingError;
1566 : }
1567 :
1568 0 : return MsgProcessed;
1569 : }
1570 : case PNecko::Msg_HTMLDNSPrefetch__ID:
1571 : {
1572 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1573 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1574 : }
1575 0 : AUTO_PROFILER_LABEL("PNecko::Msg_HTMLDNSPrefetch", OTHER);
1576 :
1577 0 : PickleIterator iter__(msg__);
1578 0 : nsString hostname;
1579 0 : OriginAttributes originAttributes;
1580 : uint16_t flags;
1581 :
1582 0 : if ((!(Read((&(hostname)), (&(msg__)), (&(iter__)))))) {
1583 0 : FatalError("Error deserializing 'nsString'");
1584 0 : return MsgValueError;
1585 : }
1586 : // Sentinel = 'hostname'
1587 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4013034923)))) {
1588 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
1589 0 : return MsgValueError;
1590 : }
1591 0 : if ((!(Read((&(originAttributes)), (&(msg__)), (&(iter__)))))) {
1592 0 : FatalError("Error deserializing 'OriginAttributes'");
1593 0 : return MsgValueError;
1594 : }
1595 : // Sentinel = 'originAttributes'
1596 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2655275965)))) {
1597 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OriginAttributes'");
1598 0 : return MsgValueError;
1599 : }
1600 0 : if ((!(Read((&(flags)), (&(msg__)), (&(iter__)))))) {
1601 0 : FatalError("Error deserializing 'uint16_t'");
1602 0 : return MsgValueError;
1603 : }
1604 : // Sentinel = 'flags'
1605 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2550519284)))) {
1606 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint16_t'");
1607 0 : return MsgValueError;
1608 : }
1609 0 : (msg__).EndRead(iter__, (msg__).type());
1610 0 : PNecko::Transition(PNecko::Msg_HTMLDNSPrefetch__ID, (&(mState)));
1611 0 : if ((!(RecvHTMLDNSPrefetch(mozilla::Move(hostname), mozilla::Move(originAttributes), mozilla::Move(flags))))) {
1612 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1613 : // Error handled in mozilla::ipc::IPCResult
1614 0 : return MsgProcessingError;
1615 : }
1616 :
1617 0 : return MsgProcessed;
1618 : }
1619 : case PNecko::Msg_CancelHTMLDNSPrefetch__ID:
1620 : {
1621 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1622 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1623 : }
1624 0 : AUTO_PROFILER_LABEL("PNecko::Msg_CancelHTMLDNSPrefetch", OTHER);
1625 :
1626 0 : PickleIterator iter__(msg__);
1627 0 : nsString hostname;
1628 0 : OriginAttributes originAttributes;
1629 : uint16_t flags;
1630 : nsresult reason;
1631 :
1632 0 : if ((!(Read((&(hostname)), (&(msg__)), (&(iter__)))))) {
1633 0 : FatalError("Error deserializing 'nsString'");
1634 0 : return MsgValueError;
1635 : }
1636 : // Sentinel = 'hostname'
1637 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4013034923)))) {
1638 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
1639 0 : return MsgValueError;
1640 : }
1641 0 : if ((!(Read((&(originAttributes)), (&(msg__)), (&(iter__)))))) {
1642 0 : FatalError("Error deserializing 'OriginAttributes'");
1643 0 : return MsgValueError;
1644 : }
1645 : // Sentinel = 'originAttributes'
1646 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2655275965)))) {
1647 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OriginAttributes'");
1648 0 : return MsgValueError;
1649 : }
1650 0 : if ((!(Read((&(flags)), (&(msg__)), (&(iter__)))))) {
1651 0 : FatalError("Error deserializing 'uint16_t'");
1652 0 : return MsgValueError;
1653 : }
1654 : // Sentinel = 'flags'
1655 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2550519284)))) {
1656 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint16_t'");
1657 0 : return MsgValueError;
1658 : }
1659 0 : if ((!(Read((&(reason)), (&(msg__)), (&(iter__)))))) {
1660 0 : FatalError("Error deserializing 'nsresult'");
1661 0 : return MsgValueError;
1662 : }
1663 : // Sentinel = 'reason'
1664 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4151390930)))) {
1665 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
1666 0 : return MsgValueError;
1667 : }
1668 0 : (msg__).EndRead(iter__, (msg__).type());
1669 0 : PNecko::Transition(PNecko::Msg_CancelHTMLDNSPrefetch__ID, (&(mState)));
1670 0 : if ((!(RecvCancelHTMLDNSPrefetch(mozilla::Move(hostname), mozilla::Move(originAttributes), mozilla::Move(flags), mozilla::Move(reason))))) {
1671 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1672 : // Error handled in mozilla::ipc::IPCResult
1673 0 : return MsgProcessingError;
1674 : }
1675 :
1676 0 : return MsgProcessed;
1677 : }
1678 : case PNecko::Msg_PDataChannelConstructor__ID:
1679 : {
1680 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1681 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1682 : }
1683 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PDataChannelConstructor", OTHER);
1684 :
1685 0 : PickleIterator iter__(msg__);
1686 : ActorHandle handle__;
1687 : PDataChannelParent* actor;
1688 : uint32_t channelId;
1689 :
1690 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
1691 0 : FatalError("Error deserializing 'ActorHandle'");
1692 0 : return MsgValueError;
1693 : }
1694 : // Sentinel = 'actor'
1695 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1696 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1697 0 : return MsgValueError;
1698 : }
1699 0 : if ((!(Read((&(channelId)), (&(msg__)), (&(iter__)))))) {
1700 0 : FatalError("Error deserializing 'uint32_t'");
1701 0 : return MsgValueError;
1702 : }
1703 : // Sentinel = 'channelId'
1704 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 6854027)))) {
1705 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
1706 0 : return MsgValueError;
1707 : }
1708 0 : (msg__).EndRead(iter__, (msg__).type());
1709 0 : PNecko::Transition(PNecko::Msg_PDataChannelConstructor__ID, (&(mState)));
1710 0 : actor = AllocPDataChannelParent(channelId);
1711 0 : if ((!(actor))) {
1712 0 : NS_WARNING("Error constructing actor PDataChannelParent");
1713 0 : return MsgValueError;
1714 : }
1715 0 : (actor)->SetManager(this);
1716 0 : RegisterID(actor, (handle__).mId);
1717 0 : (actor)->SetIPCChannel(GetIPCChannel());
1718 0 : (mManagedPDataChannelParent).PutEntry(actor);
1719 0 : (actor)->mState = mozilla::net::PDataChannel::__Start;
1720 :
1721 0 : if ((!(RecvPDataChannelConstructor(mozilla::Move(actor), mozilla::Move(channelId))))) {
1722 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1723 : // Error handled in mozilla::ipc::IPCResult
1724 0 : return MsgProcessingError;
1725 : }
1726 :
1727 0 : return MsgProcessed;
1728 : }
1729 : case PNecko::Msg_PFileChannelConstructor__ID:
1730 : {
1731 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1732 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1733 : }
1734 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PFileChannelConstructor", OTHER);
1735 :
1736 0 : PickleIterator iter__(msg__);
1737 : ActorHandle handle__;
1738 : PFileChannelParent* actor;
1739 : uint32_t channelId;
1740 :
1741 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
1742 0 : FatalError("Error deserializing 'ActorHandle'");
1743 0 : return MsgValueError;
1744 : }
1745 : // Sentinel = 'actor'
1746 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1747 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1748 0 : return MsgValueError;
1749 : }
1750 0 : if ((!(Read((&(channelId)), (&(msg__)), (&(iter__)))))) {
1751 0 : FatalError("Error deserializing 'uint32_t'");
1752 0 : return MsgValueError;
1753 : }
1754 : // Sentinel = 'channelId'
1755 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 6854027)))) {
1756 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
1757 0 : return MsgValueError;
1758 : }
1759 0 : (msg__).EndRead(iter__, (msg__).type());
1760 0 : PNecko::Transition(PNecko::Msg_PFileChannelConstructor__ID, (&(mState)));
1761 0 : actor = AllocPFileChannelParent(channelId);
1762 0 : if ((!(actor))) {
1763 0 : NS_WARNING("Error constructing actor PFileChannelParent");
1764 0 : return MsgValueError;
1765 : }
1766 0 : (actor)->SetManager(this);
1767 0 : RegisterID(actor, (handle__).mId);
1768 0 : (actor)->SetIPCChannel(GetIPCChannel());
1769 0 : (mManagedPFileChannelParent).PutEntry(actor);
1770 0 : (actor)->mState = mozilla::net::PFileChannel::__Start;
1771 :
1772 0 : if ((!(RecvPFileChannelConstructor(mozilla::Move(actor), mozilla::Move(channelId))))) {
1773 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1774 : // Error handled in mozilla::ipc::IPCResult
1775 0 : return MsgProcessingError;
1776 : }
1777 :
1778 0 : return MsgProcessed;
1779 : }
1780 : case PNecko::Msg_PRtspControllerConstructor__ID:
1781 : {
1782 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1783 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1784 : }
1785 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PRtspControllerConstructor", OTHER);
1786 :
1787 0 : PickleIterator iter__(msg__);
1788 : ActorHandle handle__;
1789 : PRtspControllerParent* actor;
1790 :
1791 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
1792 0 : FatalError("Error deserializing 'ActorHandle'");
1793 0 : return MsgValueError;
1794 : }
1795 : // Sentinel = 'actor'
1796 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1797 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1798 0 : return MsgValueError;
1799 : }
1800 0 : (msg__).EndRead(iter__, (msg__).type());
1801 0 : PNecko::Transition(PNecko::Msg_PRtspControllerConstructor__ID, (&(mState)));
1802 0 : actor = AllocPRtspControllerParent();
1803 0 : if ((!(actor))) {
1804 0 : NS_WARNING("Error constructing actor PRtspControllerParent");
1805 0 : return MsgValueError;
1806 : }
1807 0 : (actor)->SetManager(this);
1808 0 : RegisterID(actor, (handle__).mId);
1809 0 : (actor)->SetIPCChannel(GetIPCChannel());
1810 0 : (mManagedPRtspControllerParent).PutEntry(actor);
1811 0 : (actor)->mState = mozilla::net::PRtspController::__Start;
1812 :
1813 0 : if ((!(RecvPRtspControllerConstructor(mozilla::Move(actor))))) {
1814 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1815 : // Error handled in mozilla::ipc::IPCResult
1816 0 : return MsgProcessingError;
1817 : }
1818 :
1819 0 : return MsgProcessed;
1820 : }
1821 : case PNecko::Msg_PRtspChannelConstructor__ID:
1822 : {
1823 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1824 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1825 : }
1826 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PRtspChannelConstructor", OTHER);
1827 :
1828 0 : PickleIterator iter__(msg__);
1829 : ActorHandle handle__;
1830 : PRtspChannelParent* actor;
1831 0 : RtspChannelConnectArgs args;
1832 :
1833 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
1834 0 : FatalError("Error deserializing 'ActorHandle'");
1835 0 : return MsgValueError;
1836 : }
1837 : // Sentinel = 'actor'
1838 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1839 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1840 0 : return MsgValueError;
1841 : }
1842 0 : if ((!(Read((&(args)), (&(msg__)), (&(iter__)))))) {
1843 0 : FatalError("Error deserializing 'RtspChannelConnectArgs'");
1844 0 : return MsgValueError;
1845 : }
1846 : // Sentinel = 'args'
1847 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2823760587)))) {
1848 0 : mozilla::ipc::SentinelReadError("Error deserializing 'RtspChannelConnectArgs'");
1849 0 : return MsgValueError;
1850 : }
1851 0 : (msg__).EndRead(iter__, (msg__).type());
1852 0 : PNecko::Transition(PNecko::Msg_PRtspChannelConstructor__ID, (&(mState)));
1853 0 : actor = AllocPRtspChannelParent(args);
1854 0 : if ((!(actor))) {
1855 0 : NS_WARNING("Error constructing actor PRtspChannelParent");
1856 0 : return MsgValueError;
1857 : }
1858 0 : (actor)->SetManager(this);
1859 0 : RegisterID(actor, (handle__).mId);
1860 0 : (actor)->SetIPCChannel(GetIPCChannel());
1861 0 : (mManagedPRtspChannelParent).PutEntry(actor);
1862 0 : (actor)->mState = mozilla::net::PRtspChannel::__Start;
1863 :
1864 0 : if ((!(RecvPRtspChannelConstructor(mozilla::Move(actor), mozilla::Move(args))))) {
1865 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1866 : // Error handled in mozilla::ipc::IPCResult
1867 0 : return MsgProcessingError;
1868 : }
1869 :
1870 0 : return MsgProcessed;
1871 : }
1872 : case PNecko::Msg_PChannelDiverterConstructor__ID:
1873 : {
1874 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1875 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1876 : }
1877 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PChannelDiverterConstructor", OTHER);
1878 :
1879 0 : PickleIterator iter__(msg__);
1880 : ActorHandle handle__;
1881 : PChannelDiverterParent* actor;
1882 0 : ChannelDiverterArgs channel;
1883 :
1884 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
1885 0 : FatalError("Error deserializing 'ActorHandle'");
1886 0 : return MsgValueError;
1887 : }
1888 : // Sentinel = 'actor'
1889 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1890 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1891 0 : return MsgValueError;
1892 : }
1893 0 : if ((!(Read((&(channel)), (&(msg__)), (&(iter__)))))) {
1894 0 : FatalError("Error deserializing 'ChannelDiverterArgs'");
1895 0 : return MsgValueError;
1896 : }
1897 : // Sentinel = 'channel'
1898 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 452840382)))) {
1899 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ChannelDiverterArgs'");
1900 0 : return MsgValueError;
1901 : }
1902 0 : (msg__).EndRead(iter__, (msg__).type());
1903 0 : PNecko::Transition(PNecko::Msg_PChannelDiverterConstructor__ID, (&(mState)));
1904 0 : actor = AllocPChannelDiverterParent(channel);
1905 0 : if ((!(actor))) {
1906 0 : NS_WARNING("Error constructing actor PChannelDiverterParent");
1907 0 : return MsgValueError;
1908 : }
1909 0 : (actor)->SetManager(this);
1910 0 : RegisterID(actor, (handle__).mId);
1911 0 : (actor)->SetIPCChannel(GetIPCChannel());
1912 0 : (mManagedPChannelDiverterParent).PutEntry(actor);
1913 0 : (actor)->mState = mozilla::net::PChannelDiverter::__Start;
1914 :
1915 0 : if ((!(RecvPChannelDiverterConstructor(mozilla::Move(actor), mozilla::Move(channel))))) {
1916 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1917 : // Error handled in mozilla::ipc::IPCResult
1918 0 : return MsgProcessingError;
1919 : }
1920 :
1921 0 : return MsgProcessed;
1922 : }
1923 : case PNecko::Msg_OnAuthAvailable__ID:
1924 : {
1925 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1926 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1927 : }
1928 0 : AUTO_PROFILER_LABEL("PNecko::Msg_OnAuthAvailable", OTHER);
1929 :
1930 0 : PickleIterator iter__(msg__);
1931 : uint64_t callbackId;
1932 0 : nsString user;
1933 0 : nsString password;
1934 0 : nsString domain;
1935 :
1936 0 : if ((!(Read((&(callbackId)), (&(msg__)), (&(iter__)))))) {
1937 0 : FatalError("Error deserializing 'uint64_t'");
1938 0 : return MsgValueError;
1939 : }
1940 : // Sentinel = 'callbackId'
1941 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4163989448)))) {
1942 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
1943 0 : return MsgValueError;
1944 : }
1945 0 : if ((!(Read((&(user)), (&(msg__)), (&(iter__)))))) {
1946 0 : FatalError("Error deserializing 'nsString'");
1947 0 : return MsgValueError;
1948 : }
1949 : // Sentinel = 'user'
1950 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 479507925)))) {
1951 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
1952 0 : return MsgValueError;
1953 : }
1954 0 : if ((!(Read((&(password)), (&(msg__)), (&(iter__)))))) {
1955 0 : FatalError("Error deserializing 'nsString'");
1956 0 : return MsgValueError;
1957 : }
1958 : // Sentinel = 'password'
1959 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2527534683)))) {
1960 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
1961 0 : return MsgValueError;
1962 : }
1963 0 : if ((!(Read((&(domain)), (&(msg__)), (&(iter__)))))) {
1964 0 : FatalError("Error deserializing 'nsString'");
1965 0 : return MsgValueError;
1966 : }
1967 : // Sentinel = 'domain'
1968 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 702229122)))) {
1969 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
1970 0 : return MsgValueError;
1971 : }
1972 0 : (msg__).EndRead(iter__, (msg__).type());
1973 0 : PNecko::Transition(PNecko::Msg_OnAuthAvailable__ID, (&(mState)));
1974 0 : if ((!(RecvOnAuthAvailable(mozilla::Move(callbackId), mozilla::Move(user), mozilla::Move(password), mozilla::Move(domain))))) {
1975 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1976 : // Error handled in mozilla::ipc::IPCResult
1977 0 : return MsgProcessingError;
1978 : }
1979 :
1980 0 : return MsgProcessed;
1981 : }
1982 : case PNecko::Msg_OnAuthCancelled__ID:
1983 : {
1984 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1985 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1986 : }
1987 0 : AUTO_PROFILER_LABEL("PNecko::Msg_OnAuthCancelled", OTHER);
1988 :
1989 0 : PickleIterator iter__(msg__);
1990 : uint64_t callbackId;
1991 : bool userCancel;
1992 :
1993 0 : if ((!(Read((&(callbackId)), (&(msg__)), (&(iter__)))))) {
1994 0 : FatalError("Error deserializing 'uint64_t'");
1995 0 : return MsgValueError;
1996 : }
1997 : // Sentinel = 'callbackId'
1998 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4163989448)))) {
1999 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2000 0 : return MsgValueError;
2001 : }
2002 0 : if ((!(Read((&(userCancel)), (&(msg__)), (&(iter__)))))) {
2003 0 : FatalError("Error deserializing 'bool'");
2004 0 : return MsgValueError;
2005 : }
2006 : // Sentinel = 'userCancel'
2007 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2063943853)))) {
2008 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
2009 0 : return MsgValueError;
2010 : }
2011 0 : (msg__).EndRead(iter__, (msg__).type());
2012 0 : PNecko::Transition(PNecko::Msg_OnAuthCancelled__ID, (&(mState)));
2013 0 : if ((!(RecvOnAuthCancelled(mozilla::Move(callbackId), mozilla::Move(userCancel))))) {
2014 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2015 : // Error handled in mozilla::ipc::IPCResult
2016 0 : return MsgProcessingError;
2017 : }
2018 :
2019 0 : return MsgProcessed;
2020 : }
2021 : case PNecko::Msg_RemoveRequestContext__ID:
2022 : {
2023 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2024 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2025 : }
2026 0 : AUTO_PROFILER_LABEL("PNecko::Msg_RemoveRequestContext", OTHER);
2027 :
2028 0 : PickleIterator iter__(msg__);
2029 : uint64_t rcid;
2030 :
2031 0 : if ((!(Read((&(rcid)), (&(msg__)), (&(iter__)))))) {
2032 0 : FatalError("Error deserializing 'uint64_t'");
2033 0 : return MsgValueError;
2034 : }
2035 : // Sentinel = 'rcid'
2036 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3280983874)))) {
2037 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2038 0 : return MsgValueError;
2039 : }
2040 0 : (msg__).EndRead(iter__, (msg__).type());
2041 0 : PNecko::Transition(PNecko::Msg_RemoveRequestContext__ID, (&(mState)));
2042 0 : if ((!(RecvRemoveRequestContext(mozilla::Move(rcid))))) {
2043 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2044 : // Error handled in mozilla::ipc::IPCResult
2045 0 : return MsgProcessingError;
2046 : }
2047 :
2048 0 : return MsgProcessed;
2049 : }
2050 : case PNecko::Msg_PAltDataOutputStreamConstructor__ID:
2051 : {
2052 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2053 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2054 : }
2055 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PAltDataOutputStreamConstructor", OTHER);
2056 :
2057 0 : PickleIterator iter__(msg__);
2058 : ActorHandle handle__;
2059 : PAltDataOutputStreamParent* actor;
2060 0 : nsCString type;
2061 : PHttpChannelParent* channel;
2062 :
2063 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
2064 0 : FatalError("Error deserializing 'ActorHandle'");
2065 0 : return MsgValueError;
2066 : }
2067 : // Sentinel = 'actor'
2068 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2069 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2070 0 : return MsgValueError;
2071 : }
2072 0 : if ((!(Read((&(type)), (&(msg__)), (&(iter__)))))) {
2073 0 : FatalError("Error deserializing 'nsCString'");
2074 0 : return MsgValueError;
2075 : }
2076 : // Sentinel = 'type'
2077 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2982068540)))) {
2078 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
2079 0 : return MsgValueError;
2080 : }
2081 0 : if ((!(Read((&(channel)), (&(msg__)), (&(iter__)), false)))) {
2082 0 : FatalError("Error deserializing 'PHttpChannelParent'");
2083 0 : return MsgValueError;
2084 : }
2085 : // Sentinel = 'channel'
2086 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 452840382)))) {
2087 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PHttpChannelParent'");
2088 0 : return MsgValueError;
2089 : }
2090 0 : (msg__).EndRead(iter__, (msg__).type());
2091 0 : PNecko::Transition(PNecko::Msg_PAltDataOutputStreamConstructor__ID, (&(mState)));
2092 0 : actor = AllocPAltDataOutputStreamParent(type, channel);
2093 0 : if ((!(actor))) {
2094 0 : NS_WARNING("Error constructing actor PAltDataOutputStreamParent");
2095 0 : return MsgValueError;
2096 : }
2097 0 : (actor)->SetManager(this);
2098 0 : RegisterID(actor, (handle__).mId);
2099 0 : (actor)->SetIPCChannel(GetIPCChannel());
2100 0 : (mManagedPAltDataOutputStreamParent).PutEntry(actor);
2101 0 : (actor)->mState = mozilla::net::PAltDataOutputStream::__Start;
2102 :
2103 0 : if ((!(RecvPAltDataOutputStreamConstructor(mozilla::Move(actor), mozilla::Move(type), mozilla::Move(channel))))) {
2104 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2105 : // Error handled in mozilla::ipc::IPCResult
2106 0 : return MsgProcessingError;
2107 : }
2108 :
2109 0 : return MsgProcessed;
2110 : }
2111 : case PNecko::Msg_PStunAddrsRequestConstructor__ID:
2112 : {
2113 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2114 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2115 : }
2116 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PStunAddrsRequestConstructor", OTHER);
2117 :
2118 0 : PickleIterator iter__(msg__);
2119 : ActorHandle handle__;
2120 : PStunAddrsRequestParent* actor;
2121 :
2122 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
2123 0 : FatalError("Error deserializing 'ActorHandle'");
2124 0 : return MsgValueError;
2125 : }
2126 : // Sentinel = 'actor'
2127 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2128 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2129 0 : return MsgValueError;
2130 : }
2131 0 : (msg__).EndRead(iter__, (msg__).type());
2132 0 : PNecko::Transition(PNecko::Msg_PStunAddrsRequestConstructor__ID, (&(mState)));
2133 0 : actor = AllocPStunAddrsRequestParent();
2134 0 : if ((!(actor))) {
2135 0 : NS_WARNING("Error constructing actor PStunAddrsRequestParent");
2136 0 : return MsgValueError;
2137 : }
2138 0 : (actor)->SetManager(this);
2139 0 : RegisterID(actor, (handle__).mId);
2140 0 : (actor)->SetIPCChannel(GetIPCChannel());
2141 0 : (mManagedPStunAddrsRequestParent).PutEntry(actor);
2142 0 : (actor)->mState = mozilla::net::PStunAddrsRequest::__Start;
2143 :
2144 0 : if ((!(RecvPStunAddrsRequestConstructor(mozilla::Move(actor))))) {
2145 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2146 : // Error handled in mozilla::ipc::IPCResult
2147 0 : return MsgProcessingError;
2148 : }
2149 :
2150 0 : return MsgProcessed;
2151 : }
2152 : case PNecko::Msg_NotifyCurrentTopLevelOuterContentWindowId__ID:
2153 : {
2154 2 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2155 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2156 : }
2157 4 : AUTO_PROFILER_LABEL("PNecko::Msg_NotifyCurrentTopLevelOuterContentWindowId", OTHER);
2158 :
2159 2 : PickleIterator iter__(msg__);
2160 : uint64_t windowId;
2161 :
2162 2 : if ((!(Read((&(windowId)), (&(msg__)), (&(iter__)))))) {
2163 0 : FatalError("Error deserializing 'uint64_t'");
2164 0 : return MsgValueError;
2165 : }
2166 : // Sentinel = 'windowId'
2167 2 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 719502035)))) {
2168 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2169 0 : return MsgValueError;
2170 : }
2171 2 : (msg__).EndRead(iter__, (msg__).type());
2172 2 : PNecko::Transition(PNecko::Msg_NotifyCurrentTopLevelOuterContentWindowId__ID, (&(mState)));
2173 2 : if ((!(RecvNotifyCurrentTopLevelOuterContentWindowId(mozilla::Move(windowId))))) {
2174 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2175 : // Error handled in mozilla::ipc::IPCResult
2176 0 : return MsgProcessingError;
2177 : }
2178 :
2179 2 : return MsgProcessed;
2180 : }
2181 : case PNecko::Msg_GetExtensionStream__ID:
2182 : {
2183 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2184 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2185 : }
2186 0 : AUTO_PROFILER_LABEL("PNecko::Msg_GetExtensionStream", OTHER);
2187 :
2188 0 : PickleIterator iter__(msg__);
2189 0 : URIParams uri;
2190 0 : LoadInfoArgs loadInfo;
2191 :
2192 0 : if ((!(Read((&(uri)), (&(msg__)), (&(iter__)))))) {
2193 0 : FatalError("Error deserializing 'URIParams'");
2194 0 : return MsgValueError;
2195 : }
2196 : // Sentinel = 'uri'
2197 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
2198 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
2199 0 : return MsgValueError;
2200 : }
2201 0 : if ((!(Read((&(loadInfo)), (&(msg__)), (&(iter__)))))) {
2202 0 : FatalError("Error deserializing 'LoadInfoArgs'");
2203 0 : return MsgValueError;
2204 : }
2205 : // Sentinel = 'loadInfo'
2206 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2597515304)))) {
2207 0 : mozilla::ipc::SentinelReadError("Error deserializing 'LoadInfoArgs'");
2208 0 : return MsgValueError;
2209 : }
2210 0 : (msg__).EndRead(iter__, (msg__).type());
2211 0 : PNecko::Transition(PNecko::Msg_GetExtensionStream__ID, (&(mState)));
2212 0 : int32_t id__ = Id();
2213 :
2214 0 : int32_t seqno__ = (msg__).seqno();
2215 0 : WeakPtr<PNeckoParent> self__ = this;
2216 0 : GetExtensionStreamResolver resolver = [this, self__, id__, seqno__](OptionalIPCStream aParam) {
2217 0 : if ((!(self__))) {
2218 0 : NS_WARNING("Not resolving promise because actor is dead.");
2219 0 : return;
2220 : }
2221 0 : if ((mState) == (PNecko::__Dead)) {
2222 0 : NS_WARNING("Not resolving promise because actor is destroyed.");
2223 0 : return;
2224 : }
2225 0 : bool resolve__ = true;
2226 0 : OptionalIPCStream stream;
2227 0 : stream = aParam;
2228 0 : IPC::Message* reply__ = PNecko::Reply_GetExtensionStream(id__);
2229 0 : Write(resolve__, reply__);
2230 : // Sentinel = 'resolve__'
2231 0 : (reply__)->WriteSentinel(3997392463);
2232 0 : Write(stream, reply__);
2233 : // Sentinel = 'stream'
2234 0 : (reply__)->WriteSentinel(4152748422);
2235 0 : (reply__)->set_reply();
2236 0 : (reply__)->set_seqno(seqno__);
2237 :
2238 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2239 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2240 : }
2241 0 : bool sendok__ = (GetIPCChannel())->Send(reply__);
2242 0 : if ((!(sendok__))) {
2243 0 : NS_WARNING("Error sending reply");
2244 : }
2245 0 : };
2246 0 : if ((!(RecvGetExtensionStream(mozilla::Move(uri), mozilla::Move(loadInfo), mozilla::Move(resolver))))) {
2247 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2248 : // Error handled in mozilla::ipc::IPCResult
2249 0 : return MsgProcessingError;
2250 : }
2251 :
2252 0 : return MsgProcessed;
2253 : }
2254 : case PNecko::Msg_GetExtensionFD__ID:
2255 : {
2256 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2257 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2258 : }
2259 0 : AUTO_PROFILER_LABEL("PNecko::Msg_GetExtensionFD", OTHER);
2260 :
2261 0 : PickleIterator iter__(msg__);
2262 0 : URIParams uri;
2263 0 : OptionalLoadInfoArgs loadInfo;
2264 :
2265 0 : if ((!(Read((&(uri)), (&(msg__)), (&(iter__)))))) {
2266 0 : FatalError("Error deserializing 'URIParams'");
2267 0 : return MsgValueError;
2268 : }
2269 : // Sentinel = 'uri'
2270 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
2271 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
2272 0 : return MsgValueError;
2273 : }
2274 0 : if ((!(Read((&(loadInfo)), (&(msg__)), (&(iter__)))))) {
2275 0 : FatalError("Error deserializing 'OptionalLoadInfoArgs'");
2276 0 : return MsgValueError;
2277 : }
2278 : // Sentinel = 'loadInfo'
2279 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2597515304)))) {
2280 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OptionalLoadInfoArgs'");
2281 0 : return MsgValueError;
2282 : }
2283 0 : (msg__).EndRead(iter__, (msg__).type());
2284 0 : PNecko::Transition(PNecko::Msg_GetExtensionFD__ID, (&(mState)));
2285 0 : int32_t id__ = Id();
2286 :
2287 0 : int32_t seqno__ = (msg__).seqno();
2288 0 : WeakPtr<PNeckoParent> self__ = this;
2289 0 : GetExtensionFDResolver resolver = [this, self__, id__, seqno__](FileDescriptor aParam) {
2290 0 : if ((!(self__))) {
2291 0 : NS_WARNING("Not resolving promise because actor is dead.");
2292 0 : return;
2293 : }
2294 0 : if ((mState) == (PNecko::__Dead)) {
2295 0 : NS_WARNING("Not resolving promise because actor is destroyed.");
2296 0 : return;
2297 : }
2298 0 : bool resolve__ = true;
2299 0 : FileDescriptor fd;
2300 0 : fd = aParam;
2301 0 : IPC::Message* reply__ = PNecko::Reply_GetExtensionFD(id__);
2302 0 : Write(resolve__, reply__);
2303 : // Sentinel = 'resolve__'
2304 0 : (reply__)->WriteSentinel(3997392463);
2305 0 : Write(fd, reply__);
2306 : // Sentinel = 'fd'
2307 0 : (reply__)->WriteSentinel(628535764);
2308 0 : (reply__)->set_reply();
2309 0 : (reply__)->set_seqno(seqno__);
2310 :
2311 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2312 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2313 : }
2314 0 : bool sendok__ = (GetIPCChannel())->Send(reply__);
2315 0 : if ((!(sendok__))) {
2316 0 : NS_WARNING("Error sending reply");
2317 : }
2318 0 : };
2319 0 : if ((!(RecvGetExtensionFD(mozilla::Move(uri), mozilla::Move(loadInfo), mozilla::Move(resolver))))) {
2320 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2321 : // Error handled in mozilla::ipc::IPCResult
2322 0 : return MsgProcessingError;
2323 : }
2324 :
2325 0 : return MsgProcessed;
2326 : }
2327 : case PNecko::Reply_PTransportProviderConstructor__ID:
2328 : {
2329 0 : return MsgProcessed;
2330 : }
2331 : case PNecko::Reply_PTCPSocketConstructor__ID:
2332 : {
2333 0 : return MsgProcessed;
2334 : }
2335 : case PNecko::Msg_PTCPSocketConstructor__ID:
2336 : {
2337 0 : if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2338 0 : mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2339 : }
2340 0 : AUTO_PROFILER_LABEL("PNecko::Msg_PTCPSocketConstructor", OTHER);
2341 :
2342 0 : PickleIterator iter__(msg__);
2343 : ActorHandle handle__;
2344 : PTCPSocketParent* actor;
2345 0 : nsString host;
2346 : uint16_t port;
2347 :
2348 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
2349 0 : FatalError("Error deserializing 'ActorHandle'");
2350 0 : return MsgValueError;
2351 : }
2352 : // Sentinel = 'actor'
2353 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2354 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2355 0 : return MsgValueError;
2356 : }
2357 0 : if ((!(Read((&(host)), (&(msg__)), (&(iter__)))))) {
2358 0 : FatalError("Error deserializing 'nsString'");
2359 0 : return MsgValueError;
2360 : }
2361 : // Sentinel = 'host'
2362 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4070301394)))) {
2363 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
2364 0 : return MsgValueError;
2365 : }
2366 0 : if ((!(Read((&(port)), (&(msg__)), (&(iter__)))))) {
2367 0 : FatalError("Error deserializing 'uint16_t'");
2368 0 : return MsgValueError;
2369 : }
2370 : // Sentinel = 'port'
2371 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3633211549)))) {
2372 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint16_t'");
2373 0 : return MsgValueError;
2374 : }
2375 0 : (msg__).EndRead(iter__, (msg__).type());
2376 0 : PNecko::Transition(PNecko::Msg_PTCPSocketConstructor__ID, (&(mState)));
2377 0 : actor = AllocPTCPSocketParent(host, port);
2378 0 : if ((!(actor))) {
2379 0 : NS_WARNING("Error constructing actor PTCPSocketParent");
2380 0 : return MsgValueError;
2381 : }
2382 0 : (actor)->SetManager(this);
2383 0 : RegisterID(actor, (handle__).mId);
2384 0 : (actor)->SetIPCChannel(GetIPCChannel());
2385 0 : (mManagedPTCPSocketParent).PutEntry(actor);
2386 0 : (actor)->mState = mozilla::net::PTCPSocket::__Start;
2387 :
2388 0 : if ((!(RecvPTCPSocketConstructor(mozilla::Move(actor), mozilla::Move(host), mozilla::Move(port))))) {
2389 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2390 : // Error handled in mozilla::ipc::IPCResult
2391 0 : return MsgProcessingError;
2392 : }
2393 :
2394 0 : return MsgProcessed;
2395 : }
2396 : default:
2397 : {
2398 0 : return MsgNotKnown;
2399 : }
2400 : }
2401 : }
2402 :
2403 0 : auto PNeckoParent::OnMessageReceived(
2404 : const Message& msg__,
2405 : Message*& reply__) -> PNeckoParent::Result
2406 : {
2407 0 : return MsgNotKnown;
2408 : }
2409 :
2410 0 : auto PNeckoParent::OnCallReceived(
2411 : const Message& msg__,
2412 : Message*& reply__) -> PNeckoParent::Result
2413 : {
2414 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
2415 : return MsgNotKnown;
2416 : }
2417 :
2418 0 : auto PNeckoParent::GetProtocolTypeId() -> int32_t
2419 : {
2420 0 : return PNeckoMsgStart;
2421 : }
2422 :
2423 0 : auto PNeckoParent::ProtocolName() const -> const char*
2424 : {
2425 0 : return "PNeckoParent";
2426 : }
2427 :
2428 0 : auto PNeckoParent::DestroySubtree(ActorDestroyReason why) -> void
2429 : {
2430 : // Unregister from our manager.
2431 0 : Unregister(Id());
2432 :
2433 0 : ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
2434 :
2435 : {
2436 : // Recursively shutting down PHttpChannel kids
2437 0 : nsTArray<PHttpChannelParent*> kids;
2438 : // Accumulate kids into a stable structure to iterate over
2439 0 : ManagedPHttpChannelParent(kids);
2440 0 : for (auto& kid : kids) {
2441 : // Guarding against a child removing a sibling from the list during the iteration.
2442 0 : if ((mManagedPHttpChannelParent).Contains(kid)) {
2443 0 : (kid)->DestroySubtree(subtreewhy);
2444 : }
2445 : }
2446 : }
2447 : {
2448 : // Recursively shutting down PCookieService kids
2449 0 : nsTArray<PCookieServiceParent*> kids;
2450 : // Accumulate kids into a stable structure to iterate over
2451 0 : ManagedPCookieServiceParent(kids);
2452 0 : for (auto& kid : kids) {
2453 : // Guarding against a child removing a sibling from the list during the iteration.
2454 0 : if ((mManagedPCookieServiceParent).Contains(kid)) {
2455 0 : (kid)->DestroySubtree(subtreewhy);
2456 : }
2457 : }
2458 : }
2459 : {
2460 : // Recursively shutting down PWyciwygChannel kids
2461 0 : nsTArray<PWyciwygChannelParent*> kids;
2462 : // Accumulate kids into a stable structure to iterate over
2463 0 : ManagedPWyciwygChannelParent(kids);
2464 0 : for (auto& kid : kids) {
2465 : // Guarding against a child removing a sibling from the list during the iteration.
2466 0 : if ((mManagedPWyciwygChannelParent).Contains(kid)) {
2467 0 : (kid)->DestroySubtree(subtreewhy);
2468 : }
2469 : }
2470 : }
2471 : {
2472 : // Recursively shutting down PFTPChannel kids
2473 0 : nsTArray<PFTPChannelParent*> kids;
2474 : // Accumulate kids into a stable structure to iterate over
2475 0 : ManagedPFTPChannelParent(kids);
2476 0 : for (auto& kid : kids) {
2477 : // Guarding against a child removing a sibling from the list during the iteration.
2478 0 : if ((mManagedPFTPChannelParent).Contains(kid)) {
2479 0 : (kid)->DestroySubtree(subtreewhy);
2480 : }
2481 : }
2482 : }
2483 : {
2484 : // Recursively shutting down PWebSocket kids
2485 0 : nsTArray<PWebSocketParent*> kids;
2486 : // Accumulate kids into a stable structure to iterate over
2487 0 : ManagedPWebSocketParent(kids);
2488 0 : for (auto& kid : kids) {
2489 : // Guarding against a child removing a sibling from the list during the iteration.
2490 0 : if ((mManagedPWebSocketParent).Contains(kid)) {
2491 0 : (kid)->DestroySubtree(subtreewhy);
2492 : }
2493 : }
2494 : }
2495 : {
2496 : // Recursively shutting down PWebSocketEventListener kids
2497 0 : nsTArray<PWebSocketEventListenerParent*> kids;
2498 : // Accumulate kids into a stable structure to iterate over
2499 0 : ManagedPWebSocketEventListenerParent(kids);
2500 0 : for (auto& kid : kids) {
2501 : // Guarding against a child removing a sibling from the list during the iteration.
2502 0 : if ((mManagedPWebSocketEventListenerParent).Contains(kid)) {
2503 0 : (kid)->DestroySubtree(subtreewhy);
2504 : }
2505 : }
2506 : }
2507 : {
2508 : // Recursively shutting down PTCPSocket kids
2509 0 : nsTArray<PTCPSocketParent*> kids;
2510 : // Accumulate kids into a stable structure to iterate over
2511 0 : ManagedPTCPSocketParent(kids);
2512 0 : for (auto& kid : kids) {
2513 : // Guarding against a child removing a sibling from the list during the iteration.
2514 0 : if ((mManagedPTCPSocketParent).Contains(kid)) {
2515 0 : (kid)->DestroySubtree(subtreewhy);
2516 : }
2517 : }
2518 : }
2519 : {
2520 : // Recursively shutting down PTCPServerSocket kids
2521 0 : nsTArray<PTCPServerSocketParent*> kids;
2522 : // Accumulate kids into a stable structure to iterate over
2523 0 : ManagedPTCPServerSocketParent(kids);
2524 0 : for (auto& kid : kids) {
2525 : // Guarding against a child removing a sibling from the list during the iteration.
2526 0 : if ((mManagedPTCPServerSocketParent).Contains(kid)) {
2527 0 : (kid)->DestroySubtree(subtreewhy);
2528 : }
2529 : }
2530 : }
2531 : {
2532 : // Recursively shutting down PUDPSocket kids
2533 0 : nsTArray<PUDPSocketParent*> kids;
2534 : // Accumulate kids into a stable structure to iterate over
2535 0 : ManagedPUDPSocketParent(kids);
2536 0 : for (auto& kid : kids) {
2537 : // Guarding against a child removing a sibling from the list during the iteration.
2538 0 : if ((mManagedPUDPSocketParent).Contains(kid)) {
2539 0 : (kid)->DestroySubtree(subtreewhy);
2540 : }
2541 : }
2542 : }
2543 : {
2544 : // Recursively shutting down PDNSRequest kids
2545 0 : nsTArray<PDNSRequestParent*> kids;
2546 : // Accumulate kids into a stable structure to iterate over
2547 0 : ManagedPDNSRequestParent(kids);
2548 0 : for (auto& kid : kids) {
2549 : // Guarding against a child removing a sibling from the list during the iteration.
2550 0 : if ((mManagedPDNSRequestParent).Contains(kid)) {
2551 0 : (kid)->DestroySubtree(subtreewhy);
2552 : }
2553 : }
2554 : }
2555 : {
2556 : // Recursively shutting down PDataChannel kids
2557 0 : nsTArray<PDataChannelParent*> kids;
2558 : // Accumulate kids into a stable structure to iterate over
2559 0 : ManagedPDataChannelParent(kids);
2560 0 : for (auto& kid : kids) {
2561 : // Guarding against a child removing a sibling from the list during the iteration.
2562 0 : if ((mManagedPDataChannelParent).Contains(kid)) {
2563 0 : (kid)->DestroySubtree(subtreewhy);
2564 : }
2565 : }
2566 : }
2567 : {
2568 : // Recursively shutting down PFileChannel kids
2569 0 : nsTArray<PFileChannelParent*> kids;
2570 : // Accumulate kids into a stable structure to iterate over
2571 0 : ManagedPFileChannelParent(kids);
2572 0 : for (auto& kid : kids) {
2573 : // Guarding against a child removing a sibling from the list during the iteration.
2574 0 : if ((mManagedPFileChannelParent).Contains(kid)) {
2575 0 : (kid)->DestroySubtree(subtreewhy);
2576 : }
2577 : }
2578 : }
2579 : {
2580 : // Recursively shutting down PRtspController kids
2581 0 : nsTArray<PRtspControllerParent*> kids;
2582 : // Accumulate kids into a stable structure to iterate over
2583 0 : ManagedPRtspControllerParent(kids);
2584 0 : for (auto& kid : kids) {
2585 : // Guarding against a child removing a sibling from the list during the iteration.
2586 0 : if ((mManagedPRtspControllerParent).Contains(kid)) {
2587 0 : (kid)->DestroySubtree(subtreewhy);
2588 : }
2589 : }
2590 : }
2591 : {
2592 : // Recursively shutting down PRtspChannel kids
2593 0 : nsTArray<PRtspChannelParent*> kids;
2594 : // Accumulate kids into a stable structure to iterate over
2595 0 : ManagedPRtspChannelParent(kids);
2596 0 : for (auto& kid : kids) {
2597 : // Guarding against a child removing a sibling from the list during the iteration.
2598 0 : if ((mManagedPRtspChannelParent).Contains(kid)) {
2599 0 : (kid)->DestroySubtree(subtreewhy);
2600 : }
2601 : }
2602 : }
2603 : {
2604 : // Recursively shutting down PChannelDiverter kids
2605 0 : nsTArray<PChannelDiverterParent*> kids;
2606 : // Accumulate kids into a stable structure to iterate over
2607 0 : ManagedPChannelDiverterParent(kids);
2608 0 : for (auto& kid : kids) {
2609 : // Guarding against a child removing a sibling from the list during the iteration.
2610 0 : if ((mManagedPChannelDiverterParent).Contains(kid)) {
2611 0 : (kid)->DestroySubtree(subtreewhy);
2612 : }
2613 : }
2614 : }
2615 : {
2616 : // Recursively shutting down PTransportProvider kids
2617 0 : nsTArray<PTransportProviderParent*> kids;
2618 : // Accumulate kids into a stable structure to iterate over
2619 0 : ManagedPTransportProviderParent(kids);
2620 0 : for (auto& kid : kids) {
2621 : // Guarding against a child removing a sibling from the list during the iteration.
2622 0 : if ((mManagedPTransportProviderParent).Contains(kid)) {
2623 0 : (kid)->DestroySubtree(subtreewhy);
2624 : }
2625 : }
2626 : }
2627 : {
2628 : // Recursively shutting down PAltDataOutputStream kids
2629 0 : nsTArray<PAltDataOutputStreamParent*> kids;
2630 : // Accumulate kids into a stable structure to iterate over
2631 0 : ManagedPAltDataOutputStreamParent(kids);
2632 0 : for (auto& kid : kids) {
2633 : // Guarding against a child removing a sibling from the list during the iteration.
2634 0 : if ((mManagedPAltDataOutputStreamParent).Contains(kid)) {
2635 0 : (kid)->DestroySubtree(subtreewhy);
2636 : }
2637 : }
2638 : }
2639 : {
2640 : // Recursively shutting down PStunAddrsRequest kids
2641 0 : nsTArray<PStunAddrsRequestParent*> kids;
2642 : // Accumulate kids into a stable structure to iterate over
2643 0 : ManagedPStunAddrsRequestParent(kids);
2644 0 : for (auto& kid : kids) {
2645 : // Guarding against a child removing a sibling from the list during the iteration.
2646 0 : if ((mManagedPStunAddrsRequestParent).Contains(kid)) {
2647 0 : (kid)->DestroySubtree(subtreewhy);
2648 : }
2649 : }
2650 : }
2651 :
2652 : // Reject owning pending promises.
2653 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
2654 :
2655 : // Finally, destroy "us".
2656 0 : ActorDestroy(why);
2657 0 : }
2658 :
2659 0 : auto PNeckoParent::DeallocSubtree() -> void
2660 : {
2661 : {
2662 : // Recursively deleting PHttpChannel kids
2663 0 : for (auto iter = (mManagedPHttpChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2664 0 : (((iter).Get())->GetKey())->DeallocSubtree();
2665 : }
2666 :
2667 0 : for (auto iter = (mManagedPHttpChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2668 0 : DeallocPHttpChannelParent(((iter).Get())->GetKey());
2669 : }
2670 0 : (mManagedPHttpChannelParent).Clear();
2671 : }
2672 : {
2673 : // Recursively deleting PCookieService kids
2674 0 : for (auto iter = (mManagedPCookieServiceParent).Iter(); (!((iter).Done())); (iter).Next()) {
2675 0 : (((iter).Get())->GetKey())->DeallocSubtree();
2676 : }
2677 :
2678 0 : for (auto iter = (mManagedPCookieServiceParent).Iter(); (!((iter).Done())); (iter).Next()) {
2679 0 : DeallocPCookieServiceParent(((iter).Get())->GetKey());
2680 : }
2681 0 : (mManagedPCookieServiceParent).Clear();
2682 : }
2683 : {
2684 : // Recursively deleting PWyciwygChannel kids
2685 0 : for (auto iter = (mManagedPWyciwygChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2686 0 : (((iter).Get())->GetKey())->DeallocSubtree();
2687 : }
2688 :
2689 0 : for (auto iter = (mManagedPWyciwygChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2690 0 : DeallocPWyciwygChannelParent(((iter).Get())->GetKey());
2691 : }
2692 0 : (mManagedPWyciwygChannelParent).Clear();
2693 : }
2694 : {
2695 : // Recursively deleting PFTPChannel kids
2696 0 : for (auto iter = (mManagedPFTPChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2697 0 : (((iter).Get())->GetKey())->DeallocSubtree();
2698 : }
2699 :
2700 0 : for (auto iter = (mManagedPFTPChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2701 0 : DeallocPFTPChannelParent(((iter).Get())->GetKey());
2702 : }
2703 0 : (mManagedPFTPChannelParent).Clear();
2704 : }
2705 : {
2706 : // Recursively deleting PWebSocket kids
2707 0 : for (auto iter = (mManagedPWebSocketParent).Iter(); (!((iter).Done())); (iter).Next()) {
2708 0 : (((iter).Get())->GetKey())->DeallocSubtree();
2709 : }
2710 :
2711 0 : for (auto iter = (mManagedPWebSocketParent).Iter(); (!((iter).Done())); (iter).Next()) {
2712 0 : DeallocPWebSocketParent(((iter).Get())->GetKey());
2713 : }
2714 0 : (mManagedPWebSocketParent).Clear();
2715 : }
2716 : {
2717 : // Recursively deleting PWebSocketEventListener kids
2718 0 : for (auto iter = (mManagedPWebSocketEventListenerParent).Iter(); (!((iter).Done())); (iter).Next()) {
2719 0 : (((iter).Get())->GetKey())->DeallocSubtree();
2720 : }
2721 :
2722 0 : for (auto iter = (mManagedPWebSocketEventListenerParent).Iter(); (!((iter).Done())); (iter).Next()) {
2723 0 : DeallocPWebSocketEventListenerParent(((iter).Get())->GetKey());
2724 : }
2725 0 : (mManagedPWebSocketEventListenerParent).Clear();
2726 : }
2727 : {
2728 : // Recursively deleting PTCPSocket kids
2729 0 : for (auto iter = (mManagedPTCPSocketParent).Iter(); (!((iter).Done())); (iter).Next()) {
2730 0 : (((iter).Get())->GetKey())->DeallocSubtree();
2731 : }
2732 :
2733 0 : for (auto iter = (mManagedPTCPSocketParent).Iter(); (!((iter).Done())); (iter).Next()) {
2734 0 : DeallocPTCPSocketParent(((iter).Get())->GetKey());
2735 : }
2736 0 : (mManagedPTCPSocketParent).Clear();
2737 : }
2738 : {
2739 : // Recursively deleting PTCPServerSocket kids
2740 0 : for (auto iter = (mManagedPTCPServerSocketParent).Iter(); (!((iter).Done())); (iter).Next()) {
2741 0 : (((iter).Get())->GetKey())->DeallocSubtree();
2742 : }
2743 :
2744 0 : for (auto iter = (mManagedPTCPServerSocketParent).Iter(); (!((iter).Done())); (iter).Next()) {
2745 0 : DeallocPTCPServerSocketParent(((iter).Get())->GetKey());
2746 : }
2747 0 : (mManagedPTCPServerSocketParent).Clear();
2748 : }
2749 : {
2750 : // Recursively deleting PUDPSocket kids
2751 0 : for (auto iter = (mManagedPUDPSocketParent).Iter(); (!((iter).Done())); (iter).Next()) {
2752 0 : (((iter).Get())->GetKey())->DeallocSubtree();
2753 : }
2754 :
2755 0 : for (auto iter = (mManagedPUDPSocketParent).Iter(); (!((iter).Done())); (iter).Next()) {
2756 0 : DeallocPUDPSocketParent(((iter).Get())->GetKey());
2757 : }
2758 0 : (mManagedPUDPSocketParent).Clear();
2759 : }
2760 : {
2761 : // Recursively deleting PDNSRequest kids
2762 0 : for (auto iter = (mManagedPDNSRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
2763 0 : (((iter).Get())->GetKey())->DeallocSubtree();
2764 : }
2765 :
2766 0 : for (auto iter = (mManagedPDNSRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
2767 0 : DeallocPDNSRequestParent(((iter).Get())->GetKey());
2768 : }
2769 0 : (mManagedPDNSRequestParent).Clear();
2770 : }
2771 : {
2772 : // Recursively deleting PDataChannel kids
2773 0 : for (auto iter = (mManagedPDataChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2774 0 : (((iter).Get())->GetKey())->DeallocSubtree();
2775 : }
2776 :
2777 0 : for (auto iter = (mManagedPDataChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2778 0 : DeallocPDataChannelParent(((iter).Get())->GetKey());
2779 : }
2780 0 : (mManagedPDataChannelParent).Clear();
2781 : }
2782 : {
2783 : // Recursively deleting PFileChannel kids
2784 0 : for (auto iter = (mManagedPFileChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2785 0 : (((iter).Get())->GetKey())->DeallocSubtree();
2786 : }
2787 :
2788 0 : for (auto iter = (mManagedPFileChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2789 0 : DeallocPFileChannelParent(((iter).Get())->GetKey());
2790 : }
2791 0 : (mManagedPFileChannelParent).Clear();
2792 : }
2793 : {
2794 : // Recursively deleting PRtspController kids
2795 0 : for (auto iter = (mManagedPRtspControllerParent).Iter(); (!((iter).Done())); (iter).Next()) {
2796 0 : (((iter).Get())->GetKey())->DeallocSubtree();
2797 : }
2798 :
2799 0 : for (auto iter = (mManagedPRtspControllerParent).Iter(); (!((iter).Done())); (iter).Next()) {
2800 0 : DeallocPRtspControllerParent(((iter).Get())->GetKey());
2801 : }
2802 0 : (mManagedPRtspControllerParent).Clear();
2803 : }
2804 : {
2805 : // Recursively deleting PRtspChannel kids
2806 0 : for (auto iter = (mManagedPRtspChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2807 0 : (((iter).Get())->GetKey())->DeallocSubtree();
2808 : }
2809 :
2810 0 : for (auto iter = (mManagedPRtspChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2811 0 : DeallocPRtspChannelParent(((iter).Get())->GetKey());
2812 : }
2813 0 : (mManagedPRtspChannelParent).Clear();
2814 : }
2815 : {
2816 : // Recursively deleting PChannelDiverter kids
2817 0 : for (auto iter = (mManagedPChannelDiverterParent).Iter(); (!((iter).Done())); (iter).Next()) {
2818 0 : (((iter).Get())->GetKey())->DeallocSubtree();
2819 : }
2820 :
2821 0 : for (auto iter = (mManagedPChannelDiverterParent).Iter(); (!((iter).Done())); (iter).Next()) {
2822 0 : DeallocPChannelDiverterParent(((iter).Get())->GetKey());
2823 : }
2824 0 : (mManagedPChannelDiverterParent).Clear();
2825 : }
2826 : {
2827 : // Recursively deleting PTransportProvider kids
2828 0 : for (auto iter = (mManagedPTransportProviderParent).Iter(); (!((iter).Done())); (iter).Next()) {
2829 0 : (((iter).Get())->GetKey())->DeallocSubtree();
2830 : }
2831 :
2832 0 : for (auto iter = (mManagedPTransportProviderParent).Iter(); (!((iter).Done())); (iter).Next()) {
2833 0 : DeallocPTransportProviderParent(((iter).Get())->GetKey());
2834 : }
2835 0 : (mManagedPTransportProviderParent).Clear();
2836 : }
2837 : {
2838 : // Recursively deleting PAltDataOutputStream kids
2839 0 : for (auto iter = (mManagedPAltDataOutputStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
2840 0 : (((iter).Get())->GetKey())->DeallocSubtree();
2841 : }
2842 :
2843 0 : for (auto iter = (mManagedPAltDataOutputStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
2844 0 : DeallocPAltDataOutputStreamParent(((iter).Get())->GetKey());
2845 : }
2846 0 : (mManagedPAltDataOutputStreamParent).Clear();
2847 : }
2848 : {
2849 : // Recursively deleting PStunAddrsRequest kids
2850 0 : for (auto iter = (mManagedPStunAddrsRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
2851 0 : (((iter).Get())->GetKey())->DeallocSubtree();
2852 : }
2853 :
2854 0 : for (auto iter = (mManagedPStunAddrsRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
2855 0 : DeallocPStunAddrsRequestParent(((iter).Get())->GetKey());
2856 : }
2857 0 : (mManagedPStunAddrsRequestParent).Clear();
2858 : }
2859 0 : }
2860 :
2861 0 : auto PNeckoParent::Write(
2862 : const SystemPrincipalInfo& v__,
2863 : Message* msg__) -> void
2864 : {
2865 0 : }
2866 :
2867 1 : auto PNeckoParent::Read(
2868 : SystemPrincipalInfo* v__,
2869 : const Message* msg__,
2870 : PickleIterator* iter__) -> bool
2871 : {
2872 1 : return true;
2873 : }
2874 :
2875 0 : auto PNeckoParent::Write(
2876 : const nsTArray<PrincipalInfo>& v__,
2877 : Message* msg__) -> void
2878 : {
2879 0 : uint32_t length = (v__).Length();
2880 0 : Write(length, msg__);
2881 : // Sentinel = ('length', 'PrincipalInfo[]')
2882 0 : (msg__)->WriteSentinel(1032188126);
2883 :
2884 0 : for (auto& elem : v__) {
2885 0 : Write(elem, msg__);
2886 : // Sentinel = 'PrincipalInfo[]'
2887 0 : (msg__)->WriteSentinel(413380193);
2888 : }
2889 0 : }
2890 :
2891 0 : auto PNeckoParent::Read(
2892 : nsTArray<PrincipalInfo>* v__,
2893 : const Message* msg__,
2894 : PickleIterator* iter__) -> bool
2895 : {
2896 0 : nsTArray<PrincipalInfo> fa;
2897 : uint32_t length;
2898 0 : if ((!(Read((&(length)), msg__, iter__)))) {
2899 0 : mozilla::ipc::ArrayLengthReadError("PrincipalInfo[]");
2900 0 : return false;
2901 : }
2902 : // Sentinel = ('length', 'PrincipalInfo[]')
2903 0 : if ((!((msg__)->ReadSentinel(iter__, 1032188126)))) {
2904 0 : mozilla::ipc::SentinelReadError("PrincipalInfo[]");
2905 0 : return false;
2906 : }
2907 :
2908 0 : PrincipalInfo* elems = (fa).AppendElements(length);
2909 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
2910 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
2911 0 : FatalError("Error deserializing 'PrincipalInfo[i]'");
2912 0 : return false;
2913 : }
2914 : // Sentinel = 'PrincipalInfo[]'
2915 0 : if ((!((msg__)->ReadSentinel(iter__, 413380193)))) {
2916 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo[i]'");
2917 0 : return false;
2918 : }
2919 : }
2920 0 : (v__)->SwapElements(fa);
2921 0 : return true;
2922 : }
2923 :
2924 0 : auto PNeckoParent::Write(
2925 : const PDNSRequestParent* v__,
2926 : Message* msg__,
2927 : bool nullable__) -> void
2928 : {
2929 : int32_t id;
2930 0 : if ((!(v__))) {
2931 0 : if ((!(nullable__))) {
2932 0 : FatalError("NULL actor value passed to non-nullable param");
2933 : }
2934 0 : id = 0;
2935 : }
2936 : else {
2937 0 : id = (v__)->Id();
2938 0 : if ((1) == (id)) {
2939 0 : FatalError("actor has been |delete|d");
2940 : }
2941 : }
2942 :
2943 0 : Write(id, msg__);
2944 0 : }
2945 :
2946 0 : auto PNeckoParent::Read(
2947 : PDNSRequestParent** v__,
2948 : const Message* msg__,
2949 : PickleIterator* iter__,
2950 : bool nullable__) -> bool
2951 : {
2952 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PDNSRequest", PDNSRequestMsgStart);
2953 0 : if ((actor).isNothing()) {
2954 0 : return false;
2955 : }
2956 :
2957 0 : (*(v__)) = static_cast<PDNSRequestParent*>((actor).value());
2958 0 : return true;
2959 : }
2960 :
2961 0 : auto PNeckoParent::Write(
2962 : const IPCBlobInputStreamParams& v__,
2963 : Message* msg__) -> void
2964 : {
2965 0 : Write((v__).id(), msg__);
2966 : // Sentinel = 'id'
2967 0 : (msg__)->WriteSentinel(2794505629);
2968 0 : }
2969 :
2970 0 : auto PNeckoParent::Read(
2971 : IPCBlobInputStreamParams* v__,
2972 : const Message* msg__,
2973 : PickleIterator* iter__) -> bool
2974 : {
2975 0 : if ((!(Read((&((v__)->id())), msg__, iter__)))) {
2976 0 : FatalError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
2977 0 : return false;
2978 : }
2979 : // Sentinel = 'id'
2980 0 : if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
2981 0 : mozilla::ipc::SentinelReadError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
2982 0 : return false;
2983 : }
2984 0 : return true;
2985 : }
2986 :
2987 0 : auto PNeckoParent::Write(
2988 : const FTPChannelCreationArgs& v__,
2989 : Message* msg__) -> void
2990 : {
2991 : typedef FTPChannelCreationArgs type__;
2992 0 : Write(int((v__).type()), msg__);
2993 : // Sentinel = 'FTPChannelCreationArgs'
2994 0 : (msg__)->WriteSentinel(1911741737);
2995 :
2996 0 : switch ((v__).type()) {
2997 : case type__::TFTPChannelOpenArgs:
2998 : {
2999 0 : Write((v__).get_FTPChannelOpenArgs(), msg__);
3000 : // Sentinel = 'TFTPChannelOpenArgs'
3001 0 : (msg__)->WriteSentinel(1536686851);
3002 0 : return;
3003 : }
3004 : case type__::TFTPChannelConnectArgs:
3005 : {
3006 0 : Write((v__).get_FTPChannelConnectArgs(), msg__);
3007 : // Sentinel = 'TFTPChannelConnectArgs'
3008 0 : (msg__)->WriteSentinel(3182840870);
3009 0 : return;
3010 : }
3011 : default:
3012 : {
3013 0 : FatalError("unknown union type");
3014 0 : return;
3015 : }
3016 : }
3017 : }
3018 :
3019 0 : auto PNeckoParent::Read(
3020 : FTPChannelCreationArgs* v__,
3021 : const Message* msg__,
3022 : PickleIterator* iter__) -> bool
3023 : {
3024 : typedef FTPChannelCreationArgs type__;
3025 : int type;
3026 0 : if ((!(Read((&(type)), msg__, iter__)))) {
3027 0 : mozilla::ipc::UnionTypeReadError("FTPChannelCreationArgs");
3028 0 : return false;
3029 : }
3030 : // Sentinel = 'FTPChannelCreationArgs'
3031 0 : if ((!((msg__)->ReadSentinel(iter__, 1911741737)))) {
3032 0 : mozilla::ipc::SentinelReadError("FTPChannelCreationArgs");
3033 0 : return false;
3034 : }
3035 :
3036 0 : switch (type) {
3037 : case type__::TFTPChannelOpenArgs:
3038 : {
3039 0 : FTPChannelOpenArgs tmp = FTPChannelOpenArgs();
3040 0 : (*(v__)) = tmp;
3041 0 : if ((!(Read((&((v__)->get_FTPChannelOpenArgs())), msg__, iter__)))) {
3042 0 : FatalError("Error deserializing Union type");
3043 0 : return false;
3044 : }
3045 : // Sentinel = 'TFTPChannelOpenArgs'
3046 0 : if ((!((msg__)->ReadSentinel(iter__, 1536686851)))) {
3047 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3048 0 : return false;
3049 : }
3050 0 : return true;
3051 : }
3052 : case type__::TFTPChannelConnectArgs:
3053 : {
3054 0 : FTPChannelConnectArgs tmp = FTPChannelConnectArgs();
3055 0 : (*(v__)) = tmp;
3056 0 : if ((!(Read((&((v__)->get_FTPChannelConnectArgs())), msg__, iter__)))) {
3057 0 : FatalError("Error deserializing Union type");
3058 0 : return false;
3059 : }
3060 : // Sentinel = 'TFTPChannelConnectArgs'
3061 0 : if ((!((msg__)->ReadSentinel(iter__, 3182840870)))) {
3062 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3063 0 : return false;
3064 : }
3065 0 : return true;
3066 : }
3067 : default:
3068 : {
3069 0 : FatalError("unknown union type");
3070 0 : return false;
3071 : }
3072 : }
3073 : }
3074 :
3075 0 : auto PNeckoParent::Write(
3076 : const nsTArray<InputStreamParams>& v__,
3077 : Message* msg__) -> void
3078 : {
3079 0 : uint32_t length = (v__).Length();
3080 0 : Write(length, msg__);
3081 : // Sentinel = ('length', 'InputStreamParams[]')
3082 0 : (msg__)->WriteSentinel(348334258);
3083 :
3084 0 : for (auto& elem : v__) {
3085 0 : Write(elem, msg__);
3086 : // Sentinel = 'InputStreamParams[]'
3087 0 : (msg__)->WriteSentinel(2927715197);
3088 : }
3089 0 : }
3090 :
3091 0 : auto PNeckoParent::Read(
3092 : nsTArray<InputStreamParams>* v__,
3093 : const Message* msg__,
3094 : PickleIterator* iter__) -> bool
3095 : {
3096 0 : nsTArray<InputStreamParams> fa;
3097 : uint32_t length;
3098 0 : if ((!(Read((&(length)), msg__, iter__)))) {
3099 0 : mozilla::ipc::ArrayLengthReadError("InputStreamParams[]");
3100 0 : return false;
3101 : }
3102 : // Sentinel = ('length', 'InputStreamParams[]')
3103 0 : if ((!((msg__)->ReadSentinel(iter__, 348334258)))) {
3104 0 : mozilla::ipc::SentinelReadError("InputStreamParams[]");
3105 0 : return false;
3106 : }
3107 :
3108 0 : InputStreamParams* elems = (fa).AppendElements(length);
3109 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
3110 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
3111 0 : FatalError("Error deserializing 'InputStreamParams[i]'");
3112 0 : return false;
3113 : }
3114 : // Sentinel = 'InputStreamParams[]'
3115 0 : if ((!((msg__)->ReadSentinel(iter__, 2927715197)))) {
3116 0 : mozilla::ipc::SentinelReadError("Error deserializing 'InputStreamParams[i]'");
3117 0 : return false;
3118 : }
3119 : }
3120 0 : (v__)->SwapElements(fa);
3121 0 : return true;
3122 : }
3123 :
3124 0 : auto PNeckoParent::Write(
3125 : const OptionalURIParams& v__,
3126 : Message* msg__) -> void
3127 : {
3128 : typedef OptionalURIParams type__;
3129 0 : Write(int((v__).type()), msg__);
3130 : // Sentinel = 'OptionalURIParams'
3131 0 : (msg__)->WriteSentinel(1977079525);
3132 :
3133 0 : switch ((v__).type()) {
3134 : case type__::Tvoid_t:
3135 : {
3136 0 : Write((v__).get_void_t(), msg__);
3137 : // Sentinel = 'Tvoid_t'
3138 0 : (msg__)->WriteSentinel(3041273328);
3139 0 : return;
3140 : }
3141 : case type__::TURIParams:
3142 : {
3143 0 : Write((v__).get_URIParams(), msg__);
3144 : // Sentinel = 'TURIParams'
3145 0 : (msg__)->WriteSentinel(1132652062);
3146 0 : return;
3147 : }
3148 : default:
3149 : {
3150 0 : FatalError("unknown union type");
3151 0 : return;
3152 : }
3153 : }
3154 : }
3155 :
3156 23 : auto PNeckoParent::Read(
3157 : OptionalURIParams* v__,
3158 : const Message* msg__,
3159 : PickleIterator* iter__) -> bool
3160 : {
3161 : typedef OptionalURIParams type__;
3162 : int type;
3163 23 : if ((!(Read((&(type)), msg__, iter__)))) {
3164 0 : mozilla::ipc::UnionTypeReadError("OptionalURIParams");
3165 0 : return false;
3166 : }
3167 : // Sentinel = 'OptionalURIParams'
3168 23 : if ((!((msg__)->ReadSentinel(iter__, 1977079525)))) {
3169 0 : mozilla::ipc::SentinelReadError("OptionalURIParams");
3170 0 : return false;
3171 : }
3172 :
3173 23 : switch (type) {
3174 : case type__::Tvoid_t:
3175 : {
3176 : void_t tmp = void_t();
3177 12 : (*(v__)) = tmp;
3178 12 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
3179 0 : FatalError("Error deserializing Union type");
3180 0 : return false;
3181 : }
3182 : // Sentinel = 'Tvoid_t'
3183 12 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
3184 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3185 0 : return false;
3186 : }
3187 12 : return true;
3188 : }
3189 : case type__::TURIParams:
3190 : {
3191 22 : URIParams tmp = URIParams();
3192 11 : (*(v__)) = tmp;
3193 11 : if ((!(Read((&((v__)->get_URIParams())), msg__, iter__)))) {
3194 0 : FatalError("Error deserializing Union type");
3195 0 : return false;
3196 : }
3197 : // Sentinel = 'TURIParams'
3198 11 : if ((!((msg__)->ReadSentinel(iter__, 1132652062)))) {
3199 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3200 0 : return false;
3201 : }
3202 11 : return true;
3203 : }
3204 : default:
3205 : {
3206 0 : FatalError("unknown union type");
3207 0 : return false;
3208 : }
3209 : }
3210 : }
3211 :
3212 0 : auto PNeckoParent::Write(
3213 : const PWyciwygChannelParent* v__,
3214 : Message* msg__,
3215 : bool nullable__) -> void
3216 : {
3217 : int32_t id;
3218 0 : if ((!(v__))) {
3219 0 : if ((!(nullable__))) {
3220 0 : FatalError("NULL actor value passed to non-nullable param");
3221 : }
3222 0 : id = 0;
3223 : }
3224 : else {
3225 0 : id = (v__)->Id();
3226 0 : if ((1) == (id)) {
3227 0 : FatalError("actor has been |delete|d");
3228 : }
3229 : }
3230 :
3231 0 : Write(id, msg__);
3232 0 : }
3233 :
3234 0 : auto PNeckoParent::Read(
3235 : PWyciwygChannelParent** v__,
3236 : const Message* msg__,
3237 : PickleIterator* iter__,
3238 : bool nullable__) -> bool
3239 : {
3240 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PWyciwygChannel", PWyciwygChannelMsgStart);
3241 0 : if ((actor).isNothing()) {
3242 0 : return false;
3243 : }
3244 :
3245 0 : (*(v__)) = static_cast<PWyciwygChannelParent*>((actor).value());
3246 0 : return true;
3247 : }
3248 :
3249 0 : auto PNeckoParent::Write(
3250 : const ContentPrincipalInfoOriginNoSuffix& v__,
3251 : Message* msg__) -> void
3252 : {
3253 : typedef ContentPrincipalInfoOriginNoSuffix type__;
3254 0 : Write(int((v__).type()), msg__);
3255 : // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
3256 0 : (msg__)->WriteSentinel(2442066713);
3257 :
3258 0 : switch ((v__).type()) {
3259 : case type__::TnsCString:
3260 : {
3261 0 : Write((v__).get_nsCString(), msg__);
3262 : // Sentinel = 'TnsCString'
3263 0 : (msg__)->WriteSentinel(2427411293);
3264 0 : return;
3265 : }
3266 : case type__::Tvoid_t:
3267 : {
3268 0 : Write((v__).get_void_t(), msg__);
3269 : // Sentinel = 'Tvoid_t'
3270 0 : (msg__)->WriteSentinel(3041273328);
3271 0 : return;
3272 : }
3273 : default:
3274 : {
3275 0 : FatalError("unknown union type");
3276 0 : return;
3277 : }
3278 : }
3279 : }
3280 :
3281 4 : auto PNeckoParent::Read(
3282 : ContentPrincipalInfoOriginNoSuffix* v__,
3283 : const Message* msg__,
3284 : PickleIterator* iter__) -> bool
3285 : {
3286 : typedef ContentPrincipalInfoOriginNoSuffix type__;
3287 : int type;
3288 4 : if ((!(Read((&(type)), msg__, iter__)))) {
3289 0 : mozilla::ipc::UnionTypeReadError("ContentPrincipalInfoOriginNoSuffix");
3290 0 : return false;
3291 : }
3292 : // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
3293 4 : if ((!((msg__)->ReadSentinel(iter__, 2442066713)))) {
3294 0 : mozilla::ipc::SentinelReadError("ContentPrincipalInfoOriginNoSuffix");
3295 0 : return false;
3296 : }
3297 :
3298 4 : switch (type) {
3299 : case type__::TnsCString:
3300 : {
3301 8 : nsCString tmp = nsCString();
3302 4 : (*(v__)) = tmp;
3303 4 : if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
3304 0 : FatalError("Error deserializing Union type");
3305 0 : return false;
3306 : }
3307 : // Sentinel = 'TnsCString'
3308 4 : if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
3309 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3310 0 : return false;
3311 : }
3312 4 : return true;
3313 : }
3314 : case type__::Tvoid_t:
3315 : {
3316 : void_t tmp = void_t();
3317 0 : (*(v__)) = tmp;
3318 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
3319 0 : FatalError("Error deserializing Union type");
3320 0 : return false;
3321 : }
3322 : // Sentinel = 'Tvoid_t'
3323 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
3324 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3325 0 : return false;
3326 : }
3327 0 : return true;
3328 : }
3329 : default:
3330 : {
3331 0 : FatalError("unknown union type");
3332 0 : return false;
3333 : }
3334 : }
3335 : }
3336 :
3337 0 : auto PNeckoParent::Write(
3338 : const PTCPSocketParent* v__,
3339 : Message* msg__,
3340 : bool nullable__) -> void
3341 : {
3342 : int32_t id;
3343 0 : if ((!(v__))) {
3344 0 : if ((!(nullable__))) {
3345 0 : FatalError("NULL actor value passed to non-nullable param");
3346 : }
3347 0 : id = 0;
3348 : }
3349 : else {
3350 0 : id = (v__)->Id();
3351 0 : if ((1) == (id)) {
3352 0 : FatalError("actor has been |delete|d");
3353 : }
3354 : }
3355 :
3356 0 : Write(id, msg__);
3357 0 : }
3358 :
3359 0 : auto PNeckoParent::Read(
3360 : PTCPSocketParent** v__,
3361 : const Message* msg__,
3362 : PickleIterator* iter__,
3363 : bool nullable__) -> bool
3364 : {
3365 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PTCPSocket", PTCPSocketMsgStart);
3366 0 : if ((actor).isNothing()) {
3367 0 : return false;
3368 : }
3369 :
3370 0 : (*(v__)) = static_cast<PTCPSocketParent*>((actor).value());
3371 0 : return true;
3372 : }
3373 :
3374 0 : auto PNeckoParent::Write(
3375 : const StandardURLParams& v__,
3376 : Message* msg__) -> void
3377 : {
3378 0 : Write((v__).urlType(), msg__);
3379 : // Sentinel = 'urlType'
3380 0 : (msg__)->WriteSentinel(4149428228);
3381 0 : Write((v__).port(), msg__);
3382 : // Sentinel = 'port'
3383 0 : (msg__)->WriteSentinel(3633211549);
3384 0 : Write((v__).defaultPort(), msg__);
3385 : // Sentinel = 'defaultPort'
3386 0 : (msg__)->WriteSentinel(599318897);
3387 0 : Write((v__).spec(), msg__);
3388 : // Sentinel = 'spec'
3389 0 : (msg__)->WriteSentinel(1630740541);
3390 0 : Write((v__).scheme(), msg__);
3391 : // Sentinel = 'scheme'
3392 0 : (msg__)->WriteSentinel(3619238715);
3393 0 : Write((v__).authority(), msg__);
3394 : // Sentinel = 'authority'
3395 0 : (msg__)->WriteSentinel(1669684878);
3396 0 : Write((v__).username(), msg__);
3397 : // Sentinel = 'username'
3398 0 : (msg__)->WriteSentinel(689225024);
3399 0 : Write((v__).password(), msg__);
3400 : // Sentinel = 'password'
3401 0 : (msg__)->WriteSentinel(2527534683);
3402 0 : Write((v__).host(), msg__);
3403 : // Sentinel = 'host'
3404 0 : (msg__)->WriteSentinel(4070301394);
3405 0 : Write((v__).path(), msg__);
3406 : // Sentinel = 'path'
3407 0 : (msg__)->WriteSentinel(913629401);
3408 0 : Write((v__).filePath(), msg__);
3409 : // Sentinel = 'filePath'
3410 0 : (msg__)->WriteSentinel(4122896455);
3411 0 : Write((v__).directory(), msg__);
3412 : // Sentinel = 'directory'
3413 0 : (msg__)->WriteSentinel(1201172472);
3414 0 : Write((v__).baseName(), msg__);
3415 : // Sentinel = 'baseName'
3416 0 : (msg__)->WriteSentinel(2448877418);
3417 0 : Write((v__).extension(), msg__);
3418 : // Sentinel = 'extension'
3419 0 : (msg__)->WriteSentinel(3211853542);
3420 0 : Write((v__).query(), msg__);
3421 : // Sentinel = 'query'
3422 0 : (msg__)->WriteSentinel(4249802777);
3423 0 : Write((v__).ref(), msg__);
3424 : // Sentinel = 'ref'
3425 0 : (msg__)->WriteSentinel(2626476732);
3426 0 : Write((v__).originCharset(), msg__);
3427 : // Sentinel = 'originCharset'
3428 0 : (msg__)->WriteSentinel(1320725495);
3429 0 : Write((v__).isMutable(), msg__);
3430 : // Sentinel = 'isMutable'
3431 0 : (msg__)->WriteSentinel(3552466783);
3432 0 : Write((v__).supportsFileURL(), msg__);
3433 : // Sentinel = 'supportsFileURL'
3434 0 : (msg__)->WriteSentinel(1871785710);
3435 0 : }
3436 :
3437 17 : auto PNeckoParent::Read(
3438 : StandardURLParams* v__,
3439 : const Message* msg__,
3440 : PickleIterator* iter__) -> bool
3441 : {
3442 17 : if ((!(Read((&((v__)->urlType())), msg__, iter__)))) {
3443 0 : FatalError("Error deserializing 'urlType' (uint32_t) member of 'StandardURLParams'");
3444 0 : return false;
3445 : }
3446 : // Sentinel = 'urlType'
3447 17 : if ((!((msg__)->ReadSentinel(iter__, 4149428228)))) {
3448 0 : mozilla::ipc::SentinelReadError("Error deserializing 'urlType' (uint32_t) member of 'StandardURLParams'");
3449 0 : return false;
3450 : }
3451 17 : if ((!(Read((&((v__)->port())), msg__, iter__)))) {
3452 0 : FatalError("Error deserializing 'port' (int32_t) member of 'StandardURLParams'");
3453 0 : return false;
3454 : }
3455 : // Sentinel = 'port'
3456 17 : if ((!((msg__)->ReadSentinel(iter__, 3633211549)))) {
3457 0 : mozilla::ipc::SentinelReadError("Error deserializing 'port' (int32_t) member of 'StandardURLParams'");
3458 0 : return false;
3459 : }
3460 17 : if ((!(Read((&((v__)->defaultPort())), msg__, iter__)))) {
3461 0 : FatalError("Error deserializing 'defaultPort' (int32_t) member of 'StandardURLParams'");
3462 0 : return false;
3463 : }
3464 : // Sentinel = 'defaultPort'
3465 17 : if ((!((msg__)->ReadSentinel(iter__, 599318897)))) {
3466 0 : mozilla::ipc::SentinelReadError("Error deserializing 'defaultPort' (int32_t) member of 'StandardURLParams'");
3467 0 : return false;
3468 : }
3469 17 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
3470 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'StandardURLParams'");
3471 0 : return false;
3472 : }
3473 : // Sentinel = 'spec'
3474 17 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
3475 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'StandardURLParams'");
3476 0 : return false;
3477 : }
3478 17 : if ((!(Read((&((v__)->scheme())), msg__, iter__)))) {
3479 0 : FatalError("Error deserializing 'scheme' (StandardURLSegment) member of 'StandardURLParams'");
3480 0 : return false;
3481 : }
3482 : // Sentinel = 'scheme'
3483 17 : if ((!((msg__)->ReadSentinel(iter__, 3619238715)))) {
3484 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scheme' (StandardURLSegment) member of 'StandardURLParams'");
3485 0 : return false;
3486 : }
3487 17 : if ((!(Read((&((v__)->authority())), msg__, iter__)))) {
3488 0 : FatalError("Error deserializing 'authority' (StandardURLSegment) member of 'StandardURLParams'");
3489 0 : return false;
3490 : }
3491 : // Sentinel = 'authority'
3492 17 : if ((!((msg__)->ReadSentinel(iter__, 1669684878)))) {
3493 0 : mozilla::ipc::SentinelReadError("Error deserializing 'authority' (StandardURLSegment) member of 'StandardURLParams'");
3494 0 : return false;
3495 : }
3496 17 : if ((!(Read((&((v__)->username())), msg__, iter__)))) {
3497 0 : FatalError("Error deserializing 'username' (StandardURLSegment) member of 'StandardURLParams'");
3498 0 : return false;
3499 : }
3500 : // Sentinel = 'username'
3501 17 : if ((!((msg__)->ReadSentinel(iter__, 689225024)))) {
3502 0 : mozilla::ipc::SentinelReadError("Error deserializing 'username' (StandardURLSegment) member of 'StandardURLParams'");
3503 0 : return false;
3504 : }
3505 17 : if ((!(Read((&((v__)->password())), msg__, iter__)))) {
3506 0 : FatalError("Error deserializing 'password' (StandardURLSegment) member of 'StandardURLParams'");
3507 0 : return false;
3508 : }
3509 : // Sentinel = 'password'
3510 17 : if ((!((msg__)->ReadSentinel(iter__, 2527534683)))) {
3511 0 : mozilla::ipc::SentinelReadError("Error deserializing 'password' (StandardURLSegment) member of 'StandardURLParams'");
3512 0 : return false;
3513 : }
3514 17 : if ((!(Read((&((v__)->host())), msg__, iter__)))) {
3515 0 : FatalError("Error deserializing 'host' (StandardURLSegment) member of 'StandardURLParams'");
3516 0 : return false;
3517 : }
3518 : // Sentinel = 'host'
3519 17 : if ((!((msg__)->ReadSentinel(iter__, 4070301394)))) {
3520 0 : mozilla::ipc::SentinelReadError("Error deserializing 'host' (StandardURLSegment) member of 'StandardURLParams'");
3521 0 : return false;
3522 : }
3523 17 : if ((!(Read((&((v__)->path())), msg__, iter__)))) {
3524 0 : FatalError("Error deserializing 'path' (StandardURLSegment) member of 'StandardURLParams'");
3525 0 : return false;
3526 : }
3527 : // Sentinel = 'path'
3528 17 : if ((!((msg__)->ReadSentinel(iter__, 913629401)))) {
3529 0 : mozilla::ipc::SentinelReadError("Error deserializing 'path' (StandardURLSegment) member of 'StandardURLParams'");
3530 0 : return false;
3531 : }
3532 17 : if ((!(Read((&((v__)->filePath())), msg__, iter__)))) {
3533 0 : FatalError("Error deserializing 'filePath' (StandardURLSegment) member of 'StandardURLParams'");
3534 0 : return false;
3535 : }
3536 : // Sentinel = 'filePath'
3537 17 : if ((!((msg__)->ReadSentinel(iter__, 4122896455)))) {
3538 0 : mozilla::ipc::SentinelReadError("Error deserializing 'filePath' (StandardURLSegment) member of 'StandardURLParams'");
3539 0 : return false;
3540 : }
3541 17 : if ((!(Read((&((v__)->directory())), msg__, iter__)))) {
3542 0 : FatalError("Error deserializing 'directory' (StandardURLSegment) member of 'StandardURLParams'");
3543 0 : return false;
3544 : }
3545 : // Sentinel = 'directory'
3546 17 : if ((!((msg__)->ReadSentinel(iter__, 1201172472)))) {
3547 0 : mozilla::ipc::SentinelReadError("Error deserializing 'directory' (StandardURLSegment) member of 'StandardURLParams'");
3548 0 : return false;
3549 : }
3550 17 : if ((!(Read((&((v__)->baseName())), msg__, iter__)))) {
3551 0 : FatalError("Error deserializing 'baseName' (StandardURLSegment) member of 'StandardURLParams'");
3552 0 : return false;
3553 : }
3554 : // Sentinel = 'baseName'
3555 17 : if ((!((msg__)->ReadSentinel(iter__, 2448877418)))) {
3556 0 : mozilla::ipc::SentinelReadError("Error deserializing 'baseName' (StandardURLSegment) member of 'StandardURLParams'");
3557 0 : return false;
3558 : }
3559 17 : if ((!(Read((&((v__)->extension())), msg__, iter__)))) {
3560 0 : FatalError("Error deserializing 'extension' (StandardURLSegment) member of 'StandardURLParams'");
3561 0 : return false;
3562 : }
3563 : // Sentinel = 'extension'
3564 17 : if ((!((msg__)->ReadSentinel(iter__, 3211853542)))) {
3565 0 : mozilla::ipc::SentinelReadError("Error deserializing 'extension' (StandardURLSegment) member of 'StandardURLParams'");
3566 0 : return false;
3567 : }
3568 17 : if ((!(Read((&((v__)->query())), msg__, iter__)))) {
3569 0 : FatalError("Error deserializing 'query' (StandardURLSegment) member of 'StandardURLParams'");
3570 0 : return false;
3571 : }
3572 : // Sentinel = 'query'
3573 17 : if ((!((msg__)->ReadSentinel(iter__, 4249802777)))) {
3574 0 : mozilla::ipc::SentinelReadError("Error deserializing 'query' (StandardURLSegment) member of 'StandardURLParams'");
3575 0 : return false;
3576 : }
3577 17 : if ((!(Read((&((v__)->ref())), msg__, iter__)))) {
3578 0 : FatalError("Error deserializing 'ref' (StandardURLSegment) member of 'StandardURLParams'");
3579 0 : return false;
3580 : }
3581 : // Sentinel = 'ref'
3582 17 : if ((!((msg__)->ReadSentinel(iter__, 2626476732)))) {
3583 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ref' (StandardURLSegment) member of 'StandardURLParams'");
3584 0 : return false;
3585 : }
3586 17 : if ((!(Read((&((v__)->originCharset())), msg__, iter__)))) {
3587 0 : FatalError("Error deserializing 'originCharset' (nsCString) member of 'StandardURLParams'");
3588 0 : return false;
3589 : }
3590 : // Sentinel = 'originCharset'
3591 17 : if ((!((msg__)->ReadSentinel(iter__, 1320725495)))) {
3592 0 : mozilla::ipc::SentinelReadError("Error deserializing 'originCharset' (nsCString) member of 'StandardURLParams'");
3593 0 : return false;
3594 : }
3595 17 : if ((!(Read((&((v__)->isMutable())), msg__, iter__)))) {
3596 0 : FatalError("Error deserializing 'isMutable' (bool) member of 'StandardURLParams'");
3597 0 : return false;
3598 : }
3599 : // Sentinel = 'isMutable'
3600 17 : if ((!((msg__)->ReadSentinel(iter__, 3552466783)))) {
3601 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isMutable' (bool) member of 'StandardURLParams'");
3602 0 : return false;
3603 : }
3604 17 : if ((!(Read((&((v__)->supportsFileURL())), msg__, iter__)))) {
3605 0 : FatalError("Error deserializing 'supportsFileURL' (bool) member of 'StandardURLParams'");
3606 0 : return false;
3607 : }
3608 : // Sentinel = 'supportsFileURL'
3609 17 : if ((!((msg__)->ReadSentinel(iter__, 1871785710)))) {
3610 0 : mozilla::ipc::SentinelReadError("Error deserializing 'supportsFileURL' (bool) member of 'StandardURLParams'");
3611 0 : return false;
3612 : }
3613 17 : return true;
3614 : }
3615 :
3616 0 : auto PNeckoParent::Write(
3617 : const OptionalInputStreamParams& v__,
3618 : Message* msg__) -> void
3619 : {
3620 : typedef OptionalInputStreamParams type__;
3621 0 : Write(int((v__).type()), msg__);
3622 : // Sentinel = 'OptionalInputStreamParams'
3623 0 : (msg__)->WriteSentinel(1355174443);
3624 :
3625 0 : switch ((v__).type()) {
3626 : case type__::Tvoid_t:
3627 : {
3628 0 : Write((v__).get_void_t(), msg__);
3629 : // Sentinel = 'Tvoid_t'
3630 0 : (msg__)->WriteSentinel(3041273328);
3631 0 : return;
3632 : }
3633 : case type__::TInputStreamParams:
3634 : {
3635 0 : Write((v__).get_InputStreamParams(), msg__);
3636 : // Sentinel = 'TInputStreamParams'
3637 0 : (msg__)->WriteSentinel(55652096);
3638 0 : return;
3639 : }
3640 : default:
3641 : {
3642 0 : FatalError("unknown union type");
3643 0 : return;
3644 : }
3645 : }
3646 : }
3647 :
3648 0 : auto PNeckoParent::Read(
3649 : OptionalInputStreamParams* v__,
3650 : const Message* msg__,
3651 : PickleIterator* iter__) -> bool
3652 : {
3653 : typedef OptionalInputStreamParams type__;
3654 : int type;
3655 0 : if ((!(Read((&(type)), msg__, iter__)))) {
3656 0 : mozilla::ipc::UnionTypeReadError("OptionalInputStreamParams");
3657 0 : return false;
3658 : }
3659 : // Sentinel = 'OptionalInputStreamParams'
3660 0 : if ((!((msg__)->ReadSentinel(iter__, 1355174443)))) {
3661 0 : mozilla::ipc::SentinelReadError("OptionalInputStreamParams");
3662 0 : return false;
3663 : }
3664 :
3665 0 : switch (type) {
3666 : case type__::Tvoid_t:
3667 : {
3668 : void_t tmp = void_t();
3669 0 : (*(v__)) = tmp;
3670 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
3671 0 : FatalError("Error deserializing Union type");
3672 0 : return false;
3673 : }
3674 : // Sentinel = 'Tvoid_t'
3675 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
3676 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3677 0 : return false;
3678 : }
3679 0 : return true;
3680 : }
3681 : case type__::TInputStreamParams:
3682 : {
3683 0 : InputStreamParams tmp = InputStreamParams();
3684 0 : (*(v__)) = tmp;
3685 0 : if ((!(Read((&((v__)->get_InputStreamParams())), msg__, iter__)))) {
3686 0 : FatalError("Error deserializing Union type");
3687 0 : return false;
3688 : }
3689 : // Sentinel = 'TInputStreamParams'
3690 0 : if ((!((msg__)->ReadSentinel(iter__, 55652096)))) {
3691 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3692 0 : return false;
3693 : }
3694 0 : return true;
3695 : }
3696 : default:
3697 : {
3698 0 : FatalError("unknown union type");
3699 0 : return false;
3700 : }
3701 : }
3702 : }
3703 :
3704 0 : auto PNeckoParent::Write(
3705 : const OptionalCorsPreflightArgs& v__,
3706 : Message* msg__) -> void
3707 : {
3708 : typedef OptionalCorsPreflightArgs type__;
3709 0 : Write(int((v__).type()), msg__);
3710 : // Sentinel = 'OptionalCorsPreflightArgs'
3711 0 : (msg__)->WriteSentinel(3238697490);
3712 :
3713 0 : switch ((v__).type()) {
3714 : case type__::Tvoid_t:
3715 : {
3716 0 : Write((v__).get_void_t(), msg__);
3717 : // Sentinel = 'Tvoid_t'
3718 0 : (msg__)->WriteSentinel(3041273328);
3719 0 : return;
3720 : }
3721 : case type__::TCorsPreflightArgs:
3722 : {
3723 0 : Write((v__).get_CorsPreflightArgs(), msg__);
3724 : // Sentinel = 'TCorsPreflightArgs'
3725 0 : (msg__)->WriteSentinel(2263898105);
3726 0 : return;
3727 : }
3728 : default:
3729 : {
3730 0 : FatalError("unknown union type");
3731 0 : return;
3732 : }
3733 : }
3734 : }
3735 :
3736 3 : auto PNeckoParent::Read(
3737 : OptionalCorsPreflightArgs* v__,
3738 : const Message* msg__,
3739 : PickleIterator* iter__) -> bool
3740 : {
3741 : typedef OptionalCorsPreflightArgs type__;
3742 : int type;
3743 3 : if ((!(Read((&(type)), msg__, iter__)))) {
3744 0 : mozilla::ipc::UnionTypeReadError("OptionalCorsPreflightArgs");
3745 0 : return false;
3746 : }
3747 : // Sentinel = 'OptionalCorsPreflightArgs'
3748 3 : if ((!((msg__)->ReadSentinel(iter__, 3238697490)))) {
3749 0 : mozilla::ipc::SentinelReadError("OptionalCorsPreflightArgs");
3750 0 : return false;
3751 : }
3752 :
3753 3 : switch (type) {
3754 : case type__::Tvoid_t:
3755 : {
3756 : void_t tmp = void_t();
3757 3 : (*(v__)) = tmp;
3758 3 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
3759 0 : FatalError("Error deserializing Union type");
3760 0 : return false;
3761 : }
3762 : // Sentinel = 'Tvoid_t'
3763 3 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
3764 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3765 0 : return false;
3766 : }
3767 3 : return true;
3768 : }
3769 : case type__::TCorsPreflightArgs:
3770 : {
3771 0 : CorsPreflightArgs tmp = CorsPreflightArgs();
3772 0 : (*(v__)) = tmp;
3773 0 : if ((!(Read((&((v__)->get_CorsPreflightArgs())), msg__, iter__)))) {
3774 0 : FatalError("Error deserializing Union type");
3775 0 : return false;
3776 : }
3777 : // Sentinel = 'TCorsPreflightArgs'
3778 0 : if ((!((msg__)->ReadSentinel(iter__, 2263898105)))) {
3779 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3780 0 : return false;
3781 : }
3782 0 : return true;
3783 : }
3784 : default:
3785 : {
3786 0 : FatalError("unknown union type");
3787 0 : return false;
3788 : }
3789 : }
3790 : }
3791 :
3792 0 : auto PNeckoParent::Write(
3793 : const PAltDataOutputStreamParent* v__,
3794 : Message* msg__,
3795 : bool nullable__) -> void
3796 : {
3797 : int32_t id;
3798 0 : if ((!(v__))) {
3799 0 : if ((!(nullable__))) {
3800 0 : FatalError("NULL actor value passed to non-nullable param");
3801 : }
3802 0 : id = 0;
3803 : }
3804 : else {
3805 0 : id = (v__)->Id();
3806 0 : if ((1) == (id)) {
3807 0 : FatalError("actor has been |delete|d");
3808 : }
3809 : }
3810 :
3811 0 : Write(id, msg__);
3812 0 : }
3813 :
3814 0 : auto PNeckoParent::Read(
3815 : PAltDataOutputStreamParent** v__,
3816 : const Message* msg__,
3817 : PickleIterator* iter__,
3818 : bool nullable__) -> bool
3819 : {
3820 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PAltDataOutputStream", PAltDataOutputStreamMsgStart);
3821 0 : if ((actor).isNothing()) {
3822 0 : return false;
3823 : }
3824 :
3825 0 : (*(v__)) = static_cast<PAltDataOutputStreamParent*>((actor).value());
3826 0 : return true;
3827 : }
3828 :
3829 0 : auto PNeckoParent::Write(
3830 : const IPCRemoteStream& v__,
3831 : Message* msg__) -> void
3832 : {
3833 0 : Write((v__).delayedStart(), msg__);
3834 : // Sentinel = 'delayedStart'
3835 0 : (msg__)->WriteSentinel(1491822294);
3836 0 : Write((v__).stream(), msg__);
3837 : // Sentinel = 'stream'
3838 0 : (msg__)->WriteSentinel(4152748422);
3839 0 : }
3840 :
3841 0 : auto PNeckoParent::Read(
3842 : IPCRemoteStream* v__,
3843 : const Message* msg__,
3844 : PickleIterator* iter__) -> bool
3845 : {
3846 0 : if ((!(Read((&((v__)->delayedStart())), msg__, iter__)))) {
3847 0 : FatalError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
3848 0 : return false;
3849 : }
3850 : // Sentinel = 'delayedStart'
3851 0 : if ((!((msg__)->ReadSentinel(iter__, 1491822294)))) {
3852 0 : mozilla::ipc::SentinelReadError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
3853 0 : return false;
3854 : }
3855 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
3856 0 : FatalError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
3857 0 : return false;
3858 : }
3859 : // Sentinel = 'stream'
3860 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
3861 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
3862 0 : return false;
3863 : }
3864 0 : return true;
3865 : }
3866 :
3867 0 : auto PNeckoParent::Write(
3868 : const OptionalHttpResponseHead& v__,
3869 : Message* msg__) -> void
3870 : {
3871 : typedef OptionalHttpResponseHead type__;
3872 0 : Write(int((v__).type()), msg__);
3873 : // Sentinel = 'OptionalHttpResponseHead'
3874 0 : (msg__)->WriteSentinel(1811886563);
3875 :
3876 0 : switch ((v__).type()) {
3877 : case type__::Tvoid_t:
3878 : {
3879 0 : Write((v__).get_void_t(), msg__);
3880 : // Sentinel = 'Tvoid_t'
3881 0 : (msg__)->WriteSentinel(3041273328);
3882 0 : return;
3883 : }
3884 : case type__::TnsHttpResponseHead:
3885 : {
3886 0 : Write((v__).get_nsHttpResponseHead(), msg__);
3887 : // Sentinel = 'TnsHttpResponseHead'
3888 0 : (msg__)->WriteSentinel(2600232857);
3889 0 : return;
3890 : }
3891 : default:
3892 : {
3893 0 : FatalError("unknown union type");
3894 0 : return;
3895 : }
3896 : }
3897 : }
3898 :
3899 3 : auto PNeckoParent::Read(
3900 : OptionalHttpResponseHead* v__,
3901 : const Message* msg__,
3902 : PickleIterator* iter__) -> bool
3903 : {
3904 : typedef OptionalHttpResponseHead type__;
3905 : int type;
3906 3 : if ((!(Read((&(type)), msg__, iter__)))) {
3907 0 : mozilla::ipc::UnionTypeReadError("OptionalHttpResponseHead");
3908 0 : return false;
3909 : }
3910 : // Sentinel = 'OptionalHttpResponseHead'
3911 3 : if ((!((msg__)->ReadSentinel(iter__, 1811886563)))) {
3912 0 : mozilla::ipc::SentinelReadError("OptionalHttpResponseHead");
3913 0 : return false;
3914 : }
3915 :
3916 3 : switch (type) {
3917 : case type__::Tvoid_t:
3918 : {
3919 : void_t tmp = void_t();
3920 3 : (*(v__)) = tmp;
3921 3 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
3922 0 : FatalError("Error deserializing Union type");
3923 0 : return false;
3924 : }
3925 : // Sentinel = 'Tvoid_t'
3926 3 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
3927 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3928 0 : return false;
3929 : }
3930 3 : return true;
3931 : }
3932 : case type__::TnsHttpResponseHead:
3933 : {
3934 0 : nsHttpResponseHead tmp = nsHttpResponseHead();
3935 0 : (*(v__)) = tmp;
3936 0 : if ((!(Read((&((v__)->get_nsHttpResponseHead())), msg__, iter__)))) {
3937 0 : FatalError("Error deserializing Union type");
3938 0 : return false;
3939 : }
3940 : // Sentinel = 'TnsHttpResponseHead'
3941 0 : if ((!((msg__)->ReadSentinel(iter__, 2600232857)))) {
3942 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3943 0 : return false;
3944 : }
3945 0 : return true;
3946 : }
3947 : default:
3948 : {
3949 0 : FatalError("unknown union type");
3950 0 : return false;
3951 : }
3952 : }
3953 : }
3954 :
3955 0 : auto PNeckoParent::Write(
3956 : const URIParams& v__,
3957 : Message* msg__) -> void
3958 : {
3959 : typedef URIParams type__;
3960 0 : Write(int((v__).type()), msg__);
3961 : // Sentinel = 'URIParams'
3962 0 : (msg__)->WriteSentinel(1039516337);
3963 :
3964 0 : switch ((v__).type()) {
3965 : case type__::TSimpleURIParams:
3966 : {
3967 0 : Write((v__).get_SimpleURIParams(), msg__);
3968 : // Sentinel = 'TSimpleURIParams'
3969 0 : (msg__)->WriteSentinel(4028607586);
3970 0 : return;
3971 : }
3972 : case type__::TStandardURLParams:
3973 : {
3974 0 : Write((v__).get_StandardURLParams(), msg__);
3975 : // Sentinel = 'TStandardURLParams'
3976 0 : (msg__)->WriteSentinel(248174578);
3977 0 : return;
3978 : }
3979 : case type__::TJARURIParams:
3980 : {
3981 0 : Write((v__).get_JARURIParams(), msg__);
3982 : // Sentinel = 'TJARURIParams'
3983 0 : (msg__)->WriteSentinel(3404434792);
3984 0 : return;
3985 : }
3986 : case type__::TIconURIParams:
3987 : {
3988 0 : Write((v__).get_IconURIParams(), msg__);
3989 : // Sentinel = 'TIconURIParams'
3990 0 : (msg__)->WriteSentinel(1824279023);
3991 0 : return;
3992 : }
3993 : case type__::TNullPrincipalURIParams:
3994 : {
3995 0 : Write((v__).get_NullPrincipalURIParams(), msg__);
3996 : // Sentinel = 'TNullPrincipalURIParams'
3997 0 : (msg__)->WriteSentinel(216801182);
3998 0 : return;
3999 : }
4000 : case type__::TJSURIParams:
4001 : {
4002 0 : Write((v__).get_JSURIParams(), msg__);
4003 : // Sentinel = 'TJSURIParams'
4004 0 : (msg__)->WriteSentinel(32222119);
4005 0 : return;
4006 : }
4007 : case type__::TSimpleNestedURIParams:
4008 : {
4009 0 : Write((v__).get_SimpleNestedURIParams(), msg__);
4010 : // Sentinel = 'TSimpleNestedURIParams'
4011 0 : (msg__)->WriteSentinel(3192238307);
4012 0 : return;
4013 : }
4014 : case type__::THostObjectURIParams:
4015 : {
4016 0 : Write((v__).get_HostObjectURIParams(), msg__);
4017 : // Sentinel = 'THostObjectURIParams'
4018 0 : (msg__)->WriteSentinel(1307971301);
4019 0 : return;
4020 : }
4021 : default:
4022 : {
4023 0 : FatalError("unknown union type");
4024 0 : return;
4025 : }
4026 : }
4027 : }
4028 :
4029 17 : auto PNeckoParent::Read(
4030 : URIParams* v__,
4031 : const Message* msg__,
4032 : PickleIterator* iter__) -> bool
4033 : {
4034 : typedef URIParams type__;
4035 : int type;
4036 17 : if ((!(Read((&(type)), msg__, iter__)))) {
4037 0 : mozilla::ipc::UnionTypeReadError("URIParams");
4038 0 : return false;
4039 : }
4040 : // Sentinel = 'URIParams'
4041 17 : if ((!((msg__)->ReadSentinel(iter__, 1039516337)))) {
4042 0 : mozilla::ipc::SentinelReadError("URIParams");
4043 0 : return false;
4044 : }
4045 :
4046 17 : switch (type) {
4047 : case type__::TSimpleURIParams:
4048 : {
4049 0 : SimpleURIParams tmp = SimpleURIParams();
4050 0 : (*(v__)) = tmp;
4051 0 : if ((!(Read((&((v__)->get_SimpleURIParams())), msg__, iter__)))) {
4052 0 : FatalError("Error deserializing Union type");
4053 0 : return false;
4054 : }
4055 : // Sentinel = 'TSimpleURIParams'
4056 0 : if ((!((msg__)->ReadSentinel(iter__, 4028607586)))) {
4057 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4058 0 : return false;
4059 : }
4060 0 : return true;
4061 : }
4062 : case type__::TStandardURLParams:
4063 : {
4064 34 : StandardURLParams tmp = StandardURLParams();
4065 17 : (*(v__)) = tmp;
4066 17 : if ((!(Read((&((v__)->get_StandardURLParams())), msg__, iter__)))) {
4067 0 : FatalError("Error deserializing Union type");
4068 0 : return false;
4069 : }
4070 : // Sentinel = 'TStandardURLParams'
4071 17 : if ((!((msg__)->ReadSentinel(iter__, 248174578)))) {
4072 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4073 0 : return false;
4074 : }
4075 17 : return true;
4076 : }
4077 : case type__::TJARURIParams:
4078 : {
4079 0 : JARURIParams tmp = JARURIParams();
4080 0 : (*(v__)) = tmp;
4081 0 : if ((!(Read((&((v__)->get_JARURIParams())), msg__, iter__)))) {
4082 0 : FatalError("Error deserializing Union type");
4083 0 : return false;
4084 : }
4085 : // Sentinel = 'TJARURIParams'
4086 0 : if ((!((msg__)->ReadSentinel(iter__, 3404434792)))) {
4087 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4088 0 : return false;
4089 : }
4090 0 : return true;
4091 : }
4092 : case type__::TIconURIParams:
4093 : {
4094 0 : IconURIParams tmp = IconURIParams();
4095 0 : (*(v__)) = tmp;
4096 0 : if ((!(Read((&((v__)->get_IconURIParams())), msg__, iter__)))) {
4097 0 : FatalError("Error deserializing Union type");
4098 0 : return false;
4099 : }
4100 : // Sentinel = 'TIconURIParams'
4101 0 : if ((!((msg__)->ReadSentinel(iter__, 1824279023)))) {
4102 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4103 0 : return false;
4104 : }
4105 0 : return true;
4106 : }
4107 : case type__::TNullPrincipalURIParams:
4108 : {
4109 0 : NullPrincipalURIParams tmp = NullPrincipalURIParams();
4110 0 : (*(v__)) = tmp;
4111 0 : if ((!(Read((&((v__)->get_NullPrincipalURIParams())), msg__, iter__)))) {
4112 0 : FatalError("Error deserializing Union type");
4113 0 : return false;
4114 : }
4115 : // Sentinel = 'TNullPrincipalURIParams'
4116 0 : if ((!((msg__)->ReadSentinel(iter__, 216801182)))) {
4117 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4118 0 : return false;
4119 : }
4120 0 : return true;
4121 : }
4122 : case type__::TJSURIParams:
4123 : {
4124 0 : JSURIParams tmp = JSURIParams();
4125 0 : (*(v__)) = tmp;
4126 0 : if ((!(Read((&((v__)->get_JSURIParams())), msg__, iter__)))) {
4127 0 : FatalError("Error deserializing Union type");
4128 0 : return false;
4129 : }
4130 : // Sentinel = 'TJSURIParams'
4131 0 : if ((!((msg__)->ReadSentinel(iter__, 32222119)))) {
4132 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4133 0 : return false;
4134 : }
4135 0 : return true;
4136 : }
4137 : case type__::TSimpleNestedURIParams:
4138 : {
4139 0 : SimpleNestedURIParams tmp = SimpleNestedURIParams();
4140 0 : (*(v__)) = tmp;
4141 0 : if ((!(Read((&((v__)->get_SimpleNestedURIParams())), msg__, iter__)))) {
4142 0 : FatalError("Error deserializing Union type");
4143 0 : return false;
4144 : }
4145 : // Sentinel = 'TSimpleNestedURIParams'
4146 0 : if ((!((msg__)->ReadSentinel(iter__, 3192238307)))) {
4147 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4148 0 : return false;
4149 : }
4150 0 : return true;
4151 : }
4152 : case type__::THostObjectURIParams:
4153 : {
4154 0 : HostObjectURIParams tmp = HostObjectURIParams();
4155 0 : (*(v__)) = tmp;
4156 0 : if ((!(Read((&((v__)->get_HostObjectURIParams())), msg__, iter__)))) {
4157 0 : FatalError("Error deserializing Union type");
4158 0 : return false;
4159 : }
4160 : // Sentinel = 'THostObjectURIParams'
4161 0 : if ((!((msg__)->ReadSentinel(iter__, 1307971301)))) {
4162 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4163 0 : return false;
4164 : }
4165 0 : return true;
4166 : }
4167 : default:
4168 : {
4169 0 : FatalError("unknown union type");
4170 0 : return false;
4171 : }
4172 : }
4173 : }
4174 :
4175 0 : auto PNeckoParent::Write(
4176 : const RedirectHistoryEntryInfo& v__,
4177 : Message* msg__) -> void
4178 : {
4179 0 : Write((v__).principalInfo(), msg__);
4180 : // Sentinel = 'principalInfo'
4181 0 : (msg__)->WriteSentinel(3386633731);
4182 0 : Write((v__).referrerUri(), msg__);
4183 : // Sentinel = 'referrerUri'
4184 0 : (msg__)->WriteSentinel(622910354);
4185 0 : Write((v__).remoteAddress(), msg__);
4186 : // Sentinel = 'remoteAddress'
4187 0 : (msg__)->WriteSentinel(3204520231);
4188 0 : }
4189 :
4190 0 : auto PNeckoParent::Read(
4191 : RedirectHistoryEntryInfo* v__,
4192 : const Message* msg__,
4193 : PickleIterator* iter__) -> bool
4194 : {
4195 0 : if ((!(Read((&((v__)->principalInfo())), msg__, iter__)))) {
4196 0 : FatalError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'RedirectHistoryEntryInfo'");
4197 0 : return false;
4198 : }
4199 : // Sentinel = 'principalInfo'
4200 0 : if ((!((msg__)->ReadSentinel(iter__, 3386633731)))) {
4201 0 : mozilla::ipc::SentinelReadError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'RedirectHistoryEntryInfo'");
4202 0 : return false;
4203 : }
4204 0 : if ((!(Read((&((v__)->referrerUri())), msg__, iter__)))) {
4205 0 : FatalError("Error deserializing 'referrerUri' (OptionalURIParams) member of 'RedirectHistoryEntryInfo'");
4206 0 : return false;
4207 : }
4208 : // Sentinel = 'referrerUri'
4209 0 : if ((!((msg__)->ReadSentinel(iter__, 622910354)))) {
4210 0 : mozilla::ipc::SentinelReadError("Error deserializing 'referrerUri' (OptionalURIParams) member of 'RedirectHistoryEntryInfo'");
4211 0 : return false;
4212 : }
4213 0 : if ((!(Read((&((v__)->remoteAddress())), msg__, iter__)))) {
4214 0 : FatalError("Error deserializing 'remoteAddress' (nsCString) member of 'RedirectHistoryEntryInfo'");
4215 0 : return false;
4216 : }
4217 : // Sentinel = 'remoteAddress'
4218 0 : if ((!((msg__)->ReadSentinel(iter__, 3204520231)))) {
4219 0 : mozilla::ipc::SentinelReadError("Error deserializing 'remoteAddress' (nsCString) member of 'RedirectHistoryEntryInfo'");
4220 0 : return false;
4221 : }
4222 0 : return true;
4223 : }
4224 :
4225 0 : auto PNeckoParent::Write(
4226 : const PFTPChannelParent* v__,
4227 : Message* msg__,
4228 : bool nullable__) -> void
4229 : {
4230 : int32_t id;
4231 0 : if ((!(v__))) {
4232 0 : if ((!(nullable__))) {
4233 0 : FatalError("NULL actor value passed to non-nullable param");
4234 : }
4235 0 : id = 0;
4236 : }
4237 : else {
4238 0 : id = (v__)->Id();
4239 0 : if ((1) == (id)) {
4240 0 : FatalError("actor has been |delete|d");
4241 : }
4242 : }
4243 :
4244 0 : Write(id, msg__);
4245 0 : }
4246 :
4247 0 : auto PNeckoParent::Read(
4248 : PFTPChannelParent** v__,
4249 : const Message* msg__,
4250 : PickleIterator* iter__,
4251 : bool nullable__) -> bool
4252 : {
4253 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PFTPChannel", PFTPChannelMsgStart);
4254 0 : if ((actor).isNothing()) {
4255 0 : return false;
4256 : }
4257 :
4258 0 : (*(v__)) = static_cast<PFTPChannelParent*>((actor).value());
4259 0 : return true;
4260 : }
4261 :
4262 0 : auto PNeckoParent::Write(
4263 : const CorsPreflightArgs& v__,
4264 : Message* msg__) -> void
4265 : {
4266 0 : Write((v__).unsafeHeaders(), msg__);
4267 : // Sentinel = 'unsafeHeaders'
4268 0 : (msg__)->WriteSentinel(259870561);
4269 0 : }
4270 :
4271 0 : auto PNeckoParent::Read(
4272 : CorsPreflightArgs* v__,
4273 : const Message* msg__,
4274 : PickleIterator* iter__) -> bool
4275 : {
4276 0 : if ((!(Read((&((v__)->unsafeHeaders())), msg__, iter__)))) {
4277 0 : FatalError("Error deserializing 'unsafeHeaders' (nsCString[]) member of 'CorsPreflightArgs'");
4278 0 : return false;
4279 : }
4280 : // Sentinel = 'unsafeHeaders'
4281 0 : if ((!((msg__)->ReadSentinel(iter__, 259870561)))) {
4282 0 : mozilla::ipc::SentinelReadError("Error deserializing 'unsafeHeaders' (nsCString[]) member of 'CorsPreflightArgs'");
4283 0 : return false;
4284 : }
4285 0 : return true;
4286 : }
4287 :
4288 0 : auto PNeckoParent::Write(
4289 : const FileInputStreamParams& v__,
4290 : Message* msg__) -> void
4291 : {
4292 0 : Write((v__).fileDescriptorIndex(), msg__);
4293 : // Sentinel = 'fileDescriptorIndex'
4294 0 : (msg__)->WriteSentinel(587329112);
4295 0 : Write((v__).behaviorFlags(), msg__);
4296 : // Sentinel = 'behaviorFlags'
4297 0 : (msg__)->WriteSentinel(2404401962);
4298 0 : Write((v__).ioFlags(), msg__);
4299 : // Sentinel = 'ioFlags'
4300 0 : (msg__)->WriteSentinel(1483009730);
4301 0 : }
4302 :
4303 0 : auto PNeckoParent::Read(
4304 : FileInputStreamParams* v__,
4305 : const Message* msg__,
4306 : PickleIterator* iter__) -> bool
4307 : {
4308 0 : if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
4309 0 : FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
4310 0 : return false;
4311 : }
4312 : // Sentinel = 'fileDescriptorIndex'
4313 0 : if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
4314 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
4315 0 : return false;
4316 : }
4317 0 : if ((!(Read((&((v__)->behaviorFlags())), msg__, iter__)))) {
4318 0 : FatalError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
4319 0 : return false;
4320 : }
4321 : // Sentinel = 'behaviorFlags'
4322 0 : if ((!((msg__)->ReadSentinel(iter__, 2404401962)))) {
4323 0 : mozilla::ipc::SentinelReadError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
4324 0 : return false;
4325 : }
4326 0 : if ((!(Read((&((v__)->ioFlags())), msg__, iter__)))) {
4327 0 : FatalError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
4328 0 : return false;
4329 : }
4330 : // Sentinel = 'ioFlags'
4331 0 : if ((!((msg__)->ReadSentinel(iter__, 1483009730)))) {
4332 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
4333 0 : return false;
4334 : }
4335 0 : return true;
4336 : }
4337 :
4338 0 : auto PNeckoParent::Write(
4339 : const PUDPSocketParent* v__,
4340 : Message* msg__,
4341 : bool nullable__) -> void
4342 : {
4343 : int32_t id;
4344 0 : if ((!(v__))) {
4345 0 : if ((!(nullable__))) {
4346 0 : FatalError("NULL actor value passed to non-nullable param");
4347 : }
4348 0 : id = 0;
4349 : }
4350 : else {
4351 0 : id = (v__)->Id();
4352 0 : if ((1) == (id)) {
4353 0 : FatalError("actor has been |delete|d");
4354 : }
4355 : }
4356 :
4357 0 : Write(id, msg__);
4358 0 : }
4359 :
4360 0 : auto PNeckoParent::Read(
4361 : PUDPSocketParent** v__,
4362 : const Message* msg__,
4363 : PickleIterator* iter__,
4364 : bool nullable__) -> bool
4365 : {
4366 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PUDPSocket", PUDPSocketMsgStart);
4367 0 : if ((actor).isNothing()) {
4368 0 : return false;
4369 : }
4370 :
4371 0 : (*(v__)) = static_cast<PUDPSocketParent*>((actor).value());
4372 0 : return true;
4373 : }
4374 :
4375 0 : auto PNeckoParent::Write(
4376 : const HttpChannelDiverterArgs& v__,
4377 : Message* msg__) -> void
4378 : {
4379 0 : Write((v__).mChannelParent(), msg__, false);
4380 : // Sentinel = 'mChannel'
4381 0 : (msg__)->WriteSentinel(1707342666);
4382 : // skipping actor field that's meaningless on this side
4383 0 : Write((v__).mApplyConversion(), msg__);
4384 : // Sentinel = 'mApplyConversion'
4385 0 : (msg__)->WriteSentinel(2495336819);
4386 0 : }
4387 :
4388 0 : auto PNeckoParent::Read(
4389 : HttpChannelDiverterArgs* v__,
4390 : const Message* msg__,
4391 : PickleIterator* iter__) -> bool
4392 : {
4393 0 : if ((!(Read((&((v__)->mChannelParent())), msg__, iter__, false)))) {
4394 0 : FatalError("Error deserializing 'mChannelParent' (PHttpChannel) member of 'HttpChannelDiverterArgs'");
4395 0 : return false;
4396 : }
4397 : // Sentinel = 'mChannel'
4398 0 : if ((!((msg__)->ReadSentinel(iter__, 1707342666)))) {
4399 0 : mozilla::ipc::SentinelReadError("Error deserializing 'mChannelParent' (PHttpChannel) member of 'HttpChannelDiverterArgs'");
4400 0 : return false;
4401 : }
4402 : // skipping actor field that's meaningless on this side
4403 0 : if ((!(Read((&((v__)->mApplyConversion())), msg__, iter__)))) {
4404 0 : FatalError("Error deserializing 'mApplyConversion' (bool) member of 'HttpChannelDiverterArgs'");
4405 0 : return false;
4406 : }
4407 : // Sentinel = 'mApplyConversion'
4408 0 : if ((!((msg__)->ReadSentinel(iter__, 2495336819)))) {
4409 0 : mozilla::ipc::SentinelReadError("Error deserializing 'mApplyConversion' (bool) member of 'HttpChannelDiverterArgs'");
4410 0 : return false;
4411 : }
4412 0 : return true;
4413 : }
4414 :
4415 0 : auto PNeckoParent::Write(
4416 : const PStunAddrsRequestParent* v__,
4417 : Message* msg__,
4418 : bool nullable__) -> void
4419 : {
4420 : int32_t id;
4421 0 : if ((!(v__))) {
4422 0 : if ((!(nullable__))) {
4423 0 : FatalError("NULL actor value passed to non-nullable param");
4424 : }
4425 0 : id = 0;
4426 : }
4427 : else {
4428 0 : id = (v__)->Id();
4429 0 : if ((1) == (id)) {
4430 0 : FatalError("actor has been |delete|d");
4431 : }
4432 : }
4433 :
4434 0 : Write(id, msg__);
4435 0 : }
4436 :
4437 0 : auto PNeckoParent::Read(
4438 : PStunAddrsRequestParent** v__,
4439 : const Message* msg__,
4440 : PickleIterator* iter__,
4441 : bool nullable__) -> bool
4442 : {
4443 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PStunAddrsRequest", PStunAddrsRequestMsgStart);
4444 0 : if ((actor).isNothing()) {
4445 0 : return false;
4446 : }
4447 :
4448 0 : (*(v__)) = static_cast<PStunAddrsRequestParent*>((actor).value());
4449 0 : return true;
4450 : }
4451 :
4452 0 : auto PNeckoParent::Write(
4453 : const nsTArray<RedirectHistoryEntryInfo>& v__,
4454 : Message* msg__) -> void
4455 : {
4456 0 : uint32_t length = (v__).Length();
4457 0 : Write(length, msg__);
4458 : // Sentinel = ('length', 'RedirectHistoryEntryInfo[]')
4459 0 : (msg__)->WriteSentinel(2482278523);
4460 :
4461 0 : for (auto& elem : v__) {
4462 0 : Write(elem, msg__);
4463 : // Sentinel = 'RedirectHistoryEntryInfo[]'
4464 0 : (msg__)->WriteSentinel(2694829470);
4465 : }
4466 0 : }
4467 :
4468 6 : auto PNeckoParent::Read(
4469 : nsTArray<RedirectHistoryEntryInfo>* v__,
4470 : const Message* msg__,
4471 : PickleIterator* iter__) -> bool
4472 : {
4473 12 : nsTArray<RedirectHistoryEntryInfo> fa;
4474 : uint32_t length;
4475 6 : if ((!(Read((&(length)), msg__, iter__)))) {
4476 0 : mozilla::ipc::ArrayLengthReadError("RedirectHistoryEntryInfo[]");
4477 0 : return false;
4478 : }
4479 : // Sentinel = ('length', 'RedirectHistoryEntryInfo[]')
4480 6 : if ((!((msg__)->ReadSentinel(iter__, 2482278523)))) {
4481 0 : mozilla::ipc::SentinelReadError("RedirectHistoryEntryInfo[]");
4482 0 : return false;
4483 : }
4484 :
4485 6 : RedirectHistoryEntryInfo* elems = (fa).AppendElements(length);
4486 6 : for (uint32_t i = 0; (i) < (length); (++(i))) {
4487 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
4488 0 : FatalError("Error deserializing 'RedirectHistoryEntryInfo[i]'");
4489 0 : return false;
4490 : }
4491 : // Sentinel = 'RedirectHistoryEntryInfo[]'
4492 0 : if ((!((msg__)->ReadSentinel(iter__, 2694829470)))) {
4493 0 : mozilla::ipc::SentinelReadError("Error deserializing 'RedirectHistoryEntryInfo[i]'");
4494 0 : return false;
4495 : }
4496 : }
4497 6 : (v__)->SwapElements(fa);
4498 6 : return true;
4499 : }
4500 :
4501 0 : auto PNeckoParent::Write(
4502 : const SimpleNestedURIParams& v__,
4503 : Message* msg__) -> void
4504 : {
4505 0 : Write((v__).simpleParams(), msg__);
4506 : // Sentinel = 'simpleParams'
4507 0 : (msg__)->WriteSentinel(3404291700);
4508 0 : Write((v__).innerURI(), msg__);
4509 : // Sentinel = 'innerURI'
4510 0 : (msg__)->WriteSentinel(2573245334);
4511 0 : }
4512 :
4513 0 : auto PNeckoParent::Read(
4514 : SimpleNestedURIParams* v__,
4515 : const Message* msg__,
4516 : PickleIterator* iter__) -> bool
4517 : {
4518 0 : if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
4519 0 : FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'SimpleNestedURIParams'");
4520 0 : return false;
4521 : }
4522 : // Sentinel = 'simpleParams'
4523 0 : if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
4524 0 : mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'SimpleNestedURIParams'");
4525 0 : return false;
4526 : }
4527 0 : if ((!(Read((&((v__)->innerURI())), msg__, iter__)))) {
4528 0 : FatalError("Error deserializing 'innerURI' (URIParams) member of 'SimpleNestedURIParams'");
4529 0 : return false;
4530 : }
4531 : // Sentinel = 'innerURI'
4532 0 : if ((!((msg__)->ReadSentinel(iter__, 2573245334)))) {
4533 0 : mozilla::ipc::SentinelReadError("Error deserializing 'innerURI' (URIParams) member of 'SimpleNestedURIParams'");
4534 0 : return false;
4535 : }
4536 0 : return true;
4537 : }
4538 :
4539 0 : auto PNeckoParent::Write(
4540 : const FTPChannelConnectArgs& v__,
4541 : Message* msg__) -> void
4542 : {
4543 0 : Write((v__).channelId(), msg__);
4544 : // Sentinel = 'channelId'
4545 0 : (msg__)->WriteSentinel(6854027);
4546 0 : }
4547 :
4548 0 : auto PNeckoParent::Read(
4549 : FTPChannelConnectArgs* v__,
4550 : const Message* msg__,
4551 : PickleIterator* iter__) -> bool
4552 : {
4553 0 : if ((!(Read((&((v__)->channelId())), msg__, iter__)))) {
4554 0 : FatalError("Error deserializing 'channelId' (uint32_t) member of 'FTPChannelConnectArgs'");
4555 0 : return false;
4556 : }
4557 : // Sentinel = 'channelId'
4558 0 : if ((!((msg__)->ReadSentinel(iter__, 6854027)))) {
4559 0 : mozilla::ipc::SentinelReadError("Error deserializing 'channelId' (uint32_t) member of 'FTPChannelConnectArgs'");
4560 0 : return false;
4561 : }
4562 0 : return true;
4563 : }
4564 :
4565 0 : auto PNeckoParent::Write(
4566 : const OptionalPrincipalInfo& v__,
4567 : Message* msg__) -> void
4568 : {
4569 : typedef OptionalPrincipalInfo type__;
4570 0 : Write(int((v__).type()), msg__);
4571 : // Sentinel = 'OptionalPrincipalInfo'
4572 0 : (msg__)->WriteSentinel(3041452007);
4573 :
4574 0 : switch ((v__).type()) {
4575 : case type__::Tvoid_t:
4576 : {
4577 0 : Write((v__).get_void_t(), msg__);
4578 : // Sentinel = 'Tvoid_t'
4579 0 : (msg__)->WriteSentinel(3041273328);
4580 0 : return;
4581 : }
4582 : case type__::TPrincipalInfo:
4583 : {
4584 0 : Write((v__).get_PrincipalInfo(), msg__);
4585 : // Sentinel = 'TPrincipalInfo'
4586 0 : (msg__)->WriteSentinel(1396743580);
4587 0 : return;
4588 : }
4589 : default:
4590 : {
4591 0 : FatalError("unknown union type");
4592 0 : return;
4593 : }
4594 : }
4595 : }
4596 :
4597 9 : auto PNeckoParent::Read(
4598 : OptionalPrincipalInfo* v__,
4599 : const Message* msg__,
4600 : PickleIterator* iter__) -> bool
4601 : {
4602 : typedef OptionalPrincipalInfo type__;
4603 : int type;
4604 9 : if ((!(Read((&(type)), msg__, iter__)))) {
4605 0 : mozilla::ipc::UnionTypeReadError("OptionalPrincipalInfo");
4606 0 : return false;
4607 : }
4608 : // Sentinel = 'OptionalPrincipalInfo'
4609 9 : if ((!((msg__)->ReadSentinel(iter__, 3041452007)))) {
4610 0 : mozilla::ipc::SentinelReadError("OptionalPrincipalInfo");
4611 0 : return false;
4612 : }
4613 :
4614 9 : switch (type) {
4615 : case type__::Tvoid_t:
4616 : {
4617 : void_t tmp = void_t();
4618 7 : (*(v__)) = tmp;
4619 7 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
4620 0 : FatalError("Error deserializing Union type");
4621 0 : return false;
4622 : }
4623 : // Sentinel = 'Tvoid_t'
4624 7 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
4625 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4626 0 : return false;
4627 : }
4628 7 : return true;
4629 : }
4630 : case type__::TPrincipalInfo:
4631 : {
4632 4 : PrincipalInfo tmp = PrincipalInfo();
4633 2 : (*(v__)) = tmp;
4634 2 : if ((!(Read((&((v__)->get_PrincipalInfo())), msg__, iter__)))) {
4635 0 : FatalError("Error deserializing Union type");
4636 0 : return false;
4637 : }
4638 : // Sentinel = 'TPrincipalInfo'
4639 2 : if ((!((msg__)->ReadSentinel(iter__, 1396743580)))) {
4640 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4641 0 : return false;
4642 : }
4643 2 : return true;
4644 : }
4645 : default:
4646 : {
4647 0 : FatalError("unknown union type");
4648 0 : return false;
4649 : }
4650 : }
4651 : }
4652 :
4653 0 : auto PNeckoParent::Write(
4654 : const PTransportProviderParent* v__,
4655 : Message* msg__,
4656 : bool nullable__) -> void
4657 : {
4658 : int32_t id;
4659 0 : if ((!(v__))) {
4660 0 : if ((!(nullable__))) {
4661 0 : FatalError("NULL actor value passed to non-nullable param");
4662 : }
4663 0 : id = 0;
4664 : }
4665 : else {
4666 0 : id = (v__)->Id();
4667 0 : if ((1) == (id)) {
4668 0 : FatalError("actor has been |delete|d");
4669 : }
4670 : }
4671 :
4672 0 : Write(id, msg__);
4673 0 : }
4674 :
4675 0 : auto PNeckoParent::Read(
4676 : PTransportProviderParent** v__,
4677 : const Message* msg__,
4678 : PickleIterator* iter__,
4679 : bool nullable__) -> bool
4680 : {
4681 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PTransportProvider", PTransportProviderMsgStart);
4682 0 : if ((actor).isNothing()) {
4683 0 : return false;
4684 : }
4685 :
4686 0 : (*(v__)) = static_cast<PTransportProviderParent*>((actor).value());
4687 0 : return true;
4688 : }
4689 :
4690 0 : auto PNeckoParent::Write(
4691 : const PBrowserOrId& v__,
4692 : Message* msg__) -> void
4693 : {
4694 : typedef PBrowserOrId type__;
4695 0 : Write(int((v__).type()), msg__);
4696 : // Sentinel = 'PBrowserOrId'
4697 0 : (msg__)->WriteSentinel(1715137324);
4698 :
4699 0 : switch ((v__).type()) {
4700 : case type__::TPBrowserParent:
4701 : {
4702 0 : Write((v__).get_PBrowserParent(), msg__, true);
4703 : // Sentinel = 'TPBrowserParent'
4704 0 : (msg__)->WriteSentinel(3996262243);
4705 0 : return;
4706 : }
4707 : case type__::TPBrowserChild:
4708 : {
4709 0 : FatalError("wrong side!");
4710 0 : return;
4711 : }
4712 : case type__::TTabId:
4713 : {
4714 0 : Write((v__).get_TabId(), msg__);
4715 : // Sentinel = 'TTabId'
4716 0 : (msg__)->WriteSentinel(1071104628);
4717 0 : return;
4718 : }
4719 : default:
4720 : {
4721 0 : FatalError("unknown union type");
4722 0 : return;
4723 : }
4724 : }
4725 : }
4726 :
4727 3 : auto PNeckoParent::Read(
4728 : PBrowserOrId* v__,
4729 : const Message* msg__,
4730 : PickleIterator* iter__) -> bool
4731 : {
4732 : typedef PBrowserOrId type__;
4733 : int type;
4734 3 : if ((!(Read((&(type)), msg__, iter__)))) {
4735 0 : mozilla::ipc::UnionTypeReadError("PBrowserOrId");
4736 0 : return false;
4737 : }
4738 : // Sentinel = 'PBrowserOrId'
4739 3 : if ((!((msg__)->ReadSentinel(iter__, 1715137324)))) {
4740 0 : mozilla::ipc::SentinelReadError("PBrowserOrId");
4741 0 : return false;
4742 : }
4743 :
4744 3 : switch (type) {
4745 : case type__::TPBrowserParent:
4746 : {
4747 0 : return false;
4748 : }
4749 : case type__::TPBrowserChild:
4750 : {
4751 3 : PBrowserParent* tmp = nullptr;
4752 3 : (*(v__)) = tmp;
4753 3 : if ((!(Read((&((v__)->get_PBrowserParent())), msg__, iter__, true)))) {
4754 0 : FatalError("Error deserializing Union type");
4755 0 : return false;
4756 : }
4757 : // Sentinel = 'TPBrowserChild'
4758 3 : if ((!((msg__)->ReadSentinel(iter__, 2417584432)))) {
4759 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4760 0 : return false;
4761 : }
4762 3 : return true;
4763 : }
4764 : case type__::TTabId:
4765 : {
4766 0 : TabId tmp = TabId();
4767 0 : (*(v__)) = tmp;
4768 0 : if ((!(Read((&((v__)->get_TabId())), msg__, iter__)))) {
4769 0 : FatalError("Error deserializing Union type");
4770 0 : return false;
4771 : }
4772 : // Sentinel = 'TTabId'
4773 0 : if ((!((msg__)->ReadSentinel(iter__, 1071104628)))) {
4774 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4775 0 : return false;
4776 : }
4777 0 : return true;
4778 : }
4779 : default:
4780 : {
4781 0 : FatalError("unknown union type");
4782 0 : return false;
4783 : }
4784 : }
4785 : }
4786 :
4787 0 : auto PNeckoParent::Write(
4788 : const FileDescriptor& v__,
4789 : Message* msg__) -> void
4790 : {
4791 0 : FileDescriptor::PickleType pfd = (v__).ShareTo(FileDescriptor::IPDLPrivate(), OtherPid());
4792 0 : IPC::WriteParam(msg__, pfd);
4793 0 : }
4794 :
4795 0 : auto PNeckoParent::Read(
4796 : FileDescriptor* v__,
4797 : const Message* msg__,
4798 : PickleIterator* iter__) -> bool
4799 : {
4800 0 : FileDescriptor::PickleType pfd;
4801 0 : if ((!(IPC::ReadParam(msg__, iter__, (&(pfd)))))) {
4802 0 : return false;
4803 : }
4804 :
4805 0 : FileDescriptor fd = FileDescriptor(FileDescriptor::IPDLPrivate(), pfd);
4806 0 : if ((!((fd).IsValid()))) {
4807 0 : mozilla::ipc::ProtocolErrorBreakpoint("[PNeckoParent] Received an invalid file descriptor!");
4808 : }
4809 :
4810 0 : (*(v__)) = fd;
4811 0 : return true;
4812 : }
4813 :
4814 0 : auto PNeckoParent::Write(
4815 : const PNeckoParent* v__,
4816 : Message* msg__,
4817 : bool nullable__) -> void
4818 : {
4819 : int32_t id;
4820 0 : if ((!(v__))) {
4821 0 : if ((!(nullable__))) {
4822 0 : FatalError("NULL actor value passed to non-nullable param");
4823 : }
4824 0 : id = 0;
4825 : }
4826 : else {
4827 0 : id = (v__)->Id();
4828 0 : if ((1) == (id)) {
4829 0 : FatalError("actor has been |delete|d");
4830 : }
4831 : }
4832 :
4833 0 : Write(id, msg__);
4834 0 : }
4835 :
4836 0 : auto PNeckoParent::Read(
4837 : PNeckoParent** v__,
4838 : const Message* msg__,
4839 : PickleIterator* iter__,
4840 : bool nullable__) -> bool
4841 : {
4842 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PNecko", PNeckoMsgStart);
4843 0 : if ((actor).isNothing()) {
4844 0 : return false;
4845 : }
4846 :
4847 0 : (*(v__)) = static_cast<PNeckoParent*>((actor).value());
4848 0 : return true;
4849 : }
4850 :
4851 0 : auto PNeckoParent::Write(
4852 : const ExpandedPrincipalInfo& v__,
4853 : Message* msg__) -> void
4854 : {
4855 0 : Write((v__).attrs(), msg__);
4856 : // Sentinel = 'attrs'
4857 0 : (msg__)->WriteSentinel(3014987797);
4858 0 : Write((v__).whitelist(), msg__);
4859 : // Sentinel = 'whitelist'
4860 0 : (msg__)->WriteSentinel(3731637258);
4861 0 : }
4862 :
4863 0 : auto PNeckoParent::Read(
4864 : ExpandedPrincipalInfo* v__,
4865 : const Message* msg__,
4866 : PickleIterator* iter__) -> bool
4867 : {
4868 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
4869 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
4870 0 : return false;
4871 : }
4872 : // Sentinel = 'attrs'
4873 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
4874 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
4875 0 : return false;
4876 : }
4877 0 : if ((!(Read((&((v__)->whitelist())), msg__, iter__)))) {
4878 0 : FatalError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
4879 0 : return false;
4880 : }
4881 : // Sentinel = 'whitelist'
4882 0 : if ((!((msg__)->ReadSentinel(iter__, 3731637258)))) {
4883 0 : mozilla::ipc::SentinelReadError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
4884 0 : return false;
4885 : }
4886 0 : return true;
4887 : }
4888 :
4889 0 : auto PNeckoParent::Write(
4890 : const BufferedInputStreamParams& v__,
4891 : Message* msg__) -> void
4892 : {
4893 0 : Write((v__).optionalStream(), msg__);
4894 : // Sentinel = 'optionalStream'
4895 0 : (msg__)->WriteSentinel(1003718562);
4896 0 : Write((v__).bufferSize(), msg__);
4897 : // Sentinel = 'bufferSize'
4898 0 : (msg__)->WriteSentinel(3444538779);
4899 0 : }
4900 :
4901 0 : auto PNeckoParent::Read(
4902 : BufferedInputStreamParams* v__,
4903 : const Message* msg__,
4904 : PickleIterator* iter__) -> bool
4905 : {
4906 0 : if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
4907 0 : FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
4908 0 : return false;
4909 : }
4910 : // Sentinel = 'optionalStream'
4911 0 : if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
4912 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
4913 0 : return false;
4914 : }
4915 0 : if ((!(Read((&((v__)->bufferSize())), msg__, iter__)))) {
4916 0 : FatalError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
4917 0 : return false;
4918 : }
4919 : // Sentinel = 'bufferSize'
4920 0 : if ((!((msg__)->ReadSentinel(iter__, 3444538779)))) {
4921 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
4922 0 : return false;
4923 : }
4924 0 : return true;
4925 : }
4926 :
4927 0 : auto PNeckoParent::Write(
4928 : const HostObjectURIParams& v__,
4929 : Message* msg__) -> void
4930 : {
4931 0 : Write((v__).simpleParams(), msg__);
4932 : // Sentinel = 'simpleParams'
4933 0 : (msg__)->WriteSentinel(3404291700);
4934 0 : Write((v__).principal(), msg__);
4935 : // Sentinel = 'principal'
4936 0 : (msg__)->WriteSentinel(732240927);
4937 0 : }
4938 :
4939 0 : auto PNeckoParent::Read(
4940 : HostObjectURIParams* v__,
4941 : const Message* msg__,
4942 : PickleIterator* iter__) -> bool
4943 : {
4944 0 : if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
4945 0 : FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'HostObjectURIParams'");
4946 0 : return false;
4947 : }
4948 : // Sentinel = 'simpleParams'
4949 0 : if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
4950 0 : mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'HostObjectURIParams'");
4951 0 : return false;
4952 : }
4953 0 : if ((!(Read((&((v__)->principal())), msg__, iter__)))) {
4954 0 : FatalError("Error deserializing 'principal' (OptionalPrincipalInfo) member of 'HostObjectURIParams'");
4955 0 : return false;
4956 : }
4957 : // Sentinel = 'principal'
4958 0 : if ((!((msg__)->ReadSentinel(iter__, 732240927)))) {
4959 0 : mozilla::ipc::SentinelReadError("Error deserializing 'principal' (OptionalPrincipalInfo) member of 'HostObjectURIParams'");
4960 0 : return false;
4961 : }
4962 0 : return true;
4963 : }
4964 :
4965 0 : auto PNeckoParent::Write(
4966 : const InputStreamParamsWithFds& v__,
4967 : Message* msg__) -> void
4968 : {
4969 0 : Write((v__).stream(), msg__);
4970 : // Sentinel = 'stream'
4971 0 : (msg__)->WriteSentinel(4152748422);
4972 0 : Write((v__).optionalFds(), msg__);
4973 : // Sentinel = 'optionalFds'
4974 0 : (msg__)->WriteSentinel(1021803302);
4975 0 : }
4976 :
4977 0 : auto PNeckoParent::Read(
4978 : InputStreamParamsWithFds* v__,
4979 : const Message* msg__,
4980 : PickleIterator* iter__) -> bool
4981 : {
4982 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
4983 0 : FatalError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
4984 0 : return false;
4985 : }
4986 : // Sentinel = 'stream'
4987 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
4988 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
4989 0 : return false;
4990 : }
4991 0 : if ((!(Read((&((v__)->optionalFds())), msg__, iter__)))) {
4992 0 : FatalError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
4993 0 : return false;
4994 : }
4995 : // Sentinel = 'optionalFds'
4996 0 : if ((!((msg__)->ReadSentinel(iter__, 1021803302)))) {
4997 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
4998 0 : return false;
4999 : }
5000 0 : return true;
5001 : }
5002 :
5003 0 : auto PNeckoParent::Write(
5004 : const PWebSocketParent* v__,
5005 : Message* msg__,
5006 : bool nullable__) -> void
5007 : {
5008 : int32_t id;
5009 0 : if ((!(v__))) {
5010 0 : if ((!(nullable__))) {
5011 0 : FatalError("NULL actor value passed to non-nullable param");
5012 : }
5013 0 : id = 0;
5014 : }
5015 : else {
5016 0 : id = (v__)->Id();
5017 0 : if ((1) == (id)) {
5018 0 : FatalError("actor has been |delete|d");
5019 : }
5020 : }
5021 :
5022 0 : Write(id, msg__);
5023 0 : }
5024 :
5025 0 : auto PNeckoParent::Read(
5026 : PWebSocketParent** v__,
5027 : const Message* msg__,
5028 : PickleIterator* iter__,
5029 : bool nullable__) -> bool
5030 : {
5031 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PWebSocket", PWebSocketMsgStart);
5032 0 : if ((actor).isNothing()) {
5033 0 : return false;
5034 : }
5035 :
5036 0 : (*(v__)) = static_cast<PWebSocketParent*>((actor).value());
5037 0 : return true;
5038 : }
5039 :
5040 0 : auto PNeckoParent::Write(
5041 : const PFileChannelParent* v__,
5042 : Message* msg__,
5043 : bool nullable__) -> void
5044 : {
5045 : int32_t id;
5046 0 : if ((!(v__))) {
5047 0 : if ((!(nullable__))) {
5048 0 : FatalError("NULL actor value passed to non-nullable param");
5049 : }
5050 0 : id = 0;
5051 : }
5052 : else {
5053 0 : id = (v__)->Id();
5054 0 : if ((1) == (id)) {
5055 0 : FatalError("actor has been |delete|d");
5056 : }
5057 : }
5058 :
5059 0 : Write(id, msg__);
5060 0 : }
5061 :
5062 0 : auto PNeckoParent::Read(
5063 : PFileChannelParent** v__,
5064 : const Message* msg__,
5065 : PickleIterator* iter__,
5066 : bool nullable__) -> bool
5067 : {
5068 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PFileChannel", PFileChannelMsgStart);
5069 0 : if ((actor).isNothing()) {
5070 0 : return false;
5071 : }
5072 :
5073 0 : (*(v__)) = static_cast<PFileChannelParent*>((actor).value());
5074 0 : return true;
5075 : }
5076 :
5077 0 : auto PNeckoParent::Write(
5078 : const nsTArray<FileDescriptor>& v__,
5079 : Message* msg__) -> void
5080 : {
5081 0 : uint32_t length = (v__).Length();
5082 0 : Write(length, msg__);
5083 : // Sentinel = ('length', 'FileDescriptor[]')
5084 0 : (msg__)->WriteSentinel(1697726450);
5085 :
5086 0 : for (auto& elem : v__) {
5087 0 : Write(elem, msg__);
5088 : // Sentinel = 'FileDescriptor[]'
5089 0 : (msg__)->WriteSentinel(1630221245);
5090 : }
5091 0 : }
5092 :
5093 0 : auto PNeckoParent::Read(
5094 : nsTArray<FileDescriptor>* v__,
5095 : const Message* msg__,
5096 : PickleIterator* iter__) -> bool
5097 : {
5098 0 : nsTArray<FileDescriptor> fa;
5099 : uint32_t length;
5100 0 : if ((!(Read((&(length)), msg__, iter__)))) {
5101 0 : mozilla::ipc::ArrayLengthReadError("FileDescriptor[]");
5102 0 : return false;
5103 : }
5104 : // Sentinel = ('length', 'FileDescriptor[]')
5105 0 : if ((!((msg__)->ReadSentinel(iter__, 1697726450)))) {
5106 0 : mozilla::ipc::SentinelReadError("FileDescriptor[]");
5107 0 : return false;
5108 : }
5109 :
5110 0 : FileDescriptor* elems = (fa).AppendElements(length);
5111 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
5112 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
5113 0 : FatalError("Error deserializing 'FileDescriptor[i]'");
5114 0 : return false;
5115 : }
5116 : // Sentinel = 'FileDescriptor[]'
5117 0 : if ((!((msg__)->ReadSentinel(iter__, 1630221245)))) {
5118 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor[i]'");
5119 0 : return false;
5120 : }
5121 : }
5122 0 : (v__)->SwapElements(fa);
5123 0 : return true;
5124 : }
5125 :
5126 0 : auto PNeckoParent::Write(
5127 : const PHttpChannelParent* v__,
5128 : Message* msg__,
5129 : bool nullable__) -> void
5130 : {
5131 : int32_t id;
5132 0 : if ((!(v__))) {
5133 0 : if ((!(nullable__))) {
5134 0 : FatalError("NULL actor value passed to non-nullable param");
5135 : }
5136 0 : id = 0;
5137 : }
5138 : else {
5139 0 : id = (v__)->Id();
5140 0 : if ((1) == (id)) {
5141 0 : FatalError("actor has been |delete|d");
5142 : }
5143 : }
5144 :
5145 0 : Write(id, msg__);
5146 0 : }
5147 :
5148 0 : auto PNeckoParent::Read(
5149 : PHttpChannelParent** v__,
5150 : const Message* msg__,
5151 : PickleIterator* iter__,
5152 : bool nullable__) -> bool
5153 : {
5154 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PHttpChannel", PHttpChannelMsgStart);
5155 0 : if ((actor).isNothing()) {
5156 0 : return false;
5157 : }
5158 :
5159 0 : (*(v__)) = static_cast<PHttpChannelParent*>((actor).value());
5160 0 : return true;
5161 : }
5162 :
5163 0 : auto PNeckoParent::Write(
5164 : const IPCRemoteStreamType& v__,
5165 : Message* msg__) -> void
5166 : {
5167 : typedef IPCRemoteStreamType type__;
5168 0 : Write(int((v__).type()), msg__);
5169 : // Sentinel = 'IPCRemoteStreamType'
5170 0 : (msg__)->WriteSentinel(391674895);
5171 :
5172 0 : switch ((v__).type()) {
5173 : case type__::TPChildToParentStreamParent:
5174 : {
5175 0 : Write((v__).get_PChildToParentStreamParent(), msg__, false);
5176 : // Sentinel = 'TPChildToParentStreamParent'
5177 0 : (msg__)->WriteSentinel(2724777622);
5178 0 : return;
5179 : }
5180 : case type__::TPChildToParentStreamChild:
5181 : {
5182 0 : FatalError("wrong side!");
5183 0 : return;
5184 : }
5185 : case type__::TPParentToChildStreamParent:
5186 : {
5187 0 : Write((v__).get_PParentToChildStreamParent(), msg__, false);
5188 : // Sentinel = 'TPParentToChildStreamParent'
5189 0 : (msg__)->WriteSentinel(3335986876);
5190 0 : return;
5191 : }
5192 : case type__::TPParentToChildStreamChild:
5193 : {
5194 0 : FatalError("wrong side!");
5195 0 : return;
5196 : }
5197 : default:
5198 : {
5199 0 : FatalError("unknown union type");
5200 0 : return;
5201 : }
5202 : }
5203 : }
5204 :
5205 0 : auto PNeckoParent::Read(
5206 : IPCRemoteStreamType* v__,
5207 : const Message* msg__,
5208 : PickleIterator* iter__) -> bool
5209 : {
5210 : typedef IPCRemoteStreamType type__;
5211 : int type;
5212 0 : if ((!(Read((&(type)), msg__, iter__)))) {
5213 0 : mozilla::ipc::UnionTypeReadError("IPCRemoteStreamType");
5214 0 : return false;
5215 : }
5216 : // Sentinel = 'IPCRemoteStreamType'
5217 0 : if ((!((msg__)->ReadSentinel(iter__, 391674895)))) {
5218 0 : mozilla::ipc::SentinelReadError("IPCRemoteStreamType");
5219 0 : return false;
5220 : }
5221 :
5222 0 : switch (type) {
5223 : case type__::TPChildToParentStreamParent:
5224 : {
5225 0 : return false;
5226 : }
5227 : case type__::TPChildToParentStreamChild:
5228 : {
5229 0 : PChildToParentStreamParent* tmp = nullptr;
5230 0 : (*(v__)) = tmp;
5231 0 : if ((!(Read((&((v__)->get_PChildToParentStreamParent())), msg__, iter__, false)))) {
5232 0 : FatalError("Error deserializing Union type");
5233 0 : return false;
5234 : }
5235 : // Sentinel = 'TPChildToParentStreamChild'
5236 0 : if ((!((msg__)->ReadSentinel(iter__, 1882094295)))) {
5237 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
5238 0 : return false;
5239 : }
5240 0 : return true;
5241 : }
5242 : case type__::TPParentToChildStreamParent:
5243 : {
5244 0 : return false;
5245 : }
5246 : case type__::TPParentToChildStreamChild:
5247 : {
5248 0 : PParentToChildStreamParent* tmp = nullptr;
5249 0 : (*(v__)) = tmp;
5250 0 : if ((!(Read((&((v__)->get_PParentToChildStreamParent())), msg__, iter__, false)))) {
5251 0 : FatalError("Error deserializing Union type");
5252 0 : return false;
5253 : }
5254 : // Sentinel = 'TPParentToChildStreamChild'
5255 0 : if ((!((msg__)->ReadSentinel(iter__, 190098493)))) {
5256 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
5257 0 : return false;
5258 : }
5259 0 : return true;
5260 : }
5261 : default:
5262 : {
5263 0 : FatalError("unknown union type");
5264 0 : return false;
5265 : }
5266 : }
5267 : }
5268 :
5269 0 : auto PNeckoParent::Write(
5270 : const nsTArray<HeaderEntry>& v__,
5271 : Message* msg__) -> void
5272 : {
5273 0 : uint32_t length = (v__).Length();
5274 0 : Write(length, msg__);
5275 : // Sentinel = ('length', 'HeaderEntry[]')
5276 0 : (msg__)->WriteSentinel(2689457705);
5277 :
5278 0 : for (auto& elem : v__) {
5279 0 : Write(elem, msg__);
5280 : // Sentinel = 'HeaderEntry[]'
5281 0 : (msg__)->WriteSentinel(454836120);
5282 : }
5283 0 : }
5284 :
5285 0 : auto PNeckoParent::Read(
5286 : nsTArray<HeaderEntry>* v__,
5287 : const Message* msg__,
5288 : PickleIterator* iter__) -> bool
5289 : {
5290 0 : nsTArray<HeaderEntry> fa;
5291 : uint32_t length;
5292 0 : if ((!(Read((&(length)), msg__, iter__)))) {
5293 0 : mozilla::ipc::ArrayLengthReadError("HeaderEntry[]");
5294 0 : return false;
5295 : }
5296 : // Sentinel = ('length', 'HeaderEntry[]')
5297 0 : if ((!((msg__)->ReadSentinel(iter__, 2689457705)))) {
5298 0 : mozilla::ipc::SentinelReadError("HeaderEntry[]");
5299 0 : return false;
5300 : }
5301 :
5302 0 : HeaderEntry* elems = (fa).AppendElements(length);
5303 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
5304 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
5305 0 : FatalError("Error deserializing 'HeaderEntry[i]'");
5306 0 : return false;
5307 : }
5308 : // Sentinel = 'HeaderEntry[]'
5309 0 : if ((!((msg__)->ReadSentinel(iter__, 454836120)))) {
5310 0 : mozilla::ipc::SentinelReadError("Error deserializing 'HeaderEntry[i]'");
5311 0 : return false;
5312 : }
5313 : }
5314 0 : (v__)->SwapElements(fa);
5315 0 : return true;
5316 : }
5317 :
5318 0 : auto PNeckoParent::Write(
5319 : const HeaderEntry& v__,
5320 : Message* msg__) -> void
5321 : {
5322 0 : Write((v__).name(), msg__);
5323 : // Sentinel = 'name'
5324 0 : (msg__)->WriteSentinel(15034981);
5325 0 : Write((v__).value(), msg__);
5326 : // Sentinel = 'value'
5327 0 : (msg__)->WriteSentinel(3456818542);
5328 0 : }
5329 :
5330 0 : auto PNeckoParent::Read(
5331 : HeaderEntry* v__,
5332 : const Message* msg__,
5333 : PickleIterator* iter__) -> bool
5334 : {
5335 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
5336 0 : FatalError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
5337 0 : return false;
5338 : }
5339 : // Sentinel = 'name'
5340 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
5341 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
5342 0 : return false;
5343 : }
5344 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
5345 0 : FatalError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
5346 0 : return false;
5347 : }
5348 : // Sentinel = 'value'
5349 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
5350 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
5351 0 : return false;
5352 : }
5353 0 : return true;
5354 : }
5355 :
5356 0 : auto PNeckoParent::Write(
5357 : const PDataChannelParent* v__,
5358 : Message* msg__,
5359 : bool nullable__) -> void
5360 : {
5361 : int32_t id;
5362 0 : if ((!(v__))) {
5363 0 : if ((!(nullable__))) {
5364 0 : FatalError("NULL actor value passed to non-nullable param");
5365 : }
5366 0 : id = 0;
5367 : }
5368 : else {
5369 0 : id = (v__)->Id();
5370 0 : if ((1) == (id)) {
5371 0 : FatalError("actor has been |delete|d");
5372 : }
5373 : }
5374 :
5375 0 : Write(id, msg__);
5376 0 : }
5377 :
5378 0 : auto PNeckoParent::Read(
5379 : PDataChannelParent** v__,
5380 : const Message* msg__,
5381 : PickleIterator* iter__,
5382 : bool nullable__) -> bool
5383 : {
5384 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PDataChannel", PDataChannelMsgStart);
5385 0 : if ((actor).isNothing()) {
5386 0 : return false;
5387 : }
5388 :
5389 0 : (*(v__)) = static_cast<PDataChannelParent*>((actor).value());
5390 0 : return true;
5391 : }
5392 :
5393 0 : auto PNeckoParent::Write(
5394 : const SlicedInputStreamParams& v__,
5395 : Message* msg__) -> void
5396 : {
5397 0 : Write((v__).stream(), msg__);
5398 : // Sentinel = 'stream'
5399 0 : (msg__)->WriteSentinel(4152748422);
5400 0 : Write((v__).start(), msg__);
5401 : // Sentinel = 'start'
5402 0 : (msg__)->WriteSentinel(2088644401);
5403 0 : Write((v__).length(), msg__);
5404 : // Sentinel = 'length'
5405 0 : (msg__)->WriteSentinel(1726618354);
5406 0 : Write((v__).curPos(), msg__);
5407 : // Sentinel = 'curPos'
5408 0 : (msg__)->WriteSentinel(4042140974);
5409 0 : Write((v__).closed(), msg__);
5410 : // Sentinel = 'closed'
5411 0 : (msg__)->WriteSentinel(561249462);
5412 0 : }
5413 :
5414 0 : auto PNeckoParent::Read(
5415 : SlicedInputStreamParams* v__,
5416 : const Message* msg__,
5417 : PickleIterator* iter__) -> bool
5418 : {
5419 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
5420 0 : FatalError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
5421 0 : return false;
5422 : }
5423 : // Sentinel = 'stream'
5424 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
5425 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
5426 0 : return false;
5427 : }
5428 0 : if ((!(Read((&((v__)->start())), msg__, iter__)))) {
5429 0 : FatalError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
5430 0 : return false;
5431 : }
5432 : // Sentinel = 'start'
5433 0 : if ((!((msg__)->ReadSentinel(iter__, 2088644401)))) {
5434 0 : mozilla::ipc::SentinelReadError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
5435 0 : return false;
5436 : }
5437 0 : if ((!(Read((&((v__)->length())), msg__, iter__)))) {
5438 0 : FatalError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
5439 0 : return false;
5440 : }
5441 : // Sentinel = 'length'
5442 0 : if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
5443 0 : mozilla::ipc::SentinelReadError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
5444 0 : return false;
5445 : }
5446 0 : if ((!(Read((&((v__)->curPos())), msg__, iter__)))) {
5447 0 : FatalError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
5448 0 : return false;
5449 : }
5450 : // Sentinel = 'curPos'
5451 0 : if ((!((msg__)->ReadSentinel(iter__, 4042140974)))) {
5452 0 : mozilla::ipc::SentinelReadError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
5453 0 : return false;
5454 : }
5455 0 : if ((!(Read((&((v__)->closed())), msg__, iter__)))) {
5456 0 : FatalError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
5457 0 : return false;
5458 : }
5459 : // Sentinel = 'closed'
5460 0 : if ((!((msg__)->ReadSentinel(iter__, 561249462)))) {
5461 0 : mozilla::ipc::SentinelReadError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
5462 0 : return false;
5463 : }
5464 0 : return true;
5465 : }
5466 :
5467 0 : auto PNeckoParent::Write(
5468 : const PrincipalInfo& v__,
5469 : Message* msg__) -> void
5470 : {
5471 : typedef PrincipalInfo type__;
5472 0 : Write(int((v__).type()), msg__);
5473 : // Sentinel = 'PrincipalInfo'
5474 0 : (msg__)->WriteSentinel(4194518819);
5475 :
5476 0 : switch ((v__).type()) {
5477 : case type__::TContentPrincipalInfo:
5478 : {
5479 0 : Write((v__).get_ContentPrincipalInfo(), msg__);
5480 : // Sentinel = 'TContentPrincipalInfo'
5481 0 : (msg__)->WriteSentinel(3677342258);
5482 0 : return;
5483 : }
5484 : case type__::TSystemPrincipalInfo:
5485 : {
5486 0 : Write((v__).get_SystemPrincipalInfo(), msg__);
5487 : // Sentinel = 'TSystemPrincipalInfo'
5488 0 : (msg__)->WriteSentinel(3590603679);
5489 0 : return;
5490 : }
5491 : case type__::TNullPrincipalInfo:
5492 : {
5493 0 : Write((v__).get_NullPrincipalInfo(), msg__);
5494 : // Sentinel = 'TNullPrincipalInfo'
5495 0 : (msg__)->WriteSentinel(3477774965);
5496 0 : return;
5497 : }
5498 : case type__::TExpandedPrincipalInfo:
5499 : {
5500 0 : Write((v__).get_ExpandedPrincipalInfo(), msg__);
5501 : // Sentinel = 'TExpandedPrincipalInfo'
5502 0 : (msg__)->WriteSentinel(589324917);
5503 0 : return;
5504 : }
5505 : default:
5506 : {
5507 0 : FatalError("unknown union type");
5508 0 : return;
5509 : }
5510 : }
5511 : }
5512 :
5513 5 : auto PNeckoParent::Read(
5514 : PrincipalInfo* v__,
5515 : const Message* msg__,
5516 : PickleIterator* iter__) -> bool
5517 : {
5518 : typedef PrincipalInfo type__;
5519 : int type;
5520 5 : if ((!(Read((&(type)), msg__, iter__)))) {
5521 0 : mozilla::ipc::UnionTypeReadError("PrincipalInfo");
5522 0 : return false;
5523 : }
5524 : // Sentinel = 'PrincipalInfo'
5525 5 : if ((!((msg__)->ReadSentinel(iter__, 4194518819)))) {
5526 0 : mozilla::ipc::SentinelReadError("PrincipalInfo");
5527 0 : return false;
5528 : }
5529 :
5530 5 : switch (type) {
5531 : case type__::TContentPrincipalInfo:
5532 : {
5533 8 : ContentPrincipalInfo tmp = ContentPrincipalInfo();
5534 4 : (*(v__)) = tmp;
5535 4 : if ((!(Read((&((v__)->get_ContentPrincipalInfo())), msg__, iter__)))) {
5536 0 : FatalError("Error deserializing Union type");
5537 0 : return false;
5538 : }
5539 : // Sentinel = 'TContentPrincipalInfo'
5540 4 : if ((!((msg__)->ReadSentinel(iter__, 3677342258)))) {
5541 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
5542 0 : return false;
5543 : }
5544 4 : return true;
5545 : }
5546 : case type__::TSystemPrincipalInfo:
5547 : {
5548 2 : SystemPrincipalInfo tmp = SystemPrincipalInfo();
5549 1 : (*(v__)) = tmp;
5550 1 : if ((!(Read((&((v__)->get_SystemPrincipalInfo())), msg__, iter__)))) {
5551 0 : FatalError("Error deserializing Union type");
5552 0 : return false;
5553 : }
5554 : // Sentinel = 'TSystemPrincipalInfo'
5555 1 : if ((!((msg__)->ReadSentinel(iter__, 3590603679)))) {
5556 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
5557 0 : return false;
5558 : }
5559 1 : return true;
5560 : }
5561 : case type__::TNullPrincipalInfo:
5562 : {
5563 0 : NullPrincipalInfo tmp = NullPrincipalInfo();
5564 0 : (*(v__)) = tmp;
5565 0 : if ((!(Read((&((v__)->get_NullPrincipalInfo())), msg__, iter__)))) {
5566 0 : FatalError("Error deserializing Union type");
5567 0 : return false;
5568 : }
5569 : // Sentinel = 'TNullPrincipalInfo'
5570 0 : if ((!((msg__)->ReadSentinel(iter__, 3477774965)))) {
5571 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
5572 0 : return false;
5573 : }
5574 0 : return true;
5575 : }
5576 : case type__::TExpandedPrincipalInfo:
5577 : {
5578 0 : ExpandedPrincipalInfo tmp = ExpandedPrincipalInfo();
5579 0 : (*(v__)) = tmp;
5580 0 : if ((!(Read((&((v__)->get_ExpandedPrincipalInfo())), msg__, iter__)))) {
5581 0 : FatalError("Error deserializing Union type");
5582 0 : return false;
5583 : }
5584 : // Sentinel = 'TExpandedPrincipalInfo'
5585 0 : if ((!((msg__)->ReadSentinel(iter__, 589324917)))) {
5586 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
5587 0 : return false;
5588 : }
5589 0 : return true;
5590 : }
5591 : default:
5592 : {
5593 0 : FatalError("unknown union type");
5594 0 : return false;
5595 : }
5596 : }
5597 : }
5598 :
5599 0 : auto PNeckoParent::Write(
5600 : const PTCPServerSocketParent* v__,
5601 : Message* msg__,
5602 : bool nullable__) -> void
5603 : {
5604 : int32_t id;
5605 0 : if ((!(v__))) {
5606 0 : if ((!(nullable__))) {
5607 0 : FatalError("NULL actor value passed to non-nullable param");
5608 : }
5609 0 : id = 0;
5610 : }
5611 : else {
5612 0 : id = (v__)->Id();
5613 0 : if ((1) == (id)) {
5614 0 : FatalError("actor has been |delete|d");
5615 : }
5616 : }
5617 :
5618 0 : Write(id, msg__);
5619 0 : }
5620 :
5621 0 : auto PNeckoParent::Read(
5622 : PTCPServerSocketParent** v__,
5623 : const Message* msg__,
5624 : PickleIterator* iter__,
5625 : bool nullable__) -> bool
5626 : {
5627 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PTCPServerSocket", PTCPServerSocketMsgStart);
5628 0 : if ((actor).isNothing()) {
5629 0 : return false;
5630 : }
5631 :
5632 0 : (*(v__)) = static_cast<PTCPServerSocketParent*>((actor).value());
5633 0 : return true;
5634 : }
5635 :
5636 0 : auto PNeckoParent::Write(
5637 : const TemporaryFileInputStreamParams& v__,
5638 : Message* msg__) -> void
5639 : {
5640 0 : Write((v__).fileDescriptorIndex(), msg__);
5641 : // Sentinel = 'fileDescriptorIndex'
5642 0 : (msg__)->WriteSentinel(587329112);
5643 0 : Write((v__).startPos(), msg__);
5644 : // Sentinel = 'startPos'
5645 0 : (msg__)->WriteSentinel(557207962);
5646 0 : Write((v__).endPos(), msg__);
5647 : // Sentinel = 'endPos'
5648 0 : (msg__)->WriteSentinel(881536245);
5649 0 : }
5650 :
5651 0 : auto PNeckoParent::Read(
5652 : TemporaryFileInputStreamParams* v__,
5653 : const Message* msg__,
5654 : PickleIterator* iter__) -> bool
5655 : {
5656 0 : if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
5657 0 : FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
5658 0 : return false;
5659 : }
5660 : // Sentinel = 'fileDescriptorIndex'
5661 0 : if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
5662 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
5663 0 : return false;
5664 : }
5665 0 : if ((!(Read((&((v__)->startPos())), msg__, iter__)))) {
5666 0 : FatalError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
5667 0 : return false;
5668 : }
5669 : // Sentinel = 'startPos'
5670 0 : if ((!((msg__)->ReadSentinel(iter__, 557207962)))) {
5671 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
5672 0 : return false;
5673 : }
5674 0 : if ((!(Read((&((v__)->endPos())), msg__, iter__)))) {
5675 0 : FatalError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
5676 0 : return false;
5677 : }
5678 : // Sentinel = 'endPos'
5679 0 : if ((!((msg__)->ReadSentinel(iter__, 881536245)))) {
5680 0 : mozilla::ipc::SentinelReadError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
5681 0 : return false;
5682 : }
5683 0 : return true;
5684 : }
5685 :
5686 0 : auto PNeckoParent::Write(
5687 : const IPCStream& v__,
5688 : Message* msg__) -> void
5689 : {
5690 : typedef IPCStream type__;
5691 0 : Write(int((v__).type()), msg__);
5692 : // Sentinel = 'IPCStream'
5693 0 : (msg__)->WriteSentinel(442610715);
5694 :
5695 0 : switch ((v__).type()) {
5696 : case type__::TInputStreamParamsWithFds:
5697 : {
5698 0 : Write((v__).get_InputStreamParamsWithFds(), msg__);
5699 : // Sentinel = 'TInputStreamParamsWithFds'
5700 0 : (msg__)->WriteSentinel(2170706066);
5701 0 : return;
5702 : }
5703 : case type__::TIPCRemoteStream:
5704 : {
5705 0 : Write((v__).get_IPCRemoteStream(), msg__);
5706 : // Sentinel = 'TIPCRemoteStream'
5707 0 : (msg__)->WriteSentinel(2978132448);
5708 0 : return;
5709 : }
5710 : default:
5711 : {
5712 0 : FatalError("unknown union type");
5713 0 : return;
5714 : }
5715 : }
5716 : }
5717 :
5718 0 : auto PNeckoParent::Read(
5719 : IPCStream* v__,
5720 : const Message* msg__,
5721 : PickleIterator* iter__) -> bool
5722 : {
5723 : typedef IPCStream type__;
5724 : int type;
5725 0 : if ((!(Read((&(type)), msg__, iter__)))) {
5726 0 : mozilla::ipc::UnionTypeReadError("IPCStream");
5727 0 : return false;
5728 : }
5729 : // Sentinel = 'IPCStream'
5730 0 : if ((!((msg__)->ReadSentinel(iter__, 442610715)))) {
5731 0 : mozilla::ipc::SentinelReadError("IPCStream");
5732 0 : return false;
5733 : }
5734 :
5735 0 : switch (type) {
5736 : case type__::TInputStreamParamsWithFds:
5737 : {
5738 0 : InputStreamParamsWithFds tmp = InputStreamParamsWithFds();
5739 0 : (*(v__)) = tmp;
5740 0 : if ((!(Read((&((v__)->get_InputStreamParamsWithFds())), msg__, iter__)))) {
5741 0 : FatalError("Error deserializing Union type");
5742 0 : return false;
5743 : }
5744 : // Sentinel = 'TInputStreamParamsWithFds'
5745 0 : if ((!((msg__)->ReadSentinel(iter__, 2170706066)))) {
5746 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
5747 0 : return false;
5748 : }
5749 0 : return true;
5750 : }
5751 : case type__::TIPCRemoteStream:
5752 : {
5753 0 : IPCRemoteStream tmp = IPCRemoteStream();
5754 0 : (*(v__)) = tmp;
5755 0 : if ((!(Read((&((v__)->get_IPCRemoteStream())), msg__, iter__)))) {
5756 0 : FatalError("Error deserializing Union type");
5757 0 : return false;
5758 : }
5759 : // Sentinel = 'TIPCRemoteStream'
5760 0 : if ((!((msg__)->ReadSentinel(iter__, 2978132448)))) {
5761 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
5762 0 : return false;
5763 : }
5764 0 : return true;
5765 : }
5766 : default:
5767 : {
5768 0 : FatalError("unknown union type");
5769 0 : return false;
5770 : }
5771 : }
5772 : }
5773 :
5774 0 : auto PNeckoParent::Write(
5775 : const JARURIParams& v__,
5776 : Message* msg__) -> void
5777 : {
5778 0 : Write((v__).jarFile(), msg__);
5779 : // Sentinel = 'jarFile'
5780 0 : (msg__)->WriteSentinel(1572070078);
5781 0 : Write((v__).jarEntry(), msg__);
5782 : // Sentinel = 'jarEntry'
5783 0 : (msg__)->WriteSentinel(941016033);
5784 0 : Write((v__).charset(), msg__);
5785 : // Sentinel = 'charset'
5786 0 : (msg__)->WriteSentinel(1551550891);
5787 0 : }
5788 :
5789 0 : auto PNeckoParent::Read(
5790 : JARURIParams* v__,
5791 : const Message* msg__,
5792 : PickleIterator* iter__) -> bool
5793 : {
5794 0 : if ((!(Read((&((v__)->jarFile())), msg__, iter__)))) {
5795 0 : FatalError("Error deserializing 'jarFile' (URIParams) member of 'JARURIParams'");
5796 0 : return false;
5797 : }
5798 : // Sentinel = 'jarFile'
5799 0 : if ((!((msg__)->ReadSentinel(iter__, 1572070078)))) {
5800 0 : mozilla::ipc::SentinelReadError("Error deserializing 'jarFile' (URIParams) member of 'JARURIParams'");
5801 0 : return false;
5802 : }
5803 0 : if ((!(Read((&((v__)->jarEntry())), msg__, iter__)))) {
5804 0 : FatalError("Error deserializing 'jarEntry' (URIParams) member of 'JARURIParams'");
5805 0 : return false;
5806 : }
5807 : // Sentinel = 'jarEntry'
5808 0 : if ((!((msg__)->ReadSentinel(iter__, 941016033)))) {
5809 0 : mozilla::ipc::SentinelReadError("Error deserializing 'jarEntry' (URIParams) member of 'JARURIParams'");
5810 0 : return false;
5811 : }
5812 0 : if ((!(Read((&((v__)->charset())), msg__, iter__)))) {
5813 0 : FatalError("Error deserializing 'charset' (nsCString) member of 'JARURIParams'");
5814 0 : return false;
5815 : }
5816 : // Sentinel = 'charset'
5817 0 : if ((!((msg__)->ReadSentinel(iter__, 1551550891)))) {
5818 0 : mozilla::ipc::SentinelReadError("Error deserializing 'charset' (nsCString) member of 'JARURIParams'");
5819 0 : return false;
5820 : }
5821 0 : return true;
5822 : }
5823 :
5824 0 : auto PNeckoParent::Write(
5825 : const ContentPrincipalInfo& v__,
5826 : Message* msg__) -> void
5827 : {
5828 0 : Write((v__).attrs(), msg__);
5829 : // Sentinel = 'attrs'
5830 0 : (msg__)->WriteSentinel(3014987797);
5831 0 : Write((v__).originNoSuffix(), msg__);
5832 : // Sentinel = 'originNoSuffix'
5833 0 : (msg__)->WriteSentinel(2833071422);
5834 0 : Write((v__).spec(), msg__);
5835 : // Sentinel = 'spec'
5836 0 : (msg__)->WriteSentinel(1630740541);
5837 0 : }
5838 :
5839 4 : auto PNeckoParent::Read(
5840 : ContentPrincipalInfo* v__,
5841 : const Message* msg__,
5842 : PickleIterator* iter__) -> bool
5843 : {
5844 4 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
5845 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
5846 0 : return false;
5847 : }
5848 : // Sentinel = 'attrs'
5849 4 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
5850 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
5851 0 : return false;
5852 : }
5853 4 : if ((!(Read((&((v__)->originNoSuffix())), msg__, iter__)))) {
5854 0 : FatalError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
5855 0 : return false;
5856 : }
5857 : // Sentinel = 'originNoSuffix'
5858 4 : if ((!((msg__)->ReadSentinel(iter__, 2833071422)))) {
5859 0 : mozilla::ipc::SentinelReadError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
5860 0 : return false;
5861 : }
5862 4 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
5863 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
5864 0 : return false;
5865 : }
5866 : // Sentinel = 'spec'
5867 4 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
5868 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
5869 0 : return false;
5870 : }
5871 4 : return true;
5872 : }
5873 :
5874 0 : auto PNeckoParent::Write(
5875 : const PParentToChildStreamParent* v__,
5876 : Message* msg__,
5877 : bool nullable__) -> void
5878 : {
5879 : int32_t id;
5880 0 : if ((!(v__))) {
5881 0 : if ((!(nullable__))) {
5882 0 : FatalError("NULL actor value passed to non-nullable param");
5883 : }
5884 0 : id = 0;
5885 : }
5886 : else {
5887 0 : id = (v__)->Id();
5888 0 : if ((1) == (id)) {
5889 0 : FatalError("actor has been |delete|d");
5890 : }
5891 : }
5892 :
5893 0 : Write(id, msg__);
5894 0 : }
5895 :
5896 0 : auto PNeckoParent::Read(
5897 : PParentToChildStreamParent** v__,
5898 : const Message* msg__,
5899 : PickleIterator* iter__,
5900 : bool nullable__) -> bool
5901 : {
5902 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PParentToChildStream", PParentToChildStreamMsgStart);
5903 0 : if ((actor).isNothing()) {
5904 0 : return false;
5905 : }
5906 :
5907 0 : (*(v__)) = static_cast<PParentToChildStreamParent*>((actor).value());
5908 0 : return true;
5909 : }
5910 :
5911 0 : auto PNeckoParent::Write(
5912 : const LoadInfoArgs& v__,
5913 : Message* msg__) -> void
5914 : {
5915 0 : Write((v__).requestingPrincipalInfo(), msg__);
5916 : // Sentinel = 'requestingPrincipalInfo'
5917 0 : (msg__)->WriteSentinel(3181737698);
5918 0 : Write((v__).triggeringPrincipalInfo(), msg__);
5919 : // Sentinel = 'triggeringPrincipalInfo'
5920 0 : (msg__)->WriteSentinel(4145483429);
5921 0 : Write((v__).principalToInheritInfo(), msg__);
5922 : // Sentinel = 'principalToInheritInfo'
5923 0 : (msg__)->WriteSentinel(3087636212);
5924 0 : Write((v__).sandboxedLoadingPrincipalInfo(), msg__);
5925 : // Sentinel = 'sandboxedLoadingPrincipalInfo'
5926 0 : (msg__)->WriteSentinel(3064871301);
5927 0 : Write((v__).resultPrincipalURI(), msg__);
5928 : // Sentinel = 'resultPrincipalURI'
5929 0 : (msg__)->WriteSentinel(4283562701);
5930 0 : Write((v__).securityFlags(), msg__);
5931 : // Sentinel = 'securityFlags'
5932 0 : (msg__)->WriteSentinel(1948430358);
5933 0 : Write((v__).contentPolicyType(), msg__);
5934 : // Sentinel = 'contentPolicyType'
5935 0 : (msg__)->WriteSentinel(3089607692);
5936 0 : Write((v__).tainting(), msg__);
5937 : // Sentinel = 'tainting'
5938 0 : (msg__)->WriteSentinel(2959281848);
5939 0 : Write((v__).upgradeInsecureRequests(), msg__);
5940 : // Sentinel = 'upgradeInsecureRequests'
5941 0 : (msg__)->WriteSentinel(220885803);
5942 0 : Write((v__).verifySignedContent(), msg__);
5943 : // Sentinel = 'verifySignedContent'
5944 0 : (msg__)->WriteSentinel(4254189773);
5945 0 : Write((v__).enforceSRI(), msg__);
5946 : // Sentinel = 'enforceSRI'
5947 0 : (msg__)->WriteSentinel(3434063852);
5948 0 : Write((v__).forceInheritPrincipalDropped(), msg__);
5949 : // Sentinel = 'forceInheritPrincipalDropped'
5950 0 : (msg__)->WriteSentinel(2486717930);
5951 0 : Write((v__).innerWindowID(), msg__);
5952 : // Sentinel = 'innerWindowID'
5953 0 : (msg__)->WriteSentinel(4018103366);
5954 0 : Write((v__).outerWindowID(), msg__);
5955 : // Sentinel = 'outerWindowID'
5956 0 : (msg__)->WriteSentinel(2801565535);
5957 0 : Write((v__).parentOuterWindowID(), msg__);
5958 : // Sentinel = 'parentOuterWindowID'
5959 0 : (msg__)->WriteSentinel(1687557921);
5960 0 : Write((v__).frameOuterWindowID(), msg__);
5961 : // Sentinel = 'frameOuterWindowID'
5962 0 : (msg__)->WriteSentinel(2873618957);
5963 0 : Write((v__).enforceSecurity(), msg__);
5964 : // Sentinel = 'enforceSecurity'
5965 0 : (msg__)->WriteSentinel(646099439);
5966 0 : Write((v__).initialSecurityCheckDone(), msg__);
5967 : // Sentinel = 'initialSecurityCheckDone'
5968 0 : (msg__)->WriteSentinel(872070054);
5969 0 : Write((v__).isInThirdPartyContext(), msg__);
5970 : // Sentinel = 'isInThirdPartyContext'
5971 0 : (msg__)->WriteSentinel(525088520);
5972 0 : Write((v__).originAttributes(), msg__);
5973 : // Sentinel = 'originAttributes'
5974 0 : (msg__)->WriteSentinel(2655275965);
5975 0 : Write((v__).redirectChainIncludingInternalRedirects(), msg__);
5976 : // Sentinel = 'redirectChainIncludingInternalRedirects'
5977 0 : (msg__)->WriteSentinel(967904109);
5978 0 : Write((v__).redirectChain(), msg__);
5979 : // Sentinel = 'redirectChain'
5980 0 : (msg__)->WriteSentinel(2550711462);
5981 0 : Write((v__).corsUnsafeHeaders(), msg__);
5982 : // Sentinel = 'corsUnsafeHeaders'
5983 0 : (msg__)->WriteSentinel(2369694136);
5984 0 : Write((v__).forcePreflight(), msg__);
5985 : // Sentinel = 'forcePreflight'
5986 0 : (msg__)->WriteSentinel(2198503272);
5987 0 : Write((v__).isPreflight(), msg__);
5988 : // Sentinel = 'isPreflight'
5989 0 : (msg__)->WriteSentinel(3402379662);
5990 0 : Write((v__).forceHSTSPriming(), msg__);
5991 : // Sentinel = 'forceHSTSPriming'
5992 0 : (msg__)->WriteSentinel(1123937751);
5993 0 : Write((v__).mixedContentWouldBlock(), msg__);
5994 : // Sentinel = 'mixedContentWouldBlock'
5995 0 : (msg__)->WriteSentinel(3609505564);
5996 0 : Write((v__).isHSTSPriming(), msg__);
5997 : // Sentinel = 'isHSTSPriming'
5998 0 : (msg__)->WriteSentinel(3794927777);
5999 0 : Write((v__).isHSTSPrimingUpgrade(), msg__);
6000 : // Sentinel = 'isHSTSPrimingUpgrade'
6001 0 : (msg__)->WriteSentinel(3851270092);
6002 0 : }
6003 :
6004 3 : auto PNeckoParent::Read(
6005 : LoadInfoArgs* v__,
6006 : const Message* msg__,
6007 : PickleIterator* iter__) -> bool
6008 : {
6009 3 : if ((!(Read((&((v__)->requestingPrincipalInfo())), msg__, iter__)))) {
6010 0 : FatalError("Error deserializing 'requestingPrincipalInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
6011 0 : return false;
6012 : }
6013 : // Sentinel = 'requestingPrincipalInfo'
6014 3 : if ((!((msg__)->ReadSentinel(iter__, 3181737698)))) {
6015 0 : mozilla::ipc::SentinelReadError("Error deserializing 'requestingPrincipalInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
6016 0 : return false;
6017 : }
6018 3 : if ((!(Read((&((v__)->triggeringPrincipalInfo())), msg__, iter__)))) {
6019 0 : FatalError("Error deserializing 'triggeringPrincipalInfo' (PrincipalInfo) member of 'LoadInfoArgs'");
6020 0 : return false;
6021 : }
6022 : // Sentinel = 'triggeringPrincipalInfo'
6023 3 : if ((!((msg__)->ReadSentinel(iter__, 4145483429)))) {
6024 0 : mozilla::ipc::SentinelReadError("Error deserializing 'triggeringPrincipalInfo' (PrincipalInfo) member of 'LoadInfoArgs'");
6025 0 : return false;
6026 : }
6027 3 : if ((!(Read((&((v__)->principalToInheritInfo())), msg__, iter__)))) {
6028 0 : FatalError("Error deserializing 'principalToInheritInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
6029 0 : return false;
6030 : }
6031 : // Sentinel = 'principalToInheritInfo'
6032 3 : if ((!((msg__)->ReadSentinel(iter__, 3087636212)))) {
6033 0 : mozilla::ipc::SentinelReadError("Error deserializing 'principalToInheritInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
6034 0 : return false;
6035 : }
6036 3 : if ((!(Read((&((v__)->sandboxedLoadingPrincipalInfo())), msg__, iter__)))) {
6037 0 : FatalError("Error deserializing 'sandboxedLoadingPrincipalInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
6038 0 : return false;
6039 : }
6040 : // Sentinel = 'sandboxedLoadingPrincipalInfo'
6041 3 : if ((!((msg__)->ReadSentinel(iter__, 3064871301)))) {
6042 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sandboxedLoadingPrincipalInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
6043 0 : return false;
6044 : }
6045 3 : if ((!(Read((&((v__)->resultPrincipalURI())), msg__, iter__)))) {
6046 0 : FatalError("Error deserializing 'resultPrincipalURI' (OptionalURIParams) member of 'LoadInfoArgs'");
6047 0 : return false;
6048 : }
6049 : // Sentinel = 'resultPrincipalURI'
6050 3 : if ((!((msg__)->ReadSentinel(iter__, 4283562701)))) {
6051 0 : mozilla::ipc::SentinelReadError("Error deserializing 'resultPrincipalURI' (OptionalURIParams) member of 'LoadInfoArgs'");
6052 0 : return false;
6053 : }
6054 3 : if ((!(Read((&((v__)->securityFlags())), msg__, iter__)))) {
6055 0 : FatalError("Error deserializing 'securityFlags' (uint32_t) member of 'LoadInfoArgs'");
6056 0 : return false;
6057 : }
6058 : // Sentinel = 'securityFlags'
6059 3 : if ((!((msg__)->ReadSentinel(iter__, 1948430358)))) {
6060 0 : mozilla::ipc::SentinelReadError("Error deserializing 'securityFlags' (uint32_t) member of 'LoadInfoArgs'");
6061 0 : return false;
6062 : }
6063 3 : if ((!(Read((&((v__)->contentPolicyType())), msg__, iter__)))) {
6064 0 : FatalError("Error deserializing 'contentPolicyType' (uint32_t) member of 'LoadInfoArgs'");
6065 0 : return false;
6066 : }
6067 : // Sentinel = 'contentPolicyType'
6068 3 : if ((!((msg__)->ReadSentinel(iter__, 3089607692)))) {
6069 0 : mozilla::ipc::SentinelReadError("Error deserializing 'contentPolicyType' (uint32_t) member of 'LoadInfoArgs'");
6070 0 : return false;
6071 : }
6072 3 : if ((!(Read((&((v__)->tainting())), msg__, iter__)))) {
6073 0 : FatalError("Error deserializing 'tainting' (uint32_t) member of 'LoadInfoArgs'");
6074 0 : return false;
6075 : }
6076 : // Sentinel = 'tainting'
6077 3 : if ((!((msg__)->ReadSentinel(iter__, 2959281848)))) {
6078 0 : mozilla::ipc::SentinelReadError("Error deserializing 'tainting' (uint32_t) member of 'LoadInfoArgs'");
6079 0 : return false;
6080 : }
6081 3 : if ((!(Read((&((v__)->upgradeInsecureRequests())), msg__, iter__)))) {
6082 0 : FatalError("Error deserializing 'upgradeInsecureRequests' (bool) member of 'LoadInfoArgs'");
6083 0 : return false;
6084 : }
6085 : // Sentinel = 'upgradeInsecureRequests'
6086 3 : if ((!((msg__)->ReadSentinel(iter__, 220885803)))) {
6087 0 : mozilla::ipc::SentinelReadError("Error deserializing 'upgradeInsecureRequests' (bool) member of 'LoadInfoArgs'");
6088 0 : return false;
6089 : }
6090 3 : if ((!(Read((&((v__)->verifySignedContent())), msg__, iter__)))) {
6091 0 : FatalError("Error deserializing 'verifySignedContent' (bool) member of 'LoadInfoArgs'");
6092 0 : return false;
6093 : }
6094 : // Sentinel = 'verifySignedContent'
6095 3 : if ((!((msg__)->ReadSentinel(iter__, 4254189773)))) {
6096 0 : mozilla::ipc::SentinelReadError("Error deserializing 'verifySignedContent' (bool) member of 'LoadInfoArgs'");
6097 0 : return false;
6098 : }
6099 3 : if ((!(Read((&((v__)->enforceSRI())), msg__, iter__)))) {
6100 0 : FatalError("Error deserializing 'enforceSRI' (bool) member of 'LoadInfoArgs'");
6101 0 : return false;
6102 : }
6103 : // Sentinel = 'enforceSRI'
6104 3 : if ((!((msg__)->ReadSentinel(iter__, 3434063852)))) {
6105 0 : mozilla::ipc::SentinelReadError("Error deserializing 'enforceSRI' (bool) member of 'LoadInfoArgs'");
6106 0 : return false;
6107 : }
6108 3 : if ((!(Read((&((v__)->forceInheritPrincipalDropped())), msg__, iter__)))) {
6109 0 : FatalError("Error deserializing 'forceInheritPrincipalDropped' (bool) member of 'LoadInfoArgs'");
6110 0 : return false;
6111 : }
6112 : // Sentinel = 'forceInheritPrincipalDropped'
6113 3 : if ((!((msg__)->ReadSentinel(iter__, 2486717930)))) {
6114 0 : mozilla::ipc::SentinelReadError("Error deserializing 'forceInheritPrincipalDropped' (bool) member of 'LoadInfoArgs'");
6115 0 : return false;
6116 : }
6117 3 : if ((!(Read((&((v__)->innerWindowID())), msg__, iter__)))) {
6118 0 : FatalError("Error deserializing 'innerWindowID' (uint64_t) member of 'LoadInfoArgs'");
6119 0 : return false;
6120 : }
6121 : // Sentinel = 'innerWindowID'
6122 3 : if ((!((msg__)->ReadSentinel(iter__, 4018103366)))) {
6123 0 : mozilla::ipc::SentinelReadError("Error deserializing 'innerWindowID' (uint64_t) member of 'LoadInfoArgs'");
6124 0 : return false;
6125 : }
6126 3 : if ((!(Read((&((v__)->outerWindowID())), msg__, iter__)))) {
6127 0 : FatalError("Error deserializing 'outerWindowID' (uint64_t) member of 'LoadInfoArgs'");
6128 0 : return false;
6129 : }
6130 : // Sentinel = 'outerWindowID'
6131 3 : if ((!((msg__)->ReadSentinel(iter__, 2801565535)))) {
6132 0 : mozilla::ipc::SentinelReadError("Error deserializing 'outerWindowID' (uint64_t) member of 'LoadInfoArgs'");
6133 0 : return false;
6134 : }
6135 3 : if ((!(Read((&((v__)->parentOuterWindowID())), msg__, iter__)))) {
6136 0 : FatalError("Error deserializing 'parentOuterWindowID' (uint64_t) member of 'LoadInfoArgs'");
6137 0 : return false;
6138 : }
6139 : // Sentinel = 'parentOuterWindowID'
6140 3 : if ((!((msg__)->ReadSentinel(iter__, 1687557921)))) {
6141 0 : mozilla::ipc::SentinelReadError("Error deserializing 'parentOuterWindowID' (uint64_t) member of 'LoadInfoArgs'");
6142 0 : return false;
6143 : }
6144 3 : if ((!(Read((&((v__)->frameOuterWindowID())), msg__, iter__)))) {
6145 0 : FatalError("Error deserializing 'frameOuterWindowID' (uint64_t) member of 'LoadInfoArgs'");
6146 0 : return false;
6147 : }
6148 : // Sentinel = 'frameOuterWindowID'
6149 3 : if ((!((msg__)->ReadSentinel(iter__, 2873618957)))) {
6150 0 : mozilla::ipc::SentinelReadError("Error deserializing 'frameOuterWindowID' (uint64_t) member of 'LoadInfoArgs'");
6151 0 : return false;
6152 : }
6153 3 : if ((!(Read((&((v__)->enforceSecurity())), msg__, iter__)))) {
6154 0 : FatalError("Error deserializing 'enforceSecurity' (bool) member of 'LoadInfoArgs'");
6155 0 : return false;
6156 : }
6157 : // Sentinel = 'enforceSecurity'
6158 3 : if ((!((msg__)->ReadSentinel(iter__, 646099439)))) {
6159 0 : mozilla::ipc::SentinelReadError("Error deserializing 'enforceSecurity' (bool) member of 'LoadInfoArgs'");
6160 0 : return false;
6161 : }
6162 3 : if ((!(Read((&((v__)->initialSecurityCheckDone())), msg__, iter__)))) {
6163 0 : FatalError("Error deserializing 'initialSecurityCheckDone' (bool) member of 'LoadInfoArgs'");
6164 0 : return false;
6165 : }
6166 : // Sentinel = 'initialSecurityCheckDone'
6167 3 : if ((!((msg__)->ReadSentinel(iter__, 872070054)))) {
6168 0 : mozilla::ipc::SentinelReadError("Error deserializing 'initialSecurityCheckDone' (bool) member of 'LoadInfoArgs'");
6169 0 : return false;
6170 : }
6171 3 : if ((!(Read((&((v__)->isInThirdPartyContext())), msg__, iter__)))) {
6172 0 : FatalError("Error deserializing 'isInThirdPartyContext' (bool) member of 'LoadInfoArgs'");
6173 0 : return false;
6174 : }
6175 : // Sentinel = 'isInThirdPartyContext'
6176 3 : if ((!((msg__)->ReadSentinel(iter__, 525088520)))) {
6177 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isInThirdPartyContext' (bool) member of 'LoadInfoArgs'");
6178 0 : return false;
6179 : }
6180 3 : if ((!(Read((&((v__)->originAttributes())), msg__, iter__)))) {
6181 0 : FatalError("Error deserializing 'originAttributes' (OriginAttributes) member of 'LoadInfoArgs'");
6182 0 : return false;
6183 : }
6184 : // Sentinel = 'originAttributes'
6185 3 : if ((!((msg__)->ReadSentinel(iter__, 2655275965)))) {
6186 0 : mozilla::ipc::SentinelReadError("Error deserializing 'originAttributes' (OriginAttributes) member of 'LoadInfoArgs'");
6187 0 : return false;
6188 : }
6189 3 : if ((!(Read((&((v__)->redirectChainIncludingInternalRedirects())), msg__, iter__)))) {
6190 0 : FatalError("Error deserializing 'redirectChainIncludingInternalRedirects' (RedirectHistoryEntryInfo[]) member of 'LoadInfoArgs'");
6191 0 : return false;
6192 : }
6193 : // Sentinel = 'redirectChainIncludingInternalRedirects'
6194 3 : if ((!((msg__)->ReadSentinel(iter__, 967904109)))) {
6195 0 : mozilla::ipc::SentinelReadError("Error deserializing 'redirectChainIncludingInternalRedirects' (RedirectHistoryEntryInfo[]) member of 'LoadInfoArgs'");
6196 0 : return false;
6197 : }
6198 3 : if ((!(Read((&((v__)->redirectChain())), msg__, iter__)))) {
6199 0 : FatalError("Error deserializing 'redirectChain' (RedirectHistoryEntryInfo[]) member of 'LoadInfoArgs'");
6200 0 : return false;
6201 : }
6202 : // Sentinel = 'redirectChain'
6203 3 : if ((!((msg__)->ReadSentinel(iter__, 2550711462)))) {
6204 0 : mozilla::ipc::SentinelReadError("Error deserializing 'redirectChain' (RedirectHistoryEntryInfo[]) member of 'LoadInfoArgs'");
6205 0 : return false;
6206 : }
6207 3 : if ((!(Read((&((v__)->corsUnsafeHeaders())), msg__, iter__)))) {
6208 0 : FatalError("Error deserializing 'corsUnsafeHeaders' (nsCString[]) member of 'LoadInfoArgs'");
6209 0 : return false;
6210 : }
6211 : // Sentinel = 'corsUnsafeHeaders'
6212 3 : if ((!((msg__)->ReadSentinel(iter__, 2369694136)))) {
6213 0 : mozilla::ipc::SentinelReadError("Error deserializing 'corsUnsafeHeaders' (nsCString[]) member of 'LoadInfoArgs'");
6214 0 : return false;
6215 : }
6216 3 : if ((!(Read((&((v__)->forcePreflight())), msg__, iter__)))) {
6217 0 : FatalError("Error deserializing 'forcePreflight' (bool) member of 'LoadInfoArgs'");
6218 0 : return false;
6219 : }
6220 : // Sentinel = 'forcePreflight'
6221 3 : if ((!((msg__)->ReadSentinel(iter__, 2198503272)))) {
6222 0 : mozilla::ipc::SentinelReadError("Error deserializing 'forcePreflight' (bool) member of 'LoadInfoArgs'");
6223 0 : return false;
6224 : }
6225 3 : if ((!(Read((&((v__)->isPreflight())), msg__, iter__)))) {
6226 0 : FatalError("Error deserializing 'isPreflight' (bool) member of 'LoadInfoArgs'");
6227 0 : return false;
6228 : }
6229 : // Sentinel = 'isPreflight'
6230 3 : if ((!((msg__)->ReadSentinel(iter__, 3402379662)))) {
6231 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isPreflight' (bool) member of 'LoadInfoArgs'");
6232 0 : return false;
6233 : }
6234 3 : if ((!(Read((&((v__)->forceHSTSPriming())), msg__, iter__)))) {
6235 0 : FatalError("Error deserializing 'forceHSTSPriming' (bool) member of 'LoadInfoArgs'");
6236 0 : return false;
6237 : }
6238 : // Sentinel = 'forceHSTSPriming'
6239 3 : if ((!((msg__)->ReadSentinel(iter__, 1123937751)))) {
6240 0 : mozilla::ipc::SentinelReadError("Error deserializing 'forceHSTSPriming' (bool) member of 'LoadInfoArgs'");
6241 0 : return false;
6242 : }
6243 3 : if ((!(Read((&((v__)->mixedContentWouldBlock())), msg__, iter__)))) {
6244 0 : FatalError("Error deserializing 'mixedContentWouldBlock' (bool) member of 'LoadInfoArgs'");
6245 0 : return false;
6246 : }
6247 : // Sentinel = 'mixedContentWouldBlock'
6248 3 : if ((!((msg__)->ReadSentinel(iter__, 3609505564)))) {
6249 0 : mozilla::ipc::SentinelReadError("Error deserializing 'mixedContentWouldBlock' (bool) member of 'LoadInfoArgs'");
6250 0 : return false;
6251 : }
6252 3 : if ((!(Read((&((v__)->isHSTSPriming())), msg__, iter__)))) {
6253 0 : FatalError("Error deserializing 'isHSTSPriming' (bool) member of 'LoadInfoArgs'");
6254 0 : return false;
6255 : }
6256 : // Sentinel = 'isHSTSPriming'
6257 3 : if ((!((msg__)->ReadSentinel(iter__, 3794927777)))) {
6258 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isHSTSPriming' (bool) member of 'LoadInfoArgs'");
6259 0 : return false;
6260 : }
6261 3 : if ((!(Read((&((v__)->isHSTSPrimingUpgrade())), msg__, iter__)))) {
6262 0 : FatalError("Error deserializing 'isHSTSPrimingUpgrade' (bool) member of 'LoadInfoArgs'");
6263 0 : return false;
6264 : }
6265 : // Sentinel = 'isHSTSPrimingUpgrade'
6266 3 : if ((!((msg__)->ReadSentinel(iter__, 3851270092)))) {
6267 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isHSTSPrimingUpgrade' (bool) member of 'LoadInfoArgs'");
6268 0 : return false;
6269 : }
6270 3 : return true;
6271 : }
6272 :
6273 0 : auto PNeckoParent::Write(
6274 : const HttpChannelCreationArgs& v__,
6275 : Message* msg__) -> void
6276 : {
6277 : typedef HttpChannelCreationArgs type__;
6278 0 : Write(int((v__).type()), msg__);
6279 : // Sentinel = 'HttpChannelCreationArgs'
6280 0 : (msg__)->WriteSentinel(2242561662);
6281 :
6282 0 : switch ((v__).type()) {
6283 : case type__::THttpChannelOpenArgs:
6284 : {
6285 0 : Write((v__).get_HttpChannelOpenArgs(), msg__);
6286 : // Sentinel = 'THttpChannelOpenArgs'
6287 0 : (msg__)->WriteSentinel(273235350);
6288 0 : return;
6289 : }
6290 : case type__::THttpChannelConnectArgs:
6291 : {
6292 0 : Write((v__).get_HttpChannelConnectArgs(), msg__);
6293 : // Sentinel = 'THttpChannelConnectArgs'
6294 0 : (msg__)->WriteSentinel(3100124069);
6295 0 : return;
6296 : }
6297 : default:
6298 : {
6299 0 : FatalError("unknown union type");
6300 0 : return;
6301 : }
6302 : }
6303 : }
6304 :
6305 3 : auto PNeckoParent::Read(
6306 : HttpChannelCreationArgs* v__,
6307 : const Message* msg__,
6308 : PickleIterator* iter__) -> bool
6309 : {
6310 : typedef HttpChannelCreationArgs type__;
6311 : int type;
6312 3 : if ((!(Read((&(type)), msg__, iter__)))) {
6313 0 : mozilla::ipc::UnionTypeReadError("HttpChannelCreationArgs");
6314 0 : return false;
6315 : }
6316 : // Sentinel = 'HttpChannelCreationArgs'
6317 3 : if ((!((msg__)->ReadSentinel(iter__, 2242561662)))) {
6318 0 : mozilla::ipc::SentinelReadError("HttpChannelCreationArgs");
6319 0 : return false;
6320 : }
6321 :
6322 3 : switch (type) {
6323 : case type__::THttpChannelOpenArgs:
6324 : {
6325 6 : HttpChannelOpenArgs tmp = HttpChannelOpenArgs();
6326 3 : (*(v__)) = tmp;
6327 3 : if ((!(Read((&((v__)->get_HttpChannelOpenArgs())), msg__, iter__)))) {
6328 0 : FatalError("Error deserializing Union type");
6329 0 : return false;
6330 : }
6331 : // Sentinel = 'THttpChannelOpenArgs'
6332 3 : if ((!((msg__)->ReadSentinel(iter__, 273235350)))) {
6333 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6334 0 : return false;
6335 : }
6336 3 : return true;
6337 : }
6338 : case type__::THttpChannelConnectArgs:
6339 : {
6340 0 : HttpChannelConnectArgs tmp = HttpChannelConnectArgs();
6341 0 : (*(v__)) = tmp;
6342 0 : if ((!(Read((&((v__)->get_HttpChannelConnectArgs())), msg__, iter__)))) {
6343 0 : FatalError("Error deserializing Union type");
6344 0 : return false;
6345 : }
6346 : // Sentinel = 'THttpChannelConnectArgs'
6347 0 : if ((!((msg__)->ReadSentinel(iter__, 3100124069)))) {
6348 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6349 0 : return false;
6350 : }
6351 0 : return true;
6352 : }
6353 : default:
6354 : {
6355 0 : FatalError("unknown union type");
6356 0 : return false;
6357 : }
6358 : }
6359 : }
6360 :
6361 0 : auto PNeckoParent::Write(
6362 : const MultiplexInputStreamParams& v__,
6363 : Message* msg__) -> void
6364 : {
6365 0 : Write((v__).streams(), msg__);
6366 : // Sentinel = 'streams'
6367 0 : (msg__)->WriteSentinel(4240383220);
6368 0 : Write((v__).currentStream(), msg__);
6369 : // Sentinel = 'currentStream'
6370 0 : (msg__)->WriteSentinel(682778074);
6371 0 : Write((v__).status(), msg__);
6372 : // Sentinel = 'status'
6373 0 : (msg__)->WriteSentinel(3714608576);
6374 0 : Write((v__).startedReadingCurrent(), msg__);
6375 : // Sentinel = 'startedReadingCurrent'
6376 0 : (msg__)->WriteSentinel(970542033);
6377 0 : }
6378 :
6379 0 : auto PNeckoParent::Read(
6380 : MultiplexInputStreamParams* v__,
6381 : const Message* msg__,
6382 : PickleIterator* iter__) -> bool
6383 : {
6384 0 : if ((!(Read((&((v__)->streams())), msg__, iter__)))) {
6385 0 : FatalError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
6386 0 : return false;
6387 : }
6388 : // Sentinel = 'streams'
6389 0 : if ((!((msg__)->ReadSentinel(iter__, 4240383220)))) {
6390 0 : mozilla::ipc::SentinelReadError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
6391 0 : return false;
6392 : }
6393 0 : if ((!(Read((&((v__)->currentStream())), msg__, iter__)))) {
6394 0 : FatalError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
6395 0 : return false;
6396 : }
6397 : // Sentinel = 'currentStream'
6398 0 : if ((!((msg__)->ReadSentinel(iter__, 682778074)))) {
6399 0 : mozilla::ipc::SentinelReadError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
6400 0 : return false;
6401 : }
6402 0 : if ((!(Read((&((v__)->status())), msg__, iter__)))) {
6403 0 : FatalError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
6404 0 : return false;
6405 : }
6406 : // Sentinel = 'status'
6407 0 : if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
6408 0 : mozilla::ipc::SentinelReadError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
6409 0 : return false;
6410 : }
6411 0 : if ((!(Read((&((v__)->startedReadingCurrent())), msg__, iter__)))) {
6412 0 : FatalError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
6413 0 : return false;
6414 : }
6415 : // Sentinel = 'startedReadingCurrent'
6416 0 : if ((!((msg__)->ReadSentinel(iter__, 970542033)))) {
6417 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
6418 0 : return false;
6419 : }
6420 0 : return true;
6421 : }
6422 :
6423 0 : auto PNeckoParent::Write(
6424 : const MIMEInputStreamParams& v__,
6425 : Message* msg__) -> void
6426 : {
6427 0 : Write((v__).optionalStream(), msg__);
6428 : // Sentinel = 'optionalStream'
6429 0 : (msg__)->WriteSentinel(1003718562);
6430 0 : Write((v__).headers(), msg__);
6431 : // Sentinel = 'headers'
6432 0 : (msg__)->WriteSentinel(4284175217);
6433 0 : Write((v__).startedReading(), msg__);
6434 : // Sentinel = 'startedReading'
6435 0 : (msg__)->WriteSentinel(1906875903);
6436 0 : }
6437 :
6438 0 : auto PNeckoParent::Read(
6439 : MIMEInputStreamParams* v__,
6440 : const Message* msg__,
6441 : PickleIterator* iter__) -> bool
6442 : {
6443 0 : if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
6444 0 : FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
6445 0 : return false;
6446 : }
6447 : // Sentinel = 'optionalStream'
6448 0 : if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
6449 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
6450 0 : return false;
6451 : }
6452 0 : if ((!(Read((&((v__)->headers())), msg__, iter__)))) {
6453 0 : FatalError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
6454 0 : return false;
6455 : }
6456 : // Sentinel = 'headers'
6457 0 : if ((!((msg__)->ReadSentinel(iter__, 4284175217)))) {
6458 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
6459 0 : return false;
6460 : }
6461 0 : if ((!(Read((&((v__)->startedReading())), msg__, iter__)))) {
6462 0 : FatalError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
6463 0 : return false;
6464 : }
6465 : // Sentinel = 'startedReading'
6466 0 : if ((!((msg__)->ReadSentinel(iter__, 1906875903)))) {
6467 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
6468 0 : return false;
6469 : }
6470 0 : return true;
6471 : }
6472 :
6473 0 : auto PNeckoParent::Write(
6474 : const OptionalLoadInfoArgs& v__,
6475 : Message* msg__) -> void
6476 : {
6477 : typedef OptionalLoadInfoArgs type__;
6478 0 : Write(int((v__).type()), msg__);
6479 : // Sentinel = 'OptionalLoadInfoArgs'
6480 0 : (msg__)->WriteSentinel(1063815263);
6481 :
6482 0 : switch ((v__).type()) {
6483 : case type__::Tvoid_t:
6484 : {
6485 0 : Write((v__).get_void_t(), msg__);
6486 : // Sentinel = 'Tvoid_t'
6487 0 : (msg__)->WriteSentinel(3041273328);
6488 0 : return;
6489 : }
6490 : case type__::TLoadInfoArgs:
6491 : {
6492 0 : Write((v__).get_LoadInfoArgs(), msg__);
6493 : // Sentinel = 'TLoadInfoArgs'
6494 0 : (msg__)->WriteSentinel(3550797606);
6495 0 : return;
6496 : }
6497 : default:
6498 : {
6499 0 : FatalError("unknown union type");
6500 0 : return;
6501 : }
6502 : }
6503 : }
6504 :
6505 3 : auto PNeckoParent::Read(
6506 : OptionalLoadInfoArgs* v__,
6507 : const Message* msg__,
6508 : PickleIterator* iter__) -> bool
6509 : {
6510 : typedef OptionalLoadInfoArgs type__;
6511 : int type;
6512 3 : if ((!(Read((&(type)), msg__, iter__)))) {
6513 0 : mozilla::ipc::UnionTypeReadError("OptionalLoadInfoArgs");
6514 0 : return false;
6515 : }
6516 : // Sentinel = 'OptionalLoadInfoArgs'
6517 3 : if ((!((msg__)->ReadSentinel(iter__, 1063815263)))) {
6518 0 : mozilla::ipc::SentinelReadError("OptionalLoadInfoArgs");
6519 0 : return false;
6520 : }
6521 :
6522 3 : switch (type) {
6523 : case type__::Tvoid_t:
6524 : {
6525 : void_t tmp = void_t();
6526 0 : (*(v__)) = tmp;
6527 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
6528 0 : FatalError("Error deserializing Union type");
6529 0 : return false;
6530 : }
6531 : // Sentinel = 'Tvoid_t'
6532 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
6533 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6534 0 : return false;
6535 : }
6536 0 : return true;
6537 : }
6538 : case type__::TLoadInfoArgs:
6539 : {
6540 6 : LoadInfoArgs tmp = LoadInfoArgs();
6541 3 : (*(v__)) = tmp;
6542 3 : if ((!(Read((&((v__)->get_LoadInfoArgs())), msg__, iter__)))) {
6543 0 : FatalError("Error deserializing Union type");
6544 0 : return false;
6545 : }
6546 : // Sentinel = 'TLoadInfoArgs'
6547 3 : if ((!((msg__)->ReadSentinel(iter__, 3550797606)))) {
6548 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6549 0 : return false;
6550 : }
6551 3 : return true;
6552 : }
6553 : default:
6554 : {
6555 0 : FatalError("unknown union type");
6556 0 : return false;
6557 : }
6558 : }
6559 : }
6560 :
6561 0 : auto PNeckoParent::Write(
6562 : const SimpleURIParams& v__,
6563 : Message* msg__) -> void
6564 : {
6565 0 : Write((v__).scheme(), msg__);
6566 : // Sentinel = 'scheme'
6567 0 : (msg__)->WriteSentinel(3619238715);
6568 0 : Write((v__).path(), msg__);
6569 : // Sentinel = 'path'
6570 0 : (msg__)->WriteSentinel(913629401);
6571 0 : Write((v__).ref(), msg__);
6572 : // Sentinel = 'ref'
6573 0 : (msg__)->WriteSentinel(2626476732);
6574 0 : Write((v__).query(), msg__);
6575 : // Sentinel = 'query'
6576 0 : (msg__)->WriteSentinel(4249802777);
6577 0 : Write((v__).isMutable(), msg__);
6578 : // Sentinel = 'isMutable'
6579 0 : (msg__)->WriteSentinel(3552466783);
6580 0 : }
6581 :
6582 0 : auto PNeckoParent::Read(
6583 : SimpleURIParams* v__,
6584 : const Message* msg__,
6585 : PickleIterator* iter__) -> bool
6586 : {
6587 0 : if ((!(Read((&((v__)->scheme())), msg__, iter__)))) {
6588 0 : FatalError("Error deserializing 'scheme' (nsCString) member of 'SimpleURIParams'");
6589 0 : return false;
6590 : }
6591 : // Sentinel = 'scheme'
6592 0 : if ((!((msg__)->ReadSentinel(iter__, 3619238715)))) {
6593 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scheme' (nsCString) member of 'SimpleURIParams'");
6594 0 : return false;
6595 : }
6596 0 : if ((!(Read((&((v__)->path())), msg__, iter__)))) {
6597 0 : FatalError("Error deserializing 'path' (nsCString) member of 'SimpleURIParams'");
6598 0 : return false;
6599 : }
6600 : // Sentinel = 'path'
6601 0 : if ((!((msg__)->ReadSentinel(iter__, 913629401)))) {
6602 0 : mozilla::ipc::SentinelReadError("Error deserializing 'path' (nsCString) member of 'SimpleURIParams'");
6603 0 : return false;
6604 : }
6605 0 : if ((!(Read((&((v__)->ref())), msg__, iter__)))) {
6606 0 : FatalError("Error deserializing 'ref' (nsCString) member of 'SimpleURIParams'");
6607 0 : return false;
6608 : }
6609 : // Sentinel = 'ref'
6610 0 : if ((!((msg__)->ReadSentinel(iter__, 2626476732)))) {
6611 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ref' (nsCString) member of 'SimpleURIParams'");
6612 0 : return false;
6613 : }
6614 0 : if ((!(Read((&((v__)->query())), msg__, iter__)))) {
6615 0 : FatalError("Error deserializing 'query' (nsCString) member of 'SimpleURIParams'");
6616 0 : return false;
6617 : }
6618 : // Sentinel = 'query'
6619 0 : if ((!((msg__)->ReadSentinel(iter__, 4249802777)))) {
6620 0 : mozilla::ipc::SentinelReadError("Error deserializing 'query' (nsCString) member of 'SimpleURIParams'");
6621 0 : return false;
6622 : }
6623 0 : if ((!(Read((&((v__)->isMutable())), msg__, iter__)))) {
6624 0 : FatalError("Error deserializing 'isMutable' (bool) member of 'SimpleURIParams'");
6625 0 : return false;
6626 : }
6627 : // Sentinel = 'isMutable'
6628 0 : if ((!((msg__)->ReadSentinel(iter__, 3552466783)))) {
6629 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isMutable' (bool) member of 'SimpleURIParams'");
6630 0 : return false;
6631 : }
6632 0 : return true;
6633 : }
6634 :
6635 0 : auto PNeckoParent::Write(
6636 : const PCookieServiceParent* v__,
6637 : Message* msg__,
6638 : bool nullable__) -> void
6639 : {
6640 : int32_t id;
6641 0 : if ((!(v__))) {
6642 0 : if ((!(nullable__))) {
6643 0 : FatalError("NULL actor value passed to non-nullable param");
6644 : }
6645 0 : id = 0;
6646 : }
6647 : else {
6648 0 : id = (v__)->Id();
6649 0 : if ((1) == (id)) {
6650 0 : FatalError("actor has been |delete|d");
6651 : }
6652 : }
6653 :
6654 0 : Write(id, msg__);
6655 0 : }
6656 :
6657 0 : auto PNeckoParent::Read(
6658 : PCookieServiceParent** v__,
6659 : const Message* msg__,
6660 : PickleIterator* iter__,
6661 : bool nullable__) -> bool
6662 : {
6663 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PCookieService", PCookieServiceMsgStart);
6664 0 : if ((actor).isNothing()) {
6665 0 : return false;
6666 : }
6667 :
6668 0 : (*(v__)) = static_cast<PCookieServiceParent*>((actor).value());
6669 0 : return true;
6670 : }
6671 :
6672 0 : auto PNeckoParent::Write(
6673 : const OptionalIPCStream& v__,
6674 : Message* msg__) -> void
6675 : {
6676 : typedef OptionalIPCStream type__;
6677 0 : Write(int((v__).type()), msg__);
6678 : // Sentinel = 'OptionalIPCStream'
6679 0 : (msg__)->WriteSentinel(3815982647);
6680 :
6681 0 : switch ((v__).type()) {
6682 : case type__::TIPCStream:
6683 : {
6684 0 : Write((v__).get_IPCStream(), msg__);
6685 : // Sentinel = 'TIPCStream'
6686 0 : (msg__)->WriteSentinel(40701900);
6687 0 : return;
6688 : }
6689 : case type__::Tvoid_t:
6690 : {
6691 0 : Write((v__).get_void_t(), msg__);
6692 : // Sentinel = 'Tvoid_t'
6693 0 : (msg__)->WriteSentinel(3041273328);
6694 0 : return;
6695 : }
6696 : default:
6697 : {
6698 0 : FatalError("unknown union type");
6699 0 : return;
6700 : }
6701 : }
6702 : }
6703 :
6704 3 : auto PNeckoParent::Read(
6705 : OptionalIPCStream* v__,
6706 : const Message* msg__,
6707 : PickleIterator* iter__) -> bool
6708 : {
6709 : typedef OptionalIPCStream type__;
6710 : int type;
6711 3 : if ((!(Read((&(type)), msg__, iter__)))) {
6712 0 : mozilla::ipc::UnionTypeReadError("OptionalIPCStream");
6713 0 : return false;
6714 : }
6715 : // Sentinel = 'OptionalIPCStream'
6716 3 : if ((!((msg__)->ReadSentinel(iter__, 3815982647)))) {
6717 0 : mozilla::ipc::SentinelReadError("OptionalIPCStream");
6718 0 : return false;
6719 : }
6720 :
6721 3 : switch (type) {
6722 : case type__::TIPCStream:
6723 : {
6724 0 : IPCStream tmp = IPCStream();
6725 0 : (*(v__)) = tmp;
6726 0 : if ((!(Read((&((v__)->get_IPCStream())), msg__, iter__)))) {
6727 0 : FatalError("Error deserializing Union type");
6728 0 : return false;
6729 : }
6730 : // Sentinel = 'TIPCStream'
6731 0 : if ((!((msg__)->ReadSentinel(iter__, 40701900)))) {
6732 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6733 0 : return false;
6734 : }
6735 0 : return true;
6736 : }
6737 : case type__::Tvoid_t:
6738 : {
6739 : void_t tmp = void_t();
6740 3 : (*(v__)) = tmp;
6741 3 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
6742 0 : FatalError("Error deserializing Union type");
6743 0 : return false;
6744 : }
6745 : // Sentinel = 'Tvoid_t'
6746 3 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
6747 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6748 0 : return false;
6749 : }
6750 3 : return true;
6751 : }
6752 : default:
6753 : {
6754 0 : FatalError("unknown union type");
6755 0 : return false;
6756 : }
6757 : }
6758 : }
6759 :
6760 0 : auto PNeckoParent::Write(
6761 : const StringInputStreamParams& v__,
6762 : Message* msg__) -> void
6763 : {
6764 0 : Write((v__).data(), msg__);
6765 : // Sentinel = 'data'
6766 0 : (msg__)->WriteSentinel(843352540);
6767 0 : }
6768 :
6769 0 : auto PNeckoParent::Read(
6770 : StringInputStreamParams* v__,
6771 : const Message* msg__,
6772 : PickleIterator* iter__) -> bool
6773 : {
6774 0 : if ((!(Read((&((v__)->data())), msg__, iter__)))) {
6775 0 : FatalError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
6776 0 : return false;
6777 : }
6778 : // Sentinel = 'data'
6779 0 : if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
6780 0 : mozilla::ipc::SentinelReadError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
6781 0 : return false;
6782 : }
6783 0 : return true;
6784 : }
6785 :
6786 0 : auto PNeckoParent::Write(
6787 : const FTPChannelOpenArgs& v__,
6788 : Message* msg__) -> void
6789 : {
6790 0 : Write((v__).uri(), msg__);
6791 : // Sentinel = 'uri'
6792 0 : (msg__)->WriteSentinel(1453210605);
6793 0 : Write((v__).startPos(), msg__);
6794 : // Sentinel = 'startPos'
6795 0 : (msg__)->WriteSentinel(557207962);
6796 0 : Write((v__).entityID(), msg__);
6797 : // Sentinel = 'entityID'
6798 0 : (msg__)->WriteSentinel(245743354);
6799 0 : Write((v__).uploadStream(), msg__);
6800 : // Sentinel = 'uploadStream'
6801 0 : (msg__)->WriteSentinel(3559827199);
6802 0 : Write((v__).loadInfo(), msg__);
6803 : // Sentinel = 'loadInfo'
6804 0 : (msg__)->WriteSentinel(2597515304);
6805 0 : }
6806 :
6807 0 : auto PNeckoParent::Read(
6808 : FTPChannelOpenArgs* v__,
6809 : const Message* msg__,
6810 : PickleIterator* iter__) -> bool
6811 : {
6812 0 : if ((!(Read((&((v__)->uri())), msg__, iter__)))) {
6813 0 : FatalError("Error deserializing 'uri' (URIParams) member of 'FTPChannelOpenArgs'");
6814 0 : return false;
6815 : }
6816 : // Sentinel = 'uri'
6817 0 : if ((!((msg__)->ReadSentinel(iter__, 1453210605)))) {
6818 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uri' (URIParams) member of 'FTPChannelOpenArgs'");
6819 0 : return false;
6820 : }
6821 0 : if ((!(Read((&((v__)->startPos())), msg__, iter__)))) {
6822 0 : FatalError("Error deserializing 'startPos' (uint64_t) member of 'FTPChannelOpenArgs'");
6823 0 : return false;
6824 : }
6825 : // Sentinel = 'startPos'
6826 0 : if ((!((msg__)->ReadSentinel(iter__, 557207962)))) {
6827 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startPos' (uint64_t) member of 'FTPChannelOpenArgs'");
6828 0 : return false;
6829 : }
6830 0 : if ((!(Read((&((v__)->entityID())), msg__, iter__)))) {
6831 0 : FatalError("Error deserializing 'entityID' (nsCString) member of 'FTPChannelOpenArgs'");
6832 0 : return false;
6833 : }
6834 : // Sentinel = 'entityID'
6835 0 : if ((!((msg__)->ReadSentinel(iter__, 245743354)))) {
6836 0 : mozilla::ipc::SentinelReadError("Error deserializing 'entityID' (nsCString) member of 'FTPChannelOpenArgs'");
6837 0 : return false;
6838 : }
6839 0 : if ((!(Read((&((v__)->uploadStream())), msg__, iter__)))) {
6840 0 : FatalError("Error deserializing 'uploadStream' (OptionalIPCStream) member of 'FTPChannelOpenArgs'");
6841 0 : return false;
6842 : }
6843 : // Sentinel = 'uploadStream'
6844 0 : if ((!((msg__)->ReadSentinel(iter__, 3559827199)))) {
6845 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uploadStream' (OptionalIPCStream) member of 'FTPChannelOpenArgs'");
6846 0 : return false;
6847 : }
6848 0 : if ((!(Read((&((v__)->loadInfo())), msg__, iter__)))) {
6849 0 : FatalError("Error deserializing 'loadInfo' (OptionalLoadInfoArgs) member of 'FTPChannelOpenArgs'");
6850 0 : return false;
6851 : }
6852 : // Sentinel = 'loadInfo'
6853 0 : if ((!((msg__)->ReadSentinel(iter__, 2597515304)))) {
6854 0 : mozilla::ipc::SentinelReadError("Error deserializing 'loadInfo' (OptionalLoadInfoArgs) member of 'FTPChannelOpenArgs'");
6855 0 : return false;
6856 : }
6857 0 : return true;
6858 : }
6859 :
6860 0 : auto PNeckoParent::Write(
6861 : const NullPrincipalURIParams& v__,
6862 : Message* msg__) -> void
6863 : {
6864 0 : }
6865 :
6866 0 : auto PNeckoParent::Read(
6867 : NullPrincipalURIParams* v__,
6868 : const Message* msg__,
6869 : PickleIterator* iter__) -> bool
6870 : {
6871 0 : return true;
6872 : }
6873 :
6874 0 : auto PNeckoParent::Write(
6875 : const IconURIParams& v__,
6876 : Message* msg__) -> void
6877 : {
6878 0 : Write((v__).uri(), msg__);
6879 : // Sentinel = 'uri'
6880 0 : (msg__)->WriteSentinel(1453210605);
6881 0 : Write((v__).size(), msg__);
6882 : // Sentinel = 'size'
6883 0 : (msg__)->WriteSentinel(931048223);
6884 0 : Write((v__).contentType(), msg__);
6885 : // Sentinel = 'contentType'
6886 0 : (msg__)->WriteSentinel(2092571716);
6887 0 : Write((v__).fileName(), msg__);
6888 : // Sentinel = 'fileName'
6889 0 : (msg__)->WriteSentinel(3833449039);
6890 0 : Write((v__).stockIcon(), msg__);
6891 : // Sentinel = 'stockIcon'
6892 0 : (msg__)->WriteSentinel(3601770784);
6893 0 : Write((v__).iconSize(), msg__);
6894 : // Sentinel = 'iconSize'
6895 0 : (msg__)->WriteSentinel(2585310920);
6896 0 : Write((v__).iconState(), msg__);
6897 : // Sentinel = 'iconState'
6898 0 : (msg__)->WriteSentinel(3444306207);
6899 0 : }
6900 :
6901 0 : auto PNeckoParent::Read(
6902 : IconURIParams* v__,
6903 : const Message* msg__,
6904 : PickleIterator* iter__) -> bool
6905 : {
6906 0 : if ((!(Read((&((v__)->uri())), msg__, iter__)))) {
6907 0 : FatalError("Error deserializing 'uri' (OptionalURIParams) member of 'IconURIParams'");
6908 0 : return false;
6909 : }
6910 : // Sentinel = 'uri'
6911 0 : if ((!((msg__)->ReadSentinel(iter__, 1453210605)))) {
6912 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uri' (OptionalURIParams) member of 'IconURIParams'");
6913 0 : return false;
6914 : }
6915 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
6916 0 : FatalError("Error deserializing 'size' (uint32_t) member of 'IconURIParams'");
6917 0 : return false;
6918 : }
6919 : // Sentinel = 'size'
6920 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
6921 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (uint32_t) member of 'IconURIParams'");
6922 0 : return false;
6923 : }
6924 0 : if ((!(Read((&((v__)->contentType())), msg__, iter__)))) {
6925 0 : FatalError("Error deserializing 'contentType' (nsCString) member of 'IconURIParams'");
6926 0 : return false;
6927 : }
6928 : // Sentinel = 'contentType'
6929 0 : if ((!((msg__)->ReadSentinel(iter__, 2092571716)))) {
6930 0 : mozilla::ipc::SentinelReadError("Error deserializing 'contentType' (nsCString) member of 'IconURIParams'");
6931 0 : return false;
6932 : }
6933 0 : if ((!(Read((&((v__)->fileName())), msg__, iter__)))) {
6934 0 : FatalError("Error deserializing 'fileName' (nsCString) member of 'IconURIParams'");
6935 0 : return false;
6936 : }
6937 : // Sentinel = 'fileName'
6938 0 : if ((!((msg__)->ReadSentinel(iter__, 3833449039)))) {
6939 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileName' (nsCString) member of 'IconURIParams'");
6940 0 : return false;
6941 : }
6942 0 : if ((!(Read((&((v__)->stockIcon())), msg__, iter__)))) {
6943 0 : FatalError("Error deserializing 'stockIcon' (nsCString) member of 'IconURIParams'");
6944 0 : return false;
6945 : }
6946 : // Sentinel = 'stockIcon'
6947 0 : if ((!((msg__)->ReadSentinel(iter__, 3601770784)))) {
6948 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stockIcon' (nsCString) member of 'IconURIParams'");
6949 0 : return false;
6950 : }
6951 0 : if ((!(Read((&((v__)->iconSize())), msg__, iter__)))) {
6952 0 : FatalError("Error deserializing 'iconSize' (int32_t) member of 'IconURIParams'");
6953 0 : return false;
6954 : }
6955 : // Sentinel = 'iconSize'
6956 0 : if ((!((msg__)->ReadSentinel(iter__, 2585310920)))) {
6957 0 : mozilla::ipc::SentinelReadError("Error deserializing 'iconSize' (int32_t) member of 'IconURIParams'");
6958 0 : return false;
6959 : }
6960 0 : if ((!(Read((&((v__)->iconState())), msg__, iter__)))) {
6961 0 : FatalError("Error deserializing 'iconState' (int32_t) member of 'IconURIParams'");
6962 0 : return false;
6963 : }
6964 : // Sentinel = 'iconState'
6965 0 : if ((!((msg__)->ReadSentinel(iter__, 3444306207)))) {
6966 0 : mozilla::ipc::SentinelReadError("Error deserializing 'iconState' (int32_t) member of 'IconURIParams'");
6967 0 : return false;
6968 : }
6969 0 : return true;
6970 : }
6971 :
6972 0 : auto PNeckoParent::Write(
6973 : const PFileDescriptorSetParent* v__,
6974 : Message* msg__,
6975 : bool nullable__) -> void
6976 : {
6977 : int32_t id;
6978 0 : if ((!(v__))) {
6979 0 : if ((!(nullable__))) {
6980 0 : FatalError("NULL actor value passed to non-nullable param");
6981 : }
6982 0 : id = 0;
6983 : }
6984 : else {
6985 0 : id = (v__)->Id();
6986 0 : if ((1) == (id)) {
6987 0 : FatalError("actor has been |delete|d");
6988 : }
6989 : }
6990 :
6991 0 : Write(id, msg__);
6992 0 : }
6993 :
6994 0 : auto PNeckoParent::Read(
6995 : PFileDescriptorSetParent** v__,
6996 : const Message* msg__,
6997 : PickleIterator* iter__,
6998 : bool nullable__) -> bool
6999 : {
7000 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PFileDescriptorSet", PFileDescriptorSetMsgStart);
7001 0 : if ((actor).isNothing()) {
7002 0 : return false;
7003 : }
7004 :
7005 0 : (*(v__)) = static_cast<PFileDescriptorSetParent*>((actor).value());
7006 0 : return true;
7007 : }
7008 :
7009 0 : auto PNeckoParent::Write(
7010 : const PBrowserParent* v__,
7011 : Message* msg__,
7012 : bool nullable__) -> void
7013 : {
7014 : int32_t id;
7015 0 : if ((!(v__))) {
7016 0 : if ((!(nullable__))) {
7017 0 : FatalError("NULL actor value passed to non-nullable param");
7018 : }
7019 0 : id = 0;
7020 : }
7021 : else {
7022 0 : id = (v__)->Id();
7023 0 : if ((1) == (id)) {
7024 0 : FatalError("actor has been |delete|d");
7025 : }
7026 : }
7027 :
7028 0 : Write(id, msg__);
7029 0 : }
7030 :
7031 3 : auto PNeckoParent::Read(
7032 : PBrowserParent** v__,
7033 : const Message* msg__,
7034 : PickleIterator* iter__,
7035 : bool nullable__) -> bool
7036 : {
7037 6 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBrowser", PBrowserMsgStart);
7038 3 : if ((actor).isNothing()) {
7039 0 : return false;
7040 : }
7041 :
7042 3 : (*(v__)) = static_cast<PBrowserParent*>((actor).value());
7043 3 : return true;
7044 : }
7045 :
7046 0 : auto PNeckoParent::Write(
7047 : const PRtspControllerParent* v__,
7048 : Message* msg__,
7049 : bool nullable__) -> void
7050 : {
7051 : int32_t id;
7052 0 : if ((!(v__))) {
7053 0 : if ((!(nullable__))) {
7054 0 : FatalError("NULL actor value passed to non-nullable param");
7055 : }
7056 0 : id = 0;
7057 : }
7058 : else {
7059 0 : id = (v__)->Id();
7060 0 : if ((1) == (id)) {
7061 0 : FatalError("actor has been |delete|d");
7062 : }
7063 : }
7064 :
7065 0 : Write(id, msg__);
7066 0 : }
7067 :
7068 0 : auto PNeckoParent::Read(
7069 : PRtspControllerParent** v__,
7070 : const Message* msg__,
7071 : PickleIterator* iter__,
7072 : bool nullable__) -> bool
7073 : {
7074 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PRtspController", PRtspControllerMsgStart);
7075 0 : if ((actor).isNothing()) {
7076 0 : return false;
7077 : }
7078 :
7079 0 : (*(v__)) = static_cast<PRtspControllerParent*>((actor).value());
7080 0 : return true;
7081 : }
7082 :
7083 0 : auto PNeckoParent::Write(
7084 : const HttpChannelOpenArgs& v__,
7085 : Message* msg__) -> void
7086 : {
7087 0 : Write((v__).uri(), msg__);
7088 : // Sentinel = 'uri'
7089 0 : (msg__)->WriteSentinel(1453210605);
7090 0 : Write((v__).original(), msg__);
7091 : // Sentinel = 'original'
7092 0 : (msg__)->WriteSentinel(3262287869);
7093 0 : Write((v__).doc(), msg__);
7094 : // Sentinel = 'doc'
7095 0 : (msg__)->WriteSentinel(1528775657);
7096 0 : Write((v__).referrer(), msg__);
7097 : // Sentinel = 'referrer'
7098 0 : (msg__)->WriteSentinel(3770987113);
7099 0 : Write((v__).referrerPolicy(), msg__);
7100 : // Sentinel = 'referrerPolicy'
7101 0 : (msg__)->WriteSentinel(2269890057);
7102 0 : Write((v__).apiRedirectTo(), msg__);
7103 : // Sentinel = 'apiRedirectTo'
7104 0 : (msg__)->WriteSentinel(3162811030);
7105 0 : Write((v__).topWindowURI(), msg__);
7106 : // Sentinel = 'topWindowURI'
7107 0 : (msg__)->WriteSentinel(2325499925);
7108 0 : Write((v__).loadFlags(), msg__);
7109 : // Sentinel = 'loadFlags'
7110 0 : (msg__)->WriteSentinel(2391120444);
7111 0 : Write((v__).requestHeaders(), msg__);
7112 : // Sentinel = 'requestHeaders'
7113 0 : (msg__)->WriteSentinel(2055989545);
7114 0 : Write((v__).requestMethod(), msg__);
7115 : // Sentinel = 'requestMethod'
7116 0 : (msg__)->WriteSentinel(2210890865);
7117 0 : Write((v__).uploadStream(), msg__);
7118 : // Sentinel = 'uploadStream'
7119 0 : (msg__)->WriteSentinel(3559827199);
7120 0 : Write((v__).uploadStreamHasHeaders(), msg__);
7121 : // Sentinel = 'uploadStreamHasHeaders'
7122 0 : (msg__)->WriteSentinel(670009587);
7123 0 : Write((v__).priority(), msg__);
7124 : // Sentinel = 'priority'
7125 0 : (msg__)->WriteSentinel(558136112);
7126 0 : Write((v__).classOfService(), msg__);
7127 : // Sentinel = 'classOfService'
7128 0 : (msg__)->WriteSentinel(1829468214);
7129 0 : Write((v__).redirectionLimit(), msg__);
7130 : // Sentinel = 'redirectionLimit'
7131 0 : (msg__)->WriteSentinel(1070866783);
7132 0 : Write((v__).allowSTS(), msg__);
7133 : // Sentinel = 'allowSTS'
7134 0 : (msg__)->WriteSentinel(384958533);
7135 0 : Write((v__).thirdPartyFlags(), msg__);
7136 : // Sentinel = 'thirdPartyFlags'
7137 0 : (msg__)->WriteSentinel(3577174809);
7138 0 : Write((v__).resumeAt(), msg__);
7139 : // Sentinel = 'resumeAt'
7140 0 : (msg__)->WriteSentinel(866346170);
7141 0 : Write((v__).startPos(), msg__);
7142 : // Sentinel = 'startPos'
7143 0 : (msg__)->WriteSentinel(557207962);
7144 0 : Write((v__).entityID(), msg__);
7145 : // Sentinel = 'entityID'
7146 0 : (msg__)->WriteSentinel(245743354);
7147 0 : Write((v__).chooseApplicationCache(), msg__);
7148 : // Sentinel = 'chooseApplicationCache'
7149 0 : (msg__)->WriteSentinel(2898467869);
7150 0 : Write((v__).appCacheClientID(), msg__);
7151 : // Sentinel = 'appCacheClientID'
7152 0 : (msg__)->WriteSentinel(3495226687);
7153 0 : Write((v__).allowSpdy(), msg__);
7154 : // Sentinel = 'allowSpdy'
7155 0 : (msg__)->WriteSentinel(1630260538);
7156 0 : Write((v__).allowAltSvc(), msg__);
7157 : // Sentinel = 'allowAltSvc'
7158 0 : (msg__)->WriteSentinel(879875677);
7159 0 : Write((v__).beConservative(), msg__);
7160 : // Sentinel = 'beConservative'
7161 0 : (msg__)->WriteSentinel(1177063294);
7162 0 : Write((v__).loadInfo(), msg__);
7163 : // Sentinel = 'loadInfo'
7164 0 : (msg__)->WriteSentinel(2597515304);
7165 0 : Write((v__).synthesizedResponseHead(), msg__);
7166 : // Sentinel = 'synthesizedResponseHead'
7167 0 : (msg__)->WriteSentinel(588784596);
7168 0 : Write((v__).synthesizedSecurityInfoSerialization(), msg__);
7169 : // Sentinel = 'synthesizedSecurityInfoSerialization'
7170 0 : (msg__)->WriteSentinel(2702766326);
7171 0 : Write((v__).cacheKey(), msg__);
7172 : // Sentinel = 'cacheKey'
7173 0 : (msg__)->WriteSentinel(249191363);
7174 0 : Write((v__).requestContextID(), msg__);
7175 : // Sentinel = 'requestContextID'
7176 0 : (msg__)->WriteSentinel(2427410503);
7177 0 : Write((v__).preflightArgs(), msg__);
7178 : // Sentinel = 'preflightArgs'
7179 0 : (msg__)->WriteSentinel(2363616251);
7180 0 : Write((v__).initialRwin(), msg__);
7181 : // Sentinel = 'initialRwin'
7182 0 : (msg__)->WriteSentinel(967782407);
7183 0 : Write((v__).blockAuthPrompt(), msg__);
7184 : // Sentinel = 'blockAuthPrompt'
7185 0 : (msg__)->WriteSentinel(1543637500);
7186 0 : Write((v__).suspendAfterSynthesizeResponse(), msg__);
7187 : // Sentinel = 'suspendAfterSynthesizeResponse'
7188 0 : (msg__)->WriteSentinel(656622613);
7189 0 : Write((v__).allowStaleCacheContent(), msg__);
7190 : // Sentinel = 'allowStaleCacheContent'
7191 0 : (msg__)->WriteSentinel(3064959537);
7192 0 : Write((v__).contentTypeHint(), msg__);
7193 : // Sentinel = 'contentTypeHint'
7194 0 : (msg__)->WriteSentinel(2155295759);
7195 0 : Write((v__).channelId(), msg__);
7196 : // Sentinel = 'channelId'
7197 0 : (msg__)->WriteSentinel(6854027);
7198 0 : Write((v__).contentWindowId(), msg__);
7199 : // Sentinel = 'contentWindowId'
7200 0 : (msg__)->WriteSentinel(2188138839);
7201 0 : Write((v__).preferredAlternativeType(), msg__);
7202 : // Sentinel = 'preferredAlternativeType'
7203 0 : (msg__)->WriteSentinel(1019174360);
7204 0 : Write((v__).topLevelOuterContentWindowId(), msg__);
7205 : // Sentinel = 'topLevelOuterContentWindowId'
7206 0 : (msg__)->WriteSentinel(810319786);
7207 0 : Write((v__).launchServiceWorkerStart(), msg__);
7208 : // Sentinel = 'launchServiceWorkerStart'
7209 0 : (msg__)->WriteSentinel(1191023364);
7210 0 : Write((v__).launchServiceWorkerEnd(), msg__);
7211 : // Sentinel = 'launchServiceWorkerEnd'
7212 0 : (msg__)->WriteSentinel(2236809033);
7213 0 : Write((v__).dispatchFetchEventStart(), msg__);
7214 : // Sentinel = 'dispatchFetchEventStart'
7215 0 : (msg__)->WriteSentinel(2132895785);
7216 0 : Write((v__).dispatchFetchEventEnd(), msg__);
7217 : // Sentinel = 'dispatchFetchEventEnd'
7218 0 : (msg__)->WriteSentinel(256182528);
7219 0 : Write((v__).handleFetchEventStart(), msg__);
7220 : // Sentinel = 'handleFetchEventStart'
7221 0 : (msg__)->WriteSentinel(3840539911);
7222 0 : Write((v__).handleFetchEventEnd(), msg__);
7223 : // Sentinel = 'handleFetchEventEnd'
7224 0 : (msg__)->WriteSentinel(2420571602);
7225 0 : }
7226 :
7227 3 : auto PNeckoParent::Read(
7228 : HttpChannelOpenArgs* v__,
7229 : const Message* msg__,
7230 : PickleIterator* iter__) -> bool
7231 : {
7232 3 : if ((!(Read((&((v__)->uri())), msg__, iter__)))) {
7233 0 : FatalError("Error deserializing 'uri' (URIParams) member of 'HttpChannelOpenArgs'");
7234 0 : return false;
7235 : }
7236 : // Sentinel = 'uri'
7237 3 : if ((!((msg__)->ReadSentinel(iter__, 1453210605)))) {
7238 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uri' (URIParams) member of 'HttpChannelOpenArgs'");
7239 0 : return false;
7240 : }
7241 3 : if ((!(Read((&((v__)->original())), msg__, iter__)))) {
7242 0 : FatalError("Error deserializing 'original' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
7243 0 : return false;
7244 : }
7245 : // Sentinel = 'original'
7246 3 : if ((!((msg__)->ReadSentinel(iter__, 3262287869)))) {
7247 0 : mozilla::ipc::SentinelReadError("Error deserializing 'original' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
7248 0 : return false;
7249 : }
7250 3 : if ((!(Read((&((v__)->doc())), msg__, iter__)))) {
7251 0 : FatalError("Error deserializing 'doc' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
7252 0 : return false;
7253 : }
7254 : // Sentinel = 'doc'
7255 3 : if ((!((msg__)->ReadSentinel(iter__, 1528775657)))) {
7256 0 : mozilla::ipc::SentinelReadError("Error deserializing 'doc' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
7257 0 : return false;
7258 : }
7259 3 : if ((!(Read((&((v__)->referrer())), msg__, iter__)))) {
7260 0 : FatalError("Error deserializing 'referrer' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
7261 0 : return false;
7262 : }
7263 : // Sentinel = 'referrer'
7264 3 : if ((!((msg__)->ReadSentinel(iter__, 3770987113)))) {
7265 0 : mozilla::ipc::SentinelReadError("Error deserializing 'referrer' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
7266 0 : return false;
7267 : }
7268 3 : if ((!(Read((&((v__)->referrerPolicy())), msg__, iter__)))) {
7269 0 : FatalError("Error deserializing 'referrerPolicy' (uint32_t) member of 'HttpChannelOpenArgs'");
7270 0 : return false;
7271 : }
7272 : // Sentinel = 'referrerPolicy'
7273 3 : if ((!((msg__)->ReadSentinel(iter__, 2269890057)))) {
7274 0 : mozilla::ipc::SentinelReadError("Error deserializing 'referrerPolicy' (uint32_t) member of 'HttpChannelOpenArgs'");
7275 0 : return false;
7276 : }
7277 3 : if ((!(Read((&((v__)->apiRedirectTo())), msg__, iter__)))) {
7278 0 : FatalError("Error deserializing 'apiRedirectTo' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
7279 0 : return false;
7280 : }
7281 : // Sentinel = 'apiRedirectTo'
7282 3 : if ((!((msg__)->ReadSentinel(iter__, 3162811030)))) {
7283 0 : mozilla::ipc::SentinelReadError("Error deserializing 'apiRedirectTo' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
7284 0 : return false;
7285 : }
7286 3 : if ((!(Read((&((v__)->topWindowURI())), msg__, iter__)))) {
7287 0 : FatalError("Error deserializing 'topWindowURI' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
7288 0 : return false;
7289 : }
7290 : // Sentinel = 'topWindowURI'
7291 3 : if ((!((msg__)->ReadSentinel(iter__, 2325499925)))) {
7292 0 : mozilla::ipc::SentinelReadError("Error deserializing 'topWindowURI' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
7293 0 : return false;
7294 : }
7295 3 : if ((!(Read((&((v__)->loadFlags())), msg__, iter__)))) {
7296 0 : FatalError("Error deserializing 'loadFlags' (uint32_t) member of 'HttpChannelOpenArgs'");
7297 0 : return false;
7298 : }
7299 : // Sentinel = 'loadFlags'
7300 3 : if ((!((msg__)->ReadSentinel(iter__, 2391120444)))) {
7301 0 : mozilla::ipc::SentinelReadError("Error deserializing 'loadFlags' (uint32_t) member of 'HttpChannelOpenArgs'");
7302 0 : return false;
7303 : }
7304 3 : if ((!(Read((&((v__)->requestHeaders())), msg__, iter__)))) {
7305 0 : FatalError("Error deserializing 'requestHeaders' (RequestHeaderTuples) member of 'HttpChannelOpenArgs'");
7306 0 : return false;
7307 : }
7308 : // Sentinel = 'requestHeaders'
7309 3 : if ((!((msg__)->ReadSentinel(iter__, 2055989545)))) {
7310 0 : mozilla::ipc::SentinelReadError("Error deserializing 'requestHeaders' (RequestHeaderTuples) member of 'HttpChannelOpenArgs'");
7311 0 : return false;
7312 : }
7313 3 : if ((!(Read((&((v__)->requestMethod())), msg__, iter__)))) {
7314 0 : FatalError("Error deserializing 'requestMethod' (nsCString) member of 'HttpChannelOpenArgs'");
7315 0 : return false;
7316 : }
7317 : // Sentinel = 'requestMethod'
7318 3 : if ((!((msg__)->ReadSentinel(iter__, 2210890865)))) {
7319 0 : mozilla::ipc::SentinelReadError("Error deserializing 'requestMethod' (nsCString) member of 'HttpChannelOpenArgs'");
7320 0 : return false;
7321 : }
7322 3 : if ((!(Read((&((v__)->uploadStream())), msg__, iter__)))) {
7323 0 : FatalError("Error deserializing 'uploadStream' (OptionalIPCStream) member of 'HttpChannelOpenArgs'");
7324 0 : return false;
7325 : }
7326 : // Sentinel = 'uploadStream'
7327 3 : if ((!((msg__)->ReadSentinel(iter__, 3559827199)))) {
7328 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uploadStream' (OptionalIPCStream) member of 'HttpChannelOpenArgs'");
7329 0 : return false;
7330 : }
7331 3 : if ((!(Read((&((v__)->uploadStreamHasHeaders())), msg__, iter__)))) {
7332 0 : FatalError("Error deserializing 'uploadStreamHasHeaders' (bool) member of 'HttpChannelOpenArgs'");
7333 0 : return false;
7334 : }
7335 : // Sentinel = 'uploadStreamHasHeaders'
7336 3 : if ((!((msg__)->ReadSentinel(iter__, 670009587)))) {
7337 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uploadStreamHasHeaders' (bool) member of 'HttpChannelOpenArgs'");
7338 0 : return false;
7339 : }
7340 3 : if ((!(Read((&((v__)->priority())), msg__, iter__)))) {
7341 0 : FatalError("Error deserializing 'priority' (int16_t) member of 'HttpChannelOpenArgs'");
7342 0 : return false;
7343 : }
7344 : // Sentinel = 'priority'
7345 3 : if ((!((msg__)->ReadSentinel(iter__, 558136112)))) {
7346 0 : mozilla::ipc::SentinelReadError("Error deserializing 'priority' (int16_t) member of 'HttpChannelOpenArgs'");
7347 0 : return false;
7348 : }
7349 3 : if ((!(Read((&((v__)->classOfService())), msg__, iter__)))) {
7350 0 : FatalError("Error deserializing 'classOfService' (uint32_t) member of 'HttpChannelOpenArgs'");
7351 0 : return false;
7352 : }
7353 : // Sentinel = 'classOfService'
7354 3 : if ((!((msg__)->ReadSentinel(iter__, 1829468214)))) {
7355 0 : mozilla::ipc::SentinelReadError("Error deserializing 'classOfService' (uint32_t) member of 'HttpChannelOpenArgs'");
7356 0 : return false;
7357 : }
7358 3 : if ((!(Read((&((v__)->redirectionLimit())), msg__, iter__)))) {
7359 0 : FatalError("Error deserializing 'redirectionLimit' (uint8_t) member of 'HttpChannelOpenArgs'");
7360 0 : return false;
7361 : }
7362 : // Sentinel = 'redirectionLimit'
7363 3 : if ((!((msg__)->ReadSentinel(iter__, 1070866783)))) {
7364 0 : mozilla::ipc::SentinelReadError("Error deserializing 'redirectionLimit' (uint8_t) member of 'HttpChannelOpenArgs'");
7365 0 : return false;
7366 : }
7367 3 : if ((!(Read((&((v__)->allowSTS())), msg__, iter__)))) {
7368 0 : FatalError("Error deserializing 'allowSTS' (bool) member of 'HttpChannelOpenArgs'");
7369 0 : return false;
7370 : }
7371 : // Sentinel = 'allowSTS'
7372 3 : if ((!((msg__)->ReadSentinel(iter__, 384958533)))) {
7373 0 : mozilla::ipc::SentinelReadError("Error deserializing 'allowSTS' (bool) member of 'HttpChannelOpenArgs'");
7374 0 : return false;
7375 : }
7376 3 : if ((!(Read((&((v__)->thirdPartyFlags())), msg__, iter__)))) {
7377 0 : FatalError("Error deserializing 'thirdPartyFlags' (uint32_t) member of 'HttpChannelOpenArgs'");
7378 0 : return false;
7379 : }
7380 : // Sentinel = 'thirdPartyFlags'
7381 3 : if ((!((msg__)->ReadSentinel(iter__, 3577174809)))) {
7382 0 : mozilla::ipc::SentinelReadError("Error deserializing 'thirdPartyFlags' (uint32_t) member of 'HttpChannelOpenArgs'");
7383 0 : return false;
7384 : }
7385 3 : if ((!(Read((&((v__)->resumeAt())), msg__, iter__)))) {
7386 0 : FatalError("Error deserializing 'resumeAt' (bool) member of 'HttpChannelOpenArgs'");
7387 0 : return false;
7388 : }
7389 : // Sentinel = 'resumeAt'
7390 3 : if ((!((msg__)->ReadSentinel(iter__, 866346170)))) {
7391 0 : mozilla::ipc::SentinelReadError("Error deserializing 'resumeAt' (bool) member of 'HttpChannelOpenArgs'");
7392 0 : return false;
7393 : }
7394 3 : if ((!(Read((&((v__)->startPos())), msg__, iter__)))) {
7395 0 : FatalError("Error deserializing 'startPos' (uint64_t) member of 'HttpChannelOpenArgs'");
7396 0 : return false;
7397 : }
7398 : // Sentinel = 'startPos'
7399 3 : if ((!((msg__)->ReadSentinel(iter__, 557207962)))) {
7400 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startPos' (uint64_t) member of 'HttpChannelOpenArgs'");
7401 0 : return false;
7402 : }
7403 3 : if ((!(Read((&((v__)->entityID())), msg__, iter__)))) {
7404 0 : FatalError("Error deserializing 'entityID' (nsCString) member of 'HttpChannelOpenArgs'");
7405 0 : return false;
7406 : }
7407 : // Sentinel = 'entityID'
7408 3 : if ((!((msg__)->ReadSentinel(iter__, 245743354)))) {
7409 0 : mozilla::ipc::SentinelReadError("Error deserializing 'entityID' (nsCString) member of 'HttpChannelOpenArgs'");
7410 0 : return false;
7411 : }
7412 3 : if ((!(Read((&((v__)->chooseApplicationCache())), msg__, iter__)))) {
7413 0 : FatalError("Error deserializing 'chooseApplicationCache' (bool) member of 'HttpChannelOpenArgs'");
7414 0 : return false;
7415 : }
7416 : // Sentinel = 'chooseApplicationCache'
7417 3 : if ((!((msg__)->ReadSentinel(iter__, 2898467869)))) {
7418 0 : mozilla::ipc::SentinelReadError("Error deserializing 'chooseApplicationCache' (bool) member of 'HttpChannelOpenArgs'");
7419 0 : return false;
7420 : }
7421 3 : if ((!(Read((&((v__)->appCacheClientID())), msg__, iter__)))) {
7422 0 : FatalError("Error deserializing 'appCacheClientID' (nsCString) member of 'HttpChannelOpenArgs'");
7423 0 : return false;
7424 : }
7425 : // Sentinel = 'appCacheClientID'
7426 3 : if ((!((msg__)->ReadSentinel(iter__, 3495226687)))) {
7427 0 : mozilla::ipc::SentinelReadError("Error deserializing 'appCacheClientID' (nsCString) member of 'HttpChannelOpenArgs'");
7428 0 : return false;
7429 : }
7430 3 : if ((!(Read((&((v__)->allowSpdy())), msg__, iter__)))) {
7431 0 : FatalError("Error deserializing 'allowSpdy' (bool) member of 'HttpChannelOpenArgs'");
7432 0 : return false;
7433 : }
7434 : // Sentinel = 'allowSpdy'
7435 3 : if ((!((msg__)->ReadSentinel(iter__, 1630260538)))) {
7436 0 : mozilla::ipc::SentinelReadError("Error deserializing 'allowSpdy' (bool) member of 'HttpChannelOpenArgs'");
7437 0 : return false;
7438 : }
7439 3 : if ((!(Read((&((v__)->allowAltSvc())), msg__, iter__)))) {
7440 0 : FatalError("Error deserializing 'allowAltSvc' (bool) member of 'HttpChannelOpenArgs'");
7441 0 : return false;
7442 : }
7443 : // Sentinel = 'allowAltSvc'
7444 3 : if ((!((msg__)->ReadSentinel(iter__, 879875677)))) {
7445 0 : mozilla::ipc::SentinelReadError("Error deserializing 'allowAltSvc' (bool) member of 'HttpChannelOpenArgs'");
7446 0 : return false;
7447 : }
7448 3 : if ((!(Read((&((v__)->beConservative())), msg__, iter__)))) {
7449 0 : FatalError("Error deserializing 'beConservative' (bool) member of 'HttpChannelOpenArgs'");
7450 0 : return false;
7451 : }
7452 : // Sentinel = 'beConservative'
7453 3 : if ((!((msg__)->ReadSentinel(iter__, 1177063294)))) {
7454 0 : mozilla::ipc::SentinelReadError("Error deserializing 'beConservative' (bool) member of 'HttpChannelOpenArgs'");
7455 0 : return false;
7456 : }
7457 3 : if ((!(Read((&((v__)->loadInfo())), msg__, iter__)))) {
7458 0 : FatalError("Error deserializing 'loadInfo' (OptionalLoadInfoArgs) member of 'HttpChannelOpenArgs'");
7459 0 : return false;
7460 : }
7461 : // Sentinel = 'loadInfo'
7462 3 : if ((!((msg__)->ReadSentinel(iter__, 2597515304)))) {
7463 0 : mozilla::ipc::SentinelReadError("Error deserializing 'loadInfo' (OptionalLoadInfoArgs) member of 'HttpChannelOpenArgs'");
7464 0 : return false;
7465 : }
7466 3 : if ((!(Read((&((v__)->synthesizedResponseHead())), msg__, iter__)))) {
7467 0 : FatalError("Error deserializing 'synthesizedResponseHead' (OptionalHttpResponseHead) member of 'HttpChannelOpenArgs'");
7468 0 : return false;
7469 : }
7470 : // Sentinel = 'synthesizedResponseHead'
7471 3 : if ((!((msg__)->ReadSentinel(iter__, 588784596)))) {
7472 0 : mozilla::ipc::SentinelReadError("Error deserializing 'synthesizedResponseHead' (OptionalHttpResponseHead) member of 'HttpChannelOpenArgs'");
7473 0 : return false;
7474 : }
7475 3 : if ((!(Read((&((v__)->synthesizedSecurityInfoSerialization())), msg__, iter__)))) {
7476 0 : FatalError("Error deserializing 'synthesizedSecurityInfoSerialization' (nsCString) member of 'HttpChannelOpenArgs'");
7477 0 : return false;
7478 : }
7479 : // Sentinel = 'synthesizedSecurityInfoSerialization'
7480 3 : if ((!((msg__)->ReadSentinel(iter__, 2702766326)))) {
7481 0 : mozilla::ipc::SentinelReadError("Error deserializing 'synthesizedSecurityInfoSerialization' (nsCString) member of 'HttpChannelOpenArgs'");
7482 0 : return false;
7483 : }
7484 3 : if ((!(Read((&((v__)->cacheKey())), msg__, iter__)))) {
7485 0 : FatalError("Error deserializing 'cacheKey' (uint32_t) member of 'HttpChannelOpenArgs'");
7486 0 : return false;
7487 : }
7488 : // Sentinel = 'cacheKey'
7489 3 : if ((!((msg__)->ReadSentinel(iter__, 249191363)))) {
7490 0 : mozilla::ipc::SentinelReadError("Error deserializing 'cacheKey' (uint32_t) member of 'HttpChannelOpenArgs'");
7491 0 : return false;
7492 : }
7493 3 : if ((!(Read((&((v__)->requestContextID())), msg__, iter__)))) {
7494 0 : FatalError("Error deserializing 'requestContextID' (uint64_t) member of 'HttpChannelOpenArgs'");
7495 0 : return false;
7496 : }
7497 : // Sentinel = 'requestContextID'
7498 3 : if ((!((msg__)->ReadSentinel(iter__, 2427410503)))) {
7499 0 : mozilla::ipc::SentinelReadError("Error deserializing 'requestContextID' (uint64_t) member of 'HttpChannelOpenArgs'");
7500 0 : return false;
7501 : }
7502 3 : if ((!(Read((&((v__)->preflightArgs())), msg__, iter__)))) {
7503 0 : FatalError("Error deserializing 'preflightArgs' (OptionalCorsPreflightArgs) member of 'HttpChannelOpenArgs'");
7504 0 : return false;
7505 : }
7506 : // Sentinel = 'preflightArgs'
7507 3 : if ((!((msg__)->ReadSentinel(iter__, 2363616251)))) {
7508 0 : mozilla::ipc::SentinelReadError("Error deserializing 'preflightArgs' (OptionalCorsPreflightArgs) member of 'HttpChannelOpenArgs'");
7509 0 : return false;
7510 : }
7511 3 : if ((!(Read((&((v__)->initialRwin())), msg__, iter__)))) {
7512 0 : FatalError("Error deserializing 'initialRwin' (uint32_t) member of 'HttpChannelOpenArgs'");
7513 0 : return false;
7514 : }
7515 : // Sentinel = 'initialRwin'
7516 3 : if ((!((msg__)->ReadSentinel(iter__, 967782407)))) {
7517 0 : mozilla::ipc::SentinelReadError("Error deserializing 'initialRwin' (uint32_t) member of 'HttpChannelOpenArgs'");
7518 0 : return false;
7519 : }
7520 3 : if ((!(Read((&((v__)->blockAuthPrompt())), msg__, iter__)))) {
7521 0 : FatalError("Error deserializing 'blockAuthPrompt' (bool) member of 'HttpChannelOpenArgs'");
7522 0 : return false;
7523 : }
7524 : // Sentinel = 'blockAuthPrompt'
7525 3 : if ((!((msg__)->ReadSentinel(iter__, 1543637500)))) {
7526 0 : mozilla::ipc::SentinelReadError("Error deserializing 'blockAuthPrompt' (bool) member of 'HttpChannelOpenArgs'");
7527 0 : return false;
7528 : }
7529 3 : if ((!(Read((&((v__)->suspendAfterSynthesizeResponse())), msg__, iter__)))) {
7530 0 : FatalError("Error deserializing 'suspendAfterSynthesizeResponse' (bool) member of 'HttpChannelOpenArgs'");
7531 0 : return false;
7532 : }
7533 : // Sentinel = 'suspendAfterSynthesizeResponse'
7534 3 : if ((!((msg__)->ReadSentinel(iter__, 656622613)))) {
7535 0 : mozilla::ipc::SentinelReadError("Error deserializing 'suspendAfterSynthesizeResponse' (bool) member of 'HttpChannelOpenArgs'");
7536 0 : return false;
7537 : }
7538 3 : if ((!(Read((&((v__)->allowStaleCacheContent())), msg__, iter__)))) {
7539 0 : FatalError("Error deserializing 'allowStaleCacheContent' (bool) member of 'HttpChannelOpenArgs'");
7540 0 : return false;
7541 : }
7542 : // Sentinel = 'allowStaleCacheContent'
7543 3 : if ((!((msg__)->ReadSentinel(iter__, 3064959537)))) {
7544 0 : mozilla::ipc::SentinelReadError("Error deserializing 'allowStaleCacheContent' (bool) member of 'HttpChannelOpenArgs'");
7545 0 : return false;
7546 : }
7547 3 : if ((!(Read((&((v__)->contentTypeHint())), msg__, iter__)))) {
7548 0 : FatalError("Error deserializing 'contentTypeHint' (nsCString) member of 'HttpChannelOpenArgs'");
7549 0 : return false;
7550 : }
7551 : // Sentinel = 'contentTypeHint'
7552 3 : if ((!((msg__)->ReadSentinel(iter__, 2155295759)))) {
7553 0 : mozilla::ipc::SentinelReadError("Error deserializing 'contentTypeHint' (nsCString) member of 'HttpChannelOpenArgs'");
7554 0 : return false;
7555 : }
7556 3 : if ((!(Read((&((v__)->channelId())), msg__, iter__)))) {
7557 0 : FatalError("Error deserializing 'channelId' (uint64_t) member of 'HttpChannelOpenArgs'");
7558 0 : return false;
7559 : }
7560 : // Sentinel = 'channelId'
7561 3 : if ((!((msg__)->ReadSentinel(iter__, 6854027)))) {
7562 0 : mozilla::ipc::SentinelReadError("Error deserializing 'channelId' (uint64_t) member of 'HttpChannelOpenArgs'");
7563 0 : return false;
7564 : }
7565 3 : if ((!(Read((&((v__)->contentWindowId())), msg__, iter__)))) {
7566 0 : FatalError("Error deserializing 'contentWindowId' (uint64_t) member of 'HttpChannelOpenArgs'");
7567 0 : return false;
7568 : }
7569 : // Sentinel = 'contentWindowId'
7570 3 : if ((!((msg__)->ReadSentinel(iter__, 2188138839)))) {
7571 0 : mozilla::ipc::SentinelReadError("Error deserializing 'contentWindowId' (uint64_t) member of 'HttpChannelOpenArgs'");
7572 0 : return false;
7573 : }
7574 3 : if ((!(Read((&((v__)->preferredAlternativeType())), msg__, iter__)))) {
7575 0 : FatalError("Error deserializing 'preferredAlternativeType' (nsCString) member of 'HttpChannelOpenArgs'");
7576 0 : return false;
7577 : }
7578 : // Sentinel = 'preferredAlternativeType'
7579 3 : if ((!((msg__)->ReadSentinel(iter__, 1019174360)))) {
7580 0 : mozilla::ipc::SentinelReadError("Error deserializing 'preferredAlternativeType' (nsCString) member of 'HttpChannelOpenArgs'");
7581 0 : return false;
7582 : }
7583 3 : if ((!(Read((&((v__)->topLevelOuterContentWindowId())), msg__, iter__)))) {
7584 0 : FatalError("Error deserializing 'topLevelOuterContentWindowId' (uint64_t) member of 'HttpChannelOpenArgs'");
7585 0 : return false;
7586 : }
7587 : // Sentinel = 'topLevelOuterContentWindowId'
7588 3 : if ((!((msg__)->ReadSentinel(iter__, 810319786)))) {
7589 0 : mozilla::ipc::SentinelReadError("Error deserializing 'topLevelOuterContentWindowId' (uint64_t) member of 'HttpChannelOpenArgs'");
7590 0 : return false;
7591 : }
7592 3 : if ((!(Read((&((v__)->launchServiceWorkerStart())), msg__, iter__)))) {
7593 0 : FatalError("Error deserializing 'launchServiceWorkerStart' (TimeStamp) member of 'HttpChannelOpenArgs'");
7594 0 : return false;
7595 : }
7596 : // Sentinel = 'launchServiceWorkerStart'
7597 3 : if ((!((msg__)->ReadSentinel(iter__, 1191023364)))) {
7598 0 : mozilla::ipc::SentinelReadError("Error deserializing 'launchServiceWorkerStart' (TimeStamp) member of 'HttpChannelOpenArgs'");
7599 0 : return false;
7600 : }
7601 3 : if ((!(Read((&((v__)->launchServiceWorkerEnd())), msg__, iter__)))) {
7602 0 : FatalError("Error deserializing 'launchServiceWorkerEnd' (TimeStamp) member of 'HttpChannelOpenArgs'");
7603 0 : return false;
7604 : }
7605 : // Sentinel = 'launchServiceWorkerEnd'
7606 3 : if ((!((msg__)->ReadSentinel(iter__, 2236809033)))) {
7607 0 : mozilla::ipc::SentinelReadError("Error deserializing 'launchServiceWorkerEnd' (TimeStamp) member of 'HttpChannelOpenArgs'");
7608 0 : return false;
7609 : }
7610 3 : if ((!(Read((&((v__)->dispatchFetchEventStart())), msg__, iter__)))) {
7611 0 : FatalError("Error deserializing 'dispatchFetchEventStart' (TimeStamp) member of 'HttpChannelOpenArgs'");
7612 0 : return false;
7613 : }
7614 : // Sentinel = 'dispatchFetchEventStart'
7615 3 : if ((!((msg__)->ReadSentinel(iter__, 2132895785)))) {
7616 0 : mozilla::ipc::SentinelReadError("Error deserializing 'dispatchFetchEventStart' (TimeStamp) member of 'HttpChannelOpenArgs'");
7617 0 : return false;
7618 : }
7619 3 : if ((!(Read((&((v__)->dispatchFetchEventEnd())), msg__, iter__)))) {
7620 0 : FatalError("Error deserializing 'dispatchFetchEventEnd' (TimeStamp) member of 'HttpChannelOpenArgs'");
7621 0 : return false;
7622 : }
7623 : // Sentinel = 'dispatchFetchEventEnd'
7624 3 : if ((!((msg__)->ReadSentinel(iter__, 256182528)))) {
7625 0 : mozilla::ipc::SentinelReadError("Error deserializing 'dispatchFetchEventEnd' (TimeStamp) member of 'HttpChannelOpenArgs'");
7626 0 : return false;
7627 : }
7628 3 : if ((!(Read((&((v__)->handleFetchEventStart())), msg__, iter__)))) {
7629 0 : FatalError("Error deserializing 'handleFetchEventStart' (TimeStamp) member of 'HttpChannelOpenArgs'");
7630 0 : return false;
7631 : }
7632 : // Sentinel = 'handleFetchEventStart'
7633 3 : if ((!((msg__)->ReadSentinel(iter__, 3840539911)))) {
7634 0 : mozilla::ipc::SentinelReadError("Error deserializing 'handleFetchEventStart' (TimeStamp) member of 'HttpChannelOpenArgs'");
7635 0 : return false;
7636 : }
7637 3 : if ((!(Read((&((v__)->handleFetchEventEnd())), msg__, iter__)))) {
7638 0 : FatalError("Error deserializing 'handleFetchEventEnd' (TimeStamp) member of 'HttpChannelOpenArgs'");
7639 0 : return false;
7640 : }
7641 : // Sentinel = 'handleFetchEventEnd'
7642 3 : if ((!((msg__)->ReadSentinel(iter__, 2420571602)))) {
7643 0 : mozilla::ipc::SentinelReadError("Error deserializing 'handleFetchEventEnd' (TimeStamp) member of 'HttpChannelOpenArgs'");
7644 0 : return false;
7645 : }
7646 3 : return true;
7647 : }
7648 :
7649 0 : auto PNeckoParent::Write(
7650 : const PWebSocketEventListenerParent* v__,
7651 : Message* msg__,
7652 : bool nullable__) -> void
7653 : {
7654 : int32_t id;
7655 0 : if ((!(v__))) {
7656 0 : if ((!(nullable__))) {
7657 0 : FatalError("NULL actor value passed to non-nullable param");
7658 : }
7659 0 : id = 0;
7660 : }
7661 : else {
7662 0 : id = (v__)->Id();
7663 0 : if ((1) == (id)) {
7664 0 : FatalError("actor has been |delete|d");
7665 : }
7666 : }
7667 :
7668 0 : Write(id, msg__);
7669 0 : }
7670 :
7671 0 : auto PNeckoParent::Read(
7672 : PWebSocketEventListenerParent** v__,
7673 : const Message* msg__,
7674 : PickleIterator* iter__,
7675 : bool nullable__) -> bool
7676 : {
7677 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PWebSocketEventListener", PWebSocketEventListenerMsgStart);
7678 0 : if ((actor).isNothing()) {
7679 0 : return false;
7680 : }
7681 :
7682 0 : (*(v__)) = static_cast<PWebSocketEventListenerParent*>((actor).value());
7683 0 : return true;
7684 : }
7685 :
7686 0 : auto PNeckoParent::Write(
7687 : const ChannelDiverterArgs& v__,
7688 : Message* msg__) -> void
7689 : {
7690 : typedef ChannelDiverterArgs type__;
7691 0 : Write(int((v__).type()), msg__);
7692 : // Sentinel = 'ChannelDiverterArgs'
7693 0 : (msg__)->WriteSentinel(2207945912);
7694 :
7695 0 : switch ((v__).type()) {
7696 : case type__::THttpChannelDiverterArgs:
7697 : {
7698 0 : Write((v__).get_HttpChannelDiverterArgs(), msg__);
7699 : // Sentinel = 'THttpChannelDiverterArgs'
7700 0 : (msg__)->WriteSentinel(1911457823);
7701 0 : return;
7702 : }
7703 : case type__::TPFTPChannelParent:
7704 : {
7705 0 : Write((v__).get_PFTPChannelParent(), msg__, false);
7706 : // Sentinel = 'TPFTPChannelParent'
7707 0 : (msg__)->WriteSentinel(694358909);
7708 0 : return;
7709 : }
7710 : case type__::TPFTPChannelChild:
7711 : {
7712 0 : FatalError("wrong side!");
7713 0 : return;
7714 : }
7715 : default:
7716 : {
7717 0 : FatalError("unknown union type");
7718 0 : return;
7719 : }
7720 : }
7721 : }
7722 :
7723 0 : auto PNeckoParent::Read(
7724 : ChannelDiverterArgs* v__,
7725 : const Message* msg__,
7726 : PickleIterator* iter__) -> bool
7727 : {
7728 : typedef ChannelDiverterArgs type__;
7729 : int type;
7730 0 : if ((!(Read((&(type)), msg__, iter__)))) {
7731 0 : mozilla::ipc::UnionTypeReadError("ChannelDiverterArgs");
7732 0 : return false;
7733 : }
7734 : // Sentinel = 'ChannelDiverterArgs'
7735 0 : if ((!((msg__)->ReadSentinel(iter__, 2207945912)))) {
7736 0 : mozilla::ipc::SentinelReadError("ChannelDiverterArgs");
7737 0 : return false;
7738 : }
7739 :
7740 0 : switch (type) {
7741 : case type__::THttpChannelDiverterArgs:
7742 : {
7743 0 : HttpChannelDiverterArgs tmp = HttpChannelDiverterArgs();
7744 0 : (*(v__)) = tmp;
7745 0 : if ((!(Read((&((v__)->get_HttpChannelDiverterArgs())), msg__, iter__)))) {
7746 0 : FatalError("Error deserializing Union type");
7747 0 : return false;
7748 : }
7749 : // Sentinel = 'THttpChannelDiverterArgs'
7750 0 : if ((!((msg__)->ReadSentinel(iter__, 1911457823)))) {
7751 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
7752 0 : return false;
7753 : }
7754 0 : return true;
7755 : }
7756 : case type__::TPFTPChannelParent:
7757 : {
7758 0 : return false;
7759 : }
7760 : case type__::TPFTPChannelChild:
7761 : {
7762 0 : PFTPChannelParent* tmp = nullptr;
7763 0 : (*(v__)) = tmp;
7764 0 : if ((!(Read((&((v__)->get_PFTPChannelParent())), msg__, iter__, false)))) {
7765 0 : FatalError("Error deserializing Union type");
7766 0 : return false;
7767 : }
7768 : // Sentinel = 'TPFTPChannelChild'
7769 0 : if ((!((msg__)->ReadSentinel(iter__, 889018702)))) {
7770 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
7771 0 : return false;
7772 : }
7773 0 : return true;
7774 : }
7775 : default:
7776 : {
7777 0 : FatalError("unknown union type");
7778 0 : return false;
7779 : }
7780 : }
7781 : }
7782 :
7783 0 : auto PNeckoParent::Write(
7784 : const PRtspChannelParent* v__,
7785 : Message* msg__,
7786 : bool nullable__) -> void
7787 : {
7788 : int32_t id;
7789 0 : if ((!(v__))) {
7790 0 : if ((!(nullable__))) {
7791 0 : FatalError("NULL actor value passed to non-nullable param");
7792 : }
7793 0 : id = 0;
7794 : }
7795 : else {
7796 0 : id = (v__)->Id();
7797 0 : if ((1) == (id)) {
7798 0 : FatalError("actor has been |delete|d");
7799 : }
7800 : }
7801 :
7802 0 : Write(id, msg__);
7803 0 : }
7804 :
7805 0 : auto PNeckoParent::Read(
7806 : PRtspChannelParent** v__,
7807 : const Message* msg__,
7808 : PickleIterator* iter__,
7809 : bool nullable__) -> bool
7810 : {
7811 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PRtspChannel", PRtspChannelMsgStart);
7812 0 : if ((actor).isNothing()) {
7813 0 : return false;
7814 : }
7815 :
7816 0 : (*(v__)) = static_cast<PRtspChannelParent*>((actor).value());
7817 0 : return true;
7818 : }
7819 :
7820 0 : auto PNeckoParent::Write(
7821 : const PChannelDiverterParent* v__,
7822 : Message* msg__,
7823 : bool nullable__) -> void
7824 : {
7825 : int32_t id;
7826 0 : if ((!(v__))) {
7827 0 : if ((!(nullable__))) {
7828 0 : FatalError("NULL actor value passed to non-nullable param");
7829 : }
7830 0 : id = 0;
7831 : }
7832 : else {
7833 0 : id = (v__)->Id();
7834 0 : if ((1) == (id)) {
7835 0 : FatalError("actor has been |delete|d");
7836 : }
7837 : }
7838 :
7839 0 : Write(id, msg__);
7840 0 : }
7841 :
7842 0 : auto PNeckoParent::Read(
7843 : PChannelDiverterParent** v__,
7844 : const Message* msg__,
7845 : PickleIterator* iter__,
7846 : bool nullable__) -> bool
7847 : {
7848 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PChannelDiverter", PChannelDiverterMsgStart);
7849 0 : if ((actor).isNothing()) {
7850 0 : return false;
7851 : }
7852 :
7853 0 : (*(v__)) = static_cast<PChannelDiverterParent*>((actor).value());
7854 0 : return true;
7855 : }
7856 :
7857 0 : auto PNeckoParent::Write(
7858 : const OptionalFileDescriptorSet& v__,
7859 : Message* msg__) -> void
7860 : {
7861 : typedef OptionalFileDescriptorSet type__;
7862 0 : Write(int((v__).type()), msg__);
7863 : // Sentinel = 'OptionalFileDescriptorSet'
7864 0 : (msg__)->WriteSentinel(955222862);
7865 :
7866 0 : switch ((v__).type()) {
7867 : case type__::TPFileDescriptorSetParent:
7868 : {
7869 0 : Write((v__).get_PFileDescriptorSetParent(), msg__, false);
7870 : // Sentinel = 'TPFileDescriptorSetParent'
7871 0 : (msg__)->WriteSentinel(143041934);
7872 0 : return;
7873 : }
7874 : case type__::TPFileDescriptorSetChild:
7875 : {
7876 0 : FatalError("wrong side!");
7877 0 : return;
7878 : }
7879 : case type__::TArrayOfFileDescriptor:
7880 : {
7881 0 : Write((v__).get_ArrayOfFileDescriptor(), msg__);
7882 : // Sentinel = 'TArrayOfFileDescriptor'
7883 0 : (msg__)->WriteSentinel(2366096715);
7884 0 : return;
7885 : }
7886 : case type__::Tvoid_t:
7887 : {
7888 0 : Write((v__).get_void_t(), msg__);
7889 : // Sentinel = 'Tvoid_t'
7890 0 : (msg__)->WriteSentinel(3041273328);
7891 0 : return;
7892 : }
7893 : default:
7894 : {
7895 0 : FatalError("unknown union type");
7896 0 : return;
7897 : }
7898 : }
7899 : }
7900 :
7901 0 : auto PNeckoParent::Read(
7902 : OptionalFileDescriptorSet* v__,
7903 : const Message* msg__,
7904 : PickleIterator* iter__) -> bool
7905 : {
7906 : typedef OptionalFileDescriptorSet type__;
7907 : int type;
7908 0 : if ((!(Read((&(type)), msg__, iter__)))) {
7909 0 : mozilla::ipc::UnionTypeReadError("OptionalFileDescriptorSet");
7910 0 : return false;
7911 : }
7912 : // Sentinel = 'OptionalFileDescriptorSet'
7913 0 : if ((!((msg__)->ReadSentinel(iter__, 955222862)))) {
7914 0 : mozilla::ipc::SentinelReadError("OptionalFileDescriptorSet");
7915 0 : return false;
7916 : }
7917 :
7918 0 : switch (type) {
7919 : case type__::TPFileDescriptorSetParent:
7920 : {
7921 0 : return false;
7922 : }
7923 : case type__::TPFileDescriptorSetChild:
7924 : {
7925 0 : PFileDescriptorSetParent* tmp = nullptr;
7926 0 : (*(v__)) = tmp;
7927 0 : if ((!(Read((&((v__)->get_PFileDescriptorSetParent())), msg__, iter__, false)))) {
7928 0 : FatalError("Error deserializing Union type");
7929 0 : return false;
7930 : }
7931 : // Sentinel = 'TPFileDescriptorSetChild'
7932 0 : if ((!((msg__)->ReadSentinel(iter__, 3477929935)))) {
7933 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
7934 0 : return false;
7935 : }
7936 0 : return true;
7937 : }
7938 : case type__::TArrayOfFileDescriptor:
7939 : {
7940 0 : nsTArray<FileDescriptor> tmp;
7941 0 : (*(v__)) = tmp;
7942 0 : if ((!(Read((&((v__)->get_ArrayOfFileDescriptor())), msg__, iter__)))) {
7943 0 : FatalError("Error deserializing Union type");
7944 0 : return false;
7945 : }
7946 : // Sentinel = 'TArrayOfFileDescriptor'
7947 0 : if ((!((msg__)->ReadSentinel(iter__, 2366096715)))) {
7948 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
7949 0 : return false;
7950 : }
7951 0 : return true;
7952 : }
7953 : case type__::Tvoid_t:
7954 : {
7955 : void_t tmp = void_t();
7956 0 : (*(v__)) = tmp;
7957 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
7958 0 : FatalError("Error deserializing Union type");
7959 0 : return false;
7960 : }
7961 : // Sentinel = 'Tvoid_t'
7962 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
7963 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
7964 0 : return false;
7965 : }
7966 0 : return true;
7967 : }
7968 : default:
7969 : {
7970 0 : FatalError("unknown union type");
7971 0 : return false;
7972 : }
7973 : }
7974 : }
7975 :
7976 0 : auto PNeckoParent::Write(
7977 : const InputStreamParams& v__,
7978 : Message* msg__) -> void
7979 : {
7980 : typedef InputStreamParams type__;
7981 0 : Write(int((v__).type()), msg__);
7982 : // Sentinel = 'InputStreamParams'
7983 0 : (msg__)->WriteSentinel(4114814015);
7984 :
7985 0 : switch ((v__).type()) {
7986 : case type__::TStringInputStreamParams:
7987 : {
7988 0 : Write((v__).get_StringInputStreamParams(), msg__);
7989 : // Sentinel = 'TStringInputStreamParams'
7990 0 : (msg__)->WriteSentinel(3395831651);
7991 0 : return;
7992 : }
7993 : case type__::TFileInputStreamParams:
7994 : {
7995 0 : Write((v__).get_FileInputStreamParams(), msg__);
7996 : // Sentinel = 'TFileInputStreamParams'
7997 0 : (msg__)->WriteSentinel(2543620282);
7998 0 : return;
7999 : }
8000 : case type__::TTemporaryFileInputStreamParams:
8001 : {
8002 0 : Write((v__).get_TemporaryFileInputStreamParams(), msg__);
8003 : // Sentinel = 'TTemporaryFileInputStreamParams'
8004 0 : (msg__)->WriteSentinel(587771548);
8005 0 : return;
8006 : }
8007 : case type__::TBufferedInputStreamParams:
8008 : {
8009 0 : Write((v__).get_BufferedInputStreamParams(), msg__);
8010 : // Sentinel = 'TBufferedInputStreamParams'
8011 0 : (msg__)->WriteSentinel(1698289307);
8012 0 : return;
8013 : }
8014 : case type__::TMIMEInputStreamParams:
8015 : {
8016 0 : Write((v__).get_MIMEInputStreamParams(), msg__);
8017 : // Sentinel = 'TMIMEInputStreamParams'
8018 0 : (msg__)->WriteSentinel(1948001964);
8019 0 : return;
8020 : }
8021 : case type__::TMultiplexInputStreamParams:
8022 : {
8023 0 : Write((v__).get_MultiplexInputStreamParams(), msg__);
8024 : // Sentinel = 'TMultiplexInputStreamParams'
8025 0 : (msg__)->WriteSentinel(3317853213);
8026 0 : return;
8027 : }
8028 : case type__::TSlicedInputStreamParams:
8029 : {
8030 0 : Write((v__).get_SlicedInputStreamParams(), msg__);
8031 : // Sentinel = 'TSlicedInputStreamParams'
8032 0 : (msg__)->WriteSentinel(445810472);
8033 0 : return;
8034 : }
8035 : case type__::TIPCBlobInputStreamParams:
8036 : {
8037 0 : Write((v__).get_IPCBlobInputStreamParams(), msg__);
8038 : // Sentinel = 'TIPCBlobInputStreamParams'
8039 0 : (msg__)->WriteSentinel(2436989998);
8040 0 : return;
8041 : }
8042 : default:
8043 : {
8044 0 : FatalError("unknown union type");
8045 0 : return;
8046 : }
8047 : }
8048 : }
8049 :
8050 0 : auto PNeckoParent::Read(
8051 : InputStreamParams* v__,
8052 : const Message* msg__,
8053 : PickleIterator* iter__) -> bool
8054 : {
8055 : typedef InputStreamParams type__;
8056 : int type;
8057 0 : if ((!(Read((&(type)), msg__, iter__)))) {
8058 0 : mozilla::ipc::UnionTypeReadError("InputStreamParams");
8059 0 : return false;
8060 : }
8061 : // Sentinel = 'InputStreamParams'
8062 0 : if ((!((msg__)->ReadSentinel(iter__, 4114814015)))) {
8063 0 : mozilla::ipc::SentinelReadError("InputStreamParams");
8064 0 : return false;
8065 : }
8066 :
8067 0 : switch (type) {
8068 : case type__::TStringInputStreamParams:
8069 : {
8070 0 : StringInputStreamParams tmp = StringInputStreamParams();
8071 0 : (*(v__)) = tmp;
8072 0 : if ((!(Read((&((v__)->get_StringInputStreamParams())), msg__, iter__)))) {
8073 0 : FatalError("Error deserializing Union type");
8074 0 : return false;
8075 : }
8076 : // Sentinel = 'TStringInputStreamParams'
8077 0 : if ((!((msg__)->ReadSentinel(iter__, 3395831651)))) {
8078 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
8079 0 : return false;
8080 : }
8081 0 : return true;
8082 : }
8083 : case type__::TFileInputStreamParams:
8084 : {
8085 0 : FileInputStreamParams tmp = FileInputStreamParams();
8086 0 : (*(v__)) = tmp;
8087 0 : if ((!(Read((&((v__)->get_FileInputStreamParams())), msg__, iter__)))) {
8088 0 : FatalError("Error deserializing Union type");
8089 0 : return false;
8090 : }
8091 : // Sentinel = 'TFileInputStreamParams'
8092 0 : if ((!((msg__)->ReadSentinel(iter__, 2543620282)))) {
8093 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
8094 0 : return false;
8095 : }
8096 0 : return true;
8097 : }
8098 : case type__::TTemporaryFileInputStreamParams:
8099 : {
8100 0 : TemporaryFileInputStreamParams tmp = TemporaryFileInputStreamParams();
8101 0 : (*(v__)) = tmp;
8102 0 : if ((!(Read((&((v__)->get_TemporaryFileInputStreamParams())), msg__, iter__)))) {
8103 0 : FatalError("Error deserializing Union type");
8104 0 : return false;
8105 : }
8106 : // Sentinel = 'TTemporaryFileInputStreamParams'
8107 0 : if ((!((msg__)->ReadSentinel(iter__, 587771548)))) {
8108 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
8109 0 : return false;
8110 : }
8111 0 : return true;
8112 : }
8113 : case type__::TBufferedInputStreamParams:
8114 : {
8115 0 : BufferedInputStreamParams tmp = BufferedInputStreamParams();
8116 0 : (*(v__)) = tmp;
8117 0 : if ((!(Read((&((v__)->get_BufferedInputStreamParams())), msg__, iter__)))) {
8118 0 : FatalError("Error deserializing Union type");
8119 0 : return false;
8120 : }
8121 : // Sentinel = 'TBufferedInputStreamParams'
8122 0 : if ((!((msg__)->ReadSentinel(iter__, 1698289307)))) {
8123 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
8124 0 : return false;
8125 : }
8126 0 : return true;
8127 : }
8128 : case type__::TMIMEInputStreamParams:
8129 : {
8130 0 : MIMEInputStreamParams tmp = MIMEInputStreamParams();
8131 0 : (*(v__)) = tmp;
8132 0 : if ((!(Read((&((v__)->get_MIMEInputStreamParams())), msg__, iter__)))) {
8133 0 : FatalError("Error deserializing Union type");
8134 0 : return false;
8135 : }
8136 : // Sentinel = 'TMIMEInputStreamParams'
8137 0 : if ((!((msg__)->ReadSentinel(iter__, 1948001964)))) {
8138 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
8139 0 : return false;
8140 : }
8141 0 : return true;
8142 : }
8143 : case type__::TMultiplexInputStreamParams:
8144 : {
8145 0 : MultiplexInputStreamParams tmp = MultiplexInputStreamParams();
8146 0 : (*(v__)) = tmp;
8147 0 : if ((!(Read((&((v__)->get_MultiplexInputStreamParams())), msg__, iter__)))) {
8148 0 : FatalError("Error deserializing Union type");
8149 0 : return false;
8150 : }
8151 : // Sentinel = 'TMultiplexInputStreamParams'
8152 0 : if ((!((msg__)->ReadSentinel(iter__, 3317853213)))) {
8153 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
8154 0 : return false;
8155 : }
8156 0 : return true;
8157 : }
8158 : case type__::TSlicedInputStreamParams:
8159 : {
8160 0 : SlicedInputStreamParams tmp = SlicedInputStreamParams();
8161 0 : (*(v__)) = tmp;
8162 0 : if ((!(Read((&((v__)->get_SlicedInputStreamParams())), msg__, iter__)))) {
8163 0 : FatalError("Error deserializing Union type");
8164 0 : return false;
8165 : }
8166 : // Sentinel = 'TSlicedInputStreamParams'
8167 0 : if ((!((msg__)->ReadSentinel(iter__, 445810472)))) {
8168 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
8169 0 : return false;
8170 : }
8171 0 : return true;
8172 : }
8173 : case type__::TIPCBlobInputStreamParams:
8174 : {
8175 0 : IPCBlobInputStreamParams tmp = IPCBlobInputStreamParams();
8176 0 : (*(v__)) = tmp;
8177 0 : if ((!(Read((&((v__)->get_IPCBlobInputStreamParams())), msg__, iter__)))) {
8178 0 : FatalError("Error deserializing Union type");
8179 0 : return false;
8180 : }
8181 : // Sentinel = 'TIPCBlobInputStreamParams'
8182 0 : if ((!((msg__)->ReadSentinel(iter__, 2436989998)))) {
8183 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
8184 0 : return false;
8185 : }
8186 0 : return true;
8187 : }
8188 : default:
8189 : {
8190 0 : FatalError("unknown union type");
8191 0 : return false;
8192 : }
8193 : }
8194 : }
8195 :
8196 0 : auto PNeckoParent::Write(
8197 : const JSURIParams& v__,
8198 : Message* msg__) -> void
8199 : {
8200 0 : Write((v__).simpleParams(), msg__);
8201 : // Sentinel = 'simpleParams'
8202 0 : (msg__)->WriteSentinel(3404291700);
8203 0 : Write((v__).baseURI(), msg__);
8204 : // Sentinel = 'baseURI'
8205 0 : (msg__)->WriteSentinel(1836705256);
8206 0 : }
8207 :
8208 0 : auto PNeckoParent::Read(
8209 : JSURIParams* v__,
8210 : const Message* msg__,
8211 : PickleIterator* iter__) -> bool
8212 : {
8213 0 : if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
8214 0 : FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'JSURIParams'");
8215 0 : return false;
8216 : }
8217 : // Sentinel = 'simpleParams'
8218 0 : if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
8219 0 : mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'JSURIParams'");
8220 0 : return false;
8221 : }
8222 0 : if ((!(Read((&((v__)->baseURI())), msg__, iter__)))) {
8223 0 : FatalError("Error deserializing 'baseURI' (OptionalURIParams) member of 'JSURIParams'");
8224 0 : return false;
8225 : }
8226 : // Sentinel = 'baseURI'
8227 0 : if ((!((msg__)->ReadSentinel(iter__, 1836705256)))) {
8228 0 : mozilla::ipc::SentinelReadError("Error deserializing 'baseURI' (OptionalURIParams) member of 'JSURIParams'");
8229 0 : return false;
8230 : }
8231 0 : return true;
8232 : }
8233 :
8234 0 : auto PNeckoParent::Write(
8235 : const NullPrincipalInfo& v__,
8236 : Message* msg__) -> void
8237 : {
8238 0 : Write((v__).attrs(), msg__);
8239 : // Sentinel = 'attrs'
8240 0 : (msg__)->WriteSentinel(3014987797);
8241 0 : Write((v__).spec(), msg__);
8242 : // Sentinel = 'spec'
8243 0 : (msg__)->WriteSentinel(1630740541);
8244 0 : }
8245 :
8246 0 : auto PNeckoParent::Read(
8247 : NullPrincipalInfo* v__,
8248 : const Message* msg__,
8249 : PickleIterator* iter__) -> bool
8250 : {
8251 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
8252 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
8253 0 : return false;
8254 : }
8255 : // Sentinel = 'attrs'
8256 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
8257 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
8258 0 : return false;
8259 : }
8260 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
8261 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
8262 0 : return false;
8263 : }
8264 : // Sentinel = 'spec'
8265 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
8266 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
8267 0 : return false;
8268 : }
8269 0 : return true;
8270 : }
8271 :
8272 0 : auto PNeckoParent::Write(
8273 : const StandardURLSegment& v__,
8274 : Message* msg__) -> void
8275 : {
8276 0 : Write((v__).position(), msg__);
8277 : // Sentinel = 'position'
8278 0 : (msg__)->WriteSentinel(50847225);
8279 0 : Write((v__).length(), msg__);
8280 : // Sentinel = 'length'
8281 0 : (msg__)->WriteSentinel(1726618354);
8282 0 : }
8283 :
8284 204 : auto PNeckoParent::Read(
8285 : StandardURLSegment* v__,
8286 : const Message* msg__,
8287 : PickleIterator* iter__) -> bool
8288 : {
8289 204 : if ((!(Read((&((v__)->position())), msg__, iter__)))) {
8290 0 : FatalError("Error deserializing 'position' (uint32_t) member of 'StandardURLSegment'");
8291 0 : return false;
8292 : }
8293 : // Sentinel = 'position'
8294 204 : if ((!((msg__)->ReadSentinel(iter__, 50847225)))) {
8295 0 : mozilla::ipc::SentinelReadError("Error deserializing 'position' (uint32_t) member of 'StandardURLSegment'");
8296 0 : return false;
8297 : }
8298 204 : if ((!(Read((&((v__)->length())), msg__, iter__)))) {
8299 0 : FatalError("Error deserializing 'length' (int32_t) member of 'StandardURLSegment'");
8300 0 : return false;
8301 : }
8302 : // Sentinel = 'length'
8303 204 : if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
8304 0 : mozilla::ipc::SentinelReadError("Error deserializing 'length' (int32_t) member of 'StandardURLSegment'");
8305 0 : return false;
8306 : }
8307 204 : return true;
8308 : }
8309 :
8310 0 : auto PNeckoParent::Write(
8311 : const RtspChannelConnectArgs& v__,
8312 : Message* msg__) -> void
8313 : {
8314 0 : Write((v__).uri(), msg__);
8315 : // Sentinel = 'uri'
8316 0 : (msg__)->WriteSentinel(1453210605);
8317 0 : Write((v__).channelId(), msg__);
8318 : // Sentinel = 'channelId'
8319 0 : (msg__)->WriteSentinel(6854027);
8320 0 : }
8321 :
8322 0 : auto PNeckoParent::Read(
8323 : RtspChannelConnectArgs* v__,
8324 : const Message* msg__,
8325 : PickleIterator* iter__) -> bool
8326 : {
8327 0 : if ((!(Read((&((v__)->uri())), msg__, iter__)))) {
8328 0 : FatalError("Error deserializing 'uri' (URIParams) member of 'RtspChannelConnectArgs'");
8329 0 : return false;
8330 : }
8331 : // Sentinel = 'uri'
8332 0 : if ((!((msg__)->ReadSentinel(iter__, 1453210605)))) {
8333 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uri' (URIParams) member of 'RtspChannelConnectArgs'");
8334 0 : return false;
8335 : }
8336 0 : if ((!(Read((&((v__)->channelId())), msg__, iter__)))) {
8337 0 : FatalError("Error deserializing 'channelId' (uint32_t) member of 'RtspChannelConnectArgs'");
8338 0 : return false;
8339 : }
8340 : // Sentinel = 'channelId'
8341 0 : if ((!((msg__)->ReadSentinel(iter__, 6854027)))) {
8342 0 : mozilla::ipc::SentinelReadError("Error deserializing 'channelId' (uint32_t) member of 'RtspChannelConnectArgs'");
8343 0 : return false;
8344 : }
8345 0 : return true;
8346 : }
8347 :
8348 0 : auto PNeckoParent::Write(
8349 : const PChildToParentStreamParent* v__,
8350 : Message* msg__,
8351 : bool nullable__) -> void
8352 : {
8353 : int32_t id;
8354 0 : if ((!(v__))) {
8355 0 : if ((!(nullable__))) {
8356 0 : FatalError("NULL actor value passed to non-nullable param");
8357 : }
8358 0 : id = 0;
8359 : }
8360 : else {
8361 0 : id = (v__)->Id();
8362 0 : if ((1) == (id)) {
8363 0 : FatalError("actor has been |delete|d");
8364 : }
8365 : }
8366 :
8367 0 : Write(id, msg__);
8368 0 : }
8369 :
8370 0 : auto PNeckoParent::Read(
8371 : PChildToParentStreamParent** v__,
8372 : const Message* msg__,
8373 : PickleIterator* iter__,
8374 : bool nullable__) -> bool
8375 : {
8376 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PChildToParentStream", PChildToParentStreamMsgStart);
8377 0 : if ((actor).isNothing()) {
8378 0 : return false;
8379 : }
8380 :
8381 0 : (*(v__)) = static_cast<PChildToParentStreamParent*>((actor).value());
8382 0 : return true;
8383 : }
8384 :
8385 0 : auto PNeckoParent::Write(
8386 : const HttpChannelConnectArgs& v__,
8387 : Message* msg__) -> void
8388 : {
8389 0 : Write((v__).registrarId(), msg__);
8390 : // Sentinel = 'registrarId'
8391 0 : (msg__)->WriteSentinel(3202787989);
8392 0 : Write((v__).shouldIntercept(), msg__);
8393 : // Sentinel = 'shouldIntercept'
8394 0 : (msg__)->WriteSentinel(2213461606);
8395 0 : }
8396 :
8397 0 : auto PNeckoParent::Read(
8398 : HttpChannelConnectArgs* v__,
8399 : const Message* msg__,
8400 : PickleIterator* iter__) -> bool
8401 : {
8402 0 : if ((!(Read((&((v__)->registrarId())), msg__, iter__)))) {
8403 0 : FatalError("Error deserializing 'registrarId' (uint32_t) member of 'HttpChannelConnectArgs'");
8404 0 : return false;
8405 : }
8406 : // Sentinel = 'registrarId'
8407 0 : if ((!((msg__)->ReadSentinel(iter__, 3202787989)))) {
8408 0 : mozilla::ipc::SentinelReadError("Error deserializing 'registrarId' (uint32_t) member of 'HttpChannelConnectArgs'");
8409 0 : return false;
8410 : }
8411 0 : if ((!(Read((&((v__)->shouldIntercept())), msg__, iter__)))) {
8412 0 : FatalError("Error deserializing 'shouldIntercept' (bool) member of 'HttpChannelConnectArgs'");
8413 0 : return false;
8414 : }
8415 : // Sentinel = 'shouldIntercept'
8416 0 : if ((!((msg__)->ReadSentinel(iter__, 2213461606)))) {
8417 0 : mozilla::ipc::SentinelReadError("Error deserializing 'shouldIntercept' (bool) member of 'HttpChannelConnectArgs'");
8418 0 : return false;
8419 : }
8420 0 : return true;
8421 : }
8422 :
8423 :
8424 :
8425 : } // namespace net
8426 : } // namespace mozilla
|