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