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