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