Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/dom/cache/PCacheOpChild.h"
8 :
9 : #include "mozilla/dom/cache/PCacheChild.h"
10 : #include "mozilla/dom/cache/PCacheStorageChild.h"
11 : #include "mozilla/dom/cache/PCacheStreamControlChild.h"
12 : #include "mozilla/ipc/PFileDescriptorSetChild.h"
13 : #include "mozilla/ipc/PChildToParentStreamChild.h"
14 : #include "mozilla/ipc/PParentToChildStreamChild.h"
15 :
16 : #include "nsIFile.h"
17 : #include "GeckoProfiler.h"
18 :
19 : namespace mozilla {
20 : namespace dom {
21 : namespace cache {
22 :
23 :
24 0 : auto PCacheOpChild::Recv__delete__(
25 : const ErrorResult& aRv,
26 : const CacheOpResult& aResult) -> mozilla::ipc::IPCResult
27 : {
28 0 : return IPC_OK();
29 : }
30 :
31 0 : auto PCacheOpChild::ActorDestroy(ActorDestroyReason aWhy) -> void
32 : {
33 0 : }
34 :
35 0 : MOZ_IMPLICIT PCacheOpChild::PCacheOpChild() :
36 : mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
37 0 : mState(PCacheOp::__Dead)
38 : {
39 0 : MOZ_COUNT_CTOR(PCacheOpChild);
40 0 : }
41 :
42 0 : PCacheOpChild::~PCacheOpChild()
43 : {
44 0 : MOZ_COUNT_DTOR(PCacheOpChild);
45 0 : }
46 :
47 0 : auto PCacheOpChild::RemoveManagee(
48 : int32_t aProtocolId,
49 : ProtocolBase* aListener) -> void
50 : {
51 0 : FatalError("unreached");
52 0 : return;
53 : }
54 :
55 0 : auto PCacheOpChild::OnMessageReceived(const Message& msg__) -> PCacheOpChild::Result
56 : {
57 0 : switch ((msg__).type()) {
58 : case PCacheOp::Msg___delete____ID:
59 : {
60 0 : if (mozilla::ipc::LoggingEnabledFor("PCacheOpChild")) {
61 0 : mozilla::ipc::LogMessageForProtocol("PCacheOpChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
62 : }
63 0 : AUTO_PROFILER_LABEL("PCacheOp::Msg___delete__", OTHER);
64 :
65 0 : PickleIterator iter__(msg__);
66 : PCacheOpChild* actor;
67 0 : ErrorResult aRv;
68 0 : CacheOpResult aResult;
69 :
70 0 : if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
71 0 : FatalError("Error deserializing 'PCacheOpChild'");
72 0 : return MsgValueError;
73 : }
74 : // Sentinel = 'actor'
75 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
76 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PCacheOpChild'");
77 0 : return MsgValueError;
78 : }
79 0 : if ((!(Read((&(aRv)), (&(msg__)), (&(iter__)))))) {
80 0 : FatalError("Error deserializing 'ErrorResult'");
81 0 : return MsgValueError;
82 : }
83 : // Sentinel = 'aRv'
84 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2742041894)))) {
85 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ErrorResult'");
86 0 : return MsgValueError;
87 : }
88 0 : if ((!(Read((&(aResult)), (&(msg__)), (&(iter__)))))) {
89 0 : FatalError("Error deserializing 'CacheOpResult'");
90 0 : return MsgValueError;
91 : }
92 : // Sentinel = 'aResult'
93 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3888726089)))) {
94 0 : mozilla::ipc::SentinelReadError("Error deserializing 'CacheOpResult'");
95 0 : return MsgValueError;
96 : }
97 0 : (msg__).EndRead(iter__, (msg__).type());
98 0 : PCacheOp::Transition(PCacheOp::Msg___delete____ID, (&(mState)));
99 0 : if ((!(Recv__delete__(mozilla::Move(aRv), mozilla::Move(aResult))))) {
100 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
101 : // Error handled in mozilla::ipc::IPCResult
102 0 : return MsgProcessingError;
103 : }
104 :
105 :
106 0 : IProtocol* mgr = (actor)->Manager();
107 0 : (actor)->DestroySubtree(Deletion);
108 0 : (actor)->DeallocSubtree();
109 0 : (mgr)->RemoveManagee(PCacheOpMsgStart, actor);
110 :
111 0 : return MsgProcessed;
112 : }
113 : default:
114 : {
115 0 : return MsgNotKnown;
116 : }
117 : }
118 : }
119 :
120 0 : auto PCacheOpChild::OnMessageReceived(
121 : const Message& msg__,
122 : Message*& reply__) -> PCacheOpChild::Result
123 : {
124 0 : return MsgNotKnown;
125 : }
126 :
127 0 : auto PCacheOpChild::OnCallReceived(
128 : const Message& msg__,
129 : Message*& reply__) -> PCacheOpChild::Result
130 : {
131 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
132 : return MsgNotKnown;
133 : }
134 :
135 0 : auto PCacheOpChild::GetProtocolTypeId() -> int32_t
136 : {
137 0 : return PCacheOpMsgStart;
138 : }
139 :
140 0 : auto PCacheOpChild::ProtocolName() const -> const char*
141 : {
142 0 : return "PCacheOpChild";
143 : }
144 :
145 0 : auto PCacheOpChild::DestroySubtree(ActorDestroyReason why) -> void
146 : {
147 : // Unregister from our manager.
148 0 : Unregister(Id());
149 :
150 : // Reject owning pending promises.
151 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
152 :
153 : // Finally, destroy "us".
154 0 : ActorDestroy(why);
155 0 : }
156 :
157 0 : auto PCacheOpChild::DeallocSubtree() -> void
158 : {
159 0 : }
160 :
161 0 : auto PCacheOpChild::Write(
162 : const SystemPrincipalInfo& v__,
163 : Message* msg__) -> void
164 : {
165 0 : }
166 :
167 0 : auto PCacheOpChild::Read(
168 : SystemPrincipalInfo* v__,
169 : const Message* msg__,
170 : PickleIterator* iter__) -> bool
171 : {
172 0 : return true;
173 : }
174 :
175 0 : auto PCacheOpChild::Write(
176 : const nsTArray<InputStreamParams>& v__,
177 : Message* msg__) -> void
178 : {
179 0 : uint32_t length = (v__).Length();
180 0 : Write(length, msg__);
181 : // Sentinel = ('length', 'InputStreamParams[]')
182 0 : (msg__)->WriteSentinel(348334258);
183 :
184 0 : for (auto& elem : v__) {
185 0 : Write(elem, msg__);
186 : // Sentinel = 'InputStreamParams[]'
187 0 : (msg__)->WriteSentinel(2927715197);
188 : }
189 0 : }
190 :
191 0 : auto PCacheOpChild::Read(
192 : nsTArray<InputStreamParams>* v__,
193 : const Message* msg__,
194 : PickleIterator* iter__) -> bool
195 : {
196 0 : nsTArray<InputStreamParams> fa;
197 : uint32_t length;
198 0 : if ((!(Read((&(length)), msg__, iter__)))) {
199 0 : mozilla::ipc::ArrayLengthReadError("InputStreamParams[]");
200 0 : return false;
201 : }
202 : // Sentinel = ('length', 'InputStreamParams[]')
203 0 : if ((!((msg__)->ReadSentinel(iter__, 348334258)))) {
204 0 : mozilla::ipc::SentinelReadError("InputStreamParams[]");
205 0 : return false;
206 : }
207 :
208 0 : InputStreamParams* elems = (fa).AppendElements(length);
209 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
210 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
211 0 : FatalError("Error deserializing 'InputStreamParams[i]'");
212 0 : return false;
213 : }
214 : // Sentinel = 'InputStreamParams[]'
215 0 : if ((!((msg__)->ReadSentinel(iter__, 2927715197)))) {
216 0 : mozilla::ipc::SentinelReadError("Error deserializing 'InputStreamParams[i]'");
217 0 : return false;
218 : }
219 : }
220 0 : (v__)->SwapElements(fa);
221 0 : return true;
222 : }
223 :
224 0 : auto PCacheOpChild::Write(
225 : const OptionalPrincipalInfo& v__,
226 : Message* msg__) -> void
227 : {
228 : typedef OptionalPrincipalInfo type__;
229 0 : Write(int((v__).type()), msg__);
230 : // Sentinel = 'OptionalPrincipalInfo'
231 0 : (msg__)->WriteSentinel(3041452007);
232 :
233 0 : switch ((v__).type()) {
234 : case type__::Tvoid_t:
235 : {
236 0 : Write((v__).get_void_t(), msg__);
237 : // Sentinel = 'Tvoid_t'
238 0 : (msg__)->WriteSentinel(3041273328);
239 0 : return;
240 : }
241 : case type__::TPrincipalInfo:
242 : {
243 0 : Write((v__).get_PrincipalInfo(), msg__);
244 : // Sentinel = 'TPrincipalInfo'
245 0 : (msg__)->WriteSentinel(1396743580);
246 0 : return;
247 : }
248 : default:
249 : {
250 0 : FatalError("unknown union type");
251 0 : return;
252 : }
253 : }
254 : }
255 :
256 0 : auto PCacheOpChild::Read(
257 : OptionalPrincipalInfo* v__,
258 : const Message* msg__,
259 : PickleIterator* iter__) -> bool
260 : {
261 : typedef OptionalPrincipalInfo type__;
262 : int type;
263 0 : if ((!(Read((&(type)), msg__, iter__)))) {
264 0 : mozilla::ipc::UnionTypeReadError("OptionalPrincipalInfo");
265 0 : return false;
266 : }
267 : // Sentinel = 'OptionalPrincipalInfo'
268 0 : if ((!((msg__)->ReadSentinel(iter__, 3041452007)))) {
269 0 : mozilla::ipc::SentinelReadError("OptionalPrincipalInfo");
270 0 : return false;
271 : }
272 :
273 0 : switch (type) {
274 : case type__::Tvoid_t:
275 : {
276 : void_t tmp = void_t();
277 0 : (*(v__)) = tmp;
278 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
279 0 : FatalError("Error deserializing Union type");
280 0 : return false;
281 : }
282 : // Sentinel = 'Tvoid_t'
283 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
284 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
285 0 : return false;
286 : }
287 0 : return true;
288 : }
289 : case type__::TPrincipalInfo:
290 : {
291 0 : PrincipalInfo tmp = PrincipalInfo();
292 0 : (*(v__)) = tmp;
293 0 : if ((!(Read((&((v__)->get_PrincipalInfo())), msg__, iter__)))) {
294 0 : FatalError("Error deserializing Union type");
295 0 : return false;
296 : }
297 : // Sentinel = 'TPrincipalInfo'
298 0 : if ((!((msg__)->ReadSentinel(iter__, 1396743580)))) {
299 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
300 0 : return false;
301 : }
302 0 : return true;
303 : }
304 : default:
305 : {
306 0 : FatalError("unknown union type");
307 0 : return false;
308 : }
309 : }
310 : }
311 :
312 0 : auto PCacheOpChild::Write(
313 : const nsTArray<FileDescriptor>& v__,
314 : Message* msg__) -> void
315 : {
316 0 : uint32_t length = (v__).Length();
317 0 : Write(length, msg__);
318 : // Sentinel = ('length', 'FileDescriptor[]')
319 0 : (msg__)->WriteSentinel(1697726450);
320 :
321 0 : for (auto& elem : v__) {
322 0 : Write(elem, msg__);
323 : // Sentinel = 'FileDescriptor[]'
324 0 : (msg__)->WriteSentinel(1630221245);
325 : }
326 0 : }
327 :
328 0 : auto PCacheOpChild::Read(
329 : nsTArray<FileDescriptor>* v__,
330 : const Message* msg__,
331 : PickleIterator* iter__) -> bool
332 : {
333 0 : nsTArray<FileDescriptor> fa;
334 : uint32_t length;
335 0 : if ((!(Read((&(length)), msg__, iter__)))) {
336 0 : mozilla::ipc::ArrayLengthReadError("FileDescriptor[]");
337 0 : return false;
338 : }
339 : // Sentinel = ('length', 'FileDescriptor[]')
340 0 : if ((!((msg__)->ReadSentinel(iter__, 1697726450)))) {
341 0 : mozilla::ipc::SentinelReadError("FileDescriptor[]");
342 0 : return false;
343 : }
344 :
345 0 : FileDescriptor* elems = (fa).AppendElements(length);
346 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
347 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
348 0 : FatalError("Error deserializing 'FileDescriptor[i]'");
349 0 : return false;
350 : }
351 : // Sentinel = 'FileDescriptor[]'
352 0 : if ((!((msg__)->ReadSentinel(iter__, 1630221245)))) {
353 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor[i]'");
354 0 : return false;
355 : }
356 : }
357 0 : (v__)->SwapElements(fa);
358 0 : return true;
359 : }
360 :
361 0 : auto PCacheOpChild::Write(
362 : const CacheKeysResult& v__,
363 : Message* msg__) -> void
364 : {
365 0 : Write((v__).requestList(), msg__);
366 : // Sentinel = 'requestList'
367 0 : (msg__)->WriteSentinel(3547471988);
368 0 : }
369 :
370 0 : auto PCacheOpChild::Read(
371 : CacheKeysResult* v__,
372 : const Message* msg__,
373 : PickleIterator* iter__) -> bool
374 : {
375 0 : if ((!(Read((&((v__)->requestList())), msg__, iter__)))) {
376 0 : FatalError("Error deserializing 'requestList' (CacheRequest[]) member of 'CacheKeysResult'");
377 0 : return false;
378 : }
379 : // Sentinel = 'requestList'
380 0 : if ((!((msg__)->ReadSentinel(iter__, 3547471988)))) {
381 0 : mozilla::ipc::SentinelReadError("Error deserializing 'requestList' (CacheRequest[]) member of 'CacheKeysResult'");
382 0 : return false;
383 : }
384 0 : return true;
385 : }
386 :
387 0 : auto PCacheOpChild::Write(
388 : const ContentPrincipalInfoOriginNoSuffix& v__,
389 : Message* msg__) -> void
390 : {
391 : typedef ContentPrincipalInfoOriginNoSuffix type__;
392 0 : Write(int((v__).type()), msg__);
393 : // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
394 0 : (msg__)->WriteSentinel(2442066713);
395 :
396 0 : switch ((v__).type()) {
397 : case type__::TnsCString:
398 : {
399 0 : Write((v__).get_nsCString(), msg__);
400 : // Sentinel = 'TnsCString'
401 0 : (msg__)->WriteSentinel(2427411293);
402 0 : return;
403 : }
404 : case type__::Tvoid_t:
405 : {
406 0 : Write((v__).get_void_t(), msg__);
407 : // Sentinel = 'Tvoid_t'
408 0 : (msg__)->WriteSentinel(3041273328);
409 0 : return;
410 : }
411 : default:
412 : {
413 0 : FatalError("unknown union type");
414 0 : return;
415 : }
416 : }
417 : }
418 :
419 0 : auto PCacheOpChild::Read(
420 : ContentPrincipalInfoOriginNoSuffix* v__,
421 : const Message* msg__,
422 : PickleIterator* iter__) -> bool
423 : {
424 : typedef ContentPrincipalInfoOriginNoSuffix type__;
425 : int type;
426 0 : if ((!(Read((&(type)), msg__, iter__)))) {
427 0 : mozilla::ipc::UnionTypeReadError("ContentPrincipalInfoOriginNoSuffix");
428 0 : return false;
429 : }
430 : // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
431 0 : if ((!((msg__)->ReadSentinel(iter__, 2442066713)))) {
432 0 : mozilla::ipc::SentinelReadError("ContentPrincipalInfoOriginNoSuffix");
433 0 : return false;
434 : }
435 :
436 0 : switch (type) {
437 : case type__::TnsCString:
438 : {
439 0 : nsCString tmp = nsCString();
440 0 : (*(v__)) = tmp;
441 0 : if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
442 0 : FatalError("Error deserializing Union type");
443 0 : return false;
444 : }
445 : // Sentinel = 'TnsCString'
446 0 : if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
447 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
448 0 : return false;
449 : }
450 0 : return true;
451 : }
452 : case type__::Tvoid_t:
453 : {
454 : void_t tmp = void_t();
455 0 : (*(v__)) = tmp;
456 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
457 0 : FatalError("Error deserializing Union type");
458 0 : return false;
459 : }
460 : // Sentinel = 'Tvoid_t'
461 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
462 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
463 0 : return false;
464 : }
465 0 : return true;
466 : }
467 : default:
468 : {
469 0 : FatalError("unknown union type");
470 0 : return false;
471 : }
472 : }
473 : }
474 :
475 0 : auto PCacheOpChild::Write(
476 : const CacheRequest& v__,
477 : Message* msg__) -> void
478 : {
479 0 : Write((v__).method(), msg__);
480 : // Sentinel = 'method'
481 0 : (msg__)->WriteSentinel(1846382781);
482 0 : Write((v__).urlWithoutQuery(), msg__);
483 : // Sentinel = 'urlWithoutQuery'
484 0 : (msg__)->WriteSentinel(3941647224);
485 0 : Write((v__).urlQuery(), msg__);
486 : // Sentinel = 'urlQuery'
487 0 : (msg__)->WriteSentinel(3512340437);
488 0 : Write((v__).urlFragment(), msg__);
489 : // Sentinel = 'urlFragment'
490 0 : (msg__)->WriteSentinel(843953064);
491 0 : Write((v__).headers(), msg__);
492 : // Sentinel = 'headers'
493 0 : (msg__)->WriteSentinel(4284175217);
494 0 : Write((v__).headersGuard(), msg__);
495 : // Sentinel = 'headersGuard'
496 0 : (msg__)->WriteSentinel(2295054805);
497 0 : Write((v__).referrer(), msg__);
498 : // Sentinel = 'referrer'
499 0 : (msg__)->WriteSentinel(3770987113);
500 0 : Write((v__).referrerPolicy(), msg__);
501 : // Sentinel = 'referrerPolicy'
502 0 : (msg__)->WriteSentinel(2269890057);
503 0 : Write((v__).mode(), msg__);
504 : // Sentinel = 'mode'
505 0 : (msg__)->WriteSentinel(3911367285);
506 0 : Write((v__).credentials(), msg__);
507 : // Sentinel = 'credentials'
508 0 : (msg__)->WriteSentinel(3085848153);
509 0 : Write((v__).body(), msg__);
510 : // Sentinel = 'body'
511 0 : (msg__)->WriteSentinel(2829965504);
512 0 : Write((v__).contentPolicyType(), msg__);
513 : // Sentinel = 'contentPolicyType'
514 0 : (msg__)->WriteSentinel(3089607692);
515 0 : Write((v__).requestCache(), msg__);
516 : // Sentinel = 'requestCache'
517 0 : (msg__)->WriteSentinel(397161175);
518 0 : Write((v__).requestRedirect(), msg__);
519 : // Sentinel = 'requestRedirect'
520 0 : (msg__)->WriteSentinel(3935301184);
521 0 : Write((v__).integrity(), msg__);
522 : // Sentinel = 'integrity'
523 0 : (msg__)->WriteSentinel(3061850140);
524 0 : }
525 :
526 0 : auto PCacheOpChild::Read(
527 : CacheRequest* v__,
528 : const Message* msg__,
529 : PickleIterator* iter__) -> bool
530 : {
531 0 : if ((!(Read((&((v__)->method())), msg__, iter__)))) {
532 0 : FatalError("Error deserializing 'method' (nsCString) member of 'CacheRequest'");
533 0 : return false;
534 : }
535 : // Sentinel = 'method'
536 0 : if ((!((msg__)->ReadSentinel(iter__, 1846382781)))) {
537 0 : mozilla::ipc::SentinelReadError("Error deserializing 'method' (nsCString) member of 'CacheRequest'");
538 0 : return false;
539 : }
540 0 : if ((!(Read((&((v__)->urlWithoutQuery())), msg__, iter__)))) {
541 0 : FatalError("Error deserializing 'urlWithoutQuery' (nsCString) member of 'CacheRequest'");
542 0 : return false;
543 : }
544 : // Sentinel = 'urlWithoutQuery'
545 0 : if ((!((msg__)->ReadSentinel(iter__, 3941647224)))) {
546 0 : mozilla::ipc::SentinelReadError("Error deserializing 'urlWithoutQuery' (nsCString) member of 'CacheRequest'");
547 0 : return false;
548 : }
549 0 : if ((!(Read((&((v__)->urlQuery())), msg__, iter__)))) {
550 0 : FatalError("Error deserializing 'urlQuery' (nsCString) member of 'CacheRequest'");
551 0 : return false;
552 : }
553 : // Sentinel = 'urlQuery'
554 0 : if ((!((msg__)->ReadSentinel(iter__, 3512340437)))) {
555 0 : mozilla::ipc::SentinelReadError("Error deserializing 'urlQuery' (nsCString) member of 'CacheRequest'");
556 0 : return false;
557 : }
558 0 : if ((!(Read((&((v__)->urlFragment())), msg__, iter__)))) {
559 0 : FatalError("Error deserializing 'urlFragment' (nsCString) member of 'CacheRequest'");
560 0 : return false;
561 : }
562 : // Sentinel = 'urlFragment'
563 0 : if ((!((msg__)->ReadSentinel(iter__, 843953064)))) {
564 0 : mozilla::ipc::SentinelReadError("Error deserializing 'urlFragment' (nsCString) member of 'CacheRequest'");
565 0 : return false;
566 : }
567 0 : if ((!(Read((&((v__)->headers())), msg__, iter__)))) {
568 0 : FatalError("Error deserializing 'headers' (HeadersEntry[]) member of 'CacheRequest'");
569 0 : return false;
570 : }
571 : // Sentinel = 'headers'
572 0 : if ((!((msg__)->ReadSentinel(iter__, 4284175217)))) {
573 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headers' (HeadersEntry[]) member of 'CacheRequest'");
574 0 : return false;
575 : }
576 0 : if ((!(Read((&((v__)->headersGuard())), msg__, iter__)))) {
577 0 : FatalError("Error deserializing 'headersGuard' (HeadersGuardEnum) member of 'CacheRequest'");
578 0 : return false;
579 : }
580 : // Sentinel = 'headersGuard'
581 0 : if ((!((msg__)->ReadSentinel(iter__, 2295054805)))) {
582 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headersGuard' (HeadersGuardEnum) member of 'CacheRequest'");
583 0 : return false;
584 : }
585 0 : if ((!(Read((&((v__)->referrer())), msg__, iter__)))) {
586 0 : FatalError("Error deserializing 'referrer' (nsString) member of 'CacheRequest'");
587 0 : return false;
588 : }
589 : // Sentinel = 'referrer'
590 0 : if ((!((msg__)->ReadSentinel(iter__, 3770987113)))) {
591 0 : mozilla::ipc::SentinelReadError("Error deserializing 'referrer' (nsString) member of 'CacheRequest'");
592 0 : return false;
593 : }
594 0 : if ((!(Read((&((v__)->referrerPolicy())), msg__, iter__)))) {
595 0 : FatalError("Error deserializing 'referrerPolicy' (ReferrerPolicy) member of 'CacheRequest'");
596 0 : return false;
597 : }
598 : // Sentinel = 'referrerPolicy'
599 0 : if ((!((msg__)->ReadSentinel(iter__, 2269890057)))) {
600 0 : mozilla::ipc::SentinelReadError("Error deserializing 'referrerPolicy' (ReferrerPolicy) member of 'CacheRequest'");
601 0 : return false;
602 : }
603 0 : if ((!(Read((&((v__)->mode())), msg__, iter__)))) {
604 0 : FatalError("Error deserializing 'mode' (RequestMode) member of 'CacheRequest'");
605 0 : return false;
606 : }
607 : // Sentinel = 'mode'
608 0 : if ((!((msg__)->ReadSentinel(iter__, 3911367285)))) {
609 0 : mozilla::ipc::SentinelReadError("Error deserializing 'mode' (RequestMode) member of 'CacheRequest'");
610 0 : return false;
611 : }
612 0 : if ((!(Read((&((v__)->credentials())), msg__, iter__)))) {
613 0 : FatalError("Error deserializing 'credentials' (RequestCredentials) member of 'CacheRequest'");
614 0 : return false;
615 : }
616 : // Sentinel = 'credentials'
617 0 : if ((!((msg__)->ReadSentinel(iter__, 3085848153)))) {
618 0 : mozilla::ipc::SentinelReadError("Error deserializing 'credentials' (RequestCredentials) member of 'CacheRequest'");
619 0 : return false;
620 : }
621 0 : if ((!(Read((&((v__)->body())), msg__, iter__)))) {
622 0 : FatalError("Error deserializing 'body' (CacheReadStreamOrVoid) member of 'CacheRequest'");
623 0 : return false;
624 : }
625 : // Sentinel = 'body'
626 0 : if ((!((msg__)->ReadSentinel(iter__, 2829965504)))) {
627 0 : mozilla::ipc::SentinelReadError("Error deserializing 'body' (CacheReadStreamOrVoid) member of 'CacheRequest'");
628 0 : return false;
629 : }
630 0 : if ((!(Read((&((v__)->contentPolicyType())), msg__, iter__)))) {
631 0 : FatalError("Error deserializing 'contentPolicyType' (uint32_t) member of 'CacheRequest'");
632 0 : return false;
633 : }
634 : // Sentinel = 'contentPolicyType'
635 0 : if ((!((msg__)->ReadSentinel(iter__, 3089607692)))) {
636 0 : mozilla::ipc::SentinelReadError("Error deserializing 'contentPolicyType' (uint32_t) member of 'CacheRequest'");
637 0 : return false;
638 : }
639 0 : if ((!(Read((&((v__)->requestCache())), msg__, iter__)))) {
640 0 : FatalError("Error deserializing 'requestCache' (RequestCache) member of 'CacheRequest'");
641 0 : return false;
642 : }
643 : // Sentinel = 'requestCache'
644 0 : if ((!((msg__)->ReadSentinel(iter__, 397161175)))) {
645 0 : mozilla::ipc::SentinelReadError("Error deserializing 'requestCache' (RequestCache) member of 'CacheRequest'");
646 0 : return false;
647 : }
648 0 : if ((!(Read((&((v__)->requestRedirect())), msg__, iter__)))) {
649 0 : FatalError("Error deserializing 'requestRedirect' (RequestRedirect) member of 'CacheRequest'");
650 0 : return false;
651 : }
652 : // Sentinel = 'requestRedirect'
653 0 : if ((!((msg__)->ReadSentinel(iter__, 3935301184)))) {
654 0 : mozilla::ipc::SentinelReadError("Error deserializing 'requestRedirect' (RequestRedirect) member of 'CacheRequest'");
655 0 : return false;
656 : }
657 0 : if ((!(Read((&((v__)->integrity())), msg__, iter__)))) {
658 0 : FatalError("Error deserializing 'integrity' (nsString) member of 'CacheRequest'");
659 0 : return false;
660 : }
661 : // Sentinel = 'integrity'
662 0 : if ((!((msg__)->ReadSentinel(iter__, 3061850140)))) {
663 0 : mozilla::ipc::SentinelReadError("Error deserializing 'integrity' (nsString) member of 'CacheRequest'");
664 0 : return false;
665 : }
666 0 : return true;
667 : }
668 :
669 0 : auto PCacheOpChild::Write(
670 : const CacheMatchAllResult& v__,
671 : Message* msg__) -> void
672 : {
673 0 : Write((v__).responseList(), msg__);
674 : // Sentinel = 'responseList'
675 0 : (msg__)->WriteSentinel(355988433);
676 0 : }
677 :
678 0 : auto PCacheOpChild::Read(
679 : CacheMatchAllResult* v__,
680 : const Message* msg__,
681 : PickleIterator* iter__) -> bool
682 : {
683 0 : if ((!(Read((&((v__)->responseList())), msg__, iter__)))) {
684 0 : FatalError("Error deserializing 'responseList' (CacheResponse[]) member of 'CacheMatchAllResult'");
685 0 : return false;
686 : }
687 : // Sentinel = 'responseList'
688 0 : if ((!((msg__)->ReadSentinel(iter__, 355988433)))) {
689 0 : mozilla::ipc::SentinelReadError("Error deserializing 'responseList' (CacheResponse[]) member of 'CacheMatchAllResult'");
690 0 : return false;
691 : }
692 0 : return true;
693 : }
694 :
695 0 : auto PCacheOpChild::Write(
696 : const OptionalInputStreamParams& v__,
697 : Message* msg__) -> void
698 : {
699 : typedef OptionalInputStreamParams type__;
700 0 : Write(int((v__).type()), msg__);
701 : // Sentinel = 'OptionalInputStreamParams'
702 0 : (msg__)->WriteSentinel(1355174443);
703 :
704 0 : switch ((v__).type()) {
705 : case type__::Tvoid_t:
706 : {
707 0 : Write((v__).get_void_t(), msg__);
708 : // Sentinel = 'Tvoid_t'
709 0 : (msg__)->WriteSentinel(3041273328);
710 0 : return;
711 : }
712 : case type__::TInputStreamParams:
713 : {
714 0 : Write((v__).get_InputStreamParams(), msg__);
715 : // Sentinel = 'TInputStreamParams'
716 0 : (msg__)->WriteSentinel(55652096);
717 0 : return;
718 : }
719 : default:
720 : {
721 0 : FatalError("unknown union type");
722 0 : return;
723 : }
724 : }
725 : }
726 :
727 0 : auto PCacheOpChild::Read(
728 : OptionalInputStreamParams* v__,
729 : const Message* msg__,
730 : PickleIterator* iter__) -> bool
731 : {
732 : typedef OptionalInputStreamParams type__;
733 : int type;
734 0 : if ((!(Read((&(type)), msg__, iter__)))) {
735 0 : mozilla::ipc::UnionTypeReadError("OptionalInputStreamParams");
736 0 : return false;
737 : }
738 : // Sentinel = 'OptionalInputStreamParams'
739 0 : if ((!((msg__)->ReadSentinel(iter__, 1355174443)))) {
740 0 : mozilla::ipc::SentinelReadError("OptionalInputStreamParams");
741 0 : return false;
742 : }
743 :
744 0 : switch (type) {
745 : case type__::Tvoid_t:
746 : {
747 : void_t tmp = void_t();
748 0 : (*(v__)) = tmp;
749 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
750 0 : FatalError("Error deserializing Union type");
751 0 : return false;
752 : }
753 : // Sentinel = 'Tvoid_t'
754 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
755 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
756 0 : return false;
757 : }
758 0 : return true;
759 : }
760 : case type__::TInputStreamParams:
761 : {
762 0 : InputStreamParams tmp = InputStreamParams();
763 0 : (*(v__)) = tmp;
764 0 : if ((!(Read((&((v__)->get_InputStreamParams())), msg__, iter__)))) {
765 0 : FatalError("Error deserializing Union type");
766 0 : return false;
767 : }
768 : // Sentinel = 'TInputStreamParams'
769 0 : if ((!((msg__)->ReadSentinel(iter__, 55652096)))) {
770 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
771 0 : return false;
772 : }
773 0 : return true;
774 : }
775 : default:
776 : {
777 0 : FatalError("unknown union type");
778 0 : return false;
779 : }
780 : }
781 : }
782 :
783 0 : auto PCacheOpChild::Write(
784 : const IPCRemoteStream& v__,
785 : Message* msg__) -> void
786 : {
787 0 : Write((v__).delayedStart(), msg__);
788 : // Sentinel = 'delayedStart'
789 0 : (msg__)->WriteSentinel(1491822294);
790 0 : Write((v__).stream(), msg__);
791 : // Sentinel = 'stream'
792 0 : (msg__)->WriteSentinel(4152748422);
793 0 : }
794 :
795 0 : auto PCacheOpChild::Read(
796 : IPCRemoteStream* v__,
797 : const Message* msg__,
798 : PickleIterator* iter__) -> bool
799 : {
800 0 : if ((!(Read((&((v__)->delayedStart())), msg__, iter__)))) {
801 0 : FatalError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
802 0 : return false;
803 : }
804 : // Sentinel = 'delayedStart'
805 0 : if ((!((msg__)->ReadSentinel(iter__, 1491822294)))) {
806 0 : mozilla::ipc::SentinelReadError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
807 0 : return false;
808 : }
809 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
810 0 : FatalError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
811 0 : return false;
812 : }
813 : // Sentinel = 'stream'
814 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
815 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
816 0 : return false;
817 : }
818 0 : return true;
819 : }
820 :
821 0 : auto PCacheOpChild::Write(
822 : const StorageDeleteResult& v__,
823 : Message* msg__) -> void
824 : {
825 0 : Write((v__).success(), msg__);
826 : // Sentinel = 'success'
827 0 : (msg__)->WriteSentinel(3877396070);
828 0 : }
829 :
830 0 : auto PCacheOpChild::Read(
831 : StorageDeleteResult* v__,
832 : const Message* msg__,
833 : PickleIterator* iter__) -> bool
834 : {
835 0 : if ((!(Read((&((v__)->success())), msg__, iter__)))) {
836 0 : FatalError("Error deserializing 'success' (bool) member of 'StorageDeleteResult'");
837 0 : return false;
838 : }
839 : // Sentinel = 'success'
840 0 : if ((!((msg__)->ReadSentinel(iter__, 3877396070)))) {
841 0 : mozilla::ipc::SentinelReadError("Error deserializing 'success' (bool) member of 'StorageDeleteResult'");
842 0 : return false;
843 : }
844 0 : return true;
845 : }
846 :
847 0 : auto PCacheOpChild::Write(
848 : const CacheReadStreamOrVoid& v__,
849 : Message* msg__) -> void
850 : {
851 : typedef CacheReadStreamOrVoid type__;
852 0 : Write(int((v__).type()), msg__);
853 : // Sentinel = 'CacheReadStreamOrVoid'
854 0 : (msg__)->WriteSentinel(2746523334);
855 :
856 0 : switch ((v__).type()) {
857 : case type__::Tvoid_t:
858 : {
859 0 : Write((v__).get_void_t(), msg__);
860 : // Sentinel = 'Tvoid_t'
861 0 : (msg__)->WriteSentinel(3041273328);
862 0 : return;
863 : }
864 : case type__::TCacheReadStream:
865 : {
866 0 : Write((v__).get_CacheReadStream(), msg__);
867 : // Sentinel = 'TCacheReadStream'
868 0 : (msg__)->WriteSentinel(1898450890);
869 0 : return;
870 : }
871 : default:
872 : {
873 0 : FatalError("unknown union type");
874 0 : return;
875 : }
876 : }
877 : }
878 :
879 0 : auto PCacheOpChild::Read(
880 : CacheReadStreamOrVoid* v__,
881 : const Message* msg__,
882 : PickleIterator* iter__) -> bool
883 : {
884 : typedef CacheReadStreamOrVoid type__;
885 : int type;
886 0 : if ((!(Read((&(type)), msg__, iter__)))) {
887 0 : mozilla::ipc::UnionTypeReadError("CacheReadStreamOrVoid");
888 0 : return false;
889 : }
890 : // Sentinel = 'CacheReadStreamOrVoid'
891 0 : if ((!((msg__)->ReadSentinel(iter__, 2746523334)))) {
892 0 : mozilla::ipc::SentinelReadError("CacheReadStreamOrVoid");
893 0 : return false;
894 : }
895 :
896 0 : switch (type) {
897 : case type__::Tvoid_t:
898 : {
899 : void_t tmp = void_t();
900 0 : (*(v__)) = tmp;
901 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
902 0 : FatalError("Error deserializing Union type");
903 0 : return false;
904 : }
905 : // Sentinel = 'Tvoid_t'
906 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
907 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
908 0 : return false;
909 : }
910 0 : return true;
911 : }
912 : case type__::TCacheReadStream:
913 : {
914 0 : CacheReadStream tmp = CacheReadStream();
915 0 : (*(v__)) = tmp;
916 0 : if ((!(Read((&((v__)->get_CacheReadStream())), msg__, iter__)))) {
917 0 : FatalError("Error deserializing Union type");
918 0 : return false;
919 : }
920 : // Sentinel = 'TCacheReadStream'
921 0 : if ((!((msg__)->ReadSentinel(iter__, 1898450890)))) {
922 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
923 0 : return false;
924 : }
925 0 : return true;
926 : }
927 : default:
928 : {
929 0 : FatalError("unknown union type");
930 0 : return false;
931 : }
932 : }
933 : }
934 :
935 0 : auto PCacheOpChild::Write(
936 : const StorageKeysResult& v__,
937 : Message* msg__) -> void
938 : {
939 0 : Write((v__).keyList(), msg__);
940 : // Sentinel = 'keyList'
941 0 : (msg__)->WriteSentinel(506515162);
942 0 : }
943 :
944 0 : auto PCacheOpChild::Read(
945 : StorageKeysResult* v__,
946 : const Message* msg__,
947 : PickleIterator* iter__) -> bool
948 : {
949 0 : if ((!(Read((&((v__)->keyList())), msg__, iter__)))) {
950 0 : FatalError("Error deserializing 'keyList' (nsString[]) member of 'StorageKeysResult'");
951 0 : return false;
952 : }
953 : // Sentinel = 'keyList'
954 0 : if ((!((msg__)->ReadSentinel(iter__, 506515162)))) {
955 0 : mozilla::ipc::SentinelReadError("Error deserializing 'keyList' (nsString[]) member of 'StorageKeysResult'");
956 0 : return false;
957 : }
958 0 : return true;
959 : }
960 :
961 0 : auto PCacheOpChild::Write(
962 : const FileInputStreamParams& v__,
963 : Message* msg__) -> void
964 : {
965 0 : Write((v__).fileDescriptorIndex(), msg__);
966 : // Sentinel = 'fileDescriptorIndex'
967 0 : (msg__)->WriteSentinel(587329112);
968 0 : Write((v__).behaviorFlags(), msg__);
969 : // Sentinel = 'behaviorFlags'
970 0 : (msg__)->WriteSentinel(2404401962);
971 0 : Write((v__).ioFlags(), msg__);
972 : // Sentinel = 'ioFlags'
973 0 : (msg__)->WriteSentinel(1483009730);
974 0 : }
975 :
976 0 : auto PCacheOpChild::Read(
977 : FileInputStreamParams* v__,
978 : const Message* msg__,
979 : PickleIterator* iter__) -> bool
980 : {
981 0 : if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
982 0 : FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
983 0 : return false;
984 : }
985 : // Sentinel = 'fileDescriptorIndex'
986 0 : if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
987 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
988 0 : return false;
989 : }
990 0 : if ((!(Read((&((v__)->behaviorFlags())), msg__, iter__)))) {
991 0 : FatalError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
992 0 : return false;
993 : }
994 : // Sentinel = 'behaviorFlags'
995 0 : if ((!((msg__)->ReadSentinel(iter__, 2404401962)))) {
996 0 : mozilla::ipc::SentinelReadError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
997 0 : return false;
998 : }
999 0 : if ((!(Read((&((v__)->ioFlags())), msg__, iter__)))) {
1000 0 : FatalError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
1001 0 : return false;
1002 : }
1003 : // Sentinel = 'ioFlags'
1004 0 : if ((!((msg__)->ReadSentinel(iter__, 1483009730)))) {
1005 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
1006 0 : return false;
1007 : }
1008 0 : return true;
1009 : }
1010 :
1011 0 : auto PCacheOpChild::Write(
1012 : const IPCBlobInputStreamParams& v__,
1013 : Message* msg__) -> void
1014 : {
1015 0 : Write((v__).id(), msg__);
1016 : // Sentinel = 'id'
1017 0 : (msg__)->WriteSentinel(2794505629);
1018 0 : }
1019 :
1020 0 : auto PCacheOpChild::Read(
1021 : IPCBlobInputStreamParams* v__,
1022 : const Message* msg__,
1023 : PickleIterator* iter__) -> bool
1024 : {
1025 0 : if ((!(Read((&((v__)->id())), msg__, iter__)))) {
1026 0 : FatalError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
1027 0 : return false;
1028 : }
1029 : // Sentinel = 'id'
1030 0 : if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
1031 0 : mozilla::ipc::SentinelReadError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
1032 0 : return false;
1033 : }
1034 0 : return true;
1035 : }
1036 :
1037 0 : auto PCacheOpChild::Write(
1038 : const CacheOpResult& v__,
1039 : Message* msg__) -> void
1040 : {
1041 : typedef CacheOpResult type__;
1042 0 : Write(int((v__).type()), msg__);
1043 : // Sentinel = 'CacheOpResult'
1044 0 : (msg__)->WriteSentinel(4196239401);
1045 :
1046 0 : switch ((v__).type()) {
1047 : case type__::Tvoid_t:
1048 : {
1049 0 : Write((v__).get_void_t(), msg__);
1050 : // Sentinel = 'Tvoid_t'
1051 0 : (msg__)->WriteSentinel(3041273328);
1052 0 : return;
1053 : }
1054 : case type__::TCacheMatchResult:
1055 : {
1056 0 : Write((v__).get_CacheMatchResult(), msg__);
1057 : // Sentinel = 'TCacheMatchResult'
1058 0 : (msg__)->WriteSentinel(3091636979);
1059 0 : return;
1060 : }
1061 : case type__::TCacheMatchAllResult:
1062 : {
1063 0 : Write((v__).get_CacheMatchAllResult(), msg__);
1064 : // Sentinel = 'TCacheMatchAllResult'
1065 0 : (msg__)->WriteSentinel(1971983909);
1066 0 : return;
1067 : }
1068 : case type__::TCachePutAllResult:
1069 : {
1070 0 : Write((v__).get_CachePutAllResult(), msg__);
1071 : // Sentinel = 'TCachePutAllResult'
1072 0 : (msg__)->WriteSentinel(1538527127);
1073 0 : return;
1074 : }
1075 : case type__::TCacheDeleteResult:
1076 : {
1077 0 : Write((v__).get_CacheDeleteResult(), msg__);
1078 : // Sentinel = 'TCacheDeleteResult'
1079 0 : (msg__)->WriteSentinel(1803307474);
1080 0 : return;
1081 : }
1082 : case type__::TCacheKeysResult:
1083 : {
1084 0 : Write((v__).get_CacheKeysResult(), msg__);
1085 : // Sentinel = 'TCacheKeysResult'
1086 0 : (msg__)->WriteSentinel(1545978817);
1087 0 : return;
1088 : }
1089 : case type__::TStorageMatchResult:
1090 : {
1091 0 : Write((v__).get_StorageMatchResult(), msg__);
1092 : // Sentinel = 'TStorageMatchResult'
1093 0 : (msg__)->WriteSentinel(4077868246);
1094 0 : return;
1095 : }
1096 : case type__::TStorageHasResult:
1097 : {
1098 0 : Write((v__).get_StorageHasResult(), msg__);
1099 : // Sentinel = 'TStorageHasResult'
1100 0 : (msg__)->WriteSentinel(3517782191);
1101 0 : return;
1102 : }
1103 : case type__::TStorageOpenResult:
1104 : {
1105 0 : Write((v__).get_StorageOpenResult(), msg__);
1106 : // Sentinel = 'TStorageOpenResult'
1107 0 : (msg__)->WriteSentinel(2029621114);
1108 0 : return;
1109 : }
1110 : case type__::TStorageDeleteResult:
1111 : {
1112 0 : Write((v__).get_StorageDeleteResult(), msg__);
1113 : // Sentinel = 'TStorageDeleteResult'
1114 0 : (msg__)->WriteSentinel(1478155397);
1115 0 : return;
1116 : }
1117 : case type__::TStorageKeysResult:
1118 : {
1119 0 : Write((v__).get_StorageKeysResult(), msg__);
1120 : // Sentinel = 'TStorageKeysResult'
1121 0 : (msg__)->WriteSentinel(1548418902);
1122 0 : return;
1123 : }
1124 : default:
1125 : {
1126 0 : FatalError("unknown union type");
1127 0 : return;
1128 : }
1129 : }
1130 : }
1131 :
1132 0 : auto PCacheOpChild::Read(
1133 : CacheOpResult* v__,
1134 : const Message* msg__,
1135 : PickleIterator* iter__) -> bool
1136 : {
1137 : typedef CacheOpResult type__;
1138 : int type;
1139 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1140 0 : mozilla::ipc::UnionTypeReadError("CacheOpResult");
1141 0 : return false;
1142 : }
1143 : // Sentinel = 'CacheOpResult'
1144 0 : if ((!((msg__)->ReadSentinel(iter__, 4196239401)))) {
1145 0 : mozilla::ipc::SentinelReadError("CacheOpResult");
1146 0 : return false;
1147 : }
1148 :
1149 0 : switch (type) {
1150 : case type__::Tvoid_t:
1151 : {
1152 : void_t tmp = void_t();
1153 0 : (*(v__)) = tmp;
1154 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
1155 0 : FatalError("Error deserializing Union type");
1156 0 : return false;
1157 : }
1158 : // Sentinel = 'Tvoid_t'
1159 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
1160 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1161 0 : return false;
1162 : }
1163 0 : return true;
1164 : }
1165 : case type__::TCacheMatchResult:
1166 : {
1167 0 : CacheMatchResult tmp = CacheMatchResult();
1168 0 : (*(v__)) = tmp;
1169 0 : if ((!(Read((&((v__)->get_CacheMatchResult())), msg__, iter__)))) {
1170 0 : FatalError("Error deserializing Union type");
1171 0 : return false;
1172 : }
1173 : // Sentinel = 'TCacheMatchResult'
1174 0 : if ((!((msg__)->ReadSentinel(iter__, 3091636979)))) {
1175 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1176 0 : return false;
1177 : }
1178 0 : return true;
1179 : }
1180 : case type__::TCacheMatchAllResult:
1181 : {
1182 0 : CacheMatchAllResult tmp = CacheMatchAllResult();
1183 0 : (*(v__)) = tmp;
1184 0 : if ((!(Read((&((v__)->get_CacheMatchAllResult())), msg__, iter__)))) {
1185 0 : FatalError("Error deserializing Union type");
1186 0 : return false;
1187 : }
1188 : // Sentinel = 'TCacheMatchAllResult'
1189 0 : if ((!((msg__)->ReadSentinel(iter__, 1971983909)))) {
1190 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1191 0 : return false;
1192 : }
1193 0 : return true;
1194 : }
1195 : case type__::TCachePutAllResult:
1196 : {
1197 0 : CachePutAllResult tmp = CachePutAllResult();
1198 0 : (*(v__)) = tmp;
1199 0 : if ((!(Read((&((v__)->get_CachePutAllResult())), msg__, iter__)))) {
1200 0 : FatalError("Error deserializing Union type");
1201 0 : return false;
1202 : }
1203 : // Sentinel = 'TCachePutAllResult'
1204 0 : if ((!((msg__)->ReadSentinel(iter__, 1538527127)))) {
1205 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1206 0 : return false;
1207 : }
1208 0 : return true;
1209 : }
1210 : case type__::TCacheDeleteResult:
1211 : {
1212 0 : CacheDeleteResult tmp = CacheDeleteResult();
1213 0 : (*(v__)) = tmp;
1214 0 : if ((!(Read((&((v__)->get_CacheDeleteResult())), msg__, iter__)))) {
1215 0 : FatalError("Error deserializing Union type");
1216 0 : return false;
1217 : }
1218 : // Sentinel = 'TCacheDeleteResult'
1219 0 : if ((!((msg__)->ReadSentinel(iter__, 1803307474)))) {
1220 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1221 0 : return false;
1222 : }
1223 0 : return true;
1224 : }
1225 : case type__::TCacheKeysResult:
1226 : {
1227 0 : CacheKeysResult tmp = CacheKeysResult();
1228 0 : (*(v__)) = tmp;
1229 0 : if ((!(Read((&((v__)->get_CacheKeysResult())), msg__, iter__)))) {
1230 0 : FatalError("Error deserializing Union type");
1231 0 : return false;
1232 : }
1233 : // Sentinel = 'TCacheKeysResult'
1234 0 : if ((!((msg__)->ReadSentinel(iter__, 1545978817)))) {
1235 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1236 0 : return false;
1237 : }
1238 0 : return true;
1239 : }
1240 : case type__::TStorageMatchResult:
1241 : {
1242 0 : StorageMatchResult tmp = StorageMatchResult();
1243 0 : (*(v__)) = tmp;
1244 0 : if ((!(Read((&((v__)->get_StorageMatchResult())), msg__, iter__)))) {
1245 0 : FatalError("Error deserializing Union type");
1246 0 : return false;
1247 : }
1248 : // Sentinel = 'TStorageMatchResult'
1249 0 : if ((!((msg__)->ReadSentinel(iter__, 4077868246)))) {
1250 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1251 0 : return false;
1252 : }
1253 0 : return true;
1254 : }
1255 : case type__::TStorageHasResult:
1256 : {
1257 0 : StorageHasResult tmp = StorageHasResult();
1258 0 : (*(v__)) = tmp;
1259 0 : if ((!(Read((&((v__)->get_StorageHasResult())), msg__, iter__)))) {
1260 0 : FatalError("Error deserializing Union type");
1261 0 : return false;
1262 : }
1263 : // Sentinel = 'TStorageHasResult'
1264 0 : if ((!((msg__)->ReadSentinel(iter__, 3517782191)))) {
1265 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1266 0 : return false;
1267 : }
1268 0 : return true;
1269 : }
1270 : case type__::TStorageOpenResult:
1271 : {
1272 0 : StorageOpenResult tmp = StorageOpenResult();
1273 0 : (*(v__)) = tmp;
1274 0 : if ((!(Read((&((v__)->get_StorageOpenResult())), msg__, iter__)))) {
1275 0 : FatalError("Error deserializing Union type");
1276 0 : return false;
1277 : }
1278 : // Sentinel = 'TStorageOpenResult'
1279 0 : if ((!((msg__)->ReadSentinel(iter__, 2029621114)))) {
1280 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1281 0 : return false;
1282 : }
1283 0 : return true;
1284 : }
1285 : case type__::TStorageDeleteResult:
1286 : {
1287 0 : StorageDeleteResult tmp = StorageDeleteResult();
1288 0 : (*(v__)) = tmp;
1289 0 : if ((!(Read((&((v__)->get_StorageDeleteResult())), msg__, iter__)))) {
1290 0 : FatalError("Error deserializing Union type");
1291 0 : return false;
1292 : }
1293 : // Sentinel = 'TStorageDeleteResult'
1294 0 : if ((!((msg__)->ReadSentinel(iter__, 1478155397)))) {
1295 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1296 0 : return false;
1297 : }
1298 0 : return true;
1299 : }
1300 : case type__::TStorageKeysResult:
1301 : {
1302 0 : StorageKeysResult tmp = StorageKeysResult();
1303 0 : (*(v__)) = tmp;
1304 0 : if ((!(Read((&((v__)->get_StorageKeysResult())), msg__, iter__)))) {
1305 0 : FatalError("Error deserializing Union type");
1306 0 : return false;
1307 : }
1308 : // Sentinel = 'TStorageKeysResult'
1309 0 : if ((!((msg__)->ReadSentinel(iter__, 1548418902)))) {
1310 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1311 0 : return false;
1312 : }
1313 0 : return true;
1314 : }
1315 : default:
1316 : {
1317 0 : FatalError("unknown union type");
1318 0 : return false;
1319 : }
1320 : }
1321 : }
1322 :
1323 0 : auto PCacheOpChild::Write(
1324 : const nsTArray<CacheResponse>& v__,
1325 : Message* msg__) -> void
1326 : {
1327 0 : uint32_t length = (v__).Length();
1328 0 : Write(length, msg__);
1329 : // Sentinel = ('length', 'CacheResponse[]')
1330 0 : (msg__)->WriteSentinel(3324244481);
1331 :
1332 0 : for (auto& elem : v__) {
1333 0 : Write(elem, msg__);
1334 : // Sentinel = 'CacheResponse[]'
1335 0 : (msg__)->WriteSentinel(3934330656);
1336 : }
1337 0 : }
1338 :
1339 0 : auto PCacheOpChild::Read(
1340 : nsTArray<CacheResponse>* v__,
1341 : const Message* msg__,
1342 : PickleIterator* iter__) -> bool
1343 : {
1344 0 : nsTArray<CacheResponse> fa;
1345 : uint32_t length;
1346 0 : if ((!(Read((&(length)), msg__, iter__)))) {
1347 0 : mozilla::ipc::ArrayLengthReadError("CacheResponse[]");
1348 0 : return false;
1349 : }
1350 : // Sentinel = ('length', 'CacheResponse[]')
1351 0 : if ((!((msg__)->ReadSentinel(iter__, 3324244481)))) {
1352 0 : mozilla::ipc::SentinelReadError("CacheResponse[]");
1353 0 : return false;
1354 : }
1355 :
1356 0 : CacheResponse* elems = (fa).AppendElements(length);
1357 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
1358 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
1359 0 : FatalError("Error deserializing 'CacheResponse[i]'");
1360 0 : return false;
1361 : }
1362 : // Sentinel = 'CacheResponse[]'
1363 0 : if ((!((msg__)->ReadSentinel(iter__, 3934330656)))) {
1364 0 : mozilla::ipc::SentinelReadError("Error deserializing 'CacheResponse[i]'");
1365 0 : return false;
1366 : }
1367 : }
1368 0 : (v__)->SwapElements(fa);
1369 0 : return true;
1370 : }
1371 :
1372 0 : auto PCacheOpChild::Write(
1373 : const CacheResponse& v__,
1374 : Message* msg__) -> void
1375 : {
1376 0 : Write((v__).type(), msg__);
1377 : // Sentinel = 'type'
1378 0 : (msg__)->WriteSentinel(2982068540);
1379 0 : Write((v__).urlList(), msg__);
1380 : // Sentinel = 'urlList'
1381 0 : (msg__)->WriteSentinel(2130903160);
1382 0 : Write((v__).status(), msg__);
1383 : // Sentinel = 'status'
1384 0 : (msg__)->WriteSentinel(3714608576);
1385 0 : Write((v__).statusText(), msg__);
1386 : // Sentinel = 'statusText'
1387 0 : (msg__)->WriteSentinel(2492908073);
1388 0 : Write((v__).headers(), msg__);
1389 : // Sentinel = 'headers'
1390 0 : (msg__)->WriteSentinel(4284175217);
1391 0 : Write((v__).headersGuard(), msg__);
1392 : // Sentinel = 'headersGuard'
1393 0 : (msg__)->WriteSentinel(2295054805);
1394 0 : Write((v__).body(), msg__);
1395 : // Sentinel = 'body'
1396 0 : (msg__)->WriteSentinel(2829965504);
1397 0 : Write((v__).channelInfo(), msg__);
1398 : // Sentinel = 'channelInfo'
1399 0 : (msg__)->WriteSentinel(2311115806);
1400 0 : Write((v__).principalInfo(), msg__);
1401 : // Sentinel = 'principalInfo'
1402 0 : (msg__)->WriteSentinel(3386633731);
1403 0 : }
1404 :
1405 0 : auto PCacheOpChild::Read(
1406 : CacheResponse* v__,
1407 : const Message* msg__,
1408 : PickleIterator* iter__) -> bool
1409 : {
1410 0 : if ((!(Read((&((v__)->type())), msg__, iter__)))) {
1411 0 : FatalError("Error deserializing 'type' (ResponseType) member of 'CacheResponse'");
1412 0 : return false;
1413 : }
1414 : // Sentinel = 'type'
1415 0 : if ((!((msg__)->ReadSentinel(iter__, 2982068540)))) {
1416 0 : mozilla::ipc::SentinelReadError("Error deserializing 'type' (ResponseType) member of 'CacheResponse'");
1417 0 : return false;
1418 : }
1419 0 : if ((!(Read((&((v__)->urlList())), msg__, iter__)))) {
1420 0 : FatalError("Error deserializing 'urlList' (nsCString[]) member of 'CacheResponse'");
1421 0 : return false;
1422 : }
1423 : // Sentinel = 'urlList'
1424 0 : if ((!((msg__)->ReadSentinel(iter__, 2130903160)))) {
1425 0 : mozilla::ipc::SentinelReadError("Error deserializing 'urlList' (nsCString[]) member of 'CacheResponse'");
1426 0 : return false;
1427 : }
1428 0 : if ((!(Read((&((v__)->status())), msg__, iter__)))) {
1429 0 : FatalError("Error deserializing 'status' (uint32_t) member of 'CacheResponse'");
1430 0 : return false;
1431 : }
1432 : // Sentinel = 'status'
1433 0 : if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
1434 0 : mozilla::ipc::SentinelReadError("Error deserializing 'status' (uint32_t) member of 'CacheResponse'");
1435 0 : return false;
1436 : }
1437 0 : if ((!(Read((&((v__)->statusText())), msg__, iter__)))) {
1438 0 : FatalError("Error deserializing 'statusText' (nsCString) member of 'CacheResponse'");
1439 0 : return false;
1440 : }
1441 : // Sentinel = 'statusText'
1442 0 : if ((!((msg__)->ReadSentinel(iter__, 2492908073)))) {
1443 0 : mozilla::ipc::SentinelReadError("Error deserializing 'statusText' (nsCString) member of 'CacheResponse'");
1444 0 : return false;
1445 : }
1446 0 : if ((!(Read((&((v__)->headers())), msg__, iter__)))) {
1447 0 : FatalError("Error deserializing 'headers' (HeadersEntry[]) member of 'CacheResponse'");
1448 0 : return false;
1449 : }
1450 : // Sentinel = 'headers'
1451 0 : if ((!((msg__)->ReadSentinel(iter__, 4284175217)))) {
1452 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headers' (HeadersEntry[]) member of 'CacheResponse'");
1453 0 : return false;
1454 : }
1455 0 : if ((!(Read((&((v__)->headersGuard())), msg__, iter__)))) {
1456 0 : FatalError("Error deserializing 'headersGuard' (HeadersGuardEnum) member of 'CacheResponse'");
1457 0 : return false;
1458 : }
1459 : // Sentinel = 'headersGuard'
1460 0 : if ((!((msg__)->ReadSentinel(iter__, 2295054805)))) {
1461 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headersGuard' (HeadersGuardEnum) member of 'CacheResponse'");
1462 0 : return false;
1463 : }
1464 0 : if ((!(Read((&((v__)->body())), msg__, iter__)))) {
1465 0 : FatalError("Error deserializing 'body' (CacheReadStreamOrVoid) member of 'CacheResponse'");
1466 0 : return false;
1467 : }
1468 : // Sentinel = 'body'
1469 0 : if ((!((msg__)->ReadSentinel(iter__, 2829965504)))) {
1470 0 : mozilla::ipc::SentinelReadError("Error deserializing 'body' (CacheReadStreamOrVoid) member of 'CacheResponse'");
1471 0 : return false;
1472 : }
1473 0 : if ((!(Read((&((v__)->channelInfo())), msg__, iter__)))) {
1474 0 : FatalError("Error deserializing 'channelInfo' (IPCChannelInfo) member of 'CacheResponse'");
1475 0 : return false;
1476 : }
1477 : // Sentinel = 'channelInfo'
1478 0 : if ((!((msg__)->ReadSentinel(iter__, 2311115806)))) {
1479 0 : mozilla::ipc::SentinelReadError("Error deserializing 'channelInfo' (IPCChannelInfo) member of 'CacheResponse'");
1480 0 : return false;
1481 : }
1482 0 : if ((!(Read((&((v__)->principalInfo())), msg__, iter__)))) {
1483 0 : FatalError("Error deserializing 'principalInfo' (OptionalPrincipalInfo) member of 'CacheResponse'");
1484 0 : return false;
1485 : }
1486 : // Sentinel = 'principalInfo'
1487 0 : if ((!((msg__)->ReadSentinel(iter__, 3386633731)))) {
1488 0 : mozilla::ipc::SentinelReadError("Error deserializing 'principalInfo' (OptionalPrincipalInfo) member of 'CacheResponse'");
1489 0 : return false;
1490 : }
1491 0 : return true;
1492 : }
1493 :
1494 0 : auto PCacheOpChild::Write(
1495 : const ExpandedPrincipalInfo& v__,
1496 : Message* msg__) -> void
1497 : {
1498 0 : Write((v__).attrs(), msg__);
1499 : // Sentinel = 'attrs'
1500 0 : (msg__)->WriteSentinel(3014987797);
1501 0 : Write((v__).whitelist(), msg__);
1502 : // Sentinel = 'whitelist'
1503 0 : (msg__)->WriteSentinel(3731637258);
1504 0 : }
1505 :
1506 0 : auto PCacheOpChild::Read(
1507 : ExpandedPrincipalInfo* v__,
1508 : const Message* msg__,
1509 : PickleIterator* iter__) -> bool
1510 : {
1511 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
1512 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
1513 0 : return false;
1514 : }
1515 : // Sentinel = 'attrs'
1516 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
1517 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
1518 0 : return false;
1519 : }
1520 0 : if ((!(Read((&((v__)->whitelist())), msg__, iter__)))) {
1521 0 : FatalError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
1522 0 : return false;
1523 : }
1524 : // Sentinel = 'whitelist'
1525 0 : if ((!((msg__)->ReadSentinel(iter__, 3731637258)))) {
1526 0 : mozilla::ipc::SentinelReadError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
1527 0 : return false;
1528 : }
1529 0 : return true;
1530 : }
1531 :
1532 0 : auto PCacheOpChild::Write(
1533 : const CacheDeleteResult& v__,
1534 : Message* msg__) -> void
1535 : {
1536 0 : Write((v__).success(), msg__);
1537 : // Sentinel = 'success'
1538 0 : (msg__)->WriteSentinel(3877396070);
1539 0 : }
1540 :
1541 0 : auto PCacheOpChild::Read(
1542 : CacheDeleteResult* v__,
1543 : const Message* msg__,
1544 : PickleIterator* iter__) -> bool
1545 : {
1546 0 : if ((!(Read((&((v__)->success())), msg__, iter__)))) {
1547 0 : FatalError("Error deserializing 'success' (bool) member of 'CacheDeleteResult'");
1548 0 : return false;
1549 : }
1550 : // Sentinel = 'success'
1551 0 : if ((!((msg__)->ReadSentinel(iter__, 3877396070)))) {
1552 0 : mozilla::ipc::SentinelReadError("Error deserializing 'success' (bool) member of 'CacheDeleteResult'");
1553 0 : return false;
1554 : }
1555 0 : return true;
1556 : }
1557 :
1558 0 : auto PCacheOpChild::Write(
1559 : const InputStreamParamsWithFds& v__,
1560 : Message* msg__) -> void
1561 : {
1562 0 : Write((v__).stream(), msg__);
1563 : // Sentinel = 'stream'
1564 0 : (msg__)->WriteSentinel(4152748422);
1565 0 : Write((v__).optionalFds(), msg__);
1566 : // Sentinel = 'optionalFds'
1567 0 : (msg__)->WriteSentinel(1021803302);
1568 0 : }
1569 :
1570 0 : auto PCacheOpChild::Read(
1571 : InputStreamParamsWithFds* v__,
1572 : const Message* msg__,
1573 : PickleIterator* iter__) -> bool
1574 : {
1575 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
1576 0 : FatalError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
1577 0 : return false;
1578 : }
1579 : // Sentinel = 'stream'
1580 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
1581 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
1582 0 : return false;
1583 : }
1584 0 : if ((!(Read((&((v__)->optionalFds())), msg__, iter__)))) {
1585 0 : FatalError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
1586 0 : return false;
1587 : }
1588 : // Sentinel = 'optionalFds'
1589 0 : if ((!((msg__)->ReadSentinel(iter__, 1021803302)))) {
1590 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
1591 0 : return false;
1592 : }
1593 0 : return true;
1594 : }
1595 :
1596 0 : auto PCacheOpChild::Write(
1597 : const nsTArray<CacheRequest>& v__,
1598 : Message* msg__) -> void
1599 : {
1600 0 : uint32_t length = (v__).Length();
1601 0 : Write(length, msg__);
1602 : // Sentinel = ('length', 'CacheRequest[]')
1603 0 : (msg__)->WriteSentinel(3813923856);
1604 :
1605 0 : for (auto& elem : v__) {
1606 0 : Write(elem, msg__);
1607 : // Sentinel = 'CacheRequest[]'
1608 0 : (msg__)->WriteSentinel(4166480583);
1609 : }
1610 0 : }
1611 :
1612 0 : auto PCacheOpChild::Read(
1613 : nsTArray<CacheRequest>* v__,
1614 : const Message* msg__,
1615 : PickleIterator* iter__) -> bool
1616 : {
1617 0 : nsTArray<CacheRequest> fa;
1618 : uint32_t length;
1619 0 : if ((!(Read((&(length)), msg__, iter__)))) {
1620 0 : mozilla::ipc::ArrayLengthReadError("CacheRequest[]");
1621 0 : return false;
1622 : }
1623 : // Sentinel = ('length', 'CacheRequest[]')
1624 0 : if ((!((msg__)->ReadSentinel(iter__, 3813923856)))) {
1625 0 : mozilla::ipc::SentinelReadError("CacheRequest[]");
1626 0 : return false;
1627 : }
1628 :
1629 0 : CacheRequest* elems = (fa).AppendElements(length);
1630 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
1631 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
1632 0 : FatalError("Error deserializing 'CacheRequest[i]'");
1633 0 : return false;
1634 : }
1635 : // Sentinel = 'CacheRequest[]'
1636 0 : if ((!((msg__)->ReadSentinel(iter__, 4166480583)))) {
1637 0 : mozilla::ipc::SentinelReadError("Error deserializing 'CacheRequest[i]'");
1638 0 : return false;
1639 : }
1640 : }
1641 0 : (v__)->SwapElements(fa);
1642 0 : return true;
1643 : }
1644 :
1645 0 : auto PCacheOpChild::Write(
1646 : const CacheMatchResult& v__,
1647 : Message* msg__) -> void
1648 : {
1649 0 : Write((v__).responseOrVoid(), msg__);
1650 : // Sentinel = 'responseOrVoid'
1651 0 : (msg__)->WriteSentinel(2034302742);
1652 0 : }
1653 :
1654 0 : auto PCacheOpChild::Read(
1655 : CacheMatchResult* v__,
1656 : const Message* msg__,
1657 : PickleIterator* iter__) -> bool
1658 : {
1659 0 : if ((!(Read((&((v__)->responseOrVoid())), msg__, iter__)))) {
1660 0 : FatalError("Error deserializing 'responseOrVoid' (CacheResponseOrVoid) member of 'CacheMatchResult'");
1661 0 : return false;
1662 : }
1663 : // Sentinel = 'responseOrVoid'
1664 0 : if ((!((msg__)->ReadSentinel(iter__, 2034302742)))) {
1665 0 : mozilla::ipc::SentinelReadError("Error deserializing 'responseOrVoid' (CacheResponseOrVoid) member of 'CacheMatchResult'");
1666 0 : return false;
1667 : }
1668 0 : return true;
1669 : }
1670 :
1671 0 : auto PCacheOpChild::Write(
1672 : const PrincipalInfo& v__,
1673 : Message* msg__) -> void
1674 : {
1675 : typedef PrincipalInfo type__;
1676 0 : Write(int((v__).type()), msg__);
1677 : // Sentinel = 'PrincipalInfo'
1678 0 : (msg__)->WriteSentinel(4194518819);
1679 :
1680 0 : switch ((v__).type()) {
1681 : case type__::TContentPrincipalInfo:
1682 : {
1683 0 : Write((v__).get_ContentPrincipalInfo(), msg__);
1684 : // Sentinel = 'TContentPrincipalInfo'
1685 0 : (msg__)->WriteSentinel(3677342258);
1686 0 : return;
1687 : }
1688 : case type__::TSystemPrincipalInfo:
1689 : {
1690 0 : Write((v__).get_SystemPrincipalInfo(), msg__);
1691 : // Sentinel = 'TSystemPrincipalInfo'
1692 0 : (msg__)->WriteSentinel(3590603679);
1693 0 : return;
1694 : }
1695 : case type__::TNullPrincipalInfo:
1696 : {
1697 0 : Write((v__).get_NullPrincipalInfo(), msg__);
1698 : // Sentinel = 'TNullPrincipalInfo'
1699 0 : (msg__)->WriteSentinel(3477774965);
1700 0 : return;
1701 : }
1702 : case type__::TExpandedPrincipalInfo:
1703 : {
1704 0 : Write((v__).get_ExpandedPrincipalInfo(), msg__);
1705 : // Sentinel = 'TExpandedPrincipalInfo'
1706 0 : (msg__)->WriteSentinel(589324917);
1707 0 : return;
1708 : }
1709 : default:
1710 : {
1711 0 : FatalError("unknown union type");
1712 0 : return;
1713 : }
1714 : }
1715 : }
1716 :
1717 0 : auto PCacheOpChild::Read(
1718 : PrincipalInfo* v__,
1719 : const Message* msg__,
1720 : PickleIterator* iter__) -> bool
1721 : {
1722 : typedef PrincipalInfo type__;
1723 : int type;
1724 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1725 0 : mozilla::ipc::UnionTypeReadError("PrincipalInfo");
1726 0 : return false;
1727 : }
1728 : // Sentinel = 'PrincipalInfo'
1729 0 : if ((!((msg__)->ReadSentinel(iter__, 4194518819)))) {
1730 0 : mozilla::ipc::SentinelReadError("PrincipalInfo");
1731 0 : return false;
1732 : }
1733 :
1734 0 : switch (type) {
1735 : case type__::TContentPrincipalInfo:
1736 : {
1737 0 : ContentPrincipalInfo tmp = ContentPrincipalInfo();
1738 0 : (*(v__)) = tmp;
1739 0 : if ((!(Read((&((v__)->get_ContentPrincipalInfo())), msg__, iter__)))) {
1740 0 : FatalError("Error deserializing Union type");
1741 0 : return false;
1742 : }
1743 : // Sentinel = 'TContentPrincipalInfo'
1744 0 : if ((!((msg__)->ReadSentinel(iter__, 3677342258)))) {
1745 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1746 0 : return false;
1747 : }
1748 0 : return true;
1749 : }
1750 : case type__::TSystemPrincipalInfo:
1751 : {
1752 0 : SystemPrincipalInfo tmp = SystemPrincipalInfo();
1753 0 : (*(v__)) = tmp;
1754 0 : if ((!(Read((&((v__)->get_SystemPrincipalInfo())), msg__, iter__)))) {
1755 0 : FatalError("Error deserializing Union type");
1756 0 : return false;
1757 : }
1758 : // Sentinel = 'TSystemPrincipalInfo'
1759 0 : if ((!((msg__)->ReadSentinel(iter__, 3590603679)))) {
1760 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1761 0 : return false;
1762 : }
1763 0 : return true;
1764 : }
1765 : case type__::TNullPrincipalInfo:
1766 : {
1767 0 : NullPrincipalInfo tmp = NullPrincipalInfo();
1768 0 : (*(v__)) = tmp;
1769 0 : if ((!(Read((&((v__)->get_NullPrincipalInfo())), msg__, iter__)))) {
1770 0 : FatalError("Error deserializing Union type");
1771 0 : return false;
1772 : }
1773 : // Sentinel = 'TNullPrincipalInfo'
1774 0 : if ((!((msg__)->ReadSentinel(iter__, 3477774965)))) {
1775 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1776 0 : return false;
1777 : }
1778 0 : return true;
1779 : }
1780 : case type__::TExpandedPrincipalInfo:
1781 : {
1782 0 : ExpandedPrincipalInfo tmp = ExpandedPrincipalInfo();
1783 0 : (*(v__)) = tmp;
1784 0 : if ((!(Read((&((v__)->get_ExpandedPrincipalInfo())), msg__, iter__)))) {
1785 0 : FatalError("Error deserializing Union type");
1786 0 : return false;
1787 : }
1788 : // Sentinel = 'TExpandedPrincipalInfo'
1789 0 : if ((!((msg__)->ReadSentinel(iter__, 589324917)))) {
1790 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1791 0 : return false;
1792 : }
1793 0 : return true;
1794 : }
1795 : default:
1796 : {
1797 0 : FatalError("unknown union type");
1798 0 : return false;
1799 : }
1800 : }
1801 : }
1802 :
1803 0 : auto PCacheOpChild::Write(
1804 : const nsTArray<HeaderEntry>& v__,
1805 : Message* msg__) -> void
1806 : {
1807 0 : uint32_t length = (v__).Length();
1808 0 : Write(length, msg__);
1809 : // Sentinel = ('length', 'HeaderEntry[]')
1810 0 : (msg__)->WriteSentinel(2689457705);
1811 :
1812 0 : for (auto& elem : v__) {
1813 0 : Write(elem, msg__);
1814 : // Sentinel = 'HeaderEntry[]'
1815 0 : (msg__)->WriteSentinel(454836120);
1816 : }
1817 0 : }
1818 :
1819 0 : auto PCacheOpChild::Read(
1820 : nsTArray<HeaderEntry>* v__,
1821 : const Message* msg__,
1822 : PickleIterator* iter__) -> bool
1823 : {
1824 0 : nsTArray<HeaderEntry> fa;
1825 : uint32_t length;
1826 0 : if ((!(Read((&(length)), msg__, iter__)))) {
1827 0 : mozilla::ipc::ArrayLengthReadError("HeaderEntry[]");
1828 0 : return false;
1829 : }
1830 : // Sentinel = ('length', 'HeaderEntry[]')
1831 0 : if ((!((msg__)->ReadSentinel(iter__, 2689457705)))) {
1832 0 : mozilla::ipc::SentinelReadError("HeaderEntry[]");
1833 0 : return false;
1834 : }
1835 :
1836 0 : HeaderEntry* elems = (fa).AppendElements(length);
1837 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
1838 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
1839 0 : FatalError("Error deserializing 'HeaderEntry[i]'");
1840 0 : return false;
1841 : }
1842 : // Sentinel = 'HeaderEntry[]'
1843 0 : if ((!((msg__)->ReadSentinel(iter__, 454836120)))) {
1844 0 : mozilla::ipc::SentinelReadError("Error deserializing 'HeaderEntry[i]'");
1845 0 : return false;
1846 : }
1847 : }
1848 0 : (v__)->SwapElements(fa);
1849 0 : return true;
1850 : }
1851 :
1852 0 : auto PCacheOpChild::Write(
1853 : const NullPrincipalInfo& v__,
1854 : Message* msg__) -> void
1855 : {
1856 0 : Write((v__).attrs(), msg__);
1857 : // Sentinel = 'attrs'
1858 0 : (msg__)->WriteSentinel(3014987797);
1859 0 : Write((v__).spec(), msg__);
1860 : // Sentinel = 'spec'
1861 0 : (msg__)->WriteSentinel(1630740541);
1862 0 : }
1863 :
1864 0 : auto PCacheOpChild::Read(
1865 : NullPrincipalInfo* v__,
1866 : const Message* msg__,
1867 : PickleIterator* iter__) -> bool
1868 : {
1869 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
1870 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
1871 0 : return false;
1872 : }
1873 : // Sentinel = 'attrs'
1874 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
1875 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
1876 0 : return false;
1877 : }
1878 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
1879 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
1880 0 : return false;
1881 : }
1882 : // Sentinel = 'spec'
1883 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
1884 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
1885 0 : return false;
1886 : }
1887 0 : return true;
1888 : }
1889 :
1890 0 : auto PCacheOpChild::Write(
1891 : const SlicedInputStreamParams& v__,
1892 : Message* msg__) -> void
1893 : {
1894 0 : Write((v__).stream(), msg__);
1895 : // Sentinel = 'stream'
1896 0 : (msg__)->WriteSentinel(4152748422);
1897 0 : Write((v__).start(), msg__);
1898 : // Sentinel = 'start'
1899 0 : (msg__)->WriteSentinel(2088644401);
1900 0 : Write((v__).length(), msg__);
1901 : // Sentinel = 'length'
1902 0 : (msg__)->WriteSentinel(1726618354);
1903 0 : Write((v__).curPos(), msg__);
1904 : // Sentinel = 'curPos'
1905 0 : (msg__)->WriteSentinel(4042140974);
1906 0 : Write((v__).closed(), msg__);
1907 : // Sentinel = 'closed'
1908 0 : (msg__)->WriteSentinel(561249462);
1909 0 : }
1910 :
1911 0 : auto PCacheOpChild::Read(
1912 : SlicedInputStreamParams* v__,
1913 : const Message* msg__,
1914 : PickleIterator* iter__) -> bool
1915 : {
1916 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
1917 0 : FatalError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
1918 0 : return false;
1919 : }
1920 : // Sentinel = 'stream'
1921 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
1922 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
1923 0 : return false;
1924 : }
1925 0 : if ((!(Read((&((v__)->start())), msg__, iter__)))) {
1926 0 : FatalError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
1927 0 : return false;
1928 : }
1929 : // Sentinel = 'start'
1930 0 : if ((!((msg__)->ReadSentinel(iter__, 2088644401)))) {
1931 0 : mozilla::ipc::SentinelReadError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
1932 0 : return false;
1933 : }
1934 0 : if ((!(Read((&((v__)->length())), msg__, iter__)))) {
1935 0 : FatalError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
1936 0 : return false;
1937 : }
1938 : // Sentinel = 'length'
1939 0 : if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
1940 0 : mozilla::ipc::SentinelReadError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
1941 0 : return false;
1942 : }
1943 0 : if ((!(Read((&((v__)->curPos())), msg__, iter__)))) {
1944 0 : FatalError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
1945 0 : return false;
1946 : }
1947 : // Sentinel = 'curPos'
1948 0 : if ((!((msg__)->ReadSentinel(iter__, 4042140974)))) {
1949 0 : mozilla::ipc::SentinelReadError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
1950 0 : return false;
1951 : }
1952 0 : if ((!(Read((&((v__)->closed())), msg__, iter__)))) {
1953 0 : FatalError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
1954 0 : return false;
1955 : }
1956 : // Sentinel = 'closed'
1957 0 : if ((!((msg__)->ReadSentinel(iter__, 561249462)))) {
1958 0 : mozilla::ipc::SentinelReadError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
1959 0 : return false;
1960 : }
1961 0 : return true;
1962 : }
1963 :
1964 0 : auto PCacheOpChild::Write(
1965 : const IPCRemoteStreamType& v__,
1966 : Message* msg__) -> void
1967 : {
1968 : typedef IPCRemoteStreamType type__;
1969 0 : Write(int((v__).type()), msg__);
1970 : // Sentinel = 'IPCRemoteStreamType'
1971 0 : (msg__)->WriteSentinel(391674895);
1972 :
1973 0 : switch ((v__).type()) {
1974 : case type__::TPChildToParentStreamParent:
1975 : {
1976 0 : FatalError("wrong side!");
1977 0 : return;
1978 : }
1979 : case type__::TPChildToParentStreamChild:
1980 : {
1981 0 : Write((v__).get_PChildToParentStreamChild(), msg__, false);
1982 : // Sentinel = 'TPChildToParentStreamChild'
1983 0 : (msg__)->WriteSentinel(1882094295);
1984 0 : return;
1985 : }
1986 : case type__::TPParentToChildStreamParent:
1987 : {
1988 0 : FatalError("wrong side!");
1989 0 : return;
1990 : }
1991 : case type__::TPParentToChildStreamChild:
1992 : {
1993 0 : Write((v__).get_PParentToChildStreamChild(), msg__, false);
1994 : // Sentinel = 'TPParentToChildStreamChild'
1995 0 : (msg__)->WriteSentinel(190098493);
1996 0 : return;
1997 : }
1998 : default:
1999 : {
2000 0 : FatalError("unknown union type");
2001 0 : return;
2002 : }
2003 : }
2004 : }
2005 :
2006 0 : auto PCacheOpChild::Read(
2007 : IPCRemoteStreamType* v__,
2008 : const Message* msg__,
2009 : PickleIterator* iter__) -> bool
2010 : {
2011 : typedef IPCRemoteStreamType type__;
2012 : int type;
2013 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2014 0 : mozilla::ipc::UnionTypeReadError("IPCRemoteStreamType");
2015 0 : return false;
2016 : }
2017 : // Sentinel = 'IPCRemoteStreamType'
2018 0 : if ((!((msg__)->ReadSentinel(iter__, 391674895)))) {
2019 0 : mozilla::ipc::SentinelReadError("IPCRemoteStreamType");
2020 0 : return false;
2021 : }
2022 :
2023 0 : switch (type) {
2024 : case type__::TPChildToParentStreamParent:
2025 : {
2026 0 : PChildToParentStreamChild* tmp = nullptr;
2027 0 : (*(v__)) = tmp;
2028 0 : if ((!(Read((&((v__)->get_PChildToParentStreamChild())), msg__, iter__, false)))) {
2029 0 : FatalError("Error deserializing Union type");
2030 0 : return false;
2031 : }
2032 : // Sentinel = 'TPChildToParentStreamParent'
2033 0 : if ((!((msg__)->ReadSentinel(iter__, 2724777622)))) {
2034 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2035 0 : return false;
2036 : }
2037 0 : return true;
2038 : }
2039 : case type__::TPChildToParentStreamChild:
2040 : {
2041 0 : return false;
2042 : }
2043 : case type__::TPParentToChildStreamParent:
2044 : {
2045 0 : PParentToChildStreamChild* tmp = nullptr;
2046 0 : (*(v__)) = tmp;
2047 0 : if ((!(Read((&((v__)->get_PParentToChildStreamChild())), msg__, iter__, false)))) {
2048 0 : FatalError("Error deserializing Union type");
2049 0 : return false;
2050 : }
2051 : // Sentinel = 'TPParentToChildStreamParent'
2052 0 : if ((!((msg__)->ReadSentinel(iter__, 3335986876)))) {
2053 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2054 0 : return false;
2055 : }
2056 0 : return true;
2057 : }
2058 : case type__::TPParentToChildStreamChild:
2059 : {
2060 0 : return false;
2061 : }
2062 : default:
2063 : {
2064 0 : FatalError("unknown union type");
2065 0 : return false;
2066 : }
2067 : }
2068 : }
2069 :
2070 0 : auto PCacheOpChild::Write(
2071 : const CacheResponseOrVoid& v__,
2072 : Message* msg__) -> void
2073 : {
2074 : typedef CacheResponseOrVoid type__;
2075 0 : Write(int((v__).type()), msg__);
2076 : // Sentinel = 'CacheResponseOrVoid'
2077 0 : (msg__)->WriteSentinel(677833865);
2078 :
2079 0 : switch ((v__).type()) {
2080 : case type__::Tvoid_t:
2081 : {
2082 0 : Write((v__).get_void_t(), msg__);
2083 : // Sentinel = 'Tvoid_t'
2084 0 : (msg__)->WriteSentinel(3041273328);
2085 0 : return;
2086 : }
2087 : case type__::TCacheResponse:
2088 : {
2089 0 : Write((v__).get_CacheResponse(), msg__);
2090 : // Sentinel = 'TCacheResponse'
2091 0 : (msg__)->WriteSentinel(4125348877);
2092 0 : return;
2093 : }
2094 : default:
2095 : {
2096 0 : FatalError("unknown union type");
2097 0 : return;
2098 : }
2099 : }
2100 : }
2101 :
2102 0 : auto PCacheOpChild::Read(
2103 : CacheResponseOrVoid* v__,
2104 : const Message* msg__,
2105 : PickleIterator* iter__) -> bool
2106 : {
2107 : typedef CacheResponseOrVoid type__;
2108 : int type;
2109 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2110 0 : mozilla::ipc::UnionTypeReadError("CacheResponseOrVoid");
2111 0 : return false;
2112 : }
2113 : // Sentinel = 'CacheResponseOrVoid'
2114 0 : if ((!((msg__)->ReadSentinel(iter__, 677833865)))) {
2115 0 : mozilla::ipc::SentinelReadError("CacheResponseOrVoid");
2116 0 : return false;
2117 : }
2118 :
2119 0 : switch (type) {
2120 : case type__::Tvoid_t:
2121 : {
2122 : void_t tmp = void_t();
2123 0 : (*(v__)) = tmp;
2124 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
2125 0 : FatalError("Error deserializing Union type");
2126 0 : return false;
2127 : }
2128 : // Sentinel = 'Tvoid_t'
2129 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
2130 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2131 0 : return false;
2132 : }
2133 0 : return true;
2134 : }
2135 : case type__::TCacheResponse:
2136 : {
2137 0 : CacheResponse tmp = CacheResponse();
2138 0 : (*(v__)) = tmp;
2139 0 : if ((!(Read((&((v__)->get_CacheResponse())), msg__, iter__)))) {
2140 0 : FatalError("Error deserializing Union type");
2141 0 : return false;
2142 : }
2143 : // Sentinel = 'TCacheResponse'
2144 0 : if ((!((msg__)->ReadSentinel(iter__, 4125348877)))) {
2145 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2146 0 : return false;
2147 : }
2148 0 : return true;
2149 : }
2150 : default:
2151 : {
2152 0 : FatalError("unknown union type");
2153 0 : return false;
2154 : }
2155 : }
2156 : }
2157 :
2158 0 : auto PCacheOpChild::Write(
2159 : const TemporaryFileInputStreamParams& v__,
2160 : Message* msg__) -> void
2161 : {
2162 0 : Write((v__).fileDescriptorIndex(), msg__);
2163 : // Sentinel = 'fileDescriptorIndex'
2164 0 : (msg__)->WriteSentinel(587329112);
2165 0 : Write((v__).startPos(), msg__);
2166 : // Sentinel = 'startPos'
2167 0 : (msg__)->WriteSentinel(557207962);
2168 0 : Write((v__).endPos(), msg__);
2169 : // Sentinel = 'endPos'
2170 0 : (msg__)->WriteSentinel(881536245);
2171 0 : }
2172 :
2173 0 : auto PCacheOpChild::Read(
2174 : TemporaryFileInputStreamParams* v__,
2175 : const Message* msg__,
2176 : PickleIterator* iter__) -> bool
2177 : {
2178 0 : if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
2179 0 : FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
2180 0 : return false;
2181 : }
2182 : // Sentinel = 'fileDescriptorIndex'
2183 0 : if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
2184 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
2185 0 : return false;
2186 : }
2187 0 : if ((!(Read((&((v__)->startPos())), msg__, iter__)))) {
2188 0 : FatalError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
2189 0 : return false;
2190 : }
2191 : // Sentinel = 'startPos'
2192 0 : if ((!((msg__)->ReadSentinel(iter__, 557207962)))) {
2193 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
2194 0 : return false;
2195 : }
2196 0 : if ((!(Read((&((v__)->endPos())), msg__, iter__)))) {
2197 0 : FatalError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
2198 0 : return false;
2199 : }
2200 : // Sentinel = 'endPos'
2201 0 : if ((!((msg__)->ReadSentinel(iter__, 881536245)))) {
2202 0 : mozilla::ipc::SentinelReadError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
2203 0 : return false;
2204 : }
2205 0 : return true;
2206 : }
2207 :
2208 0 : auto PCacheOpChild::Write(
2209 : const MIMEInputStreamParams& v__,
2210 : Message* msg__) -> void
2211 : {
2212 0 : Write((v__).optionalStream(), msg__);
2213 : // Sentinel = 'optionalStream'
2214 0 : (msg__)->WriteSentinel(1003718562);
2215 0 : Write((v__).headers(), msg__);
2216 : // Sentinel = 'headers'
2217 0 : (msg__)->WriteSentinel(4284175217);
2218 0 : Write((v__).startedReading(), msg__);
2219 : // Sentinel = 'startedReading'
2220 0 : (msg__)->WriteSentinel(1906875903);
2221 0 : }
2222 :
2223 0 : auto PCacheOpChild::Read(
2224 : MIMEInputStreamParams* v__,
2225 : const Message* msg__,
2226 : PickleIterator* iter__) -> bool
2227 : {
2228 0 : if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
2229 0 : FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
2230 0 : return false;
2231 : }
2232 : // Sentinel = 'optionalStream'
2233 0 : if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
2234 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
2235 0 : return false;
2236 : }
2237 0 : if ((!(Read((&((v__)->headers())), msg__, iter__)))) {
2238 0 : FatalError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
2239 0 : return false;
2240 : }
2241 : // Sentinel = 'headers'
2242 0 : if ((!((msg__)->ReadSentinel(iter__, 4284175217)))) {
2243 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
2244 0 : return false;
2245 : }
2246 0 : if ((!(Read((&((v__)->startedReading())), msg__, iter__)))) {
2247 0 : FatalError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
2248 0 : return false;
2249 : }
2250 : // Sentinel = 'startedReading'
2251 0 : if ((!((msg__)->ReadSentinel(iter__, 1906875903)))) {
2252 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
2253 0 : return false;
2254 : }
2255 0 : return true;
2256 : }
2257 :
2258 0 : auto PCacheOpChild::Write(
2259 : const PCacheOpChild* v__,
2260 : Message* msg__,
2261 : bool nullable__) -> void
2262 : {
2263 : int32_t id;
2264 0 : if ((!(v__))) {
2265 0 : if ((!(nullable__))) {
2266 0 : FatalError("NULL actor value passed to non-nullable param");
2267 : }
2268 0 : id = 0;
2269 : }
2270 : else {
2271 0 : id = (v__)->Id();
2272 0 : if ((1) == (id)) {
2273 0 : FatalError("actor has been |delete|d");
2274 : }
2275 : }
2276 :
2277 0 : Write(id, msg__);
2278 0 : }
2279 :
2280 0 : auto PCacheOpChild::Read(
2281 : PCacheOpChild** v__,
2282 : const Message* msg__,
2283 : PickleIterator* iter__,
2284 : bool nullable__) -> bool
2285 : {
2286 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PCacheOp", PCacheOpMsgStart);
2287 0 : if ((actor).isNothing()) {
2288 0 : return false;
2289 : }
2290 :
2291 0 : (*(v__)) = static_cast<PCacheOpChild*>((actor).value());
2292 0 : return true;
2293 : }
2294 :
2295 0 : auto PCacheOpChild::Write(
2296 : const InputStreamParams& v__,
2297 : Message* msg__) -> void
2298 : {
2299 : typedef InputStreamParams type__;
2300 0 : Write(int((v__).type()), msg__);
2301 : // Sentinel = 'InputStreamParams'
2302 0 : (msg__)->WriteSentinel(4114814015);
2303 :
2304 0 : switch ((v__).type()) {
2305 : case type__::TStringInputStreamParams:
2306 : {
2307 0 : Write((v__).get_StringInputStreamParams(), msg__);
2308 : // Sentinel = 'TStringInputStreamParams'
2309 0 : (msg__)->WriteSentinel(3395831651);
2310 0 : return;
2311 : }
2312 : case type__::TFileInputStreamParams:
2313 : {
2314 0 : Write((v__).get_FileInputStreamParams(), msg__);
2315 : // Sentinel = 'TFileInputStreamParams'
2316 0 : (msg__)->WriteSentinel(2543620282);
2317 0 : return;
2318 : }
2319 : case type__::TTemporaryFileInputStreamParams:
2320 : {
2321 0 : Write((v__).get_TemporaryFileInputStreamParams(), msg__);
2322 : // Sentinel = 'TTemporaryFileInputStreamParams'
2323 0 : (msg__)->WriteSentinel(587771548);
2324 0 : return;
2325 : }
2326 : case type__::TBufferedInputStreamParams:
2327 : {
2328 0 : Write((v__).get_BufferedInputStreamParams(), msg__);
2329 : // Sentinel = 'TBufferedInputStreamParams'
2330 0 : (msg__)->WriteSentinel(1698289307);
2331 0 : return;
2332 : }
2333 : case type__::TMIMEInputStreamParams:
2334 : {
2335 0 : Write((v__).get_MIMEInputStreamParams(), msg__);
2336 : // Sentinel = 'TMIMEInputStreamParams'
2337 0 : (msg__)->WriteSentinel(1948001964);
2338 0 : return;
2339 : }
2340 : case type__::TMultiplexInputStreamParams:
2341 : {
2342 0 : Write((v__).get_MultiplexInputStreamParams(), msg__);
2343 : // Sentinel = 'TMultiplexInputStreamParams'
2344 0 : (msg__)->WriteSentinel(3317853213);
2345 0 : return;
2346 : }
2347 : case type__::TSlicedInputStreamParams:
2348 : {
2349 0 : Write((v__).get_SlicedInputStreamParams(), msg__);
2350 : // Sentinel = 'TSlicedInputStreamParams'
2351 0 : (msg__)->WriteSentinel(445810472);
2352 0 : return;
2353 : }
2354 : case type__::TIPCBlobInputStreamParams:
2355 : {
2356 0 : Write((v__).get_IPCBlobInputStreamParams(), msg__);
2357 : // Sentinel = 'TIPCBlobInputStreamParams'
2358 0 : (msg__)->WriteSentinel(2436989998);
2359 0 : return;
2360 : }
2361 : default:
2362 : {
2363 0 : FatalError("unknown union type");
2364 0 : return;
2365 : }
2366 : }
2367 : }
2368 :
2369 0 : auto PCacheOpChild::Read(
2370 : InputStreamParams* v__,
2371 : const Message* msg__,
2372 : PickleIterator* iter__) -> bool
2373 : {
2374 : typedef InputStreamParams type__;
2375 : int type;
2376 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2377 0 : mozilla::ipc::UnionTypeReadError("InputStreamParams");
2378 0 : return false;
2379 : }
2380 : // Sentinel = 'InputStreamParams'
2381 0 : if ((!((msg__)->ReadSentinel(iter__, 4114814015)))) {
2382 0 : mozilla::ipc::SentinelReadError("InputStreamParams");
2383 0 : return false;
2384 : }
2385 :
2386 0 : switch (type) {
2387 : case type__::TStringInputStreamParams:
2388 : {
2389 0 : StringInputStreamParams tmp = StringInputStreamParams();
2390 0 : (*(v__)) = tmp;
2391 0 : if ((!(Read((&((v__)->get_StringInputStreamParams())), msg__, iter__)))) {
2392 0 : FatalError("Error deserializing Union type");
2393 0 : return false;
2394 : }
2395 : // Sentinel = 'TStringInputStreamParams'
2396 0 : if ((!((msg__)->ReadSentinel(iter__, 3395831651)))) {
2397 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2398 0 : return false;
2399 : }
2400 0 : return true;
2401 : }
2402 : case type__::TFileInputStreamParams:
2403 : {
2404 0 : FileInputStreamParams tmp = FileInputStreamParams();
2405 0 : (*(v__)) = tmp;
2406 0 : if ((!(Read((&((v__)->get_FileInputStreamParams())), msg__, iter__)))) {
2407 0 : FatalError("Error deserializing Union type");
2408 0 : return false;
2409 : }
2410 : // Sentinel = 'TFileInputStreamParams'
2411 0 : if ((!((msg__)->ReadSentinel(iter__, 2543620282)))) {
2412 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2413 0 : return false;
2414 : }
2415 0 : return true;
2416 : }
2417 : case type__::TTemporaryFileInputStreamParams:
2418 : {
2419 0 : TemporaryFileInputStreamParams tmp = TemporaryFileInputStreamParams();
2420 0 : (*(v__)) = tmp;
2421 0 : if ((!(Read((&((v__)->get_TemporaryFileInputStreamParams())), msg__, iter__)))) {
2422 0 : FatalError("Error deserializing Union type");
2423 0 : return false;
2424 : }
2425 : // Sentinel = 'TTemporaryFileInputStreamParams'
2426 0 : if ((!((msg__)->ReadSentinel(iter__, 587771548)))) {
2427 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2428 0 : return false;
2429 : }
2430 0 : return true;
2431 : }
2432 : case type__::TBufferedInputStreamParams:
2433 : {
2434 0 : BufferedInputStreamParams tmp = BufferedInputStreamParams();
2435 0 : (*(v__)) = tmp;
2436 0 : if ((!(Read((&((v__)->get_BufferedInputStreamParams())), msg__, iter__)))) {
2437 0 : FatalError("Error deserializing Union type");
2438 0 : return false;
2439 : }
2440 : // Sentinel = 'TBufferedInputStreamParams'
2441 0 : if ((!((msg__)->ReadSentinel(iter__, 1698289307)))) {
2442 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2443 0 : return false;
2444 : }
2445 0 : return true;
2446 : }
2447 : case type__::TMIMEInputStreamParams:
2448 : {
2449 0 : MIMEInputStreamParams tmp = MIMEInputStreamParams();
2450 0 : (*(v__)) = tmp;
2451 0 : if ((!(Read((&((v__)->get_MIMEInputStreamParams())), msg__, iter__)))) {
2452 0 : FatalError("Error deserializing Union type");
2453 0 : return false;
2454 : }
2455 : // Sentinel = 'TMIMEInputStreamParams'
2456 0 : if ((!((msg__)->ReadSentinel(iter__, 1948001964)))) {
2457 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2458 0 : return false;
2459 : }
2460 0 : return true;
2461 : }
2462 : case type__::TMultiplexInputStreamParams:
2463 : {
2464 0 : MultiplexInputStreamParams tmp = MultiplexInputStreamParams();
2465 0 : (*(v__)) = tmp;
2466 0 : if ((!(Read((&((v__)->get_MultiplexInputStreamParams())), msg__, iter__)))) {
2467 0 : FatalError("Error deserializing Union type");
2468 0 : return false;
2469 : }
2470 : // Sentinel = 'TMultiplexInputStreamParams'
2471 0 : if ((!((msg__)->ReadSentinel(iter__, 3317853213)))) {
2472 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2473 0 : return false;
2474 : }
2475 0 : return true;
2476 : }
2477 : case type__::TSlicedInputStreamParams:
2478 : {
2479 0 : SlicedInputStreamParams tmp = SlicedInputStreamParams();
2480 0 : (*(v__)) = tmp;
2481 0 : if ((!(Read((&((v__)->get_SlicedInputStreamParams())), msg__, iter__)))) {
2482 0 : FatalError("Error deserializing Union type");
2483 0 : return false;
2484 : }
2485 : // Sentinel = 'TSlicedInputStreamParams'
2486 0 : if ((!((msg__)->ReadSentinel(iter__, 445810472)))) {
2487 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2488 0 : return false;
2489 : }
2490 0 : return true;
2491 : }
2492 : case type__::TIPCBlobInputStreamParams:
2493 : {
2494 0 : IPCBlobInputStreamParams tmp = IPCBlobInputStreamParams();
2495 0 : (*(v__)) = tmp;
2496 0 : if ((!(Read((&((v__)->get_IPCBlobInputStreamParams())), msg__, iter__)))) {
2497 0 : FatalError("Error deserializing Union type");
2498 0 : return false;
2499 : }
2500 : // Sentinel = 'TIPCBlobInputStreamParams'
2501 0 : if ((!((msg__)->ReadSentinel(iter__, 2436989998)))) {
2502 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2503 0 : return false;
2504 : }
2505 0 : return true;
2506 : }
2507 : default:
2508 : {
2509 0 : FatalError("unknown union type");
2510 0 : return false;
2511 : }
2512 : }
2513 : }
2514 :
2515 0 : auto PCacheOpChild::Write(
2516 : const PParentToChildStreamChild* v__,
2517 : Message* msg__,
2518 : bool nullable__) -> void
2519 : {
2520 : int32_t id;
2521 0 : if ((!(v__))) {
2522 0 : if ((!(nullable__))) {
2523 0 : FatalError("NULL actor value passed to non-nullable param");
2524 : }
2525 0 : id = 0;
2526 : }
2527 : else {
2528 0 : id = (v__)->Id();
2529 0 : if ((1) == (id)) {
2530 0 : FatalError("actor has been |delete|d");
2531 : }
2532 : }
2533 :
2534 0 : Write(id, msg__);
2535 0 : }
2536 :
2537 0 : auto PCacheOpChild::Read(
2538 : PParentToChildStreamChild** v__,
2539 : const Message* msg__,
2540 : PickleIterator* iter__,
2541 : bool nullable__) -> bool
2542 : {
2543 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PParentToChildStream", PParentToChildStreamMsgStart);
2544 0 : if ((actor).isNothing()) {
2545 0 : return false;
2546 : }
2547 :
2548 0 : (*(v__)) = static_cast<PParentToChildStreamChild*>((actor).value());
2549 0 : return true;
2550 : }
2551 :
2552 0 : auto PCacheOpChild::Write(
2553 : const StorageMatchResult& v__,
2554 : Message* msg__) -> void
2555 : {
2556 0 : Write((v__).responseOrVoid(), msg__);
2557 : // Sentinel = 'responseOrVoid'
2558 0 : (msg__)->WriteSentinel(2034302742);
2559 0 : }
2560 :
2561 0 : auto PCacheOpChild::Read(
2562 : StorageMatchResult* v__,
2563 : const Message* msg__,
2564 : PickleIterator* iter__) -> bool
2565 : {
2566 0 : if ((!(Read((&((v__)->responseOrVoid())), msg__, iter__)))) {
2567 0 : FatalError("Error deserializing 'responseOrVoid' (CacheResponseOrVoid) member of 'StorageMatchResult'");
2568 0 : return false;
2569 : }
2570 : // Sentinel = 'responseOrVoid'
2571 0 : if ((!((msg__)->ReadSentinel(iter__, 2034302742)))) {
2572 0 : mozilla::ipc::SentinelReadError("Error deserializing 'responseOrVoid' (CacheResponseOrVoid) member of 'StorageMatchResult'");
2573 0 : return false;
2574 : }
2575 0 : return true;
2576 : }
2577 :
2578 0 : auto PCacheOpChild::Write(
2579 : const StorageOpenResult& v__,
2580 : Message* msg__) -> void
2581 : {
2582 : // skipping actor field that's meaningless on this side
2583 0 : Write((v__).actorChild(), msg__, true);
2584 : // Sentinel = 'actor'
2585 0 : (msg__)->WriteSentinel(875202478);
2586 0 : }
2587 :
2588 0 : auto PCacheOpChild::Read(
2589 : StorageOpenResult* v__,
2590 : const Message* msg__,
2591 : PickleIterator* iter__) -> bool
2592 : {
2593 : // skipping actor field that's meaningless on this side
2594 0 : if ((!(Read((&((v__)->actorChild())), msg__, iter__, true)))) {
2595 0 : FatalError("Error deserializing 'actorChild' (PCache) member of 'StorageOpenResult'");
2596 0 : return false;
2597 : }
2598 : // Sentinel = 'actor'
2599 0 : if ((!((msg__)->ReadSentinel(iter__, 875202478)))) {
2600 0 : mozilla::ipc::SentinelReadError("Error deserializing 'actorChild' (PCache) member of 'StorageOpenResult'");
2601 0 : return false;
2602 : }
2603 0 : return true;
2604 : }
2605 :
2606 0 : auto PCacheOpChild::Write(
2607 : const IPCStream& v__,
2608 : Message* msg__) -> void
2609 : {
2610 : typedef IPCStream type__;
2611 0 : Write(int((v__).type()), msg__);
2612 : // Sentinel = 'IPCStream'
2613 0 : (msg__)->WriteSentinel(442610715);
2614 :
2615 0 : switch ((v__).type()) {
2616 : case type__::TInputStreamParamsWithFds:
2617 : {
2618 0 : Write((v__).get_InputStreamParamsWithFds(), msg__);
2619 : // Sentinel = 'TInputStreamParamsWithFds'
2620 0 : (msg__)->WriteSentinel(2170706066);
2621 0 : return;
2622 : }
2623 : case type__::TIPCRemoteStream:
2624 : {
2625 0 : Write((v__).get_IPCRemoteStream(), msg__);
2626 : // Sentinel = 'TIPCRemoteStream'
2627 0 : (msg__)->WriteSentinel(2978132448);
2628 0 : return;
2629 : }
2630 : default:
2631 : {
2632 0 : FatalError("unknown union type");
2633 0 : return;
2634 : }
2635 : }
2636 : }
2637 :
2638 0 : auto PCacheOpChild::Read(
2639 : IPCStream* v__,
2640 : const Message* msg__,
2641 : PickleIterator* iter__) -> bool
2642 : {
2643 : typedef IPCStream type__;
2644 : int type;
2645 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2646 0 : mozilla::ipc::UnionTypeReadError("IPCStream");
2647 0 : return false;
2648 : }
2649 : // Sentinel = 'IPCStream'
2650 0 : if ((!((msg__)->ReadSentinel(iter__, 442610715)))) {
2651 0 : mozilla::ipc::SentinelReadError("IPCStream");
2652 0 : return false;
2653 : }
2654 :
2655 0 : switch (type) {
2656 : case type__::TInputStreamParamsWithFds:
2657 : {
2658 0 : InputStreamParamsWithFds tmp = InputStreamParamsWithFds();
2659 0 : (*(v__)) = tmp;
2660 0 : if ((!(Read((&((v__)->get_InputStreamParamsWithFds())), msg__, iter__)))) {
2661 0 : FatalError("Error deserializing Union type");
2662 0 : return false;
2663 : }
2664 : // Sentinel = 'TInputStreamParamsWithFds'
2665 0 : if ((!((msg__)->ReadSentinel(iter__, 2170706066)))) {
2666 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2667 0 : return false;
2668 : }
2669 0 : return true;
2670 : }
2671 : case type__::TIPCRemoteStream:
2672 : {
2673 0 : IPCRemoteStream tmp = IPCRemoteStream();
2674 0 : (*(v__)) = tmp;
2675 0 : if ((!(Read((&((v__)->get_IPCRemoteStream())), msg__, iter__)))) {
2676 0 : FatalError("Error deserializing Union type");
2677 0 : return false;
2678 : }
2679 : // Sentinel = 'TIPCRemoteStream'
2680 0 : if ((!((msg__)->ReadSentinel(iter__, 2978132448)))) {
2681 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2682 0 : return false;
2683 : }
2684 0 : return true;
2685 : }
2686 : default:
2687 : {
2688 0 : FatalError("unknown union type");
2689 0 : return false;
2690 : }
2691 : }
2692 : }
2693 :
2694 0 : auto PCacheOpChild::Write(
2695 : const CacheReadStream& v__,
2696 : Message* msg__) -> void
2697 : {
2698 0 : Write((v__).id(), msg__);
2699 : // Sentinel = 'id'
2700 0 : (msg__)->WriteSentinel(2794505629);
2701 : // skipping actor field that's meaningless on this side
2702 0 : Write((v__).controlChild(), msg__, true);
2703 : // Sentinel = 'control'
2704 0 : (msg__)->WriteSentinel(2785524096);
2705 0 : Write((v__).stream(), msg__);
2706 : // Sentinel = 'stream'
2707 0 : (msg__)->WriteSentinel(4152748422);
2708 0 : }
2709 :
2710 0 : auto PCacheOpChild::Read(
2711 : CacheReadStream* v__,
2712 : const Message* msg__,
2713 : PickleIterator* iter__) -> bool
2714 : {
2715 0 : if ((!(Read((&((v__)->id())), msg__, iter__)))) {
2716 0 : FatalError("Error deserializing 'id' (nsID) member of 'CacheReadStream'");
2717 0 : return false;
2718 : }
2719 : // Sentinel = 'id'
2720 0 : if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
2721 0 : mozilla::ipc::SentinelReadError("Error deserializing 'id' (nsID) member of 'CacheReadStream'");
2722 0 : return false;
2723 : }
2724 : // skipping actor field that's meaningless on this side
2725 0 : if ((!(Read((&((v__)->controlChild())), msg__, iter__, true)))) {
2726 0 : FatalError("Error deserializing 'controlChild' (PCacheStreamControl) member of 'CacheReadStream'");
2727 0 : return false;
2728 : }
2729 : // Sentinel = 'control'
2730 0 : if ((!((msg__)->ReadSentinel(iter__, 2785524096)))) {
2731 0 : mozilla::ipc::SentinelReadError("Error deserializing 'controlChild' (PCacheStreamControl) member of 'CacheReadStream'");
2732 0 : return false;
2733 : }
2734 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
2735 0 : FatalError("Error deserializing 'stream' (IPCStream) member of 'CacheReadStream'");
2736 0 : return false;
2737 : }
2738 : // Sentinel = 'stream'
2739 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
2740 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (IPCStream) member of 'CacheReadStream'");
2741 0 : return false;
2742 : }
2743 0 : return true;
2744 : }
2745 :
2746 0 : auto PCacheOpChild::Write(
2747 : const StringInputStreamParams& v__,
2748 : Message* msg__) -> void
2749 : {
2750 0 : Write((v__).data(), msg__);
2751 : // Sentinel = 'data'
2752 0 : (msg__)->WriteSentinel(843352540);
2753 0 : }
2754 :
2755 0 : auto PCacheOpChild::Read(
2756 : StringInputStreamParams* v__,
2757 : const Message* msg__,
2758 : PickleIterator* iter__) -> bool
2759 : {
2760 0 : if ((!(Read((&((v__)->data())), msg__, iter__)))) {
2761 0 : FatalError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
2762 0 : return false;
2763 : }
2764 : // Sentinel = 'data'
2765 0 : if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
2766 0 : mozilla::ipc::SentinelReadError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
2767 0 : return false;
2768 : }
2769 0 : return true;
2770 : }
2771 :
2772 0 : auto PCacheOpChild::Write(
2773 : const HeadersEntry& v__,
2774 : Message* msg__) -> void
2775 : {
2776 0 : Write((v__).name(), msg__);
2777 : // Sentinel = 'name'
2778 0 : (msg__)->WriteSentinel(15034981);
2779 0 : Write((v__).value(), msg__);
2780 : // Sentinel = 'value'
2781 0 : (msg__)->WriteSentinel(3456818542);
2782 0 : }
2783 :
2784 0 : auto PCacheOpChild::Read(
2785 : HeadersEntry* v__,
2786 : const Message* msg__,
2787 : PickleIterator* iter__) -> bool
2788 : {
2789 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
2790 0 : FatalError("Error deserializing 'name' (nsCString) member of 'HeadersEntry'");
2791 0 : return false;
2792 : }
2793 : // Sentinel = 'name'
2794 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
2795 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'HeadersEntry'");
2796 0 : return false;
2797 : }
2798 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
2799 0 : FatalError("Error deserializing 'value' (nsCString) member of 'HeadersEntry'");
2800 0 : return false;
2801 : }
2802 : // Sentinel = 'value'
2803 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
2804 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'HeadersEntry'");
2805 0 : return false;
2806 : }
2807 0 : return true;
2808 : }
2809 :
2810 0 : auto PCacheOpChild::Write(
2811 : const CachePutAllResult& v__,
2812 : Message* msg__) -> void
2813 : {
2814 0 : }
2815 :
2816 0 : auto PCacheOpChild::Read(
2817 : CachePutAllResult* v__,
2818 : const Message* msg__,
2819 : PickleIterator* iter__) -> bool
2820 : {
2821 0 : return true;
2822 : }
2823 :
2824 0 : auto PCacheOpChild::Write(
2825 : const MultiplexInputStreamParams& v__,
2826 : Message* msg__) -> void
2827 : {
2828 0 : Write((v__).streams(), msg__);
2829 : // Sentinel = 'streams'
2830 0 : (msg__)->WriteSentinel(4240383220);
2831 0 : Write((v__).currentStream(), msg__);
2832 : // Sentinel = 'currentStream'
2833 0 : (msg__)->WriteSentinel(682778074);
2834 0 : Write((v__).status(), msg__);
2835 : // Sentinel = 'status'
2836 0 : (msg__)->WriteSentinel(3714608576);
2837 0 : Write((v__).startedReadingCurrent(), msg__);
2838 : // Sentinel = 'startedReadingCurrent'
2839 0 : (msg__)->WriteSentinel(970542033);
2840 0 : }
2841 :
2842 0 : auto PCacheOpChild::Read(
2843 : MultiplexInputStreamParams* v__,
2844 : const Message* msg__,
2845 : PickleIterator* iter__) -> bool
2846 : {
2847 0 : if ((!(Read((&((v__)->streams())), msg__, iter__)))) {
2848 0 : FatalError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
2849 0 : return false;
2850 : }
2851 : // Sentinel = 'streams'
2852 0 : if ((!((msg__)->ReadSentinel(iter__, 4240383220)))) {
2853 0 : mozilla::ipc::SentinelReadError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
2854 0 : return false;
2855 : }
2856 0 : if ((!(Read((&((v__)->currentStream())), msg__, iter__)))) {
2857 0 : FatalError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
2858 0 : return false;
2859 : }
2860 : // Sentinel = 'currentStream'
2861 0 : if ((!((msg__)->ReadSentinel(iter__, 682778074)))) {
2862 0 : mozilla::ipc::SentinelReadError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
2863 0 : return false;
2864 : }
2865 0 : if ((!(Read((&((v__)->status())), msg__, iter__)))) {
2866 0 : FatalError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
2867 0 : return false;
2868 : }
2869 : // Sentinel = 'status'
2870 0 : if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
2871 0 : mozilla::ipc::SentinelReadError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
2872 0 : return false;
2873 : }
2874 0 : if ((!(Read((&((v__)->startedReadingCurrent())), msg__, iter__)))) {
2875 0 : FatalError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
2876 0 : return false;
2877 : }
2878 : // Sentinel = 'startedReadingCurrent'
2879 0 : if ((!((msg__)->ReadSentinel(iter__, 970542033)))) {
2880 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
2881 0 : return false;
2882 : }
2883 0 : return true;
2884 : }
2885 :
2886 0 : auto PCacheOpChild::Write(
2887 : const PFileDescriptorSetChild* v__,
2888 : Message* msg__,
2889 : bool nullable__) -> void
2890 : {
2891 : int32_t id;
2892 0 : if ((!(v__))) {
2893 0 : if ((!(nullable__))) {
2894 0 : FatalError("NULL actor value passed to non-nullable param");
2895 : }
2896 0 : id = 0;
2897 : }
2898 : else {
2899 0 : id = (v__)->Id();
2900 0 : if ((1) == (id)) {
2901 0 : FatalError("actor has been |delete|d");
2902 : }
2903 : }
2904 :
2905 0 : Write(id, msg__);
2906 0 : }
2907 :
2908 0 : auto PCacheOpChild::Read(
2909 : PFileDescriptorSetChild** v__,
2910 : const Message* msg__,
2911 : PickleIterator* iter__,
2912 : bool nullable__) -> bool
2913 : {
2914 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PFileDescriptorSet", PFileDescriptorSetMsgStart);
2915 0 : if ((actor).isNothing()) {
2916 0 : return false;
2917 : }
2918 :
2919 0 : (*(v__)) = static_cast<PFileDescriptorSetChild*>((actor).value());
2920 0 : return true;
2921 : }
2922 :
2923 0 : auto PCacheOpChild::Write(
2924 : const OptionalFileDescriptorSet& v__,
2925 : Message* msg__) -> void
2926 : {
2927 : typedef OptionalFileDescriptorSet type__;
2928 0 : Write(int((v__).type()), msg__);
2929 : // Sentinel = 'OptionalFileDescriptorSet'
2930 0 : (msg__)->WriteSentinel(955222862);
2931 :
2932 0 : switch ((v__).type()) {
2933 : case type__::TPFileDescriptorSetParent:
2934 : {
2935 0 : FatalError("wrong side!");
2936 0 : return;
2937 : }
2938 : case type__::TPFileDescriptorSetChild:
2939 : {
2940 0 : Write((v__).get_PFileDescriptorSetChild(), msg__, false);
2941 : // Sentinel = 'TPFileDescriptorSetChild'
2942 0 : (msg__)->WriteSentinel(3477929935);
2943 0 : return;
2944 : }
2945 : case type__::TArrayOfFileDescriptor:
2946 : {
2947 0 : Write((v__).get_ArrayOfFileDescriptor(), msg__);
2948 : // Sentinel = 'TArrayOfFileDescriptor'
2949 0 : (msg__)->WriteSentinel(2366096715);
2950 0 : return;
2951 : }
2952 : case type__::Tvoid_t:
2953 : {
2954 0 : Write((v__).get_void_t(), msg__);
2955 : // Sentinel = 'Tvoid_t'
2956 0 : (msg__)->WriteSentinel(3041273328);
2957 0 : return;
2958 : }
2959 : default:
2960 : {
2961 0 : FatalError("unknown union type");
2962 0 : return;
2963 : }
2964 : }
2965 : }
2966 :
2967 0 : auto PCacheOpChild::Read(
2968 : OptionalFileDescriptorSet* v__,
2969 : const Message* msg__,
2970 : PickleIterator* iter__) -> bool
2971 : {
2972 : typedef OptionalFileDescriptorSet type__;
2973 : int type;
2974 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2975 0 : mozilla::ipc::UnionTypeReadError("OptionalFileDescriptorSet");
2976 0 : return false;
2977 : }
2978 : // Sentinel = 'OptionalFileDescriptorSet'
2979 0 : if ((!((msg__)->ReadSentinel(iter__, 955222862)))) {
2980 0 : mozilla::ipc::SentinelReadError("OptionalFileDescriptorSet");
2981 0 : return false;
2982 : }
2983 :
2984 0 : switch (type) {
2985 : case type__::TPFileDescriptorSetParent:
2986 : {
2987 0 : PFileDescriptorSetChild* tmp = nullptr;
2988 0 : (*(v__)) = tmp;
2989 0 : if ((!(Read((&((v__)->get_PFileDescriptorSetChild())), msg__, iter__, false)))) {
2990 0 : FatalError("Error deserializing Union type");
2991 0 : return false;
2992 : }
2993 : // Sentinel = 'TPFileDescriptorSetParent'
2994 0 : if ((!((msg__)->ReadSentinel(iter__, 143041934)))) {
2995 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2996 0 : return false;
2997 : }
2998 0 : return true;
2999 : }
3000 : case type__::TPFileDescriptorSetChild:
3001 : {
3002 0 : return false;
3003 : }
3004 : case type__::TArrayOfFileDescriptor:
3005 : {
3006 0 : nsTArray<FileDescriptor> tmp;
3007 0 : (*(v__)) = tmp;
3008 0 : if ((!(Read((&((v__)->get_ArrayOfFileDescriptor())), msg__, iter__)))) {
3009 0 : FatalError("Error deserializing Union type");
3010 0 : return false;
3011 : }
3012 : // Sentinel = 'TArrayOfFileDescriptor'
3013 0 : if ((!((msg__)->ReadSentinel(iter__, 2366096715)))) {
3014 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3015 0 : return false;
3016 : }
3017 0 : return true;
3018 : }
3019 : case type__::Tvoid_t:
3020 : {
3021 : void_t tmp = void_t();
3022 0 : (*(v__)) = tmp;
3023 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
3024 0 : FatalError("Error deserializing Union type");
3025 0 : return false;
3026 : }
3027 : // Sentinel = 'Tvoid_t'
3028 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
3029 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3030 0 : return false;
3031 : }
3032 0 : return true;
3033 : }
3034 : default:
3035 : {
3036 0 : FatalError("unknown union type");
3037 0 : return false;
3038 : }
3039 : }
3040 : }
3041 :
3042 0 : auto PCacheOpChild::Write(
3043 : const StorageHasResult& v__,
3044 : Message* msg__) -> void
3045 : {
3046 0 : Write((v__).success(), msg__);
3047 : // Sentinel = 'success'
3048 0 : (msg__)->WriteSentinel(3877396070);
3049 0 : }
3050 :
3051 0 : auto PCacheOpChild::Read(
3052 : StorageHasResult* v__,
3053 : const Message* msg__,
3054 : PickleIterator* iter__) -> bool
3055 : {
3056 0 : if ((!(Read((&((v__)->success())), msg__, iter__)))) {
3057 0 : FatalError("Error deserializing 'success' (bool) member of 'StorageHasResult'");
3058 0 : return false;
3059 : }
3060 : // Sentinel = 'success'
3061 0 : if ((!((msg__)->ReadSentinel(iter__, 3877396070)))) {
3062 0 : mozilla::ipc::SentinelReadError("Error deserializing 'success' (bool) member of 'StorageHasResult'");
3063 0 : return false;
3064 : }
3065 0 : return true;
3066 : }
3067 :
3068 0 : auto PCacheOpChild::Write(
3069 : const nsTArray<HeadersEntry>& v__,
3070 : Message* msg__) -> void
3071 : {
3072 0 : uint32_t length = (v__).Length();
3073 0 : Write(length, msg__);
3074 : // Sentinel = ('length', 'HeadersEntry[]')
3075 0 : (msg__)->WriteSentinel(2248834657);
3076 :
3077 0 : for (auto& elem : v__) {
3078 0 : Write(elem, msg__);
3079 : // Sentinel = 'HeadersEntry[]'
3080 0 : (msg__)->WriteSentinel(732413696);
3081 : }
3082 0 : }
3083 :
3084 0 : auto PCacheOpChild::Read(
3085 : nsTArray<HeadersEntry>* v__,
3086 : const Message* msg__,
3087 : PickleIterator* iter__) -> bool
3088 : {
3089 0 : nsTArray<HeadersEntry> fa;
3090 : uint32_t length;
3091 0 : if ((!(Read((&(length)), msg__, iter__)))) {
3092 0 : mozilla::ipc::ArrayLengthReadError("HeadersEntry[]");
3093 0 : return false;
3094 : }
3095 : // Sentinel = ('length', 'HeadersEntry[]')
3096 0 : if ((!((msg__)->ReadSentinel(iter__, 2248834657)))) {
3097 0 : mozilla::ipc::SentinelReadError("HeadersEntry[]");
3098 0 : return false;
3099 : }
3100 :
3101 0 : HeadersEntry* elems = (fa).AppendElements(length);
3102 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
3103 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
3104 0 : FatalError("Error deserializing 'HeadersEntry[i]'");
3105 0 : return false;
3106 : }
3107 : // Sentinel = 'HeadersEntry[]'
3108 0 : if ((!((msg__)->ReadSentinel(iter__, 732413696)))) {
3109 0 : mozilla::ipc::SentinelReadError("Error deserializing 'HeadersEntry[i]'");
3110 0 : return false;
3111 : }
3112 : }
3113 0 : (v__)->SwapElements(fa);
3114 0 : return true;
3115 : }
3116 :
3117 0 : auto PCacheOpChild::Write(
3118 : const nsTArray<PrincipalInfo>& v__,
3119 : Message* msg__) -> void
3120 : {
3121 0 : uint32_t length = (v__).Length();
3122 0 : Write(length, msg__);
3123 : // Sentinel = ('length', 'PrincipalInfo[]')
3124 0 : (msg__)->WriteSentinel(1032188126);
3125 :
3126 0 : for (auto& elem : v__) {
3127 0 : Write(elem, msg__);
3128 : // Sentinel = 'PrincipalInfo[]'
3129 0 : (msg__)->WriteSentinel(413380193);
3130 : }
3131 0 : }
3132 :
3133 0 : auto PCacheOpChild::Read(
3134 : nsTArray<PrincipalInfo>* v__,
3135 : const Message* msg__,
3136 : PickleIterator* iter__) -> bool
3137 : {
3138 0 : nsTArray<PrincipalInfo> fa;
3139 : uint32_t length;
3140 0 : if ((!(Read((&(length)), msg__, iter__)))) {
3141 0 : mozilla::ipc::ArrayLengthReadError("PrincipalInfo[]");
3142 0 : return false;
3143 : }
3144 : // Sentinel = ('length', 'PrincipalInfo[]')
3145 0 : if ((!((msg__)->ReadSentinel(iter__, 1032188126)))) {
3146 0 : mozilla::ipc::SentinelReadError("PrincipalInfo[]");
3147 0 : return false;
3148 : }
3149 :
3150 0 : PrincipalInfo* elems = (fa).AppendElements(length);
3151 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
3152 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
3153 0 : FatalError("Error deserializing 'PrincipalInfo[i]'");
3154 0 : return false;
3155 : }
3156 : // Sentinel = 'PrincipalInfo[]'
3157 0 : if ((!((msg__)->ReadSentinel(iter__, 413380193)))) {
3158 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo[i]'");
3159 0 : return false;
3160 : }
3161 : }
3162 0 : (v__)->SwapElements(fa);
3163 0 : return true;
3164 : }
3165 :
3166 0 : auto PCacheOpChild::Write(
3167 : const FileDescriptor& v__,
3168 : Message* msg__) -> void
3169 : {
3170 0 : FileDescriptor::PickleType pfd = (v__).ShareTo(FileDescriptor::IPDLPrivate(), OtherPid());
3171 0 : IPC::WriteParam(msg__, pfd);
3172 0 : }
3173 :
3174 0 : auto PCacheOpChild::Read(
3175 : FileDescriptor* v__,
3176 : const Message* msg__,
3177 : PickleIterator* iter__) -> bool
3178 : {
3179 0 : FileDescriptor::PickleType pfd;
3180 0 : if ((!(IPC::ReadParam(msg__, iter__, (&(pfd)))))) {
3181 0 : return false;
3182 : }
3183 :
3184 0 : FileDescriptor fd = FileDescriptor(FileDescriptor::IPDLPrivate(), pfd);
3185 0 : if ((!((fd).IsValid()))) {
3186 0 : mozilla::ipc::ProtocolErrorBreakpoint("[PCacheOpChild] Received an invalid file descriptor!");
3187 : }
3188 :
3189 0 : (*(v__)) = fd;
3190 0 : return true;
3191 : }
3192 :
3193 0 : auto PCacheOpChild::Write(
3194 : const BufferedInputStreamParams& v__,
3195 : Message* msg__) -> void
3196 : {
3197 0 : Write((v__).optionalStream(), msg__);
3198 : // Sentinel = 'optionalStream'
3199 0 : (msg__)->WriteSentinel(1003718562);
3200 0 : Write((v__).bufferSize(), msg__);
3201 : // Sentinel = 'bufferSize'
3202 0 : (msg__)->WriteSentinel(3444538779);
3203 0 : }
3204 :
3205 0 : auto PCacheOpChild::Read(
3206 : BufferedInputStreamParams* v__,
3207 : const Message* msg__,
3208 : PickleIterator* iter__) -> bool
3209 : {
3210 0 : if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
3211 0 : FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
3212 0 : return false;
3213 : }
3214 : // Sentinel = 'optionalStream'
3215 0 : if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
3216 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
3217 0 : return false;
3218 : }
3219 0 : if ((!(Read((&((v__)->bufferSize())), msg__, iter__)))) {
3220 0 : FatalError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
3221 0 : return false;
3222 : }
3223 : // Sentinel = 'bufferSize'
3224 0 : if ((!((msg__)->ReadSentinel(iter__, 3444538779)))) {
3225 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
3226 0 : return false;
3227 : }
3228 0 : return true;
3229 : }
3230 :
3231 0 : auto PCacheOpChild::Write(
3232 : const HeaderEntry& v__,
3233 : Message* msg__) -> void
3234 : {
3235 0 : Write((v__).name(), msg__);
3236 : // Sentinel = 'name'
3237 0 : (msg__)->WriteSentinel(15034981);
3238 0 : Write((v__).value(), msg__);
3239 : // Sentinel = 'value'
3240 0 : (msg__)->WriteSentinel(3456818542);
3241 0 : }
3242 :
3243 0 : auto PCacheOpChild::Read(
3244 : HeaderEntry* v__,
3245 : const Message* msg__,
3246 : PickleIterator* iter__) -> bool
3247 : {
3248 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
3249 0 : FatalError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
3250 0 : return false;
3251 : }
3252 : // Sentinel = 'name'
3253 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
3254 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
3255 0 : return false;
3256 : }
3257 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
3258 0 : FatalError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
3259 0 : return false;
3260 : }
3261 : // Sentinel = 'value'
3262 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
3263 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
3264 0 : return false;
3265 : }
3266 0 : return true;
3267 : }
3268 :
3269 0 : auto PCacheOpChild::Write(
3270 : const IPCChannelInfo& v__,
3271 : Message* msg__) -> void
3272 : {
3273 0 : Write((v__).securityInfo(), msg__);
3274 : // Sentinel = 'securityInfo'
3275 0 : (msg__)->WriteSentinel(158838750);
3276 0 : }
3277 :
3278 0 : auto PCacheOpChild::Read(
3279 : IPCChannelInfo* v__,
3280 : const Message* msg__,
3281 : PickleIterator* iter__) -> bool
3282 : {
3283 0 : if ((!(Read((&((v__)->securityInfo())), msg__, iter__)))) {
3284 0 : FatalError("Error deserializing 'securityInfo' (nsCString) member of 'IPCChannelInfo'");
3285 0 : return false;
3286 : }
3287 : // Sentinel = 'securityInfo'
3288 0 : if ((!((msg__)->ReadSentinel(iter__, 158838750)))) {
3289 0 : mozilla::ipc::SentinelReadError("Error deserializing 'securityInfo' (nsCString) member of 'IPCChannelInfo'");
3290 0 : return false;
3291 : }
3292 0 : return true;
3293 : }
3294 :
3295 0 : auto PCacheOpChild::Write(
3296 : const ContentPrincipalInfo& v__,
3297 : Message* msg__) -> void
3298 : {
3299 0 : Write((v__).attrs(), msg__);
3300 : // Sentinel = 'attrs'
3301 0 : (msg__)->WriteSentinel(3014987797);
3302 0 : Write((v__).originNoSuffix(), msg__);
3303 : // Sentinel = 'originNoSuffix'
3304 0 : (msg__)->WriteSentinel(2833071422);
3305 0 : Write((v__).spec(), msg__);
3306 : // Sentinel = 'spec'
3307 0 : (msg__)->WriteSentinel(1630740541);
3308 0 : }
3309 :
3310 0 : auto PCacheOpChild::Read(
3311 : ContentPrincipalInfo* v__,
3312 : const Message* msg__,
3313 : PickleIterator* iter__) -> bool
3314 : {
3315 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
3316 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
3317 0 : return false;
3318 : }
3319 : // Sentinel = 'attrs'
3320 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
3321 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
3322 0 : return false;
3323 : }
3324 0 : if ((!(Read((&((v__)->originNoSuffix())), msg__, iter__)))) {
3325 0 : FatalError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
3326 0 : return false;
3327 : }
3328 : // Sentinel = 'originNoSuffix'
3329 0 : if ((!((msg__)->ReadSentinel(iter__, 2833071422)))) {
3330 0 : mozilla::ipc::SentinelReadError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
3331 0 : return false;
3332 : }
3333 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
3334 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
3335 0 : return false;
3336 : }
3337 : // Sentinel = 'spec'
3338 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
3339 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
3340 0 : return false;
3341 : }
3342 0 : return true;
3343 : }
3344 :
3345 0 : auto PCacheOpChild::Write(
3346 : const PCacheChild* v__,
3347 : Message* msg__,
3348 : bool nullable__) -> void
3349 : {
3350 : int32_t id;
3351 0 : if ((!(v__))) {
3352 0 : if ((!(nullable__))) {
3353 0 : FatalError("NULL actor value passed to non-nullable param");
3354 : }
3355 0 : id = 0;
3356 : }
3357 : else {
3358 0 : id = (v__)->Id();
3359 0 : if ((1) == (id)) {
3360 0 : FatalError("actor has been |delete|d");
3361 : }
3362 : }
3363 :
3364 0 : Write(id, msg__);
3365 0 : }
3366 :
3367 0 : auto PCacheOpChild::Read(
3368 : PCacheChild** v__,
3369 : const Message* msg__,
3370 : PickleIterator* iter__,
3371 : bool nullable__) -> bool
3372 : {
3373 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PCache", PCacheMsgStart);
3374 0 : if ((actor).isNothing()) {
3375 0 : return false;
3376 : }
3377 :
3378 0 : (*(v__)) = static_cast<PCacheChild*>((actor).value());
3379 0 : return true;
3380 : }
3381 :
3382 0 : auto PCacheOpChild::Write(
3383 : const PChildToParentStreamChild* v__,
3384 : Message* msg__,
3385 : bool nullable__) -> void
3386 : {
3387 : int32_t id;
3388 0 : if ((!(v__))) {
3389 0 : if ((!(nullable__))) {
3390 0 : FatalError("NULL actor value passed to non-nullable param");
3391 : }
3392 0 : id = 0;
3393 : }
3394 : else {
3395 0 : id = (v__)->Id();
3396 0 : if ((1) == (id)) {
3397 0 : FatalError("actor has been |delete|d");
3398 : }
3399 : }
3400 :
3401 0 : Write(id, msg__);
3402 0 : }
3403 :
3404 0 : auto PCacheOpChild::Read(
3405 : PChildToParentStreamChild** v__,
3406 : const Message* msg__,
3407 : PickleIterator* iter__,
3408 : bool nullable__) -> bool
3409 : {
3410 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PChildToParentStream", PChildToParentStreamMsgStart);
3411 0 : if ((actor).isNothing()) {
3412 0 : return false;
3413 : }
3414 :
3415 0 : (*(v__)) = static_cast<PChildToParentStreamChild*>((actor).value());
3416 0 : return true;
3417 : }
3418 :
3419 0 : auto PCacheOpChild::Write(
3420 : const PCacheStreamControlChild* v__,
3421 : Message* msg__,
3422 : bool nullable__) -> void
3423 : {
3424 : int32_t id;
3425 0 : if ((!(v__))) {
3426 0 : if ((!(nullable__))) {
3427 0 : FatalError("NULL actor value passed to non-nullable param");
3428 : }
3429 0 : id = 0;
3430 : }
3431 : else {
3432 0 : id = (v__)->Id();
3433 0 : if ((1) == (id)) {
3434 0 : FatalError("actor has been |delete|d");
3435 : }
3436 : }
3437 :
3438 0 : Write(id, msg__);
3439 0 : }
3440 :
3441 0 : auto PCacheOpChild::Read(
3442 : PCacheStreamControlChild** v__,
3443 : const Message* msg__,
3444 : PickleIterator* iter__,
3445 : bool nullable__) -> bool
3446 : {
3447 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PCacheStreamControl", PCacheStreamControlMsgStart);
3448 0 : if ((actor).isNothing()) {
3449 0 : return false;
3450 : }
3451 :
3452 0 : (*(v__)) = static_cast<PCacheStreamControlChild*>((actor).value());
3453 0 : return true;
3454 : }
3455 :
3456 :
3457 :
3458 : } // namespace cache
3459 : } // namespace dom
3460 : } // namespace mozilla
|