Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/dom/PContentBridgeParent.h"
8 : #include "mozilla/dom/MessagePort.h"
9 : #include "mozilla/dom/PermissionMessageUtils.h"
10 : #include "mozilla/dom/ipc/StructuredCloneData.h"
11 : #ifdef MOZ_CRASHREPORTER
12 : # include "nsXULAppAPI.h"
13 : #endif
14 :
15 : #include "mozilla/dom/PBrowserParent.h"
16 : #include "mozilla/dom/PContentParent.h"
17 : #include "mozilla/jsipc/PJavaScriptParent.h"
18 : #include "mozilla/ipc/PFileDescriptorSetParent.h"
19 : #include "mozilla/ipc/PChildToParentStreamParent.h"
20 : #include "mozilla/ipc/PParentToChildStreamParent.h"
21 : #include "mozilla/ipc/PIPCBlobInputStreamParent.h"
22 :
23 : #include "nsIFile.h"
24 : #include "GeckoProfiler.h"
25 :
26 : namespace mozilla {
27 : namespace dom {
28 :
29 :
30 0 : auto PContentBridgeParent::RecvPJavaScriptConstructor(PJavaScriptParent* actor) -> mozilla::ipc::IPCResult
31 : {
32 0 : return IPC_OK();
33 : }
34 :
35 0 : auto PContentBridgeParent::RecvPChildToParentStreamConstructor(PChildToParentStreamParent* actor) -> mozilla::ipc::IPCResult
36 : {
37 0 : return IPC_OK();
38 : }
39 :
40 0 : auto PContentBridgeParent::RecvPBrowserConstructor(
41 : PBrowserParent* actor,
42 : const TabId& tabId,
43 : const TabId& sameTabGroupAs,
44 : const IPCTabContext& context,
45 : const uint32_t& chromeFlags,
46 : const ContentParentId& cpId,
47 : const bool& isForBrowser) -> mozilla::ipc::IPCResult
48 : {
49 0 : return IPC_OK();
50 : }
51 :
52 0 : auto PContentBridgeParent::RecvPFileDescriptorSetConstructor(
53 : PFileDescriptorSetParent* actor,
54 : const FileDescriptor& fd) -> mozilla::ipc::IPCResult
55 : {
56 0 : return IPC_OK();
57 : }
58 :
59 :
60 0 : auto PContentBridgeParent::ProcessingError(
61 : Result aCode,
62 : const char* aReason) -> void
63 : {
64 0 : }
65 :
66 0 : auto PContentBridgeParent::ShouldContinueFromReplyTimeout() -> bool
67 : {
68 0 : return true;
69 : }
70 :
71 0 : auto PContentBridgeParent::EnteredCxxStack() -> void
72 : {
73 0 : }
74 :
75 0 : auto PContentBridgeParent::ExitedCxxStack() -> void
76 : {
77 0 : }
78 :
79 0 : auto PContentBridgeParent::EnteredCall() -> void
80 : {
81 0 : }
82 :
83 0 : auto PContentBridgeParent::ExitedCall() -> void
84 : {
85 0 : }
86 :
87 0 : MOZ_IMPLICIT PContentBridgeParent::PContentBridgeParent() :
88 : mozilla::ipc::IToplevelProtocol(PContentBridgeMsgStart, mozilla::ipc::ParentSide),
89 : mChannel("PContentBridgeParent", ALLOW_THIS_IN_INITIALIZER_LIST(this)),
90 0 : mState(PContentBridge::__Start)
91 : {
92 0 : MOZ_COUNT_CTOR(PContentBridgeParent);
93 0 : }
94 :
95 0 : PContentBridgeParent::~PContentBridgeParent()
96 : {
97 0 : MOZ_COUNT_DTOR(PContentBridgeParent);
98 0 : }
99 :
100 0 : auto PContentBridgeParent::ManagedPBrowserParent(nsTArray<PBrowserParent*>& aArr) const -> void
101 : {
102 0 : (mManagedPBrowserParent).ToArray(aArr);
103 0 : }
104 :
105 0 : auto PContentBridgeParent::ManagedPBrowserParent() const -> const ManagedContainer<PBrowserParent>&
106 : {
107 0 : return mManagedPBrowserParent;
108 : }
109 :
110 0 : auto PContentBridgeParent::ManagedPFileDescriptorSetParent(nsTArray<PFileDescriptorSetParent*>& aArr) const -> void
111 : {
112 0 : (mManagedPFileDescriptorSetParent).ToArray(aArr);
113 0 : }
114 :
115 0 : auto PContentBridgeParent::ManagedPFileDescriptorSetParent() const -> const ManagedContainer<PFileDescriptorSetParent>&
116 : {
117 0 : return mManagedPFileDescriptorSetParent;
118 : }
119 :
120 0 : auto PContentBridgeParent::ManagedPJavaScriptParent(nsTArray<PJavaScriptParent*>& aArr) const -> void
121 : {
122 0 : (mManagedPJavaScriptParent).ToArray(aArr);
123 0 : }
124 :
125 0 : auto PContentBridgeParent::ManagedPJavaScriptParent() const -> const ManagedContainer<PJavaScriptParent>&
126 : {
127 0 : return mManagedPJavaScriptParent;
128 : }
129 :
130 0 : auto PContentBridgeParent::ManagedPChildToParentStreamParent(nsTArray<PChildToParentStreamParent*>& aArr) const -> void
131 : {
132 0 : (mManagedPChildToParentStreamParent).ToArray(aArr);
133 0 : }
134 :
135 0 : auto PContentBridgeParent::ManagedPChildToParentStreamParent() const -> const ManagedContainer<PChildToParentStreamParent>&
136 : {
137 0 : return mManagedPChildToParentStreamParent;
138 : }
139 :
140 0 : auto PContentBridgeParent::ManagedPParentToChildStreamParent(nsTArray<PParentToChildStreamParent*>& aArr) const -> void
141 : {
142 0 : (mManagedPParentToChildStreamParent).ToArray(aArr);
143 0 : }
144 :
145 0 : auto PContentBridgeParent::ManagedPParentToChildStreamParent() const -> const ManagedContainer<PParentToChildStreamParent>&
146 : {
147 0 : return mManagedPParentToChildStreamParent;
148 : }
149 :
150 0 : auto PContentBridgeParent::ManagedPIPCBlobInputStreamParent(nsTArray<PIPCBlobInputStreamParent*>& aArr) const -> void
151 : {
152 0 : (mManagedPIPCBlobInputStreamParent).ToArray(aArr);
153 0 : }
154 :
155 0 : auto PContentBridgeParent::ManagedPIPCBlobInputStreamParent() const -> const ManagedContainer<PIPCBlobInputStreamParent>&
156 : {
157 0 : return mManagedPIPCBlobInputStreamParent;
158 : }
159 :
160 0 : auto PContentBridgeParent::SendPParentToChildStreamConstructor() -> PParentToChildStreamParent*
161 : {
162 0 : return SendPParentToChildStreamConstructor(AllocPParentToChildStreamParent());
163 : }
164 :
165 0 : auto PContentBridgeParent::SendPParentToChildStreamConstructor(PParentToChildStreamParent* actor) -> PParentToChildStreamParent*
166 : {
167 0 : if ((!(actor))) {
168 0 : NS_WARNING("Error constructing actor PParentToChildStreamParent");
169 0 : return nullptr;
170 : }
171 0 : (actor)->SetManager(this);
172 0 : Register(actor);
173 0 : (actor)->SetIPCChannel(GetIPCChannel());
174 0 : (mManagedPParentToChildStreamParent).PutEntry(actor);
175 0 : (actor)->mState = mozilla::ipc::PParentToChildStream::__Start;
176 :
177 0 : IPC::Message* msg__ = PContentBridge::Msg_PParentToChildStreamConstructor(MSG_ROUTING_CONTROL);
178 :
179 0 : Write(actor, msg__, false);
180 : // Sentinel = 'actor'
181 0 : (msg__)->WriteSentinel(875202478);
182 :
183 0 : (msg__)->set_constructor();
184 :
185 :
186 0 : if (mozilla::ipc::LoggingEnabledFor("PContentBridgeParent")) {
187 0 : mozilla::ipc::LogMessageForProtocol("PContentBridgeParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
188 : }
189 0 : AUTO_PROFILER_LABEL("PContentBridge::Msg_PParentToChildStreamConstructor", OTHER);
190 0 : PContentBridge::Transition(PContentBridge::Msg_PParentToChildStreamConstructor__ID, (&(mState)));
191 :
192 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
193 0 : if ((!(sendok__))) {
194 0 : IProtocol* mgr = (actor)->Manager();
195 0 : (actor)->DestroySubtree(FailedConstructor);
196 0 : (actor)->DeallocSubtree();
197 0 : (mgr)->RemoveManagee(PParentToChildStreamMsgStart, actor);
198 0 : return nullptr;
199 : }
200 0 : return actor;
201 : }
202 :
203 0 : auto PContentBridgeParent::SendActivate(PBrowserParent* aTab) -> bool
204 : {
205 0 : IPC::Message* msg__ = PContentBridge::Msg_Activate(MSG_ROUTING_CONTROL);
206 :
207 0 : Write(aTab, msg__, false);
208 : // Sentinel = 'aTab'
209 0 : (msg__)->WriteSentinel(1179125994);
210 :
211 :
212 :
213 :
214 0 : if (mozilla::ipc::LoggingEnabledFor("PContentBridgeParent")) {
215 0 : mozilla::ipc::LogMessageForProtocol("PContentBridgeParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
216 : }
217 0 : AUTO_PROFILER_LABEL("PContentBridge::Msg_Activate", OTHER);
218 0 : PContentBridge::Transition(PContentBridge::Msg_Activate__ID, (&(mState)));
219 :
220 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
221 0 : return sendok__;
222 : }
223 :
224 0 : auto PContentBridgeParent::SendDeactivate(PBrowserParent* aTab) -> bool
225 : {
226 0 : IPC::Message* msg__ = PContentBridge::Msg_Deactivate(MSG_ROUTING_CONTROL);
227 :
228 0 : Write(aTab, msg__, false);
229 : // Sentinel = 'aTab'
230 0 : (msg__)->WriteSentinel(1179125994);
231 :
232 :
233 :
234 :
235 0 : if (mozilla::ipc::LoggingEnabledFor("PContentBridgeParent")) {
236 0 : mozilla::ipc::LogMessageForProtocol("PContentBridgeParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
237 : }
238 0 : AUTO_PROFILER_LABEL("PContentBridge::Msg_Deactivate", OTHER);
239 0 : PContentBridge::Transition(PContentBridge::Msg_Deactivate__ID, (&(mState)));
240 :
241 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
242 0 : return sendok__;
243 : }
244 :
245 0 : auto PContentBridgeParent::SendParentActivated(
246 : PBrowserParent* aTab,
247 : const bool& aActivated) -> bool
248 : {
249 0 : IPC::Message* msg__ = PContentBridge::Msg_ParentActivated(MSG_ROUTING_CONTROL);
250 :
251 0 : Write(aTab, msg__, false);
252 : // Sentinel = 'aTab'
253 0 : (msg__)->WriteSentinel(1179125994);
254 0 : Write(aActivated, msg__);
255 : // Sentinel = 'aActivated'
256 0 : (msg__)->WriteSentinel(2491273264);
257 :
258 :
259 :
260 :
261 0 : if (mozilla::ipc::LoggingEnabledFor("PContentBridgeParent")) {
262 0 : mozilla::ipc::LogMessageForProtocol("PContentBridgeParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
263 : }
264 0 : AUTO_PROFILER_LABEL("PContentBridge::Msg_ParentActivated", OTHER);
265 0 : PContentBridge::Transition(PContentBridge::Msg_ParentActivated__ID, (&(mState)));
266 :
267 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
268 0 : return sendok__;
269 : }
270 :
271 0 : auto PContentBridgeParent::SendPIPCBlobInputStreamConstructor(
272 : const nsID& aID,
273 : const uint64_t& aSize) -> PIPCBlobInputStreamParent*
274 : {
275 0 : return SendPIPCBlobInputStreamConstructor(AllocPIPCBlobInputStreamParent(aID, aSize), aID, aSize);
276 : }
277 :
278 0 : auto PContentBridgeParent::SendPIPCBlobInputStreamConstructor(
279 : PIPCBlobInputStreamParent* actor,
280 : const nsID& aID,
281 : const uint64_t& aSize) -> PIPCBlobInputStreamParent*
282 : {
283 0 : if ((!(actor))) {
284 0 : NS_WARNING("Error constructing actor PIPCBlobInputStreamParent");
285 0 : return nullptr;
286 : }
287 0 : (actor)->SetManager(this);
288 0 : Register(actor);
289 0 : (actor)->SetIPCChannel(GetIPCChannel());
290 0 : (mManagedPIPCBlobInputStreamParent).PutEntry(actor);
291 0 : (actor)->mState = mozilla::ipc::PIPCBlobInputStream::__Start;
292 :
293 0 : IPC::Message* msg__ = PContentBridge::Msg_PIPCBlobInputStreamConstructor(MSG_ROUTING_CONTROL);
294 :
295 0 : Write(actor, msg__, false);
296 : // Sentinel = 'actor'
297 0 : (msg__)->WriteSentinel(875202478);
298 0 : Write(aID, msg__);
299 : // Sentinel = 'aID'
300 0 : (msg__)->WriteSentinel(2735041849);
301 0 : Write(aSize, msg__);
302 : // Sentinel = 'aSize'
303 0 : (msg__)->WriteSentinel(2556665555);
304 :
305 0 : (msg__)->set_constructor();
306 :
307 :
308 0 : if (mozilla::ipc::LoggingEnabledFor("PContentBridgeParent")) {
309 0 : mozilla::ipc::LogMessageForProtocol("PContentBridgeParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
310 : }
311 0 : AUTO_PROFILER_LABEL("PContentBridge::Msg_PIPCBlobInputStreamConstructor", OTHER);
312 0 : PContentBridge::Transition(PContentBridge::Msg_PIPCBlobInputStreamConstructor__ID, (&(mState)));
313 :
314 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
315 0 : if ((!(sendok__))) {
316 0 : IProtocol* mgr = (actor)->Manager();
317 0 : (actor)->DestroySubtree(FailedConstructor);
318 0 : (actor)->DeallocSubtree();
319 0 : (mgr)->RemoveManagee(PIPCBlobInputStreamMsgStart, actor);
320 0 : return nullptr;
321 : }
322 0 : return actor;
323 : }
324 :
325 0 : auto PContentBridgeParent::SendPBrowserConstructor(
326 : const TabId& tabId,
327 : const TabId& sameTabGroupAs,
328 : const IPCTabContext& context,
329 : const uint32_t& chromeFlags,
330 : const ContentParentId& cpId,
331 : const bool& isForBrowser) -> PBrowserParent*
332 : {
333 0 : return SendPBrowserConstructor(AllocPBrowserParent(tabId, sameTabGroupAs, context, chromeFlags, cpId, isForBrowser), tabId, sameTabGroupAs, context, chromeFlags, cpId, isForBrowser);
334 : }
335 :
336 0 : auto PContentBridgeParent::SendPBrowserConstructor(
337 : PBrowserParent* actor,
338 : const TabId& tabId,
339 : const TabId& sameTabGroupAs,
340 : const IPCTabContext& context,
341 : const uint32_t& chromeFlags,
342 : const ContentParentId& cpId,
343 : const bool& isForBrowser) -> PBrowserParent*
344 : {
345 0 : if ((!(actor))) {
346 0 : NS_WARNING("Error constructing actor PBrowserParent");
347 0 : return nullptr;
348 : }
349 0 : (actor)->SetManager(this);
350 0 : Register(actor);
351 0 : (actor)->SetIPCChannel(GetIPCChannel());
352 0 : (mManagedPBrowserParent).PutEntry(actor);
353 0 : (actor)->mState = mozilla::dom::PBrowser::__Start;
354 :
355 0 : IPC::Message* msg__ = PContentBridge::Msg_PBrowserConstructor(MSG_ROUTING_CONTROL);
356 :
357 0 : Write(actor, msg__, false);
358 : // Sentinel = 'actor'
359 0 : (msg__)->WriteSentinel(875202478);
360 0 : Write(tabId, msg__);
361 : // Sentinel = 'tabId'
362 0 : (msg__)->WriteSentinel(3419081923);
363 0 : Write(sameTabGroupAs, msg__);
364 : // Sentinel = 'sameTabGroupAs'
365 0 : (msg__)->WriteSentinel(3969365410);
366 0 : Write(context, msg__);
367 : // Sentinel = 'context'
368 0 : (msg__)->WriteSentinel(3514529014);
369 0 : Write(chromeFlags, msg__);
370 : // Sentinel = 'chromeFlags'
371 0 : (msg__)->WriteSentinel(299515804);
372 0 : Write(cpId, msg__);
373 : // Sentinel = 'cpId'
374 0 : (msg__)->WriteSentinel(2452595622);
375 0 : Write(isForBrowser, msg__);
376 : // Sentinel = 'isForBrowser'
377 0 : (msg__)->WriteSentinel(2051565587);
378 :
379 0 : (msg__)->set_constructor();
380 :
381 :
382 0 : if (mozilla::ipc::LoggingEnabledFor("PContentBridgeParent")) {
383 0 : mozilla::ipc::LogMessageForProtocol("PContentBridgeParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
384 : }
385 0 : AUTO_PROFILER_LABEL("PContentBridge::Msg_PBrowserConstructor", OTHER);
386 0 : PContentBridge::Transition(PContentBridge::Msg_PBrowserConstructor__ID, (&(mState)));
387 :
388 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
389 0 : if ((!(sendok__))) {
390 0 : IProtocol* mgr = (actor)->Manager();
391 0 : (actor)->DestroySubtree(FailedConstructor);
392 0 : (actor)->DeallocSubtree();
393 0 : (mgr)->RemoveManagee(PBrowserMsgStart, actor);
394 0 : return nullptr;
395 : }
396 0 : return actor;
397 : }
398 :
399 0 : auto PContentBridgeParent::SendPFileDescriptorSetConstructor(const FileDescriptor& fd) -> PFileDescriptorSetParent*
400 : {
401 0 : return SendPFileDescriptorSetConstructor(AllocPFileDescriptorSetParent(fd), fd);
402 : }
403 :
404 0 : auto PContentBridgeParent::SendPFileDescriptorSetConstructor(
405 : PFileDescriptorSetParent* actor,
406 : const FileDescriptor& fd) -> PFileDescriptorSetParent*
407 : {
408 0 : if ((!(actor))) {
409 0 : NS_WARNING("Error constructing actor PFileDescriptorSetParent");
410 0 : return nullptr;
411 : }
412 0 : (actor)->SetManager(this);
413 0 : Register(actor);
414 0 : (actor)->SetIPCChannel(GetIPCChannel());
415 0 : (mManagedPFileDescriptorSetParent).PutEntry(actor);
416 0 : (actor)->mState = mozilla::ipc::PFileDescriptorSet::__Start;
417 :
418 0 : IPC::Message* msg__ = PContentBridge::Msg_PFileDescriptorSetConstructor(MSG_ROUTING_CONTROL);
419 :
420 0 : Write(actor, msg__, false);
421 : // Sentinel = 'actor'
422 0 : (msg__)->WriteSentinel(875202478);
423 0 : Write(fd, msg__);
424 : // Sentinel = 'fd'
425 0 : (msg__)->WriteSentinel(628535764);
426 :
427 0 : (msg__)->set_constructor();
428 :
429 :
430 0 : if (mozilla::ipc::LoggingEnabledFor("PContentBridgeParent")) {
431 0 : mozilla::ipc::LogMessageForProtocol("PContentBridgeParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
432 : }
433 0 : AUTO_PROFILER_LABEL("PContentBridge::Msg_PFileDescriptorSetConstructor", OTHER);
434 0 : PContentBridge::Transition(PContentBridge::Msg_PFileDescriptorSetConstructor__ID, (&(mState)));
435 :
436 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
437 0 : if ((!(sendok__))) {
438 0 : IProtocol* mgr = (actor)->Manager();
439 0 : (actor)->DestroySubtree(FailedConstructor);
440 0 : (actor)->DeallocSubtree();
441 0 : (mgr)->RemoveManagee(PFileDescriptorSetMsgStart, actor);
442 0 : return nullptr;
443 : }
444 0 : return actor;
445 : }
446 :
447 0 : auto PContentBridgeParent::SendAsyncMessage(
448 : const nsString& aMessage,
449 : const nsTArray<CpowEntry>& aCpows,
450 : const Principal& aPrincipal,
451 : const ClonedMessageData& aData) -> bool
452 : {
453 0 : IPC::Message* msg__ = PContentBridge::Msg_AsyncMessage(MSG_ROUTING_CONTROL);
454 :
455 0 : Write(aMessage, msg__);
456 : // Sentinel = 'aMessage'
457 0 : (msg__)->WriteSentinel(3453110902);
458 0 : Write(aCpows, msg__);
459 : // Sentinel = 'aCpows'
460 0 : (msg__)->WriteSentinel(2178221451);
461 0 : Write(aPrincipal, msg__);
462 : // Sentinel = 'aPrincipal'
463 0 : (msg__)->WriteSentinel(4097511);
464 0 : Write(aData, msg__);
465 : // Sentinel = 'aData'
466 0 : (msg__)->WriteSentinel(3285075324);
467 :
468 :
469 :
470 :
471 0 : if (mozilla::ipc::LoggingEnabledFor("PContentBridgeParent")) {
472 0 : mozilla::ipc::LogMessageForProtocol("PContentBridgeParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
473 : }
474 0 : AUTO_PROFILER_LABEL("PContentBridge::Msg_AsyncMessage", OTHER);
475 0 : PContentBridge::Transition(PContentBridge::Msg_AsyncMessage__ID, (&(mState)));
476 :
477 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
478 0 : return sendok__;
479 : }
480 :
481 0 : auto PContentBridgeParent::GetIPCChannel() -> MessageChannel*
482 : {
483 0 : return (&(mChannel));
484 : }
485 :
486 0 : auto PContentBridgeParent::GetIPCChannel() const -> const MessageChannel*
487 : {
488 0 : return (&(mChannel));
489 : }
490 :
491 0 : auto PContentBridgeParent::RemoveManagee(
492 : int32_t aProtocolId,
493 : ProtocolBase* aListener) -> void
494 : {
495 0 : switch (aProtocolId) {
496 : case PBrowserMsgStart:
497 : {
498 0 : PBrowserParent* actor = static_cast<PBrowserParent*>(aListener);
499 0 : auto& container = mManagedPBrowserParent;
500 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
501 :
502 0 : (container).RemoveEntry(actor);
503 0 : DeallocPBrowserParent(actor);
504 0 : return;
505 : }
506 : case PFileDescriptorSetMsgStart:
507 : {
508 0 : PFileDescriptorSetParent* actor = static_cast<PFileDescriptorSetParent*>(aListener);
509 0 : auto& container = mManagedPFileDescriptorSetParent;
510 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
511 :
512 0 : (container).RemoveEntry(actor);
513 0 : DeallocPFileDescriptorSetParent(actor);
514 0 : return;
515 : }
516 : case PJavaScriptMsgStart:
517 : {
518 0 : PJavaScriptParent* actor = static_cast<PJavaScriptParent*>(aListener);
519 0 : auto& container = mManagedPJavaScriptParent;
520 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
521 :
522 0 : (container).RemoveEntry(actor);
523 0 : DeallocPJavaScriptParent(actor);
524 0 : return;
525 : }
526 : case PChildToParentStreamMsgStart:
527 : {
528 0 : PChildToParentStreamParent* actor = static_cast<PChildToParentStreamParent*>(aListener);
529 0 : auto& container = mManagedPChildToParentStreamParent;
530 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
531 :
532 0 : (container).RemoveEntry(actor);
533 0 : DeallocPChildToParentStreamParent(actor);
534 0 : return;
535 : }
536 : case PParentToChildStreamMsgStart:
537 : {
538 0 : PParentToChildStreamParent* actor = static_cast<PParentToChildStreamParent*>(aListener);
539 0 : auto& container = mManagedPParentToChildStreamParent;
540 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
541 :
542 0 : (container).RemoveEntry(actor);
543 0 : DeallocPParentToChildStreamParent(actor);
544 0 : return;
545 : }
546 : case PIPCBlobInputStreamMsgStart:
547 : {
548 0 : PIPCBlobInputStreamParent* actor = static_cast<PIPCBlobInputStreamParent*>(aListener);
549 0 : auto& container = mManagedPIPCBlobInputStreamParent;
550 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
551 :
552 0 : (container).RemoveEntry(actor);
553 0 : DeallocPIPCBlobInputStreamParent(actor);
554 0 : return;
555 : }
556 : default:
557 : {
558 0 : FatalError("unreached");
559 0 : return;
560 : }
561 : }
562 : }
563 :
564 0 : auto PContentBridgeParent::OnMessageReceived(const Message& msg__) -> PContentBridgeParent::Result
565 : {
566 0 : int32_t route__ = (msg__).routing_id();
567 0 : if ((MSG_ROUTING_CONTROL) != (route__)) {
568 0 : ChannelListener* routed__ = Lookup(route__);
569 0 : if ((!(routed__))) {
570 0 : return MsgRouteError;
571 : }
572 0 : return (routed__)->OnMessageReceived(msg__);
573 : }
574 :
575 0 : switch ((msg__).type()) {
576 : case PContentBridge::Reply_PParentToChildStreamConstructor__ID:
577 : {
578 0 : return MsgProcessed;
579 : }
580 : case PContentBridge::Reply_PIPCBlobInputStreamConstructor__ID:
581 : {
582 0 : return MsgProcessed;
583 : }
584 : case PContentBridge::Msg_PJavaScriptConstructor__ID:
585 : {
586 0 : if (mozilla::ipc::LoggingEnabledFor("PContentBridgeParent")) {
587 0 : mozilla::ipc::LogMessageForProtocol("PContentBridgeParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
588 : }
589 0 : AUTO_PROFILER_LABEL("PContentBridge::Msg_PJavaScriptConstructor", OTHER);
590 :
591 0 : PickleIterator iter__(msg__);
592 : ActorHandle handle__;
593 : PJavaScriptParent* actor;
594 :
595 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
596 0 : FatalError("Error deserializing 'ActorHandle'");
597 0 : return MsgValueError;
598 : }
599 : // Sentinel = 'actor'
600 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
601 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
602 0 : return MsgValueError;
603 : }
604 0 : (msg__).EndRead(iter__, (msg__).type());
605 0 : PContentBridge::Transition(PContentBridge::Msg_PJavaScriptConstructor__ID, (&(mState)));
606 0 : actor = AllocPJavaScriptParent();
607 0 : if ((!(actor))) {
608 0 : NS_WARNING("Error constructing actor PJavaScriptParent");
609 0 : return MsgValueError;
610 : }
611 0 : (actor)->SetManager(this);
612 0 : RegisterID(actor, (handle__).mId);
613 0 : (actor)->SetIPCChannel(GetIPCChannel());
614 0 : (mManagedPJavaScriptParent).PutEntry(actor);
615 0 : (actor)->mState = mozilla::jsipc::PJavaScript::__Start;
616 :
617 0 : if ((!(RecvPJavaScriptConstructor(mozilla::Move(actor))))) {
618 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
619 : // Error handled in mozilla::ipc::IPCResult
620 0 : return MsgProcessingError;
621 : }
622 :
623 0 : return MsgProcessed;
624 : }
625 : case PContentBridge::Msg_PChildToParentStreamConstructor__ID:
626 : {
627 0 : if (mozilla::ipc::LoggingEnabledFor("PContentBridgeParent")) {
628 0 : mozilla::ipc::LogMessageForProtocol("PContentBridgeParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
629 : }
630 0 : AUTO_PROFILER_LABEL("PContentBridge::Msg_PChildToParentStreamConstructor", OTHER);
631 :
632 0 : PickleIterator iter__(msg__);
633 : ActorHandle handle__;
634 : PChildToParentStreamParent* actor;
635 :
636 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
637 0 : FatalError("Error deserializing 'ActorHandle'");
638 0 : return MsgValueError;
639 : }
640 : // Sentinel = 'actor'
641 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
642 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
643 0 : return MsgValueError;
644 : }
645 0 : (msg__).EndRead(iter__, (msg__).type());
646 0 : PContentBridge::Transition(PContentBridge::Msg_PChildToParentStreamConstructor__ID, (&(mState)));
647 0 : actor = AllocPChildToParentStreamParent();
648 0 : if ((!(actor))) {
649 0 : NS_WARNING("Error constructing actor PChildToParentStreamParent");
650 0 : return MsgValueError;
651 : }
652 0 : (actor)->SetManager(this);
653 0 : RegisterID(actor, (handle__).mId);
654 0 : (actor)->SetIPCChannel(GetIPCChannel());
655 0 : (mManagedPChildToParentStreamParent).PutEntry(actor);
656 0 : (actor)->mState = mozilla::ipc::PChildToParentStream::__Start;
657 :
658 0 : if ((!(RecvPChildToParentStreamConstructor(mozilla::Move(actor))))) {
659 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
660 : // Error handled in mozilla::ipc::IPCResult
661 0 : return MsgProcessingError;
662 : }
663 :
664 0 : return MsgProcessed;
665 : }
666 : case PContentBridge::Reply_PBrowserConstructor__ID:
667 : {
668 0 : return MsgProcessed;
669 : }
670 : case PContentBridge::Msg_PBrowserConstructor__ID:
671 : {
672 0 : if (mozilla::ipc::LoggingEnabledFor("PContentBridgeParent")) {
673 0 : mozilla::ipc::LogMessageForProtocol("PContentBridgeParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
674 : }
675 0 : AUTO_PROFILER_LABEL("PContentBridge::Msg_PBrowserConstructor", OTHER);
676 :
677 0 : PickleIterator iter__(msg__);
678 : ActorHandle handle__;
679 : PBrowserParent* actor;
680 0 : TabId tabId;
681 0 : TabId sameTabGroupAs;
682 0 : IPCTabContext context;
683 : uint32_t chromeFlags;
684 0 : ContentParentId cpId;
685 : bool isForBrowser;
686 :
687 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
688 0 : FatalError("Error deserializing 'ActorHandle'");
689 0 : return MsgValueError;
690 : }
691 : // Sentinel = 'actor'
692 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
693 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
694 0 : return MsgValueError;
695 : }
696 0 : if ((!(Read((&(tabId)), (&(msg__)), (&(iter__)))))) {
697 0 : FatalError("Error deserializing 'TabId'");
698 0 : return MsgValueError;
699 : }
700 : // Sentinel = 'tabId'
701 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3419081923)))) {
702 0 : mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
703 0 : return MsgValueError;
704 : }
705 0 : if ((!(Read((&(sameTabGroupAs)), (&(msg__)), (&(iter__)))))) {
706 0 : FatalError("Error deserializing 'TabId'");
707 0 : return MsgValueError;
708 : }
709 : // Sentinel = 'sameTabGroupAs'
710 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3969365410)))) {
711 0 : mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
712 0 : return MsgValueError;
713 : }
714 0 : if ((!(Read((&(context)), (&(msg__)), (&(iter__)))))) {
715 0 : FatalError("Error deserializing 'IPCTabContext'");
716 0 : return MsgValueError;
717 : }
718 : // Sentinel = 'context'
719 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3514529014)))) {
720 0 : mozilla::ipc::SentinelReadError("Error deserializing 'IPCTabContext'");
721 0 : return MsgValueError;
722 : }
723 0 : if ((!(Read((&(chromeFlags)), (&(msg__)), (&(iter__)))))) {
724 0 : FatalError("Error deserializing 'uint32_t'");
725 0 : return MsgValueError;
726 : }
727 : // Sentinel = 'chromeFlags'
728 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 299515804)))) {
729 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
730 0 : return MsgValueError;
731 : }
732 0 : if ((!(Read((&(cpId)), (&(msg__)), (&(iter__)))))) {
733 0 : FatalError("Error deserializing 'ContentParentId'");
734 0 : return MsgValueError;
735 : }
736 : // Sentinel = 'cpId'
737 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2452595622)))) {
738 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ContentParentId'");
739 0 : return MsgValueError;
740 : }
741 0 : if ((!(Read((&(isForBrowser)), (&(msg__)), (&(iter__)))))) {
742 0 : FatalError("Error deserializing 'bool'");
743 0 : return MsgValueError;
744 : }
745 : // Sentinel = 'isForBrowser'
746 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2051565587)))) {
747 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
748 0 : return MsgValueError;
749 : }
750 0 : (msg__).EndRead(iter__, (msg__).type());
751 0 : PContentBridge::Transition(PContentBridge::Msg_PBrowserConstructor__ID, (&(mState)));
752 0 : actor = AllocPBrowserParent(tabId, sameTabGroupAs, context, chromeFlags, cpId, isForBrowser);
753 0 : if ((!(actor))) {
754 0 : NS_WARNING("Error constructing actor PBrowserParent");
755 0 : return MsgValueError;
756 : }
757 0 : (actor)->SetManager(this);
758 0 : RegisterID(actor, (handle__).mId);
759 0 : (actor)->SetIPCChannel(GetIPCChannel());
760 0 : (mManagedPBrowserParent).PutEntry(actor);
761 0 : (actor)->mState = mozilla::dom::PBrowser::__Start;
762 :
763 0 : if ((!(RecvPBrowserConstructor(mozilla::Move(actor), mozilla::Move(tabId), mozilla::Move(sameTabGroupAs), mozilla::Move(context), mozilla::Move(chromeFlags), mozilla::Move(cpId), mozilla::Move(isForBrowser))))) {
764 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
765 : // Error handled in mozilla::ipc::IPCResult
766 0 : return MsgProcessingError;
767 : }
768 :
769 0 : return MsgProcessed;
770 : }
771 : case PContentBridge::Reply_PFileDescriptorSetConstructor__ID:
772 : {
773 0 : return MsgProcessed;
774 : }
775 : case PContentBridge::Msg_PFileDescriptorSetConstructor__ID:
776 : {
777 0 : if (mozilla::ipc::LoggingEnabledFor("PContentBridgeParent")) {
778 0 : mozilla::ipc::LogMessageForProtocol("PContentBridgeParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
779 : }
780 0 : AUTO_PROFILER_LABEL("PContentBridge::Msg_PFileDescriptorSetConstructor", OTHER);
781 :
782 0 : PickleIterator iter__(msg__);
783 : ActorHandle handle__;
784 : PFileDescriptorSetParent* actor;
785 0 : FileDescriptor fd;
786 :
787 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
788 0 : FatalError("Error deserializing 'ActorHandle'");
789 0 : return MsgValueError;
790 : }
791 : // Sentinel = 'actor'
792 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
793 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
794 0 : return MsgValueError;
795 : }
796 0 : if ((!(Read((&(fd)), (&(msg__)), (&(iter__)))))) {
797 0 : FatalError("Error deserializing 'FileDescriptor'");
798 0 : return MsgValueError;
799 : }
800 : // Sentinel = 'fd'
801 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 628535764)))) {
802 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor'");
803 0 : return MsgValueError;
804 : }
805 0 : (msg__).EndRead(iter__, (msg__).type());
806 0 : PContentBridge::Transition(PContentBridge::Msg_PFileDescriptorSetConstructor__ID, (&(mState)));
807 0 : actor = AllocPFileDescriptorSetParent(fd);
808 0 : if ((!(actor))) {
809 0 : NS_WARNING("Error constructing actor PFileDescriptorSetParent");
810 0 : return MsgValueError;
811 : }
812 0 : (actor)->SetManager(this);
813 0 : RegisterID(actor, (handle__).mId);
814 0 : (actor)->SetIPCChannel(GetIPCChannel());
815 0 : (mManagedPFileDescriptorSetParent).PutEntry(actor);
816 0 : (actor)->mState = mozilla::ipc::PFileDescriptorSet::__Start;
817 :
818 0 : if ((!(RecvPFileDescriptorSetConstructor(mozilla::Move(actor), mozilla::Move(fd))))) {
819 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
820 : // Error handled in mozilla::ipc::IPCResult
821 0 : return MsgProcessingError;
822 : }
823 :
824 0 : return MsgProcessed;
825 : }
826 : case PContentBridge::Msg_AsyncMessage__ID:
827 : {
828 0 : if (mozilla::ipc::LoggingEnabledFor("PContentBridgeParent")) {
829 0 : mozilla::ipc::LogMessageForProtocol("PContentBridgeParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
830 : }
831 0 : AUTO_PROFILER_LABEL("PContentBridge::Msg_AsyncMessage", OTHER);
832 :
833 0 : PickleIterator iter__(msg__);
834 0 : nsString aMessage;
835 0 : nsTArray<CpowEntry> aCpows;
836 0 : Principal aPrincipal;
837 0 : ClonedMessageData aData;
838 :
839 0 : if ((!(Read((&(aMessage)), (&(msg__)), (&(iter__)))))) {
840 0 : FatalError("Error deserializing 'nsString'");
841 0 : return MsgValueError;
842 : }
843 : // Sentinel = 'aMessage'
844 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3453110902)))) {
845 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
846 0 : return MsgValueError;
847 : }
848 0 : if ((!(Read((&(aCpows)), (&(msg__)), (&(iter__)))))) {
849 0 : FatalError("Error deserializing 'nsTArray'");
850 0 : return MsgValueError;
851 : }
852 : // Sentinel = 'aCpows'
853 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2178221451)))) {
854 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
855 0 : return MsgValueError;
856 : }
857 0 : if ((!(Read((&(aPrincipal)), (&(msg__)), (&(iter__)))))) {
858 0 : FatalError("Error deserializing 'Principal'");
859 0 : return MsgValueError;
860 : }
861 : // Sentinel = 'aPrincipal'
862 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4097511)))) {
863 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
864 0 : return MsgValueError;
865 : }
866 0 : if ((!(Read((&(aData)), (&(msg__)), (&(iter__)))))) {
867 0 : FatalError("Error deserializing 'ClonedMessageData'");
868 0 : return MsgValueError;
869 : }
870 : // Sentinel = 'aData'
871 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3285075324)))) {
872 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ClonedMessageData'");
873 0 : return MsgValueError;
874 : }
875 0 : (msg__).EndRead(iter__, (msg__).type());
876 0 : PContentBridge::Transition(PContentBridge::Msg_AsyncMessage__ID, (&(mState)));
877 0 : if ((!(RecvAsyncMessage(mozilla::Move(aMessage), mozilla::Move(aCpows), mozilla::Move(aPrincipal), mozilla::Move(aData))))) {
878 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
879 : // Error handled in mozilla::ipc::IPCResult
880 0 : return MsgProcessingError;
881 : }
882 :
883 0 : return MsgProcessed;
884 : }
885 : default:
886 : {
887 0 : return MsgNotKnown;
888 : }
889 : case SHMEM_CREATED_MESSAGE_TYPE:
890 : {
891 0 : if ((!(ShmemCreated(msg__)))) {
892 0 : return MsgPayloadError;
893 : }
894 0 : return MsgProcessed;
895 : }
896 : case SHMEM_DESTROYED_MESSAGE_TYPE:
897 : {
898 0 : if ((!(ShmemDestroyed(msg__)))) {
899 0 : return MsgPayloadError;
900 : }
901 0 : return MsgProcessed;
902 : }
903 : }
904 : }
905 :
906 0 : auto PContentBridgeParent::OnMessageReceived(
907 : const Message& msg__,
908 : Message*& reply__) -> PContentBridgeParent::Result
909 : {
910 0 : int32_t route__ = (msg__).routing_id();
911 0 : if ((MSG_ROUTING_CONTROL) != (route__)) {
912 0 : ChannelListener* routed__ = Lookup(route__);
913 0 : if ((!(routed__))) {
914 0 : return MsgRouteError;
915 : }
916 0 : return (routed__)->OnMessageReceived(msg__, reply__);
917 : }
918 :
919 0 : switch ((msg__).type()) {
920 : case PContentBridge::Msg_SyncMessage__ID:
921 : {
922 0 : if (mozilla::ipc::LoggingEnabledFor("PContentBridgeParent")) {
923 0 : mozilla::ipc::LogMessageForProtocol("PContentBridgeParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
924 : }
925 0 : AUTO_PROFILER_LABEL("PContentBridge::Msg_SyncMessage", OTHER);
926 :
927 0 : PickleIterator iter__(msg__);
928 0 : nsString aMessage;
929 0 : ClonedMessageData aData;
930 0 : nsTArray<CpowEntry> aCpows;
931 0 : Principal aPrincipal;
932 :
933 0 : if ((!(Read((&(aMessage)), (&(msg__)), (&(iter__)))))) {
934 0 : FatalError("Error deserializing 'nsString'");
935 0 : return MsgValueError;
936 : }
937 : // Sentinel = 'aMessage'
938 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3453110902)))) {
939 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
940 0 : return MsgValueError;
941 : }
942 0 : if ((!(Read((&(aData)), (&(msg__)), (&(iter__)))))) {
943 0 : FatalError("Error deserializing 'ClonedMessageData'");
944 0 : return MsgValueError;
945 : }
946 : // Sentinel = 'aData'
947 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3285075324)))) {
948 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ClonedMessageData'");
949 0 : return MsgValueError;
950 : }
951 0 : if ((!(Read((&(aCpows)), (&(msg__)), (&(iter__)))))) {
952 0 : FatalError("Error deserializing 'nsTArray'");
953 0 : return MsgValueError;
954 : }
955 : // Sentinel = 'aCpows'
956 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2178221451)))) {
957 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
958 0 : return MsgValueError;
959 : }
960 0 : if ((!(Read((&(aPrincipal)), (&(msg__)), (&(iter__)))))) {
961 0 : FatalError("Error deserializing 'Principal'");
962 0 : return MsgValueError;
963 : }
964 : // Sentinel = 'aPrincipal'
965 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4097511)))) {
966 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
967 0 : return MsgValueError;
968 : }
969 0 : (msg__).EndRead(iter__, (msg__).type());
970 0 : PContentBridge::Transition(PContentBridge::Msg_SyncMessage__ID, (&(mState)));
971 0 : int32_t id__ = MSG_ROUTING_CONTROL;
972 0 : nsTArray<StructuredCloneData> retval;
973 0 : if ((!(RecvSyncMessage(mozilla::Move(aMessage), mozilla::Move(aData), mozilla::Move(aCpows), mozilla::Move(aPrincipal), (&(retval)))))) {
974 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
975 : // Error handled in mozilla::ipc::IPCResult
976 0 : return MsgProcessingError;
977 : }
978 :
979 0 : reply__ = PContentBridge::Reply_SyncMessage(id__);
980 :
981 0 : Write(retval, reply__);
982 : // Sentinel = 'retval'
983 0 : (reply__)->WriteSentinel(3130628604);
984 0 : (reply__)->set_sync();
985 0 : (reply__)->set_reply();
986 :
987 0 : if (mozilla::ipc::LoggingEnabledFor("PContentBridgeParent")) {
988 0 : mozilla::ipc::LogMessageForProtocol("PContentBridgeParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
989 : }
990 0 : return MsgProcessed;
991 : }
992 : default:
993 : {
994 0 : return MsgNotKnown;
995 : }
996 : }
997 : }
998 :
999 0 : auto PContentBridgeParent::OnCallReceived(
1000 : const Message& msg__,
1001 : Message*& reply__) -> PContentBridgeParent::Result
1002 : {
1003 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
1004 : return MsgNotKnown;
1005 : }
1006 :
1007 0 : auto PContentBridgeParent::GetProtocolTypeId() -> int32_t
1008 : {
1009 0 : return PContentBridgeMsgStart;
1010 : }
1011 :
1012 0 : auto PContentBridgeParent::OnChannelClose() -> void
1013 : {
1014 0 : DestroySubtree(NormalShutdown);
1015 0 : DeallocSubtree();
1016 0 : DeallocShmems();
1017 0 : DeallocPContentBridgeParent();
1018 0 : }
1019 :
1020 0 : auto PContentBridgeParent::OnChannelError() -> void
1021 : {
1022 0 : DestroySubtree(AbnormalShutdown);
1023 0 : DeallocSubtree();
1024 0 : DeallocShmems();
1025 0 : DeallocPContentBridgeParent();
1026 0 : }
1027 :
1028 0 : auto PContentBridgeParent::ProtocolName() const -> const char*
1029 : {
1030 0 : return "PContentBridgeParent";
1031 : }
1032 :
1033 0 : auto PContentBridgeParent::DestroySubtree(ActorDestroyReason why) -> void
1034 : {
1035 0 : ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
1036 :
1037 : {
1038 : // Recursively shutting down PBrowser kids
1039 0 : nsTArray<PBrowserParent*> kids;
1040 : // Accumulate kids into a stable structure to iterate over
1041 0 : ManagedPBrowserParent(kids);
1042 0 : for (auto& kid : kids) {
1043 : // Guarding against a child removing a sibling from the list during the iteration.
1044 0 : if ((mManagedPBrowserParent).Contains(kid)) {
1045 0 : (kid)->DestroySubtree(subtreewhy);
1046 : }
1047 : }
1048 : }
1049 : {
1050 : // Recursively shutting down PFileDescriptorSet kids
1051 0 : nsTArray<PFileDescriptorSetParent*> kids;
1052 : // Accumulate kids into a stable structure to iterate over
1053 0 : ManagedPFileDescriptorSetParent(kids);
1054 0 : for (auto& kid : kids) {
1055 : // Guarding against a child removing a sibling from the list during the iteration.
1056 0 : if ((mManagedPFileDescriptorSetParent).Contains(kid)) {
1057 0 : (kid)->DestroySubtree(subtreewhy);
1058 : }
1059 : }
1060 : }
1061 : {
1062 : // Recursively shutting down PJavaScript kids
1063 0 : nsTArray<PJavaScriptParent*> kids;
1064 : // Accumulate kids into a stable structure to iterate over
1065 0 : ManagedPJavaScriptParent(kids);
1066 0 : for (auto& kid : kids) {
1067 : // Guarding against a child removing a sibling from the list during the iteration.
1068 0 : if ((mManagedPJavaScriptParent).Contains(kid)) {
1069 0 : (kid)->DestroySubtree(subtreewhy);
1070 : }
1071 : }
1072 : }
1073 : {
1074 : // Recursively shutting down PChildToParentStream kids
1075 0 : nsTArray<PChildToParentStreamParent*> kids;
1076 : // Accumulate kids into a stable structure to iterate over
1077 0 : ManagedPChildToParentStreamParent(kids);
1078 0 : for (auto& kid : kids) {
1079 : // Guarding against a child removing a sibling from the list during the iteration.
1080 0 : if ((mManagedPChildToParentStreamParent).Contains(kid)) {
1081 0 : (kid)->DestroySubtree(subtreewhy);
1082 : }
1083 : }
1084 : }
1085 : {
1086 : // Recursively shutting down PParentToChildStream kids
1087 0 : nsTArray<PParentToChildStreamParent*> kids;
1088 : // Accumulate kids into a stable structure to iterate over
1089 0 : ManagedPParentToChildStreamParent(kids);
1090 0 : for (auto& kid : kids) {
1091 : // Guarding against a child removing a sibling from the list during the iteration.
1092 0 : if ((mManagedPParentToChildStreamParent).Contains(kid)) {
1093 0 : (kid)->DestroySubtree(subtreewhy);
1094 : }
1095 : }
1096 : }
1097 : {
1098 : // Recursively shutting down PIPCBlobInputStream kids
1099 0 : nsTArray<PIPCBlobInputStreamParent*> kids;
1100 : // Accumulate kids into a stable structure to iterate over
1101 0 : ManagedPIPCBlobInputStreamParent(kids);
1102 0 : for (auto& kid : kids) {
1103 : // Guarding against a child removing a sibling from the list during the iteration.
1104 0 : if ((mManagedPIPCBlobInputStreamParent).Contains(kid)) {
1105 0 : (kid)->DestroySubtree(subtreewhy);
1106 : }
1107 : }
1108 : }
1109 :
1110 : // Reject owning pending promises.
1111 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
1112 :
1113 : // Finally, destroy "us".
1114 0 : ActorDestroy(why);
1115 0 : }
1116 :
1117 0 : auto PContentBridgeParent::DeallocSubtree() -> void
1118 : {
1119 : {
1120 : // Recursively deleting PBrowser kids
1121 0 : for (auto iter = (mManagedPBrowserParent).Iter(); (!((iter).Done())); (iter).Next()) {
1122 0 : (((iter).Get())->GetKey())->DeallocSubtree();
1123 : }
1124 :
1125 0 : for (auto iter = (mManagedPBrowserParent).Iter(); (!((iter).Done())); (iter).Next()) {
1126 0 : DeallocPBrowserParent(((iter).Get())->GetKey());
1127 : }
1128 0 : (mManagedPBrowserParent).Clear();
1129 : }
1130 : {
1131 : // Recursively deleting PFileDescriptorSet kids
1132 0 : for (auto iter = (mManagedPFileDescriptorSetParent).Iter(); (!((iter).Done())); (iter).Next()) {
1133 0 : (((iter).Get())->GetKey())->DeallocSubtree();
1134 : }
1135 :
1136 0 : for (auto iter = (mManagedPFileDescriptorSetParent).Iter(); (!((iter).Done())); (iter).Next()) {
1137 0 : DeallocPFileDescriptorSetParent(((iter).Get())->GetKey());
1138 : }
1139 0 : (mManagedPFileDescriptorSetParent).Clear();
1140 : }
1141 : {
1142 : // Recursively deleting PJavaScript kids
1143 0 : for (auto iter = (mManagedPJavaScriptParent).Iter(); (!((iter).Done())); (iter).Next()) {
1144 0 : (((iter).Get())->GetKey())->DeallocSubtree();
1145 : }
1146 :
1147 0 : for (auto iter = (mManagedPJavaScriptParent).Iter(); (!((iter).Done())); (iter).Next()) {
1148 0 : DeallocPJavaScriptParent(((iter).Get())->GetKey());
1149 : }
1150 0 : (mManagedPJavaScriptParent).Clear();
1151 : }
1152 : {
1153 : // Recursively deleting PChildToParentStream kids
1154 0 : for (auto iter = (mManagedPChildToParentStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
1155 0 : (((iter).Get())->GetKey())->DeallocSubtree();
1156 : }
1157 :
1158 0 : for (auto iter = (mManagedPChildToParentStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
1159 0 : DeallocPChildToParentStreamParent(((iter).Get())->GetKey());
1160 : }
1161 0 : (mManagedPChildToParentStreamParent).Clear();
1162 : }
1163 : {
1164 : // Recursively deleting PParentToChildStream kids
1165 0 : for (auto iter = (mManagedPParentToChildStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
1166 0 : (((iter).Get())->GetKey())->DeallocSubtree();
1167 : }
1168 :
1169 0 : for (auto iter = (mManagedPParentToChildStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
1170 0 : DeallocPParentToChildStreamParent(((iter).Get())->GetKey());
1171 : }
1172 0 : (mManagedPParentToChildStreamParent).Clear();
1173 : }
1174 : {
1175 : // Recursively deleting PIPCBlobInputStream kids
1176 0 : for (auto iter = (mManagedPIPCBlobInputStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
1177 0 : (((iter).Get())->GetKey())->DeallocSubtree();
1178 : }
1179 :
1180 0 : for (auto iter = (mManagedPIPCBlobInputStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
1181 0 : DeallocPIPCBlobInputStreamParent(((iter).Get())->GetKey());
1182 : }
1183 0 : (mManagedPIPCBlobInputStreamParent).Clear();
1184 : }
1185 0 : }
1186 :
1187 0 : auto PContentBridgeParent::DeallocPContentBridgeParent() -> void
1188 : {
1189 0 : }
1190 :
1191 0 : auto PContentBridgeParent::Write(
1192 : const nsTArray<InputStreamParams>& v__,
1193 : Message* msg__) -> void
1194 : {
1195 0 : uint32_t length = (v__).Length();
1196 0 : Write(length, msg__);
1197 : // Sentinel = ('length', 'InputStreamParams[]')
1198 0 : (msg__)->WriteSentinel(348334258);
1199 :
1200 0 : for (auto& elem : v__) {
1201 0 : Write(elem, msg__);
1202 : // Sentinel = 'InputStreamParams[]'
1203 0 : (msg__)->WriteSentinel(2927715197);
1204 : }
1205 0 : }
1206 :
1207 0 : auto PContentBridgeParent::Read(
1208 : nsTArray<InputStreamParams>* v__,
1209 : const Message* msg__,
1210 : PickleIterator* iter__) -> bool
1211 : {
1212 0 : nsTArray<InputStreamParams> fa;
1213 : uint32_t length;
1214 0 : if ((!(Read((&(length)), msg__, iter__)))) {
1215 0 : mozilla::ipc::ArrayLengthReadError("InputStreamParams[]");
1216 0 : return false;
1217 : }
1218 : // Sentinel = ('length', 'InputStreamParams[]')
1219 0 : if ((!((msg__)->ReadSentinel(iter__, 348334258)))) {
1220 0 : mozilla::ipc::SentinelReadError("InputStreamParams[]");
1221 0 : return false;
1222 : }
1223 :
1224 0 : InputStreamParams* elems = (fa).AppendElements(length);
1225 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
1226 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
1227 0 : FatalError("Error deserializing 'InputStreamParams[i]'");
1228 0 : return false;
1229 : }
1230 : // Sentinel = 'InputStreamParams[]'
1231 0 : if ((!((msg__)->ReadSentinel(iter__, 2927715197)))) {
1232 0 : mozilla::ipc::SentinelReadError("Error deserializing 'InputStreamParams[i]'");
1233 0 : return false;
1234 : }
1235 : }
1236 0 : (v__)->SwapElements(fa);
1237 0 : return true;
1238 : }
1239 :
1240 0 : auto PContentBridgeParent::Write(
1241 : const nsTArray<FileDescriptor>& v__,
1242 : Message* msg__) -> void
1243 : {
1244 0 : uint32_t length = (v__).Length();
1245 0 : Write(length, msg__);
1246 : // Sentinel = ('length', 'FileDescriptor[]')
1247 0 : (msg__)->WriteSentinel(1697726450);
1248 :
1249 0 : for (auto& elem : v__) {
1250 0 : Write(elem, msg__);
1251 : // Sentinel = 'FileDescriptor[]'
1252 0 : (msg__)->WriteSentinel(1630221245);
1253 : }
1254 0 : }
1255 :
1256 0 : auto PContentBridgeParent::Read(
1257 : nsTArray<FileDescriptor>* v__,
1258 : const Message* msg__,
1259 : PickleIterator* iter__) -> bool
1260 : {
1261 0 : nsTArray<FileDescriptor> fa;
1262 : uint32_t length;
1263 0 : if ((!(Read((&(length)), msg__, iter__)))) {
1264 0 : mozilla::ipc::ArrayLengthReadError("FileDescriptor[]");
1265 0 : return false;
1266 : }
1267 : // Sentinel = ('length', 'FileDescriptor[]')
1268 0 : if ((!((msg__)->ReadSentinel(iter__, 1697726450)))) {
1269 0 : mozilla::ipc::SentinelReadError("FileDescriptor[]");
1270 0 : return false;
1271 : }
1272 :
1273 0 : FileDescriptor* elems = (fa).AppendElements(length);
1274 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
1275 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
1276 0 : FatalError("Error deserializing 'FileDescriptor[i]'");
1277 0 : return false;
1278 : }
1279 : // Sentinel = 'FileDescriptor[]'
1280 0 : if ((!((msg__)->ReadSentinel(iter__, 1630221245)))) {
1281 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor[i]'");
1282 0 : return false;
1283 : }
1284 : }
1285 0 : (v__)->SwapElements(fa);
1286 0 : return true;
1287 : }
1288 :
1289 0 : auto PContentBridgeParent::Write(
1290 : const nsTArray<MessagePortIdentifier>& v__,
1291 : Message* msg__) -> void
1292 : {
1293 0 : uint32_t length = (v__).Length();
1294 0 : Write(length, msg__);
1295 : // Sentinel = ('length', 'MessagePortIdentifier[]')
1296 0 : (msg__)->WriteSentinel(680130807);
1297 :
1298 0 : for (auto& elem : v__) {
1299 0 : Write(elem, msg__);
1300 : // Sentinel = 'MessagePortIdentifier[]'
1301 0 : (msg__)->WriteSentinel(1200404786);
1302 : }
1303 0 : }
1304 :
1305 0 : auto PContentBridgeParent::Read(
1306 : nsTArray<MessagePortIdentifier>* v__,
1307 : const Message* msg__,
1308 : PickleIterator* iter__) -> bool
1309 : {
1310 0 : nsTArray<MessagePortIdentifier> fa;
1311 : uint32_t length;
1312 0 : if ((!(Read((&(length)), msg__, iter__)))) {
1313 0 : mozilla::ipc::ArrayLengthReadError("MessagePortIdentifier[]");
1314 0 : return false;
1315 : }
1316 : // Sentinel = ('length', 'MessagePortIdentifier[]')
1317 0 : if ((!((msg__)->ReadSentinel(iter__, 680130807)))) {
1318 0 : mozilla::ipc::SentinelReadError("MessagePortIdentifier[]");
1319 0 : return false;
1320 : }
1321 :
1322 0 : MessagePortIdentifier* elems = (fa).AppendElements(length);
1323 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
1324 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
1325 0 : FatalError("Error deserializing 'MessagePortIdentifier[i]'");
1326 0 : return false;
1327 : }
1328 : // Sentinel = 'MessagePortIdentifier[]'
1329 0 : if ((!((msg__)->ReadSentinel(iter__, 1200404786)))) {
1330 0 : mozilla::ipc::SentinelReadError("Error deserializing 'MessagePortIdentifier[i]'");
1331 0 : return false;
1332 : }
1333 : }
1334 0 : (v__)->SwapElements(fa);
1335 0 : return true;
1336 : }
1337 :
1338 0 : auto PContentBridgeParent::Write(
1339 : const UnsafeIPCTabContext& v__,
1340 : Message* msg__) -> void
1341 : {
1342 0 : }
1343 :
1344 0 : auto PContentBridgeParent::Read(
1345 : UnsafeIPCTabContext* v__,
1346 : const Message* msg__,
1347 : PickleIterator* iter__) -> bool
1348 : {
1349 0 : return true;
1350 : }
1351 :
1352 0 : auto PContentBridgeParent::Write(
1353 : const RemoteObject& v__,
1354 : Message* msg__) -> void
1355 : {
1356 0 : Write((v__).serializedId(), msg__);
1357 : // Sentinel = 'serializedId'
1358 0 : (msg__)->WriteSentinel(517551973);
1359 0 : Write((v__).isCallable(), msg__);
1360 : // Sentinel = 'isCallable'
1361 0 : (msg__)->WriteSentinel(581027930);
1362 0 : Write((v__).isConstructor(), msg__);
1363 : // Sentinel = 'isConstructor'
1364 0 : (msg__)->WriteSentinel(2453797865);
1365 0 : Write((v__).isDOMObject(), msg__);
1366 : // Sentinel = 'isDOMObject'
1367 0 : (msg__)->WriteSentinel(4083735162);
1368 0 : Write((v__).objectTag(), msg__);
1369 : // Sentinel = 'objectTag'
1370 0 : (msg__)->WriteSentinel(4009834374);
1371 0 : }
1372 :
1373 0 : auto PContentBridgeParent::Read(
1374 : RemoteObject* v__,
1375 : const Message* msg__,
1376 : PickleIterator* iter__) -> bool
1377 : {
1378 0 : if ((!(Read((&((v__)->serializedId())), msg__, iter__)))) {
1379 0 : FatalError("Error deserializing 'serializedId' (uint64_t) member of 'RemoteObject'");
1380 0 : return false;
1381 : }
1382 : // Sentinel = 'serializedId'
1383 0 : if ((!((msg__)->ReadSentinel(iter__, 517551973)))) {
1384 0 : mozilla::ipc::SentinelReadError("Error deserializing 'serializedId' (uint64_t) member of 'RemoteObject'");
1385 0 : return false;
1386 : }
1387 0 : if ((!(Read((&((v__)->isCallable())), msg__, iter__)))) {
1388 0 : FatalError("Error deserializing 'isCallable' (bool) member of 'RemoteObject'");
1389 0 : return false;
1390 : }
1391 : // Sentinel = 'isCallable'
1392 0 : if ((!((msg__)->ReadSentinel(iter__, 581027930)))) {
1393 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isCallable' (bool) member of 'RemoteObject'");
1394 0 : return false;
1395 : }
1396 0 : if ((!(Read((&((v__)->isConstructor())), msg__, iter__)))) {
1397 0 : FatalError("Error deserializing 'isConstructor' (bool) member of 'RemoteObject'");
1398 0 : return false;
1399 : }
1400 : // Sentinel = 'isConstructor'
1401 0 : if ((!((msg__)->ReadSentinel(iter__, 2453797865)))) {
1402 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isConstructor' (bool) member of 'RemoteObject'");
1403 0 : return false;
1404 : }
1405 0 : if ((!(Read((&((v__)->isDOMObject())), msg__, iter__)))) {
1406 0 : FatalError("Error deserializing 'isDOMObject' (bool) member of 'RemoteObject'");
1407 0 : return false;
1408 : }
1409 : // Sentinel = 'isDOMObject'
1410 0 : if ((!((msg__)->ReadSentinel(iter__, 4083735162)))) {
1411 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isDOMObject' (bool) member of 'RemoteObject'");
1412 0 : return false;
1413 : }
1414 0 : if ((!(Read((&((v__)->objectTag())), msg__, iter__)))) {
1415 0 : FatalError("Error deserializing 'objectTag' (nsCString) member of 'RemoteObject'");
1416 0 : return false;
1417 : }
1418 : // Sentinel = 'objectTag'
1419 0 : if ((!((msg__)->ReadSentinel(iter__, 4009834374)))) {
1420 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectTag' (nsCString) member of 'RemoteObject'");
1421 0 : return false;
1422 : }
1423 0 : return true;
1424 : }
1425 :
1426 0 : auto PContentBridgeParent::Write(
1427 : const WellKnownSymbol& v__,
1428 : Message* msg__) -> void
1429 : {
1430 0 : Write((v__).which(), msg__);
1431 : // Sentinel = 'which'
1432 0 : (msg__)->WriteSentinel(328170422);
1433 0 : }
1434 :
1435 0 : auto PContentBridgeParent::Read(
1436 : WellKnownSymbol* v__,
1437 : const Message* msg__,
1438 : PickleIterator* iter__) -> bool
1439 : {
1440 0 : if ((!(Read((&((v__)->which())), msg__, iter__)))) {
1441 0 : FatalError("Error deserializing 'which' (uint32_t) member of 'WellKnownSymbol'");
1442 0 : return false;
1443 : }
1444 : // Sentinel = 'which'
1445 0 : if ((!((msg__)->ReadSentinel(iter__, 328170422)))) {
1446 0 : mozilla::ipc::SentinelReadError("Error deserializing 'which' (uint32_t) member of 'WellKnownSymbol'");
1447 0 : return false;
1448 : }
1449 0 : return true;
1450 : }
1451 :
1452 0 : auto PContentBridgeParent::Write(
1453 : const OptionalInputStreamParams& v__,
1454 : Message* msg__) -> void
1455 : {
1456 : typedef OptionalInputStreamParams type__;
1457 0 : Write(int((v__).type()), msg__);
1458 : // Sentinel = 'OptionalInputStreamParams'
1459 0 : (msg__)->WriteSentinel(1355174443);
1460 :
1461 0 : switch ((v__).type()) {
1462 : case type__::Tvoid_t:
1463 : {
1464 0 : Write((v__).get_void_t(), msg__);
1465 : // Sentinel = 'Tvoid_t'
1466 0 : (msg__)->WriteSentinel(3041273328);
1467 0 : return;
1468 : }
1469 : case type__::TInputStreamParams:
1470 : {
1471 0 : Write((v__).get_InputStreamParams(), msg__);
1472 : // Sentinel = 'TInputStreamParams'
1473 0 : (msg__)->WriteSentinel(55652096);
1474 0 : return;
1475 : }
1476 : default:
1477 : {
1478 0 : FatalError("unknown union type");
1479 0 : return;
1480 : }
1481 : }
1482 : }
1483 :
1484 0 : auto PContentBridgeParent::Read(
1485 : OptionalInputStreamParams* v__,
1486 : const Message* msg__,
1487 : PickleIterator* iter__) -> bool
1488 : {
1489 : typedef OptionalInputStreamParams type__;
1490 : int type;
1491 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1492 0 : mozilla::ipc::UnionTypeReadError("OptionalInputStreamParams");
1493 0 : return false;
1494 : }
1495 : // Sentinel = 'OptionalInputStreamParams'
1496 0 : if ((!((msg__)->ReadSentinel(iter__, 1355174443)))) {
1497 0 : mozilla::ipc::SentinelReadError("OptionalInputStreamParams");
1498 0 : return false;
1499 : }
1500 :
1501 0 : switch (type) {
1502 : case type__::Tvoid_t:
1503 : {
1504 : void_t tmp = void_t();
1505 0 : (*(v__)) = tmp;
1506 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
1507 0 : FatalError("Error deserializing Union type");
1508 0 : return false;
1509 : }
1510 : // Sentinel = 'Tvoid_t'
1511 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
1512 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1513 0 : return false;
1514 : }
1515 0 : return true;
1516 : }
1517 : case type__::TInputStreamParams:
1518 : {
1519 0 : InputStreamParams tmp = InputStreamParams();
1520 0 : (*(v__)) = tmp;
1521 0 : if ((!(Read((&((v__)->get_InputStreamParams())), msg__, iter__)))) {
1522 0 : FatalError("Error deserializing Union type");
1523 0 : return false;
1524 : }
1525 : // Sentinel = 'TInputStreamParams'
1526 0 : if ((!((msg__)->ReadSentinel(iter__, 55652096)))) {
1527 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1528 0 : return false;
1529 : }
1530 0 : return true;
1531 : }
1532 : default:
1533 : {
1534 0 : FatalError("unknown union type");
1535 0 : return false;
1536 : }
1537 : }
1538 : }
1539 :
1540 0 : auto PContentBridgeParent::Write(
1541 : const JSIID& v__,
1542 : Message* msg__) -> void
1543 : {
1544 0 : Write((v__).m0(), msg__);
1545 : // Sentinel = 'm0'
1546 0 : (msg__)->WriteSentinel(2819154229);
1547 0 : Write((v__).m1(), msg__);
1548 : // Sentinel = 'm1'
1549 0 : (msg__)->WriteSentinel(2819154228);
1550 0 : Write((v__).m2(), msg__);
1551 : // Sentinel = 'm2'
1552 0 : (msg__)->WriteSentinel(2819154231);
1553 0 : Write((v__).m3_0(), msg__);
1554 : // Sentinel = 'm3_0'
1555 0 : (msg__)->WriteSentinel(2771419453);
1556 0 : Write((v__).m3_1(), msg__);
1557 : // Sentinel = 'm3_1'
1558 0 : (msg__)->WriteSentinel(2771419452);
1559 0 : Write((v__).m3_2(), msg__);
1560 : // Sentinel = 'm3_2'
1561 0 : (msg__)->WriteSentinel(2771419455);
1562 0 : Write((v__).m3_3(), msg__);
1563 : // Sentinel = 'm3_3'
1564 0 : (msg__)->WriteSentinel(2771419454);
1565 0 : Write((v__).m3_4(), msg__);
1566 : // Sentinel = 'm3_4'
1567 0 : (msg__)->WriteSentinel(2771419449);
1568 0 : Write((v__).m3_5(), msg__);
1569 : // Sentinel = 'm3_5'
1570 0 : (msg__)->WriteSentinel(2771419448);
1571 0 : Write((v__).m3_6(), msg__);
1572 : // Sentinel = 'm3_6'
1573 0 : (msg__)->WriteSentinel(2771419451);
1574 0 : Write((v__).m3_7(), msg__);
1575 : // Sentinel = 'm3_7'
1576 0 : (msg__)->WriteSentinel(2771419450);
1577 0 : }
1578 :
1579 0 : auto PContentBridgeParent::Read(
1580 : JSIID* v__,
1581 : const Message* msg__,
1582 : PickleIterator* iter__) -> bool
1583 : {
1584 0 : if ((!(Read((&((v__)->m0())), msg__, iter__)))) {
1585 0 : FatalError("Error deserializing 'm0' (uint32_t) member of 'JSIID'");
1586 0 : return false;
1587 : }
1588 : // Sentinel = 'm0'
1589 0 : if ((!((msg__)->ReadSentinel(iter__, 2819154229)))) {
1590 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm0' (uint32_t) member of 'JSIID'");
1591 0 : return false;
1592 : }
1593 0 : if ((!(Read((&((v__)->m1())), msg__, iter__)))) {
1594 0 : FatalError("Error deserializing 'm1' (uint16_t) member of 'JSIID'");
1595 0 : return false;
1596 : }
1597 : // Sentinel = 'm1'
1598 0 : if ((!((msg__)->ReadSentinel(iter__, 2819154228)))) {
1599 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm1' (uint16_t) member of 'JSIID'");
1600 0 : return false;
1601 : }
1602 0 : if ((!(Read((&((v__)->m2())), msg__, iter__)))) {
1603 0 : FatalError("Error deserializing 'm2' (uint16_t) member of 'JSIID'");
1604 0 : return false;
1605 : }
1606 : // Sentinel = 'm2'
1607 0 : if ((!((msg__)->ReadSentinel(iter__, 2819154231)))) {
1608 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm2' (uint16_t) member of 'JSIID'");
1609 0 : return false;
1610 : }
1611 0 : if ((!(Read((&((v__)->m3_0())), msg__, iter__)))) {
1612 0 : FatalError("Error deserializing 'm3_0' (uint8_t) member of 'JSIID'");
1613 0 : return false;
1614 : }
1615 : // Sentinel = 'm3_0'
1616 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419453)))) {
1617 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_0' (uint8_t) member of 'JSIID'");
1618 0 : return false;
1619 : }
1620 0 : if ((!(Read((&((v__)->m3_1())), msg__, iter__)))) {
1621 0 : FatalError("Error deserializing 'm3_1' (uint8_t) member of 'JSIID'");
1622 0 : return false;
1623 : }
1624 : // Sentinel = 'm3_1'
1625 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419452)))) {
1626 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_1' (uint8_t) member of 'JSIID'");
1627 0 : return false;
1628 : }
1629 0 : if ((!(Read((&((v__)->m3_2())), msg__, iter__)))) {
1630 0 : FatalError("Error deserializing 'm3_2' (uint8_t) member of 'JSIID'");
1631 0 : return false;
1632 : }
1633 : // Sentinel = 'm3_2'
1634 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419455)))) {
1635 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_2' (uint8_t) member of 'JSIID'");
1636 0 : return false;
1637 : }
1638 0 : if ((!(Read((&((v__)->m3_3())), msg__, iter__)))) {
1639 0 : FatalError("Error deserializing 'm3_3' (uint8_t) member of 'JSIID'");
1640 0 : return false;
1641 : }
1642 : // Sentinel = 'm3_3'
1643 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419454)))) {
1644 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_3' (uint8_t) member of 'JSIID'");
1645 0 : return false;
1646 : }
1647 0 : if ((!(Read((&((v__)->m3_4())), msg__, iter__)))) {
1648 0 : FatalError("Error deserializing 'm3_4' (uint8_t) member of 'JSIID'");
1649 0 : return false;
1650 : }
1651 : // Sentinel = 'm3_4'
1652 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419449)))) {
1653 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_4' (uint8_t) member of 'JSIID'");
1654 0 : return false;
1655 : }
1656 0 : if ((!(Read((&((v__)->m3_5())), msg__, iter__)))) {
1657 0 : FatalError("Error deserializing 'm3_5' (uint8_t) member of 'JSIID'");
1658 0 : return false;
1659 : }
1660 : // Sentinel = 'm3_5'
1661 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419448)))) {
1662 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_5' (uint8_t) member of 'JSIID'");
1663 0 : return false;
1664 : }
1665 0 : if ((!(Read((&((v__)->m3_6())), msg__, iter__)))) {
1666 0 : FatalError("Error deserializing 'm3_6' (uint8_t) member of 'JSIID'");
1667 0 : return false;
1668 : }
1669 : // Sentinel = 'm3_6'
1670 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419451)))) {
1671 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_6' (uint8_t) member of 'JSIID'");
1672 0 : return false;
1673 : }
1674 0 : if ((!(Read((&((v__)->m3_7())), msg__, iter__)))) {
1675 0 : FatalError("Error deserializing 'm3_7' (uint8_t) member of 'JSIID'");
1676 0 : return false;
1677 : }
1678 : // Sentinel = 'm3_7'
1679 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419450)))) {
1680 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_7' (uint8_t) member of 'JSIID'");
1681 0 : return false;
1682 : }
1683 0 : return true;
1684 : }
1685 :
1686 0 : auto PContentBridgeParent::Write(
1687 : const JSVariant& v__,
1688 : Message* msg__) -> void
1689 : {
1690 : typedef JSVariant type__;
1691 0 : Write(int((v__).type()), msg__);
1692 : // Sentinel = 'JSVariant'
1693 0 : (msg__)->WriteSentinel(4205756945);
1694 :
1695 0 : switch ((v__).type()) {
1696 : case type__::TUndefinedVariant:
1697 : {
1698 0 : Write((v__).get_UndefinedVariant(), msg__);
1699 : // Sentinel = 'TUndefinedVariant'
1700 0 : (msg__)->WriteSentinel(309349602);
1701 0 : return;
1702 : }
1703 : case type__::TNullVariant:
1704 : {
1705 0 : Write((v__).get_NullVariant(), msg__);
1706 : // Sentinel = 'TNullVariant'
1707 0 : (msg__)->WriteSentinel(3606183426);
1708 0 : return;
1709 : }
1710 : case type__::TObjectVariant:
1711 : {
1712 0 : Write((v__).get_ObjectVariant(), msg__);
1713 : // Sentinel = 'TObjectVariant'
1714 0 : (msg__)->WriteSentinel(78811130);
1715 0 : return;
1716 : }
1717 : case type__::TSymbolVariant:
1718 : {
1719 0 : Write((v__).get_SymbolVariant(), msg__);
1720 : // Sentinel = 'TSymbolVariant'
1721 0 : (msg__)->WriteSentinel(549729725);
1722 0 : return;
1723 : }
1724 : case type__::TnsString:
1725 : {
1726 0 : Write((v__).get_nsString(), msg__);
1727 : // Sentinel = 'TnsString'
1728 0 : (msg__)->WriteSentinel(2161603959);
1729 0 : return;
1730 : }
1731 : case type__::Tdouble:
1732 : {
1733 0 : Write((v__).get_double(), msg__);
1734 : // Sentinel = 'Tdouble'
1735 0 : (msg__)->WriteSentinel(3456933244);
1736 0 : return;
1737 : }
1738 : case type__::Tbool:
1739 : {
1740 0 : Write((v__).get_bool(), msg__);
1741 : // Sentinel = 'Tbool'
1742 0 : (msg__)->WriteSentinel(1958350201);
1743 0 : return;
1744 : }
1745 : case type__::TJSIID:
1746 : {
1747 0 : Write((v__).get_JSIID(), msg__);
1748 : // Sentinel = 'TJSIID'
1749 0 : (msg__)->WriteSentinel(3312553047);
1750 0 : return;
1751 : }
1752 : default:
1753 : {
1754 0 : FatalError("unknown union type");
1755 0 : return;
1756 : }
1757 : }
1758 : }
1759 :
1760 0 : auto PContentBridgeParent::Read(
1761 : JSVariant* v__,
1762 : const Message* msg__,
1763 : PickleIterator* iter__) -> bool
1764 : {
1765 : typedef JSVariant type__;
1766 : int type;
1767 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1768 0 : mozilla::ipc::UnionTypeReadError("JSVariant");
1769 0 : return false;
1770 : }
1771 : // Sentinel = 'JSVariant'
1772 0 : if ((!((msg__)->ReadSentinel(iter__, 4205756945)))) {
1773 0 : mozilla::ipc::SentinelReadError("JSVariant");
1774 0 : return false;
1775 : }
1776 :
1777 0 : switch (type) {
1778 : case type__::TUndefinedVariant:
1779 : {
1780 0 : UndefinedVariant tmp = UndefinedVariant();
1781 0 : (*(v__)) = tmp;
1782 0 : if ((!(Read((&((v__)->get_UndefinedVariant())), msg__, iter__)))) {
1783 0 : FatalError("Error deserializing Union type");
1784 0 : return false;
1785 : }
1786 : // Sentinel = 'TUndefinedVariant'
1787 0 : if ((!((msg__)->ReadSentinel(iter__, 309349602)))) {
1788 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1789 0 : return false;
1790 : }
1791 0 : return true;
1792 : }
1793 : case type__::TNullVariant:
1794 : {
1795 0 : NullVariant tmp = NullVariant();
1796 0 : (*(v__)) = tmp;
1797 0 : if ((!(Read((&((v__)->get_NullVariant())), msg__, iter__)))) {
1798 0 : FatalError("Error deserializing Union type");
1799 0 : return false;
1800 : }
1801 : // Sentinel = 'TNullVariant'
1802 0 : if ((!((msg__)->ReadSentinel(iter__, 3606183426)))) {
1803 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1804 0 : return false;
1805 : }
1806 0 : return true;
1807 : }
1808 : case type__::TObjectVariant:
1809 : {
1810 0 : ObjectVariant tmp = ObjectVariant();
1811 0 : (*(v__)) = tmp;
1812 0 : if ((!(Read((&((v__)->get_ObjectVariant())), msg__, iter__)))) {
1813 0 : FatalError("Error deserializing Union type");
1814 0 : return false;
1815 : }
1816 : // Sentinel = 'TObjectVariant'
1817 0 : if ((!((msg__)->ReadSentinel(iter__, 78811130)))) {
1818 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1819 0 : return false;
1820 : }
1821 0 : return true;
1822 : }
1823 : case type__::TSymbolVariant:
1824 : {
1825 0 : SymbolVariant tmp = SymbolVariant();
1826 0 : (*(v__)) = tmp;
1827 0 : if ((!(Read((&((v__)->get_SymbolVariant())), msg__, iter__)))) {
1828 0 : FatalError("Error deserializing Union type");
1829 0 : return false;
1830 : }
1831 : // Sentinel = 'TSymbolVariant'
1832 0 : if ((!((msg__)->ReadSentinel(iter__, 549729725)))) {
1833 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1834 0 : return false;
1835 : }
1836 0 : return true;
1837 : }
1838 : case type__::TnsString:
1839 : {
1840 0 : nsString tmp = nsString();
1841 0 : (*(v__)) = tmp;
1842 0 : if ((!(Read((&((v__)->get_nsString())), msg__, iter__)))) {
1843 0 : FatalError("Error deserializing Union type");
1844 0 : return false;
1845 : }
1846 : // Sentinel = 'TnsString'
1847 0 : if ((!((msg__)->ReadSentinel(iter__, 2161603959)))) {
1848 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1849 0 : return false;
1850 : }
1851 0 : return true;
1852 : }
1853 : case type__::Tdouble:
1854 : {
1855 0 : double tmp = double();
1856 0 : (*(v__)) = tmp;
1857 0 : if ((!(Read((&((v__)->get_double())), msg__, iter__)))) {
1858 0 : FatalError("Error deserializing Union type");
1859 0 : return false;
1860 : }
1861 : // Sentinel = 'Tdouble'
1862 0 : if ((!((msg__)->ReadSentinel(iter__, 3456933244)))) {
1863 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1864 0 : return false;
1865 : }
1866 0 : return true;
1867 : }
1868 : case type__::Tbool:
1869 : {
1870 0 : bool tmp = bool();
1871 0 : (*(v__)) = tmp;
1872 0 : if ((!(Read((&((v__)->get_bool())), msg__, iter__)))) {
1873 0 : FatalError("Error deserializing Union type");
1874 0 : return false;
1875 : }
1876 : // Sentinel = 'Tbool'
1877 0 : if ((!((msg__)->ReadSentinel(iter__, 1958350201)))) {
1878 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1879 0 : return false;
1880 : }
1881 0 : return true;
1882 : }
1883 : case type__::TJSIID:
1884 : {
1885 0 : JSIID tmp = JSIID();
1886 0 : (*(v__)) = tmp;
1887 0 : if ((!(Read((&((v__)->get_JSIID())), msg__, iter__)))) {
1888 0 : FatalError("Error deserializing Union type");
1889 0 : return false;
1890 : }
1891 : // Sentinel = 'TJSIID'
1892 0 : if ((!((msg__)->ReadSentinel(iter__, 3312553047)))) {
1893 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1894 0 : return false;
1895 : }
1896 0 : return true;
1897 : }
1898 : default:
1899 : {
1900 0 : FatalError("unknown union type");
1901 0 : return false;
1902 : }
1903 : }
1904 : }
1905 :
1906 0 : auto PContentBridgeParent::Write(
1907 : const IPCRemoteStream& v__,
1908 : Message* msg__) -> void
1909 : {
1910 0 : Write((v__).delayedStart(), msg__);
1911 : // Sentinel = 'delayedStart'
1912 0 : (msg__)->WriteSentinel(1491822294);
1913 0 : Write((v__).stream(), msg__);
1914 : // Sentinel = 'stream'
1915 0 : (msg__)->WriteSentinel(4152748422);
1916 0 : }
1917 :
1918 0 : auto PContentBridgeParent::Read(
1919 : IPCRemoteStream* v__,
1920 : const Message* msg__,
1921 : PickleIterator* iter__) -> bool
1922 : {
1923 0 : if ((!(Read((&((v__)->delayedStart())), msg__, iter__)))) {
1924 0 : FatalError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
1925 0 : return false;
1926 : }
1927 : // Sentinel = 'delayedStart'
1928 0 : if ((!((msg__)->ReadSentinel(iter__, 1491822294)))) {
1929 0 : mozilla::ipc::SentinelReadError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
1930 0 : return false;
1931 : }
1932 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
1933 0 : FatalError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
1934 0 : return false;
1935 : }
1936 : // Sentinel = 'stream'
1937 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
1938 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
1939 0 : return false;
1940 : }
1941 0 : return true;
1942 : }
1943 :
1944 0 : auto PContentBridgeParent::Write(
1945 : const FileInputStreamParams& v__,
1946 : Message* msg__) -> void
1947 : {
1948 0 : Write((v__).fileDescriptorIndex(), msg__);
1949 : // Sentinel = 'fileDescriptorIndex'
1950 0 : (msg__)->WriteSentinel(587329112);
1951 0 : Write((v__).behaviorFlags(), msg__);
1952 : // Sentinel = 'behaviorFlags'
1953 0 : (msg__)->WriteSentinel(2404401962);
1954 0 : Write((v__).ioFlags(), msg__);
1955 : // Sentinel = 'ioFlags'
1956 0 : (msg__)->WriteSentinel(1483009730);
1957 0 : }
1958 :
1959 0 : auto PContentBridgeParent::Read(
1960 : FileInputStreamParams* v__,
1961 : const Message* msg__,
1962 : PickleIterator* iter__) -> bool
1963 : {
1964 0 : if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
1965 0 : FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
1966 0 : return false;
1967 : }
1968 : // Sentinel = 'fileDescriptorIndex'
1969 0 : if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
1970 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
1971 0 : return false;
1972 : }
1973 0 : if ((!(Read((&((v__)->behaviorFlags())), msg__, iter__)))) {
1974 0 : FatalError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
1975 0 : return false;
1976 : }
1977 : // Sentinel = 'behaviorFlags'
1978 0 : if ((!((msg__)->ReadSentinel(iter__, 2404401962)))) {
1979 0 : mozilla::ipc::SentinelReadError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
1980 0 : return false;
1981 : }
1982 0 : if ((!(Read((&((v__)->ioFlags())), msg__, iter__)))) {
1983 0 : FatalError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
1984 0 : return false;
1985 : }
1986 : // Sentinel = 'ioFlags'
1987 0 : if ((!((msg__)->ReadSentinel(iter__, 1483009730)))) {
1988 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
1989 0 : return false;
1990 : }
1991 0 : return true;
1992 : }
1993 :
1994 0 : auto PContentBridgeParent::Write(
1995 : const RegisteredSymbol& v__,
1996 : Message* msg__) -> void
1997 : {
1998 0 : Write((v__).key(), msg__);
1999 : // Sentinel = 'key'
2000 0 : (msg__)->WriteSentinel(35142870);
2001 0 : }
2002 :
2003 0 : auto PContentBridgeParent::Read(
2004 : RegisteredSymbol* v__,
2005 : const Message* msg__,
2006 : PickleIterator* iter__) -> bool
2007 : {
2008 0 : if ((!(Read((&((v__)->key())), msg__, iter__)))) {
2009 0 : FatalError("Error deserializing 'key' (nsString) member of 'RegisteredSymbol'");
2010 0 : return false;
2011 : }
2012 : // Sentinel = 'key'
2013 0 : if ((!((msg__)->ReadSentinel(iter__, 35142870)))) {
2014 0 : mozilla::ipc::SentinelReadError("Error deserializing 'key' (nsString) member of 'RegisteredSymbol'");
2015 0 : return false;
2016 : }
2017 0 : return true;
2018 : }
2019 :
2020 0 : auto PContentBridgeParent::Write(
2021 : const IPCBlobInputStreamParams& v__,
2022 : Message* msg__) -> void
2023 : {
2024 0 : Write((v__).id(), msg__);
2025 : // Sentinel = 'id'
2026 0 : (msg__)->WriteSentinel(2794505629);
2027 0 : }
2028 :
2029 0 : auto PContentBridgeParent::Read(
2030 : IPCBlobInputStreamParams* v__,
2031 : const Message* msg__,
2032 : PickleIterator* iter__) -> bool
2033 : {
2034 0 : if ((!(Read((&((v__)->id())), msg__, iter__)))) {
2035 0 : FatalError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
2036 0 : return false;
2037 : }
2038 : // Sentinel = 'id'
2039 0 : if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
2040 0 : mozilla::ipc::SentinelReadError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
2041 0 : return false;
2042 : }
2043 0 : return true;
2044 : }
2045 :
2046 0 : auto PContentBridgeParent::Write(
2047 : const IPCFile& v__,
2048 : Message* msg__) -> void
2049 : {
2050 0 : Write((v__).name(), msg__);
2051 : // Sentinel = 'name'
2052 0 : (msg__)->WriteSentinel(15034981);
2053 0 : Write((v__).lastModified(), msg__);
2054 : // Sentinel = 'lastModified'
2055 0 : (msg__)->WriteSentinel(3456113257);
2056 0 : Write((v__).DOMPath(), msg__);
2057 : // Sentinel = 'DOMPath'
2058 0 : (msg__)->WriteSentinel(1724352494);
2059 0 : Write((v__).fullPath(), msg__);
2060 : // Sentinel = 'fullPath'
2061 0 : (msg__)->WriteSentinel(385652698);
2062 0 : Write((v__).isDirectory(), msg__);
2063 : // Sentinel = 'isDirectory'
2064 0 : (msg__)->WriteSentinel(2309743506);
2065 0 : }
2066 :
2067 0 : auto PContentBridgeParent::Read(
2068 : IPCFile* v__,
2069 : const Message* msg__,
2070 : PickleIterator* iter__) -> bool
2071 : {
2072 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
2073 0 : FatalError("Error deserializing 'name' (nsString) member of 'IPCFile'");
2074 0 : return false;
2075 : }
2076 : // Sentinel = 'name'
2077 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
2078 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsString) member of 'IPCFile'");
2079 0 : return false;
2080 : }
2081 0 : if ((!(Read((&((v__)->lastModified())), msg__, iter__)))) {
2082 0 : FatalError("Error deserializing 'lastModified' (int64_t) member of 'IPCFile'");
2083 0 : return false;
2084 : }
2085 : // Sentinel = 'lastModified'
2086 0 : if ((!((msg__)->ReadSentinel(iter__, 3456113257)))) {
2087 0 : mozilla::ipc::SentinelReadError("Error deserializing 'lastModified' (int64_t) member of 'IPCFile'");
2088 0 : return false;
2089 : }
2090 0 : if ((!(Read((&((v__)->DOMPath())), msg__, iter__)))) {
2091 0 : FatalError("Error deserializing 'DOMPath' (nsString) member of 'IPCFile'");
2092 0 : return false;
2093 : }
2094 : // Sentinel = 'DOMPath'
2095 0 : if ((!((msg__)->ReadSentinel(iter__, 1724352494)))) {
2096 0 : mozilla::ipc::SentinelReadError("Error deserializing 'DOMPath' (nsString) member of 'IPCFile'");
2097 0 : return false;
2098 : }
2099 0 : if ((!(Read((&((v__)->fullPath())), msg__, iter__)))) {
2100 0 : FatalError("Error deserializing 'fullPath' (nsString) member of 'IPCFile'");
2101 0 : return false;
2102 : }
2103 : // Sentinel = 'fullPath'
2104 0 : if ((!((msg__)->ReadSentinel(iter__, 385652698)))) {
2105 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fullPath' (nsString) member of 'IPCFile'");
2106 0 : return false;
2107 : }
2108 0 : if ((!(Read((&((v__)->isDirectory())), msg__, iter__)))) {
2109 0 : FatalError("Error deserializing 'isDirectory' (bool) member of 'IPCFile'");
2110 0 : return false;
2111 : }
2112 : // Sentinel = 'isDirectory'
2113 0 : if ((!((msg__)->ReadSentinel(iter__, 2309743506)))) {
2114 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isDirectory' (bool) member of 'IPCFile'");
2115 0 : return false;
2116 : }
2117 0 : return true;
2118 : }
2119 :
2120 0 : auto PContentBridgeParent::Write(
2121 : const IPCFileUnion& v__,
2122 : Message* msg__) -> void
2123 : {
2124 : typedef IPCFileUnion type__;
2125 0 : Write(int((v__).type()), msg__);
2126 : // Sentinel = 'IPCFileUnion'
2127 0 : (msg__)->WriteSentinel(1913022529);
2128 :
2129 0 : switch ((v__).type()) {
2130 : case type__::Tvoid_t:
2131 : {
2132 0 : Write((v__).get_void_t(), msg__);
2133 : // Sentinel = 'Tvoid_t'
2134 0 : (msg__)->WriteSentinel(3041273328);
2135 0 : return;
2136 : }
2137 : case type__::TIPCFile:
2138 : {
2139 0 : Write((v__).get_IPCFile(), msg__);
2140 : // Sentinel = 'TIPCFile'
2141 0 : (msg__)->WriteSentinel(3562676876);
2142 0 : return;
2143 : }
2144 : default:
2145 : {
2146 0 : FatalError("unknown union type");
2147 0 : return;
2148 : }
2149 : }
2150 : }
2151 :
2152 0 : auto PContentBridgeParent::Read(
2153 : IPCFileUnion* v__,
2154 : const Message* msg__,
2155 : PickleIterator* iter__) -> bool
2156 : {
2157 : typedef IPCFileUnion type__;
2158 : int type;
2159 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2160 0 : mozilla::ipc::UnionTypeReadError("IPCFileUnion");
2161 0 : return false;
2162 : }
2163 : // Sentinel = 'IPCFileUnion'
2164 0 : if ((!((msg__)->ReadSentinel(iter__, 1913022529)))) {
2165 0 : mozilla::ipc::SentinelReadError("IPCFileUnion");
2166 0 : return false;
2167 : }
2168 :
2169 0 : switch (type) {
2170 : case type__::Tvoid_t:
2171 : {
2172 : void_t tmp = void_t();
2173 0 : (*(v__)) = tmp;
2174 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
2175 0 : FatalError("Error deserializing Union type");
2176 0 : return false;
2177 : }
2178 : // Sentinel = 'Tvoid_t'
2179 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
2180 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2181 0 : return false;
2182 : }
2183 0 : return true;
2184 : }
2185 : case type__::TIPCFile:
2186 : {
2187 0 : IPCFile tmp = IPCFile();
2188 0 : (*(v__)) = tmp;
2189 0 : if ((!(Read((&((v__)->get_IPCFile())), msg__, iter__)))) {
2190 0 : FatalError("Error deserializing Union type");
2191 0 : return false;
2192 : }
2193 : // Sentinel = 'TIPCFile'
2194 0 : if ((!((msg__)->ReadSentinel(iter__, 3562676876)))) {
2195 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2196 0 : return false;
2197 : }
2198 0 : return true;
2199 : }
2200 : default:
2201 : {
2202 0 : FatalError("unknown union type");
2203 0 : return false;
2204 : }
2205 : }
2206 : }
2207 :
2208 0 : auto PContentBridgeParent::Write(
2209 : const PBrowserOrId& v__,
2210 : Message* msg__) -> void
2211 : {
2212 : typedef PBrowserOrId type__;
2213 0 : Write(int((v__).type()), msg__);
2214 : // Sentinel = 'PBrowserOrId'
2215 0 : (msg__)->WriteSentinel(1715137324);
2216 :
2217 0 : switch ((v__).type()) {
2218 : case type__::TPBrowserParent:
2219 : {
2220 0 : Write((v__).get_PBrowserParent(), msg__, true);
2221 : // Sentinel = 'TPBrowserParent'
2222 0 : (msg__)->WriteSentinel(3996262243);
2223 0 : return;
2224 : }
2225 : case type__::TPBrowserChild:
2226 : {
2227 0 : FatalError("wrong side!");
2228 0 : return;
2229 : }
2230 : case type__::TTabId:
2231 : {
2232 0 : Write((v__).get_TabId(), msg__);
2233 : // Sentinel = 'TTabId'
2234 0 : (msg__)->WriteSentinel(1071104628);
2235 0 : return;
2236 : }
2237 : default:
2238 : {
2239 0 : FatalError("unknown union type");
2240 0 : return;
2241 : }
2242 : }
2243 : }
2244 :
2245 0 : auto PContentBridgeParent::Read(
2246 : PBrowserOrId* v__,
2247 : const Message* msg__,
2248 : PickleIterator* iter__) -> bool
2249 : {
2250 : typedef PBrowserOrId type__;
2251 : int type;
2252 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2253 0 : mozilla::ipc::UnionTypeReadError("PBrowserOrId");
2254 0 : return false;
2255 : }
2256 : // Sentinel = 'PBrowserOrId'
2257 0 : if ((!((msg__)->ReadSentinel(iter__, 1715137324)))) {
2258 0 : mozilla::ipc::SentinelReadError("PBrowserOrId");
2259 0 : return false;
2260 : }
2261 :
2262 0 : switch (type) {
2263 : case type__::TPBrowserParent:
2264 : {
2265 0 : return false;
2266 : }
2267 : case type__::TPBrowserChild:
2268 : {
2269 0 : PBrowserParent* tmp = nullptr;
2270 0 : (*(v__)) = tmp;
2271 0 : if ((!(Read((&((v__)->get_PBrowserParent())), msg__, iter__, true)))) {
2272 0 : FatalError("Error deserializing Union type");
2273 0 : return false;
2274 : }
2275 : // Sentinel = 'TPBrowserChild'
2276 0 : if ((!((msg__)->ReadSentinel(iter__, 2417584432)))) {
2277 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2278 0 : return false;
2279 : }
2280 0 : return true;
2281 : }
2282 : case type__::TTabId:
2283 : {
2284 0 : TabId tmp = TabId();
2285 0 : (*(v__)) = tmp;
2286 0 : if ((!(Read((&((v__)->get_TabId())), msg__, iter__)))) {
2287 0 : FatalError("Error deserializing Union type");
2288 0 : return false;
2289 : }
2290 : // Sentinel = 'TTabId'
2291 0 : if ((!((msg__)->ReadSentinel(iter__, 1071104628)))) {
2292 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2293 0 : return false;
2294 : }
2295 0 : return true;
2296 : }
2297 : default:
2298 : {
2299 0 : FatalError("unknown union type");
2300 0 : return false;
2301 : }
2302 : }
2303 : }
2304 :
2305 0 : auto PContentBridgeParent::Write(
2306 : const FileDescriptor& v__,
2307 : Message* msg__) -> void
2308 : {
2309 0 : FileDescriptor::PickleType pfd = (v__).ShareTo(FileDescriptor::IPDLPrivate(), OtherPid());
2310 0 : IPC::WriteParam(msg__, pfd);
2311 0 : }
2312 :
2313 0 : auto PContentBridgeParent::Read(
2314 : FileDescriptor* v__,
2315 : const Message* msg__,
2316 : PickleIterator* iter__) -> bool
2317 : {
2318 0 : FileDescriptor::PickleType pfd;
2319 0 : if ((!(IPC::ReadParam(msg__, iter__, (&(pfd)))))) {
2320 0 : return false;
2321 : }
2322 :
2323 0 : FileDescriptor fd = FileDescriptor(FileDescriptor::IPDLPrivate(), pfd);
2324 0 : if ((!((fd).IsValid()))) {
2325 0 : mozilla::ipc::ProtocolErrorBreakpoint("[PContentBridgeParent] Received an invalid file descriptor!");
2326 : }
2327 :
2328 0 : (*(v__)) = fd;
2329 0 : return true;
2330 : }
2331 :
2332 0 : auto PContentBridgeParent::Write(
2333 : const MessagePortIdentifier& v__,
2334 : Message* msg__) -> void
2335 : {
2336 0 : Write((v__).uuid(), msg__);
2337 : // Sentinel = 'uuid'
2338 0 : (msg__)->WriteSentinel(1982267941);
2339 0 : Write((v__).destinationUuid(), msg__);
2340 : // Sentinel = 'destinationUuid'
2341 0 : (msg__)->WriteSentinel(372087918);
2342 0 : Write((v__).sequenceId(), msg__);
2343 : // Sentinel = 'sequenceId'
2344 0 : (msg__)->WriteSentinel(2743535618);
2345 0 : Write((v__).neutered(), msg__);
2346 : // Sentinel = 'neutered'
2347 0 : (msg__)->WriteSentinel(520678014);
2348 0 : }
2349 :
2350 0 : auto PContentBridgeParent::Read(
2351 : MessagePortIdentifier* v__,
2352 : const Message* msg__,
2353 : PickleIterator* iter__) -> bool
2354 : {
2355 0 : if ((!(Read((&((v__)->uuid())), msg__, iter__)))) {
2356 0 : FatalError("Error deserializing 'uuid' (nsID) member of 'MessagePortIdentifier'");
2357 0 : return false;
2358 : }
2359 : // Sentinel = 'uuid'
2360 0 : if ((!((msg__)->ReadSentinel(iter__, 1982267941)))) {
2361 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uuid' (nsID) member of 'MessagePortIdentifier'");
2362 0 : return false;
2363 : }
2364 0 : if ((!(Read((&((v__)->destinationUuid())), msg__, iter__)))) {
2365 0 : FatalError("Error deserializing 'destinationUuid' (nsID) member of 'MessagePortIdentifier'");
2366 0 : return false;
2367 : }
2368 : // Sentinel = 'destinationUuid'
2369 0 : if ((!((msg__)->ReadSentinel(iter__, 372087918)))) {
2370 0 : mozilla::ipc::SentinelReadError("Error deserializing 'destinationUuid' (nsID) member of 'MessagePortIdentifier'");
2371 0 : return false;
2372 : }
2373 0 : if ((!(Read((&((v__)->sequenceId())), msg__, iter__)))) {
2374 0 : FatalError("Error deserializing 'sequenceId' (uint32_t) member of 'MessagePortIdentifier'");
2375 0 : return false;
2376 : }
2377 : // Sentinel = 'sequenceId'
2378 0 : if ((!((msg__)->ReadSentinel(iter__, 2743535618)))) {
2379 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sequenceId' (uint32_t) member of 'MessagePortIdentifier'");
2380 0 : return false;
2381 : }
2382 0 : if ((!(Read((&((v__)->neutered())), msg__, iter__)))) {
2383 0 : FatalError("Error deserializing 'neutered' (bool) member of 'MessagePortIdentifier'");
2384 0 : return false;
2385 : }
2386 : // Sentinel = 'neutered'
2387 0 : if ((!((msg__)->ReadSentinel(iter__, 520678014)))) {
2388 0 : mozilla::ipc::SentinelReadError("Error deserializing 'neutered' (bool) member of 'MessagePortIdentifier'");
2389 0 : return false;
2390 : }
2391 0 : return true;
2392 : }
2393 :
2394 0 : auto PContentBridgeParent::Write(
2395 : const InputStreamParamsWithFds& v__,
2396 : Message* msg__) -> void
2397 : {
2398 0 : Write((v__).stream(), msg__);
2399 : // Sentinel = 'stream'
2400 0 : (msg__)->WriteSentinel(4152748422);
2401 0 : Write((v__).optionalFds(), msg__);
2402 : // Sentinel = 'optionalFds'
2403 0 : (msg__)->WriteSentinel(1021803302);
2404 0 : }
2405 :
2406 0 : auto PContentBridgeParent::Read(
2407 : InputStreamParamsWithFds* v__,
2408 : const Message* msg__,
2409 : PickleIterator* iter__) -> bool
2410 : {
2411 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
2412 0 : FatalError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
2413 0 : return false;
2414 : }
2415 : // Sentinel = 'stream'
2416 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
2417 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
2418 0 : return false;
2419 : }
2420 0 : if ((!(Read((&((v__)->optionalFds())), msg__, iter__)))) {
2421 0 : FatalError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
2422 0 : return false;
2423 : }
2424 : // Sentinel = 'optionalFds'
2425 0 : if ((!((msg__)->ReadSentinel(iter__, 1021803302)))) {
2426 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
2427 0 : return false;
2428 : }
2429 0 : return true;
2430 : }
2431 :
2432 0 : auto PContentBridgeParent::Write(
2433 : const IPCBlobStream& v__,
2434 : Message* msg__) -> void
2435 : {
2436 : typedef IPCBlobStream type__;
2437 0 : Write(int((v__).type()), msg__);
2438 : // Sentinel = 'IPCBlobStream'
2439 0 : (msg__)->WriteSentinel(2926762354);
2440 :
2441 0 : switch ((v__).type()) {
2442 : case type__::TPIPCBlobInputStreamParent:
2443 : {
2444 0 : Write((v__).get_PIPCBlobInputStreamParent(), msg__, false);
2445 : // Sentinel = 'TPIPCBlobInputStreamParent'
2446 0 : (msg__)->WriteSentinel(2944059743);
2447 0 : return;
2448 : }
2449 : case type__::TPIPCBlobInputStreamChild:
2450 : {
2451 0 : FatalError("wrong side!");
2452 0 : return;
2453 : }
2454 : case type__::TIPCStream:
2455 : {
2456 0 : Write((v__).get_IPCStream(), msg__);
2457 : // Sentinel = 'TIPCStream'
2458 0 : (msg__)->WriteSentinel(40701900);
2459 0 : return;
2460 : }
2461 : default:
2462 : {
2463 0 : FatalError("unknown union type");
2464 0 : return;
2465 : }
2466 : }
2467 : }
2468 :
2469 0 : auto PContentBridgeParent::Read(
2470 : IPCBlobStream* v__,
2471 : const Message* msg__,
2472 : PickleIterator* iter__) -> bool
2473 : {
2474 : typedef IPCBlobStream type__;
2475 : int type;
2476 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2477 0 : mozilla::ipc::UnionTypeReadError("IPCBlobStream");
2478 0 : return false;
2479 : }
2480 : // Sentinel = 'IPCBlobStream'
2481 0 : if ((!((msg__)->ReadSentinel(iter__, 2926762354)))) {
2482 0 : mozilla::ipc::SentinelReadError("IPCBlobStream");
2483 0 : return false;
2484 : }
2485 :
2486 0 : switch (type) {
2487 : case type__::TPIPCBlobInputStreamParent:
2488 : {
2489 0 : return false;
2490 : }
2491 : case type__::TPIPCBlobInputStreamChild:
2492 : {
2493 0 : PIPCBlobInputStreamParent* tmp = nullptr;
2494 0 : (*(v__)) = tmp;
2495 0 : if ((!(Read((&((v__)->get_PIPCBlobInputStreamParent())), msg__, iter__, false)))) {
2496 0 : FatalError("Error deserializing Union type");
2497 0 : return false;
2498 : }
2499 : // Sentinel = 'TPIPCBlobInputStreamChild'
2500 0 : if ((!((msg__)->ReadSentinel(iter__, 3349556844)))) {
2501 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2502 0 : return false;
2503 : }
2504 0 : return true;
2505 : }
2506 : case type__::TIPCStream:
2507 : {
2508 0 : IPCStream tmp = IPCStream();
2509 0 : (*(v__)) = tmp;
2510 0 : if ((!(Read((&((v__)->get_IPCStream())), msg__, iter__)))) {
2511 0 : FatalError("Error deserializing Union type");
2512 0 : return false;
2513 : }
2514 : // Sentinel = 'TIPCStream'
2515 0 : if ((!((msg__)->ReadSentinel(iter__, 40701900)))) {
2516 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2517 0 : return false;
2518 : }
2519 0 : return true;
2520 : }
2521 : default:
2522 : {
2523 0 : FatalError("unknown union type");
2524 0 : return false;
2525 : }
2526 : }
2527 : }
2528 :
2529 0 : auto PContentBridgeParent::Write(
2530 : const nsTArray<IPCBlob>& v__,
2531 : Message* msg__) -> void
2532 : {
2533 0 : uint32_t length = (v__).Length();
2534 0 : Write(length, msg__);
2535 : // Sentinel = ('length', 'IPCBlob[]')
2536 0 : (msg__)->WriteSentinel(894413667);
2537 :
2538 0 : for (auto& elem : v__) {
2539 0 : Write(elem, msg__);
2540 : // Sentinel = 'IPCBlob[]'
2541 0 : (msg__)->WriteSentinel(3337464726);
2542 : }
2543 0 : }
2544 :
2545 0 : auto PContentBridgeParent::Read(
2546 : nsTArray<IPCBlob>* v__,
2547 : const Message* msg__,
2548 : PickleIterator* iter__) -> bool
2549 : {
2550 0 : nsTArray<IPCBlob> fa;
2551 : uint32_t length;
2552 0 : if ((!(Read((&(length)), msg__, iter__)))) {
2553 0 : mozilla::ipc::ArrayLengthReadError("IPCBlob[]");
2554 0 : return false;
2555 : }
2556 : // Sentinel = ('length', 'IPCBlob[]')
2557 0 : if ((!((msg__)->ReadSentinel(iter__, 894413667)))) {
2558 0 : mozilla::ipc::SentinelReadError("IPCBlob[]");
2559 0 : return false;
2560 : }
2561 :
2562 0 : IPCBlob* elems = (fa).AppendElements(length);
2563 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
2564 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
2565 0 : FatalError("Error deserializing 'IPCBlob[i]'");
2566 0 : return false;
2567 : }
2568 : // Sentinel = 'IPCBlob[]'
2569 0 : if ((!((msg__)->ReadSentinel(iter__, 3337464726)))) {
2570 0 : mozilla::ipc::SentinelReadError("Error deserializing 'IPCBlob[i]'");
2571 0 : return false;
2572 : }
2573 : }
2574 0 : (v__)->SwapElements(fa);
2575 0 : return true;
2576 : }
2577 :
2578 0 : auto PContentBridgeParent::Write(
2579 : const ClonedMessageData& v__,
2580 : Message* msg__) -> void
2581 : {
2582 0 : Write((v__).data(), msg__);
2583 : // Sentinel = 'data'
2584 0 : (msg__)->WriteSentinel(843352540);
2585 0 : Write((v__).blobs(), msg__);
2586 : // Sentinel = 'blobs'
2587 0 : (msg__)->WriteSentinel(635500709);
2588 0 : Write((v__).inputStreams(), msg__);
2589 : // Sentinel = 'inputStreams'
2590 0 : (msg__)->WriteSentinel(435739475);
2591 0 : Write((v__).identfiers(), msg__);
2592 : // Sentinel = 'identfiers'
2593 0 : (msg__)->WriteSentinel(3130566733);
2594 0 : }
2595 :
2596 0 : auto PContentBridgeParent::Read(
2597 : ClonedMessageData* v__,
2598 : const Message* msg__,
2599 : PickleIterator* iter__) -> bool
2600 : {
2601 0 : if ((!(Read((&((v__)->data())), msg__, iter__)))) {
2602 0 : FatalError("Error deserializing 'data' (SerializedStructuredCloneBuffer) member of 'ClonedMessageData'");
2603 0 : return false;
2604 : }
2605 : // Sentinel = 'data'
2606 0 : if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
2607 0 : mozilla::ipc::SentinelReadError("Error deserializing 'data' (SerializedStructuredCloneBuffer) member of 'ClonedMessageData'");
2608 0 : return false;
2609 : }
2610 0 : if ((!(Read((&((v__)->blobs())), msg__, iter__)))) {
2611 0 : FatalError("Error deserializing 'blobs' (IPCBlob[]) member of 'ClonedMessageData'");
2612 0 : return false;
2613 : }
2614 : // Sentinel = 'blobs'
2615 0 : if ((!((msg__)->ReadSentinel(iter__, 635500709)))) {
2616 0 : mozilla::ipc::SentinelReadError("Error deserializing 'blobs' (IPCBlob[]) member of 'ClonedMessageData'");
2617 0 : return false;
2618 : }
2619 0 : if ((!(Read((&((v__)->inputStreams())), msg__, iter__)))) {
2620 0 : FatalError("Error deserializing 'inputStreams' (IPCStream[]) member of 'ClonedMessageData'");
2621 0 : return false;
2622 : }
2623 : // Sentinel = 'inputStreams'
2624 0 : if ((!((msg__)->ReadSentinel(iter__, 435739475)))) {
2625 0 : mozilla::ipc::SentinelReadError("Error deserializing 'inputStreams' (IPCStream[]) member of 'ClonedMessageData'");
2626 0 : return false;
2627 : }
2628 0 : if ((!(Read((&((v__)->identfiers())), msg__, iter__)))) {
2629 0 : FatalError("Error deserializing 'identfiers' (MessagePortIdentifier[]) member of 'ClonedMessageData'");
2630 0 : return false;
2631 : }
2632 : // Sentinel = 'identfiers'
2633 0 : if ((!((msg__)->ReadSentinel(iter__, 3130566733)))) {
2634 0 : mozilla::ipc::SentinelReadError("Error deserializing 'identfiers' (MessagePortIdentifier[]) member of 'ClonedMessageData'");
2635 0 : return false;
2636 : }
2637 0 : return true;
2638 : }
2639 :
2640 0 : auto PContentBridgeParent::Write(
2641 : const nsTArray<HeaderEntry>& v__,
2642 : Message* msg__) -> void
2643 : {
2644 0 : uint32_t length = (v__).Length();
2645 0 : Write(length, msg__);
2646 : // Sentinel = ('length', 'HeaderEntry[]')
2647 0 : (msg__)->WriteSentinel(2689457705);
2648 :
2649 0 : for (auto& elem : v__) {
2650 0 : Write(elem, msg__);
2651 : // Sentinel = 'HeaderEntry[]'
2652 0 : (msg__)->WriteSentinel(454836120);
2653 : }
2654 0 : }
2655 :
2656 0 : auto PContentBridgeParent::Read(
2657 : nsTArray<HeaderEntry>* v__,
2658 : const Message* msg__,
2659 : PickleIterator* iter__) -> bool
2660 : {
2661 0 : nsTArray<HeaderEntry> fa;
2662 : uint32_t length;
2663 0 : if ((!(Read((&(length)), msg__, iter__)))) {
2664 0 : mozilla::ipc::ArrayLengthReadError("HeaderEntry[]");
2665 0 : return false;
2666 : }
2667 : // Sentinel = ('length', 'HeaderEntry[]')
2668 0 : if ((!((msg__)->ReadSentinel(iter__, 2689457705)))) {
2669 0 : mozilla::ipc::SentinelReadError("HeaderEntry[]");
2670 0 : return false;
2671 : }
2672 :
2673 0 : HeaderEntry* elems = (fa).AppendElements(length);
2674 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
2675 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
2676 0 : FatalError("Error deserializing 'HeaderEntry[i]'");
2677 0 : return false;
2678 : }
2679 : // Sentinel = 'HeaderEntry[]'
2680 0 : if ((!((msg__)->ReadSentinel(iter__, 454836120)))) {
2681 0 : mozilla::ipc::SentinelReadError("Error deserializing 'HeaderEntry[i]'");
2682 0 : return false;
2683 : }
2684 : }
2685 0 : (v__)->SwapElements(fa);
2686 0 : return true;
2687 : }
2688 :
2689 0 : auto PContentBridgeParent::Write(
2690 : const nsTArray<CpowEntry>& v__,
2691 : Message* msg__) -> void
2692 : {
2693 0 : uint32_t length = (v__).Length();
2694 0 : Write(length, msg__);
2695 : // Sentinel = ('length', 'CpowEntry[]')
2696 0 : (msg__)->WriteSentinel(2290776287);
2697 :
2698 0 : for (auto& elem : v__) {
2699 0 : Write(elem, msg__);
2700 : // Sentinel = 'CpowEntry[]'
2701 0 : (msg__)->WriteSentinel(2263212074);
2702 : }
2703 0 : }
2704 :
2705 0 : auto PContentBridgeParent::Read(
2706 : nsTArray<CpowEntry>* v__,
2707 : const Message* msg__,
2708 : PickleIterator* iter__) -> bool
2709 : {
2710 0 : nsTArray<CpowEntry> fa;
2711 : uint32_t length;
2712 0 : if ((!(Read((&(length)), msg__, iter__)))) {
2713 0 : mozilla::ipc::ArrayLengthReadError("CpowEntry[]");
2714 0 : return false;
2715 : }
2716 : // Sentinel = ('length', 'CpowEntry[]')
2717 0 : if ((!((msg__)->ReadSentinel(iter__, 2290776287)))) {
2718 0 : mozilla::ipc::SentinelReadError("CpowEntry[]");
2719 0 : return false;
2720 : }
2721 :
2722 0 : CpowEntry* elems = (fa).AppendElements(length);
2723 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
2724 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
2725 0 : FatalError("Error deserializing 'CpowEntry[i]'");
2726 0 : return false;
2727 : }
2728 : // Sentinel = 'CpowEntry[]'
2729 0 : if ((!((msg__)->ReadSentinel(iter__, 2263212074)))) {
2730 0 : mozilla::ipc::SentinelReadError("Error deserializing 'CpowEntry[i]'");
2731 0 : return false;
2732 : }
2733 : }
2734 0 : (v__)->SwapElements(fa);
2735 0 : return true;
2736 : }
2737 :
2738 0 : auto PContentBridgeParent::Write(
2739 : const SlicedInputStreamParams& v__,
2740 : Message* msg__) -> void
2741 : {
2742 0 : Write((v__).stream(), msg__);
2743 : // Sentinel = 'stream'
2744 0 : (msg__)->WriteSentinel(4152748422);
2745 0 : Write((v__).start(), msg__);
2746 : // Sentinel = 'start'
2747 0 : (msg__)->WriteSentinel(2088644401);
2748 0 : Write((v__).length(), msg__);
2749 : // Sentinel = 'length'
2750 0 : (msg__)->WriteSentinel(1726618354);
2751 0 : Write((v__).curPos(), msg__);
2752 : // Sentinel = 'curPos'
2753 0 : (msg__)->WriteSentinel(4042140974);
2754 0 : Write((v__).closed(), msg__);
2755 : // Sentinel = 'closed'
2756 0 : (msg__)->WriteSentinel(561249462);
2757 0 : }
2758 :
2759 0 : auto PContentBridgeParent::Read(
2760 : SlicedInputStreamParams* v__,
2761 : const Message* msg__,
2762 : PickleIterator* iter__) -> bool
2763 : {
2764 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
2765 0 : FatalError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
2766 0 : return false;
2767 : }
2768 : // Sentinel = 'stream'
2769 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
2770 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
2771 0 : return false;
2772 : }
2773 0 : if ((!(Read((&((v__)->start())), msg__, iter__)))) {
2774 0 : FatalError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
2775 0 : return false;
2776 : }
2777 : // Sentinel = 'start'
2778 0 : if ((!((msg__)->ReadSentinel(iter__, 2088644401)))) {
2779 0 : mozilla::ipc::SentinelReadError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
2780 0 : return false;
2781 : }
2782 0 : if ((!(Read((&((v__)->length())), msg__, iter__)))) {
2783 0 : FatalError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
2784 0 : return false;
2785 : }
2786 : // Sentinel = 'length'
2787 0 : if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
2788 0 : mozilla::ipc::SentinelReadError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
2789 0 : return false;
2790 : }
2791 0 : if ((!(Read((&((v__)->curPos())), msg__, iter__)))) {
2792 0 : FatalError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
2793 0 : return false;
2794 : }
2795 : // Sentinel = 'curPos'
2796 0 : if ((!((msg__)->ReadSentinel(iter__, 4042140974)))) {
2797 0 : mozilla::ipc::SentinelReadError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
2798 0 : return false;
2799 : }
2800 0 : if ((!(Read((&((v__)->closed())), msg__, iter__)))) {
2801 0 : FatalError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
2802 0 : return false;
2803 : }
2804 : // Sentinel = 'closed'
2805 0 : if ((!((msg__)->ReadSentinel(iter__, 561249462)))) {
2806 0 : mozilla::ipc::SentinelReadError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
2807 0 : return false;
2808 : }
2809 0 : return true;
2810 : }
2811 :
2812 0 : auto PContentBridgeParent::Write(
2813 : const IPCRemoteStreamType& v__,
2814 : Message* msg__) -> void
2815 : {
2816 : typedef IPCRemoteStreamType type__;
2817 0 : Write(int((v__).type()), msg__);
2818 : // Sentinel = 'IPCRemoteStreamType'
2819 0 : (msg__)->WriteSentinel(391674895);
2820 :
2821 0 : switch ((v__).type()) {
2822 : case type__::TPChildToParentStreamParent:
2823 : {
2824 0 : Write((v__).get_PChildToParentStreamParent(), msg__, false);
2825 : // Sentinel = 'TPChildToParentStreamParent'
2826 0 : (msg__)->WriteSentinel(2724777622);
2827 0 : return;
2828 : }
2829 : case type__::TPChildToParentStreamChild:
2830 : {
2831 0 : FatalError("wrong side!");
2832 0 : return;
2833 : }
2834 : case type__::TPParentToChildStreamParent:
2835 : {
2836 0 : Write((v__).get_PParentToChildStreamParent(), msg__, false);
2837 : // Sentinel = 'TPParentToChildStreamParent'
2838 0 : (msg__)->WriteSentinel(3335986876);
2839 0 : return;
2840 : }
2841 : case type__::TPParentToChildStreamChild:
2842 : {
2843 0 : FatalError("wrong side!");
2844 0 : return;
2845 : }
2846 : default:
2847 : {
2848 0 : FatalError("unknown union type");
2849 0 : return;
2850 : }
2851 : }
2852 : }
2853 :
2854 0 : auto PContentBridgeParent::Read(
2855 : IPCRemoteStreamType* v__,
2856 : const Message* msg__,
2857 : PickleIterator* iter__) -> bool
2858 : {
2859 : typedef IPCRemoteStreamType type__;
2860 : int type;
2861 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2862 0 : mozilla::ipc::UnionTypeReadError("IPCRemoteStreamType");
2863 0 : return false;
2864 : }
2865 : // Sentinel = 'IPCRemoteStreamType'
2866 0 : if ((!((msg__)->ReadSentinel(iter__, 391674895)))) {
2867 0 : mozilla::ipc::SentinelReadError("IPCRemoteStreamType");
2868 0 : return false;
2869 : }
2870 :
2871 0 : switch (type) {
2872 : case type__::TPChildToParentStreamParent:
2873 : {
2874 0 : return false;
2875 : }
2876 : case type__::TPChildToParentStreamChild:
2877 : {
2878 0 : PChildToParentStreamParent* tmp = nullptr;
2879 0 : (*(v__)) = tmp;
2880 0 : if ((!(Read((&((v__)->get_PChildToParentStreamParent())), msg__, iter__, false)))) {
2881 0 : FatalError("Error deserializing Union type");
2882 0 : return false;
2883 : }
2884 : // Sentinel = 'TPChildToParentStreamChild'
2885 0 : if ((!((msg__)->ReadSentinel(iter__, 1882094295)))) {
2886 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2887 0 : return false;
2888 : }
2889 0 : return true;
2890 : }
2891 : case type__::TPParentToChildStreamParent:
2892 : {
2893 0 : return false;
2894 : }
2895 : case type__::TPParentToChildStreamChild:
2896 : {
2897 0 : PParentToChildStreamParent* tmp = nullptr;
2898 0 : (*(v__)) = tmp;
2899 0 : if ((!(Read((&((v__)->get_PParentToChildStreamParent())), msg__, iter__, false)))) {
2900 0 : FatalError("Error deserializing Union type");
2901 0 : return false;
2902 : }
2903 : // Sentinel = 'TPParentToChildStreamChild'
2904 0 : if ((!((msg__)->ReadSentinel(iter__, 190098493)))) {
2905 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2906 0 : return false;
2907 : }
2908 0 : return true;
2909 : }
2910 : default:
2911 : {
2912 0 : FatalError("unknown union type");
2913 0 : return false;
2914 : }
2915 : }
2916 : }
2917 :
2918 0 : auto PContentBridgeParent::Write(
2919 : const TemporaryFileInputStreamParams& v__,
2920 : Message* msg__) -> void
2921 : {
2922 0 : Write((v__).fileDescriptorIndex(), msg__);
2923 : // Sentinel = 'fileDescriptorIndex'
2924 0 : (msg__)->WriteSentinel(587329112);
2925 0 : Write((v__).startPos(), msg__);
2926 : // Sentinel = 'startPos'
2927 0 : (msg__)->WriteSentinel(557207962);
2928 0 : Write((v__).endPos(), msg__);
2929 : // Sentinel = 'endPos'
2930 0 : (msg__)->WriteSentinel(881536245);
2931 0 : }
2932 :
2933 0 : auto PContentBridgeParent::Read(
2934 : TemporaryFileInputStreamParams* v__,
2935 : const Message* msg__,
2936 : PickleIterator* iter__) -> bool
2937 : {
2938 0 : if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
2939 0 : FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
2940 0 : return false;
2941 : }
2942 : // Sentinel = 'fileDescriptorIndex'
2943 0 : if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
2944 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
2945 0 : return false;
2946 : }
2947 0 : if ((!(Read((&((v__)->startPos())), msg__, iter__)))) {
2948 0 : FatalError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
2949 0 : return false;
2950 : }
2951 : // Sentinel = 'startPos'
2952 0 : if ((!((msg__)->ReadSentinel(iter__, 557207962)))) {
2953 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
2954 0 : return false;
2955 : }
2956 0 : if ((!(Read((&((v__)->endPos())), msg__, iter__)))) {
2957 0 : FatalError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
2958 0 : return false;
2959 : }
2960 : // Sentinel = 'endPos'
2961 0 : if ((!((msg__)->ReadSentinel(iter__, 881536245)))) {
2962 0 : mozilla::ipc::SentinelReadError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
2963 0 : return false;
2964 : }
2965 0 : return true;
2966 : }
2967 :
2968 0 : auto PContentBridgeParent::Write(
2969 : const FrameIPCTabContext& v__,
2970 : Message* msg__) -> void
2971 : {
2972 0 : Write((v__).originAttributes(), msg__);
2973 : // Sentinel = 'originAttributes'
2974 0 : (msg__)->WriteSentinel(2655275965);
2975 0 : Write((v__).isMozBrowserElement(), msg__);
2976 : // Sentinel = 'isMozBrowserElement'
2977 0 : (msg__)->WriteSentinel(2365644109);
2978 0 : Write((v__).isPrerendered(), msg__);
2979 : // Sentinel = 'isPrerendered'
2980 0 : (msg__)->WriteSentinel(752926845);
2981 0 : Write((v__).presentationURL(), msg__);
2982 : // Sentinel = 'presentationURL'
2983 0 : (msg__)->WriteSentinel(4359828);
2984 0 : Write((v__).showAccelerators(), msg__);
2985 : // Sentinel = 'showAccelerators'
2986 0 : (msg__)->WriteSentinel(2628588971);
2987 0 : Write((v__).showFocusRings(), msg__);
2988 : // Sentinel = 'showFocusRings'
2989 0 : (msg__)->WriteSentinel(2619412036);
2990 0 : }
2991 :
2992 0 : auto PContentBridgeParent::Read(
2993 : FrameIPCTabContext* v__,
2994 : const Message* msg__,
2995 : PickleIterator* iter__) -> bool
2996 : {
2997 0 : if ((!(Read((&((v__)->originAttributes())), msg__, iter__)))) {
2998 0 : FatalError("Error deserializing 'originAttributes' (OriginAttributes) member of 'FrameIPCTabContext'");
2999 0 : return false;
3000 : }
3001 : // Sentinel = 'originAttributes'
3002 0 : if ((!((msg__)->ReadSentinel(iter__, 2655275965)))) {
3003 0 : mozilla::ipc::SentinelReadError("Error deserializing 'originAttributes' (OriginAttributes) member of 'FrameIPCTabContext'");
3004 0 : return false;
3005 : }
3006 0 : if ((!(Read((&((v__)->isMozBrowserElement())), msg__, iter__)))) {
3007 0 : FatalError("Error deserializing 'isMozBrowserElement' (bool) member of 'FrameIPCTabContext'");
3008 0 : return false;
3009 : }
3010 : // Sentinel = 'isMozBrowserElement'
3011 0 : if ((!((msg__)->ReadSentinel(iter__, 2365644109)))) {
3012 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isMozBrowserElement' (bool) member of 'FrameIPCTabContext'");
3013 0 : return false;
3014 : }
3015 0 : if ((!(Read((&((v__)->isPrerendered())), msg__, iter__)))) {
3016 0 : FatalError("Error deserializing 'isPrerendered' (bool) member of 'FrameIPCTabContext'");
3017 0 : return false;
3018 : }
3019 : // Sentinel = 'isPrerendered'
3020 0 : if ((!((msg__)->ReadSentinel(iter__, 752926845)))) {
3021 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isPrerendered' (bool) member of 'FrameIPCTabContext'");
3022 0 : return false;
3023 : }
3024 0 : if ((!(Read((&((v__)->presentationURL())), msg__, iter__)))) {
3025 0 : FatalError("Error deserializing 'presentationURL' (nsString) member of 'FrameIPCTabContext'");
3026 0 : return false;
3027 : }
3028 : // Sentinel = 'presentationURL'
3029 0 : if ((!((msg__)->ReadSentinel(iter__, 4359828)))) {
3030 0 : mozilla::ipc::SentinelReadError("Error deserializing 'presentationURL' (nsString) member of 'FrameIPCTabContext'");
3031 0 : return false;
3032 : }
3033 0 : if ((!(Read((&((v__)->showAccelerators())), msg__, iter__)))) {
3034 0 : FatalError("Error deserializing 'showAccelerators' (UIStateChangeType) member of 'FrameIPCTabContext'");
3035 0 : return false;
3036 : }
3037 : // Sentinel = 'showAccelerators'
3038 0 : if ((!((msg__)->ReadSentinel(iter__, 2628588971)))) {
3039 0 : mozilla::ipc::SentinelReadError("Error deserializing 'showAccelerators' (UIStateChangeType) member of 'FrameIPCTabContext'");
3040 0 : return false;
3041 : }
3042 0 : if ((!(Read((&((v__)->showFocusRings())), msg__, iter__)))) {
3043 0 : FatalError("Error deserializing 'showFocusRings' (UIStateChangeType) member of 'FrameIPCTabContext'");
3044 0 : return false;
3045 : }
3046 : // Sentinel = 'showFocusRings'
3047 0 : if ((!((msg__)->ReadSentinel(iter__, 2619412036)))) {
3048 0 : mozilla::ipc::SentinelReadError("Error deserializing 'showFocusRings' (UIStateChangeType) member of 'FrameIPCTabContext'");
3049 0 : return false;
3050 : }
3051 0 : return true;
3052 : }
3053 :
3054 0 : auto PContentBridgeParent::Write(
3055 : const MIMEInputStreamParams& v__,
3056 : Message* msg__) -> void
3057 : {
3058 0 : Write((v__).optionalStream(), msg__);
3059 : // Sentinel = 'optionalStream'
3060 0 : (msg__)->WriteSentinel(1003718562);
3061 0 : Write((v__).headers(), msg__);
3062 : // Sentinel = 'headers'
3063 0 : (msg__)->WriteSentinel(4284175217);
3064 0 : Write((v__).startedReading(), msg__);
3065 : // Sentinel = 'startedReading'
3066 0 : (msg__)->WriteSentinel(1906875903);
3067 0 : }
3068 :
3069 0 : auto PContentBridgeParent::Read(
3070 : MIMEInputStreamParams* v__,
3071 : const Message* msg__,
3072 : PickleIterator* iter__) -> bool
3073 : {
3074 0 : if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
3075 0 : FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
3076 0 : return false;
3077 : }
3078 : // Sentinel = 'optionalStream'
3079 0 : if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
3080 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
3081 0 : return false;
3082 : }
3083 0 : if ((!(Read((&((v__)->headers())), msg__, iter__)))) {
3084 0 : FatalError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
3085 0 : return false;
3086 : }
3087 : // Sentinel = 'headers'
3088 0 : if ((!((msg__)->ReadSentinel(iter__, 4284175217)))) {
3089 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
3090 0 : return false;
3091 : }
3092 0 : if ((!(Read((&((v__)->startedReading())), msg__, iter__)))) {
3093 0 : FatalError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
3094 0 : return false;
3095 : }
3096 : // Sentinel = 'startedReading'
3097 0 : if ((!((msg__)->ReadSentinel(iter__, 1906875903)))) {
3098 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
3099 0 : return false;
3100 : }
3101 0 : return true;
3102 : }
3103 :
3104 0 : auto PContentBridgeParent::Write(
3105 : const InputStreamParams& v__,
3106 : Message* msg__) -> void
3107 : {
3108 : typedef InputStreamParams type__;
3109 0 : Write(int((v__).type()), msg__);
3110 : // Sentinel = 'InputStreamParams'
3111 0 : (msg__)->WriteSentinel(4114814015);
3112 :
3113 0 : switch ((v__).type()) {
3114 : case type__::TStringInputStreamParams:
3115 : {
3116 0 : Write((v__).get_StringInputStreamParams(), msg__);
3117 : // Sentinel = 'TStringInputStreamParams'
3118 0 : (msg__)->WriteSentinel(3395831651);
3119 0 : return;
3120 : }
3121 : case type__::TFileInputStreamParams:
3122 : {
3123 0 : Write((v__).get_FileInputStreamParams(), msg__);
3124 : // Sentinel = 'TFileInputStreamParams'
3125 0 : (msg__)->WriteSentinel(2543620282);
3126 0 : return;
3127 : }
3128 : case type__::TTemporaryFileInputStreamParams:
3129 : {
3130 0 : Write((v__).get_TemporaryFileInputStreamParams(), msg__);
3131 : // Sentinel = 'TTemporaryFileInputStreamParams'
3132 0 : (msg__)->WriteSentinel(587771548);
3133 0 : return;
3134 : }
3135 : case type__::TBufferedInputStreamParams:
3136 : {
3137 0 : Write((v__).get_BufferedInputStreamParams(), msg__);
3138 : // Sentinel = 'TBufferedInputStreamParams'
3139 0 : (msg__)->WriteSentinel(1698289307);
3140 0 : return;
3141 : }
3142 : case type__::TMIMEInputStreamParams:
3143 : {
3144 0 : Write((v__).get_MIMEInputStreamParams(), msg__);
3145 : // Sentinel = 'TMIMEInputStreamParams'
3146 0 : (msg__)->WriteSentinel(1948001964);
3147 0 : return;
3148 : }
3149 : case type__::TMultiplexInputStreamParams:
3150 : {
3151 0 : Write((v__).get_MultiplexInputStreamParams(), msg__);
3152 : // Sentinel = 'TMultiplexInputStreamParams'
3153 0 : (msg__)->WriteSentinel(3317853213);
3154 0 : return;
3155 : }
3156 : case type__::TSlicedInputStreamParams:
3157 : {
3158 0 : Write((v__).get_SlicedInputStreamParams(), msg__);
3159 : // Sentinel = 'TSlicedInputStreamParams'
3160 0 : (msg__)->WriteSentinel(445810472);
3161 0 : return;
3162 : }
3163 : case type__::TIPCBlobInputStreamParams:
3164 : {
3165 0 : Write((v__).get_IPCBlobInputStreamParams(), msg__);
3166 : // Sentinel = 'TIPCBlobInputStreamParams'
3167 0 : (msg__)->WriteSentinel(2436989998);
3168 0 : return;
3169 : }
3170 : default:
3171 : {
3172 0 : FatalError("unknown union type");
3173 0 : return;
3174 : }
3175 : }
3176 : }
3177 :
3178 0 : auto PContentBridgeParent::Read(
3179 : InputStreamParams* v__,
3180 : const Message* msg__,
3181 : PickleIterator* iter__) -> bool
3182 : {
3183 : typedef InputStreamParams type__;
3184 : int type;
3185 0 : if ((!(Read((&(type)), msg__, iter__)))) {
3186 0 : mozilla::ipc::UnionTypeReadError("InputStreamParams");
3187 0 : return false;
3188 : }
3189 : // Sentinel = 'InputStreamParams'
3190 0 : if ((!((msg__)->ReadSentinel(iter__, 4114814015)))) {
3191 0 : mozilla::ipc::SentinelReadError("InputStreamParams");
3192 0 : return false;
3193 : }
3194 :
3195 0 : switch (type) {
3196 : case type__::TStringInputStreamParams:
3197 : {
3198 0 : StringInputStreamParams tmp = StringInputStreamParams();
3199 0 : (*(v__)) = tmp;
3200 0 : if ((!(Read((&((v__)->get_StringInputStreamParams())), msg__, iter__)))) {
3201 0 : FatalError("Error deserializing Union type");
3202 0 : return false;
3203 : }
3204 : // Sentinel = 'TStringInputStreamParams'
3205 0 : if ((!((msg__)->ReadSentinel(iter__, 3395831651)))) {
3206 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3207 0 : return false;
3208 : }
3209 0 : return true;
3210 : }
3211 : case type__::TFileInputStreamParams:
3212 : {
3213 0 : FileInputStreamParams tmp = FileInputStreamParams();
3214 0 : (*(v__)) = tmp;
3215 0 : if ((!(Read((&((v__)->get_FileInputStreamParams())), msg__, iter__)))) {
3216 0 : FatalError("Error deserializing Union type");
3217 0 : return false;
3218 : }
3219 : // Sentinel = 'TFileInputStreamParams'
3220 0 : if ((!((msg__)->ReadSentinel(iter__, 2543620282)))) {
3221 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3222 0 : return false;
3223 : }
3224 0 : return true;
3225 : }
3226 : case type__::TTemporaryFileInputStreamParams:
3227 : {
3228 0 : TemporaryFileInputStreamParams tmp = TemporaryFileInputStreamParams();
3229 0 : (*(v__)) = tmp;
3230 0 : if ((!(Read((&((v__)->get_TemporaryFileInputStreamParams())), msg__, iter__)))) {
3231 0 : FatalError("Error deserializing Union type");
3232 0 : return false;
3233 : }
3234 : // Sentinel = 'TTemporaryFileInputStreamParams'
3235 0 : if ((!((msg__)->ReadSentinel(iter__, 587771548)))) {
3236 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3237 0 : return false;
3238 : }
3239 0 : return true;
3240 : }
3241 : case type__::TBufferedInputStreamParams:
3242 : {
3243 0 : BufferedInputStreamParams tmp = BufferedInputStreamParams();
3244 0 : (*(v__)) = tmp;
3245 0 : if ((!(Read((&((v__)->get_BufferedInputStreamParams())), msg__, iter__)))) {
3246 0 : FatalError("Error deserializing Union type");
3247 0 : return false;
3248 : }
3249 : // Sentinel = 'TBufferedInputStreamParams'
3250 0 : if ((!((msg__)->ReadSentinel(iter__, 1698289307)))) {
3251 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3252 0 : return false;
3253 : }
3254 0 : return true;
3255 : }
3256 : case type__::TMIMEInputStreamParams:
3257 : {
3258 0 : MIMEInputStreamParams tmp = MIMEInputStreamParams();
3259 0 : (*(v__)) = tmp;
3260 0 : if ((!(Read((&((v__)->get_MIMEInputStreamParams())), msg__, iter__)))) {
3261 0 : FatalError("Error deserializing Union type");
3262 0 : return false;
3263 : }
3264 : // Sentinel = 'TMIMEInputStreamParams'
3265 0 : if ((!((msg__)->ReadSentinel(iter__, 1948001964)))) {
3266 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3267 0 : return false;
3268 : }
3269 0 : return true;
3270 : }
3271 : case type__::TMultiplexInputStreamParams:
3272 : {
3273 0 : MultiplexInputStreamParams tmp = MultiplexInputStreamParams();
3274 0 : (*(v__)) = tmp;
3275 0 : if ((!(Read((&((v__)->get_MultiplexInputStreamParams())), msg__, iter__)))) {
3276 0 : FatalError("Error deserializing Union type");
3277 0 : return false;
3278 : }
3279 : // Sentinel = 'TMultiplexInputStreamParams'
3280 0 : if ((!((msg__)->ReadSentinel(iter__, 3317853213)))) {
3281 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3282 0 : return false;
3283 : }
3284 0 : return true;
3285 : }
3286 : case type__::TSlicedInputStreamParams:
3287 : {
3288 0 : SlicedInputStreamParams tmp = SlicedInputStreamParams();
3289 0 : (*(v__)) = tmp;
3290 0 : if ((!(Read((&((v__)->get_SlicedInputStreamParams())), msg__, iter__)))) {
3291 0 : FatalError("Error deserializing Union type");
3292 0 : return false;
3293 : }
3294 : // Sentinel = 'TSlicedInputStreamParams'
3295 0 : if ((!((msg__)->ReadSentinel(iter__, 445810472)))) {
3296 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3297 0 : return false;
3298 : }
3299 0 : return true;
3300 : }
3301 : case type__::TIPCBlobInputStreamParams:
3302 : {
3303 0 : IPCBlobInputStreamParams tmp = IPCBlobInputStreamParams();
3304 0 : (*(v__)) = tmp;
3305 0 : if ((!(Read((&((v__)->get_IPCBlobInputStreamParams())), msg__, iter__)))) {
3306 0 : FatalError("Error deserializing Union type");
3307 0 : return false;
3308 : }
3309 : // Sentinel = 'TIPCBlobInputStreamParams'
3310 0 : if ((!((msg__)->ReadSentinel(iter__, 2436989998)))) {
3311 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3312 0 : return false;
3313 : }
3314 0 : return true;
3315 : }
3316 : default:
3317 : {
3318 0 : FatalError("unknown union type");
3319 0 : return false;
3320 : }
3321 : }
3322 : }
3323 :
3324 0 : auto PContentBridgeParent::Write(
3325 : const PopupIPCTabContext& v__,
3326 : Message* msg__) -> void
3327 : {
3328 0 : Write((v__).opener(), msg__);
3329 : // Sentinel = 'opener'
3330 0 : (msg__)->WriteSentinel(2714806963);
3331 0 : Write((v__).isMozBrowserElement(), msg__);
3332 : // Sentinel = 'isMozBrowserElement'
3333 0 : (msg__)->WriteSentinel(2365644109);
3334 0 : }
3335 :
3336 0 : auto PContentBridgeParent::Read(
3337 : PopupIPCTabContext* v__,
3338 : const Message* msg__,
3339 : PickleIterator* iter__) -> bool
3340 : {
3341 0 : if ((!(Read((&((v__)->opener())), msg__, iter__)))) {
3342 0 : FatalError("Error deserializing 'opener' (PBrowserOrId) member of 'PopupIPCTabContext'");
3343 0 : return false;
3344 : }
3345 : // Sentinel = 'opener'
3346 0 : if ((!((msg__)->ReadSentinel(iter__, 2714806963)))) {
3347 0 : mozilla::ipc::SentinelReadError("Error deserializing 'opener' (PBrowserOrId) member of 'PopupIPCTabContext'");
3348 0 : return false;
3349 : }
3350 0 : if ((!(Read((&((v__)->isMozBrowserElement())), msg__, iter__)))) {
3351 0 : FatalError("Error deserializing 'isMozBrowserElement' (bool) member of 'PopupIPCTabContext'");
3352 0 : return false;
3353 : }
3354 : // Sentinel = 'isMozBrowserElement'
3355 0 : if ((!((msg__)->ReadSentinel(iter__, 2365644109)))) {
3356 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isMozBrowserElement' (bool) member of 'PopupIPCTabContext'");
3357 0 : return false;
3358 : }
3359 0 : return true;
3360 : }
3361 :
3362 0 : auto PContentBridgeParent::Write(
3363 : const IPCStream& v__,
3364 : Message* msg__) -> void
3365 : {
3366 : typedef IPCStream type__;
3367 0 : Write(int((v__).type()), msg__);
3368 : // Sentinel = 'IPCStream'
3369 0 : (msg__)->WriteSentinel(442610715);
3370 :
3371 0 : switch ((v__).type()) {
3372 : case type__::TInputStreamParamsWithFds:
3373 : {
3374 0 : Write((v__).get_InputStreamParamsWithFds(), msg__);
3375 : // Sentinel = 'TInputStreamParamsWithFds'
3376 0 : (msg__)->WriteSentinel(2170706066);
3377 0 : return;
3378 : }
3379 : case type__::TIPCRemoteStream:
3380 : {
3381 0 : Write((v__).get_IPCRemoteStream(), msg__);
3382 : // Sentinel = 'TIPCRemoteStream'
3383 0 : (msg__)->WriteSentinel(2978132448);
3384 0 : return;
3385 : }
3386 : default:
3387 : {
3388 0 : FatalError("unknown union type");
3389 0 : return;
3390 : }
3391 : }
3392 : }
3393 :
3394 0 : auto PContentBridgeParent::Read(
3395 : IPCStream* v__,
3396 : const Message* msg__,
3397 : PickleIterator* iter__) -> bool
3398 : {
3399 : typedef IPCStream type__;
3400 : int type;
3401 0 : if ((!(Read((&(type)), msg__, iter__)))) {
3402 0 : mozilla::ipc::UnionTypeReadError("IPCStream");
3403 0 : return false;
3404 : }
3405 : // Sentinel = 'IPCStream'
3406 0 : if ((!((msg__)->ReadSentinel(iter__, 442610715)))) {
3407 0 : mozilla::ipc::SentinelReadError("IPCStream");
3408 0 : return false;
3409 : }
3410 :
3411 0 : switch (type) {
3412 : case type__::TInputStreamParamsWithFds:
3413 : {
3414 0 : InputStreamParamsWithFds tmp = InputStreamParamsWithFds();
3415 0 : (*(v__)) = tmp;
3416 0 : if ((!(Read((&((v__)->get_InputStreamParamsWithFds())), msg__, iter__)))) {
3417 0 : FatalError("Error deserializing Union type");
3418 0 : return false;
3419 : }
3420 : // Sentinel = 'TInputStreamParamsWithFds'
3421 0 : if ((!((msg__)->ReadSentinel(iter__, 2170706066)))) {
3422 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3423 0 : return false;
3424 : }
3425 0 : return true;
3426 : }
3427 : case type__::TIPCRemoteStream:
3428 : {
3429 0 : IPCRemoteStream tmp = IPCRemoteStream();
3430 0 : (*(v__)) = tmp;
3431 0 : if ((!(Read((&((v__)->get_IPCRemoteStream())), msg__, iter__)))) {
3432 0 : FatalError("Error deserializing Union type");
3433 0 : return false;
3434 : }
3435 : // Sentinel = 'TIPCRemoteStream'
3436 0 : if ((!((msg__)->ReadSentinel(iter__, 2978132448)))) {
3437 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3438 0 : return false;
3439 : }
3440 0 : return true;
3441 : }
3442 : default:
3443 : {
3444 0 : FatalError("unknown union type");
3445 0 : return false;
3446 : }
3447 : }
3448 : }
3449 :
3450 0 : auto PContentBridgeParent::Write(
3451 : const LocalObject& v__,
3452 : Message* msg__) -> void
3453 : {
3454 0 : Write((v__).serializedId(), msg__);
3455 : // Sentinel = 'serializedId'
3456 0 : (msg__)->WriteSentinel(517551973);
3457 0 : }
3458 :
3459 0 : auto PContentBridgeParent::Read(
3460 : LocalObject* v__,
3461 : const Message* msg__,
3462 : PickleIterator* iter__) -> bool
3463 : {
3464 0 : if ((!(Read((&((v__)->serializedId())), msg__, iter__)))) {
3465 0 : FatalError("Error deserializing 'serializedId' (uint64_t) member of 'LocalObject'");
3466 0 : return false;
3467 : }
3468 : // Sentinel = 'serializedId'
3469 0 : if ((!((msg__)->ReadSentinel(iter__, 517551973)))) {
3470 0 : mozilla::ipc::SentinelReadError("Error deserializing 'serializedId' (uint64_t) member of 'LocalObject'");
3471 0 : return false;
3472 : }
3473 0 : return true;
3474 : }
3475 :
3476 0 : auto PContentBridgeParent::Write(
3477 : const ObjectVariant& v__,
3478 : Message* msg__) -> void
3479 : {
3480 : typedef ObjectVariant type__;
3481 0 : Write(int((v__).type()), msg__);
3482 : // Sentinel = 'ObjectVariant'
3483 0 : (msg__)->WriteSentinel(3403328885);
3484 :
3485 0 : switch ((v__).type()) {
3486 : case type__::TLocalObject:
3487 : {
3488 0 : Write((v__).get_LocalObject(), msg__);
3489 : // Sentinel = 'TLocalObject'
3490 0 : (msg__)->WriteSentinel(2788453632);
3491 0 : return;
3492 : }
3493 : case type__::TRemoteObject:
3494 : {
3495 0 : Write((v__).get_RemoteObject(), msg__);
3496 : // Sentinel = 'TRemoteObject'
3497 0 : (msg__)->WriteSentinel(807590902);
3498 0 : return;
3499 : }
3500 : default:
3501 : {
3502 0 : FatalError("unknown union type");
3503 0 : return;
3504 : }
3505 : }
3506 : }
3507 :
3508 0 : auto PContentBridgeParent::Read(
3509 : ObjectVariant* v__,
3510 : const Message* msg__,
3511 : PickleIterator* iter__) -> bool
3512 : {
3513 : typedef ObjectVariant type__;
3514 : int type;
3515 0 : if ((!(Read((&(type)), msg__, iter__)))) {
3516 0 : mozilla::ipc::UnionTypeReadError("ObjectVariant");
3517 0 : return false;
3518 : }
3519 : // Sentinel = 'ObjectVariant'
3520 0 : if ((!((msg__)->ReadSentinel(iter__, 3403328885)))) {
3521 0 : mozilla::ipc::SentinelReadError("ObjectVariant");
3522 0 : return false;
3523 : }
3524 :
3525 0 : switch (type) {
3526 : case type__::TLocalObject:
3527 : {
3528 0 : LocalObject tmp = LocalObject();
3529 0 : (*(v__)) = tmp;
3530 0 : if ((!(Read((&((v__)->get_LocalObject())), msg__, iter__)))) {
3531 0 : FatalError("Error deserializing Union type");
3532 0 : return false;
3533 : }
3534 : // Sentinel = 'TLocalObject'
3535 0 : if ((!((msg__)->ReadSentinel(iter__, 2788453632)))) {
3536 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3537 0 : return false;
3538 : }
3539 0 : return true;
3540 : }
3541 : case type__::TRemoteObject:
3542 : {
3543 0 : RemoteObject tmp = RemoteObject();
3544 0 : (*(v__)) = tmp;
3545 0 : if ((!(Read((&((v__)->get_RemoteObject())), msg__, iter__)))) {
3546 0 : FatalError("Error deserializing Union type");
3547 0 : return false;
3548 : }
3549 : // Sentinel = 'TRemoteObject'
3550 0 : if ((!((msg__)->ReadSentinel(iter__, 807590902)))) {
3551 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3552 0 : return false;
3553 : }
3554 0 : return true;
3555 : }
3556 : default:
3557 : {
3558 0 : FatalError("unknown union type");
3559 0 : return false;
3560 : }
3561 : }
3562 : }
3563 :
3564 0 : auto PContentBridgeParent::Write(
3565 : const PFileDescriptorSetParent* v__,
3566 : Message* msg__,
3567 : bool nullable__) -> void
3568 : {
3569 : int32_t id;
3570 0 : if ((!(v__))) {
3571 0 : if ((!(nullable__))) {
3572 0 : FatalError("NULL actor value passed to non-nullable param");
3573 : }
3574 0 : id = 0;
3575 : }
3576 : else {
3577 0 : id = (v__)->Id();
3578 0 : if ((1) == (id)) {
3579 0 : FatalError("actor has been |delete|d");
3580 : }
3581 : }
3582 :
3583 0 : Write(id, msg__);
3584 0 : }
3585 :
3586 0 : auto PContentBridgeParent::Read(
3587 : PFileDescriptorSetParent** v__,
3588 : const Message* msg__,
3589 : PickleIterator* iter__,
3590 : bool nullable__) -> bool
3591 : {
3592 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PFileDescriptorSet", PFileDescriptorSetMsgStart);
3593 0 : if ((actor).isNothing()) {
3594 0 : return false;
3595 : }
3596 :
3597 0 : (*(v__)) = static_cast<PFileDescriptorSetParent*>((actor).value());
3598 0 : return true;
3599 : }
3600 :
3601 0 : auto PContentBridgeParent::Write(
3602 : const StringInputStreamParams& v__,
3603 : Message* msg__) -> void
3604 : {
3605 0 : Write((v__).data(), msg__);
3606 : // Sentinel = 'data'
3607 0 : (msg__)->WriteSentinel(843352540);
3608 0 : }
3609 :
3610 0 : auto PContentBridgeParent::Read(
3611 : StringInputStreamParams* v__,
3612 : const Message* msg__,
3613 : PickleIterator* iter__) -> bool
3614 : {
3615 0 : if ((!(Read((&((v__)->data())), msg__, iter__)))) {
3616 0 : FatalError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
3617 0 : return false;
3618 : }
3619 : // Sentinel = 'data'
3620 0 : if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
3621 0 : mozilla::ipc::SentinelReadError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
3622 0 : return false;
3623 : }
3624 0 : return true;
3625 : }
3626 :
3627 0 : auto PContentBridgeParent::Write(
3628 : const JSPluginFrameIPCTabContext& v__,
3629 : Message* msg__) -> void
3630 : {
3631 0 : Write((v__).jsPluginId(), msg__);
3632 : // Sentinel = 'jsPluginId'
3633 0 : (msg__)->WriteSentinel(3968295297);
3634 0 : }
3635 :
3636 0 : auto PContentBridgeParent::Read(
3637 : JSPluginFrameIPCTabContext* v__,
3638 : const Message* msg__,
3639 : PickleIterator* iter__) -> bool
3640 : {
3641 0 : if ((!(Read((&((v__)->jsPluginId())), msg__, iter__)))) {
3642 0 : FatalError("Error deserializing 'jsPluginId' (uint32_t) member of 'JSPluginFrameIPCTabContext'");
3643 0 : return false;
3644 : }
3645 : // Sentinel = 'jsPluginId'
3646 0 : if ((!((msg__)->ReadSentinel(iter__, 3968295297)))) {
3647 0 : mozilla::ipc::SentinelReadError("Error deserializing 'jsPluginId' (uint32_t) member of 'JSPluginFrameIPCTabContext'");
3648 0 : return false;
3649 : }
3650 0 : return true;
3651 : }
3652 :
3653 0 : auto PContentBridgeParent::Write(
3654 : const UndefinedVariant& v__,
3655 : Message* msg__) -> void
3656 : {
3657 0 : }
3658 :
3659 0 : auto PContentBridgeParent::Read(
3660 : UndefinedVariant* v__,
3661 : const Message* msg__,
3662 : PickleIterator* iter__) -> bool
3663 : {
3664 0 : return true;
3665 : }
3666 :
3667 0 : auto PContentBridgeParent::Write(
3668 : const MultiplexInputStreamParams& v__,
3669 : Message* msg__) -> void
3670 : {
3671 0 : Write((v__).streams(), msg__);
3672 : // Sentinel = 'streams'
3673 0 : (msg__)->WriteSentinel(4240383220);
3674 0 : Write((v__).currentStream(), msg__);
3675 : // Sentinel = 'currentStream'
3676 0 : (msg__)->WriteSentinel(682778074);
3677 0 : Write((v__).status(), msg__);
3678 : // Sentinel = 'status'
3679 0 : (msg__)->WriteSentinel(3714608576);
3680 0 : Write((v__).startedReadingCurrent(), msg__);
3681 : // Sentinel = 'startedReadingCurrent'
3682 0 : (msg__)->WriteSentinel(970542033);
3683 0 : }
3684 :
3685 0 : auto PContentBridgeParent::Read(
3686 : MultiplexInputStreamParams* v__,
3687 : const Message* msg__,
3688 : PickleIterator* iter__) -> bool
3689 : {
3690 0 : if ((!(Read((&((v__)->streams())), msg__, iter__)))) {
3691 0 : FatalError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
3692 0 : return false;
3693 : }
3694 : // Sentinel = 'streams'
3695 0 : if ((!((msg__)->ReadSentinel(iter__, 4240383220)))) {
3696 0 : mozilla::ipc::SentinelReadError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
3697 0 : return false;
3698 : }
3699 0 : if ((!(Read((&((v__)->currentStream())), msg__, iter__)))) {
3700 0 : FatalError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
3701 0 : return false;
3702 : }
3703 : // Sentinel = 'currentStream'
3704 0 : if ((!((msg__)->ReadSentinel(iter__, 682778074)))) {
3705 0 : mozilla::ipc::SentinelReadError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
3706 0 : return false;
3707 : }
3708 0 : if ((!(Read((&((v__)->status())), msg__, iter__)))) {
3709 0 : FatalError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
3710 0 : return false;
3711 : }
3712 : // Sentinel = 'status'
3713 0 : if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
3714 0 : mozilla::ipc::SentinelReadError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
3715 0 : return false;
3716 : }
3717 0 : if ((!(Read((&((v__)->startedReadingCurrent())), msg__, iter__)))) {
3718 0 : FatalError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
3719 0 : return false;
3720 : }
3721 : // Sentinel = 'startedReadingCurrent'
3722 0 : if ((!((msg__)->ReadSentinel(iter__, 970542033)))) {
3723 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
3724 0 : return false;
3725 : }
3726 0 : return true;
3727 : }
3728 :
3729 0 : auto PContentBridgeParent::Write(
3730 : const PIPCBlobInputStreamParent* v__,
3731 : Message* msg__,
3732 : bool nullable__) -> void
3733 : {
3734 : int32_t id;
3735 0 : if ((!(v__))) {
3736 0 : if ((!(nullable__))) {
3737 0 : FatalError("NULL actor value passed to non-nullable param");
3738 : }
3739 0 : id = 0;
3740 : }
3741 : else {
3742 0 : id = (v__)->Id();
3743 0 : if ((1) == (id)) {
3744 0 : FatalError("actor has been |delete|d");
3745 : }
3746 : }
3747 :
3748 0 : Write(id, msg__);
3749 0 : }
3750 :
3751 0 : auto PContentBridgeParent::Read(
3752 : PIPCBlobInputStreamParent** v__,
3753 : const Message* msg__,
3754 : PickleIterator* iter__,
3755 : bool nullable__) -> bool
3756 : {
3757 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PIPCBlobInputStream", PIPCBlobInputStreamMsgStart);
3758 0 : if ((actor).isNothing()) {
3759 0 : return false;
3760 : }
3761 :
3762 0 : (*(v__)) = static_cast<PIPCBlobInputStreamParent*>((actor).value());
3763 0 : return true;
3764 : }
3765 :
3766 0 : auto PContentBridgeParent::Write(
3767 : const PBrowserParent* v__,
3768 : Message* msg__,
3769 : bool nullable__) -> void
3770 : {
3771 : int32_t id;
3772 0 : if ((!(v__))) {
3773 0 : if ((!(nullable__))) {
3774 0 : FatalError("NULL actor value passed to non-nullable param");
3775 : }
3776 0 : id = 0;
3777 : }
3778 : else {
3779 0 : id = (v__)->Id();
3780 0 : if ((1) == (id)) {
3781 0 : FatalError("actor has been |delete|d");
3782 : }
3783 : }
3784 :
3785 0 : Write(id, msg__);
3786 0 : }
3787 :
3788 0 : auto PContentBridgeParent::Read(
3789 : PBrowserParent** v__,
3790 : const Message* msg__,
3791 : PickleIterator* iter__,
3792 : bool nullable__) -> bool
3793 : {
3794 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBrowser", PBrowserMsgStart);
3795 0 : if ((actor).isNothing()) {
3796 0 : return false;
3797 : }
3798 :
3799 0 : (*(v__)) = static_cast<PBrowserParent*>((actor).value());
3800 0 : return true;
3801 : }
3802 :
3803 0 : auto PContentBridgeParent::Write(
3804 : const OptionalFileDescriptorSet& v__,
3805 : Message* msg__) -> void
3806 : {
3807 : typedef OptionalFileDescriptorSet type__;
3808 0 : Write(int((v__).type()), msg__);
3809 : // Sentinel = 'OptionalFileDescriptorSet'
3810 0 : (msg__)->WriteSentinel(955222862);
3811 :
3812 0 : switch ((v__).type()) {
3813 : case type__::TPFileDescriptorSetParent:
3814 : {
3815 0 : Write((v__).get_PFileDescriptorSetParent(), msg__, false);
3816 : // Sentinel = 'TPFileDescriptorSetParent'
3817 0 : (msg__)->WriteSentinel(143041934);
3818 0 : return;
3819 : }
3820 : case type__::TPFileDescriptorSetChild:
3821 : {
3822 0 : FatalError("wrong side!");
3823 0 : return;
3824 : }
3825 : case type__::TArrayOfFileDescriptor:
3826 : {
3827 0 : Write((v__).get_ArrayOfFileDescriptor(), msg__);
3828 : // Sentinel = 'TArrayOfFileDescriptor'
3829 0 : (msg__)->WriteSentinel(2366096715);
3830 0 : return;
3831 : }
3832 : case type__::Tvoid_t:
3833 : {
3834 0 : Write((v__).get_void_t(), msg__);
3835 : // Sentinel = 'Tvoid_t'
3836 0 : (msg__)->WriteSentinel(3041273328);
3837 0 : return;
3838 : }
3839 : default:
3840 : {
3841 0 : FatalError("unknown union type");
3842 0 : return;
3843 : }
3844 : }
3845 : }
3846 :
3847 0 : auto PContentBridgeParent::Read(
3848 : OptionalFileDescriptorSet* v__,
3849 : const Message* msg__,
3850 : PickleIterator* iter__) -> bool
3851 : {
3852 : typedef OptionalFileDescriptorSet type__;
3853 : int type;
3854 0 : if ((!(Read((&(type)), msg__, iter__)))) {
3855 0 : mozilla::ipc::UnionTypeReadError("OptionalFileDescriptorSet");
3856 0 : return false;
3857 : }
3858 : // Sentinel = 'OptionalFileDescriptorSet'
3859 0 : if ((!((msg__)->ReadSentinel(iter__, 955222862)))) {
3860 0 : mozilla::ipc::SentinelReadError("OptionalFileDescriptorSet");
3861 0 : return false;
3862 : }
3863 :
3864 0 : switch (type) {
3865 : case type__::TPFileDescriptorSetParent:
3866 : {
3867 0 : return false;
3868 : }
3869 : case type__::TPFileDescriptorSetChild:
3870 : {
3871 0 : PFileDescriptorSetParent* tmp = nullptr;
3872 0 : (*(v__)) = tmp;
3873 0 : if ((!(Read((&((v__)->get_PFileDescriptorSetParent())), msg__, iter__, false)))) {
3874 0 : FatalError("Error deserializing Union type");
3875 0 : return false;
3876 : }
3877 : // Sentinel = 'TPFileDescriptorSetChild'
3878 0 : if ((!((msg__)->ReadSentinel(iter__, 3477929935)))) {
3879 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3880 0 : return false;
3881 : }
3882 0 : return true;
3883 : }
3884 : case type__::TArrayOfFileDescriptor:
3885 : {
3886 0 : nsTArray<FileDescriptor> tmp;
3887 0 : (*(v__)) = tmp;
3888 0 : if ((!(Read((&((v__)->get_ArrayOfFileDescriptor())), msg__, iter__)))) {
3889 0 : FatalError("Error deserializing Union type");
3890 0 : return false;
3891 : }
3892 : // Sentinel = 'TArrayOfFileDescriptor'
3893 0 : if ((!((msg__)->ReadSentinel(iter__, 2366096715)))) {
3894 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3895 0 : return false;
3896 : }
3897 0 : return true;
3898 : }
3899 : case type__::Tvoid_t:
3900 : {
3901 : void_t tmp = void_t();
3902 0 : (*(v__)) = tmp;
3903 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
3904 0 : FatalError("Error deserializing Union type");
3905 0 : return false;
3906 : }
3907 : // Sentinel = 'Tvoid_t'
3908 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
3909 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3910 0 : return false;
3911 : }
3912 0 : return true;
3913 : }
3914 : default:
3915 : {
3916 0 : FatalError("unknown union type");
3917 0 : return false;
3918 : }
3919 : }
3920 : }
3921 :
3922 0 : auto PContentBridgeParent::Write(
3923 : const SymbolVariant& v__,
3924 : Message* msg__) -> void
3925 : {
3926 : typedef SymbolVariant type__;
3927 0 : Write(int((v__).type()), msg__);
3928 : // Sentinel = 'SymbolVariant'
3929 0 : (msg__)->WriteSentinel(2359697882);
3930 :
3931 0 : switch ((v__).type()) {
3932 : case type__::TWellKnownSymbol:
3933 : {
3934 0 : Write((v__).get_WellKnownSymbol(), msg__);
3935 : // Sentinel = 'TWellKnownSymbol'
3936 0 : (msg__)->WriteSentinel(3625871441);
3937 0 : return;
3938 : }
3939 : case type__::TRegisteredSymbol:
3940 : {
3941 0 : Write((v__).get_RegisteredSymbol(), msg__);
3942 : // Sentinel = 'TRegisteredSymbol'
3943 0 : (msg__)->WriteSentinel(3546540137);
3944 0 : return;
3945 : }
3946 : default:
3947 : {
3948 0 : FatalError("unknown union type");
3949 0 : return;
3950 : }
3951 : }
3952 : }
3953 :
3954 0 : auto PContentBridgeParent::Read(
3955 : SymbolVariant* v__,
3956 : const Message* msg__,
3957 : PickleIterator* iter__) -> bool
3958 : {
3959 : typedef SymbolVariant type__;
3960 : int type;
3961 0 : if ((!(Read((&(type)), msg__, iter__)))) {
3962 0 : mozilla::ipc::UnionTypeReadError("SymbolVariant");
3963 0 : return false;
3964 : }
3965 : // Sentinel = 'SymbolVariant'
3966 0 : if ((!((msg__)->ReadSentinel(iter__, 2359697882)))) {
3967 0 : mozilla::ipc::SentinelReadError("SymbolVariant");
3968 0 : return false;
3969 : }
3970 :
3971 0 : switch (type) {
3972 : case type__::TWellKnownSymbol:
3973 : {
3974 0 : WellKnownSymbol tmp = WellKnownSymbol();
3975 0 : (*(v__)) = tmp;
3976 0 : if ((!(Read((&((v__)->get_WellKnownSymbol())), msg__, iter__)))) {
3977 0 : FatalError("Error deserializing Union type");
3978 0 : return false;
3979 : }
3980 : // Sentinel = 'TWellKnownSymbol'
3981 0 : if ((!((msg__)->ReadSentinel(iter__, 3625871441)))) {
3982 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3983 0 : return false;
3984 : }
3985 0 : return true;
3986 : }
3987 : case type__::TRegisteredSymbol:
3988 : {
3989 0 : RegisteredSymbol tmp = RegisteredSymbol();
3990 0 : (*(v__)) = tmp;
3991 0 : if ((!(Read((&((v__)->get_RegisteredSymbol())), msg__, iter__)))) {
3992 0 : FatalError("Error deserializing Union type");
3993 0 : return false;
3994 : }
3995 : // Sentinel = 'TRegisteredSymbol'
3996 0 : if ((!((msg__)->ReadSentinel(iter__, 3546540137)))) {
3997 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3998 0 : return false;
3999 : }
4000 0 : return true;
4001 : }
4002 : default:
4003 : {
4004 0 : FatalError("unknown union type");
4005 0 : return false;
4006 : }
4007 : }
4008 : }
4009 :
4010 0 : auto PContentBridgeParent::Write(
4011 : const CpowEntry& v__,
4012 : Message* msg__) -> void
4013 : {
4014 0 : Write((v__).name(), msg__);
4015 : // Sentinel = 'name'
4016 0 : (msg__)->WriteSentinel(15034981);
4017 0 : Write((v__).value(), msg__);
4018 : // Sentinel = 'value'
4019 0 : (msg__)->WriteSentinel(3456818542);
4020 0 : }
4021 :
4022 0 : auto PContentBridgeParent::Read(
4023 : CpowEntry* v__,
4024 : const Message* msg__,
4025 : PickleIterator* iter__) -> bool
4026 : {
4027 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
4028 0 : FatalError("Error deserializing 'name' (nsString) member of 'CpowEntry'");
4029 0 : return false;
4030 : }
4031 : // Sentinel = 'name'
4032 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
4033 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsString) member of 'CpowEntry'");
4034 0 : return false;
4035 : }
4036 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
4037 0 : FatalError("Error deserializing 'value' (JSVariant) member of 'CpowEntry'");
4038 0 : return false;
4039 : }
4040 : // Sentinel = 'value'
4041 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
4042 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (JSVariant) member of 'CpowEntry'");
4043 0 : return false;
4044 : }
4045 0 : return true;
4046 : }
4047 :
4048 0 : auto PContentBridgeParent::Write(
4049 : const nsTArray<IPCStream>& v__,
4050 : Message* msg__) -> void
4051 : {
4052 0 : uint32_t length = (v__).Length();
4053 0 : Write(length, msg__);
4054 : // Sentinel = ('length', 'IPCStream[]')
4055 0 : (msg__)->WriteSentinel(790413678);
4056 :
4057 0 : for (auto& elem : v__) {
4058 0 : Write(elem, msg__);
4059 : // Sentinel = 'IPCStream[]'
4060 0 : (msg__)->WriteSentinel(117417041);
4061 : }
4062 0 : }
4063 :
4064 0 : auto PContentBridgeParent::Read(
4065 : nsTArray<IPCStream>* v__,
4066 : const Message* msg__,
4067 : PickleIterator* iter__) -> bool
4068 : {
4069 0 : nsTArray<IPCStream> fa;
4070 : uint32_t length;
4071 0 : if ((!(Read((&(length)), msg__, iter__)))) {
4072 0 : mozilla::ipc::ArrayLengthReadError("IPCStream[]");
4073 0 : return false;
4074 : }
4075 : // Sentinel = ('length', 'IPCStream[]')
4076 0 : if ((!((msg__)->ReadSentinel(iter__, 790413678)))) {
4077 0 : mozilla::ipc::SentinelReadError("IPCStream[]");
4078 0 : return false;
4079 : }
4080 :
4081 0 : IPCStream* elems = (fa).AppendElements(length);
4082 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
4083 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
4084 0 : FatalError("Error deserializing 'IPCStream[i]'");
4085 0 : return false;
4086 : }
4087 : // Sentinel = 'IPCStream[]'
4088 0 : if ((!((msg__)->ReadSentinel(iter__, 117417041)))) {
4089 0 : mozilla::ipc::SentinelReadError("Error deserializing 'IPCStream[i]'");
4090 0 : return false;
4091 : }
4092 : }
4093 0 : (v__)->SwapElements(fa);
4094 0 : return true;
4095 : }
4096 :
4097 0 : auto PContentBridgeParent::Write(
4098 : const IPCBlob& v__,
4099 : Message* msg__) -> void
4100 : {
4101 0 : Write((v__).type(), msg__);
4102 : // Sentinel = 'type'
4103 0 : (msg__)->WriteSentinel(2982068540);
4104 0 : Write((v__).size(), msg__);
4105 : // Sentinel = 'size'
4106 0 : (msg__)->WriteSentinel(931048223);
4107 0 : Write((v__).inputStream(), msg__);
4108 : // Sentinel = 'inputStream'
4109 0 : (msg__)->WriteSentinel(2684883823);
4110 0 : Write((v__).file(), msg__);
4111 : // Sentinel = 'file'
4112 0 : (msg__)->WriteSentinel(224874390);
4113 0 : Write((v__).fileId(), msg__);
4114 : // Sentinel = 'fileId'
4115 0 : (msg__)->WriteSentinel(108004447);
4116 0 : }
4117 :
4118 0 : auto PContentBridgeParent::Read(
4119 : IPCBlob* v__,
4120 : const Message* msg__,
4121 : PickleIterator* iter__) -> bool
4122 : {
4123 0 : if ((!(Read((&((v__)->type())), msg__, iter__)))) {
4124 0 : FatalError("Error deserializing 'type' (nsString) member of 'IPCBlob'");
4125 0 : return false;
4126 : }
4127 : // Sentinel = 'type'
4128 0 : if ((!((msg__)->ReadSentinel(iter__, 2982068540)))) {
4129 0 : mozilla::ipc::SentinelReadError("Error deserializing 'type' (nsString) member of 'IPCBlob'");
4130 0 : return false;
4131 : }
4132 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
4133 0 : FatalError("Error deserializing 'size' (uint64_t) member of 'IPCBlob'");
4134 0 : return false;
4135 : }
4136 : // Sentinel = 'size'
4137 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
4138 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (uint64_t) member of 'IPCBlob'");
4139 0 : return false;
4140 : }
4141 0 : if ((!(Read((&((v__)->inputStream())), msg__, iter__)))) {
4142 0 : FatalError("Error deserializing 'inputStream' (IPCBlobStream) member of 'IPCBlob'");
4143 0 : return false;
4144 : }
4145 : // Sentinel = 'inputStream'
4146 0 : if ((!((msg__)->ReadSentinel(iter__, 2684883823)))) {
4147 0 : mozilla::ipc::SentinelReadError("Error deserializing 'inputStream' (IPCBlobStream) member of 'IPCBlob'");
4148 0 : return false;
4149 : }
4150 0 : if ((!(Read((&((v__)->file())), msg__, iter__)))) {
4151 0 : FatalError("Error deserializing 'file' (IPCFileUnion) member of 'IPCBlob'");
4152 0 : return false;
4153 : }
4154 : // Sentinel = 'file'
4155 0 : if ((!((msg__)->ReadSentinel(iter__, 224874390)))) {
4156 0 : mozilla::ipc::SentinelReadError("Error deserializing 'file' (IPCFileUnion) member of 'IPCBlob'");
4157 0 : return false;
4158 : }
4159 0 : if ((!(Read((&((v__)->fileId())), msg__, iter__)))) {
4160 0 : FatalError("Error deserializing 'fileId' (int64_t) member of 'IPCBlob'");
4161 0 : return false;
4162 : }
4163 : // Sentinel = 'fileId'
4164 0 : if ((!((msg__)->ReadSentinel(iter__, 108004447)))) {
4165 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileId' (int64_t) member of 'IPCBlob'");
4166 0 : return false;
4167 : }
4168 0 : return true;
4169 : }
4170 :
4171 0 : auto PContentBridgeParent::Write(
4172 : const PParentToChildStreamParent* v__,
4173 : Message* msg__,
4174 : bool nullable__) -> void
4175 : {
4176 : int32_t id;
4177 0 : if ((!(v__))) {
4178 0 : if ((!(nullable__))) {
4179 0 : FatalError("NULL actor value passed to non-nullable param");
4180 : }
4181 0 : id = 0;
4182 : }
4183 : else {
4184 0 : id = (v__)->Id();
4185 0 : if ((1) == (id)) {
4186 0 : FatalError("actor has been |delete|d");
4187 : }
4188 : }
4189 :
4190 0 : Write(id, msg__);
4191 0 : }
4192 :
4193 0 : auto PContentBridgeParent::Read(
4194 : PParentToChildStreamParent** v__,
4195 : const Message* msg__,
4196 : PickleIterator* iter__,
4197 : bool nullable__) -> bool
4198 : {
4199 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PParentToChildStream", PParentToChildStreamMsgStart);
4200 0 : if ((actor).isNothing()) {
4201 0 : return false;
4202 : }
4203 :
4204 0 : (*(v__)) = static_cast<PParentToChildStreamParent*>((actor).value());
4205 0 : return true;
4206 : }
4207 :
4208 0 : auto PContentBridgeParent::Write(
4209 : const BufferedInputStreamParams& v__,
4210 : Message* msg__) -> void
4211 : {
4212 0 : Write((v__).optionalStream(), msg__);
4213 : // Sentinel = 'optionalStream'
4214 0 : (msg__)->WriteSentinel(1003718562);
4215 0 : Write((v__).bufferSize(), msg__);
4216 : // Sentinel = 'bufferSize'
4217 0 : (msg__)->WriteSentinel(3444538779);
4218 0 : }
4219 :
4220 0 : auto PContentBridgeParent::Read(
4221 : BufferedInputStreamParams* v__,
4222 : const Message* msg__,
4223 : PickleIterator* iter__) -> bool
4224 : {
4225 0 : if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
4226 0 : FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
4227 0 : return false;
4228 : }
4229 : // Sentinel = 'optionalStream'
4230 0 : if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
4231 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
4232 0 : return false;
4233 : }
4234 0 : if ((!(Read((&((v__)->bufferSize())), msg__, iter__)))) {
4235 0 : FatalError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
4236 0 : return false;
4237 : }
4238 : // Sentinel = 'bufferSize'
4239 0 : if ((!((msg__)->ReadSentinel(iter__, 3444538779)))) {
4240 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
4241 0 : return false;
4242 : }
4243 0 : return true;
4244 : }
4245 :
4246 0 : auto PContentBridgeParent::Write(
4247 : const NullVariant& v__,
4248 : Message* msg__) -> void
4249 : {
4250 0 : }
4251 :
4252 0 : auto PContentBridgeParent::Read(
4253 : NullVariant* v__,
4254 : const Message* msg__,
4255 : PickleIterator* iter__) -> bool
4256 : {
4257 0 : return true;
4258 : }
4259 :
4260 0 : auto PContentBridgeParent::Write(
4261 : const HeaderEntry& v__,
4262 : Message* msg__) -> void
4263 : {
4264 0 : Write((v__).name(), msg__);
4265 : // Sentinel = 'name'
4266 0 : (msg__)->WriteSentinel(15034981);
4267 0 : Write((v__).value(), msg__);
4268 : // Sentinel = 'value'
4269 0 : (msg__)->WriteSentinel(3456818542);
4270 0 : }
4271 :
4272 0 : auto PContentBridgeParent::Read(
4273 : HeaderEntry* v__,
4274 : const Message* msg__,
4275 : PickleIterator* iter__) -> bool
4276 : {
4277 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
4278 0 : FatalError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
4279 0 : return false;
4280 : }
4281 : // Sentinel = 'name'
4282 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
4283 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
4284 0 : return false;
4285 : }
4286 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
4287 0 : FatalError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
4288 0 : return false;
4289 : }
4290 : // Sentinel = 'value'
4291 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
4292 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
4293 0 : return false;
4294 : }
4295 0 : return true;
4296 : }
4297 :
4298 0 : auto PContentBridgeParent::Write(
4299 : const IPCTabContext& v__,
4300 : Message* msg__) -> void
4301 : {
4302 : typedef IPCTabContext type__;
4303 0 : Write(int((v__).type()), msg__);
4304 : // Sentinel = 'IPCTabContext'
4305 0 : (msg__)->WriteSentinel(506037529);
4306 :
4307 0 : switch ((v__).type()) {
4308 : case type__::TPopupIPCTabContext:
4309 : {
4310 0 : Write((v__).get_PopupIPCTabContext(), msg__);
4311 : // Sentinel = 'TPopupIPCTabContext'
4312 0 : (msg__)->WriteSentinel(4038668053);
4313 0 : return;
4314 : }
4315 : case type__::TFrameIPCTabContext:
4316 : {
4317 0 : Write((v__).get_FrameIPCTabContext(), msg__);
4318 : // Sentinel = 'TFrameIPCTabContext'
4319 0 : (msg__)->WriteSentinel(4211766306);
4320 0 : return;
4321 : }
4322 : case type__::TJSPluginFrameIPCTabContext:
4323 : {
4324 0 : Write((v__).get_JSPluginFrameIPCTabContext(), msg__);
4325 : // Sentinel = 'TJSPluginFrameIPCTabContext'
4326 0 : (msg__)->WriteSentinel(953478246);
4327 0 : return;
4328 : }
4329 : case type__::TUnsafeIPCTabContext:
4330 : {
4331 0 : Write((v__).get_UnsafeIPCTabContext(), msg__);
4332 : // Sentinel = 'TUnsafeIPCTabContext'
4333 0 : (msg__)->WriteSentinel(152883886);
4334 0 : return;
4335 : }
4336 : default:
4337 : {
4338 0 : FatalError("unknown union type");
4339 0 : return;
4340 : }
4341 : }
4342 : }
4343 :
4344 0 : auto PContentBridgeParent::Read(
4345 : IPCTabContext* v__,
4346 : const Message* msg__,
4347 : PickleIterator* iter__) -> bool
4348 : {
4349 : typedef IPCTabContext type__;
4350 : int type;
4351 0 : if ((!(Read((&(type)), msg__, iter__)))) {
4352 0 : mozilla::ipc::UnionTypeReadError("IPCTabContext");
4353 0 : return false;
4354 : }
4355 : // Sentinel = 'IPCTabContext'
4356 0 : if ((!((msg__)->ReadSentinel(iter__, 506037529)))) {
4357 0 : mozilla::ipc::SentinelReadError("IPCTabContext");
4358 0 : return false;
4359 : }
4360 :
4361 0 : switch (type) {
4362 : case type__::TPopupIPCTabContext:
4363 : {
4364 0 : PopupIPCTabContext tmp = PopupIPCTabContext();
4365 0 : (*(v__)) = tmp;
4366 0 : if ((!(Read((&((v__)->get_PopupIPCTabContext())), msg__, iter__)))) {
4367 0 : FatalError("Error deserializing Union type");
4368 0 : return false;
4369 : }
4370 : // Sentinel = 'TPopupIPCTabContext'
4371 0 : if ((!((msg__)->ReadSentinel(iter__, 4038668053)))) {
4372 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4373 0 : return false;
4374 : }
4375 0 : return true;
4376 : }
4377 : case type__::TFrameIPCTabContext:
4378 : {
4379 0 : FrameIPCTabContext tmp = FrameIPCTabContext();
4380 0 : (*(v__)) = tmp;
4381 0 : if ((!(Read((&((v__)->get_FrameIPCTabContext())), msg__, iter__)))) {
4382 0 : FatalError("Error deserializing Union type");
4383 0 : return false;
4384 : }
4385 : // Sentinel = 'TFrameIPCTabContext'
4386 0 : if ((!((msg__)->ReadSentinel(iter__, 4211766306)))) {
4387 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4388 0 : return false;
4389 : }
4390 0 : return true;
4391 : }
4392 : case type__::TJSPluginFrameIPCTabContext:
4393 : {
4394 0 : JSPluginFrameIPCTabContext tmp = JSPluginFrameIPCTabContext();
4395 0 : (*(v__)) = tmp;
4396 0 : if ((!(Read((&((v__)->get_JSPluginFrameIPCTabContext())), msg__, iter__)))) {
4397 0 : FatalError("Error deserializing Union type");
4398 0 : return false;
4399 : }
4400 : // Sentinel = 'TJSPluginFrameIPCTabContext'
4401 0 : if ((!((msg__)->ReadSentinel(iter__, 953478246)))) {
4402 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4403 0 : return false;
4404 : }
4405 0 : return true;
4406 : }
4407 : case type__::TUnsafeIPCTabContext:
4408 : {
4409 0 : UnsafeIPCTabContext tmp = UnsafeIPCTabContext();
4410 0 : (*(v__)) = tmp;
4411 0 : if ((!(Read((&((v__)->get_UnsafeIPCTabContext())), msg__, iter__)))) {
4412 0 : FatalError("Error deserializing Union type");
4413 0 : return false;
4414 : }
4415 : // Sentinel = 'TUnsafeIPCTabContext'
4416 0 : if ((!((msg__)->ReadSentinel(iter__, 152883886)))) {
4417 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4418 0 : return false;
4419 : }
4420 0 : return true;
4421 : }
4422 : default:
4423 : {
4424 0 : FatalError("unknown union type");
4425 0 : return false;
4426 : }
4427 : }
4428 : }
4429 :
4430 0 : auto PContentBridgeParent::Write(
4431 : const PChildToParentStreamParent* v__,
4432 : Message* msg__,
4433 : bool nullable__) -> void
4434 : {
4435 : int32_t id;
4436 0 : if ((!(v__))) {
4437 0 : if ((!(nullable__))) {
4438 0 : FatalError("NULL actor value passed to non-nullable param");
4439 : }
4440 0 : id = 0;
4441 : }
4442 : else {
4443 0 : id = (v__)->Id();
4444 0 : if ((1) == (id)) {
4445 0 : FatalError("actor has been |delete|d");
4446 : }
4447 : }
4448 :
4449 0 : Write(id, msg__);
4450 0 : }
4451 :
4452 0 : auto PContentBridgeParent::Read(
4453 : PChildToParentStreamParent** v__,
4454 : const Message* msg__,
4455 : PickleIterator* iter__,
4456 : bool nullable__) -> bool
4457 : {
4458 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PChildToParentStream", PChildToParentStreamMsgStart);
4459 0 : if ((actor).isNothing()) {
4460 0 : return false;
4461 : }
4462 :
4463 0 : (*(v__)) = static_cast<PChildToParentStreamParent*>((actor).value());
4464 0 : return true;
4465 : }
4466 :
4467 0 : auto PContentBridgeParent::Write(
4468 : const PJavaScriptParent* v__,
4469 : Message* msg__,
4470 : bool nullable__) -> void
4471 : {
4472 : int32_t id;
4473 0 : if ((!(v__))) {
4474 0 : if ((!(nullable__))) {
4475 0 : FatalError("NULL actor value passed to non-nullable param");
4476 : }
4477 0 : id = 0;
4478 : }
4479 : else {
4480 0 : id = (v__)->Id();
4481 0 : if ((1) == (id)) {
4482 0 : FatalError("actor has been |delete|d");
4483 : }
4484 : }
4485 :
4486 0 : Write(id, msg__);
4487 0 : }
4488 :
4489 0 : auto PContentBridgeParent::Read(
4490 : PJavaScriptParent** v__,
4491 : const Message* msg__,
4492 : PickleIterator* iter__,
4493 : bool nullable__) -> bool
4494 : {
4495 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PJavaScript", PJavaScriptMsgStart);
4496 0 : if ((actor).isNothing()) {
4497 0 : return false;
4498 : }
4499 :
4500 0 : (*(v__)) = static_cast<PJavaScriptParent*>((actor).value());
4501 0 : return true;
4502 : }
4503 :
4504 :
4505 :
4506 : } // namespace dom
4507 : } // namespace mozilla
|