Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/dom/PBroadcastChannelParent.h"
8 : #include "ipc/IPCMessageUtils.h"
9 :
10 : #include "mozilla/ipc/PBackgroundParent.h"
11 : #include "mozilla/ipc/PChildToParentStreamParent.h"
12 : #include "mozilla/ipc/PFileDescriptorSetParent.h"
13 : #include "mozilla/ipc/PIPCBlobInputStreamParent.h"
14 : #include "mozilla/ipc/PParentToChildStreamParent.h"
15 :
16 : #include "nsIFile.h"
17 : #include "GeckoProfiler.h"
18 :
19 : namespace mozilla {
20 : namespace dom {
21 :
22 :
23 :
24 0 : MOZ_IMPLICIT PBroadcastChannelParent::PBroadcastChannelParent() :
25 : mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
26 0 : mState(PBroadcastChannel::__Dead)
27 : {
28 0 : MOZ_COUNT_CTOR(PBroadcastChannelParent);
29 0 : }
30 :
31 0 : PBroadcastChannelParent::~PBroadcastChannelParent()
32 : {
33 0 : MOZ_COUNT_DTOR(PBroadcastChannelParent);
34 0 : }
35 :
36 0 : auto PBroadcastChannelParent::Manager() const -> PBackgroundParent*
37 : {
38 0 : return static_cast<PBackgroundParent*>(IProtocol::Manager());
39 : }
40 :
41 0 : auto PBroadcastChannelParent::SendNotify(const ClonedMessageData& message) -> bool
42 : {
43 0 : IPC::Message* msg__ = PBroadcastChannel::Msg_Notify(Id());
44 :
45 0 : Write(message, msg__);
46 : // Sentinel = 'message'
47 0 : (msg__)->WriteSentinel(1366108954);
48 :
49 :
50 :
51 :
52 0 : if (mozilla::ipc::LoggingEnabledFor("PBroadcastChannelParent")) {
53 0 : mozilla::ipc::LogMessageForProtocol("PBroadcastChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
54 : }
55 0 : AUTO_PROFILER_LABEL("PBroadcastChannel::Msg_Notify", OTHER);
56 0 : PBroadcastChannel::Transition(PBroadcastChannel::Msg_Notify__ID, (&(mState)));
57 :
58 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
59 0 : return sendok__;
60 : }
61 :
62 0 : auto PBroadcastChannelParent::Send__delete__(PBroadcastChannelParent* actor) -> bool
63 : {
64 0 : if ((!(actor))) {
65 0 : return false;
66 : }
67 :
68 0 : IPC::Message* msg__ = PBroadcastChannel::Msg___delete__((actor)->Id());
69 :
70 0 : (actor)->Write(actor, msg__, false);
71 : // Sentinel = 'actor'
72 0 : (msg__)->WriteSentinel(875202478);
73 :
74 :
75 :
76 0 : if (mozilla::ipc::LoggingEnabledFor("PBroadcastChannelParent")) {
77 0 : mozilla::ipc::LogMessageForProtocol("PBroadcastChannelParent", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
78 : }
79 0 : AUTO_PROFILER_LABEL("PBroadcastChannel::Msg___delete__", OTHER);
80 0 : PBroadcastChannel::Transition(PBroadcastChannel::Msg___delete____ID, (&((actor)->mState)));
81 :
82 0 : bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
83 :
84 0 : IProtocol* mgr = (actor)->Manager();
85 0 : (actor)->DestroySubtree(Deletion);
86 0 : (actor)->DeallocSubtree();
87 0 : (mgr)->RemoveManagee(PBroadcastChannelMsgStart, actor);
88 0 : return sendok__;
89 : }
90 :
91 0 : auto PBroadcastChannelParent::RemoveManagee(
92 : int32_t aProtocolId,
93 : ProtocolBase* aListener) -> void
94 : {
95 0 : FatalError("unreached");
96 0 : return;
97 : }
98 :
99 0 : auto PBroadcastChannelParent::OnMessageReceived(const Message& msg__) -> PBroadcastChannelParent::Result
100 : {
101 0 : switch ((msg__).type()) {
102 : case PBroadcastChannel::Msg_PostMessage__ID:
103 : {
104 0 : if (mozilla::ipc::LoggingEnabledFor("PBroadcastChannelParent")) {
105 0 : mozilla::ipc::LogMessageForProtocol("PBroadcastChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
106 : }
107 0 : AUTO_PROFILER_LABEL("PBroadcastChannel::Msg_PostMessage", OTHER);
108 :
109 0 : PickleIterator iter__(msg__);
110 0 : ClonedMessageData message;
111 :
112 0 : if ((!(Read((&(message)), (&(msg__)), (&(iter__)))))) {
113 0 : FatalError("Error deserializing 'ClonedMessageData'");
114 0 : return MsgValueError;
115 : }
116 : // Sentinel = 'message'
117 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1366108954)))) {
118 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ClonedMessageData'");
119 0 : return MsgValueError;
120 : }
121 0 : (msg__).EndRead(iter__, (msg__).type());
122 0 : PBroadcastChannel::Transition(PBroadcastChannel::Msg_PostMessage__ID, (&(mState)));
123 0 : if ((!(RecvPostMessage(mozilla::Move(message))))) {
124 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
125 : // Error handled in mozilla::ipc::IPCResult
126 0 : return MsgProcessingError;
127 : }
128 :
129 0 : return MsgProcessed;
130 : }
131 : case PBroadcastChannel::Msg_Close__ID:
132 : {
133 0 : if (mozilla::ipc::LoggingEnabledFor("PBroadcastChannelParent")) {
134 0 : mozilla::ipc::LogMessageForProtocol("PBroadcastChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
135 : }
136 0 : AUTO_PROFILER_LABEL("PBroadcastChannel::Msg_Close", OTHER);
137 :
138 0 : PBroadcastChannel::Transition(PBroadcastChannel::Msg_Close__ID, (&(mState)));
139 0 : if ((!(RecvClose()))) {
140 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
141 : // Error handled in mozilla::ipc::IPCResult
142 0 : return MsgProcessingError;
143 : }
144 :
145 0 : return MsgProcessed;
146 : }
147 : case PBroadcastChannel::Reply___delete____ID:
148 : {
149 0 : return MsgProcessed;
150 : }
151 : default:
152 : {
153 0 : return MsgNotKnown;
154 : }
155 : }
156 : }
157 :
158 0 : auto PBroadcastChannelParent::OnMessageReceived(
159 : const Message& msg__,
160 : Message*& reply__) -> PBroadcastChannelParent::Result
161 : {
162 0 : return MsgNotKnown;
163 : }
164 :
165 0 : auto PBroadcastChannelParent::OnCallReceived(
166 : const Message& msg__,
167 : Message*& reply__) -> PBroadcastChannelParent::Result
168 : {
169 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
170 : return MsgNotKnown;
171 : }
172 :
173 0 : auto PBroadcastChannelParent::GetProtocolTypeId() -> int32_t
174 : {
175 0 : return PBroadcastChannelMsgStart;
176 : }
177 :
178 0 : auto PBroadcastChannelParent::ProtocolName() const -> const char*
179 : {
180 0 : return "PBroadcastChannelParent";
181 : }
182 :
183 0 : auto PBroadcastChannelParent::DestroySubtree(ActorDestroyReason why) -> void
184 : {
185 : // Unregister from our manager.
186 0 : Unregister(Id());
187 :
188 : // Reject owning pending promises.
189 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
190 :
191 : // Finally, destroy "us".
192 0 : ActorDestroy(why);
193 0 : }
194 :
195 0 : auto PBroadcastChannelParent::DeallocSubtree() -> void
196 : {
197 0 : }
198 :
199 0 : auto PBroadcastChannelParent::Write(
200 : const nsTArray<InputStreamParams>& v__,
201 : Message* msg__) -> void
202 : {
203 0 : uint32_t length = (v__).Length();
204 0 : Write(length, msg__);
205 : // Sentinel = ('length', 'InputStreamParams[]')
206 0 : (msg__)->WriteSentinel(348334258);
207 :
208 0 : for (auto& elem : v__) {
209 0 : Write(elem, msg__);
210 : // Sentinel = 'InputStreamParams[]'
211 0 : (msg__)->WriteSentinel(2927715197);
212 : }
213 0 : }
214 :
215 0 : auto PBroadcastChannelParent::Read(
216 : nsTArray<InputStreamParams>* v__,
217 : const Message* msg__,
218 : PickleIterator* iter__) -> bool
219 : {
220 0 : nsTArray<InputStreamParams> fa;
221 : uint32_t length;
222 0 : if ((!(Read((&(length)), msg__, iter__)))) {
223 0 : mozilla::ipc::ArrayLengthReadError("InputStreamParams[]");
224 0 : return false;
225 : }
226 : // Sentinel = ('length', 'InputStreamParams[]')
227 0 : if ((!((msg__)->ReadSentinel(iter__, 348334258)))) {
228 0 : mozilla::ipc::SentinelReadError("InputStreamParams[]");
229 0 : return false;
230 : }
231 :
232 0 : InputStreamParams* elems = (fa).AppendElements(length);
233 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
234 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
235 0 : FatalError("Error deserializing 'InputStreamParams[i]'");
236 0 : return false;
237 : }
238 : // Sentinel = 'InputStreamParams[]'
239 0 : if ((!((msg__)->ReadSentinel(iter__, 2927715197)))) {
240 0 : mozilla::ipc::SentinelReadError("Error deserializing 'InputStreamParams[i]'");
241 0 : return false;
242 : }
243 : }
244 0 : (v__)->SwapElements(fa);
245 0 : return true;
246 : }
247 :
248 0 : auto PBroadcastChannelParent::Write(
249 : const nsTArray<FileDescriptor>& v__,
250 : Message* msg__) -> void
251 : {
252 0 : uint32_t length = (v__).Length();
253 0 : Write(length, msg__);
254 : // Sentinel = ('length', 'FileDescriptor[]')
255 0 : (msg__)->WriteSentinel(1697726450);
256 :
257 0 : for (auto& elem : v__) {
258 0 : Write(elem, msg__);
259 : // Sentinel = 'FileDescriptor[]'
260 0 : (msg__)->WriteSentinel(1630221245);
261 : }
262 0 : }
263 :
264 0 : auto PBroadcastChannelParent::Read(
265 : nsTArray<FileDescriptor>* v__,
266 : const Message* msg__,
267 : PickleIterator* iter__) -> bool
268 : {
269 0 : nsTArray<FileDescriptor> fa;
270 : uint32_t length;
271 0 : if ((!(Read((&(length)), msg__, iter__)))) {
272 0 : mozilla::ipc::ArrayLengthReadError("FileDescriptor[]");
273 0 : return false;
274 : }
275 : // Sentinel = ('length', 'FileDescriptor[]')
276 0 : if ((!((msg__)->ReadSentinel(iter__, 1697726450)))) {
277 0 : mozilla::ipc::SentinelReadError("FileDescriptor[]");
278 0 : return false;
279 : }
280 :
281 0 : FileDescriptor* elems = (fa).AppendElements(length);
282 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
283 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
284 0 : FatalError("Error deserializing 'FileDescriptor[i]'");
285 0 : return false;
286 : }
287 : // Sentinel = 'FileDescriptor[]'
288 0 : if ((!((msg__)->ReadSentinel(iter__, 1630221245)))) {
289 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor[i]'");
290 0 : return false;
291 : }
292 : }
293 0 : (v__)->SwapElements(fa);
294 0 : return true;
295 : }
296 :
297 0 : auto PBroadcastChannelParent::Write(
298 : const nsTArray<MessagePortIdentifier>& v__,
299 : Message* msg__) -> void
300 : {
301 0 : uint32_t length = (v__).Length();
302 0 : Write(length, msg__);
303 : // Sentinel = ('length', 'MessagePortIdentifier[]')
304 0 : (msg__)->WriteSentinel(680130807);
305 :
306 0 : for (auto& elem : v__) {
307 0 : Write(elem, msg__);
308 : // Sentinel = 'MessagePortIdentifier[]'
309 0 : (msg__)->WriteSentinel(1200404786);
310 : }
311 0 : }
312 :
313 0 : auto PBroadcastChannelParent::Read(
314 : nsTArray<MessagePortIdentifier>* v__,
315 : const Message* msg__,
316 : PickleIterator* iter__) -> bool
317 : {
318 0 : nsTArray<MessagePortIdentifier> fa;
319 : uint32_t length;
320 0 : if ((!(Read((&(length)), msg__, iter__)))) {
321 0 : mozilla::ipc::ArrayLengthReadError("MessagePortIdentifier[]");
322 0 : return false;
323 : }
324 : // Sentinel = ('length', 'MessagePortIdentifier[]')
325 0 : if ((!((msg__)->ReadSentinel(iter__, 680130807)))) {
326 0 : mozilla::ipc::SentinelReadError("MessagePortIdentifier[]");
327 0 : return false;
328 : }
329 :
330 0 : MessagePortIdentifier* elems = (fa).AppendElements(length);
331 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
332 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
333 0 : FatalError("Error deserializing 'MessagePortIdentifier[i]'");
334 0 : return false;
335 : }
336 : // Sentinel = 'MessagePortIdentifier[]'
337 0 : if ((!((msg__)->ReadSentinel(iter__, 1200404786)))) {
338 0 : mozilla::ipc::SentinelReadError("Error deserializing 'MessagePortIdentifier[i]'");
339 0 : return false;
340 : }
341 : }
342 0 : (v__)->SwapElements(fa);
343 0 : return true;
344 : }
345 :
346 0 : auto PBroadcastChannelParent::Write(
347 : const OptionalInputStreamParams& v__,
348 : Message* msg__) -> void
349 : {
350 : typedef OptionalInputStreamParams type__;
351 0 : Write(int((v__).type()), msg__);
352 : // Sentinel = 'OptionalInputStreamParams'
353 0 : (msg__)->WriteSentinel(1355174443);
354 :
355 0 : switch ((v__).type()) {
356 : case type__::Tvoid_t:
357 : {
358 0 : Write((v__).get_void_t(), msg__);
359 : // Sentinel = 'Tvoid_t'
360 0 : (msg__)->WriteSentinel(3041273328);
361 0 : return;
362 : }
363 : case type__::TInputStreamParams:
364 : {
365 0 : Write((v__).get_InputStreamParams(), msg__);
366 : // Sentinel = 'TInputStreamParams'
367 0 : (msg__)->WriteSentinel(55652096);
368 0 : return;
369 : }
370 : default:
371 : {
372 0 : FatalError("unknown union type");
373 0 : return;
374 : }
375 : }
376 : }
377 :
378 0 : auto PBroadcastChannelParent::Read(
379 : OptionalInputStreamParams* v__,
380 : const Message* msg__,
381 : PickleIterator* iter__) -> bool
382 : {
383 : typedef OptionalInputStreamParams type__;
384 : int type;
385 0 : if ((!(Read((&(type)), msg__, iter__)))) {
386 0 : mozilla::ipc::UnionTypeReadError("OptionalInputStreamParams");
387 0 : return false;
388 : }
389 : // Sentinel = 'OptionalInputStreamParams'
390 0 : if ((!((msg__)->ReadSentinel(iter__, 1355174443)))) {
391 0 : mozilla::ipc::SentinelReadError("OptionalInputStreamParams");
392 0 : return false;
393 : }
394 :
395 0 : switch (type) {
396 : case type__::Tvoid_t:
397 : {
398 : void_t tmp = void_t();
399 0 : (*(v__)) = tmp;
400 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
401 0 : FatalError("Error deserializing Union type");
402 0 : return false;
403 : }
404 : // Sentinel = 'Tvoid_t'
405 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
406 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
407 0 : return false;
408 : }
409 0 : return true;
410 : }
411 : case type__::TInputStreamParams:
412 : {
413 0 : InputStreamParams tmp = InputStreamParams();
414 0 : (*(v__)) = tmp;
415 0 : if ((!(Read((&((v__)->get_InputStreamParams())), msg__, iter__)))) {
416 0 : FatalError("Error deserializing Union type");
417 0 : return false;
418 : }
419 : // Sentinel = 'TInputStreamParams'
420 0 : if ((!((msg__)->ReadSentinel(iter__, 55652096)))) {
421 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
422 0 : return false;
423 : }
424 0 : return true;
425 : }
426 : default:
427 : {
428 0 : FatalError("unknown union type");
429 0 : return false;
430 : }
431 : }
432 : }
433 :
434 0 : auto PBroadcastChannelParent::Write(
435 : const IPCRemoteStream& v__,
436 : Message* msg__) -> void
437 : {
438 0 : Write((v__).delayedStart(), msg__);
439 : // Sentinel = 'delayedStart'
440 0 : (msg__)->WriteSentinel(1491822294);
441 0 : Write((v__).stream(), msg__);
442 : // Sentinel = 'stream'
443 0 : (msg__)->WriteSentinel(4152748422);
444 0 : }
445 :
446 0 : auto PBroadcastChannelParent::Read(
447 : IPCRemoteStream* v__,
448 : const Message* msg__,
449 : PickleIterator* iter__) -> bool
450 : {
451 0 : if ((!(Read((&((v__)->delayedStart())), msg__, iter__)))) {
452 0 : FatalError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
453 0 : return false;
454 : }
455 : // Sentinel = 'delayedStart'
456 0 : if ((!((msg__)->ReadSentinel(iter__, 1491822294)))) {
457 0 : mozilla::ipc::SentinelReadError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
458 0 : return false;
459 : }
460 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
461 0 : FatalError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
462 0 : return false;
463 : }
464 : // Sentinel = 'stream'
465 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
466 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
467 0 : return false;
468 : }
469 0 : return true;
470 : }
471 :
472 0 : auto PBroadcastChannelParent::Write(
473 : const FileInputStreamParams& v__,
474 : Message* msg__) -> void
475 : {
476 0 : Write((v__).fileDescriptorIndex(), msg__);
477 : // Sentinel = 'fileDescriptorIndex'
478 0 : (msg__)->WriteSentinel(587329112);
479 0 : Write((v__).behaviorFlags(), msg__);
480 : // Sentinel = 'behaviorFlags'
481 0 : (msg__)->WriteSentinel(2404401962);
482 0 : Write((v__).ioFlags(), msg__);
483 : // Sentinel = 'ioFlags'
484 0 : (msg__)->WriteSentinel(1483009730);
485 0 : }
486 :
487 0 : auto PBroadcastChannelParent::Read(
488 : FileInputStreamParams* v__,
489 : const Message* msg__,
490 : PickleIterator* iter__) -> bool
491 : {
492 0 : if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
493 0 : FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
494 0 : return false;
495 : }
496 : // Sentinel = 'fileDescriptorIndex'
497 0 : if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
498 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
499 0 : return false;
500 : }
501 0 : if ((!(Read((&((v__)->behaviorFlags())), msg__, iter__)))) {
502 0 : FatalError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
503 0 : return false;
504 : }
505 : // Sentinel = 'behaviorFlags'
506 0 : if ((!((msg__)->ReadSentinel(iter__, 2404401962)))) {
507 0 : mozilla::ipc::SentinelReadError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
508 0 : return false;
509 : }
510 0 : if ((!(Read((&((v__)->ioFlags())), msg__, iter__)))) {
511 0 : FatalError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
512 0 : return false;
513 : }
514 : // Sentinel = 'ioFlags'
515 0 : if ((!((msg__)->ReadSentinel(iter__, 1483009730)))) {
516 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
517 0 : return false;
518 : }
519 0 : return true;
520 : }
521 :
522 0 : auto PBroadcastChannelParent::Write(
523 : const IPCBlobInputStreamParams& v__,
524 : Message* msg__) -> void
525 : {
526 0 : Write((v__).id(), msg__);
527 : // Sentinel = 'id'
528 0 : (msg__)->WriteSentinel(2794505629);
529 0 : }
530 :
531 0 : auto PBroadcastChannelParent::Read(
532 : IPCBlobInputStreamParams* v__,
533 : const Message* msg__,
534 : PickleIterator* iter__) -> bool
535 : {
536 0 : if ((!(Read((&((v__)->id())), msg__, iter__)))) {
537 0 : FatalError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
538 0 : return false;
539 : }
540 : // Sentinel = 'id'
541 0 : if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
542 0 : mozilla::ipc::SentinelReadError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
543 0 : return false;
544 : }
545 0 : return true;
546 : }
547 :
548 0 : auto PBroadcastChannelParent::Write(
549 : const IPCFile& v__,
550 : Message* msg__) -> void
551 : {
552 0 : Write((v__).name(), msg__);
553 : // Sentinel = 'name'
554 0 : (msg__)->WriteSentinel(15034981);
555 0 : Write((v__).lastModified(), msg__);
556 : // Sentinel = 'lastModified'
557 0 : (msg__)->WriteSentinel(3456113257);
558 0 : Write((v__).DOMPath(), msg__);
559 : // Sentinel = 'DOMPath'
560 0 : (msg__)->WriteSentinel(1724352494);
561 0 : Write((v__).fullPath(), msg__);
562 : // Sentinel = 'fullPath'
563 0 : (msg__)->WriteSentinel(385652698);
564 0 : Write((v__).isDirectory(), msg__);
565 : // Sentinel = 'isDirectory'
566 0 : (msg__)->WriteSentinel(2309743506);
567 0 : }
568 :
569 0 : auto PBroadcastChannelParent::Read(
570 : IPCFile* v__,
571 : const Message* msg__,
572 : PickleIterator* iter__) -> bool
573 : {
574 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
575 0 : FatalError("Error deserializing 'name' (nsString) member of 'IPCFile'");
576 0 : return false;
577 : }
578 : // Sentinel = 'name'
579 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
580 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsString) member of 'IPCFile'");
581 0 : return false;
582 : }
583 0 : if ((!(Read((&((v__)->lastModified())), msg__, iter__)))) {
584 0 : FatalError("Error deserializing 'lastModified' (int64_t) member of 'IPCFile'");
585 0 : return false;
586 : }
587 : // Sentinel = 'lastModified'
588 0 : if ((!((msg__)->ReadSentinel(iter__, 3456113257)))) {
589 0 : mozilla::ipc::SentinelReadError("Error deserializing 'lastModified' (int64_t) member of 'IPCFile'");
590 0 : return false;
591 : }
592 0 : if ((!(Read((&((v__)->DOMPath())), msg__, iter__)))) {
593 0 : FatalError("Error deserializing 'DOMPath' (nsString) member of 'IPCFile'");
594 0 : return false;
595 : }
596 : // Sentinel = 'DOMPath'
597 0 : if ((!((msg__)->ReadSentinel(iter__, 1724352494)))) {
598 0 : mozilla::ipc::SentinelReadError("Error deserializing 'DOMPath' (nsString) member of 'IPCFile'");
599 0 : return false;
600 : }
601 0 : if ((!(Read((&((v__)->fullPath())), msg__, iter__)))) {
602 0 : FatalError("Error deserializing 'fullPath' (nsString) member of 'IPCFile'");
603 0 : return false;
604 : }
605 : // Sentinel = 'fullPath'
606 0 : if ((!((msg__)->ReadSentinel(iter__, 385652698)))) {
607 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fullPath' (nsString) member of 'IPCFile'");
608 0 : return false;
609 : }
610 0 : if ((!(Read((&((v__)->isDirectory())), msg__, iter__)))) {
611 0 : FatalError("Error deserializing 'isDirectory' (bool) member of 'IPCFile'");
612 0 : return false;
613 : }
614 : // Sentinel = 'isDirectory'
615 0 : if ((!((msg__)->ReadSentinel(iter__, 2309743506)))) {
616 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isDirectory' (bool) member of 'IPCFile'");
617 0 : return false;
618 : }
619 0 : return true;
620 : }
621 :
622 0 : auto PBroadcastChannelParent::Write(
623 : const IPCFileUnion& v__,
624 : Message* msg__) -> void
625 : {
626 : typedef IPCFileUnion type__;
627 0 : Write(int((v__).type()), msg__);
628 : // Sentinel = 'IPCFileUnion'
629 0 : (msg__)->WriteSentinel(1913022529);
630 :
631 0 : switch ((v__).type()) {
632 : case type__::Tvoid_t:
633 : {
634 0 : Write((v__).get_void_t(), msg__);
635 : // Sentinel = 'Tvoid_t'
636 0 : (msg__)->WriteSentinel(3041273328);
637 0 : return;
638 : }
639 : case type__::TIPCFile:
640 : {
641 0 : Write((v__).get_IPCFile(), msg__);
642 : // Sentinel = 'TIPCFile'
643 0 : (msg__)->WriteSentinel(3562676876);
644 0 : return;
645 : }
646 : default:
647 : {
648 0 : FatalError("unknown union type");
649 0 : return;
650 : }
651 : }
652 : }
653 :
654 0 : auto PBroadcastChannelParent::Read(
655 : IPCFileUnion* v__,
656 : const Message* msg__,
657 : PickleIterator* iter__) -> bool
658 : {
659 : typedef IPCFileUnion type__;
660 : int type;
661 0 : if ((!(Read((&(type)), msg__, iter__)))) {
662 0 : mozilla::ipc::UnionTypeReadError("IPCFileUnion");
663 0 : return false;
664 : }
665 : // Sentinel = 'IPCFileUnion'
666 0 : if ((!((msg__)->ReadSentinel(iter__, 1913022529)))) {
667 0 : mozilla::ipc::SentinelReadError("IPCFileUnion");
668 0 : return false;
669 : }
670 :
671 0 : switch (type) {
672 : case type__::Tvoid_t:
673 : {
674 : void_t tmp = void_t();
675 0 : (*(v__)) = tmp;
676 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
677 0 : FatalError("Error deserializing Union type");
678 0 : return false;
679 : }
680 : // Sentinel = 'Tvoid_t'
681 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
682 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
683 0 : return false;
684 : }
685 0 : return true;
686 : }
687 : case type__::TIPCFile:
688 : {
689 0 : IPCFile tmp = IPCFile();
690 0 : (*(v__)) = tmp;
691 0 : if ((!(Read((&((v__)->get_IPCFile())), msg__, iter__)))) {
692 0 : FatalError("Error deserializing Union type");
693 0 : return false;
694 : }
695 : // Sentinel = 'TIPCFile'
696 0 : if ((!((msg__)->ReadSentinel(iter__, 3562676876)))) {
697 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
698 0 : return false;
699 : }
700 0 : return true;
701 : }
702 : default:
703 : {
704 0 : FatalError("unknown union type");
705 0 : return false;
706 : }
707 : }
708 : }
709 :
710 0 : auto PBroadcastChannelParent::Write(
711 : const MessagePortIdentifier& v__,
712 : Message* msg__) -> void
713 : {
714 0 : Write((v__).uuid(), msg__);
715 : // Sentinel = 'uuid'
716 0 : (msg__)->WriteSentinel(1982267941);
717 0 : Write((v__).destinationUuid(), msg__);
718 : // Sentinel = 'destinationUuid'
719 0 : (msg__)->WriteSentinel(372087918);
720 0 : Write((v__).sequenceId(), msg__);
721 : // Sentinel = 'sequenceId'
722 0 : (msg__)->WriteSentinel(2743535618);
723 0 : Write((v__).neutered(), msg__);
724 : // Sentinel = 'neutered'
725 0 : (msg__)->WriteSentinel(520678014);
726 0 : }
727 :
728 0 : auto PBroadcastChannelParent::Read(
729 : MessagePortIdentifier* v__,
730 : const Message* msg__,
731 : PickleIterator* iter__) -> bool
732 : {
733 0 : if ((!(Read((&((v__)->uuid())), msg__, iter__)))) {
734 0 : FatalError("Error deserializing 'uuid' (nsID) member of 'MessagePortIdentifier'");
735 0 : return false;
736 : }
737 : // Sentinel = 'uuid'
738 0 : if ((!((msg__)->ReadSentinel(iter__, 1982267941)))) {
739 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uuid' (nsID) member of 'MessagePortIdentifier'");
740 0 : return false;
741 : }
742 0 : if ((!(Read((&((v__)->destinationUuid())), msg__, iter__)))) {
743 0 : FatalError("Error deserializing 'destinationUuid' (nsID) member of 'MessagePortIdentifier'");
744 0 : return false;
745 : }
746 : // Sentinel = 'destinationUuid'
747 0 : if ((!((msg__)->ReadSentinel(iter__, 372087918)))) {
748 0 : mozilla::ipc::SentinelReadError("Error deserializing 'destinationUuid' (nsID) member of 'MessagePortIdentifier'");
749 0 : return false;
750 : }
751 0 : if ((!(Read((&((v__)->sequenceId())), msg__, iter__)))) {
752 0 : FatalError("Error deserializing 'sequenceId' (uint32_t) member of 'MessagePortIdentifier'");
753 0 : return false;
754 : }
755 : // Sentinel = 'sequenceId'
756 0 : if ((!((msg__)->ReadSentinel(iter__, 2743535618)))) {
757 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sequenceId' (uint32_t) member of 'MessagePortIdentifier'");
758 0 : return false;
759 : }
760 0 : if ((!(Read((&((v__)->neutered())), msg__, iter__)))) {
761 0 : FatalError("Error deserializing 'neutered' (bool) member of 'MessagePortIdentifier'");
762 0 : return false;
763 : }
764 : // Sentinel = 'neutered'
765 0 : if ((!((msg__)->ReadSentinel(iter__, 520678014)))) {
766 0 : mozilla::ipc::SentinelReadError("Error deserializing 'neutered' (bool) member of 'MessagePortIdentifier'");
767 0 : return false;
768 : }
769 0 : return true;
770 : }
771 :
772 0 : auto PBroadcastChannelParent::Write(
773 : const InputStreamParamsWithFds& v__,
774 : Message* msg__) -> void
775 : {
776 0 : Write((v__).stream(), msg__);
777 : // Sentinel = 'stream'
778 0 : (msg__)->WriteSentinel(4152748422);
779 0 : Write((v__).optionalFds(), msg__);
780 : // Sentinel = 'optionalFds'
781 0 : (msg__)->WriteSentinel(1021803302);
782 0 : }
783 :
784 0 : auto PBroadcastChannelParent::Read(
785 : InputStreamParamsWithFds* v__,
786 : const Message* msg__,
787 : PickleIterator* iter__) -> bool
788 : {
789 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
790 0 : FatalError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
791 0 : return false;
792 : }
793 : // Sentinel = 'stream'
794 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
795 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
796 0 : return false;
797 : }
798 0 : if ((!(Read((&((v__)->optionalFds())), msg__, iter__)))) {
799 0 : FatalError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
800 0 : return false;
801 : }
802 : // Sentinel = 'optionalFds'
803 0 : if ((!((msg__)->ReadSentinel(iter__, 1021803302)))) {
804 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
805 0 : return false;
806 : }
807 0 : return true;
808 : }
809 :
810 0 : auto PBroadcastChannelParent::Write(
811 : const IPCBlobStream& v__,
812 : Message* msg__) -> void
813 : {
814 : typedef IPCBlobStream type__;
815 0 : Write(int((v__).type()), msg__);
816 : // Sentinel = 'IPCBlobStream'
817 0 : (msg__)->WriteSentinel(2926762354);
818 :
819 0 : switch ((v__).type()) {
820 : case type__::TPIPCBlobInputStreamParent:
821 : {
822 0 : Write((v__).get_PIPCBlobInputStreamParent(), msg__, false);
823 : // Sentinel = 'TPIPCBlobInputStreamParent'
824 0 : (msg__)->WriteSentinel(2944059743);
825 0 : return;
826 : }
827 : case type__::TPIPCBlobInputStreamChild:
828 : {
829 0 : FatalError("wrong side!");
830 0 : return;
831 : }
832 : case type__::TIPCStream:
833 : {
834 0 : Write((v__).get_IPCStream(), msg__);
835 : // Sentinel = 'TIPCStream'
836 0 : (msg__)->WriteSentinel(40701900);
837 0 : return;
838 : }
839 : default:
840 : {
841 0 : FatalError("unknown union type");
842 0 : return;
843 : }
844 : }
845 : }
846 :
847 0 : auto PBroadcastChannelParent::Read(
848 : IPCBlobStream* v__,
849 : const Message* msg__,
850 : PickleIterator* iter__) -> bool
851 : {
852 : typedef IPCBlobStream type__;
853 : int type;
854 0 : if ((!(Read((&(type)), msg__, iter__)))) {
855 0 : mozilla::ipc::UnionTypeReadError("IPCBlobStream");
856 0 : return false;
857 : }
858 : // Sentinel = 'IPCBlobStream'
859 0 : if ((!((msg__)->ReadSentinel(iter__, 2926762354)))) {
860 0 : mozilla::ipc::SentinelReadError("IPCBlobStream");
861 0 : return false;
862 : }
863 :
864 0 : switch (type) {
865 : case type__::TPIPCBlobInputStreamParent:
866 : {
867 0 : return false;
868 : }
869 : case type__::TPIPCBlobInputStreamChild:
870 : {
871 0 : PIPCBlobInputStreamParent* tmp = nullptr;
872 0 : (*(v__)) = tmp;
873 0 : if ((!(Read((&((v__)->get_PIPCBlobInputStreamParent())), msg__, iter__, false)))) {
874 0 : FatalError("Error deserializing Union type");
875 0 : return false;
876 : }
877 : // Sentinel = 'TPIPCBlobInputStreamChild'
878 0 : if ((!((msg__)->ReadSentinel(iter__, 3349556844)))) {
879 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
880 0 : return false;
881 : }
882 0 : return true;
883 : }
884 : case type__::TIPCStream:
885 : {
886 0 : IPCStream tmp = IPCStream();
887 0 : (*(v__)) = tmp;
888 0 : if ((!(Read((&((v__)->get_IPCStream())), msg__, iter__)))) {
889 0 : FatalError("Error deserializing Union type");
890 0 : return false;
891 : }
892 : // Sentinel = 'TIPCStream'
893 0 : if ((!((msg__)->ReadSentinel(iter__, 40701900)))) {
894 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
895 0 : return false;
896 : }
897 0 : return true;
898 : }
899 : default:
900 : {
901 0 : FatalError("unknown union type");
902 0 : return false;
903 : }
904 : }
905 : }
906 :
907 0 : auto PBroadcastChannelParent::Write(
908 : const nsTArray<IPCBlob>& v__,
909 : Message* msg__) -> void
910 : {
911 0 : uint32_t length = (v__).Length();
912 0 : Write(length, msg__);
913 : // Sentinel = ('length', 'IPCBlob[]')
914 0 : (msg__)->WriteSentinel(894413667);
915 :
916 0 : for (auto& elem : v__) {
917 0 : Write(elem, msg__);
918 : // Sentinel = 'IPCBlob[]'
919 0 : (msg__)->WriteSentinel(3337464726);
920 : }
921 0 : }
922 :
923 0 : auto PBroadcastChannelParent::Read(
924 : nsTArray<IPCBlob>* v__,
925 : const Message* msg__,
926 : PickleIterator* iter__) -> bool
927 : {
928 0 : nsTArray<IPCBlob> fa;
929 : uint32_t length;
930 0 : if ((!(Read((&(length)), msg__, iter__)))) {
931 0 : mozilla::ipc::ArrayLengthReadError("IPCBlob[]");
932 0 : return false;
933 : }
934 : // Sentinel = ('length', 'IPCBlob[]')
935 0 : if ((!((msg__)->ReadSentinel(iter__, 894413667)))) {
936 0 : mozilla::ipc::SentinelReadError("IPCBlob[]");
937 0 : return false;
938 : }
939 :
940 0 : IPCBlob* elems = (fa).AppendElements(length);
941 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
942 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
943 0 : FatalError("Error deserializing 'IPCBlob[i]'");
944 0 : return false;
945 : }
946 : // Sentinel = 'IPCBlob[]'
947 0 : if ((!((msg__)->ReadSentinel(iter__, 3337464726)))) {
948 0 : mozilla::ipc::SentinelReadError("Error deserializing 'IPCBlob[i]'");
949 0 : return false;
950 : }
951 : }
952 0 : (v__)->SwapElements(fa);
953 0 : return true;
954 : }
955 :
956 0 : auto PBroadcastChannelParent::Write(
957 : const ClonedMessageData& v__,
958 : Message* msg__) -> void
959 : {
960 0 : Write((v__).data(), msg__);
961 : // Sentinel = 'data'
962 0 : (msg__)->WriteSentinel(843352540);
963 0 : Write((v__).blobs(), msg__);
964 : // Sentinel = 'blobs'
965 0 : (msg__)->WriteSentinel(635500709);
966 0 : Write((v__).inputStreams(), msg__);
967 : // Sentinel = 'inputStreams'
968 0 : (msg__)->WriteSentinel(435739475);
969 0 : Write((v__).identfiers(), msg__);
970 : // Sentinel = 'identfiers'
971 0 : (msg__)->WriteSentinel(3130566733);
972 0 : }
973 :
974 0 : auto PBroadcastChannelParent::Read(
975 : ClonedMessageData* v__,
976 : const Message* msg__,
977 : PickleIterator* iter__) -> bool
978 : {
979 0 : if ((!(Read((&((v__)->data())), msg__, iter__)))) {
980 0 : FatalError("Error deserializing 'data' (SerializedStructuredCloneBuffer) member of 'ClonedMessageData'");
981 0 : return false;
982 : }
983 : // Sentinel = 'data'
984 0 : if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
985 0 : mozilla::ipc::SentinelReadError("Error deserializing 'data' (SerializedStructuredCloneBuffer) member of 'ClonedMessageData'");
986 0 : return false;
987 : }
988 0 : if ((!(Read((&((v__)->blobs())), msg__, iter__)))) {
989 0 : FatalError("Error deserializing 'blobs' (IPCBlob[]) member of 'ClonedMessageData'");
990 0 : return false;
991 : }
992 : // Sentinel = 'blobs'
993 0 : if ((!((msg__)->ReadSentinel(iter__, 635500709)))) {
994 0 : mozilla::ipc::SentinelReadError("Error deserializing 'blobs' (IPCBlob[]) member of 'ClonedMessageData'");
995 0 : return false;
996 : }
997 0 : if ((!(Read((&((v__)->inputStreams())), msg__, iter__)))) {
998 0 : FatalError("Error deserializing 'inputStreams' (IPCStream[]) member of 'ClonedMessageData'");
999 0 : return false;
1000 : }
1001 : // Sentinel = 'inputStreams'
1002 0 : if ((!((msg__)->ReadSentinel(iter__, 435739475)))) {
1003 0 : mozilla::ipc::SentinelReadError("Error deserializing 'inputStreams' (IPCStream[]) member of 'ClonedMessageData'");
1004 0 : return false;
1005 : }
1006 0 : if ((!(Read((&((v__)->identfiers())), msg__, iter__)))) {
1007 0 : FatalError("Error deserializing 'identfiers' (MessagePortIdentifier[]) member of 'ClonedMessageData'");
1008 0 : return false;
1009 : }
1010 : // Sentinel = 'identfiers'
1011 0 : if ((!((msg__)->ReadSentinel(iter__, 3130566733)))) {
1012 0 : mozilla::ipc::SentinelReadError("Error deserializing 'identfiers' (MessagePortIdentifier[]) member of 'ClonedMessageData'");
1013 0 : return false;
1014 : }
1015 0 : return true;
1016 : }
1017 :
1018 0 : auto PBroadcastChannelParent::Write(
1019 : const nsTArray<HeaderEntry>& v__,
1020 : Message* msg__) -> void
1021 : {
1022 0 : uint32_t length = (v__).Length();
1023 0 : Write(length, msg__);
1024 : // Sentinel = ('length', 'HeaderEntry[]')
1025 0 : (msg__)->WriteSentinel(2689457705);
1026 :
1027 0 : for (auto& elem : v__) {
1028 0 : Write(elem, msg__);
1029 : // Sentinel = 'HeaderEntry[]'
1030 0 : (msg__)->WriteSentinel(454836120);
1031 : }
1032 0 : }
1033 :
1034 0 : auto PBroadcastChannelParent::Read(
1035 : nsTArray<HeaderEntry>* v__,
1036 : const Message* msg__,
1037 : PickleIterator* iter__) -> bool
1038 : {
1039 0 : nsTArray<HeaderEntry> fa;
1040 : uint32_t length;
1041 0 : if ((!(Read((&(length)), msg__, iter__)))) {
1042 0 : mozilla::ipc::ArrayLengthReadError("HeaderEntry[]");
1043 0 : return false;
1044 : }
1045 : // Sentinel = ('length', 'HeaderEntry[]')
1046 0 : if ((!((msg__)->ReadSentinel(iter__, 2689457705)))) {
1047 0 : mozilla::ipc::SentinelReadError("HeaderEntry[]");
1048 0 : return false;
1049 : }
1050 :
1051 0 : HeaderEntry* elems = (fa).AppendElements(length);
1052 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
1053 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
1054 0 : FatalError("Error deserializing 'HeaderEntry[i]'");
1055 0 : return false;
1056 : }
1057 : // Sentinel = 'HeaderEntry[]'
1058 0 : if ((!((msg__)->ReadSentinel(iter__, 454836120)))) {
1059 0 : mozilla::ipc::SentinelReadError("Error deserializing 'HeaderEntry[i]'");
1060 0 : return false;
1061 : }
1062 : }
1063 0 : (v__)->SwapElements(fa);
1064 0 : return true;
1065 : }
1066 :
1067 0 : auto PBroadcastChannelParent::Write(
1068 : const SlicedInputStreamParams& v__,
1069 : Message* msg__) -> void
1070 : {
1071 0 : Write((v__).stream(), msg__);
1072 : // Sentinel = 'stream'
1073 0 : (msg__)->WriteSentinel(4152748422);
1074 0 : Write((v__).start(), msg__);
1075 : // Sentinel = 'start'
1076 0 : (msg__)->WriteSentinel(2088644401);
1077 0 : Write((v__).length(), msg__);
1078 : // Sentinel = 'length'
1079 0 : (msg__)->WriteSentinel(1726618354);
1080 0 : Write((v__).curPos(), msg__);
1081 : // Sentinel = 'curPos'
1082 0 : (msg__)->WriteSentinel(4042140974);
1083 0 : Write((v__).closed(), msg__);
1084 : // Sentinel = 'closed'
1085 0 : (msg__)->WriteSentinel(561249462);
1086 0 : }
1087 :
1088 0 : auto PBroadcastChannelParent::Read(
1089 : SlicedInputStreamParams* v__,
1090 : const Message* msg__,
1091 : PickleIterator* iter__) -> bool
1092 : {
1093 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
1094 0 : FatalError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
1095 0 : return false;
1096 : }
1097 : // Sentinel = 'stream'
1098 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
1099 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
1100 0 : return false;
1101 : }
1102 0 : if ((!(Read((&((v__)->start())), msg__, iter__)))) {
1103 0 : FatalError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
1104 0 : return false;
1105 : }
1106 : // Sentinel = 'start'
1107 0 : if ((!((msg__)->ReadSentinel(iter__, 2088644401)))) {
1108 0 : mozilla::ipc::SentinelReadError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
1109 0 : return false;
1110 : }
1111 0 : if ((!(Read((&((v__)->length())), msg__, iter__)))) {
1112 0 : FatalError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
1113 0 : return false;
1114 : }
1115 : // Sentinel = 'length'
1116 0 : if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
1117 0 : mozilla::ipc::SentinelReadError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
1118 0 : return false;
1119 : }
1120 0 : if ((!(Read((&((v__)->curPos())), msg__, iter__)))) {
1121 0 : FatalError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
1122 0 : return false;
1123 : }
1124 : // Sentinel = 'curPos'
1125 0 : if ((!((msg__)->ReadSentinel(iter__, 4042140974)))) {
1126 0 : mozilla::ipc::SentinelReadError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
1127 0 : return false;
1128 : }
1129 0 : if ((!(Read((&((v__)->closed())), msg__, iter__)))) {
1130 0 : FatalError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
1131 0 : return false;
1132 : }
1133 : // Sentinel = 'closed'
1134 0 : if ((!((msg__)->ReadSentinel(iter__, 561249462)))) {
1135 0 : mozilla::ipc::SentinelReadError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
1136 0 : return false;
1137 : }
1138 0 : return true;
1139 : }
1140 :
1141 0 : auto PBroadcastChannelParent::Write(
1142 : const IPCRemoteStreamType& v__,
1143 : Message* msg__) -> void
1144 : {
1145 : typedef IPCRemoteStreamType type__;
1146 0 : Write(int((v__).type()), msg__);
1147 : // Sentinel = 'IPCRemoteStreamType'
1148 0 : (msg__)->WriteSentinel(391674895);
1149 :
1150 0 : switch ((v__).type()) {
1151 : case type__::TPChildToParentStreamParent:
1152 : {
1153 0 : Write((v__).get_PChildToParentStreamParent(), msg__, false);
1154 : // Sentinel = 'TPChildToParentStreamParent'
1155 0 : (msg__)->WriteSentinel(2724777622);
1156 0 : return;
1157 : }
1158 : case type__::TPChildToParentStreamChild:
1159 : {
1160 0 : FatalError("wrong side!");
1161 0 : return;
1162 : }
1163 : case type__::TPParentToChildStreamParent:
1164 : {
1165 0 : Write((v__).get_PParentToChildStreamParent(), msg__, false);
1166 : // Sentinel = 'TPParentToChildStreamParent'
1167 0 : (msg__)->WriteSentinel(3335986876);
1168 0 : return;
1169 : }
1170 : case type__::TPParentToChildStreamChild:
1171 : {
1172 0 : FatalError("wrong side!");
1173 0 : return;
1174 : }
1175 : default:
1176 : {
1177 0 : FatalError("unknown union type");
1178 0 : return;
1179 : }
1180 : }
1181 : }
1182 :
1183 0 : auto PBroadcastChannelParent::Read(
1184 : IPCRemoteStreamType* v__,
1185 : const Message* msg__,
1186 : PickleIterator* iter__) -> bool
1187 : {
1188 : typedef IPCRemoteStreamType type__;
1189 : int type;
1190 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1191 0 : mozilla::ipc::UnionTypeReadError("IPCRemoteStreamType");
1192 0 : return false;
1193 : }
1194 : // Sentinel = 'IPCRemoteStreamType'
1195 0 : if ((!((msg__)->ReadSentinel(iter__, 391674895)))) {
1196 0 : mozilla::ipc::SentinelReadError("IPCRemoteStreamType");
1197 0 : return false;
1198 : }
1199 :
1200 0 : switch (type) {
1201 : case type__::TPChildToParentStreamParent:
1202 : {
1203 0 : return false;
1204 : }
1205 : case type__::TPChildToParentStreamChild:
1206 : {
1207 0 : PChildToParentStreamParent* tmp = nullptr;
1208 0 : (*(v__)) = tmp;
1209 0 : if ((!(Read((&((v__)->get_PChildToParentStreamParent())), msg__, iter__, false)))) {
1210 0 : FatalError("Error deserializing Union type");
1211 0 : return false;
1212 : }
1213 : // Sentinel = 'TPChildToParentStreamChild'
1214 0 : if ((!((msg__)->ReadSentinel(iter__, 1882094295)))) {
1215 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1216 0 : return false;
1217 : }
1218 0 : return true;
1219 : }
1220 : case type__::TPParentToChildStreamParent:
1221 : {
1222 0 : return false;
1223 : }
1224 : case type__::TPParentToChildStreamChild:
1225 : {
1226 0 : PParentToChildStreamParent* tmp = nullptr;
1227 0 : (*(v__)) = tmp;
1228 0 : if ((!(Read((&((v__)->get_PParentToChildStreamParent())), msg__, iter__, false)))) {
1229 0 : FatalError("Error deserializing Union type");
1230 0 : return false;
1231 : }
1232 : // Sentinel = 'TPParentToChildStreamChild'
1233 0 : if ((!((msg__)->ReadSentinel(iter__, 190098493)))) {
1234 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1235 0 : return false;
1236 : }
1237 0 : return true;
1238 : }
1239 : default:
1240 : {
1241 0 : FatalError("unknown union type");
1242 0 : return false;
1243 : }
1244 : }
1245 : }
1246 :
1247 0 : auto PBroadcastChannelParent::Write(
1248 : const TemporaryFileInputStreamParams& v__,
1249 : Message* msg__) -> void
1250 : {
1251 0 : Write((v__).fileDescriptorIndex(), msg__);
1252 : // Sentinel = 'fileDescriptorIndex'
1253 0 : (msg__)->WriteSentinel(587329112);
1254 0 : Write((v__).startPos(), msg__);
1255 : // Sentinel = 'startPos'
1256 0 : (msg__)->WriteSentinel(557207962);
1257 0 : Write((v__).endPos(), msg__);
1258 : // Sentinel = 'endPos'
1259 0 : (msg__)->WriteSentinel(881536245);
1260 0 : }
1261 :
1262 0 : auto PBroadcastChannelParent::Read(
1263 : TemporaryFileInputStreamParams* v__,
1264 : const Message* msg__,
1265 : PickleIterator* iter__) -> bool
1266 : {
1267 0 : if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
1268 0 : FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
1269 0 : return false;
1270 : }
1271 : // Sentinel = 'fileDescriptorIndex'
1272 0 : if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
1273 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
1274 0 : return false;
1275 : }
1276 0 : if ((!(Read((&((v__)->startPos())), msg__, iter__)))) {
1277 0 : FatalError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
1278 0 : return false;
1279 : }
1280 : // Sentinel = 'startPos'
1281 0 : if ((!((msg__)->ReadSentinel(iter__, 557207962)))) {
1282 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
1283 0 : return false;
1284 : }
1285 0 : if ((!(Read((&((v__)->endPos())), msg__, iter__)))) {
1286 0 : FatalError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
1287 0 : return false;
1288 : }
1289 : // Sentinel = 'endPos'
1290 0 : if ((!((msg__)->ReadSentinel(iter__, 881536245)))) {
1291 0 : mozilla::ipc::SentinelReadError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
1292 0 : return false;
1293 : }
1294 0 : return true;
1295 : }
1296 :
1297 0 : auto PBroadcastChannelParent::Write(
1298 : const MIMEInputStreamParams& v__,
1299 : Message* msg__) -> void
1300 : {
1301 0 : Write((v__).optionalStream(), msg__);
1302 : // Sentinel = 'optionalStream'
1303 0 : (msg__)->WriteSentinel(1003718562);
1304 0 : Write((v__).headers(), msg__);
1305 : // Sentinel = 'headers'
1306 0 : (msg__)->WriteSentinel(4284175217);
1307 0 : Write((v__).startedReading(), msg__);
1308 : // Sentinel = 'startedReading'
1309 0 : (msg__)->WriteSentinel(1906875903);
1310 0 : }
1311 :
1312 0 : auto PBroadcastChannelParent::Read(
1313 : MIMEInputStreamParams* v__,
1314 : const Message* msg__,
1315 : PickleIterator* iter__) -> bool
1316 : {
1317 0 : if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
1318 0 : FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
1319 0 : return false;
1320 : }
1321 : // Sentinel = 'optionalStream'
1322 0 : if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
1323 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
1324 0 : return false;
1325 : }
1326 0 : if ((!(Read((&((v__)->headers())), msg__, iter__)))) {
1327 0 : FatalError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
1328 0 : return false;
1329 : }
1330 : // Sentinel = 'headers'
1331 0 : if ((!((msg__)->ReadSentinel(iter__, 4284175217)))) {
1332 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
1333 0 : return false;
1334 : }
1335 0 : if ((!(Read((&((v__)->startedReading())), msg__, iter__)))) {
1336 0 : FatalError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
1337 0 : return false;
1338 : }
1339 : // Sentinel = 'startedReading'
1340 0 : if ((!((msg__)->ReadSentinel(iter__, 1906875903)))) {
1341 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
1342 0 : return false;
1343 : }
1344 0 : return true;
1345 : }
1346 :
1347 0 : auto PBroadcastChannelParent::Write(
1348 : const PBroadcastChannelParent* v__,
1349 : Message* msg__,
1350 : bool nullable__) -> void
1351 : {
1352 : int32_t id;
1353 0 : if ((!(v__))) {
1354 0 : if ((!(nullable__))) {
1355 0 : FatalError("NULL actor value passed to non-nullable param");
1356 : }
1357 0 : id = 0;
1358 : }
1359 : else {
1360 0 : id = (v__)->Id();
1361 0 : if ((1) == (id)) {
1362 0 : FatalError("actor has been |delete|d");
1363 : }
1364 : }
1365 :
1366 0 : Write(id, msg__);
1367 0 : }
1368 :
1369 0 : auto PBroadcastChannelParent::Read(
1370 : PBroadcastChannelParent** v__,
1371 : const Message* msg__,
1372 : PickleIterator* iter__,
1373 : bool nullable__) -> bool
1374 : {
1375 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBroadcastChannel", PBroadcastChannelMsgStart);
1376 0 : if ((actor).isNothing()) {
1377 0 : return false;
1378 : }
1379 :
1380 0 : (*(v__)) = static_cast<PBroadcastChannelParent*>((actor).value());
1381 0 : return true;
1382 : }
1383 :
1384 0 : auto PBroadcastChannelParent::Write(
1385 : const InputStreamParams& v__,
1386 : Message* msg__) -> void
1387 : {
1388 : typedef InputStreamParams type__;
1389 0 : Write(int((v__).type()), msg__);
1390 : // Sentinel = 'InputStreamParams'
1391 0 : (msg__)->WriteSentinel(4114814015);
1392 :
1393 0 : switch ((v__).type()) {
1394 : case type__::TStringInputStreamParams:
1395 : {
1396 0 : Write((v__).get_StringInputStreamParams(), msg__);
1397 : // Sentinel = 'TStringInputStreamParams'
1398 0 : (msg__)->WriteSentinel(3395831651);
1399 0 : return;
1400 : }
1401 : case type__::TFileInputStreamParams:
1402 : {
1403 0 : Write((v__).get_FileInputStreamParams(), msg__);
1404 : // Sentinel = 'TFileInputStreamParams'
1405 0 : (msg__)->WriteSentinel(2543620282);
1406 0 : return;
1407 : }
1408 : case type__::TTemporaryFileInputStreamParams:
1409 : {
1410 0 : Write((v__).get_TemporaryFileInputStreamParams(), msg__);
1411 : // Sentinel = 'TTemporaryFileInputStreamParams'
1412 0 : (msg__)->WriteSentinel(587771548);
1413 0 : return;
1414 : }
1415 : case type__::TBufferedInputStreamParams:
1416 : {
1417 0 : Write((v__).get_BufferedInputStreamParams(), msg__);
1418 : // Sentinel = 'TBufferedInputStreamParams'
1419 0 : (msg__)->WriteSentinel(1698289307);
1420 0 : return;
1421 : }
1422 : case type__::TMIMEInputStreamParams:
1423 : {
1424 0 : Write((v__).get_MIMEInputStreamParams(), msg__);
1425 : // Sentinel = 'TMIMEInputStreamParams'
1426 0 : (msg__)->WriteSentinel(1948001964);
1427 0 : return;
1428 : }
1429 : case type__::TMultiplexInputStreamParams:
1430 : {
1431 0 : Write((v__).get_MultiplexInputStreamParams(), msg__);
1432 : // Sentinel = 'TMultiplexInputStreamParams'
1433 0 : (msg__)->WriteSentinel(3317853213);
1434 0 : return;
1435 : }
1436 : case type__::TSlicedInputStreamParams:
1437 : {
1438 0 : Write((v__).get_SlicedInputStreamParams(), msg__);
1439 : // Sentinel = 'TSlicedInputStreamParams'
1440 0 : (msg__)->WriteSentinel(445810472);
1441 0 : return;
1442 : }
1443 : case type__::TIPCBlobInputStreamParams:
1444 : {
1445 0 : Write((v__).get_IPCBlobInputStreamParams(), msg__);
1446 : // Sentinel = 'TIPCBlobInputStreamParams'
1447 0 : (msg__)->WriteSentinel(2436989998);
1448 0 : return;
1449 : }
1450 : default:
1451 : {
1452 0 : FatalError("unknown union type");
1453 0 : return;
1454 : }
1455 : }
1456 : }
1457 :
1458 0 : auto PBroadcastChannelParent::Read(
1459 : InputStreamParams* v__,
1460 : const Message* msg__,
1461 : PickleIterator* iter__) -> bool
1462 : {
1463 : typedef InputStreamParams type__;
1464 : int type;
1465 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1466 0 : mozilla::ipc::UnionTypeReadError("InputStreamParams");
1467 0 : return false;
1468 : }
1469 : // Sentinel = 'InputStreamParams'
1470 0 : if ((!((msg__)->ReadSentinel(iter__, 4114814015)))) {
1471 0 : mozilla::ipc::SentinelReadError("InputStreamParams");
1472 0 : return false;
1473 : }
1474 :
1475 0 : switch (type) {
1476 : case type__::TStringInputStreamParams:
1477 : {
1478 0 : StringInputStreamParams tmp = StringInputStreamParams();
1479 0 : (*(v__)) = tmp;
1480 0 : if ((!(Read((&((v__)->get_StringInputStreamParams())), msg__, iter__)))) {
1481 0 : FatalError("Error deserializing Union type");
1482 0 : return false;
1483 : }
1484 : // Sentinel = 'TStringInputStreamParams'
1485 0 : if ((!((msg__)->ReadSentinel(iter__, 3395831651)))) {
1486 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1487 0 : return false;
1488 : }
1489 0 : return true;
1490 : }
1491 : case type__::TFileInputStreamParams:
1492 : {
1493 0 : FileInputStreamParams tmp = FileInputStreamParams();
1494 0 : (*(v__)) = tmp;
1495 0 : if ((!(Read((&((v__)->get_FileInputStreamParams())), msg__, iter__)))) {
1496 0 : FatalError("Error deserializing Union type");
1497 0 : return false;
1498 : }
1499 : // Sentinel = 'TFileInputStreamParams'
1500 0 : if ((!((msg__)->ReadSentinel(iter__, 2543620282)))) {
1501 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1502 0 : return false;
1503 : }
1504 0 : return true;
1505 : }
1506 : case type__::TTemporaryFileInputStreamParams:
1507 : {
1508 0 : TemporaryFileInputStreamParams tmp = TemporaryFileInputStreamParams();
1509 0 : (*(v__)) = tmp;
1510 0 : if ((!(Read((&((v__)->get_TemporaryFileInputStreamParams())), msg__, iter__)))) {
1511 0 : FatalError("Error deserializing Union type");
1512 0 : return false;
1513 : }
1514 : // Sentinel = 'TTemporaryFileInputStreamParams'
1515 0 : if ((!((msg__)->ReadSentinel(iter__, 587771548)))) {
1516 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1517 0 : return false;
1518 : }
1519 0 : return true;
1520 : }
1521 : case type__::TBufferedInputStreamParams:
1522 : {
1523 0 : BufferedInputStreamParams tmp = BufferedInputStreamParams();
1524 0 : (*(v__)) = tmp;
1525 0 : if ((!(Read((&((v__)->get_BufferedInputStreamParams())), msg__, iter__)))) {
1526 0 : FatalError("Error deserializing Union type");
1527 0 : return false;
1528 : }
1529 : // Sentinel = 'TBufferedInputStreamParams'
1530 0 : if ((!((msg__)->ReadSentinel(iter__, 1698289307)))) {
1531 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1532 0 : return false;
1533 : }
1534 0 : return true;
1535 : }
1536 : case type__::TMIMEInputStreamParams:
1537 : {
1538 0 : MIMEInputStreamParams tmp = MIMEInputStreamParams();
1539 0 : (*(v__)) = tmp;
1540 0 : if ((!(Read((&((v__)->get_MIMEInputStreamParams())), msg__, iter__)))) {
1541 0 : FatalError("Error deserializing Union type");
1542 0 : return false;
1543 : }
1544 : // Sentinel = 'TMIMEInputStreamParams'
1545 0 : if ((!((msg__)->ReadSentinel(iter__, 1948001964)))) {
1546 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1547 0 : return false;
1548 : }
1549 0 : return true;
1550 : }
1551 : case type__::TMultiplexInputStreamParams:
1552 : {
1553 0 : MultiplexInputStreamParams tmp = MultiplexInputStreamParams();
1554 0 : (*(v__)) = tmp;
1555 0 : if ((!(Read((&((v__)->get_MultiplexInputStreamParams())), msg__, iter__)))) {
1556 0 : FatalError("Error deserializing Union type");
1557 0 : return false;
1558 : }
1559 : // Sentinel = 'TMultiplexInputStreamParams'
1560 0 : if ((!((msg__)->ReadSentinel(iter__, 3317853213)))) {
1561 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1562 0 : return false;
1563 : }
1564 0 : return true;
1565 : }
1566 : case type__::TSlicedInputStreamParams:
1567 : {
1568 0 : SlicedInputStreamParams tmp = SlicedInputStreamParams();
1569 0 : (*(v__)) = tmp;
1570 0 : if ((!(Read((&((v__)->get_SlicedInputStreamParams())), msg__, iter__)))) {
1571 0 : FatalError("Error deserializing Union type");
1572 0 : return false;
1573 : }
1574 : // Sentinel = 'TSlicedInputStreamParams'
1575 0 : if ((!((msg__)->ReadSentinel(iter__, 445810472)))) {
1576 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1577 0 : return false;
1578 : }
1579 0 : return true;
1580 : }
1581 : case type__::TIPCBlobInputStreamParams:
1582 : {
1583 0 : IPCBlobInputStreamParams tmp = IPCBlobInputStreamParams();
1584 0 : (*(v__)) = tmp;
1585 0 : if ((!(Read((&((v__)->get_IPCBlobInputStreamParams())), msg__, iter__)))) {
1586 0 : FatalError("Error deserializing Union type");
1587 0 : return false;
1588 : }
1589 : // Sentinel = 'TIPCBlobInputStreamParams'
1590 0 : if ((!((msg__)->ReadSentinel(iter__, 2436989998)))) {
1591 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1592 0 : return false;
1593 : }
1594 0 : return true;
1595 : }
1596 : default:
1597 : {
1598 0 : FatalError("unknown union type");
1599 0 : return false;
1600 : }
1601 : }
1602 : }
1603 :
1604 0 : auto PBroadcastChannelParent::Write(
1605 : const PParentToChildStreamParent* v__,
1606 : Message* msg__,
1607 : bool nullable__) -> void
1608 : {
1609 : int32_t id;
1610 0 : if ((!(v__))) {
1611 0 : if ((!(nullable__))) {
1612 0 : FatalError("NULL actor value passed to non-nullable param");
1613 : }
1614 0 : id = 0;
1615 : }
1616 : else {
1617 0 : id = (v__)->Id();
1618 0 : if ((1) == (id)) {
1619 0 : FatalError("actor has been |delete|d");
1620 : }
1621 : }
1622 :
1623 0 : Write(id, msg__);
1624 0 : }
1625 :
1626 0 : auto PBroadcastChannelParent::Read(
1627 : PParentToChildStreamParent** v__,
1628 : const Message* msg__,
1629 : PickleIterator* iter__,
1630 : bool nullable__) -> bool
1631 : {
1632 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PParentToChildStream", PParentToChildStreamMsgStart);
1633 0 : if ((actor).isNothing()) {
1634 0 : return false;
1635 : }
1636 :
1637 0 : (*(v__)) = static_cast<PParentToChildStreamParent*>((actor).value());
1638 0 : return true;
1639 : }
1640 :
1641 0 : auto PBroadcastChannelParent::Write(
1642 : const IPCStream& v__,
1643 : Message* msg__) -> void
1644 : {
1645 : typedef IPCStream type__;
1646 0 : Write(int((v__).type()), msg__);
1647 : // Sentinel = 'IPCStream'
1648 0 : (msg__)->WriteSentinel(442610715);
1649 :
1650 0 : switch ((v__).type()) {
1651 : case type__::TInputStreamParamsWithFds:
1652 : {
1653 0 : Write((v__).get_InputStreamParamsWithFds(), msg__);
1654 : // Sentinel = 'TInputStreamParamsWithFds'
1655 0 : (msg__)->WriteSentinel(2170706066);
1656 0 : return;
1657 : }
1658 : case type__::TIPCRemoteStream:
1659 : {
1660 0 : Write((v__).get_IPCRemoteStream(), msg__);
1661 : // Sentinel = 'TIPCRemoteStream'
1662 0 : (msg__)->WriteSentinel(2978132448);
1663 0 : return;
1664 : }
1665 : default:
1666 : {
1667 0 : FatalError("unknown union type");
1668 0 : return;
1669 : }
1670 : }
1671 : }
1672 :
1673 0 : auto PBroadcastChannelParent::Read(
1674 : IPCStream* v__,
1675 : const Message* msg__,
1676 : PickleIterator* iter__) -> bool
1677 : {
1678 : typedef IPCStream type__;
1679 : int type;
1680 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1681 0 : mozilla::ipc::UnionTypeReadError("IPCStream");
1682 0 : return false;
1683 : }
1684 : // Sentinel = 'IPCStream'
1685 0 : if ((!((msg__)->ReadSentinel(iter__, 442610715)))) {
1686 0 : mozilla::ipc::SentinelReadError("IPCStream");
1687 0 : return false;
1688 : }
1689 :
1690 0 : switch (type) {
1691 : case type__::TInputStreamParamsWithFds:
1692 : {
1693 0 : InputStreamParamsWithFds tmp = InputStreamParamsWithFds();
1694 0 : (*(v__)) = tmp;
1695 0 : if ((!(Read((&((v__)->get_InputStreamParamsWithFds())), msg__, iter__)))) {
1696 0 : FatalError("Error deserializing Union type");
1697 0 : return false;
1698 : }
1699 : // Sentinel = 'TInputStreamParamsWithFds'
1700 0 : if ((!((msg__)->ReadSentinel(iter__, 2170706066)))) {
1701 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1702 0 : return false;
1703 : }
1704 0 : return true;
1705 : }
1706 : case type__::TIPCRemoteStream:
1707 : {
1708 0 : IPCRemoteStream tmp = IPCRemoteStream();
1709 0 : (*(v__)) = tmp;
1710 0 : if ((!(Read((&((v__)->get_IPCRemoteStream())), msg__, iter__)))) {
1711 0 : FatalError("Error deserializing Union type");
1712 0 : return false;
1713 : }
1714 : // Sentinel = 'TIPCRemoteStream'
1715 0 : if ((!((msg__)->ReadSentinel(iter__, 2978132448)))) {
1716 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1717 0 : return false;
1718 : }
1719 0 : return true;
1720 : }
1721 : default:
1722 : {
1723 0 : FatalError("unknown union type");
1724 0 : return false;
1725 : }
1726 : }
1727 : }
1728 :
1729 0 : auto PBroadcastChannelParent::Write(
1730 : const StringInputStreamParams& v__,
1731 : Message* msg__) -> void
1732 : {
1733 0 : Write((v__).data(), msg__);
1734 : // Sentinel = 'data'
1735 0 : (msg__)->WriteSentinel(843352540);
1736 0 : }
1737 :
1738 0 : auto PBroadcastChannelParent::Read(
1739 : StringInputStreamParams* v__,
1740 : const Message* msg__,
1741 : PickleIterator* iter__) -> bool
1742 : {
1743 0 : if ((!(Read((&((v__)->data())), msg__, iter__)))) {
1744 0 : FatalError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
1745 0 : return false;
1746 : }
1747 : // Sentinel = 'data'
1748 0 : if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
1749 0 : mozilla::ipc::SentinelReadError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
1750 0 : return false;
1751 : }
1752 0 : return true;
1753 : }
1754 :
1755 0 : auto PBroadcastChannelParent::Write(
1756 : const MultiplexInputStreamParams& v__,
1757 : Message* msg__) -> void
1758 : {
1759 0 : Write((v__).streams(), msg__);
1760 : // Sentinel = 'streams'
1761 0 : (msg__)->WriteSentinel(4240383220);
1762 0 : Write((v__).currentStream(), msg__);
1763 : // Sentinel = 'currentStream'
1764 0 : (msg__)->WriteSentinel(682778074);
1765 0 : Write((v__).status(), msg__);
1766 : // Sentinel = 'status'
1767 0 : (msg__)->WriteSentinel(3714608576);
1768 0 : Write((v__).startedReadingCurrent(), msg__);
1769 : // Sentinel = 'startedReadingCurrent'
1770 0 : (msg__)->WriteSentinel(970542033);
1771 0 : }
1772 :
1773 0 : auto PBroadcastChannelParent::Read(
1774 : MultiplexInputStreamParams* v__,
1775 : const Message* msg__,
1776 : PickleIterator* iter__) -> bool
1777 : {
1778 0 : if ((!(Read((&((v__)->streams())), msg__, iter__)))) {
1779 0 : FatalError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
1780 0 : return false;
1781 : }
1782 : // Sentinel = 'streams'
1783 0 : if ((!((msg__)->ReadSentinel(iter__, 4240383220)))) {
1784 0 : mozilla::ipc::SentinelReadError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
1785 0 : return false;
1786 : }
1787 0 : if ((!(Read((&((v__)->currentStream())), msg__, iter__)))) {
1788 0 : FatalError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
1789 0 : return false;
1790 : }
1791 : // Sentinel = 'currentStream'
1792 0 : if ((!((msg__)->ReadSentinel(iter__, 682778074)))) {
1793 0 : mozilla::ipc::SentinelReadError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
1794 0 : return false;
1795 : }
1796 0 : if ((!(Read((&((v__)->status())), msg__, iter__)))) {
1797 0 : FatalError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
1798 0 : return false;
1799 : }
1800 : // Sentinel = 'status'
1801 0 : if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
1802 0 : mozilla::ipc::SentinelReadError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
1803 0 : return false;
1804 : }
1805 0 : if ((!(Read((&((v__)->startedReadingCurrent())), msg__, iter__)))) {
1806 0 : FatalError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
1807 0 : return false;
1808 : }
1809 : // Sentinel = 'startedReadingCurrent'
1810 0 : if ((!((msg__)->ReadSentinel(iter__, 970542033)))) {
1811 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
1812 0 : return false;
1813 : }
1814 0 : return true;
1815 : }
1816 :
1817 0 : auto PBroadcastChannelParent::Write(
1818 : const PFileDescriptorSetParent* v__,
1819 : Message* msg__,
1820 : bool nullable__) -> void
1821 : {
1822 : int32_t id;
1823 0 : if ((!(v__))) {
1824 0 : if ((!(nullable__))) {
1825 0 : FatalError("NULL actor value passed to non-nullable param");
1826 : }
1827 0 : id = 0;
1828 : }
1829 : else {
1830 0 : id = (v__)->Id();
1831 0 : if ((1) == (id)) {
1832 0 : FatalError("actor has been |delete|d");
1833 : }
1834 : }
1835 :
1836 0 : Write(id, msg__);
1837 0 : }
1838 :
1839 0 : auto PBroadcastChannelParent::Read(
1840 : PFileDescriptorSetParent** v__,
1841 : const Message* msg__,
1842 : PickleIterator* iter__,
1843 : bool nullable__) -> bool
1844 : {
1845 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PFileDescriptorSet", PFileDescriptorSetMsgStart);
1846 0 : if ((actor).isNothing()) {
1847 0 : return false;
1848 : }
1849 :
1850 0 : (*(v__)) = static_cast<PFileDescriptorSetParent*>((actor).value());
1851 0 : return true;
1852 : }
1853 :
1854 0 : auto PBroadcastChannelParent::Write(
1855 : const PIPCBlobInputStreamParent* v__,
1856 : Message* msg__,
1857 : bool nullable__) -> void
1858 : {
1859 : int32_t id;
1860 0 : if ((!(v__))) {
1861 0 : if ((!(nullable__))) {
1862 0 : FatalError("NULL actor value passed to non-nullable param");
1863 : }
1864 0 : id = 0;
1865 : }
1866 : else {
1867 0 : id = (v__)->Id();
1868 0 : if ((1) == (id)) {
1869 0 : FatalError("actor has been |delete|d");
1870 : }
1871 : }
1872 :
1873 0 : Write(id, msg__);
1874 0 : }
1875 :
1876 0 : auto PBroadcastChannelParent::Read(
1877 : PIPCBlobInputStreamParent** v__,
1878 : const Message* msg__,
1879 : PickleIterator* iter__,
1880 : bool nullable__) -> bool
1881 : {
1882 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PIPCBlobInputStream", PIPCBlobInputStreamMsgStart);
1883 0 : if ((actor).isNothing()) {
1884 0 : return false;
1885 : }
1886 :
1887 0 : (*(v__)) = static_cast<PIPCBlobInputStreamParent*>((actor).value());
1888 0 : return true;
1889 : }
1890 :
1891 0 : auto PBroadcastChannelParent::Write(
1892 : const OptionalFileDescriptorSet& v__,
1893 : Message* msg__) -> void
1894 : {
1895 : typedef OptionalFileDescriptorSet type__;
1896 0 : Write(int((v__).type()), msg__);
1897 : // Sentinel = 'OptionalFileDescriptorSet'
1898 0 : (msg__)->WriteSentinel(955222862);
1899 :
1900 0 : switch ((v__).type()) {
1901 : case type__::TPFileDescriptorSetParent:
1902 : {
1903 0 : Write((v__).get_PFileDescriptorSetParent(), msg__, false);
1904 : // Sentinel = 'TPFileDescriptorSetParent'
1905 0 : (msg__)->WriteSentinel(143041934);
1906 0 : return;
1907 : }
1908 : case type__::TPFileDescriptorSetChild:
1909 : {
1910 0 : FatalError("wrong side!");
1911 0 : return;
1912 : }
1913 : case type__::TArrayOfFileDescriptor:
1914 : {
1915 0 : Write((v__).get_ArrayOfFileDescriptor(), msg__);
1916 : // Sentinel = 'TArrayOfFileDescriptor'
1917 0 : (msg__)->WriteSentinel(2366096715);
1918 0 : return;
1919 : }
1920 : case type__::Tvoid_t:
1921 : {
1922 0 : Write((v__).get_void_t(), msg__);
1923 : // Sentinel = 'Tvoid_t'
1924 0 : (msg__)->WriteSentinel(3041273328);
1925 0 : return;
1926 : }
1927 : default:
1928 : {
1929 0 : FatalError("unknown union type");
1930 0 : return;
1931 : }
1932 : }
1933 : }
1934 :
1935 0 : auto PBroadcastChannelParent::Read(
1936 : OptionalFileDescriptorSet* v__,
1937 : const Message* msg__,
1938 : PickleIterator* iter__) -> bool
1939 : {
1940 : typedef OptionalFileDescriptorSet type__;
1941 : int type;
1942 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1943 0 : mozilla::ipc::UnionTypeReadError("OptionalFileDescriptorSet");
1944 0 : return false;
1945 : }
1946 : // Sentinel = 'OptionalFileDescriptorSet'
1947 0 : if ((!((msg__)->ReadSentinel(iter__, 955222862)))) {
1948 0 : mozilla::ipc::SentinelReadError("OptionalFileDescriptorSet");
1949 0 : return false;
1950 : }
1951 :
1952 0 : switch (type) {
1953 : case type__::TPFileDescriptorSetParent:
1954 : {
1955 0 : return false;
1956 : }
1957 : case type__::TPFileDescriptorSetChild:
1958 : {
1959 0 : PFileDescriptorSetParent* tmp = nullptr;
1960 0 : (*(v__)) = tmp;
1961 0 : if ((!(Read((&((v__)->get_PFileDescriptorSetParent())), msg__, iter__, false)))) {
1962 0 : FatalError("Error deserializing Union type");
1963 0 : return false;
1964 : }
1965 : // Sentinel = 'TPFileDescriptorSetChild'
1966 0 : if ((!((msg__)->ReadSentinel(iter__, 3477929935)))) {
1967 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1968 0 : return false;
1969 : }
1970 0 : return true;
1971 : }
1972 : case type__::TArrayOfFileDescriptor:
1973 : {
1974 0 : nsTArray<FileDescriptor> tmp;
1975 0 : (*(v__)) = tmp;
1976 0 : if ((!(Read((&((v__)->get_ArrayOfFileDescriptor())), msg__, iter__)))) {
1977 0 : FatalError("Error deserializing Union type");
1978 0 : return false;
1979 : }
1980 : // Sentinel = 'TArrayOfFileDescriptor'
1981 0 : if ((!((msg__)->ReadSentinel(iter__, 2366096715)))) {
1982 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1983 0 : return false;
1984 : }
1985 0 : return true;
1986 : }
1987 : case type__::Tvoid_t:
1988 : {
1989 : void_t tmp = void_t();
1990 0 : (*(v__)) = tmp;
1991 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
1992 0 : FatalError("Error deserializing Union type");
1993 0 : return false;
1994 : }
1995 : // Sentinel = 'Tvoid_t'
1996 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
1997 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1998 0 : return false;
1999 : }
2000 0 : return true;
2001 : }
2002 : default:
2003 : {
2004 0 : FatalError("unknown union type");
2005 0 : return false;
2006 : }
2007 : }
2008 : }
2009 :
2010 0 : auto PBroadcastChannelParent::Write(
2011 : const nsTArray<IPCStream>& v__,
2012 : Message* msg__) -> void
2013 : {
2014 0 : uint32_t length = (v__).Length();
2015 0 : Write(length, msg__);
2016 : // Sentinel = ('length', 'IPCStream[]')
2017 0 : (msg__)->WriteSentinel(790413678);
2018 :
2019 0 : for (auto& elem : v__) {
2020 0 : Write(elem, msg__);
2021 : // Sentinel = 'IPCStream[]'
2022 0 : (msg__)->WriteSentinel(117417041);
2023 : }
2024 0 : }
2025 :
2026 0 : auto PBroadcastChannelParent::Read(
2027 : nsTArray<IPCStream>* v__,
2028 : const Message* msg__,
2029 : PickleIterator* iter__) -> bool
2030 : {
2031 0 : nsTArray<IPCStream> fa;
2032 : uint32_t length;
2033 0 : if ((!(Read((&(length)), msg__, iter__)))) {
2034 0 : mozilla::ipc::ArrayLengthReadError("IPCStream[]");
2035 0 : return false;
2036 : }
2037 : // Sentinel = ('length', 'IPCStream[]')
2038 0 : if ((!((msg__)->ReadSentinel(iter__, 790413678)))) {
2039 0 : mozilla::ipc::SentinelReadError("IPCStream[]");
2040 0 : return false;
2041 : }
2042 :
2043 0 : IPCStream* elems = (fa).AppendElements(length);
2044 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
2045 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
2046 0 : FatalError("Error deserializing 'IPCStream[i]'");
2047 0 : return false;
2048 : }
2049 : // Sentinel = 'IPCStream[]'
2050 0 : if ((!((msg__)->ReadSentinel(iter__, 117417041)))) {
2051 0 : mozilla::ipc::SentinelReadError("Error deserializing 'IPCStream[i]'");
2052 0 : return false;
2053 : }
2054 : }
2055 0 : (v__)->SwapElements(fa);
2056 0 : return true;
2057 : }
2058 :
2059 0 : auto PBroadcastChannelParent::Write(
2060 : const IPCBlob& v__,
2061 : Message* msg__) -> void
2062 : {
2063 0 : Write((v__).type(), msg__);
2064 : // Sentinel = 'type'
2065 0 : (msg__)->WriteSentinel(2982068540);
2066 0 : Write((v__).size(), msg__);
2067 : // Sentinel = 'size'
2068 0 : (msg__)->WriteSentinel(931048223);
2069 0 : Write((v__).inputStream(), msg__);
2070 : // Sentinel = 'inputStream'
2071 0 : (msg__)->WriteSentinel(2684883823);
2072 0 : Write((v__).file(), msg__);
2073 : // Sentinel = 'file'
2074 0 : (msg__)->WriteSentinel(224874390);
2075 0 : Write((v__).fileId(), msg__);
2076 : // Sentinel = 'fileId'
2077 0 : (msg__)->WriteSentinel(108004447);
2078 0 : }
2079 :
2080 0 : auto PBroadcastChannelParent::Read(
2081 : IPCBlob* v__,
2082 : const Message* msg__,
2083 : PickleIterator* iter__) -> bool
2084 : {
2085 0 : if ((!(Read((&((v__)->type())), msg__, iter__)))) {
2086 0 : FatalError("Error deserializing 'type' (nsString) member of 'IPCBlob'");
2087 0 : return false;
2088 : }
2089 : // Sentinel = 'type'
2090 0 : if ((!((msg__)->ReadSentinel(iter__, 2982068540)))) {
2091 0 : mozilla::ipc::SentinelReadError("Error deserializing 'type' (nsString) member of 'IPCBlob'");
2092 0 : return false;
2093 : }
2094 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
2095 0 : FatalError("Error deserializing 'size' (uint64_t) member of 'IPCBlob'");
2096 0 : return false;
2097 : }
2098 : // Sentinel = 'size'
2099 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
2100 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (uint64_t) member of 'IPCBlob'");
2101 0 : return false;
2102 : }
2103 0 : if ((!(Read((&((v__)->inputStream())), msg__, iter__)))) {
2104 0 : FatalError("Error deserializing 'inputStream' (IPCBlobStream) member of 'IPCBlob'");
2105 0 : return false;
2106 : }
2107 : // Sentinel = 'inputStream'
2108 0 : if ((!((msg__)->ReadSentinel(iter__, 2684883823)))) {
2109 0 : mozilla::ipc::SentinelReadError("Error deserializing 'inputStream' (IPCBlobStream) member of 'IPCBlob'");
2110 0 : return false;
2111 : }
2112 0 : if ((!(Read((&((v__)->file())), msg__, iter__)))) {
2113 0 : FatalError("Error deserializing 'file' (IPCFileUnion) member of 'IPCBlob'");
2114 0 : return false;
2115 : }
2116 : // Sentinel = 'file'
2117 0 : if ((!((msg__)->ReadSentinel(iter__, 224874390)))) {
2118 0 : mozilla::ipc::SentinelReadError("Error deserializing 'file' (IPCFileUnion) member of 'IPCBlob'");
2119 0 : return false;
2120 : }
2121 0 : if ((!(Read((&((v__)->fileId())), msg__, iter__)))) {
2122 0 : FatalError("Error deserializing 'fileId' (int64_t) member of 'IPCBlob'");
2123 0 : return false;
2124 : }
2125 : // Sentinel = 'fileId'
2126 0 : if ((!((msg__)->ReadSentinel(iter__, 108004447)))) {
2127 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileId' (int64_t) member of 'IPCBlob'");
2128 0 : return false;
2129 : }
2130 0 : return true;
2131 : }
2132 :
2133 0 : auto PBroadcastChannelParent::Write(
2134 : const FileDescriptor& v__,
2135 : Message* msg__) -> void
2136 : {
2137 0 : FileDescriptor::PickleType pfd = (v__).ShareTo(FileDescriptor::IPDLPrivate(), OtherPid());
2138 0 : IPC::WriteParam(msg__, pfd);
2139 0 : }
2140 :
2141 0 : auto PBroadcastChannelParent::Read(
2142 : FileDescriptor* v__,
2143 : const Message* msg__,
2144 : PickleIterator* iter__) -> bool
2145 : {
2146 0 : FileDescriptor::PickleType pfd;
2147 0 : if ((!(IPC::ReadParam(msg__, iter__, (&(pfd)))))) {
2148 0 : return false;
2149 : }
2150 :
2151 0 : FileDescriptor fd = FileDescriptor(FileDescriptor::IPDLPrivate(), pfd);
2152 0 : if ((!((fd).IsValid()))) {
2153 0 : mozilla::ipc::ProtocolErrorBreakpoint("[PBroadcastChannelParent] Received an invalid file descriptor!");
2154 : }
2155 :
2156 0 : (*(v__)) = fd;
2157 0 : return true;
2158 : }
2159 :
2160 0 : auto PBroadcastChannelParent::Write(
2161 : const BufferedInputStreamParams& v__,
2162 : Message* msg__) -> void
2163 : {
2164 0 : Write((v__).optionalStream(), msg__);
2165 : // Sentinel = 'optionalStream'
2166 0 : (msg__)->WriteSentinel(1003718562);
2167 0 : Write((v__).bufferSize(), msg__);
2168 : // Sentinel = 'bufferSize'
2169 0 : (msg__)->WriteSentinel(3444538779);
2170 0 : }
2171 :
2172 0 : auto PBroadcastChannelParent::Read(
2173 : BufferedInputStreamParams* v__,
2174 : const Message* msg__,
2175 : PickleIterator* iter__) -> bool
2176 : {
2177 0 : if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
2178 0 : FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
2179 0 : return false;
2180 : }
2181 : // Sentinel = 'optionalStream'
2182 0 : if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
2183 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
2184 0 : return false;
2185 : }
2186 0 : if ((!(Read((&((v__)->bufferSize())), msg__, iter__)))) {
2187 0 : FatalError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
2188 0 : return false;
2189 : }
2190 : // Sentinel = 'bufferSize'
2191 0 : if ((!((msg__)->ReadSentinel(iter__, 3444538779)))) {
2192 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
2193 0 : return false;
2194 : }
2195 0 : return true;
2196 : }
2197 :
2198 0 : auto PBroadcastChannelParent::Write(
2199 : const HeaderEntry& v__,
2200 : Message* msg__) -> void
2201 : {
2202 0 : Write((v__).name(), msg__);
2203 : // Sentinel = 'name'
2204 0 : (msg__)->WriteSentinel(15034981);
2205 0 : Write((v__).value(), msg__);
2206 : // Sentinel = 'value'
2207 0 : (msg__)->WriteSentinel(3456818542);
2208 0 : }
2209 :
2210 0 : auto PBroadcastChannelParent::Read(
2211 : HeaderEntry* v__,
2212 : const Message* msg__,
2213 : PickleIterator* iter__) -> bool
2214 : {
2215 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
2216 0 : FatalError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
2217 0 : return false;
2218 : }
2219 : // Sentinel = 'name'
2220 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
2221 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
2222 0 : return false;
2223 : }
2224 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
2225 0 : FatalError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
2226 0 : return false;
2227 : }
2228 : // Sentinel = 'value'
2229 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
2230 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
2231 0 : return false;
2232 : }
2233 0 : return true;
2234 : }
2235 :
2236 0 : auto PBroadcastChannelParent::Write(
2237 : const PChildToParentStreamParent* v__,
2238 : Message* msg__,
2239 : bool nullable__) -> void
2240 : {
2241 : int32_t id;
2242 0 : if ((!(v__))) {
2243 0 : if ((!(nullable__))) {
2244 0 : FatalError("NULL actor value passed to non-nullable param");
2245 : }
2246 0 : id = 0;
2247 : }
2248 : else {
2249 0 : id = (v__)->Id();
2250 0 : if ((1) == (id)) {
2251 0 : FatalError("actor has been |delete|d");
2252 : }
2253 : }
2254 :
2255 0 : Write(id, msg__);
2256 0 : }
2257 :
2258 0 : auto PBroadcastChannelParent::Read(
2259 : PChildToParentStreamParent** v__,
2260 : const Message* msg__,
2261 : PickleIterator* iter__,
2262 : bool nullable__) -> bool
2263 : {
2264 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PChildToParentStream", PChildToParentStreamMsgStart);
2265 0 : if ((actor).isNothing()) {
2266 0 : return false;
2267 : }
2268 :
2269 0 : (*(v__)) = static_cast<PChildToParentStreamParent*>((actor).value());
2270 0 : return true;
2271 : }
2272 :
2273 :
2274 :
2275 : } // namespace dom
2276 : } // namespace mozilla
|