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