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