Coverage Report

Created: 2018-09-25 14:53

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