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