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