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