Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/PQuotaRequest.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/quota/PQuotaParent.h"
8
#include "mozilla/dom/quota/PQuotaChild.h"
9
#include "mozilla/dom/quota/PQuotaRequest.h"
10
11
namespace mozilla {
12
namespace dom {
13
namespace quota {
14
namespace PQuotaRequest {
15
16
nsresult
17
CreateEndpoints(
18
        base::ProcessId aParentDestPid,
19
        base::ProcessId aChildDestPid,
20
        mozilla::ipc::Endpoint<mozilla::dom::quota::PQuotaRequestParent>* aParent,
21
        mozilla::ipc::Endpoint<mozilla::dom::quota::PQuotaRequestChild>* aChild)
22
0
{
23
0
    return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, aParent, aChild);
24
0
}
25
IPC::Message*
26
Msg___delete__(int32_t routingId)
27
0
{
28
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));
29
0
}
30
IPC::Message*
31
Reply___delete__(int32_t routingId)
32
0
{
33
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));
34
0
}
35
36
} // namespace PQuotaRequest
37
} // namespace quota
38
} // namespace dom
39
} // namespace mozilla
40
41
//-----------------------------------------------------------------------------
42
// Method definitions for the IPDL type |struct InitResponse|
43
//
44
namespace mozilla {
45
namespace dom {
46
namespace quota {
47
auto InitResponse::operator==(const InitResponse& _o) const -> bool
48
0
{
49
0
    return true;
50
0
}
51
52
auto InitResponse::operator!=(const InitResponse& _o) const -> bool
53
0
{
54
0
    return (!(operator==(_o)));
55
0
}
56
57
} // namespace quota
58
} // namespace dom
59
} // namespace mozilla
60
61
namespace mozilla {
62
namespace ipc {
63
auto IPDLParamTraits<mozilla::dom::quota::InitResponse>::Write(
64
        IPC::Message* aMsg,
65
        mozilla::ipc::IProtocol* aActor,
66
        const paramType& aVar) -> void
67
0
{
68
0
}
69
70
auto IPDLParamTraits<mozilla::dom::quota::InitResponse>::Read(
71
        const IPC::Message* aMsg,
72
        PickleIterator* aIter,
73
        mozilla::ipc::IProtocol* aActor,
74
        paramType* aVar) -> bool
75
0
{
76
0
    return true;
77
0
}
78
79
} // namespace ipc
80
} // namespace mozilla
81
82
//-----------------------------------------------------------------------------
83
// Method definitions for the IPDL type |struct InitOriginResponse|
84
//
85
namespace mozilla {
86
namespace dom {
87
namespace quota {
88
auto InitOriginResponse::operator==(const InitOriginResponse& _o) const -> bool
89
0
{
90
0
    if ((!((created()) == ((_o).created())))) {
91
0
        return false;
92
0
    }
93
0
    return true;
94
0
}
95
96
auto InitOriginResponse::operator!=(const InitOriginResponse& _o) const -> bool
97
0
{
98
0
    return (!(operator==(_o)));
99
0
}
100
101
} // namespace quota
102
} // namespace dom
103
} // namespace mozilla
104
105
namespace mozilla {
106
namespace ipc {
107
auto IPDLParamTraits<mozilla::dom::quota::InitOriginResponse>::Write(
108
        IPC::Message* aMsg,
109
        mozilla::ipc::IProtocol* aActor,
110
        const paramType& aVar) -> void
111
0
{
112
0
    WriteIPDLParam(aMsg, aActor, (aVar).created());
113
0
    // Sentinel = 'created'
114
0
    (aMsg)->WriteSentinel(1060709095);
115
0
}
116
117
auto IPDLParamTraits<mozilla::dom::quota::InitOriginResponse>::Read(
118
        const IPC::Message* aMsg,
119
        PickleIterator* aIter,
120
        mozilla::ipc::IProtocol* aActor,
121
        paramType* aVar) -> bool
122
0
{
123
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->created())))))) {
124
0
        (aActor)->FatalError("Error deserializing 'created' (bool) member of 'InitOriginResponse'");
125
0
        return false;
126
0
    }
127
0
    // Sentinel = 'created'
128
0
    if ((!((aMsg)->ReadSentinel(aIter, 1060709095)))) {
129
0
        mozilla::ipc::SentinelReadError("Error deserializing 'created' (bool) member of 'InitOriginResponse'");
130
0
        return false;
131
0
    }
132
0
    return true;
133
0
}
134
135
} // namespace ipc
136
} // namespace mozilla
137
138
//-----------------------------------------------------------------------------
139
// Method definitions for the IPDL type |struct ClearOriginResponse|
140
//
141
namespace mozilla {
142
namespace dom {
143
namespace quota {
144
auto ClearOriginResponse::operator==(const ClearOriginResponse& _o) const -> bool
145
0
{
146
0
    return true;
147
0
}
148
149
auto ClearOriginResponse::operator!=(const ClearOriginResponse& _o) const -> bool
150
0
{
151
0
    return (!(operator==(_o)));
152
0
}
153
154
} // namespace quota
155
} // namespace dom
156
} // namespace mozilla
157
158
namespace mozilla {
159
namespace ipc {
160
auto IPDLParamTraits<mozilla::dom::quota::ClearOriginResponse>::Write(
161
        IPC::Message* aMsg,
162
        mozilla::ipc::IProtocol* aActor,
163
        const paramType& aVar) -> void
164
0
{
165
0
}
166
167
auto IPDLParamTraits<mozilla::dom::quota::ClearOriginResponse>::Read(
168
        const IPC::Message* aMsg,
169
        PickleIterator* aIter,
170
        mozilla::ipc::IProtocol* aActor,
171
        paramType* aVar) -> bool
172
0
{
173
0
    return true;
174
0
}
175
176
} // namespace ipc
177
} // namespace mozilla
178
179
//-----------------------------------------------------------------------------
180
// Method definitions for the IPDL type |struct ClearDataResponse|
181
//
182
namespace mozilla {
183
namespace dom {
184
namespace quota {
185
auto ClearDataResponse::operator==(const ClearDataResponse& _o) const -> bool
186
0
{
187
0
    return true;
188
0
}
189
190
auto ClearDataResponse::operator!=(const ClearDataResponse& _o) const -> bool
191
0
{
192
0
    return (!(operator==(_o)));
193
0
}
194
195
} // namespace quota
196
} // namespace dom
197
} // namespace mozilla
198
199
namespace mozilla {
200
namespace ipc {
201
auto IPDLParamTraits<mozilla::dom::quota::ClearDataResponse>::Write(
202
        IPC::Message* aMsg,
203
        mozilla::ipc::IProtocol* aActor,
204
        const paramType& aVar) -> void
205
0
{
206
0
}
207
208
auto IPDLParamTraits<mozilla::dom::quota::ClearDataResponse>::Read(
209
        const IPC::Message* aMsg,
210
        PickleIterator* aIter,
211
        mozilla::ipc::IProtocol* aActor,
212
        paramType* aVar) -> bool
213
0
{
214
0
    return true;
215
0
}
216
217
} // namespace ipc
218
} // namespace mozilla
219
220
//-----------------------------------------------------------------------------
221
// Method definitions for the IPDL type |struct ClearAllResponse|
222
//
223
namespace mozilla {
224
namespace dom {
225
namespace quota {
226
auto ClearAllResponse::operator==(const ClearAllResponse& _o) const -> bool
227
0
{
228
0
    return true;
229
0
}
230
231
auto ClearAllResponse::operator!=(const ClearAllResponse& _o) const -> bool
232
0
{
233
0
    return (!(operator==(_o)));
234
0
}
235
236
} // namespace quota
237
} // namespace dom
238
} // namespace mozilla
239
240
namespace mozilla {
241
namespace ipc {
242
auto IPDLParamTraits<mozilla::dom::quota::ClearAllResponse>::Write(
243
        IPC::Message* aMsg,
244
        mozilla::ipc::IProtocol* aActor,
245
        const paramType& aVar) -> void
246
0
{
247
0
}
248
249
auto IPDLParamTraits<mozilla::dom::quota::ClearAllResponse>::Read(
250
        const IPC::Message* aMsg,
251
        PickleIterator* aIter,
252
        mozilla::ipc::IProtocol* aActor,
253
        paramType* aVar) -> bool
254
0
{
255
0
    return true;
256
0
}
257
258
} // namespace ipc
259
} // namespace mozilla
260
261
//-----------------------------------------------------------------------------
262
// Method definitions for the IPDL type |struct ResetAllResponse|
263
//
264
namespace mozilla {
265
namespace dom {
266
namespace quota {
267
auto ResetAllResponse::operator==(const ResetAllResponse& _o) const -> bool
268
0
{
269
0
    return true;
270
0
}
271
272
auto ResetAllResponse::operator!=(const ResetAllResponse& _o) const -> bool
273
0
{
274
0
    return (!(operator==(_o)));
275
0
}
276
277
} // namespace quota
278
} // namespace dom
279
} // namespace mozilla
280
281
namespace mozilla {
282
namespace ipc {
283
auto IPDLParamTraits<mozilla::dom::quota::ResetAllResponse>::Write(
284
        IPC::Message* aMsg,
285
        mozilla::ipc::IProtocol* aActor,
286
        const paramType& aVar) -> void
287
0
{
288
0
}
289
290
auto IPDLParamTraits<mozilla::dom::quota::ResetAllResponse>::Read(
291
        const IPC::Message* aMsg,
292
        PickleIterator* aIter,
293
        mozilla::ipc::IProtocol* aActor,
294
        paramType* aVar) -> bool
295
0
{
296
0
    return true;
297
0
}
298
299
} // namespace ipc
300
} // namespace mozilla
301
302
//-----------------------------------------------------------------------------
303
// Method definitions for the IPDL type |struct PersistedResponse|
304
//
305
namespace mozilla {
306
namespace dom {
307
namespace quota {
308
auto PersistedResponse::operator==(const PersistedResponse& _o) const -> bool
309
0
{
310
0
    if ((!((persisted()) == ((_o).persisted())))) {
311
0
        return false;
312
0
    }
313
0
    return true;
314
0
}
315
316
auto PersistedResponse::operator!=(const PersistedResponse& _o) const -> bool
317
0
{
318
0
    return (!(operator==(_o)));
319
0
}
320
321
} // namespace quota
322
} // namespace dom
323
} // namespace mozilla
324
325
namespace mozilla {
326
namespace ipc {
327
auto IPDLParamTraits<mozilla::dom::quota::PersistedResponse>::Write(
328
        IPC::Message* aMsg,
329
        mozilla::ipc::IProtocol* aActor,
330
        const paramType& aVar) -> void
331
0
{
332
0
    WriteIPDLParam(aMsg, aActor, (aVar).persisted());
333
0
    // Sentinel = 'persisted'
334
0
    (aMsg)->WriteSentinel(3547791474);
335
0
}
336
337
auto IPDLParamTraits<mozilla::dom::quota::PersistedResponse>::Read(
338
        const IPC::Message* aMsg,
339
        PickleIterator* aIter,
340
        mozilla::ipc::IProtocol* aActor,
341
        paramType* aVar) -> bool
342
0
{
343
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->persisted())))))) {
344
0
        (aActor)->FatalError("Error deserializing 'persisted' (bool) member of 'PersistedResponse'");
345
0
        return false;
346
0
    }
347
0
    // Sentinel = 'persisted'
348
0
    if ((!((aMsg)->ReadSentinel(aIter, 3547791474)))) {
349
0
        mozilla::ipc::SentinelReadError("Error deserializing 'persisted' (bool) member of 'PersistedResponse'");
350
0
        return false;
351
0
    }
352
0
    return true;
353
0
}
354
355
} // namespace ipc
356
} // namespace mozilla
357
358
//-----------------------------------------------------------------------------
359
// Method definitions for the IPDL type |struct PersistResponse|
360
//
361
namespace mozilla {
362
namespace dom {
363
namespace quota {
364
auto PersistResponse::operator==(const PersistResponse& _o) const -> bool
365
0
{
366
0
    return true;
367
0
}
368
369
auto PersistResponse::operator!=(const PersistResponse& _o) const -> bool
370
0
{
371
0
    return (!(operator==(_o)));
372
0
}
373
374
} // namespace quota
375
} // namespace dom
376
} // namespace mozilla
377
378
namespace mozilla {
379
namespace ipc {
380
auto IPDLParamTraits<mozilla::dom::quota::PersistResponse>::Write(
381
        IPC::Message* aMsg,
382
        mozilla::ipc::IProtocol* aActor,
383
        const paramType& aVar) -> void
384
0
{
385
0
}
386
387
auto IPDLParamTraits<mozilla::dom::quota::PersistResponse>::Read(
388
        const IPC::Message* aMsg,
389
        PickleIterator* aIter,
390
        mozilla::ipc::IProtocol* aActor,
391
        paramType* aVar) -> bool
392
0
{
393
0
    return true;
394
0
}
395
396
} // namespace ipc
397
} // namespace mozilla
398
399
//-----------------------------------------------------------------------------
400
// Method definitions for the IPDL type |union RequestResponse|
401
//
402
namespace mozilla {
403
namespace dom {
404
namespace quota {
405
auto RequestResponse::MaybeDestroy(Type aNewType) -> bool
406
0
{
407
0
    if ((mType) == (T__None)) {
408
0
        return true;
409
0
    }
410
0
    if ((mType) == (aNewType)) {
411
0
        return false;
412
0
    }
413
0
    switch (mType) {
414
0
    case Tnsresult:
415
0
        {
416
0
            (ptr_nsresult())->~nsresult__tdef();
417
0
            break;
418
0
        }
419
0
    case TInitResponse:
420
0
        {
421
0
            (ptr_InitResponse())->~InitResponse__tdef();
422
0
            break;
423
0
        }
424
0
    case TInitOriginResponse:
425
0
        {
426
0
            (ptr_InitOriginResponse())->~InitOriginResponse__tdef();
427
0
            break;
428
0
        }
429
0
    case TClearOriginResponse:
430
0
        {
431
0
            (ptr_ClearOriginResponse())->~ClearOriginResponse__tdef();
432
0
            break;
433
0
        }
434
0
    case TClearDataResponse:
435
0
        {
436
0
            (ptr_ClearDataResponse())->~ClearDataResponse__tdef();
437
0
            break;
438
0
        }
439
0
    case TClearAllResponse:
440
0
        {
441
0
            (ptr_ClearAllResponse())->~ClearAllResponse__tdef();
442
0
            break;
443
0
        }
444
0
    case TResetAllResponse:
445
0
        {
446
0
            (ptr_ResetAllResponse())->~ResetAllResponse__tdef();
447
0
            break;
448
0
        }
449
0
    case TPersistedResponse:
450
0
        {
451
0
            (ptr_PersistedResponse())->~PersistedResponse__tdef();
452
0
            break;
453
0
        }
454
0
    case TPersistResponse:
455
0
        {
456
0
            (ptr_PersistResponse())->~PersistResponse__tdef();
457
0
            break;
458
0
        }
459
0
    default:
460
0
        {
461
0
            mozilla::ipc::LogicError("not reached");
462
0
            break;
463
0
        }
464
0
    }
465
0
    return true;
466
0
}
467
468
MOZ_IMPLICIT RequestResponse::RequestResponse(const nsresult& aOther)
469
0
{
470
0
    new (mozilla::KnownNotNull, ptr_nsresult()) nsresult(aOther);
471
0
    mType = Tnsresult;
472
0
}
473
474
MOZ_IMPLICIT RequestResponse::RequestResponse(nsresult&& aOther)
475
0
{
476
0
    new (mozilla::KnownNotNull, ptr_nsresult()) nsresult(std::move(aOther));
477
0
    mType = Tnsresult;
478
0
}
479
480
MOZ_IMPLICIT RequestResponse::RequestResponse(const InitResponse& aOther)
481
0
{
482
0
    new (mozilla::KnownNotNull, ptr_InitResponse()) InitResponse(aOther);
483
0
    mType = TInitResponse;
484
0
}
485
486
MOZ_IMPLICIT RequestResponse::RequestResponse(InitResponse&& aOther)
487
0
{
488
0
    new (mozilla::KnownNotNull, ptr_InitResponse()) InitResponse(std::move(aOther));
489
0
    mType = TInitResponse;
490
0
}
491
492
MOZ_IMPLICIT RequestResponse::RequestResponse(const InitOriginResponse& aOther)
493
0
{
494
0
    new (mozilla::KnownNotNull, ptr_InitOriginResponse()) InitOriginResponse(aOther);
495
0
    mType = TInitOriginResponse;
496
0
}
497
498
MOZ_IMPLICIT RequestResponse::RequestResponse(InitOriginResponse&& aOther)
499
0
{
500
0
    new (mozilla::KnownNotNull, ptr_InitOriginResponse()) InitOriginResponse(std::move(aOther));
501
0
    mType = TInitOriginResponse;
502
0
}
503
504
MOZ_IMPLICIT RequestResponse::RequestResponse(const ClearOriginResponse& aOther)
505
0
{
506
0
    new (mozilla::KnownNotNull, ptr_ClearOriginResponse()) ClearOriginResponse(aOther);
507
0
    mType = TClearOriginResponse;
508
0
}
509
510
MOZ_IMPLICIT RequestResponse::RequestResponse(ClearOriginResponse&& aOther)
511
0
{
512
0
    new (mozilla::KnownNotNull, ptr_ClearOriginResponse()) ClearOriginResponse(std::move(aOther));
513
0
    mType = TClearOriginResponse;
514
0
}
515
516
MOZ_IMPLICIT RequestResponse::RequestResponse(const ClearDataResponse& aOther)
517
0
{
518
0
    new (mozilla::KnownNotNull, ptr_ClearDataResponse()) ClearDataResponse(aOther);
519
0
    mType = TClearDataResponse;
520
0
}
521
522
MOZ_IMPLICIT RequestResponse::RequestResponse(ClearDataResponse&& aOther)
523
0
{
524
0
    new (mozilla::KnownNotNull, ptr_ClearDataResponse()) ClearDataResponse(std::move(aOther));
525
0
    mType = TClearDataResponse;
526
0
}
527
528
MOZ_IMPLICIT RequestResponse::RequestResponse(const ClearAllResponse& aOther)
529
0
{
530
0
    new (mozilla::KnownNotNull, ptr_ClearAllResponse()) ClearAllResponse(aOther);
531
0
    mType = TClearAllResponse;
532
0
}
533
534
MOZ_IMPLICIT RequestResponse::RequestResponse(ClearAllResponse&& aOther)
535
0
{
536
0
    new (mozilla::KnownNotNull, ptr_ClearAllResponse()) ClearAllResponse(std::move(aOther));
537
0
    mType = TClearAllResponse;
538
0
}
539
540
MOZ_IMPLICIT RequestResponse::RequestResponse(const ResetAllResponse& aOther)
541
0
{
542
0
    new (mozilla::KnownNotNull, ptr_ResetAllResponse()) ResetAllResponse(aOther);
543
0
    mType = TResetAllResponse;
544
0
}
545
546
MOZ_IMPLICIT RequestResponse::RequestResponse(ResetAllResponse&& aOther)
547
0
{
548
0
    new (mozilla::KnownNotNull, ptr_ResetAllResponse()) ResetAllResponse(std::move(aOther));
549
0
    mType = TResetAllResponse;
550
0
}
551
552
MOZ_IMPLICIT RequestResponse::RequestResponse(const PersistedResponse& aOther)
553
0
{
554
0
    new (mozilla::KnownNotNull, ptr_PersistedResponse()) PersistedResponse(aOther);
555
0
    mType = TPersistedResponse;
556
0
}
557
558
MOZ_IMPLICIT RequestResponse::RequestResponse(PersistedResponse&& aOther)
559
0
{
560
0
    new (mozilla::KnownNotNull, ptr_PersistedResponse()) PersistedResponse(std::move(aOther));
561
0
    mType = TPersistedResponse;
562
0
}
563
564
MOZ_IMPLICIT RequestResponse::RequestResponse(const PersistResponse& aOther)
565
0
{
566
0
    new (mozilla::KnownNotNull, ptr_PersistResponse()) PersistResponse(aOther);
567
0
    mType = TPersistResponse;
568
0
}
569
570
MOZ_IMPLICIT RequestResponse::RequestResponse(PersistResponse&& aOther)
571
0
{
572
0
    new (mozilla::KnownNotNull, ptr_PersistResponse()) PersistResponse(std::move(aOther));
573
0
    mType = TPersistResponse;
574
0
}
575
576
MOZ_IMPLICIT RequestResponse::RequestResponse(const RequestResponse& aOther)
577
0
{
578
0
    (aOther).AssertSanity();
579
0
    switch ((aOther).type()) {
580
0
    case Tnsresult:
581
0
        {
582
0
            new (mozilla::KnownNotNull, ptr_nsresult()) nsresult((aOther).get_nsresult());
583
0
            break;
584
0
        }
585
0
    case TInitResponse:
586
0
        {
587
0
            new (mozilla::KnownNotNull, ptr_InitResponse()) InitResponse((aOther).get_InitResponse());
588
0
            break;
589
0
        }
590
0
    case TInitOriginResponse:
591
0
        {
592
0
            new (mozilla::KnownNotNull, ptr_InitOriginResponse()) InitOriginResponse((aOther).get_InitOriginResponse());
593
0
            break;
594
0
        }
595
0
    case TClearOriginResponse:
596
0
        {
597
0
            new (mozilla::KnownNotNull, ptr_ClearOriginResponse()) ClearOriginResponse((aOther).get_ClearOriginResponse());
598
0
            break;
599
0
        }
600
0
    case TClearDataResponse:
601
0
        {
602
0
            new (mozilla::KnownNotNull, ptr_ClearDataResponse()) ClearDataResponse((aOther).get_ClearDataResponse());
603
0
            break;
604
0
        }
605
0
    case TClearAllResponse:
606
0
        {
607
0
            new (mozilla::KnownNotNull, ptr_ClearAllResponse()) ClearAllResponse((aOther).get_ClearAllResponse());
608
0
            break;
609
0
        }
610
0
    case TResetAllResponse:
611
0
        {
612
0
            new (mozilla::KnownNotNull, ptr_ResetAllResponse()) ResetAllResponse((aOther).get_ResetAllResponse());
613
0
            break;
614
0
        }
615
0
    case TPersistedResponse:
616
0
        {
617
0
            new (mozilla::KnownNotNull, ptr_PersistedResponse()) PersistedResponse((aOther).get_PersistedResponse());
618
0
            break;
619
0
        }
620
0
    case TPersistResponse:
621
0
        {
622
0
            new (mozilla::KnownNotNull, ptr_PersistResponse()) PersistResponse((aOther).get_PersistResponse());
623
0
            break;
624
0
        }
625
0
    case T__None:
626
0
        {
627
0
            break;
628
0
        }
629
0
    default:
630
0
        {
631
0
            mozilla::ipc::LogicError("unreached");
632
0
            return;
633
0
        }
634
0
    }
635
0
    mType = (aOther).type();
636
0
}
637
638
MOZ_IMPLICIT RequestResponse::RequestResponse(RequestResponse&& aOther)
639
0
{
640
0
    (aOther).AssertSanity();
641
0
    Type t = (aOther).type();
642
0
    switch (t) {
643
0
    case Tnsresult:
644
0
        {
645
0
            new (mozilla::KnownNotNull, ptr_nsresult()) nsresult(std::move((aOther).get_nsresult()));
646
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
647
0
            break;
648
0
        }
649
0
    case TInitResponse:
650
0
        {
651
0
            new (mozilla::KnownNotNull, ptr_InitResponse()) InitResponse(std::move((aOther).get_InitResponse()));
652
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
653
0
            break;
654
0
        }
655
0
    case TInitOriginResponse:
656
0
        {
657
0
            new (mozilla::KnownNotNull, ptr_InitOriginResponse()) InitOriginResponse(std::move((aOther).get_InitOriginResponse()));
658
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
659
0
            break;
660
0
        }
661
0
    case TClearOriginResponse:
662
0
        {
663
0
            new (mozilla::KnownNotNull, ptr_ClearOriginResponse()) ClearOriginResponse(std::move((aOther).get_ClearOriginResponse()));
664
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
665
0
            break;
666
0
        }
667
0
    case TClearDataResponse:
668
0
        {
669
0
            new (mozilla::KnownNotNull, ptr_ClearDataResponse()) ClearDataResponse(std::move((aOther).get_ClearDataResponse()));
670
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
671
0
            break;
672
0
        }
673
0
    case TClearAllResponse:
674
0
        {
675
0
            new (mozilla::KnownNotNull, ptr_ClearAllResponse()) ClearAllResponse(std::move((aOther).get_ClearAllResponse()));
676
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
677
0
            break;
678
0
        }
679
0
    case TResetAllResponse:
680
0
        {
681
0
            new (mozilla::KnownNotNull, ptr_ResetAllResponse()) ResetAllResponse(std::move((aOther).get_ResetAllResponse()));
682
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
683
0
            break;
684
0
        }
685
0
    case TPersistedResponse:
686
0
        {
687
0
            new (mozilla::KnownNotNull, ptr_PersistedResponse()) PersistedResponse(std::move((aOther).get_PersistedResponse()));
688
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
689
0
            break;
690
0
        }
691
0
    case TPersistResponse:
692
0
        {
693
0
            new (mozilla::KnownNotNull, ptr_PersistResponse()) PersistResponse(std::move((aOther).get_PersistResponse()));
694
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
695
0
            break;
696
0
        }
697
0
    case T__None:
698
0
        {
699
0
            break;
700
0
        }
701
0
    default:
702
0
        {
703
0
            mozilla::ipc::LogicError("unreached");
704
0
            return;
705
0
        }
706
0
    }
707
0
    (aOther).mType = T__None;
708
0
    mType = t;
709
0
}
710
711
RequestResponse::~RequestResponse()
712
0
{
713
0
    static_cast<void>(MaybeDestroy(T__None));
714
0
}
715
716
auto RequestResponse::operator=(const nsresult& aRhs) -> RequestResponse&
717
0
{
718
0
    if (MaybeDestroy(Tnsresult)) {
719
0
        new (mozilla::KnownNotNull, ptr_nsresult()) nsresult;
720
0
    }
721
0
    (*(ptr_nsresult())) = aRhs;
722
0
    mType = Tnsresult;
723
0
    return (*(this));
724
0
}
725
726
auto RequestResponse::operator=(nsresult&& aRhs) -> RequestResponse&
727
0
{
728
0
    if (MaybeDestroy(Tnsresult)) {
729
0
        new (mozilla::KnownNotNull, ptr_nsresult()) nsresult;
730
0
    }
731
0
    (*(ptr_nsresult())) = std::move(aRhs);
732
0
    mType = Tnsresult;
733
0
    return (*(this));
734
0
}
735
736
auto RequestResponse::operator=(const InitResponse& aRhs) -> RequestResponse&
737
0
{
738
0
    if (MaybeDestroy(TInitResponse)) {
739
0
        new (mozilla::KnownNotNull, ptr_InitResponse()) InitResponse;
740
0
    }
741
0
    (*(ptr_InitResponse())) = aRhs;
742
0
    mType = TInitResponse;
743
0
    return (*(this));
744
0
}
745
746
auto RequestResponse::operator=(InitResponse&& aRhs) -> RequestResponse&
747
0
{
748
0
    if (MaybeDestroy(TInitResponse)) {
749
0
        new (mozilla::KnownNotNull, ptr_InitResponse()) InitResponse;
750
0
    }
751
0
    (*(ptr_InitResponse())) = std::move(aRhs);
752
0
    mType = TInitResponse;
753
0
    return (*(this));
754
0
}
755
756
auto RequestResponse::operator=(const InitOriginResponse& aRhs) -> RequestResponse&
757
0
{
758
0
    if (MaybeDestroy(TInitOriginResponse)) {
759
0
        new (mozilla::KnownNotNull, ptr_InitOriginResponse()) InitOriginResponse;
760
0
    }
761
0
    (*(ptr_InitOriginResponse())) = aRhs;
762
0
    mType = TInitOriginResponse;
763
0
    return (*(this));
764
0
}
765
766
auto RequestResponse::operator=(InitOriginResponse&& aRhs) -> RequestResponse&
767
0
{
768
0
    if (MaybeDestroy(TInitOriginResponse)) {
769
0
        new (mozilla::KnownNotNull, ptr_InitOriginResponse()) InitOriginResponse;
770
0
    }
771
0
    (*(ptr_InitOriginResponse())) = std::move(aRhs);
772
0
    mType = TInitOriginResponse;
773
0
    return (*(this));
774
0
}
775
776
auto RequestResponse::operator=(const ClearOriginResponse& aRhs) -> RequestResponse&
777
0
{
778
0
    if (MaybeDestroy(TClearOriginResponse)) {
779
0
        new (mozilla::KnownNotNull, ptr_ClearOriginResponse()) ClearOriginResponse;
780
0
    }
781
0
    (*(ptr_ClearOriginResponse())) = aRhs;
782
0
    mType = TClearOriginResponse;
783
0
    return (*(this));
784
0
}
785
786
auto RequestResponse::operator=(ClearOriginResponse&& aRhs) -> RequestResponse&
787
0
{
788
0
    if (MaybeDestroy(TClearOriginResponse)) {
789
0
        new (mozilla::KnownNotNull, ptr_ClearOriginResponse()) ClearOriginResponse;
790
0
    }
791
0
    (*(ptr_ClearOriginResponse())) = std::move(aRhs);
792
0
    mType = TClearOriginResponse;
793
0
    return (*(this));
794
0
}
795
796
auto RequestResponse::operator=(const ClearDataResponse& aRhs) -> RequestResponse&
797
0
{
798
0
    if (MaybeDestroy(TClearDataResponse)) {
799
0
        new (mozilla::KnownNotNull, ptr_ClearDataResponse()) ClearDataResponse;
800
0
    }
801
0
    (*(ptr_ClearDataResponse())) = aRhs;
802
0
    mType = TClearDataResponse;
803
0
    return (*(this));
804
0
}
805
806
auto RequestResponse::operator=(ClearDataResponse&& aRhs) -> RequestResponse&
807
0
{
808
0
    if (MaybeDestroy(TClearDataResponse)) {
809
0
        new (mozilla::KnownNotNull, ptr_ClearDataResponse()) ClearDataResponse;
810
0
    }
811
0
    (*(ptr_ClearDataResponse())) = std::move(aRhs);
812
0
    mType = TClearDataResponse;
813
0
    return (*(this));
814
0
}
815
816
auto RequestResponse::operator=(const ClearAllResponse& aRhs) -> RequestResponse&
817
0
{
818
0
    if (MaybeDestroy(TClearAllResponse)) {
819
0
        new (mozilla::KnownNotNull, ptr_ClearAllResponse()) ClearAllResponse;
820
0
    }
821
0
    (*(ptr_ClearAllResponse())) = aRhs;
822
0
    mType = TClearAllResponse;
823
0
    return (*(this));
824
0
}
825
826
auto RequestResponse::operator=(ClearAllResponse&& aRhs) -> RequestResponse&
827
0
{
828
0
    if (MaybeDestroy(TClearAllResponse)) {
829
0
        new (mozilla::KnownNotNull, ptr_ClearAllResponse()) ClearAllResponse;
830
0
    }
831
0
    (*(ptr_ClearAllResponse())) = std::move(aRhs);
832
0
    mType = TClearAllResponse;
833
0
    return (*(this));
834
0
}
835
836
auto RequestResponse::operator=(const ResetAllResponse& aRhs) -> RequestResponse&
837
0
{
838
0
    if (MaybeDestroy(TResetAllResponse)) {
839
0
        new (mozilla::KnownNotNull, ptr_ResetAllResponse()) ResetAllResponse;
840
0
    }
841
0
    (*(ptr_ResetAllResponse())) = aRhs;
842
0
    mType = TResetAllResponse;
843
0
    return (*(this));
844
0
}
845
846
auto RequestResponse::operator=(ResetAllResponse&& aRhs) -> RequestResponse&
847
0
{
848
0
    if (MaybeDestroy(TResetAllResponse)) {
849
0
        new (mozilla::KnownNotNull, ptr_ResetAllResponse()) ResetAllResponse;
850
0
    }
851
0
    (*(ptr_ResetAllResponse())) = std::move(aRhs);
852
0
    mType = TResetAllResponse;
853
0
    return (*(this));
854
0
}
855
856
auto RequestResponse::operator=(const PersistedResponse& aRhs) -> RequestResponse&
857
0
{
858
0
    if (MaybeDestroy(TPersistedResponse)) {
859
0
        new (mozilla::KnownNotNull, ptr_PersistedResponse()) PersistedResponse;
860
0
    }
861
0
    (*(ptr_PersistedResponse())) = aRhs;
862
0
    mType = TPersistedResponse;
863
0
    return (*(this));
864
0
}
865
866
auto RequestResponse::operator=(PersistedResponse&& aRhs) -> RequestResponse&
867
0
{
868
0
    if (MaybeDestroy(TPersistedResponse)) {
869
0
        new (mozilla::KnownNotNull, ptr_PersistedResponse()) PersistedResponse;
870
0
    }
871
0
    (*(ptr_PersistedResponse())) = std::move(aRhs);
872
0
    mType = TPersistedResponse;
873
0
    return (*(this));
874
0
}
875
876
auto RequestResponse::operator=(const PersistResponse& aRhs) -> RequestResponse&
877
0
{
878
0
    if (MaybeDestroy(TPersistResponse)) {
879
0
        new (mozilla::KnownNotNull, ptr_PersistResponse()) PersistResponse;
880
0
    }
881
0
    (*(ptr_PersistResponse())) = aRhs;
882
0
    mType = TPersistResponse;
883
0
    return (*(this));
884
0
}
885
886
auto RequestResponse::operator=(PersistResponse&& aRhs) -> RequestResponse&
887
0
{
888
0
    if (MaybeDestroy(TPersistResponse)) {
889
0
        new (mozilla::KnownNotNull, ptr_PersistResponse()) PersistResponse;
890
0
    }
891
0
    (*(ptr_PersistResponse())) = std::move(aRhs);
892
0
    mType = TPersistResponse;
893
0
    return (*(this));
894
0
}
895
896
auto RequestResponse::operator=(const RequestResponse& aRhs) -> RequestResponse&
897
0
{
898
0
    (aRhs).AssertSanity();
899
0
    Type t = (aRhs).type();
900
0
    switch (t) {
901
0
    case Tnsresult:
902
0
        {
903
0
            if (MaybeDestroy(t)) {
904
0
                new (mozilla::KnownNotNull, ptr_nsresult()) nsresult;
905
0
            }
906
0
            (*(ptr_nsresult())) = (aRhs).get_nsresult();
907
0
            break;
908
0
        }
909
0
    case TInitResponse:
910
0
        {
911
0
            if (MaybeDestroy(t)) {
912
0
                new (mozilla::KnownNotNull, ptr_InitResponse()) InitResponse;
913
0
            }
914
0
            (*(ptr_InitResponse())) = (aRhs).get_InitResponse();
915
0
            break;
916
0
        }
917
0
    case TInitOriginResponse:
918
0
        {
919
0
            if (MaybeDestroy(t)) {
920
0
                new (mozilla::KnownNotNull, ptr_InitOriginResponse()) InitOriginResponse;
921
0
            }
922
0
            (*(ptr_InitOriginResponse())) = (aRhs).get_InitOriginResponse();
923
0
            break;
924
0
        }
925
0
    case TClearOriginResponse:
926
0
        {
927
0
            if (MaybeDestroy(t)) {
928
0
                new (mozilla::KnownNotNull, ptr_ClearOriginResponse()) ClearOriginResponse;
929
0
            }
930
0
            (*(ptr_ClearOriginResponse())) = (aRhs).get_ClearOriginResponse();
931
0
            break;
932
0
        }
933
0
    case TClearDataResponse:
934
0
        {
935
0
            if (MaybeDestroy(t)) {
936
0
                new (mozilla::KnownNotNull, ptr_ClearDataResponse()) ClearDataResponse;
937
0
            }
938
0
            (*(ptr_ClearDataResponse())) = (aRhs).get_ClearDataResponse();
939
0
            break;
940
0
        }
941
0
    case TClearAllResponse:
942
0
        {
943
0
            if (MaybeDestroy(t)) {
944
0
                new (mozilla::KnownNotNull, ptr_ClearAllResponse()) ClearAllResponse;
945
0
            }
946
0
            (*(ptr_ClearAllResponse())) = (aRhs).get_ClearAllResponse();
947
0
            break;
948
0
        }
949
0
    case TResetAllResponse:
950
0
        {
951
0
            if (MaybeDestroy(t)) {
952
0
                new (mozilla::KnownNotNull, ptr_ResetAllResponse()) ResetAllResponse;
953
0
            }
954
0
            (*(ptr_ResetAllResponse())) = (aRhs).get_ResetAllResponse();
955
0
            break;
956
0
        }
957
0
    case TPersistedResponse:
958
0
        {
959
0
            if (MaybeDestroy(t)) {
960
0
                new (mozilla::KnownNotNull, ptr_PersistedResponse()) PersistedResponse;
961
0
            }
962
0
            (*(ptr_PersistedResponse())) = (aRhs).get_PersistedResponse();
963
0
            break;
964
0
        }
965
0
    case TPersistResponse:
966
0
        {
967
0
            if (MaybeDestroy(t)) {
968
0
                new (mozilla::KnownNotNull, ptr_PersistResponse()) PersistResponse;
969
0
            }
970
0
            (*(ptr_PersistResponse())) = (aRhs).get_PersistResponse();
971
0
            break;
972
0
        }
973
0
    case T__None:
974
0
        {
975
0
            static_cast<void>(MaybeDestroy(t));
976
0
            break;
977
0
        }
978
0
    default:
979
0
        {
980
0
            mozilla::ipc::LogicError("unreached");
981
0
            break;
982
0
        }
983
0
    }
984
0
    mType = t;
985
0
    return (*(this));
986
0
}
987
988
auto RequestResponse::operator=(RequestResponse&& aRhs) -> RequestResponse&
989
0
{
990
0
    (aRhs).AssertSanity();
991
0
    Type t = (aRhs).type();
992
0
    switch (t) {
993
0
    case Tnsresult:
994
0
        {
995
0
            if (MaybeDestroy(t)) {
996
0
                new (mozilla::KnownNotNull, ptr_nsresult()) nsresult;
997
0
            }
998
0
            (*(ptr_nsresult())) = std::move((aRhs).get_nsresult());
999
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1000
0
            break;
1001
0
        }
1002
0
    case TInitResponse:
1003
0
        {
1004
0
            if (MaybeDestroy(t)) {
1005
0
                new (mozilla::KnownNotNull, ptr_InitResponse()) InitResponse;
1006
0
            }
1007
0
            (*(ptr_InitResponse())) = std::move((aRhs).get_InitResponse());
1008
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1009
0
            break;
1010
0
        }
1011
0
    case TInitOriginResponse:
1012
0
        {
1013
0
            if (MaybeDestroy(t)) {
1014
0
                new (mozilla::KnownNotNull, ptr_InitOriginResponse()) InitOriginResponse;
1015
0
            }
1016
0
            (*(ptr_InitOriginResponse())) = std::move((aRhs).get_InitOriginResponse());
1017
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1018
0
            break;
1019
0
        }
1020
0
    case TClearOriginResponse:
1021
0
        {
1022
0
            if (MaybeDestroy(t)) {
1023
0
                new (mozilla::KnownNotNull, ptr_ClearOriginResponse()) ClearOriginResponse;
1024
0
            }
1025
0
            (*(ptr_ClearOriginResponse())) = std::move((aRhs).get_ClearOriginResponse());
1026
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1027
0
            break;
1028
0
        }
1029
0
    case TClearDataResponse:
1030
0
        {
1031
0
            if (MaybeDestroy(t)) {
1032
0
                new (mozilla::KnownNotNull, ptr_ClearDataResponse()) ClearDataResponse;
1033
0
            }
1034
0
            (*(ptr_ClearDataResponse())) = std::move((aRhs).get_ClearDataResponse());
1035
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1036
0
            break;
1037
0
        }
1038
0
    case TClearAllResponse:
1039
0
        {
1040
0
            if (MaybeDestroy(t)) {
1041
0
                new (mozilla::KnownNotNull, ptr_ClearAllResponse()) ClearAllResponse;
1042
0
            }
1043
0
            (*(ptr_ClearAllResponse())) = std::move((aRhs).get_ClearAllResponse());
1044
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1045
0
            break;
1046
0
        }
1047
0
    case TResetAllResponse:
1048
0
        {
1049
0
            if (MaybeDestroy(t)) {
1050
0
                new (mozilla::KnownNotNull, ptr_ResetAllResponse()) ResetAllResponse;
1051
0
            }
1052
0
            (*(ptr_ResetAllResponse())) = std::move((aRhs).get_ResetAllResponse());
1053
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1054
0
            break;
1055
0
        }
1056
0
    case TPersistedResponse:
1057
0
        {
1058
0
            if (MaybeDestroy(t)) {
1059
0
                new (mozilla::KnownNotNull, ptr_PersistedResponse()) PersistedResponse;
1060
0
            }
1061
0
            (*(ptr_PersistedResponse())) = std::move((aRhs).get_PersistedResponse());
1062
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1063
0
            break;
1064
0
        }
1065
0
    case TPersistResponse:
1066
0
        {
1067
0
            if (MaybeDestroy(t)) {
1068
0
                new (mozilla::KnownNotNull, ptr_PersistResponse()) PersistResponse;
1069
0
            }
1070
0
            (*(ptr_PersistResponse())) = std::move((aRhs).get_PersistResponse());
1071
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1072
0
            break;
1073
0
        }
1074
0
    case T__None:
1075
0
        {
1076
0
            static_cast<void>(MaybeDestroy(t));
1077
0
            break;
1078
0
        }
1079
0
    default:
1080
0
        {
1081
0
            mozilla::ipc::LogicError("unreached");
1082
0
            break;
1083
0
        }
1084
0
    }
1085
0
    (aRhs).mType = T__None;
1086
0
    mType = t;
1087
0
    return (*(this));
1088
0
}
1089
1090
auto RequestResponse::operator==(const nsresult& aRhs) const -> bool
1091
0
{
1092
0
    return (get_nsresult()) == (aRhs);
1093
0
}
1094
1095
auto RequestResponse::operator==(const InitResponse& aRhs) const -> bool
1096
0
{
1097
0
    return (get_InitResponse()) == (aRhs);
1098
0
}
1099
1100
auto RequestResponse::operator==(const InitOriginResponse& aRhs) const -> bool
1101
0
{
1102
0
    return (get_InitOriginResponse()) == (aRhs);
1103
0
}
1104
1105
auto RequestResponse::operator==(const ClearOriginResponse& aRhs) const -> bool
1106
0
{
1107
0
    return (get_ClearOriginResponse()) == (aRhs);
1108
0
}
1109
1110
auto RequestResponse::operator==(const ClearDataResponse& aRhs) const -> bool
1111
0
{
1112
0
    return (get_ClearDataResponse()) == (aRhs);
1113
0
}
1114
1115
auto RequestResponse::operator==(const ClearAllResponse& aRhs) const -> bool
1116
0
{
1117
0
    return (get_ClearAllResponse()) == (aRhs);
1118
0
}
1119
1120
auto RequestResponse::operator==(const ResetAllResponse& aRhs) const -> bool
1121
0
{
1122
0
    return (get_ResetAllResponse()) == (aRhs);
1123
0
}
1124
1125
auto RequestResponse::operator==(const PersistedResponse& aRhs) const -> bool
1126
0
{
1127
0
    return (get_PersistedResponse()) == (aRhs);
1128
0
}
1129
1130
auto RequestResponse::operator==(const PersistResponse& aRhs) const -> bool
1131
0
{
1132
0
    return (get_PersistResponse()) == (aRhs);
1133
0
}
1134
1135
auto RequestResponse::operator==(const RequestResponse& aRhs) const -> bool
1136
0
{
1137
0
    if ((type()) != ((aRhs).type())) {
1138
0
        return false;
1139
0
    }
1140
0
1141
0
    switch (type()) {
1142
0
    case Tnsresult:
1143
0
        {
1144
0
            return (get_nsresult()) == ((aRhs).get_nsresult());
1145
0
        }
1146
0
    case TInitResponse:
1147
0
        {
1148
0
            return (get_InitResponse()) == ((aRhs).get_InitResponse());
1149
0
        }
1150
0
    case TInitOriginResponse:
1151
0
        {
1152
0
            return (get_InitOriginResponse()) == ((aRhs).get_InitOriginResponse());
1153
0
        }
1154
0
    case TClearOriginResponse:
1155
0
        {
1156
0
            return (get_ClearOriginResponse()) == ((aRhs).get_ClearOriginResponse());
1157
0
        }
1158
0
    case TClearDataResponse:
1159
0
        {
1160
0
            return (get_ClearDataResponse()) == ((aRhs).get_ClearDataResponse());
1161
0
        }
1162
0
    case TClearAllResponse:
1163
0
        {
1164
0
            return (get_ClearAllResponse()) == ((aRhs).get_ClearAllResponse());
1165
0
        }
1166
0
    case TResetAllResponse:
1167
0
        {
1168
0
            return (get_ResetAllResponse()) == ((aRhs).get_ResetAllResponse());
1169
0
        }
1170
0
    case TPersistedResponse:
1171
0
        {
1172
0
            return (get_PersistedResponse()) == ((aRhs).get_PersistedResponse());
1173
0
        }
1174
0
    case TPersistResponse:
1175
0
        {
1176
0
            return (get_PersistResponse()) == ((aRhs).get_PersistResponse());
1177
0
        }
1178
0
    default:
1179
0
        {
1180
0
            mozilla::ipc::LogicError("unreached");
1181
0
            return false;
1182
0
        }
1183
0
    }
1184
0
}
1185
1186
auto RequestResponse::get(nsresult* aOutValue) const -> void
1187
0
{
1188
0
    (*(aOutValue)) = get_nsresult();
1189
0
}
1190
1191
auto RequestResponse::get(InitResponse* aOutValue) const -> void
1192
0
{
1193
0
    (*(aOutValue)) = get_InitResponse();
1194
0
}
1195
1196
auto RequestResponse::get(InitOriginResponse* aOutValue) const -> void
1197
0
{
1198
0
    (*(aOutValue)) = get_InitOriginResponse();
1199
0
}
1200
1201
auto RequestResponse::get(ClearOriginResponse* aOutValue) const -> void
1202
0
{
1203
0
    (*(aOutValue)) = get_ClearOriginResponse();
1204
0
}
1205
1206
auto RequestResponse::get(ClearDataResponse* aOutValue) const -> void
1207
0
{
1208
0
    (*(aOutValue)) = get_ClearDataResponse();
1209
0
}
1210
1211
auto RequestResponse::get(ClearAllResponse* aOutValue) const -> void
1212
0
{
1213
0
    (*(aOutValue)) = get_ClearAllResponse();
1214
0
}
1215
1216
auto RequestResponse::get(ResetAllResponse* aOutValue) const -> void
1217
0
{
1218
0
    (*(aOutValue)) = get_ResetAllResponse();
1219
0
}
1220
1221
auto RequestResponse::get(PersistedResponse* aOutValue) const -> void
1222
0
{
1223
0
    (*(aOutValue)) = get_PersistedResponse();
1224
0
}
1225
1226
auto RequestResponse::get(PersistResponse* aOutValue) const -> void
1227
0
{
1228
0
    (*(aOutValue)) = get_PersistResponse();
1229
0
}
1230
1231
} // namespace quota
1232
} // namespace dom
1233
} // namespace mozilla
1234
1235
namespace mozilla {
1236
namespace ipc {
1237
auto IPDLParamTraits<mozilla::dom::quota::RequestResponse>::Write(
1238
        IPC::Message* aMsg,
1239
        mozilla::ipc::IProtocol* aActor,
1240
        const paramType& aVar) -> void
1241
{
1242
    typedef mozilla::dom::quota::RequestResponse union__;
1243
    int type;
1244
    type = (aVar).type();
1245
    WriteIPDLParam(aMsg, aActor, type);
1246
    // Sentinel = 'RequestResponse'
1247
    (aMsg)->WriteSentinel(454300225);
1248
1249
    switch (type) {
1250
    case union__::Tnsresult:
1251
        {
1252
            WriteIPDLParam(aMsg, aActor, (aVar).get_nsresult());
1253
            // Sentinel = 'Tnsresult'
1254
            (aMsg)->WriteSentinel(2293764539);
1255
            return;
1256
        }
1257
    case union__::TInitResponse:
1258
        {
1259
            WriteIPDLParam(aMsg, aActor, (aVar).get_InitResponse());
1260
            // Sentinel = 'TInitResponse'
1261
            (aMsg)->WriteSentinel(941770198);
1262
            return;
1263
        }
1264
    case union__::TInitOriginResponse:
1265
        {
1266
            WriteIPDLParam(aMsg, aActor, (aVar).get_InitOriginResponse());
1267
            // Sentinel = 'TInitOriginResponse'
1268
            (aMsg)->WriteSentinel(3039434590);
1269
            return;
1270
        }
1271
    case union__::TClearOriginResponse:
1272
        {
1273
            WriteIPDLParam(aMsg, aActor, (aVar).get_ClearOriginResponse());
1274
            // Sentinel = 'TClearOriginResponse'
1275
            (aMsg)->WriteSentinel(2032369236);
1276
            return;
1277
        }
1278
    case union__::TClearDataResponse:
1279
        {
1280
            WriteIPDLParam(aMsg, aActor, (aVar).get_ClearDataResponse());
1281
            // Sentinel = 'TClearDataResponse'
1282
            (aMsg)->WriteSentinel(1322469308);
1283
            return;
1284
        }
1285
    case union__::TClearAllResponse:
1286
        {
1287
            WriteIPDLParam(aMsg, aActor, (aVar).get_ClearAllResponse());
1288
            // Sentinel = 'TClearAllResponse'
1289
            (aMsg)->WriteSentinel(2851178716);
1290
            return;
1291
        }
1292
    case union__::TResetAllResponse:
1293
        {
1294
            WriteIPDLParam(aMsg, aActor, (aVar).get_ResetAllResponse());
1295
            // Sentinel = 'TResetAllResponse'
1296
            (aMsg)->WriteSentinel(706855290);
1297
            return;
1298
        }
1299
    case union__::TPersistedResponse:
1300
        {
1301
            WriteIPDLParam(aMsg, aActor, (aVar).get_PersistedResponse());
1302
            // Sentinel = 'TPersistedResponse'
1303
            (aMsg)->WriteSentinel(1830900968);
1304
            return;
1305
        }
1306
    case union__::TPersistResponse:
1307
        {
1308
            WriteIPDLParam(aMsg, aActor, (aVar).get_PersistResponse());
1309
            // Sentinel = 'TPersistResponse'
1310
            (aMsg)->WriteSentinel(3249867633);
1311
            return;
1312
        }
1313
    default:
1314
        {
1315
            (aActor)->FatalError("unknown union type");
1316
            return;
1317
        }
1318
    }
1319
}
1320
1321
auto IPDLParamTraits<mozilla::dom::quota::RequestResponse>::Read(
1322
        const IPC::Message* aMsg,
1323
        PickleIterator* aIter,
1324
        mozilla::ipc::IProtocol* aActor,
1325
        paramType* aVar) -> bool
1326
0
{
1327
0
    typedef mozilla::dom::quota::RequestResponse union__;
1328
0
    int type;
1329
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
1330
0
        (aActor)->FatalError("Error deserializing type of union RequestResponse");
1331
0
        return false;
1332
0
    }
1333
0
    // Sentinel = 'RequestResponse'
1334
0
    if ((!((aMsg)->ReadSentinel(aIter, 454300225)))) {
1335
0
        mozilla::ipc::SentinelReadError("Error deserializing type of union RequestResponse");
1336
0
        return false;
1337
0
    }
1338
0
1339
0
    switch (type) {
1340
0
    case union__::Tnsresult:
1341
0
        {
1342
0
            nsresult tmp = nsresult();
1343
0
            (*(aVar)) = tmp;
1344
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_nsresult())))))) {
1345
0
                (aActor)->FatalError("Error deserializing variant Tnsresult of union RequestResponse");
1346
0
                return false;
1347
0
            }
1348
0
            // Sentinel = 'Tnsresult'
1349
0
            if ((!((aMsg)->ReadSentinel(aIter, 2293764539)))) {
1350
0
                mozilla::ipc::SentinelReadError("Error deserializing variant Tnsresult of union RequestResponse");
1351
0
                return false;
1352
0
            }
1353
0
            return true;
1354
0
        }
1355
0
    case union__::TInitResponse:
1356
0
        {
1357
0
            mozilla::dom::quota::InitResponse tmp = mozilla::dom::quota::InitResponse();
1358
0
            (*(aVar)) = tmp;
1359
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_InitResponse())))))) {
1360
0
                (aActor)->FatalError("Error deserializing variant TInitResponse of union RequestResponse");
1361
0
                return false;
1362
0
            }
1363
0
            // Sentinel = 'TInitResponse'
1364
0
            if ((!((aMsg)->ReadSentinel(aIter, 941770198)))) {
1365
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TInitResponse of union RequestResponse");
1366
0
                return false;
1367
0
            }
1368
0
            return true;
1369
0
        }
1370
0
    case union__::TInitOriginResponse:
1371
0
        {
1372
0
            mozilla::dom::quota::InitOriginResponse tmp = mozilla::dom::quota::InitOriginResponse();
1373
0
            (*(aVar)) = tmp;
1374
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_InitOriginResponse())))))) {
1375
0
                (aActor)->FatalError("Error deserializing variant TInitOriginResponse of union RequestResponse");
1376
0
                return false;
1377
0
            }
1378
0
            // Sentinel = 'TInitOriginResponse'
1379
0
            if ((!((aMsg)->ReadSentinel(aIter, 3039434590)))) {
1380
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TInitOriginResponse of union RequestResponse");
1381
0
                return false;
1382
0
            }
1383
0
            return true;
1384
0
        }
1385
0
    case union__::TClearOriginResponse:
1386
0
        {
1387
0
            mozilla::dom::quota::ClearOriginResponse tmp = mozilla::dom::quota::ClearOriginResponse();
1388
0
            (*(aVar)) = tmp;
1389
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_ClearOriginResponse())))))) {
1390
0
                (aActor)->FatalError("Error deserializing variant TClearOriginResponse of union RequestResponse");
1391
0
                return false;
1392
0
            }
1393
0
            // Sentinel = 'TClearOriginResponse'
1394
0
            if ((!((aMsg)->ReadSentinel(aIter, 2032369236)))) {
1395
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TClearOriginResponse of union RequestResponse");
1396
0
                return false;
1397
0
            }
1398
0
            return true;
1399
0
        }
1400
0
    case union__::TClearDataResponse:
1401
0
        {
1402
0
            mozilla::dom::quota::ClearDataResponse tmp = mozilla::dom::quota::ClearDataResponse();
1403
0
            (*(aVar)) = tmp;
1404
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_ClearDataResponse())))))) {
1405
0
                (aActor)->FatalError("Error deserializing variant TClearDataResponse of union RequestResponse");
1406
0
                return false;
1407
0
            }
1408
0
            // Sentinel = 'TClearDataResponse'
1409
0
            if ((!((aMsg)->ReadSentinel(aIter, 1322469308)))) {
1410
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TClearDataResponse of union RequestResponse");
1411
0
                return false;
1412
0
            }
1413
0
            return true;
1414
0
        }
1415
0
    case union__::TClearAllResponse:
1416
0
        {
1417
0
            mozilla::dom::quota::ClearAllResponse tmp = mozilla::dom::quota::ClearAllResponse();
1418
0
            (*(aVar)) = tmp;
1419
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_ClearAllResponse())))))) {
1420
0
                (aActor)->FatalError("Error deserializing variant TClearAllResponse of union RequestResponse");
1421
0
                return false;
1422
0
            }
1423
0
            // Sentinel = 'TClearAllResponse'
1424
0
            if ((!((aMsg)->ReadSentinel(aIter, 2851178716)))) {
1425
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TClearAllResponse of union RequestResponse");
1426
0
                return false;
1427
0
            }
1428
0
            return true;
1429
0
        }
1430
0
    case union__::TResetAllResponse:
1431
0
        {
1432
0
            mozilla::dom::quota::ResetAllResponse tmp = mozilla::dom::quota::ResetAllResponse();
1433
0
            (*(aVar)) = tmp;
1434
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_ResetAllResponse())))))) {
1435
0
                (aActor)->FatalError("Error deserializing variant TResetAllResponse of union RequestResponse");
1436
0
                return false;
1437
0
            }
1438
0
            // Sentinel = 'TResetAllResponse'
1439
0
            if ((!((aMsg)->ReadSentinel(aIter, 706855290)))) {
1440
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TResetAllResponse of union RequestResponse");
1441
0
                return false;
1442
0
            }
1443
0
            return true;
1444
0
        }
1445
0
    case union__::TPersistedResponse:
1446
0
        {
1447
0
            mozilla::dom::quota::PersistedResponse tmp = mozilla::dom::quota::PersistedResponse();
1448
0
            (*(aVar)) = tmp;
1449
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_PersistedResponse())))))) {
1450
0
                (aActor)->FatalError("Error deserializing variant TPersistedResponse of union RequestResponse");
1451
0
                return false;
1452
0
            }
1453
0
            // Sentinel = 'TPersistedResponse'
1454
0
            if ((!((aMsg)->ReadSentinel(aIter, 1830900968)))) {
1455
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TPersistedResponse of union RequestResponse");
1456
0
                return false;
1457
0
            }
1458
0
            return true;
1459
0
        }
1460
0
    case union__::TPersistResponse:
1461
0
        {
1462
0
            mozilla::dom::quota::PersistResponse tmp = mozilla::dom::quota::PersistResponse();
1463
0
            (*(aVar)) = tmp;
1464
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_PersistResponse())))))) {
1465
0
                (aActor)->FatalError("Error deserializing variant TPersistResponse of union RequestResponse");
1466
0
                return false;
1467
0
            }
1468
0
            // Sentinel = 'TPersistResponse'
1469
0
            if ((!((aMsg)->ReadSentinel(aIter, 3249867633)))) {
1470
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TPersistResponse of union RequestResponse");
1471
0
                return false;
1472
0
            }
1473
0
            return true;
1474
0
        }
1475
0
    default:
1476
0
        {
1477
0
            (aActor)->FatalError("unknown union type");
1478
0
            return false;
1479
0
        }
1480
0
    }
1481
0
}
1482
1483
} // namespace ipc
1484
} // namespace mozilla