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