Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/dom/indexedDB/PBackgroundIDBTransactionParent.h"
8 :
9 : #include "mozilla/dom/indexedDB/PBackgroundIDBCursorParent.h"
10 : #include "mozilla/dom/indexedDB/PBackgroundIDBDatabaseParent.h"
11 : #include "mozilla/dom/indexedDB/PBackgroundIDBDatabaseFileParent.h"
12 : #include "mozilla/dom/indexedDB/PBackgroundIDBRequestParent.h"
13 : #include "mozilla/dom/PBackgroundMutableFileParent.h"
14 :
15 : #include "nsIFile.h"
16 : #include "GeckoProfiler.h"
17 :
18 : namespace mozilla {
19 : namespace dom {
20 : namespace indexedDB {
21 :
22 :
23 0 : auto PBackgroundIDBTransactionParent::RecvPBackgroundIDBCursorConstructor(
24 : PBackgroundIDBCursorParent* actor,
25 : const OpenCursorParams& params) -> mozilla::ipc::IPCResult
26 : {
27 0 : return IPC_OK();
28 : }
29 :
30 0 : auto PBackgroundIDBTransactionParent::RecvPBackgroundIDBRequestConstructor(
31 : PBackgroundIDBRequestParent* actor,
32 : const RequestParams& params) -> mozilla::ipc::IPCResult
33 : {
34 0 : return IPC_OK();
35 : }
36 :
37 :
38 0 : MOZ_IMPLICIT PBackgroundIDBTransactionParent::PBackgroundIDBTransactionParent() :
39 : mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
40 0 : mState(PBackgroundIDBTransaction::__Dead)
41 : {
42 0 : MOZ_COUNT_CTOR(PBackgroundIDBTransactionParent);
43 0 : }
44 :
45 0 : PBackgroundIDBTransactionParent::~PBackgroundIDBTransactionParent()
46 : {
47 0 : MOZ_COUNT_DTOR(PBackgroundIDBTransactionParent);
48 0 : }
49 :
50 0 : auto PBackgroundIDBTransactionParent::Manager() const -> PBackgroundIDBDatabaseParent*
51 : {
52 0 : return static_cast<PBackgroundIDBDatabaseParent*>(IProtocol::Manager());
53 : }
54 :
55 0 : auto PBackgroundIDBTransactionParent::ManagedPBackgroundIDBCursorParent(nsTArray<PBackgroundIDBCursorParent*>& aArr) const -> void
56 : {
57 0 : (mManagedPBackgroundIDBCursorParent).ToArray(aArr);
58 0 : }
59 :
60 0 : auto PBackgroundIDBTransactionParent::ManagedPBackgroundIDBCursorParent() const -> const ManagedContainer<PBackgroundIDBCursorParent>&
61 : {
62 0 : return mManagedPBackgroundIDBCursorParent;
63 : }
64 :
65 0 : auto PBackgroundIDBTransactionParent::ManagedPBackgroundIDBRequestParent(nsTArray<PBackgroundIDBRequestParent*>& aArr) const -> void
66 : {
67 0 : (mManagedPBackgroundIDBRequestParent).ToArray(aArr);
68 0 : }
69 :
70 0 : auto PBackgroundIDBTransactionParent::ManagedPBackgroundIDBRequestParent() const -> const ManagedContainer<PBackgroundIDBRequestParent>&
71 : {
72 0 : return mManagedPBackgroundIDBRequestParent;
73 : }
74 :
75 0 : auto PBackgroundIDBTransactionParent::Send__delete__(PBackgroundIDBTransactionParent* actor) -> bool
76 : {
77 0 : if ((!(actor))) {
78 0 : return false;
79 : }
80 :
81 0 : IPC::Message* msg__ = PBackgroundIDBTransaction::Msg___delete__((actor)->Id());
82 :
83 0 : (actor)->Write(actor, msg__, false);
84 : // Sentinel = 'actor'
85 0 : (msg__)->WriteSentinel(875202478);
86 :
87 :
88 :
89 0 : if (mozilla::ipc::LoggingEnabledFor("PBackgroundIDBTransactionParent")) {
90 0 : mozilla::ipc::LogMessageForProtocol("PBackgroundIDBTransactionParent", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
91 : }
92 0 : AUTO_PROFILER_LABEL("PBackgroundIDBTransaction::Msg___delete__", OTHER);
93 0 : PBackgroundIDBTransaction::Transition(PBackgroundIDBTransaction::Msg___delete____ID, (&((actor)->mState)));
94 :
95 0 : bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
96 :
97 0 : IProtocol* mgr = (actor)->Manager();
98 0 : (actor)->DestroySubtree(Deletion);
99 0 : (actor)->DeallocSubtree();
100 0 : (mgr)->RemoveManagee(PBackgroundIDBTransactionMsgStart, actor);
101 0 : return sendok__;
102 : }
103 :
104 0 : auto PBackgroundIDBTransactionParent::SendComplete(const nsresult& result) -> bool
105 : {
106 0 : IPC::Message* msg__ = PBackgroundIDBTransaction::Msg_Complete(Id());
107 :
108 0 : Write(result, msg__);
109 : // Sentinel = 'result'
110 0 : (msg__)->WriteSentinel(3991766165);
111 :
112 :
113 :
114 :
115 0 : if (mozilla::ipc::LoggingEnabledFor("PBackgroundIDBTransactionParent")) {
116 0 : mozilla::ipc::LogMessageForProtocol("PBackgroundIDBTransactionParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
117 : }
118 0 : AUTO_PROFILER_LABEL("PBackgroundIDBTransaction::Msg_Complete", OTHER);
119 0 : PBackgroundIDBTransaction::Transition(PBackgroundIDBTransaction::Msg_Complete__ID, (&(mState)));
120 :
121 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
122 0 : return sendok__;
123 : }
124 :
125 0 : auto PBackgroundIDBTransactionParent::RemoveManagee(
126 : int32_t aProtocolId,
127 : ProtocolBase* aListener) -> void
128 : {
129 0 : switch (aProtocolId) {
130 : case PBackgroundIDBCursorMsgStart:
131 : {
132 0 : PBackgroundIDBCursorParent* actor = static_cast<PBackgroundIDBCursorParent*>(aListener);
133 0 : auto& container = mManagedPBackgroundIDBCursorParent;
134 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
135 :
136 0 : (container).RemoveEntry(actor);
137 0 : DeallocPBackgroundIDBCursorParent(actor);
138 0 : return;
139 : }
140 : case PBackgroundIDBRequestMsgStart:
141 : {
142 0 : PBackgroundIDBRequestParent* actor = static_cast<PBackgroundIDBRequestParent*>(aListener);
143 0 : auto& container = mManagedPBackgroundIDBRequestParent;
144 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
145 :
146 0 : (container).RemoveEntry(actor);
147 0 : DeallocPBackgroundIDBRequestParent(actor);
148 0 : return;
149 : }
150 : default:
151 : {
152 0 : FatalError("unreached");
153 0 : return;
154 : }
155 : }
156 : }
157 :
158 0 : auto PBackgroundIDBTransactionParent::OnMessageReceived(const Message& msg__) -> PBackgroundIDBTransactionParent::Result
159 : {
160 0 : switch ((msg__).type()) {
161 : case PBackgroundIDBTransaction::Msg_DeleteMe__ID:
162 : {
163 0 : if (mozilla::ipc::LoggingEnabledFor("PBackgroundIDBTransactionParent")) {
164 0 : mozilla::ipc::LogMessageForProtocol("PBackgroundIDBTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
165 : }
166 0 : AUTO_PROFILER_LABEL("PBackgroundIDBTransaction::Msg_DeleteMe", OTHER);
167 :
168 0 : PBackgroundIDBTransaction::Transition(PBackgroundIDBTransaction::Msg_DeleteMe__ID, (&(mState)));
169 0 : if ((!(RecvDeleteMe()))) {
170 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
171 : // Error handled in mozilla::ipc::IPCResult
172 0 : return MsgProcessingError;
173 : }
174 :
175 0 : return MsgProcessed;
176 : }
177 : case PBackgroundIDBTransaction::Msg_Commit__ID:
178 : {
179 0 : if (mozilla::ipc::LoggingEnabledFor("PBackgroundIDBTransactionParent")) {
180 0 : mozilla::ipc::LogMessageForProtocol("PBackgroundIDBTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
181 : }
182 0 : AUTO_PROFILER_LABEL("PBackgroundIDBTransaction::Msg_Commit", OTHER);
183 :
184 0 : PBackgroundIDBTransaction::Transition(PBackgroundIDBTransaction::Msg_Commit__ID, (&(mState)));
185 0 : if ((!(RecvCommit()))) {
186 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
187 : // Error handled in mozilla::ipc::IPCResult
188 0 : return MsgProcessingError;
189 : }
190 :
191 0 : return MsgProcessed;
192 : }
193 : case PBackgroundIDBTransaction::Msg_Abort__ID:
194 : {
195 0 : if (mozilla::ipc::LoggingEnabledFor("PBackgroundIDBTransactionParent")) {
196 0 : mozilla::ipc::LogMessageForProtocol("PBackgroundIDBTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
197 : }
198 0 : AUTO_PROFILER_LABEL("PBackgroundIDBTransaction::Msg_Abort", OTHER);
199 :
200 0 : PickleIterator iter__(msg__);
201 : nsresult resultCode;
202 :
203 0 : if ((!(Read((&(resultCode)), (&(msg__)), (&(iter__)))))) {
204 0 : FatalError("Error deserializing 'nsresult'");
205 0 : return MsgValueError;
206 : }
207 : // Sentinel = 'resultCode'
208 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 183600282)))) {
209 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
210 0 : return MsgValueError;
211 : }
212 0 : (msg__).EndRead(iter__, (msg__).type());
213 0 : PBackgroundIDBTransaction::Transition(PBackgroundIDBTransaction::Msg_Abort__ID, (&(mState)));
214 0 : if ((!(RecvAbort(mozilla::Move(resultCode))))) {
215 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
216 : // Error handled in mozilla::ipc::IPCResult
217 0 : return MsgProcessingError;
218 : }
219 :
220 0 : return MsgProcessed;
221 : }
222 : case PBackgroundIDBTransaction::Msg_PBackgroundIDBCursorConstructor__ID:
223 : {
224 0 : if (mozilla::ipc::LoggingEnabledFor("PBackgroundIDBTransactionParent")) {
225 0 : mozilla::ipc::LogMessageForProtocol("PBackgroundIDBTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
226 : }
227 0 : AUTO_PROFILER_LABEL("PBackgroundIDBTransaction::Msg_PBackgroundIDBCursorConstructor", OTHER);
228 :
229 0 : PickleIterator iter__(msg__);
230 : ActorHandle handle__;
231 : PBackgroundIDBCursorParent* actor;
232 0 : OpenCursorParams params;
233 :
234 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
235 0 : FatalError("Error deserializing 'ActorHandle'");
236 0 : return MsgValueError;
237 : }
238 : // Sentinel = 'actor'
239 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
240 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
241 0 : return MsgValueError;
242 : }
243 0 : if ((!(Read((&(params)), (&(msg__)), (&(iter__)))))) {
244 0 : FatalError("Error deserializing 'OpenCursorParams'");
245 0 : return MsgValueError;
246 : }
247 : // Sentinel = 'params'
248 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1677790004)))) {
249 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OpenCursorParams'");
250 0 : return MsgValueError;
251 : }
252 0 : (msg__).EndRead(iter__, (msg__).type());
253 0 : PBackgroundIDBTransaction::Transition(PBackgroundIDBTransaction::Msg_PBackgroundIDBCursorConstructor__ID, (&(mState)));
254 0 : actor = AllocPBackgroundIDBCursorParent(params);
255 0 : if ((!(actor))) {
256 0 : NS_WARNING("Error constructing actor PBackgroundIDBCursorParent");
257 0 : return MsgValueError;
258 : }
259 0 : (actor)->SetManager(this);
260 0 : RegisterID(actor, (handle__).mId);
261 0 : (actor)->SetIPCChannel(GetIPCChannel());
262 0 : (mManagedPBackgroundIDBCursorParent).PutEntry(actor);
263 0 : (actor)->mState = mozilla::dom::indexedDB::PBackgroundIDBCursor::__Start;
264 :
265 0 : if ((!(RecvPBackgroundIDBCursorConstructor(mozilla::Move(actor), mozilla::Move(params))))) {
266 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
267 : // Error handled in mozilla::ipc::IPCResult
268 0 : return MsgProcessingError;
269 : }
270 :
271 0 : return MsgProcessed;
272 : }
273 : case PBackgroundIDBTransaction::Msg_PBackgroundIDBRequestConstructor__ID:
274 : {
275 0 : if (mozilla::ipc::LoggingEnabledFor("PBackgroundIDBTransactionParent")) {
276 0 : mozilla::ipc::LogMessageForProtocol("PBackgroundIDBTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
277 : }
278 0 : AUTO_PROFILER_LABEL("PBackgroundIDBTransaction::Msg_PBackgroundIDBRequestConstructor", OTHER);
279 :
280 0 : PickleIterator iter__(msg__);
281 : ActorHandle handle__;
282 : PBackgroundIDBRequestParent* actor;
283 0 : RequestParams params;
284 :
285 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
286 0 : FatalError("Error deserializing 'ActorHandle'");
287 0 : return MsgValueError;
288 : }
289 : // Sentinel = 'actor'
290 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
291 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
292 0 : return MsgValueError;
293 : }
294 0 : if ((!(Read((&(params)), (&(msg__)), (&(iter__)))))) {
295 0 : FatalError("Error deserializing 'RequestParams'");
296 0 : return MsgValueError;
297 : }
298 : // Sentinel = 'params'
299 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1677790004)))) {
300 0 : mozilla::ipc::SentinelReadError("Error deserializing 'RequestParams'");
301 0 : return MsgValueError;
302 : }
303 0 : (msg__).EndRead(iter__, (msg__).type());
304 0 : PBackgroundIDBTransaction::Transition(PBackgroundIDBTransaction::Msg_PBackgroundIDBRequestConstructor__ID, (&(mState)));
305 0 : actor = AllocPBackgroundIDBRequestParent(params);
306 0 : if ((!(actor))) {
307 0 : NS_WARNING("Error constructing actor PBackgroundIDBRequestParent");
308 0 : return MsgValueError;
309 : }
310 0 : (actor)->SetManager(this);
311 0 : RegisterID(actor, (handle__).mId);
312 0 : (actor)->SetIPCChannel(GetIPCChannel());
313 0 : (mManagedPBackgroundIDBRequestParent).PutEntry(actor);
314 0 : (actor)->mState = mozilla::dom::indexedDB::PBackgroundIDBRequest::__Start;
315 :
316 0 : if ((!(RecvPBackgroundIDBRequestConstructor(mozilla::Move(actor), mozilla::Move(params))))) {
317 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
318 : // Error handled in mozilla::ipc::IPCResult
319 0 : return MsgProcessingError;
320 : }
321 :
322 0 : return MsgProcessed;
323 : }
324 : case PBackgroundIDBTransaction::Reply___delete____ID:
325 : {
326 0 : return MsgProcessed;
327 : }
328 : default:
329 : {
330 0 : return MsgNotKnown;
331 : }
332 : }
333 : }
334 :
335 0 : auto PBackgroundIDBTransactionParent::OnMessageReceived(
336 : const Message& msg__,
337 : Message*& reply__) -> PBackgroundIDBTransactionParent::Result
338 : {
339 0 : return MsgNotKnown;
340 : }
341 :
342 0 : auto PBackgroundIDBTransactionParent::OnCallReceived(
343 : const Message& msg__,
344 : Message*& reply__) -> PBackgroundIDBTransactionParent::Result
345 : {
346 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
347 : return MsgNotKnown;
348 : }
349 :
350 0 : auto PBackgroundIDBTransactionParent::GetProtocolTypeId() -> int32_t
351 : {
352 0 : return PBackgroundIDBTransactionMsgStart;
353 : }
354 :
355 0 : auto PBackgroundIDBTransactionParent::ProtocolName() const -> const char*
356 : {
357 0 : return "PBackgroundIDBTransactionParent";
358 : }
359 :
360 0 : auto PBackgroundIDBTransactionParent::DestroySubtree(ActorDestroyReason why) -> void
361 : {
362 : // Unregister from our manager.
363 0 : Unregister(Id());
364 :
365 0 : ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
366 :
367 : {
368 : // Recursively shutting down PBackgroundIDBCursor kids
369 0 : nsTArray<PBackgroundIDBCursorParent*> kids;
370 : // Accumulate kids into a stable structure to iterate over
371 0 : ManagedPBackgroundIDBCursorParent(kids);
372 0 : for (auto& kid : kids) {
373 : // Guarding against a child removing a sibling from the list during the iteration.
374 0 : if ((mManagedPBackgroundIDBCursorParent).Contains(kid)) {
375 0 : (kid)->DestroySubtree(subtreewhy);
376 : }
377 : }
378 : }
379 : {
380 : // Recursively shutting down PBackgroundIDBRequest kids
381 0 : nsTArray<PBackgroundIDBRequestParent*> kids;
382 : // Accumulate kids into a stable structure to iterate over
383 0 : ManagedPBackgroundIDBRequestParent(kids);
384 0 : for (auto& kid : kids) {
385 : // Guarding against a child removing a sibling from the list during the iteration.
386 0 : if ((mManagedPBackgroundIDBRequestParent).Contains(kid)) {
387 0 : (kid)->DestroySubtree(subtreewhy);
388 : }
389 : }
390 : }
391 :
392 : // Reject owning pending promises.
393 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
394 :
395 : // Finally, destroy "us".
396 0 : ActorDestroy(why);
397 0 : }
398 :
399 0 : auto PBackgroundIDBTransactionParent::DeallocSubtree() -> void
400 : {
401 : {
402 : // Recursively deleting PBackgroundIDBCursor kids
403 0 : for (auto iter = (mManagedPBackgroundIDBCursorParent).Iter(); (!((iter).Done())); (iter).Next()) {
404 0 : (((iter).Get())->GetKey())->DeallocSubtree();
405 : }
406 :
407 0 : for (auto iter = (mManagedPBackgroundIDBCursorParent).Iter(); (!((iter).Done())); (iter).Next()) {
408 0 : DeallocPBackgroundIDBCursorParent(((iter).Get())->GetKey());
409 : }
410 0 : (mManagedPBackgroundIDBCursorParent).Clear();
411 : }
412 : {
413 : // Recursively deleting PBackgroundIDBRequest kids
414 0 : for (auto iter = (mManagedPBackgroundIDBRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
415 0 : (((iter).Get())->GetKey())->DeallocSubtree();
416 : }
417 :
418 0 : for (auto iter = (mManagedPBackgroundIDBRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
419 0 : DeallocPBackgroundIDBRequestParent(((iter).Get())->GetKey());
420 : }
421 0 : (mManagedPBackgroundIDBRequestParent).Clear();
422 : }
423 0 : }
424 :
425 0 : auto PBackgroundIDBTransactionParent::Write(
426 : const nsTArray<IndexUpdateInfo>& v__,
427 : Message* msg__) -> void
428 : {
429 0 : uint32_t length = (v__).Length();
430 0 : Write(length, msg__);
431 : // Sentinel = ('length', 'IndexUpdateInfo[]')
432 0 : (msg__)->WriteSentinel(2251747467);
433 :
434 0 : for (auto& elem : v__) {
435 0 : Write(elem, msg__);
436 : // Sentinel = 'IndexUpdateInfo[]'
437 0 : (msg__)->WriteSentinel(2033178830);
438 : }
439 0 : }
440 :
441 0 : auto PBackgroundIDBTransactionParent::Read(
442 : nsTArray<IndexUpdateInfo>* v__,
443 : const Message* msg__,
444 : PickleIterator* iter__) -> bool
445 : {
446 0 : nsTArray<IndexUpdateInfo> fa;
447 : uint32_t length;
448 0 : if ((!(Read((&(length)), msg__, iter__)))) {
449 0 : mozilla::ipc::ArrayLengthReadError("IndexUpdateInfo[]");
450 0 : return false;
451 : }
452 : // Sentinel = ('length', 'IndexUpdateInfo[]')
453 0 : if ((!((msg__)->ReadSentinel(iter__, 2251747467)))) {
454 0 : mozilla::ipc::SentinelReadError("IndexUpdateInfo[]");
455 0 : return false;
456 : }
457 :
458 0 : IndexUpdateInfo* elems = (fa).AppendElements(length);
459 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
460 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
461 0 : FatalError("Error deserializing 'IndexUpdateInfo[i]'");
462 0 : return false;
463 : }
464 : // Sentinel = 'IndexUpdateInfo[]'
465 0 : if ((!((msg__)->ReadSentinel(iter__, 2033178830)))) {
466 0 : mozilla::ipc::SentinelReadError("Error deserializing 'IndexUpdateInfo[i]'");
467 0 : return false;
468 : }
469 : }
470 0 : (v__)->SwapElements(fa);
471 0 : return true;
472 : }
473 :
474 0 : auto PBackgroundIDBTransactionParent::Write(
475 : const ObjectStoreGetAllKeysParams& v__,
476 : Message* msg__) -> void
477 : {
478 0 : Write((v__).objectStoreId(), msg__);
479 : // Sentinel = 'objectStoreId'
480 0 : (msg__)->WriteSentinel(2036303666);
481 0 : Write((v__).optionalKeyRange(), msg__);
482 : // Sentinel = 'optionalKeyRange'
483 0 : (msg__)->WriteSentinel(2533597392);
484 0 : Write((v__).limit(), msg__);
485 : // Sentinel = 'limit'
486 0 : (msg__)->WriteSentinel(3880566644);
487 0 : }
488 :
489 0 : auto PBackgroundIDBTransactionParent::Read(
490 : ObjectStoreGetAllKeysParams* v__,
491 : const Message* msg__,
492 : PickleIterator* iter__) -> bool
493 : {
494 0 : if ((!(Read((&((v__)->objectStoreId())), msg__, iter__)))) {
495 0 : FatalError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreGetAllKeysParams'");
496 0 : return false;
497 : }
498 : // Sentinel = 'objectStoreId'
499 0 : if ((!((msg__)->ReadSentinel(iter__, 2036303666)))) {
500 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreGetAllKeysParams'");
501 0 : return false;
502 : }
503 0 : if ((!(Read((&((v__)->optionalKeyRange())), msg__, iter__)))) {
504 0 : FatalError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'ObjectStoreGetAllKeysParams'");
505 0 : return false;
506 : }
507 : // Sentinel = 'optionalKeyRange'
508 0 : if ((!((msg__)->ReadSentinel(iter__, 2533597392)))) {
509 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'ObjectStoreGetAllKeysParams'");
510 0 : return false;
511 : }
512 0 : if ((!(Read((&((v__)->limit())), msg__, iter__)))) {
513 0 : FatalError("Error deserializing 'limit' (uint32_t) member of 'ObjectStoreGetAllKeysParams'");
514 0 : return false;
515 : }
516 : // Sentinel = 'limit'
517 0 : if ((!((msg__)->ReadSentinel(iter__, 3880566644)))) {
518 0 : mozilla::ipc::SentinelReadError("Error deserializing 'limit' (uint32_t) member of 'ObjectStoreGetAllKeysParams'");
519 0 : return false;
520 : }
521 0 : return true;
522 : }
523 :
524 0 : auto PBackgroundIDBTransactionParent::Write(
525 : const FileAddInfo& v__,
526 : Message* msg__) -> void
527 : {
528 0 : Write((v__).file(), msg__);
529 : // Sentinel = 'file'
530 0 : (msg__)->WriteSentinel(224874390);
531 0 : Write((v__).type(), msg__);
532 : // Sentinel = 'type'
533 0 : (msg__)->WriteSentinel(2982068540);
534 0 : }
535 :
536 0 : auto PBackgroundIDBTransactionParent::Read(
537 : FileAddInfo* v__,
538 : const Message* msg__,
539 : PickleIterator* iter__) -> bool
540 : {
541 0 : if ((!(Read((&((v__)->file())), msg__, iter__)))) {
542 0 : FatalError("Error deserializing 'file' (DatabaseOrMutableFile) member of 'FileAddInfo'");
543 0 : return false;
544 : }
545 : // Sentinel = 'file'
546 0 : if ((!((msg__)->ReadSentinel(iter__, 224874390)))) {
547 0 : mozilla::ipc::SentinelReadError("Error deserializing 'file' (DatabaseOrMutableFile) member of 'FileAddInfo'");
548 0 : return false;
549 : }
550 0 : if ((!(Read((&((v__)->type())), msg__, iter__)))) {
551 0 : FatalError("Error deserializing 'type' (FileType) member of 'FileAddInfo'");
552 0 : return false;
553 : }
554 : // Sentinel = 'type'
555 0 : if ((!((msg__)->ReadSentinel(iter__, 2982068540)))) {
556 0 : mozilla::ipc::SentinelReadError("Error deserializing 'type' (FileType) member of 'FileAddInfo'");
557 0 : return false;
558 : }
559 0 : return true;
560 : }
561 :
562 0 : auto PBackgroundIDBTransactionParent::Write(
563 : const ObjectStoreOpenKeyCursorParams& v__,
564 : Message* msg__) -> void
565 : {
566 0 : Write((v__).objectStoreId(), msg__);
567 : // Sentinel = 'objectStoreId'
568 0 : (msg__)->WriteSentinel(2036303666);
569 0 : Write((v__).optionalKeyRange(), msg__);
570 : // Sentinel = 'optionalKeyRange'
571 0 : (msg__)->WriteSentinel(2533597392);
572 0 : Write((v__).direction(), msg__);
573 : // Sentinel = 'direction'
574 0 : (msg__)->WriteSentinel(1283484994);
575 0 : }
576 :
577 0 : auto PBackgroundIDBTransactionParent::Read(
578 : ObjectStoreOpenKeyCursorParams* v__,
579 : const Message* msg__,
580 : PickleIterator* iter__) -> bool
581 : {
582 0 : if ((!(Read((&((v__)->objectStoreId())), msg__, iter__)))) {
583 0 : FatalError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreOpenKeyCursorParams'");
584 0 : return false;
585 : }
586 : // Sentinel = 'objectStoreId'
587 0 : if ((!((msg__)->ReadSentinel(iter__, 2036303666)))) {
588 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreOpenKeyCursorParams'");
589 0 : return false;
590 : }
591 0 : if ((!(Read((&((v__)->optionalKeyRange())), msg__, iter__)))) {
592 0 : FatalError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'ObjectStoreOpenKeyCursorParams'");
593 0 : return false;
594 : }
595 : // Sentinel = 'optionalKeyRange'
596 0 : if ((!((msg__)->ReadSentinel(iter__, 2533597392)))) {
597 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'ObjectStoreOpenKeyCursorParams'");
598 0 : return false;
599 : }
600 0 : if ((!(Read((&((v__)->direction())), msg__, iter__)))) {
601 0 : FatalError("Error deserializing 'direction' (Direction) member of 'ObjectStoreOpenKeyCursorParams'");
602 0 : return false;
603 : }
604 : // Sentinel = 'direction'
605 0 : if ((!((msg__)->ReadSentinel(iter__, 1283484994)))) {
606 0 : mozilla::ipc::SentinelReadError("Error deserializing 'direction' (Direction) member of 'ObjectStoreOpenKeyCursorParams'");
607 0 : return false;
608 : }
609 0 : return true;
610 : }
611 :
612 0 : auto PBackgroundIDBTransactionParent::Write(
613 : const ObjectStoreCountParams& v__,
614 : Message* msg__) -> void
615 : {
616 0 : Write((v__).objectStoreId(), msg__);
617 : // Sentinel = 'objectStoreId'
618 0 : (msg__)->WriteSentinel(2036303666);
619 0 : Write((v__).optionalKeyRange(), msg__);
620 : // Sentinel = 'optionalKeyRange'
621 0 : (msg__)->WriteSentinel(2533597392);
622 0 : }
623 :
624 0 : auto PBackgroundIDBTransactionParent::Read(
625 : ObjectStoreCountParams* v__,
626 : const Message* msg__,
627 : PickleIterator* iter__) -> bool
628 : {
629 0 : if ((!(Read((&((v__)->objectStoreId())), msg__, iter__)))) {
630 0 : FatalError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreCountParams'");
631 0 : return false;
632 : }
633 : // Sentinel = 'objectStoreId'
634 0 : if ((!((msg__)->ReadSentinel(iter__, 2036303666)))) {
635 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreCountParams'");
636 0 : return false;
637 : }
638 0 : if ((!(Read((&((v__)->optionalKeyRange())), msg__, iter__)))) {
639 0 : FatalError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'ObjectStoreCountParams'");
640 0 : return false;
641 : }
642 : // Sentinel = 'optionalKeyRange'
643 0 : if ((!((msg__)->ReadSentinel(iter__, 2533597392)))) {
644 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'ObjectStoreCountParams'");
645 0 : return false;
646 : }
647 0 : return true;
648 : }
649 :
650 0 : auto PBackgroundIDBTransactionParent::Write(
651 : const ObjectStoreGetKeyParams& v__,
652 : Message* msg__) -> void
653 : {
654 0 : Write((v__).objectStoreId(), msg__);
655 : // Sentinel = 'objectStoreId'
656 0 : (msg__)->WriteSentinel(2036303666);
657 0 : Write((v__).keyRange(), msg__);
658 : // Sentinel = 'keyRange'
659 0 : (msg__)->WriteSentinel(4120394740);
660 0 : }
661 :
662 0 : auto PBackgroundIDBTransactionParent::Read(
663 : ObjectStoreGetKeyParams* v__,
664 : const Message* msg__,
665 : PickleIterator* iter__) -> bool
666 : {
667 0 : if ((!(Read((&((v__)->objectStoreId())), msg__, iter__)))) {
668 0 : FatalError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreGetKeyParams'");
669 0 : return false;
670 : }
671 : // Sentinel = 'objectStoreId'
672 0 : if ((!((msg__)->ReadSentinel(iter__, 2036303666)))) {
673 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreGetKeyParams'");
674 0 : return false;
675 : }
676 0 : if ((!(Read((&((v__)->keyRange())), msg__, iter__)))) {
677 0 : FatalError("Error deserializing 'keyRange' (SerializedKeyRange) member of 'ObjectStoreGetKeyParams'");
678 0 : return false;
679 : }
680 : // Sentinel = 'keyRange'
681 0 : if ((!((msg__)->ReadSentinel(iter__, 4120394740)))) {
682 0 : mozilla::ipc::SentinelReadError("Error deserializing 'keyRange' (SerializedKeyRange) member of 'ObjectStoreGetKeyParams'");
683 0 : return false;
684 : }
685 0 : return true;
686 : }
687 :
688 0 : auto PBackgroundIDBTransactionParent::Write(
689 : const PBackgroundIDBRequestParent* v__,
690 : Message* msg__,
691 : bool nullable__) -> void
692 : {
693 : int32_t id;
694 0 : if ((!(v__))) {
695 0 : if ((!(nullable__))) {
696 0 : FatalError("NULL actor value passed to non-nullable param");
697 : }
698 0 : id = 0;
699 : }
700 : else {
701 0 : id = (v__)->Id();
702 0 : if ((1) == (id)) {
703 0 : FatalError("actor has been |delete|d");
704 : }
705 : }
706 :
707 0 : Write(id, msg__);
708 0 : }
709 :
710 0 : auto PBackgroundIDBTransactionParent::Read(
711 : PBackgroundIDBRequestParent** v__,
712 : const Message* msg__,
713 : PickleIterator* iter__,
714 : bool nullable__) -> bool
715 : {
716 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBackgroundIDBRequest", PBackgroundIDBRequestMsgStart);
717 0 : if ((actor).isNothing()) {
718 0 : return false;
719 : }
720 :
721 0 : (*(v__)) = static_cast<PBackgroundIDBRequestParent*>((actor).value());
722 0 : return true;
723 : }
724 :
725 0 : auto PBackgroundIDBTransactionParent::Write(
726 : const PBackgroundIDBCursorParent* v__,
727 : Message* msg__,
728 : bool nullable__) -> void
729 : {
730 : int32_t id;
731 0 : if ((!(v__))) {
732 0 : if ((!(nullable__))) {
733 0 : FatalError("NULL actor value passed to non-nullable param");
734 : }
735 0 : id = 0;
736 : }
737 : else {
738 0 : id = (v__)->Id();
739 0 : if ((1) == (id)) {
740 0 : FatalError("actor has been |delete|d");
741 : }
742 : }
743 :
744 0 : Write(id, msg__);
745 0 : }
746 :
747 0 : auto PBackgroundIDBTransactionParent::Read(
748 : PBackgroundIDBCursorParent** v__,
749 : const Message* msg__,
750 : PickleIterator* iter__,
751 : bool nullable__) -> bool
752 : {
753 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBackgroundIDBCursor", PBackgroundIDBCursorMsgStart);
754 0 : if ((actor).isNothing()) {
755 0 : return false;
756 : }
757 :
758 0 : (*(v__)) = static_cast<PBackgroundIDBCursorParent*>((actor).value());
759 0 : return true;
760 : }
761 :
762 0 : auto PBackgroundIDBTransactionParent::Write(
763 : const IndexGetParams& v__,
764 : Message* msg__) -> void
765 : {
766 0 : Write((v__).objectStoreId(), msg__);
767 : // Sentinel = 'objectStoreId'
768 0 : (msg__)->WriteSentinel(2036303666);
769 0 : Write((v__).indexId(), msg__);
770 : // Sentinel = 'indexId'
771 0 : (msg__)->WriteSentinel(2324882252);
772 0 : Write((v__).keyRange(), msg__);
773 : // Sentinel = 'keyRange'
774 0 : (msg__)->WriteSentinel(4120394740);
775 0 : }
776 :
777 0 : auto PBackgroundIDBTransactionParent::Read(
778 : IndexGetParams* v__,
779 : const Message* msg__,
780 : PickleIterator* iter__) -> bool
781 : {
782 0 : if ((!(Read((&((v__)->objectStoreId())), msg__, iter__)))) {
783 0 : FatalError("Error deserializing 'objectStoreId' (int64_t) member of 'IndexGetParams'");
784 0 : return false;
785 : }
786 : // Sentinel = 'objectStoreId'
787 0 : if ((!((msg__)->ReadSentinel(iter__, 2036303666)))) {
788 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectStoreId' (int64_t) member of 'IndexGetParams'");
789 0 : return false;
790 : }
791 0 : if ((!(Read((&((v__)->indexId())), msg__, iter__)))) {
792 0 : FatalError("Error deserializing 'indexId' (int64_t) member of 'IndexGetParams'");
793 0 : return false;
794 : }
795 : // Sentinel = 'indexId'
796 0 : if ((!((msg__)->ReadSentinel(iter__, 2324882252)))) {
797 0 : mozilla::ipc::SentinelReadError("Error deserializing 'indexId' (int64_t) member of 'IndexGetParams'");
798 0 : return false;
799 : }
800 0 : if ((!(Read((&((v__)->keyRange())), msg__, iter__)))) {
801 0 : FatalError("Error deserializing 'keyRange' (SerializedKeyRange) member of 'IndexGetParams'");
802 0 : return false;
803 : }
804 : // Sentinel = 'keyRange'
805 0 : if ((!((msg__)->ReadSentinel(iter__, 4120394740)))) {
806 0 : mozilla::ipc::SentinelReadError("Error deserializing 'keyRange' (SerializedKeyRange) member of 'IndexGetParams'");
807 0 : return false;
808 : }
809 0 : return true;
810 : }
811 :
812 0 : auto PBackgroundIDBTransactionParent::Write(
813 : const ObjectStoreDeleteParams& v__,
814 : Message* msg__) -> void
815 : {
816 0 : Write((v__).objectStoreId(), msg__);
817 : // Sentinel = 'objectStoreId'
818 0 : (msg__)->WriteSentinel(2036303666);
819 0 : Write((v__).keyRange(), msg__);
820 : // Sentinel = 'keyRange'
821 0 : (msg__)->WriteSentinel(4120394740);
822 0 : }
823 :
824 0 : auto PBackgroundIDBTransactionParent::Read(
825 : ObjectStoreDeleteParams* v__,
826 : const Message* msg__,
827 : PickleIterator* iter__) -> bool
828 : {
829 0 : if ((!(Read((&((v__)->objectStoreId())), msg__, iter__)))) {
830 0 : FatalError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreDeleteParams'");
831 0 : return false;
832 : }
833 : // Sentinel = 'objectStoreId'
834 0 : if ((!((msg__)->ReadSentinel(iter__, 2036303666)))) {
835 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreDeleteParams'");
836 0 : return false;
837 : }
838 0 : if ((!(Read((&((v__)->keyRange())), msg__, iter__)))) {
839 0 : FatalError("Error deserializing 'keyRange' (SerializedKeyRange) member of 'ObjectStoreDeleteParams'");
840 0 : return false;
841 : }
842 : // Sentinel = 'keyRange'
843 0 : if ((!((msg__)->ReadSentinel(iter__, 4120394740)))) {
844 0 : mozilla::ipc::SentinelReadError("Error deserializing 'keyRange' (SerializedKeyRange) member of 'ObjectStoreDeleteParams'");
845 0 : return false;
846 : }
847 0 : return true;
848 : }
849 :
850 0 : auto PBackgroundIDBTransactionParent::Write(
851 : const ObjectStoreAddParams& v__,
852 : Message* msg__) -> void
853 : {
854 0 : Write((v__).commonParams(), msg__);
855 : // Sentinel = 'commonParams'
856 0 : (msg__)->WriteSentinel(3132658281);
857 0 : }
858 :
859 0 : auto PBackgroundIDBTransactionParent::Read(
860 : ObjectStoreAddParams* v__,
861 : const Message* msg__,
862 : PickleIterator* iter__) -> bool
863 : {
864 0 : if ((!(Read((&((v__)->commonParams())), msg__, iter__)))) {
865 0 : FatalError("Error deserializing 'commonParams' (ObjectStoreAddPutParams) member of 'ObjectStoreAddParams'");
866 0 : return false;
867 : }
868 : // Sentinel = 'commonParams'
869 0 : if ((!((msg__)->ReadSentinel(iter__, 3132658281)))) {
870 0 : mozilla::ipc::SentinelReadError("Error deserializing 'commonParams' (ObjectStoreAddPutParams) member of 'ObjectStoreAddParams'");
871 0 : return false;
872 : }
873 0 : return true;
874 : }
875 :
876 0 : auto PBackgroundIDBTransactionParent::Write(
877 : const DatabaseOrMutableFile& v__,
878 : Message* msg__) -> void
879 : {
880 : typedef DatabaseOrMutableFile type__;
881 0 : Write(int((v__).type()), msg__);
882 : // Sentinel = 'DatabaseOrMutableFile'
883 0 : (msg__)->WriteSentinel(2620527749);
884 :
885 0 : switch ((v__).type()) {
886 : case type__::TPBackgroundIDBDatabaseFileParent:
887 : {
888 0 : Write((v__).get_PBackgroundIDBDatabaseFileParent(), msg__, false);
889 : // Sentinel = 'TPBackgroundIDBDatabaseFileParent'
890 0 : (msg__)->WriteSentinel(2944443155);
891 0 : return;
892 : }
893 : case type__::TPBackgroundIDBDatabaseFileChild:
894 : {
895 0 : FatalError("wrong side!");
896 0 : return;
897 : }
898 : case type__::TPBackgroundMutableFileParent:
899 : {
900 0 : Write((v__).get_PBackgroundMutableFileParent(), msg__, false);
901 : // Sentinel = 'TPBackgroundMutableFileParent'
902 0 : (msg__)->WriteSentinel(2187321649);
903 0 : return;
904 : }
905 : case type__::TPBackgroundMutableFileChild:
906 : {
907 0 : FatalError("wrong side!");
908 0 : return;
909 : }
910 : default:
911 : {
912 0 : FatalError("unknown union type");
913 0 : return;
914 : }
915 : }
916 : }
917 :
918 0 : auto PBackgroundIDBTransactionParent::Read(
919 : DatabaseOrMutableFile* v__,
920 : const Message* msg__,
921 : PickleIterator* iter__) -> bool
922 : {
923 : typedef DatabaseOrMutableFile type__;
924 : int type;
925 0 : if ((!(Read((&(type)), msg__, iter__)))) {
926 0 : mozilla::ipc::UnionTypeReadError("DatabaseOrMutableFile");
927 0 : return false;
928 : }
929 : // Sentinel = 'DatabaseOrMutableFile'
930 0 : if ((!((msg__)->ReadSentinel(iter__, 2620527749)))) {
931 0 : mozilla::ipc::SentinelReadError("DatabaseOrMutableFile");
932 0 : return false;
933 : }
934 :
935 0 : switch (type) {
936 : case type__::TPBackgroundIDBDatabaseFileParent:
937 : {
938 0 : return false;
939 : }
940 : case type__::TPBackgroundIDBDatabaseFileChild:
941 : {
942 0 : PBackgroundIDBDatabaseFileParent* tmp = nullptr;
943 0 : (*(v__)) = tmp;
944 0 : if ((!(Read((&((v__)->get_PBackgroundIDBDatabaseFileParent())), msg__, iter__, false)))) {
945 0 : FatalError("Error deserializing Union type");
946 0 : return false;
947 : }
948 : // Sentinel = 'TPBackgroundIDBDatabaseFileChild'
949 0 : if ((!((msg__)->ReadSentinel(iter__, 1165865148)))) {
950 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
951 0 : return false;
952 : }
953 0 : return true;
954 : }
955 : case type__::TPBackgroundMutableFileParent:
956 : {
957 0 : return false;
958 : }
959 : case type__::TPBackgroundMutableFileChild:
960 : {
961 0 : PBackgroundMutableFileParent* tmp = nullptr;
962 0 : (*(v__)) = tmp;
963 0 : if ((!(Read((&((v__)->get_PBackgroundMutableFileParent())), msg__, iter__, false)))) {
964 0 : FatalError("Error deserializing Union type");
965 0 : return false;
966 : }
967 : // Sentinel = 'TPBackgroundMutableFileChild'
968 0 : if ((!((msg__)->ReadSentinel(iter__, 3897825762)))) {
969 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
970 0 : return false;
971 : }
972 0 : return true;
973 : }
974 : default:
975 : {
976 0 : FatalError("unknown union type");
977 0 : return false;
978 : }
979 : }
980 : }
981 :
982 0 : auto PBackgroundIDBTransactionParent::Write(
983 : const RequestParams& v__,
984 : Message* msg__) -> void
985 : {
986 : typedef RequestParams type__;
987 0 : Write(int((v__).type()), msg__);
988 : // Sentinel = 'RequestParams'
989 0 : (msg__)->WriteSentinel(2934802656);
990 :
991 0 : switch ((v__).type()) {
992 : case type__::TObjectStoreAddParams:
993 : {
994 0 : Write((v__).get_ObjectStoreAddParams(), msg__);
995 : // Sentinel = 'TObjectStoreAddParams'
996 0 : (msg__)->WriteSentinel(1161695818);
997 0 : return;
998 : }
999 : case type__::TObjectStorePutParams:
1000 : {
1001 0 : Write((v__).get_ObjectStorePutParams(), msg__);
1002 : // Sentinel = 'TObjectStorePutParams'
1003 0 : (msg__)->WriteSentinel(2873690316);
1004 0 : return;
1005 : }
1006 : case type__::TObjectStoreGetParams:
1007 : {
1008 0 : Write((v__).get_ObjectStoreGetParams(), msg__);
1009 : // Sentinel = 'TObjectStoreGetParams'
1010 0 : (msg__)->WriteSentinel(1141983111);
1011 0 : return;
1012 : }
1013 : case type__::TObjectStoreGetKeyParams:
1014 : {
1015 0 : Write((v__).get_ObjectStoreGetKeyParams(), msg__);
1016 : // Sentinel = 'TObjectStoreGetKeyParams'
1017 0 : (msg__)->WriteSentinel(3194382439);
1018 0 : return;
1019 : }
1020 : case type__::TObjectStoreGetAllParams:
1021 : {
1022 0 : Write((v__).get_ObjectStoreGetAllParams(), msg__);
1023 : // Sentinel = 'TObjectStoreGetAllParams'
1024 0 : (msg__)->WriteSentinel(177439819);
1025 0 : return;
1026 : }
1027 : case type__::TObjectStoreGetAllKeysParams:
1028 : {
1029 0 : Write((v__).get_ObjectStoreGetAllKeysParams(), msg__);
1030 : // Sentinel = 'TObjectStoreGetAllKeysParams'
1031 0 : (msg__)->WriteSentinel(2643668455);
1032 0 : return;
1033 : }
1034 : case type__::TObjectStoreDeleteParams:
1035 : {
1036 0 : Write((v__).get_ObjectStoreDeleteParams(), msg__);
1037 : // Sentinel = 'TObjectStoreDeleteParams'
1038 0 : (msg__)->WriteSentinel(2121891991);
1039 0 : return;
1040 : }
1041 : case type__::TObjectStoreClearParams:
1042 : {
1043 0 : Write((v__).get_ObjectStoreClearParams(), msg__);
1044 : // Sentinel = 'TObjectStoreClearParams'
1045 0 : (msg__)->WriteSentinel(1657547170);
1046 0 : return;
1047 : }
1048 : case type__::TObjectStoreCountParams:
1049 : {
1050 0 : Write((v__).get_ObjectStoreCountParams(), msg__);
1051 : // Sentinel = 'TObjectStoreCountParams'
1052 0 : (msg__)->WriteSentinel(1876506348);
1053 0 : return;
1054 : }
1055 : case type__::TIndexGetParams:
1056 : {
1057 0 : Write((v__).get_IndexGetParams(), msg__);
1058 : // Sentinel = 'TIndexGetParams'
1059 0 : (msg__)->WriteSentinel(1781506953);
1060 0 : return;
1061 : }
1062 : case type__::TIndexGetKeyParams:
1063 : {
1064 0 : Write((v__).get_IndexGetKeyParams(), msg__);
1065 : // Sentinel = 'TIndexGetKeyParams'
1066 0 : (msg__)->WriteSentinel(1826675297);
1067 0 : return;
1068 : }
1069 : case type__::TIndexGetAllParams:
1070 : {
1071 0 : Write((v__).get_IndexGetAllParams(), msg__);
1072 : // Sentinel = 'TIndexGetAllParams'
1073 0 : (msg__)->WriteSentinel(3516951325);
1074 0 : return;
1075 : }
1076 : case type__::TIndexGetAllKeysParams:
1077 : {
1078 0 : Write((v__).get_IndexGetAllKeysParams(), msg__);
1079 : // Sentinel = 'TIndexGetAllKeysParams'
1080 0 : (msg__)->WriteSentinel(3505860041);
1081 0 : return;
1082 : }
1083 : case type__::TIndexCountParams:
1084 : {
1085 0 : Write((v__).get_IndexCountParams(), msg__);
1086 : // Sentinel = 'TIndexCountParams'
1087 0 : (msg__)->WriteSentinel(895903702);
1088 0 : return;
1089 : }
1090 : default:
1091 : {
1092 0 : FatalError("unknown union type");
1093 0 : return;
1094 : }
1095 : }
1096 : }
1097 :
1098 0 : auto PBackgroundIDBTransactionParent::Read(
1099 : RequestParams* v__,
1100 : const Message* msg__,
1101 : PickleIterator* iter__) -> bool
1102 : {
1103 : typedef RequestParams type__;
1104 : int type;
1105 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1106 0 : mozilla::ipc::UnionTypeReadError("RequestParams");
1107 0 : return false;
1108 : }
1109 : // Sentinel = 'RequestParams'
1110 0 : if ((!((msg__)->ReadSentinel(iter__, 2934802656)))) {
1111 0 : mozilla::ipc::SentinelReadError("RequestParams");
1112 0 : return false;
1113 : }
1114 :
1115 0 : switch (type) {
1116 : case type__::TObjectStoreAddParams:
1117 : {
1118 0 : ObjectStoreAddParams tmp = ObjectStoreAddParams();
1119 0 : (*(v__)) = tmp;
1120 0 : if ((!(Read((&((v__)->get_ObjectStoreAddParams())), msg__, iter__)))) {
1121 0 : FatalError("Error deserializing Union type");
1122 0 : return false;
1123 : }
1124 : // Sentinel = 'TObjectStoreAddParams'
1125 0 : if ((!((msg__)->ReadSentinel(iter__, 1161695818)))) {
1126 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1127 0 : return false;
1128 : }
1129 0 : return true;
1130 : }
1131 : case type__::TObjectStorePutParams:
1132 : {
1133 0 : ObjectStorePutParams tmp = ObjectStorePutParams();
1134 0 : (*(v__)) = tmp;
1135 0 : if ((!(Read((&((v__)->get_ObjectStorePutParams())), msg__, iter__)))) {
1136 0 : FatalError("Error deserializing Union type");
1137 0 : return false;
1138 : }
1139 : // Sentinel = 'TObjectStorePutParams'
1140 0 : if ((!((msg__)->ReadSentinel(iter__, 2873690316)))) {
1141 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1142 0 : return false;
1143 : }
1144 0 : return true;
1145 : }
1146 : case type__::TObjectStoreGetParams:
1147 : {
1148 0 : ObjectStoreGetParams tmp = ObjectStoreGetParams();
1149 0 : (*(v__)) = tmp;
1150 0 : if ((!(Read((&((v__)->get_ObjectStoreGetParams())), msg__, iter__)))) {
1151 0 : FatalError("Error deserializing Union type");
1152 0 : return false;
1153 : }
1154 : // Sentinel = 'TObjectStoreGetParams'
1155 0 : if ((!((msg__)->ReadSentinel(iter__, 1141983111)))) {
1156 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1157 0 : return false;
1158 : }
1159 0 : return true;
1160 : }
1161 : case type__::TObjectStoreGetKeyParams:
1162 : {
1163 0 : ObjectStoreGetKeyParams tmp = ObjectStoreGetKeyParams();
1164 0 : (*(v__)) = tmp;
1165 0 : if ((!(Read((&((v__)->get_ObjectStoreGetKeyParams())), msg__, iter__)))) {
1166 0 : FatalError("Error deserializing Union type");
1167 0 : return false;
1168 : }
1169 : // Sentinel = 'TObjectStoreGetKeyParams'
1170 0 : if ((!((msg__)->ReadSentinel(iter__, 3194382439)))) {
1171 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1172 0 : return false;
1173 : }
1174 0 : return true;
1175 : }
1176 : case type__::TObjectStoreGetAllParams:
1177 : {
1178 0 : ObjectStoreGetAllParams tmp = ObjectStoreGetAllParams();
1179 0 : (*(v__)) = tmp;
1180 0 : if ((!(Read((&((v__)->get_ObjectStoreGetAllParams())), msg__, iter__)))) {
1181 0 : FatalError("Error deserializing Union type");
1182 0 : return false;
1183 : }
1184 : // Sentinel = 'TObjectStoreGetAllParams'
1185 0 : if ((!((msg__)->ReadSentinel(iter__, 177439819)))) {
1186 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1187 0 : return false;
1188 : }
1189 0 : return true;
1190 : }
1191 : case type__::TObjectStoreGetAllKeysParams:
1192 : {
1193 0 : ObjectStoreGetAllKeysParams tmp = ObjectStoreGetAllKeysParams();
1194 0 : (*(v__)) = tmp;
1195 0 : if ((!(Read((&((v__)->get_ObjectStoreGetAllKeysParams())), msg__, iter__)))) {
1196 0 : FatalError("Error deserializing Union type");
1197 0 : return false;
1198 : }
1199 : // Sentinel = 'TObjectStoreGetAllKeysParams'
1200 0 : if ((!((msg__)->ReadSentinel(iter__, 2643668455)))) {
1201 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1202 0 : return false;
1203 : }
1204 0 : return true;
1205 : }
1206 : case type__::TObjectStoreDeleteParams:
1207 : {
1208 0 : ObjectStoreDeleteParams tmp = ObjectStoreDeleteParams();
1209 0 : (*(v__)) = tmp;
1210 0 : if ((!(Read((&((v__)->get_ObjectStoreDeleteParams())), msg__, iter__)))) {
1211 0 : FatalError("Error deserializing Union type");
1212 0 : return false;
1213 : }
1214 : // Sentinel = 'TObjectStoreDeleteParams'
1215 0 : if ((!((msg__)->ReadSentinel(iter__, 2121891991)))) {
1216 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1217 0 : return false;
1218 : }
1219 0 : return true;
1220 : }
1221 : case type__::TObjectStoreClearParams:
1222 : {
1223 0 : ObjectStoreClearParams tmp = ObjectStoreClearParams();
1224 0 : (*(v__)) = tmp;
1225 0 : if ((!(Read((&((v__)->get_ObjectStoreClearParams())), msg__, iter__)))) {
1226 0 : FatalError("Error deserializing Union type");
1227 0 : return false;
1228 : }
1229 : // Sentinel = 'TObjectStoreClearParams'
1230 0 : if ((!((msg__)->ReadSentinel(iter__, 1657547170)))) {
1231 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1232 0 : return false;
1233 : }
1234 0 : return true;
1235 : }
1236 : case type__::TObjectStoreCountParams:
1237 : {
1238 0 : ObjectStoreCountParams tmp = ObjectStoreCountParams();
1239 0 : (*(v__)) = tmp;
1240 0 : if ((!(Read((&((v__)->get_ObjectStoreCountParams())), msg__, iter__)))) {
1241 0 : FatalError("Error deserializing Union type");
1242 0 : return false;
1243 : }
1244 : // Sentinel = 'TObjectStoreCountParams'
1245 0 : if ((!((msg__)->ReadSentinel(iter__, 1876506348)))) {
1246 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1247 0 : return false;
1248 : }
1249 0 : return true;
1250 : }
1251 : case type__::TIndexGetParams:
1252 : {
1253 0 : IndexGetParams tmp = IndexGetParams();
1254 0 : (*(v__)) = tmp;
1255 0 : if ((!(Read((&((v__)->get_IndexGetParams())), msg__, iter__)))) {
1256 0 : FatalError("Error deserializing Union type");
1257 0 : return false;
1258 : }
1259 : // Sentinel = 'TIndexGetParams'
1260 0 : if ((!((msg__)->ReadSentinel(iter__, 1781506953)))) {
1261 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1262 0 : return false;
1263 : }
1264 0 : return true;
1265 : }
1266 : case type__::TIndexGetKeyParams:
1267 : {
1268 0 : IndexGetKeyParams tmp = IndexGetKeyParams();
1269 0 : (*(v__)) = tmp;
1270 0 : if ((!(Read((&((v__)->get_IndexGetKeyParams())), msg__, iter__)))) {
1271 0 : FatalError("Error deserializing Union type");
1272 0 : return false;
1273 : }
1274 : // Sentinel = 'TIndexGetKeyParams'
1275 0 : if ((!((msg__)->ReadSentinel(iter__, 1826675297)))) {
1276 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1277 0 : return false;
1278 : }
1279 0 : return true;
1280 : }
1281 : case type__::TIndexGetAllParams:
1282 : {
1283 0 : IndexGetAllParams tmp = IndexGetAllParams();
1284 0 : (*(v__)) = tmp;
1285 0 : if ((!(Read((&((v__)->get_IndexGetAllParams())), msg__, iter__)))) {
1286 0 : FatalError("Error deserializing Union type");
1287 0 : return false;
1288 : }
1289 : // Sentinel = 'TIndexGetAllParams'
1290 0 : if ((!((msg__)->ReadSentinel(iter__, 3516951325)))) {
1291 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1292 0 : return false;
1293 : }
1294 0 : return true;
1295 : }
1296 : case type__::TIndexGetAllKeysParams:
1297 : {
1298 0 : IndexGetAllKeysParams tmp = IndexGetAllKeysParams();
1299 0 : (*(v__)) = tmp;
1300 0 : if ((!(Read((&((v__)->get_IndexGetAllKeysParams())), msg__, iter__)))) {
1301 0 : FatalError("Error deserializing Union type");
1302 0 : return false;
1303 : }
1304 : // Sentinel = 'TIndexGetAllKeysParams'
1305 0 : if ((!((msg__)->ReadSentinel(iter__, 3505860041)))) {
1306 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1307 0 : return false;
1308 : }
1309 0 : return true;
1310 : }
1311 : case type__::TIndexCountParams:
1312 : {
1313 0 : IndexCountParams tmp = IndexCountParams();
1314 0 : (*(v__)) = tmp;
1315 0 : if ((!(Read((&((v__)->get_IndexCountParams())), msg__, iter__)))) {
1316 0 : FatalError("Error deserializing Union type");
1317 0 : return false;
1318 : }
1319 : // Sentinel = 'TIndexCountParams'
1320 0 : if ((!((msg__)->ReadSentinel(iter__, 895903702)))) {
1321 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1322 0 : return false;
1323 : }
1324 0 : return true;
1325 : }
1326 : default:
1327 : {
1328 0 : FatalError("unknown union type");
1329 0 : return false;
1330 : }
1331 : }
1332 : }
1333 :
1334 0 : auto PBackgroundIDBTransactionParent::Write(
1335 : const PBackgroundIDBTransactionParent* v__,
1336 : Message* msg__,
1337 : bool nullable__) -> void
1338 : {
1339 : int32_t id;
1340 0 : if ((!(v__))) {
1341 0 : if ((!(nullable__))) {
1342 0 : FatalError("NULL actor value passed to non-nullable param");
1343 : }
1344 0 : id = 0;
1345 : }
1346 : else {
1347 0 : id = (v__)->Id();
1348 0 : if ((1) == (id)) {
1349 0 : FatalError("actor has been |delete|d");
1350 : }
1351 : }
1352 :
1353 0 : Write(id, msg__);
1354 0 : }
1355 :
1356 0 : auto PBackgroundIDBTransactionParent::Read(
1357 : PBackgroundIDBTransactionParent** v__,
1358 : const Message* msg__,
1359 : PickleIterator* iter__,
1360 : bool nullable__) -> bool
1361 : {
1362 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBackgroundIDBTransaction", PBackgroundIDBTransactionMsgStart);
1363 0 : if ((actor).isNothing()) {
1364 0 : return false;
1365 : }
1366 :
1367 0 : (*(v__)) = static_cast<PBackgroundIDBTransactionParent*>((actor).value());
1368 0 : return true;
1369 : }
1370 :
1371 0 : auto PBackgroundIDBTransactionParent::Write(
1372 : const PBackgroundMutableFileParent* v__,
1373 : Message* msg__,
1374 : bool nullable__) -> void
1375 : {
1376 : int32_t id;
1377 0 : if ((!(v__))) {
1378 0 : if ((!(nullable__))) {
1379 0 : FatalError("NULL actor value passed to non-nullable param");
1380 : }
1381 0 : id = 0;
1382 : }
1383 : else {
1384 0 : id = (v__)->Id();
1385 0 : if ((1) == (id)) {
1386 0 : FatalError("actor has been |delete|d");
1387 : }
1388 : }
1389 :
1390 0 : Write(id, msg__);
1391 0 : }
1392 :
1393 0 : auto PBackgroundIDBTransactionParent::Read(
1394 : PBackgroundMutableFileParent** v__,
1395 : const Message* msg__,
1396 : PickleIterator* iter__,
1397 : bool nullable__) -> bool
1398 : {
1399 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBackgroundMutableFile", PBackgroundMutableFileMsgStart);
1400 0 : if ((actor).isNothing()) {
1401 0 : return false;
1402 : }
1403 :
1404 0 : (*(v__)) = static_cast<PBackgroundMutableFileParent*>((actor).value());
1405 0 : return true;
1406 : }
1407 :
1408 0 : auto PBackgroundIDBTransactionParent::Write(
1409 : const nsTArray<FileAddInfo>& v__,
1410 : Message* msg__) -> void
1411 : {
1412 0 : uint32_t length = (v__).Length();
1413 0 : Write(length, msg__);
1414 : // Sentinel = ('length', 'FileAddInfo[]')
1415 0 : (msg__)->WriteSentinel(4142766623);
1416 :
1417 0 : for (auto& elem : v__) {
1418 0 : Write(elem, msg__);
1419 : // Sentinel = 'FileAddInfo[]'
1420 0 : (msg__)->WriteSentinel(1896194666);
1421 : }
1422 0 : }
1423 :
1424 0 : auto PBackgroundIDBTransactionParent::Read(
1425 : nsTArray<FileAddInfo>* v__,
1426 : const Message* msg__,
1427 : PickleIterator* iter__) -> bool
1428 : {
1429 0 : nsTArray<FileAddInfo> fa;
1430 : uint32_t length;
1431 0 : if ((!(Read((&(length)), msg__, iter__)))) {
1432 0 : mozilla::ipc::ArrayLengthReadError("FileAddInfo[]");
1433 0 : return false;
1434 : }
1435 : // Sentinel = ('length', 'FileAddInfo[]')
1436 0 : if ((!((msg__)->ReadSentinel(iter__, 4142766623)))) {
1437 0 : mozilla::ipc::SentinelReadError("FileAddInfo[]");
1438 0 : return false;
1439 : }
1440 :
1441 0 : FileAddInfo* elems = (fa).AppendElements(length);
1442 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
1443 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
1444 0 : FatalError("Error deserializing 'FileAddInfo[i]'");
1445 0 : return false;
1446 : }
1447 : // Sentinel = 'FileAddInfo[]'
1448 0 : if ((!((msg__)->ReadSentinel(iter__, 1896194666)))) {
1449 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FileAddInfo[i]'");
1450 0 : return false;
1451 : }
1452 : }
1453 0 : (v__)->SwapElements(fa);
1454 0 : return true;
1455 : }
1456 :
1457 0 : auto PBackgroundIDBTransactionParent::Write(
1458 : const ObjectStoreOpenCursorParams& v__,
1459 : Message* msg__) -> void
1460 : {
1461 0 : Write((v__).objectStoreId(), msg__);
1462 : // Sentinel = 'objectStoreId'
1463 0 : (msg__)->WriteSentinel(2036303666);
1464 0 : Write((v__).optionalKeyRange(), msg__);
1465 : // Sentinel = 'optionalKeyRange'
1466 0 : (msg__)->WriteSentinel(2533597392);
1467 0 : Write((v__).direction(), msg__);
1468 : // Sentinel = 'direction'
1469 0 : (msg__)->WriteSentinel(1283484994);
1470 0 : }
1471 :
1472 0 : auto PBackgroundIDBTransactionParent::Read(
1473 : ObjectStoreOpenCursorParams* v__,
1474 : const Message* msg__,
1475 : PickleIterator* iter__) -> bool
1476 : {
1477 0 : if ((!(Read((&((v__)->objectStoreId())), msg__, iter__)))) {
1478 0 : FatalError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreOpenCursorParams'");
1479 0 : return false;
1480 : }
1481 : // Sentinel = 'objectStoreId'
1482 0 : if ((!((msg__)->ReadSentinel(iter__, 2036303666)))) {
1483 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreOpenCursorParams'");
1484 0 : return false;
1485 : }
1486 0 : if ((!(Read((&((v__)->optionalKeyRange())), msg__, iter__)))) {
1487 0 : FatalError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'ObjectStoreOpenCursorParams'");
1488 0 : return false;
1489 : }
1490 : // Sentinel = 'optionalKeyRange'
1491 0 : if ((!((msg__)->ReadSentinel(iter__, 2533597392)))) {
1492 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'ObjectStoreOpenCursorParams'");
1493 0 : return false;
1494 : }
1495 0 : if ((!(Read((&((v__)->direction())), msg__, iter__)))) {
1496 0 : FatalError("Error deserializing 'direction' (Direction) member of 'ObjectStoreOpenCursorParams'");
1497 0 : return false;
1498 : }
1499 : // Sentinel = 'direction'
1500 0 : if ((!((msg__)->ReadSentinel(iter__, 1283484994)))) {
1501 0 : mozilla::ipc::SentinelReadError("Error deserializing 'direction' (Direction) member of 'ObjectStoreOpenCursorParams'");
1502 0 : return false;
1503 : }
1504 0 : return true;
1505 : }
1506 :
1507 0 : auto PBackgroundIDBTransactionParent::Write(
1508 : const SerializedStructuredCloneWriteInfo& v__,
1509 : Message* msg__) -> void
1510 : {
1511 0 : Write((v__).data(), msg__);
1512 : // Sentinel = 'data'
1513 0 : (msg__)->WriteSentinel(843352540);
1514 0 : Write((v__).offsetToKeyProp(), msg__);
1515 : // Sentinel = 'offsetToKeyProp'
1516 0 : (msg__)->WriteSentinel(521537079);
1517 0 : }
1518 :
1519 0 : auto PBackgroundIDBTransactionParent::Read(
1520 : SerializedStructuredCloneWriteInfo* v__,
1521 : const Message* msg__,
1522 : PickleIterator* iter__) -> bool
1523 : {
1524 0 : if ((!(Read((&((v__)->data())), msg__, iter__)))) {
1525 0 : FatalError("Error deserializing 'data' (SerializedStructuredCloneBuffer) member of 'SerializedStructuredCloneWriteInfo'");
1526 0 : return false;
1527 : }
1528 : // Sentinel = 'data'
1529 0 : if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
1530 0 : mozilla::ipc::SentinelReadError("Error deserializing 'data' (SerializedStructuredCloneBuffer) member of 'SerializedStructuredCloneWriteInfo'");
1531 0 : return false;
1532 : }
1533 0 : if ((!(Read((&((v__)->offsetToKeyProp())), msg__, iter__)))) {
1534 0 : FatalError("Error deserializing 'offsetToKeyProp' (uint64_t) member of 'SerializedStructuredCloneWriteInfo'");
1535 0 : return false;
1536 : }
1537 : // Sentinel = 'offsetToKeyProp'
1538 0 : if ((!((msg__)->ReadSentinel(iter__, 521537079)))) {
1539 0 : mozilla::ipc::SentinelReadError("Error deserializing 'offsetToKeyProp' (uint64_t) member of 'SerializedStructuredCloneWriteInfo'");
1540 0 : return false;
1541 : }
1542 0 : return true;
1543 : }
1544 :
1545 0 : auto PBackgroundIDBTransactionParent::Write(
1546 : const OpenCursorParams& v__,
1547 : Message* msg__) -> void
1548 : {
1549 : typedef OpenCursorParams type__;
1550 0 : Write(int((v__).type()), msg__);
1551 : // Sentinel = 'OpenCursorParams'
1552 0 : (msg__)->WriteSentinel(2457402456);
1553 :
1554 0 : switch ((v__).type()) {
1555 : case type__::TObjectStoreOpenCursorParams:
1556 : {
1557 0 : Write((v__).get_ObjectStoreOpenCursorParams(), msg__);
1558 : // Sentinel = 'TObjectStoreOpenCursorParams'
1559 0 : (msg__)->WriteSentinel(362670232);
1560 0 : return;
1561 : }
1562 : case type__::TObjectStoreOpenKeyCursorParams:
1563 : {
1564 0 : Write((v__).get_ObjectStoreOpenKeyCursorParams(), msg__);
1565 : // Sentinel = 'TObjectStoreOpenKeyCursorParams'
1566 0 : (msg__)->WriteSentinel(2249927906);
1567 0 : return;
1568 : }
1569 : case type__::TIndexOpenCursorParams:
1570 : {
1571 0 : Write((v__).get_IndexOpenCursorParams(), msg__);
1572 : // Sentinel = 'TIndexOpenCursorParams'
1573 0 : (msg__)->WriteSentinel(1102643606);
1574 0 : return;
1575 : }
1576 : case type__::TIndexOpenKeyCursorParams:
1577 : {
1578 0 : Write((v__).get_IndexOpenKeyCursorParams(), msg__);
1579 : // Sentinel = 'TIndexOpenKeyCursorParams'
1580 0 : (msg__)->WriteSentinel(3100852688);
1581 0 : return;
1582 : }
1583 : default:
1584 : {
1585 0 : FatalError("unknown union type");
1586 0 : return;
1587 : }
1588 : }
1589 : }
1590 :
1591 0 : auto PBackgroundIDBTransactionParent::Read(
1592 : OpenCursorParams* v__,
1593 : const Message* msg__,
1594 : PickleIterator* iter__) -> bool
1595 : {
1596 : typedef OpenCursorParams type__;
1597 : int type;
1598 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1599 0 : mozilla::ipc::UnionTypeReadError("OpenCursorParams");
1600 0 : return false;
1601 : }
1602 : // Sentinel = 'OpenCursorParams'
1603 0 : if ((!((msg__)->ReadSentinel(iter__, 2457402456)))) {
1604 0 : mozilla::ipc::SentinelReadError("OpenCursorParams");
1605 0 : return false;
1606 : }
1607 :
1608 0 : switch (type) {
1609 : case type__::TObjectStoreOpenCursorParams:
1610 : {
1611 0 : ObjectStoreOpenCursorParams tmp = ObjectStoreOpenCursorParams();
1612 0 : (*(v__)) = tmp;
1613 0 : if ((!(Read((&((v__)->get_ObjectStoreOpenCursorParams())), msg__, iter__)))) {
1614 0 : FatalError("Error deserializing Union type");
1615 0 : return false;
1616 : }
1617 : // Sentinel = 'TObjectStoreOpenCursorParams'
1618 0 : if ((!((msg__)->ReadSentinel(iter__, 362670232)))) {
1619 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1620 0 : return false;
1621 : }
1622 0 : return true;
1623 : }
1624 : case type__::TObjectStoreOpenKeyCursorParams:
1625 : {
1626 0 : ObjectStoreOpenKeyCursorParams tmp = ObjectStoreOpenKeyCursorParams();
1627 0 : (*(v__)) = tmp;
1628 0 : if ((!(Read((&((v__)->get_ObjectStoreOpenKeyCursorParams())), msg__, iter__)))) {
1629 0 : FatalError("Error deserializing Union type");
1630 0 : return false;
1631 : }
1632 : // Sentinel = 'TObjectStoreOpenKeyCursorParams'
1633 0 : if ((!((msg__)->ReadSentinel(iter__, 2249927906)))) {
1634 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1635 0 : return false;
1636 : }
1637 0 : return true;
1638 : }
1639 : case type__::TIndexOpenCursorParams:
1640 : {
1641 0 : IndexOpenCursorParams tmp = IndexOpenCursorParams();
1642 0 : (*(v__)) = tmp;
1643 0 : if ((!(Read((&((v__)->get_IndexOpenCursorParams())), msg__, iter__)))) {
1644 0 : FatalError("Error deserializing Union type");
1645 0 : return false;
1646 : }
1647 : // Sentinel = 'TIndexOpenCursorParams'
1648 0 : if ((!((msg__)->ReadSentinel(iter__, 1102643606)))) {
1649 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1650 0 : return false;
1651 : }
1652 0 : return true;
1653 : }
1654 : case type__::TIndexOpenKeyCursorParams:
1655 : {
1656 0 : IndexOpenKeyCursorParams tmp = IndexOpenKeyCursorParams();
1657 0 : (*(v__)) = tmp;
1658 0 : if ((!(Read((&((v__)->get_IndexOpenKeyCursorParams())), msg__, iter__)))) {
1659 0 : FatalError("Error deserializing Union type");
1660 0 : return false;
1661 : }
1662 : // Sentinel = 'TIndexOpenKeyCursorParams'
1663 0 : if ((!((msg__)->ReadSentinel(iter__, 3100852688)))) {
1664 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1665 0 : return false;
1666 : }
1667 0 : return true;
1668 : }
1669 : default:
1670 : {
1671 0 : FatalError("unknown union type");
1672 0 : return false;
1673 : }
1674 : }
1675 : }
1676 :
1677 0 : auto PBackgroundIDBTransactionParent::Write(
1678 : const OptionalKeyRange& v__,
1679 : Message* msg__) -> void
1680 : {
1681 : typedef OptionalKeyRange type__;
1682 0 : Write(int((v__).type()), msg__);
1683 : // Sentinel = 'OptionalKeyRange'
1684 0 : (msg__)->WriteSentinel(3868659120);
1685 :
1686 0 : switch ((v__).type()) {
1687 : case type__::TSerializedKeyRange:
1688 : {
1689 0 : Write((v__).get_SerializedKeyRange(), msg__);
1690 : // Sentinel = 'TSerializedKeyRange'
1691 0 : (msg__)->WriteSentinel(3215595009);
1692 0 : return;
1693 : }
1694 : case type__::Tvoid_t:
1695 : {
1696 0 : Write((v__).get_void_t(), msg__);
1697 : // Sentinel = 'Tvoid_t'
1698 0 : (msg__)->WriteSentinel(3041273328);
1699 0 : return;
1700 : }
1701 : default:
1702 : {
1703 0 : FatalError("unknown union type");
1704 0 : return;
1705 : }
1706 : }
1707 : }
1708 :
1709 0 : auto PBackgroundIDBTransactionParent::Read(
1710 : OptionalKeyRange* v__,
1711 : const Message* msg__,
1712 : PickleIterator* iter__) -> bool
1713 : {
1714 : typedef OptionalKeyRange type__;
1715 : int type;
1716 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1717 0 : mozilla::ipc::UnionTypeReadError("OptionalKeyRange");
1718 0 : return false;
1719 : }
1720 : // Sentinel = 'OptionalKeyRange'
1721 0 : if ((!((msg__)->ReadSentinel(iter__, 3868659120)))) {
1722 0 : mozilla::ipc::SentinelReadError("OptionalKeyRange");
1723 0 : return false;
1724 : }
1725 :
1726 0 : switch (type) {
1727 : case type__::TSerializedKeyRange:
1728 : {
1729 0 : SerializedKeyRange tmp = SerializedKeyRange();
1730 0 : (*(v__)) = tmp;
1731 0 : if ((!(Read((&((v__)->get_SerializedKeyRange())), msg__, iter__)))) {
1732 0 : FatalError("Error deserializing Union type");
1733 0 : return false;
1734 : }
1735 : // Sentinel = 'TSerializedKeyRange'
1736 0 : if ((!((msg__)->ReadSentinel(iter__, 3215595009)))) {
1737 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1738 0 : return false;
1739 : }
1740 0 : return true;
1741 : }
1742 : case type__::Tvoid_t:
1743 : {
1744 : void_t tmp = void_t();
1745 0 : (*(v__)) = tmp;
1746 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
1747 0 : FatalError("Error deserializing Union type");
1748 0 : return false;
1749 : }
1750 : // Sentinel = 'Tvoid_t'
1751 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
1752 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1753 0 : return false;
1754 : }
1755 0 : return true;
1756 : }
1757 : default:
1758 : {
1759 0 : FatalError("unknown union type");
1760 0 : return false;
1761 : }
1762 : }
1763 : }
1764 :
1765 0 : auto PBackgroundIDBTransactionParent::Write(
1766 : const ObjectStorePutParams& v__,
1767 : Message* msg__) -> void
1768 : {
1769 0 : Write((v__).commonParams(), msg__);
1770 : // Sentinel = 'commonParams'
1771 0 : (msg__)->WriteSentinel(3132658281);
1772 0 : }
1773 :
1774 0 : auto PBackgroundIDBTransactionParent::Read(
1775 : ObjectStorePutParams* v__,
1776 : const Message* msg__,
1777 : PickleIterator* iter__) -> bool
1778 : {
1779 0 : if ((!(Read((&((v__)->commonParams())), msg__, iter__)))) {
1780 0 : FatalError("Error deserializing 'commonParams' (ObjectStoreAddPutParams) member of 'ObjectStorePutParams'");
1781 0 : return false;
1782 : }
1783 : // Sentinel = 'commonParams'
1784 0 : if ((!((msg__)->ReadSentinel(iter__, 3132658281)))) {
1785 0 : mozilla::ipc::SentinelReadError("Error deserializing 'commonParams' (ObjectStoreAddPutParams) member of 'ObjectStorePutParams'");
1786 0 : return false;
1787 : }
1788 0 : return true;
1789 : }
1790 :
1791 0 : auto PBackgroundIDBTransactionParent::Write(
1792 : const IndexGetKeyParams& v__,
1793 : Message* msg__) -> void
1794 : {
1795 0 : Write((v__).objectStoreId(), msg__);
1796 : // Sentinel = 'objectStoreId'
1797 0 : (msg__)->WriteSentinel(2036303666);
1798 0 : Write((v__).indexId(), msg__);
1799 : // Sentinel = 'indexId'
1800 0 : (msg__)->WriteSentinel(2324882252);
1801 0 : Write((v__).keyRange(), msg__);
1802 : // Sentinel = 'keyRange'
1803 0 : (msg__)->WriteSentinel(4120394740);
1804 0 : }
1805 :
1806 0 : auto PBackgroundIDBTransactionParent::Read(
1807 : IndexGetKeyParams* v__,
1808 : const Message* msg__,
1809 : PickleIterator* iter__) -> bool
1810 : {
1811 0 : if ((!(Read((&((v__)->objectStoreId())), msg__, iter__)))) {
1812 0 : FatalError("Error deserializing 'objectStoreId' (int64_t) member of 'IndexGetKeyParams'");
1813 0 : return false;
1814 : }
1815 : // Sentinel = 'objectStoreId'
1816 0 : if ((!((msg__)->ReadSentinel(iter__, 2036303666)))) {
1817 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectStoreId' (int64_t) member of 'IndexGetKeyParams'");
1818 0 : return false;
1819 : }
1820 0 : if ((!(Read((&((v__)->indexId())), msg__, iter__)))) {
1821 0 : FatalError("Error deserializing 'indexId' (int64_t) member of 'IndexGetKeyParams'");
1822 0 : return false;
1823 : }
1824 : // Sentinel = 'indexId'
1825 0 : if ((!((msg__)->ReadSentinel(iter__, 2324882252)))) {
1826 0 : mozilla::ipc::SentinelReadError("Error deserializing 'indexId' (int64_t) member of 'IndexGetKeyParams'");
1827 0 : return false;
1828 : }
1829 0 : if ((!(Read((&((v__)->keyRange())), msg__, iter__)))) {
1830 0 : FatalError("Error deserializing 'keyRange' (SerializedKeyRange) member of 'IndexGetKeyParams'");
1831 0 : return false;
1832 : }
1833 : // Sentinel = 'keyRange'
1834 0 : if ((!((msg__)->ReadSentinel(iter__, 4120394740)))) {
1835 0 : mozilla::ipc::SentinelReadError("Error deserializing 'keyRange' (SerializedKeyRange) member of 'IndexGetKeyParams'");
1836 0 : return false;
1837 : }
1838 0 : return true;
1839 : }
1840 :
1841 0 : auto PBackgroundIDBTransactionParent::Write(
1842 : const ObjectStoreGetAllParams& v__,
1843 : Message* msg__) -> void
1844 : {
1845 0 : Write((v__).objectStoreId(), msg__);
1846 : // Sentinel = 'objectStoreId'
1847 0 : (msg__)->WriteSentinel(2036303666);
1848 0 : Write((v__).optionalKeyRange(), msg__);
1849 : // Sentinel = 'optionalKeyRange'
1850 0 : (msg__)->WriteSentinel(2533597392);
1851 0 : Write((v__).limit(), msg__);
1852 : // Sentinel = 'limit'
1853 0 : (msg__)->WriteSentinel(3880566644);
1854 0 : }
1855 :
1856 0 : auto PBackgroundIDBTransactionParent::Read(
1857 : ObjectStoreGetAllParams* v__,
1858 : const Message* msg__,
1859 : PickleIterator* iter__) -> bool
1860 : {
1861 0 : if ((!(Read((&((v__)->objectStoreId())), msg__, iter__)))) {
1862 0 : FatalError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreGetAllParams'");
1863 0 : return false;
1864 : }
1865 : // Sentinel = 'objectStoreId'
1866 0 : if ((!((msg__)->ReadSentinel(iter__, 2036303666)))) {
1867 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreGetAllParams'");
1868 0 : return false;
1869 : }
1870 0 : if ((!(Read((&((v__)->optionalKeyRange())), msg__, iter__)))) {
1871 0 : FatalError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'ObjectStoreGetAllParams'");
1872 0 : return false;
1873 : }
1874 : // Sentinel = 'optionalKeyRange'
1875 0 : if ((!((msg__)->ReadSentinel(iter__, 2533597392)))) {
1876 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'ObjectStoreGetAllParams'");
1877 0 : return false;
1878 : }
1879 0 : if ((!(Read((&((v__)->limit())), msg__, iter__)))) {
1880 0 : FatalError("Error deserializing 'limit' (uint32_t) member of 'ObjectStoreGetAllParams'");
1881 0 : return false;
1882 : }
1883 : // Sentinel = 'limit'
1884 0 : if ((!((msg__)->ReadSentinel(iter__, 3880566644)))) {
1885 0 : mozilla::ipc::SentinelReadError("Error deserializing 'limit' (uint32_t) member of 'ObjectStoreGetAllParams'");
1886 0 : return false;
1887 : }
1888 0 : return true;
1889 : }
1890 :
1891 0 : auto PBackgroundIDBTransactionParent::Write(
1892 : const ObjectStoreAddPutParams& v__,
1893 : Message* msg__) -> void
1894 : {
1895 0 : Write((v__).objectStoreId(), msg__);
1896 : // Sentinel = 'objectStoreId'
1897 0 : (msg__)->WriteSentinel(2036303666);
1898 0 : Write((v__).cloneInfo(), msg__);
1899 : // Sentinel = 'cloneInfo'
1900 0 : (msg__)->WriteSentinel(517148166);
1901 0 : Write((v__).key(), msg__);
1902 : // Sentinel = 'key'
1903 0 : (msg__)->WriteSentinel(35142870);
1904 0 : Write((v__).indexUpdateInfos(), msg__);
1905 : // Sentinel = 'indexUpdateInfos'
1906 0 : (msg__)->WriteSentinel(2166177934);
1907 0 : Write((v__).fileAddInfos(), msg__);
1908 : // Sentinel = 'fileAddInfos'
1909 0 : (msg__)->WriteSentinel(4195013434);
1910 0 : }
1911 :
1912 0 : auto PBackgroundIDBTransactionParent::Read(
1913 : ObjectStoreAddPutParams* v__,
1914 : const Message* msg__,
1915 : PickleIterator* iter__) -> bool
1916 : {
1917 0 : if ((!(Read((&((v__)->objectStoreId())), msg__, iter__)))) {
1918 0 : FatalError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreAddPutParams'");
1919 0 : return false;
1920 : }
1921 : // Sentinel = 'objectStoreId'
1922 0 : if ((!((msg__)->ReadSentinel(iter__, 2036303666)))) {
1923 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreAddPutParams'");
1924 0 : return false;
1925 : }
1926 0 : if ((!(Read((&((v__)->cloneInfo())), msg__, iter__)))) {
1927 0 : FatalError("Error deserializing 'cloneInfo' (SerializedStructuredCloneWriteInfo) member of 'ObjectStoreAddPutParams'");
1928 0 : return false;
1929 : }
1930 : // Sentinel = 'cloneInfo'
1931 0 : if ((!((msg__)->ReadSentinel(iter__, 517148166)))) {
1932 0 : mozilla::ipc::SentinelReadError("Error deserializing 'cloneInfo' (SerializedStructuredCloneWriteInfo) member of 'ObjectStoreAddPutParams'");
1933 0 : return false;
1934 : }
1935 0 : if ((!(Read((&((v__)->key())), msg__, iter__)))) {
1936 0 : FatalError("Error deserializing 'key' (Key) member of 'ObjectStoreAddPutParams'");
1937 0 : return false;
1938 : }
1939 : // Sentinel = 'key'
1940 0 : if ((!((msg__)->ReadSentinel(iter__, 35142870)))) {
1941 0 : mozilla::ipc::SentinelReadError("Error deserializing 'key' (Key) member of 'ObjectStoreAddPutParams'");
1942 0 : return false;
1943 : }
1944 0 : if ((!(Read((&((v__)->indexUpdateInfos())), msg__, iter__)))) {
1945 0 : FatalError("Error deserializing 'indexUpdateInfos' (IndexUpdateInfo[]) member of 'ObjectStoreAddPutParams'");
1946 0 : return false;
1947 : }
1948 : // Sentinel = 'indexUpdateInfos'
1949 0 : if ((!((msg__)->ReadSentinel(iter__, 2166177934)))) {
1950 0 : mozilla::ipc::SentinelReadError("Error deserializing 'indexUpdateInfos' (IndexUpdateInfo[]) member of 'ObjectStoreAddPutParams'");
1951 0 : return false;
1952 : }
1953 0 : if ((!(Read((&((v__)->fileAddInfos())), msg__, iter__)))) {
1954 0 : FatalError("Error deserializing 'fileAddInfos' (FileAddInfo[]) member of 'ObjectStoreAddPutParams'");
1955 0 : return false;
1956 : }
1957 : // Sentinel = 'fileAddInfos'
1958 0 : if ((!((msg__)->ReadSentinel(iter__, 4195013434)))) {
1959 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileAddInfos' (FileAddInfo[]) member of 'ObjectStoreAddPutParams'");
1960 0 : return false;
1961 : }
1962 0 : return true;
1963 : }
1964 :
1965 0 : auto PBackgroundIDBTransactionParent::Write(
1966 : const ObjectStoreClearParams& v__,
1967 : Message* msg__) -> void
1968 : {
1969 0 : Write((v__).objectStoreId(), msg__);
1970 : // Sentinel = 'objectStoreId'
1971 0 : (msg__)->WriteSentinel(2036303666);
1972 0 : }
1973 :
1974 0 : auto PBackgroundIDBTransactionParent::Read(
1975 : ObjectStoreClearParams* v__,
1976 : const Message* msg__,
1977 : PickleIterator* iter__) -> bool
1978 : {
1979 0 : if ((!(Read((&((v__)->objectStoreId())), msg__, iter__)))) {
1980 0 : FatalError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreClearParams'");
1981 0 : return false;
1982 : }
1983 : // Sentinel = 'objectStoreId'
1984 0 : if ((!((msg__)->ReadSentinel(iter__, 2036303666)))) {
1985 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreClearParams'");
1986 0 : return false;
1987 : }
1988 0 : return true;
1989 : }
1990 :
1991 0 : auto PBackgroundIDBTransactionParent::Write(
1992 : const IndexUpdateInfo& v__,
1993 : Message* msg__) -> void
1994 : {
1995 0 : Write((v__).indexId(), msg__);
1996 : // Sentinel = 'indexId'
1997 0 : (msg__)->WriteSentinel(2324882252);
1998 0 : Write((v__).value(), msg__);
1999 : // Sentinel = 'value'
2000 0 : (msg__)->WriteSentinel(3456818542);
2001 0 : Write((v__).localizedValue(), msg__);
2002 : // Sentinel = 'localizedValue'
2003 0 : (msg__)->WriteSentinel(810322080);
2004 0 : }
2005 :
2006 0 : auto PBackgroundIDBTransactionParent::Read(
2007 : IndexUpdateInfo* v__,
2008 : const Message* msg__,
2009 : PickleIterator* iter__) -> bool
2010 : {
2011 0 : if ((!(Read((&((v__)->indexId())), msg__, iter__)))) {
2012 0 : FatalError("Error deserializing 'indexId' (int64_t) member of 'IndexUpdateInfo'");
2013 0 : return false;
2014 : }
2015 : // Sentinel = 'indexId'
2016 0 : if ((!((msg__)->ReadSentinel(iter__, 2324882252)))) {
2017 0 : mozilla::ipc::SentinelReadError("Error deserializing 'indexId' (int64_t) member of 'IndexUpdateInfo'");
2018 0 : return false;
2019 : }
2020 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
2021 0 : FatalError("Error deserializing 'value' (Key) member of 'IndexUpdateInfo'");
2022 0 : return false;
2023 : }
2024 : // Sentinel = 'value'
2025 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
2026 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (Key) member of 'IndexUpdateInfo'");
2027 0 : return false;
2028 : }
2029 0 : if ((!(Read((&((v__)->localizedValue())), msg__, iter__)))) {
2030 0 : FatalError("Error deserializing 'localizedValue' (Key) member of 'IndexUpdateInfo'");
2031 0 : return false;
2032 : }
2033 : // Sentinel = 'localizedValue'
2034 0 : if ((!((msg__)->ReadSentinel(iter__, 810322080)))) {
2035 0 : mozilla::ipc::SentinelReadError("Error deserializing 'localizedValue' (Key) member of 'IndexUpdateInfo'");
2036 0 : return false;
2037 : }
2038 0 : return true;
2039 : }
2040 :
2041 0 : auto PBackgroundIDBTransactionParent::Write(
2042 : const IndexGetAllParams& v__,
2043 : Message* msg__) -> void
2044 : {
2045 0 : Write((v__).objectStoreId(), msg__);
2046 : // Sentinel = 'objectStoreId'
2047 0 : (msg__)->WriteSentinel(2036303666);
2048 0 : Write((v__).indexId(), msg__);
2049 : // Sentinel = 'indexId'
2050 0 : (msg__)->WriteSentinel(2324882252);
2051 0 : Write((v__).optionalKeyRange(), msg__);
2052 : // Sentinel = 'optionalKeyRange'
2053 0 : (msg__)->WriteSentinel(2533597392);
2054 0 : Write((v__).limit(), msg__);
2055 : // Sentinel = 'limit'
2056 0 : (msg__)->WriteSentinel(3880566644);
2057 0 : }
2058 :
2059 0 : auto PBackgroundIDBTransactionParent::Read(
2060 : IndexGetAllParams* v__,
2061 : const Message* msg__,
2062 : PickleIterator* iter__) -> bool
2063 : {
2064 0 : if ((!(Read((&((v__)->objectStoreId())), msg__, iter__)))) {
2065 0 : FatalError("Error deserializing 'objectStoreId' (int64_t) member of 'IndexGetAllParams'");
2066 0 : return false;
2067 : }
2068 : // Sentinel = 'objectStoreId'
2069 0 : if ((!((msg__)->ReadSentinel(iter__, 2036303666)))) {
2070 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectStoreId' (int64_t) member of 'IndexGetAllParams'");
2071 0 : return false;
2072 : }
2073 0 : if ((!(Read((&((v__)->indexId())), msg__, iter__)))) {
2074 0 : FatalError("Error deserializing 'indexId' (int64_t) member of 'IndexGetAllParams'");
2075 0 : return false;
2076 : }
2077 : // Sentinel = 'indexId'
2078 0 : if ((!((msg__)->ReadSentinel(iter__, 2324882252)))) {
2079 0 : mozilla::ipc::SentinelReadError("Error deserializing 'indexId' (int64_t) member of 'IndexGetAllParams'");
2080 0 : return false;
2081 : }
2082 0 : if ((!(Read((&((v__)->optionalKeyRange())), msg__, iter__)))) {
2083 0 : FatalError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'IndexGetAllParams'");
2084 0 : return false;
2085 : }
2086 : // Sentinel = 'optionalKeyRange'
2087 0 : if ((!((msg__)->ReadSentinel(iter__, 2533597392)))) {
2088 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'IndexGetAllParams'");
2089 0 : return false;
2090 : }
2091 0 : if ((!(Read((&((v__)->limit())), msg__, iter__)))) {
2092 0 : FatalError("Error deserializing 'limit' (uint32_t) member of 'IndexGetAllParams'");
2093 0 : return false;
2094 : }
2095 : // Sentinel = 'limit'
2096 0 : if ((!((msg__)->ReadSentinel(iter__, 3880566644)))) {
2097 0 : mozilla::ipc::SentinelReadError("Error deserializing 'limit' (uint32_t) member of 'IndexGetAllParams'");
2098 0 : return false;
2099 : }
2100 0 : return true;
2101 : }
2102 :
2103 0 : auto PBackgroundIDBTransactionParent::Write(
2104 : const IndexGetAllKeysParams& v__,
2105 : Message* msg__) -> void
2106 : {
2107 0 : Write((v__).objectStoreId(), msg__);
2108 : // Sentinel = 'objectStoreId'
2109 0 : (msg__)->WriteSentinel(2036303666);
2110 0 : Write((v__).indexId(), msg__);
2111 : // Sentinel = 'indexId'
2112 0 : (msg__)->WriteSentinel(2324882252);
2113 0 : Write((v__).optionalKeyRange(), msg__);
2114 : // Sentinel = 'optionalKeyRange'
2115 0 : (msg__)->WriteSentinel(2533597392);
2116 0 : Write((v__).limit(), msg__);
2117 : // Sentinel = 'limit'
2118 0 : (msg__)->WriteSentinel(3880566644);
2119 0 : }
2120 :
2121 0 : auto PBackgroundIDBTransactionParent::Read(
2122 : IndexGetAllKeysParams* v__,
2123 : const Message* msg__,
2124 : PickleIterator* iter__) -> bool
2125 : {
2126 0 : if ((!(Read((&((v__)->objectStoreId())), msg__, iter__)))) {
2127 0 : FatalError("Error deserializing 'objectStoreId' (int64_t) member of 'IndexGetAllKeysParams'");
2128 0 : return false;
2129 : }
2130 : // Sentinel = 'objectStoreId'
2131 0 : if ((!((msg__)->ReadSentinel(iter__, 2036303666)))) {
2132 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectStoreId' (int64_t) member of 'IndexGetAllKeysParams'");
2133 0 : return false;
2134 : }
2135 0 : if ((!(Read((&((v__)->indexId())), msg__, iter__)))) {
2136 0 : FatalError("Error deserializing 'indexId' (int64_t) member of 'IndexGetAllKeysParams'");
2137 0 : return false;
2138 : }
2139 : // Sentinel = 'indexId'
2140 0 : if ((!((msg__)->ReadSentinel(iter__, 2324882252)))) {
2141 0 : mozilla::ipc::SentinelReadError("Error deserializing 'indexId' (int64_t) member of 'IndexGetAllKeysParams'");
2142 0 : return false;
2143 : }
2144 0 : if ((!(Read((&((v__)->optionalKeyRange())), msg__, iter__)))) {
2145 0 : FatalError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'IndexGetAllKeysParams'");
2146 0 : return false;
2147 : }
2148 : // Sentinel = 'optionalKeyRange'
2149 0 : if ((!((msg__)->ReadSentinel(iter__, 2533597392)))) {
2150 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'IndexGetAllKeysParams'");
2151 0 : return false;
2152 : }
2153 0 : if ((!(Read((&((v__)->limit())), msg__, iter__)))) {
2154 0 : FatalError("Error deserializing 'limit' (uint32_t) member of 'IndexGetAllKeysParams'");
2155 0 : return false;
2156 : }
2157 : // Sentinel = 'limit'
2158 0 : if ((!((msg__)->ReadSentinel(iter__, 3880566644)))) {
2159 0 : mozilla::ipc::SentinelReadError("Error deserializing 'limit' (uint32_t) member of 'IndexGetAllKeysParams'");
2160 0 : return false;
2161 : }
2162 0 : return true;
2163 : }
2164 :
2165 0 : auto PBackgroundIDBTransactionParent::Write(
2166 : const PBackgroundIDBDatabaseFileParent* v__,
2167 : Message* msg__,
2168 : bool nullable__) -> void
2169 : {
2170 : int32_t id;
2171 0 : if ((!(v__))) {
2172 0 : if ((!(nullable__))) {
2173 0 : FatalError("NULL actor value passed to non-nullable param");
2174 : }
2175 0 : id = 0;
2176 : }
2177 : else {
2178 0 : id = (v__)->Id();
2179 0 : if ((1) == (id)) {
2180 0 : FatalError("actor has been |delete|d");
2181 : }
2182 : }
2183 :
2184 0 : Write(id, msg__);
2185 0 : }
2186 :
2187 0 : auto PBackgroundIDBTransactionParent::Read(
2188 : PBackgroundIDBDatabaseFileParent** v__,
2189 : const Message* msg__,
2190 : PickleIterator* iter__,
2191 : bool nullable__) -> bool
2192 : {
2193 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBackgroundIDBDatabaseFile", PBackgroundIDBDatabaseFileMsgStart);
2194 0 : if ((actor).isNothing()) {
2195 0 : return false;
2196 : }
2197 :
2198 0 : (*(v__)) = static_cast<PBackgroundIDBDatabaseFileParent*>((actor).value());
2199 0 : return true;
2200 : }
2201 :
2202 0 : auto PBackgroundIDBTransactionParent::Write(
2203 : const IndexOpenCursorParams& v__,
2204 : Message* msg__) -> void
2205 : {
2206 0 : Write((v__).objectStoreId(), msg__);
2207 : // Sentinel = 'objectStoreId'
2208 0 : (msg__)->WriteSentinel(2036303666);
2209 0 : Write((v__).indexId(), msg__);
2210 : // Sentinel = 'indexId'
2211 0 : (msg__)->WriteSentinel(2324882252);
2212 0 : Write((v__).optionalKeyRange(), msg__);
2213 : // Sentinel = 'optionalKeyRange'
2214 0 : (msg__)->WriteSentinel(2533597392);
2215 0 : Write((v__).direction(), msg__);
2216 : // Sentinel = 'direction'
2217 0 : (msg__)->WriteSentinel(1283484994);
2218 0 : }
2219 :
2220 0 : auto PBackgroundIDBTransactionParent::Read(
2221 : IndexOpenCursorParams* v__,
2222 : const Message* msg__,
2223 : PickleIterator* iter__) -> bool
2224 : {
2225 0 : if ((!(Read((&((v__)->objectStoreId())), msg__, iter__)))) {
2226 0 : FatalError("Error deserializing 'objectStoreId' (int64_t) member of 'IndexOpenCursorParams'");
2227 0 : return false;
2228 : }
2229 : // Sentinel = 'objectStoreId'
2230 0 : if ((!((msg__)->ReadSentinel(iter__, 2036303666)))) {
2231 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectStoreId' (int64_t) member of 'IndexOpenCursorParams'");
2232 0 : return false;
2233 : }
2234 0 : if ((!(Read((&((v__)->indexId())), msg__, iter__)))) {
2235 0 : FatalError("Error deserializing 'indexId' (int64_t) member of 'IndexOpenCursorParams'");
2236 0 : return false;
2237 : }
2238 : // Sentinel = 'indexId'
2239 0 : if ((!((msg__)->ReadSentinel(iter__, 2324882252)))) {
2240 0 : mozilla::ipc::SentinelReadError("Error deserializing 'indexId' (int64_t) member of 'IndexOpenCursorParams'");
2241 0 : return false;
2242 : }
2243 0 : if ((!(Read((&((v__)->optionalKeyRange())), msg__, iter__)))) {
2244 0 : FatalError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'IndexOpenCursorParams'");
2245 0 : return false;
2246 : }
2247 : // Sentinel = 'optionalKeyRange'
2248 0 : if ((!((msg__)->ReadSentinel(iter__, 2533597392)))) {
2249 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'IndexOpenCursorParams'");
2250 0 : return false;
2251 : }
2252 0 : if ((!(Read((&((v__)->direction())), msg__, iter__)))) {
2253 0 : FatalError("Error deserializing 'direction' (Direction) member of 'IndexOpenCursorParams'");
2254 0 : return false;
2255 : }
2256 : // Sentinel = 'direction'
2257 0 : if ((!((msg__)->ReadSentinel(iter__, 1283484994)))) {
2258 0 : mozilla::ipc::SentinelReadError("Error deserializing 'direction' (Direction) member of 'IndexOpenCursorParams'");
2259 0 : return false;
2260 : }
2261 0 : return true;
2262 : }
2263 :
2264 0 : auto PBackgroundIDBTransactionParent::Write(
2265 : const SerializedKeyRange& v__,
2266 : Message* msg__) -> void
2267 : {
2268 0 : Write((v__).lower(), msg__);
2269 : // Sentinel = 'lower'
2270 0 : (msg__)->WriteSentinel(2752837090);
2271 0 : Write((v__).upper(), msg__);
2272 : // Sentinel = 'upper'
2273 0 : (msg__)->WriteSentinel(799778945);
2274 0 : Write((v__).lowerOpen(), msg__);
2275 : // Sentinel = 'lowerOpen'
2276 0 : (msg__)->WriteSentinel(1536551642);
2277 0 : Write((v__).upperOpen(), msg__);
2278 : // Sentinel = 'upperOpen'
2279 0 : (msg__)->WriteSentinel(1975212941);
2280 0 : Write((v__).isOnly(), msg__);
2281 : // Sentinel = 'isOnly'
2282 0 : (msg__)->WriteSentinel(1446384824);
2283 0 : }
2284 :
2285 0 : auto PBackgroundIDBTransactionParent::Read(
2286 : SerializedKeyRange* v__,
2287 : const Message* msg__,
2288 : PickleIterator* iter__) -> bool
2289 : {
2290 0 : if ((!(Read((&((v__)->lower())), msg__, iter__)))) {
2291 0 : FatalError("Error deserializing 'lower' (Key) member of 'SerializedKeyRange'");
2292 0 : return false;
2293 : }
2294 : // Sentinel = 'lower'
2295 0 : if ((!((msg__)->ReadSentinel(iter__, 2752837090)))) {
2296 0 : mozilla::ipc::SentinelReadError("Error deserializing 'lower' (Key) member of 'SerializedKeyRange'");
2297 0 : return false;
2298 : }
2299 0 : if ((!(Read((&((v__)->upper())), msg__, iter__)))) {
2300 0 : FatalError("Error deserializing 'upper' (Key) member of 'SerializedKeyRange'");
2301 0 : return false;
2302 : }
2303 : // Sentinel = 'upper'
2304 0 : if ((!((msg__)->ReadSentinel(iter__, 799778945)))) {
2305 0 : mozilla::ipc::SentinelReadError("Error deserializing 'upper' (Key) member of 'SerializedKeyRange'");
2306 0 : return false;
2307 : }
2308 0 : if ((!(Read((&((v__)->lowerOpen())), msg__, iter__)))) {
2309 0 : FatalError("Error deserializing 'lowerOpen' (bool) member of 'SerializedKeyRange'");
2310 0 : return false;
2311 : }
2312 : // Sentinel = 'lowerOpen'
2313 0 : if ((!((msg__)->ReadSentinel(iter__, 1536551642)))) {
2314 0 : mozilla::ipc::SentinelReadError("Error deserializing 'lowerOpen' (bool) member of 'SerializedKeyRange'");
2315 0 : return false;
2316 : }
2317 0 : if ((!(Read((&((v__)->upperOpen())), msg__, iter__)))) {
2318 0 : FatalError("Error deserializing 'upperOpen' (bool) member of 'SerializedKeyRange'");
2319 0 : return false;
2320 : }
2321 : // Sentinel = 'upperOpen'
2322 0 : if ((!((msg__)->ReadSentinel(iter__, 1975212941)))) {
2323 0 : mozilla::ipc::SentinelReadError("Error deserializing 'upperOpen' (bool) member of 'SerializedKeyRange'");
2324 0 : return false;
2325 : }
2326 0 : if ((!(Read((&((v__)->isOnly())), msg__, iter__)))) {
2327 0 : FatalError("Error deserializing 'isOnly' (bool) member of 'SerializedKeyRange'");
2328 0 : return false;
2329 : }
2330 : // Sentinel = 'isOnly'
2331 0 : if ((!((msg__)->ReadSentinel(iter__, 1446384824)))) {
2332 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isOnly' (bool) member of 'SerializedKeyRange'");
2333 0 : return false;
2334 : }
2335 0 : return true;
2336 : }
2337 :
2338 0 : auto PBackgroundIDBTransactionParent::Write(
2339 : const ObjectStoreGetParams& v__,
2340 : Message* msg__) -> void
2341 : {
2342 0 : Write((v__).objectStoreId(), msg__);
2343 : // Sentinel = 'objectStoreId'
2344 0 : (msg__)->WriteSentinel(2036303666);
2345 0 : Write((v__).keyRange(), msg__);
2346 : // Sentinel = 'keyRange'
2347 0 : (msg__)->WriteSentinel(4120394740);
2348 0 : }
2349 :
2350 0 : auto PBackgroundIDBTransactionParent::Read(
2351 : ObjectStoreGetParams* v__,
2352 : const Message* msg__,
2353 : PickleIterator* iter__) -> bool
2354 : {
2355 0 : if ((!(Read((&((v__)->objectStoreId())), msg__, iter__)))) {
2356 0 : FatalError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreGetParams'");
2357 0 : return false;
2358 : }
2359 : // Sentinel = 'objectStoreId'
2360 0 : if ((!((msg__)->ReadSentinel(iter__, 2036303666)))) {
2361 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectStoreId' (int64_t) member of 'ObjectStoreGetParams'");
2362 0 : return false;
2363 : }
2364 0 : if ((!(Read((&((v__)->keyRange())), msg__, iter__)))) {
2365 0 : FatalError("Error deserializing 'keyRange' (SerializedKeyRange) member of 'ObjectStoreGetParams'");
2366 0 : return false;
2367 : }
2368 : // Sentinel = 'keyRange'
2369 0 : if ((!((msg__)->ReadSentinel(iter__, 4120394740)))) {
2370 0 : mozilla::ipc::SentinelReadError("Error deserializing 'keyRange' (SerializedKeyRange) member of 'ObjectStoreGetParams'");
2371 0 : return false;
2372 : }
2373 0 : return true;
2374 : }
2375 :
2376 0 : auto PBackgroundIDBTransactionParent::Write(
2377 : const IndexCountParams& v__,
2378 : Message* msg__) -> void
2379 : {
2380 0 : Write((v__).objectStoreId(), msg__);
2381 : // Sentinel = 'objectStoreId'
2382 0 : (msg__)->WriteSentinel(2036303666);
2383 0 : Write((v__).indexId(), msg__);
2384 : // Sentinel = 'indexId'
2385 0 : (msg__)->WriteSentinel(2324882252);
2386 0 : Write((v__).optionalKeyRange(), msg__);
2387 : // Sentinel = 'optionalKeyRange'
2388 0 : (msg__)->WriteSentinel(2533597392);
2389 0 : }
2390 :
2391 0 : auto PBackgroundIDBTransactionParent::Read(
2392 : IndexCountParams* v__,
2393 : const Message* msg__,
2394 : PickleIterator* iter__) -> bool
2395 : {
2396 0 : if ((!(Read((&((v__)->objectStoreId())), msg__, iter__)))) {
2397 0 : FatalError("Error deserializing 'objectStoreId' (int64_t) member of 'IndexCountParams'");
2398 0 : return false;
2399 : }
2400 : // Sentinel = 'objectStoreId'
2401 0 : if ((!((msg__)->ReadSentinel(iter__, 2036303666)))) {
2402 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectStoreId' (int64_t) member of 'IndexCountParams'");
2403 0 : return false;
2404 : }
2405 0 : if ((!(Read((&((v__)->indexId())), msg__, iter__)))) {
2406 0 : FatalError("Error deserializing 'indexId' (int64_t) member of 'IndexCountParams'");
2407 0 : return false;
2408 : }
2409 : // Sentinel = 'indexId'
2410 0 : if ((!((msg__)->ReadSentinel(iter__, 2324882252)))) {
2411 0 : mozilla::ipc::SentinelReadError("Error deserializing 'indexId' (int64_t) member of 'IndexCountParams'");
2412 0 : return false;
2413 : }
2414 0 : if ((!(Read((&((v__)->optionalKeyRange())), msg__, iter__)))) {
2415 0 : FatalError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'IndexCountParams'");
2416 0 : return false;
2417 : }
2418 : // Sentinel = 'optionalKeyRange'
2419 0 : if ((!((msg__)->ReadSentinel(iter__, 2533597392)))) {
2420 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'IndexCountParams'");
2421 0 : return false;
2422 : }
2423 0 : return true;
2424 : }
2425 :
2426 0 : auto PBackgroundIDBTransactionParent::Write(
2427 : const IndexOpenKeyCursorParams& v__,
2428 : Message* msg__) -> void
2429 : {
2430 0 : Write((v__).objectStoreId(), msg__);
2431 : // Sentinel = 'objectStoreId'
2432 0 : (msg__)->WriteSentinel(2036303666);
2433 0 : Write((v__).indexId(), msg__);
2434 : // Sentinel = 'indexId'
2435 0 : (msg__)->WriteSentinel(2324882252);
2436 0 : Write((v__).optionalKeyRange(), msg__);
2437 : // Sentinel = 'optionalKeyRange'
2438 0 : (msg__)->WriteSentinel(2533597392);
2439 0 : Write((v__).direction(), msg__);
2440 : // Sentinel = 'direction'
2441 0 : (msg__)->WriteSentinel(1283484994);
2442 0 : }
2443 :
2444 0 : auto PBackgroundIDBTransactionParent::Read(
2445 : IndexOpenKeyCursorParams* v__,
2446 : const Message* msg__,
2447 : PickleIterator* iter__) -> bool
2448 : {
2449 0 : if ((!(Read((&((v__)->objectStoreId())), msg__, iter__)))) {
2450 0 : FatalError("Error deserializing 'objectStoreId' (int64_t) member of 'IndexOpenKeyCursorParams'");
2451 0 : return false;
2452 : }
2453 : // Sentinel = 'objectStoreId'
2454 0 : if ((!((msg__)->ReadSentinel(iter__, 2036303666)))) {
2455 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectStoreId' (int64_t) member of 'IndexOpenKeyCursorParams'");
2456 0 : return false;
2457 : }
2458 0 : if ((!(Read((&((v__)->indexId())), msg__, iter__)))) {
2459 0 : FatalError("Error deserializing 'indexId' (int64_t) member of 'IndexOpenKeyCursorParams'");
2460 0 : return false;
2461 : }
2462 : // Sentinel = 'indexId'
2463 0 : if ((!((msg__)->ReadSentinel(iter__, 2324882252)))) {
2464 0 : mozilla::ipc::SentinelReadError("Error deserializing 'indexId' (int64_t) member of 'IndexOpenKeyCursorParams'");
2465 0 : return false;
2466 : }
2467 0 : if ((!(Read((&((v__)->optionalKeyRange())), msg__, iter__)))) {
2468 0 : FatalError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'IndexOpenKeyCursorParams'");
2469 0 : return false;
2470 : }
2471 : // Sentinel = 'optionalKeyRange'
2472 0 : if ((!((msg__)->ReadSentinel(iter__, 2533597392)))) {
2473 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalKeyRange' (OptionalKeyRange) member of 'IndexOpenKeyCursorParams'");
2474 0 : return false;
2475 : }
2476 0 : if ((!(Read((&((v__)->direction())), msg__, iter__)))) {
2477 0 : FatalError("Error deserializing 'direction' (Direction) member of 'IndexOpenKeyCursorParams'");
2478 0 : return false;
2479 : }
2480 : // Sentinel = 'direction'
2481 0 : if ((!((msg__)->ReadSentinel(iter__, 1283484994)))) {
2482 0 : mozilla::ipc::SentinelReadError("Error deserializing 'direction' (Direction) member of 'IndexOpenKeyCursorParams'");
2483 0 : return false;
2484 : }
2485 0 : return true;
2486 : }
2487 :
2488 :
2489 :
2490 : } // namespace indexedDB
2491 : } // namespace dom
2492 : } // namespace mozilla
|