Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/PWebAuthnTransaction.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/ipc/PBackgroundParent.h"
8
#include "mozilla/ipc/PBackgroundChild.h"
9
#include "mozilla/dom/PWebAuthnTransaction.h"
10
11
namespace mozilla {
12
namespace dom {
13
namespace PWebAuthnTransaction {
14
15
nsresult
16
CreateEndpoints(
17
        base::ProcessId aParentDestPid,
18
        base::ProcessId aChildDestPid,
19
        mozilla::ipc::Endpoint<mozilla::dom::PWebAuthnTransactionParent>* aParent,
20
        mozilla::ipc::Endpoint<mozilla::dom::PWebAuthnTransactionChild>* aChild)
21
0
{
22
0
    return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, aParent, aChild);
23
0
}
24
IPC::Message*
25
Msg_RequestRegister(int32_t routingId)
26
0
{
27
0
    return IPC::Message::IPDLMessage(routingId, Msg_RequestRegister__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));
28
0
}
29
IPC::Message*
30
Msg_RequestSign(int32_t routingId)
31
0
{
32
0
    return IPC::Message::IPDLMessage(routingId, Msg_RequestSign__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));
33
0
}
34
IPC::Message*
35
Msg_RequestCancel(int32_t routingId)
36
0
{
37
0
    return IPC::Message::IPDLMessage(routingId, Msg_RequestCancel__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_DestroyMe(int32_t routingId)
41
0
{
42
0
    return IPC::Message::IPDLMessage(routingId, Msg_DestroyMe__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___delete__(int32_t routingId)
46
0
{
47
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));
48
0
}
49
IPC::Message*
50
Reply___delete__(int32_t routingId)
51
0
{
52
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));
53
0
}
54
IPC::Message*
55
Msg_ConfirmRegister(int32_t routingId)
56
0
{
57
0
    return IPC::Message::IPDLMessage(routingId, Msg_ConfirmRegister__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));
58
0
}
59
IPC::Message*
60
Msg_ConfirmSign(int32_t routingId)
61
0
{
62
0
    return IPC::Message::IPDLMessage(routingId, Msg_ConfirmSign__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
Msg_Abort(int32_t routingId)
66
0
{
67
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));
68
0
}
69
70
} // namespace PWebAuthnTransaction
71
} // namespace dom
72
} // namespace mozilla
73
74
//-----------------------------------------------------------------------------
75
// Method definitions for the IPDL type |struct WebAuthnAuthenticatorSelection|
76
//
77
namespace mozilla {
78
namespace dom {
79
auto WebAuthnAuthenticatorSelection::operator==(const WebAuthnAuthenticatorSelection& _o) const -> bool
80
0
{
81
0
    if ((!((requireResidentKey()) == ((_o).requireResidentKey())))) {
82
0
        return false;
83
0
    }
84
0
    if ((!((requireUserVerification()) == ((_o).requireUserVerification())))) {
85
0
        return false;
86
0
    }
87
0
    if ((!((requirePlatformAttachment()) == ((_o).requirePlatformAttachment())))) {
88
0
        return false;
89
0
    }
90
0
    return true;
91
0
}
92
93
auto WebAuthnAuthenticatorSelection::operator!=(const WebAuthnAuthenticatorSelection& _o) const -> bool
94
0
{
95
0
    return (!(operator==(_o)));
96
0
}
97
98
} // namespace dom
99
} // namespace mozilla
100
101
namespace mozilla {
102
namespace ipc {
103
auto IPDLParamTraits<mozilla::dom::WebAuthnAuthenticatorSelection>::Write(
104
        IPC::Message* aMsg,
105
        mozilla::ipc::IProtocol* aActor,
106
        const paramType& aVar) -> void
107
0
{
108
0
    WriteIPDLParam(aMsg, aActor, (aVar).requireResidentKey());
109
0
    // Sentinel = 'requireResidentKey'
110
0
    (aMsg)->WriteSentinel(3038925224);
111
0
    WriteIPDLParam(aMsg, aActor, (aVar).requireUserVerification());
112
0
    // Sentinel = 'requireUserVerification'
113
0
    (aMsg)->WriteSentinel(2015890210);
114
0
    WriteIPDLParam(aMsg, aActor, (aVar).requirePlatformAttachment());
115
0
    // Sentinel = 'requirePlatformAttachment'
116
0
    (aMsg)->WriteSentinel(1002097742);
117
0
}
118
119
auto IPDLParamTraits<mozilla::dom::WebAuthnAuthenticatorSelection>::Read(
120
        const IPC::Message* aMsg,
121
        PickleIterator* aIter,
122
        mozilla::ipc::IProtocol* aActor,
123
        paramType* aVar) -> bool
124
0
{
125
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->requireResidentKey())))))) {
126
0
        (aActor)->FatalError("Error deserializing 'requireResidentKey' (bool) member of 'WebAuthnAuthenticatorSelection'");
127
0
        return false;
128
0
    }
129
0
    // Sentinel = 'requireResidentKey'
130
0
    if ((!((aMsg)->ReadSentinel(aIter, 3038925224)))) {
131
0
        mozilla::ipc::SentinelReadError("Error deserializing 'requireResidentKey' (bool) member of 'WebAuthnAuthenticatorSelection'");
132
0
        return false;
133
0
    }
134
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->requireUserVerification())))))) {
135
0
        (aActor)->FatalError("Error deserializing 'requireUserVerification' (bool) member of 'WebAuthnAuthenticatorSelection'");
136
0
        return false;
137
0
    }
138
0
    // Sentinel = 'requireUserVerification'
139
0
    if ((!((aMsg)->ReadSentinel(aIter, 2015890210)))) {
140
0
        mozilla::ipc::SentinelReadError("Error deserializing 'requireUserVerification' (bool) member of 'WebAuthnAuthenticatorSelection'");
141
0
        return false;
142
0
    }
143
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->requirePlatformAttachment())))))) {
144
0
        (aActor)->FatalError("Error deserializing 'requirePlatformAttachment' (bool) member of 'WebAuthnAuthenticatorSelection'");
145
0
        return false;
146
0
    }
147
0
    // Sentinel = 'requirePlatformAttachment'
148
0
    if ((!((aMsg)->ReadSentinel(aIter, 1002097742)))) {
149
0
        mozilla::ipc::SentinelReadError("Error deserializing 'requirePlatformAttachment' (bool) member of 'WebAuthnAuthenticatorSelection'");
150
0
        return false;
151
0
    }
152
0
    return true;
153
0
}
154
155
} // namespace ipc
156
} // namespace mozilla
157
158
//-----------------------------------------------------------------------------
159
// Method definitions for the IPDL type |struct WebAuthnScopedCredential|
160
//
161
namespace mozilla {
162
namespace dom {
163
auto WebAuthnScopedCredential::operator==(const WebAuthnScopedCredential& _o) const -> bool
164
0
{
165
0
    if ((!((id()) == ((_o).id())))) {
166
0
        return false;
167
0
    }
168
0
    if ((!((transports()) == ((_o).transports())))) {
169
0
        return false;
170
0
    }
171
0
    return true;
172
0
}
173
174
auto WebAuthnScopedCredential::operator!=(const WebAuthnScopedCredential& _o) const -> bool
175
0
{
176
0
    return (!(operator==(_o)));
177
0
}
178
179
} // namespace dom
180
} // namespace mozilla
181
182
namespace mozilla {
183
namespace ipc {
184
auto IPDLParamTraits<mozilla::dom::WebAuthnScopedCredential>::Write(
185
        IPC::Message* aMsg,
186
        mozilla::ipc::IProtocol* aActor,
187
        const paramType& aVar) -> void
188
0
{
189
0
    WriteIPDLParam(aMsg, aActor, (aVar).id());
190
0
    // Sentinel = 'id'
191
0
    (aMsg)->WriteSentinel(2794505629);
192
0
    WriteIPDLParam(aMsg, aActor, (aVar).transports());
193
0
    // Sentinel = 'transports'
194
0
    (aMsg)->WriteSentinel(4259540988);
195
0
}
196
197
auto IPDLParamTraits<mozilla::dom::WebAuthnScopedCredential>::Read(
198
        const IPC::Message* aMsg,
199
        PickleIterator* aIter,
200
        mozilla::ipc::IProtocol* aActor,
201
        paramType* aVar) -> bool
202
0
{
203
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->id())))))) {
204
0
        (aActor)->FatalError("Error deserializing 'id' (uint8_t[]) member of 'WebAuthnScopedCredential'");
205
0
        return false;
206
0
    }
207
0
    // Sentinel = 'id'
208
0
    if ((!((aMsg)->ReadSentinel(aIter, 2794505629)))) {
209
0
        mozilla::ipc::SentinelReadError("Error deserializing 'id' (uint8_t[]) member of 'WebAuthnScopedCredential'");
210
0
        return false;
211
0
    }
212
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->transports())))))) {
213
0
        (aActor)->FatalError("Error deserializing 'transports' (uint8_t) member of 'WebAuthnScopedCredential'");
214
0
        return false;
215
0
    }
216
0
    // Sentinel = 'transports'
217
0
    if ((!((aMsg)->ReadSentinel(aIter, 4259540988)))) {
218
0
        mozilla::ipc::SentinelReadError("Error deserializing 'transports' (uint8_t) member of 'WebAuthnScopedCredential'");
219
0
        return false;
220
0
    }
221
0
    return true;
222
0
}
223
224
} // namespace ipc
225
} // namespace mozilla
226
227
//-----------------------------------------------------------------------------
228
// Method definitions for the IPDL type |struct WebAuthnExtensionAppId|
229
//
230
namespace mozilla {
231
namespace dom {
232
auto WebAuthnExtensionAppId::operator==(const WebAuthnExtensionAppId& _o) const -> bool
233
0
{
234
0
    if ((!((AppId()) == ((_o).AppId())))) {
235
0
        return false;
236
0
    }
237
0
    return true;
238
0
}
239
240
auto WebAuthnExtensionAppId::operator!=(const WebAuthnExtensionAppId& _o) const -> bool
241
0
{
242
0
    return (!(operator==(_o)));
243
0
}
244
245
} // namespace dom
246
} // namespace mozilla
247
248
namespace mozilla {
249
namespace ipc {
250
auto IPDLParamTraits<mozilla::dom::WebAuthnExtensionAppId>::Write(
251
        IPC::Message* aMsg,
252
        mozilla::ipc::IProtocol* aActor,
253
        const paramType& aVar) -> void
254
0
{
255
0
    WriteIPDLParam(aMsg, aActor, (aVar).AppId());
256
0
    // Sentinel = 'AppId'
257
0
    (aMsg)->WriteSentinel(1684641527);
258
0
}
259
260
auto IPDLParamTraits<mozilla::dom::WebAuthnExtensionAppId>::Read(
261
        const IPC::Message* aMsg,
262
        PickleIterator* aIter,
263
        mozilla::ipc::IProtocol* aActor,
264
        paramType* aVar) -> bool
265
0
{
266
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->AppId())))))) {
267
0
        (aActor)->FatalError("Error deserializing 'AppId' (uint8_t[]) member of 'WebAuthnExtensionAppId'");
268
0
        return false;
269
0
    }
270
0
    // Sentinel = 'AppId'
271
0
    if ((!((aMsg)->ReadSentinel(aIter, 1684641527)))) {
272
0
        mozilla::ipc::SentinelReadError("Error deserializing 'AppId' (uint8_t[]) member of 'WebAuthnExtensionAppId'");
273
0
        return false;
274
0
    }
275
0
    return true;
276
0
}
277
278
} // namespace ipc
279
} // namespace mozilla
280
281
//-----------------------------------------------------------------------------
282
// Method definitions for the IPDL type |union WebAuthnExtension|
283
//
284
namespace mozilla {
285
namespace dom {
286
auto WebAuthnExtension::MaybeDestroy(Type aNewType) -> bool
287
0
{
288
0
    if ((mType) == (T__None)) {
289
0
        return true;
290
0
    }
291
0
    if ((mType) == (aNewType)) {
292
0
        return false;
293
0
    }
294
0
    switch (mType) {
295
0
    case TWebAuthnExtensionAppId:
296
0
        {
297
0
            (ptr_WebAuthnExtensionAppId())->~WebAuthnExtensionAppId__tdef();
298
0
            break;
299
0
        }
300
0
    default:
301
0
        {
302
0
            mozilla::ipc::LogicError("not reached");
303
0
            break;
304
0
        }
305
0
    }
306
0
    return true;
307
0
}
308
309
MOZ_IMPLICIT WebAuthnExtension::WebAuthnExtension(const WebAuthnExtensionAppId& aOther)
310
0
{
311
0
    new (mozilla::KnownNotNull, ptr_WebAuthnExtensionAppId()) WebAuthnExtensionAppId(aOther);
312
0
    mType = TWebAuthnExtensionAppId;
313
0
}
314
315
MOZ_IMPLICIT WebAuthnExtension::WebAuthnExtension(WebAuthnExtensionAppId&& aOther)
316
0
{
317
0
    new (mozilla::KnownNotNull, ptr_WebAuthnExtensionAppId()) WebAuthnExtensionAppId(std::move(aOther));
318
0
    mType = TWebAuthnExtensionAppId;
319
0
}
320
321
MOZ_IMPLICIT WebAuthnExtension::WebAuthnExtension(const WebAuthnExtension& aOther)
322
0
{
323
0
    (aOther).AssertSanity();
324
0
    switch ((aOther).type()) {
325
0
    case TWebAuthnExtensionAppId:
326
0
        {
327
0
            new (mozilla::KnownNotNull, ptr_WebAuthnExtensionAppId()) WebAuthnExtensionAppId((aOther).get_WebAuthnExtensionAppId());
328
0
            break;
329
0
        }
330
0
    case T__None:
331
0
        {
332
0
            break;
333
0
        }
334
0
    default:
335
0
        {
336
0
            mozilla::ipc::LogicError("unreached");
337
0
            return;
338
0
        }
339
0
    }
340
0
    mType = (aOther).type();
341
0
}
342
343
MOZ_IMPLICIT WebAuthnExtension::WebAuthnExtension(WebAuthnExtension&& aOther)
344
0
{
345
0
    (aOther).AssertSanity();
346
0
    Type t = (aOther).type();
347
0
    switch (t) {
348
0
    case TWebAuthnExtensionAppId:
349
0
        {
350
0
            new (mozilla::KnownNotNull, ptr_WebAuthnExtensionAppId()) WebAuthnExtensionAppId(std::move((aOther).get_WebAuthnExtensionAppId()));
351
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
352
0
            break;
353
0
        }
354
0
    case T__None:
355
0
        {
356
0
            break;
357
0
        }
358
0
    default:
359
0
        {
360
0
            mozilla::ipc::LogicError("unreached");
361
0
            return;
362
0
        }
363
0
    }
364
0
    (aOther).mType = T__None;
365
0
    mType = t;
366
0
}
367
368
WebAuthnExtension::~WebAuthnExtension()
369
0
{
370
0
    static_cast<void>(MaybeDestroy(T__None));
371
0
}
372
373
auto WebAuthnExtension::operator=(const WebAuthnExtensionAppId& aRhs) -> WebAuthnExtension&
374
0
{
375
0
    if (MaybeDestroy(TWebAuthnExtensionAppId)) {
376
0
        new (mozilla::KnownNotNull, ptr_WebAuthnExtensionAppId()) WebAuthnExtensionAppId;
377
0
    }
378
0
    (*(ptr_WebAuthnExtensionAppId())) = aRhs;
379
0
    mType = TWebAuthnExtensionAppId;
380
0
    return (*(this));
381
0
}
382
383
auto WebAuthnExtension::operator=(WebAuthnExtensionAppId&& aRhs) -> WebAuthnExtension&
384
0
{
385
0
    if (MaybeDestroy(TWebAuthnExtensionAppId)) {
386
0
        new (mozilla::KnownNotNull, ptr_WebAuthnExtensionAppId()) WebAuthnExtensionAppId;
387
0
    }
388
0
    (*(ptr_WebAuthnExtensionAppId())) = std::move(aRhs);
389
0
    mType = TWebAuthnExtensionAppId;
390
0
    return (*(this));
391
0
}
392
393
auto WebAuthnExtension::operator=(const WebAuthnExtension& aRhs) -> WebAuthnExtension&
394
0
{
395
0
    (aRhs).AssertSanity();
396
0
    Type t = (aRhs).type();
397
0
    switch (t) {
398
0
    case TWebAuthnExtensionAppId:
399
0
        {
400
0
            if (MaybeDestroy(t)) {
401
0
                new (mozilla::KnownNotNull, ptr_WebAuthnExtensionAppId()) WebAuthnExtensionAppId;
402
0
            }
403
0
            (*(ptr_WebAuthnExtensionAppId())) = (aRhs).get_WebAuthnExtensionAppId();
404
0
            break;
405
0
        }
406
0
    case T__None:
407
0
        {
408
0
            static_cast<void>(MaybeDestroy(t));
409
0
            break;
410
0
        }
411
0
    default:
412
0
        {
413
0
            mozilla::ipc::LogicError("unreached");
414
0
            break;
415
0
        }
416
0
    }
417
0
    mType = t;
418
0
    return (*(this));
419
0
}
420
421
auto WebAuthnExtension::operator=(WebAuthnExtension&& aRhs) -> WebAuthnExtension&
422
0
{
423
0
    (aRhs).AssertSanity();
424
0
    Type t = (aRhs).type();
425
0
    switch (t) {
426
0
    case TWebAuthnExtensionAppId:
427
0
        {
428
0
            if (MaybeDestroy(t)) {
429
0
                new (mozilla::KnownNotNull, ptr_WebAuthnExtensionAppId()) WebAuthnExtensionAppId;
430
0
            }
431
0
            (*(ptr_WebAuthnExtensionAppId())) = std::move((aRhs).get_WebAuthnExtensionAppId());
432
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
433
0
            break;
434
0
        }
435
0
    case T__None:
436
0
        {
437
0
            static_cast<void>(MaybeDestroy(t));
438
0
            break;
439
0
        }
440
0
    default:
441
0
        {
442
0
            mozilla::ipc::LogicError("unreached");
443
0
            break;
444
0
        }
445
0
    }
446
0
    (aRhs).mType = T__None;
447
0
    mType = t;
448
0
    return (*(this));
449
0
}
450
451
auto WebAuthnExtension::operator==(const WebAuthnExtensionAppId& aRhs) const -> bool
452
0
{
453
0
    return (get_WebAuthnExtensionAppId()) == (aRhs);
454
0
}
455
456
auto WebAuthnExtension::operator==(const WebAuthnExtension& aRhs) const -> bool
457
0
{
458
0
    if ((type()) != ((aRhs).type())) {
459
0
        return false;
460
0
    }
461
0
462
0
    switch (type()) {
463
0
    case TWebAuthnExtensionAppId:
464
0
        {
465
0
            return (get_WebAuthnExtensionAppId()) == ((aRhs).get_WebAuthnExtensionAppId());
466
0
        }
467
0
    default:
468
0
        {
469
0
            mozilla::ipc::LogicError("unreached");
470
0
            return false;
471
0
        }
472
0
    }
473
0
}
474
475
auto WebAuthnExtension::get(WebAuthnExtensionAppId* aOutValue) const -> void
476
0
{
477
0
    (*(aOutValue)) = get_WebAuthnExtensionAppId();
478
0
}
479
480
} // namespace dom
481
} // namespace mozilla
482
483
namespace mozilla {
484
namespace ipc {
485
auto IPDLParamTraits<mozilla::dom::WebAuthnExtension>::Write(
486
        IPC::Message* aMsg,
487
        mozilla::ipc::IProtocol* aActor,
488
        const paramType& aVar) -> void
489
{
490
    typedef mozilla::dom::WebAuthnExtension union__;
491
    int type;
492
    type = (aVar).type();
493
    WriteIPDLParam(aMsg, aActor, type);
494
    // Sentinel = 'WebAuthnExtension'
495
    (aMsg)->WriteSentinel(1952102564);
496
497
    switch (type) {
498
    case union__::TWebAuthnExtensionAppId:
499
        {
500
            WriteIPDLParam(aMsg, aActor, (aVar).get_WebAuthnExtensionAppId());
501
            // Sentinel = 'TWebAuthnExtensionAppId'
502
            (aMsg)->WriteSentinel(3592414022);
503
            return;
504
        }
505
    default:
506
        {
507
            (aActor)->FatalError("unknown union type");
508
            return;
509
        }
510
    }
511
}
512
513
auto IPDLParamTraits<mozilla::dom::WebAuthnExtension>::Read(
514
        const IPC::Message* aMsg,
515
        PickleIterator* aIter,
516
        mozilla::ipc::IProtocol* aActor,
517
        paramType* aVar) -> bool
518
0
{
519
0
    typedef mozilla::dom::WebAuthnExtension union__;
520
0
    int type;
521
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
522
0
        (aActor)->FatalError("Error deserializing type of union WebAuthnExtension");
523
0
        return false;
524
0
    }
525
0
    // Sentinel = 'WebAuthnExtension'
526
0
    if ((!((aMsg)->ReadSentinel(aIter, 1952102564)))) {
527
0
        mozilla::ipc::SentinelReadError("Error deserializing type of union WebAuthnExtension");
528
0
        return false;
529
0
    }
530
0
531
0
    switch (type) {
532
0
    case union__::TWebAuthnExtensionAppId:
533
0
        {
534
0
            mozilla::dom::WebAuthnExtensionAppId tmp = mozilla::dom::WebAuthnExtensionAppId();
535
0
            (*(aVar)) = tmp;
536
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_WebAuthnExtensionAppId())))))) {
537
0
                (aActor)->FatalError("Error deserializing variant TWebAuthnExtensionAppId of union WebAuthnExtension");
538
0
                return false;
539
0
            }
540
0
            // Sentinel = 'TWebAuthnExtensionAppId'
541
0
            if ((!((aMsg)->ReadSentinel(aIter, 3592414022)))) {
542
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TWebAuthnExtensionAppId of union WebAuthnExtension");
543
0
                return false;
544
0
            }
545
0
            return true;
546
0
        }
547
0
    default:
548
0
        {
549
0
            (aActor)->FatalError("unknown union type");
550
0
            return false;
551
0
        }
552
0
    }
553
0
}
554
555
} // namespace ipc
556
} // namespace mozilla
557
558
//-----------------------------------------------------------------------------
559
// Method definitions for the IPDL type |struct WebAuthnExtensionResultAppId|
560
//
561
namespace mozilla {
562
namespace dom {
563
auto WebAuthnExtensionResultAppId::operator==(const WebAuthnExtensionResultAppId& _o) const -> bool
564
0
{
565
0
    if ((!((AppId()) == ((_o).AppId())))) {
566
0
        return false;
567
0
    }
568
0
    return true;
569
0
}
570
571
auto WebAuthnExtensionResultAppId::operator!=(const WebAuthnExtensionResultAppId& _o) const -> bool
572
0
{
573
0
    return (!(operator==(_o)));
574
0
}
575
576
} // namespace dom
577
} // namespace mozilla
578
579
namespace mozilla {
580
namespace ipc {
581
auto IPDLParamTraits<mozilla::dom::WebAuthnExtensionResultAppId>::Write(
582
        IPC::Message* aMsg,
583
        mozilla::ipc::IProtocol* aActor,
584
        const paramType& aVar) -> void
585
0
{
586
0
    WriteIPDLParam(aMsg, aActor, (aVar).AppId());
587
0
    // Sentinel = 'AppId'
588
0
    (aMsg)->WriteSentinel(1684641527);
589
0
}
590
591
auto IPDLParamTraits<mozilla::dom::WebAuthnExtensionResultAppId>::Read(
592
        const IPC::Message* aMsg,
593
        PickleIterator* aIter,
594
        mozilla::ipc::IProtocol* aActor,
595
        paramType* aVar) -> bool
596
0
{
597
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->AppId())))))) {
598
0
        (aActor)->FatalError("Error deserializing 'AppId' (bool) member of 'WebAuthnExtensionResultAppId'");
599
0
        return false;
600
0
    }
601
0
    // Sentinel = 'AppId'
602
0
    if ((!((aMsg)->ReadSentinel(aIter, 1684641527)))) {
603
0
        mozilla::ipc::SentinelReadError("Error deserializing 'AppId' (bool) member of 'WebAuthnExtensionResultAppId'");
604
0
        return false;
605
0
    }
606
0
    return true;
607
0
}
608
609
} // namespace ipc
610
} // namespace mozilla
611
612
//-----------------------------------------------------------------------------
613
// Method definitions for the IPDL type |union WebAuthnExtensionResult|
614
//
615
namespace mozilla {
616
namespace dom {
617
auto WebAuthnExtensionResult::MaybeDestroy(Type aNewType) -> bool
618
0
{
619
0
    if ((mType) == (T__None)) {
620
0
        return true;
621
0
    }
622
0
    if ((mType) == (aNewType)) {
623
0
        return false;
624
0
    }
625
0
    switch (mType) {
626
0
    case TWebAuthnExtensionResultAppId:
627
0
        {
628
0
            (ptr_WebAuthnExtensionResultAppId())->~WebAuthnExtensionResultAppId__tdef();
629
0
            break;
630
0
        }
631
0
    default:
632
0
        {
633
0
            mozilla::ipc::LogicError("not reached");
634
0
            break;
635
0
        }
636
0
    }
637
0
    return true;
638
0
}
639
640
MOZ_IMPLICIT WebAuthnExtensionResult::WebAuthnExtensionResult(const WebAuthnExtensionResultAppId& aOther)
641
0
{
642
0
    new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultAppId()) WebAuthnExtensionResultAppId(aOther);
643
0
    mType = TWebAuthnExtensionResultAppId;
644
0
}
645
646
MOZ_IMPLICIT WebAuthnExtensionResult::WebAuthnExtensionResult(WebAuthnExtensionResultAppId&& aOther)
647
0
{
648
0
    new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultAppId()) WebAuthnExtensionResultAppId(std::move(aOther));
649
0
    mType = TWebAuthnExtensionResultAppId;
650
0
}
651
652
MOZ_IMPLICIT WebAuthnExtensionResult::WebAuthnExtensionResult(const WebAuthnExtensionResult& aOther)
653
0
{
654
0
    (aOther).AssertSanity();
655
0
    switch ((aOther).type()) {
656
0
    case TWebAuthnExtensionResultAppId:
657
0
        {
658
0
            new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultAppId()) WebAuthnExtensionResultAppId((aOther).get_WebAuthnExtensionResultAppId());
659
0
            break;
660
0
        }
661
0
    case T__None:
662
0
        {
663
0
            break;
664
0
        }
665
0
    default:
666
0
        {
667
0
            mozilla::ipc::LogicError("unreached");
668
0
            return;
669
0
        }
670
0
    }
671
0
    mType = (aOther).type();
672
0
}
673
674
MOZ_IMPLICIT WebAuthnExtensionResult::WebAuthnExtensionResult(WebAuthnExtensionResult&& aOther)
675
0
{
676
0
    (aOther).AssertSanity();
677
0
    Type t = (aOther).type();
678
0
    switch (t) {
679
0
    case TWebAuthnExtensionResultAppId:
680
0
        {
681
0
            new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultAppId()) WebAuthnExtensionResultAppId(std::move((aOther).get_WebAuthnExtensionResultAppId()));
682
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
683
0
            break;
684
0
        }
685
0
    case T__None:
686
0
        {
687
0
            break;
688
0
        }
689
0
    default:
690
0
        {
691
0
            mozilla::ipc::LogicError("unreached");
692
0
            return;
693
0
        }
694
0
    }
695
0
    (aOther).mType = T__None;
696
0
    mType = t;
697
0
}
698
699
WebAuthnExtensionResult::~WebAuthnExtensionResult()
700
0
{
701
0
    static_cast<void>(MaybeDestroy(T__None));
702
0
}
703
704
auto WebAuthnExtensionResult::operator=(const WebAuthnExtensionResultAppId& aRhs) -> WebAuthnExtensionResult&
705
0
{
706
0
    if (MaybeDestroy(TWebAuthnExtensionResultAppId)) {
707
0
        new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultAppId()) WebAuthnExtensionResultAppId;
708
0
    }
709
0
    (*(ptr_WebAuthnExtensionResultAppId())) = aRhs;
710
0
    mType = TWebAuthnExtensionResultAppId;
711
0
    return (*(this));
712
0
}
713
714
auto WebAuthnExtensionResult::operator=(WebAuthnExtensionResultAppId&& aRhs) -> WebAuthnExtensionResult&
715
0
{
716
0
    if (MaybeDestroy(TWebAuthnExtensionResultAppId)) {
717
0
        new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultAppId()) WebAuthnExtensionResultAppId;
718
0
    }
719
0
    (*(ptr_WebAuthnExtensionResultAppId())) = std::move(aRhs);
720
0
    mType = TWebAuthnExtensionResultAppId;
721
0
    return (*(this));
722
0
}
723
724
auto WebAuthnExtensionResult::operator=(const WebAuthnExtensionResult& aRhs) -> WebAuthnExtensionResult&
725
0
{
726
0
    (aRhs).AssertSanity();
727
0
    Type t = (aRhs).type();
728
0
    switch (t) {
729
0
    case TWebAuthnExtensionResultAppId:
730
0
        {
731
0
            if (MaybeDestroy(t)) {
732
0
                new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultAppId()) WebAuthnExtensionResultAppId;
733
0
            }
734
0
            (*(ptr_WebAuthnExtensionResultAppId())) = (aRhs).get_WebAuthnExtensionResultAppId();
735
0
            break;
736
0
        }
737
0
    case T__None:
738
0
        {
739
0
            static_cast<void>(MaybeDestroy(t));
740
0
            break;
741
0
        }
742
0
    default:
743
0
        {
744
0
            mozilla::ipc::LogicError("unreached");
745
0
            break;
746
0
        }
747
0
    }
748
0
    mType = t;
749
0
    return (*(this));
750
0
}
751
752
auto WebAuthnExtensionResult::operator=(WebAuthnExtensionResult&& aRhs) -> WebAuthnExtensionResult&
753
0
{
754
0
    (aRhs).AssertSanity();
755
0
    Type t = (aRhs).type();
756
0
    switch (t) {
757
0
    case TWebAuthnExtensionResultAppId:
758
0
        {
759
0
            if (MaybeDestroy(t)) {
760
0
                new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultAppId()) WebAuthnExtensionResultAppId;
761
0
            }
762
0
            (*(ptr_WebAuthnExtensionResultAppId())) = std::move((aRhs).get_WebAuthnExtensionResultAppId());
763
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
764
0
            break;
765
0
        }
766
0
    case T__None:
767
0
        {
768
0
            static_cast<void>(MaybeDestroy(t));
769
0
            break;
770
0
        }
771
0
    default:
772
0
        {
773
0
            mozilla::ipc::LogicError("unreached");
774
0
            break;
775
0
        }
776
0
    }
777
0
    (aRhs).mType = T__None;
778
0
    mType = t;
779
0
    return (*(this));
780
0
}
781
782
auto WebAuthnExtensionResult::operator==(const WebAuthnExtensionResultAppId& aRhs) const -> bool
783
0
{
784
0
    return (get_WebAuthnExtensionResultAppId()) == (aRhs);
785
0
}
786
787
auto WebAuthnExtensionResult::operator==(const WebAuthnExtensionResult& aRhs) const -> bool
788
0
{
789
0
    if ((type()) != ((aRhs).type())) {
790
0
        return false;
791
0
    }
792
0
793
0
    switch (type()) {
794
0
    case TWebAuthnExtensionResultAppId:
795
0
        {
796
0
            return (get_WebAuthnExtensionResultAppId()) == ((aRhs).get_WebAuthnExtensionResultAppId());
797
0
        }
798
0
    default:
799
0
        {
800
0
            mozilla::ipc::LogicError("unreached");
801
0
            return false;
802
0
        }
803
0
    }
804
0
}
805
806
auto WebAuthnExtensionResult::get(WebAuthnExtensionResultAppId* aOutValue) const -> void
807
0
{
808
0
    (*(aOutValue)) = get_WebAuthnExtensionResultAppId();
809
0
}
810
811
} // namespace dom
812
} // namespace mozilla
813
814
namespace mozilla {
815
namespace ipc {
816
auto IPDLParamTraits<mozilla::dom::WebAuthnExtensionResult>::Write(
817
        IPC::Message* aMsg,
818
        mozilla::ipc::IProtocol* aActor,
819
        const paramType& aVar) -> void
820
{
821
    typedef mozilla::dom::WebAuthnExtensionResult union__;
822
    int type;
823
    type = (aVar).type();
824
    WriteIPDLParam(aMsg, aActor, type);
825
    // Sentinel = 'WebAuthnExtensionResult'
826
    (aMsg)->WriteSentinel(275033493);
827
828
    switch (type) {
829
    case union__::TWebAuthnExtensionResultAppId:
830
        {
831
            WriteIPDLParam(aMsg, aActor, (aVar).get_WebAuthnExtensionResultAppId());
832
            // Sentinel = 'TWebAuthnExtensionResultAppId'
833
            (aMsg)->WriteSentinel(2012059377);
834
            return;
835
        }
836
    default:
837
        {
838
            (aActor)->FatalError("unknown union type");
839
            return;
840
        }
841
    }
842
}
843
844
auto IPDLParamTraits<mozilla::dom::WebAuthnExtensionResult>::Read(
845
        const IPC::Message* aMsg,
846
        PickleIterator* aIter,
847
        mozilla::ipc::IProtocol* aActor,
848
        paramType* aVar) -> bool
849
0
{
850
0
    typedef mozilla::dom::WebAuthnExtensionResult union__;
851
0
    int type;
852
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
853
0
        (aActor)->FatalError("Error deserializing type of union WebAuthnExtensionResult");
854
0
        return false;
855
0
    }
856
0
    // Sentinel = 'WebAuthnExtensionResult'
857
0
    if ((!((aMsg)->ReadSentinel(aIter, 275033493)))) {
858
0
        mozilla::ipc::SentinelReadError("Error deserializing type of union WebAuthnExtensionResult");
859
0
        return false;
860
0
    }
861
0
862
0
    switch (type) {
863
0
    case union__::TWebAuthnExtensionResultAppId:
864
0
        {
865
0
            mozilla::dom::WebAuthnExtensionResultAppId tmp = mozilla::dom::WebAuthnExtensionResultAppId();
866
0
            (*(aVar)) = tmp;
867
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_WebAuthnExtensionResultAppId())))))) {
868
0
                (aActor)->FatalError("Error deserializing variant TWebAuthnExtensionResultAppId of union WebAuthnExtensionResult");
869
0
                return false;
870
0
            }
871
0
            // Sentinel = 'TWebAuthnExtensionResultAppId'
872
0
            if ((!((aMsg)->ReadSentinel(aIter, 2012059377)))) {
873
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TWebAuthnExtensionResultAppId of union WebAuthnExtensionResult");
874
0
                return false;
875
0
            }
876
0
            return true;
877
0
        }
878
0
    default:
879
0
        {
880
0
            (aActor)->FatalError("unknown union type");
881
0
            return false;
882
0
        }
883
0
    }
884
0
}
885
886
} // namespace ipc
887
} // namespace mozilla
888
889
//-----------------------------------------------------------------------------
890
// Method definitions for the IPDL type |struct WebAuthnMakeCredentialExtraInfo|
891
//
892
namespace mozilla {
893
namespace dom {
894
auto WebAuthnMakeCredentialExtraInfo::operator==(const WebAuthnMakeCredentialExtraInfo& _o) const -> bool
895
0
{
896
0
    if ((!((Extensions()) == ((_o).Extensions())))) {
897
0
        return false;
898
0
    }
899
0
    if ((!((AuthenticatorSelection()) == ((_o).AuthenticatorSelection())))) {
900
0
        return false;
901
0
    }
902
0
    if ((!((RequestDirectAttestation()) == ((_o).RequestDirectAttestation())))) {
903
0
        return false;
904
0
    }
905
0
    return true;
906
0
}
907
908
auto WebAuthnMakeCredentialExtraInfo::operator!=(const WebAuthnMakeCredentialExtraInfo& _o) const -> bool
909
0
{
910
0
    return (!(operator==(_o)));
911
0
}
912
913
} // namespace dom
914
} // namespace mozilla
915
916
namespace mozilla {
917
namespace ipc {
918
auto IPDLParamTraits<mozilla::dom::WebAuthnMakeCredentialExtraInfo>::Write(
919
        IPC::Message* aMsg,
920
        mozilla::ipc::IProtocol* aActor,
921
        const paramType& aVar) -> void
922
0
{
923
0
    WriteIPDLParam(aMsg, aActor, (aVar).Extensions());
924
0
    // Sentinel = 'Extensions'
925
0
    (aMsg)->WriteSentinel(77077076);
926
0
    WriteIPDLParam(aMsg, aActor, (aVar).AuthenticatorSelection());
927
0
    // Sentinel = 'AuthenticatorSelection'
928
0
    (aMsg)->WriteSentinel(2526840071);
929
0
    WriteIPDLParam(aMsg, aActor, (aVar).RequestDirectAttestation());
930
0
    // Sentinel = 'RequestDirectAttestation'
931
0
    (aMsg)->WriteSentinel(3849338194);
932
0
}
933
934
auto IPDLParamTraits<mozilla::dom::WebAuthnMakeCredentialExtraInfo>::Read(
935
        const IPC::Message* aMsg,
936
        PickleIterator* aIter,
937
        mozilla::ipc::IProtocol* aActor,
938
        paramType* aVar) -> bool
939
0
{
940
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->Extensions())))))) {
941
0
        (aActor)->FatalError("Error deserializing 'Extensions' (WebAuthnExtension[]) member of 'WebAuthnMakeCredentialExtraInfo'");
942
0
        return false;
943
0
    }
944
0
    // Sentinel = 'Extensions'
945
0
    if ((!((aMsg)->ReadSentinel(aIter, 77077076)))) {
946
0
        mozilla::ipc::SentinelReadError("Error deserializing 'Extensions' (WebAuthnExtension[]) member of 'WebAuthnMakeCredentialExtraInfo'");
947
0
        return false;
948
0
    }
949
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->AuthenticatorSelection())))))) {
950
0
        (aActor)->FatalError("Error deserializing 'AuthenticatorSelection' (WebAuthnAuthenticatorSelection) member of 'WebAuthnMakeCredentialExtraInfo'");
951
0
        return false;
952
0
    }
953
0
    // Sentinel = 'AuthenticatorSelection'
954
0
    if ((!((aMsg)->ReadSentinel(aIter, 2526840071)))) {
955
0
        mozilla::ipc::SentinelReadError("Error deserializing 'AuthenticatorSelection' (WebAuthnAuthenticatorSelection) member of 'WebAuthnMakeCredentialExtraInfo'");
956
0
        return false;
957
0
    }
958
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->RequestDirectAttestation())))))) {
959
0
        (aActor)->FatalError("Error deserializing 'RequestDirectAttestation' (bool) member of 'WebAuthnMakeCredentialExtraInfo'");
960
0
        return false;
961
0
    }
962
0
    // Sentinel = 'RequestDirectAttestation'
963
0
    if ((!((aMsg)->ReadSentinel(aIter, 3849338194)))) {
964
0
        mozilla::ipc::SentinelReadError("Error deserializing 'RequestDirectAttestation' (bool) member of 'WebAuthnMakeCredentialExtraInfo'");
965
0
        return false;
966
0
    }
967
0
    return true;
968
0
}
969
970
} // namespace ipc
971
} // namespace mozilla
972
973
//-----------------------------------------------------------------------------
974
// Method definitions for the IPDL type |union WebAuthnMaybeMakeCredentialExtraInfo|
975
//
976
namespace mozilla {
977
namespace dom {
978
auto WebAuthnMaybeMakeCredentialExtraInfo::MaybeDestroy(Type aNewType) -> bool
979
0
{
980
0
    if ((mType) == (T__None)) {
981
0
        return true;
982
0
    }
983
0
    if ((mType) == (aNewType)) {
984
0
        return false;
985
0
    }
986
0
    switch (mType) {
987
0
    case TWebAuthnMakeCredentialExtraInfo:
988
0
        {
989
0
            (ptr_WebAuthnMakeCredentialExtraInfo())->~WebAuthnMakeCredentialExtraInfo__tdef();
990
0
            break;
991
0
        }
992
0
    case Tnull_t:
993
0
        {
994
0
            (ptr_null_t())->~null_t__tdef();
995
0
            break;
996
0
        }
997
0
    default:
998
0
        {
999
0
            mozilla::ipc::LogicError("not reached");
1000
0
            break;
1001
0
        }
1002
0
    }
1003
0
    return true;
1004
0
}
1005
1006
MOZ_IMPLICIT WebAuthnMaybeMakeCredentialExtraInfo::WebAuthnMaybeMakeCredentialExtraInfo(const WebAuthnMakeCredentialExtraInfo& aOther)
1007
0
{
1008
0
    new (mozilla::KnownNotNull, ptr_WebAuthnMakeCredentialExtraInfo()) WebAuthnMakeCredentialExtraInfo(aOther);
1009
0
    mType = TWebAuthnMakeCredentialExtraInfo;
1010
0
}
1011
1012
MOZ_IMPLICIT WebAuthnMaybeMakeCredentialExtraInfo::WebAuthnMaybeMakeCredentialExtraInfo(WebAuthnMakeCredentialExtraInfo&& aOther)
1013
0
{
1014
0
    new (mozilla::KnownNotNull, ptr_WebAuthnMakeCredentialExtraInfo()) WebAuthnMakeCredentialExtraInfo(std::move(aOther));
1015
0
    mType = TWebAuthnMakeCredentialExtraInfo;
1016
0
}
1017
1018
MOZ_IMPLICIT WebAuthnMaybeMakeCredentialExtraInfo::WebAuthnMaybeMakeCredentialExtraInfo(const null_t& aOther)
1019
0
{
1020
0
    new (mozilla::KnownNotNull, ptr_null_t()) null_t(aOther);
1021
0
    mType = Tnull_t;
1022
0
}
1023
1024
MOZ_IMPLICIT WebAuthnMaybeMakeCredentialExtraInfo::WebAuthnMaybeMakeCredentialExtraInfo(null_t&& aOther)
1025
0
{
1026
0
    new (mozilla::KnownNotNull, ptr_null_t()) null_t(std::move(aOther));
1027
0
    mType = Tnull_t;
1028
0
}
1029
1030
MOZ_IMPLICIT WebAuthnMaybeMakeCredentialExtraInfo::WebAuthnMaybeMakeCredentialExtraInfo(const WebAuthnMaybeMakeCredentialExtraInfo& aOther)
1031
0
{
1032
0
    (aOther).AssertSanity();
1033
0
    switch ((aOther).type()) {
1034
0
    case TWebAuthnMakeCredentialExtraInfo:
1035
0
        {
1036
0
            new (mozilla::KnownNotNull, ptr_WebAuthnMakeCredentialExtraInfo()) WebAuthnMakeCredentialExtraInfo((aOther).get_WebAuthnMakeCredentialExtraInfo());
1037
0
            break;
1038
0
        }
1039
0
    case Tnull_t:
1040
0
        {
1041
0
            new (mozilla::KnownNotNull, ptr_null_t()) null_t((aOther).get_null_t());
1042
0
            break;
1043
0
        }
1044
0
    case T__None:
1045
0
        {
1046
0
            break;
1047
0
        }
1048
0
    default:
1049
0
        {
1050
0
            mozilla::ipc::LogicError("unreached");
1051
0
            return;
1052
0
        }
1053
0
    }
1054
0
    mType = (aOther).type();
1055
0
}
1056
1057
MOZ_IMPLICIT WebAuthnMaybeMakeCredentialExtraInfo::WebAuthnMaybeMakeCredentialExtraInfo(WebAuthnMaybeMakeCredentialExtraInfo&& aOther)
1058
0
{
1059
0
    (aOther).AssertSanity();
1060
0
    Type t = (aOther).type();
1061
0
    switch (t) {
1062
0
    case TWebAuthnMakeCredentialExtraInfo:
1063
0
        {
1064
0
            new (mozilla::KnownNotNull, ptr_WebAuthnMakeCredentialExtraInfo()) WebAuthnMakeCredentialExtraInfo(std::move((aOther).get_WebAuthnMakeCredentialExtraInfo()));
1065
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
1066
0
            break;
1067
0
        }
1068
0
    case Tnull_t:
1069
0
        {
1070
0
            new (mozilla::KnownNotNull, ptr_null_t()) null_t(std::move((aOther).get_null_t()));
1071
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
1072
0
            break;
1073
0
        }
1074
0
    case T__None:
1075
0
        {
1076
0
            break;
1077
0
        }
1078
0
    default:
1079
0
        {
1080
0
            mozilla::ipc::LogicError("unreached");
1081
0
            return;
1082
0
        }
1083
0
    }
1084
0
    (aOther).mType = T__None;
1085
0
    mType = t;
1086
0
}
1087
1088
WebAuthnMaybeMakeCredentialExtraInfo::~WebAuthnMaybeMakeCredentialExtraInfo()
1089
0
{
1090
0
    static_cast<void>(MaybeDestroy(T__None));
1091
0
}
1092
1093
auto WebAuthnMaybeMakeCredentialExtraInfo::operator=(const WebAuthnMakeCredentialExtraInfo& aRhs) -> WebAuthnMaybeMakeCredentialExtraInfo&
1094
0
{
1095
0
    if (MaybeDestroy(TWebAuthnMakeCredentialExtraInfo)) {
1096
0
        new (mozilla::KnownNotNull, ptr_WebAuthnMakeCredentialExtraInfo()) WebAuthnMakeCredentialExtraInfo;
1097
0
    }
1098
0
    (*(ptr_WebAuthnMakeCredentialExtraInfo())) = aRhs;
1099
0
    mType = TWebAuthnMakeCredentialExtraInfo;
1100
0
    return (*(this));
1101
0
}
1102
1103
auto WebAuthnMaybeMakeCredentialExtraInfo::operator=(WebAuthnMakeCredentialExtraInfo&& aRhs) -> WebAuthnMaybeMakeCredentialExtraInfo&
1104
0
{
1105
0
    if (MaybeDestroy(TWebAuthnMakeCredentialExtraInfo)) {
1106
0
        new (mozilla::KnownNotNull, ptr_WebAuthnMakeCredentialExtraInfo()) WebAuthnMakeCredentialExtraInfo;
1107
0
    }
1108
0
    (*(ptr_WebAuthnMakeCredentialExtraInfo())) = std::move(aRhs);
1109
0
    mType = TWebAuthnMakeCredentialExtraInfo;
1110
0
    return (*(this));
1111
0
}
1112
1113
auto WebAuthnMaybeMakeCredentialExtraInfo::operator=(const null_t& aRhs) -> WebAuthnMaybeMakeCredentialExtraInfo&
1114
0
{
1115
0
    if (MaybeDestroy(Tnull_t)) {
1116
0
        new (mozilla::KnownNotNull, ptr_null_t()) null_t;
1117
0
    }
1118
0
    (*(ptr_null_t())) = aRhs;
1119
0
    mType = Tnull_t;
1120
0
    return (*(this));
1121
0
}
1122
1123
auto WebAuthnMaybeMakeCredentialExtraInfo::operator=(null_t&& aRhs) -> WebAuthnMaybeMakeCredentialExtraInfo&
1124
0
{
1125
0
    if (MaybeDestroy(Tnull_t)) {
1126
0
        new (mozilla::KnownNotNull, ptr_null_t()) null_t;
1127
0
    }
1128
0
    (*(ptr_null_t())) = std::move(aRhs);
1129
0
    mType = Tnull_t;
1130
0
    return (*(this));
1131
0
}
1132
1133
auto WebAuthnMaybeMakeCredentialExtraInfo::operator=(const WebAuthnMaybeMakeCredentialExtraInfo& aRhs) -> WebAuthnMaybeMakeCredentialExtraInfo&
1134
0
{
1135
0
    (aRhs).AssertSanity();
1136
0
    Type t = (aRhs).type();
1137
0
    switch (t) {
1138
0
    case TWebAuthnMakeCredentialExtraInfo:
1139
0
        {
1140
0
            if (MaybeDestroy(t)) {
1141
0
                new (mozilla::KnownNotNull, ptr_WebAuthnMakeCredentialExtraInfo()) WebAuthnMakeCredentialExtraInfo;
1142
0
            }
1143
0
            (*(ptr_WebAuthnMakeCredentialExtraInfo())) = (aRhs).get_WebAuthnMakeCredentialExtraInfo();
1144
0
            break;
1145
0
        }
1146
0
    case Tnull_t:
1147
0
        {
1148
0
            if (MaybeDestroy(t)) {
1149
0
                new (mozilla::KnownNotNull, ptr_null_t()) null_t;
1150
0
            }
1151
0
            (*(ptr_null_t())) = (aRhs).get_null_t();
1152
0
            break;
1153
0
        }
1154
0
    case T__None:
1155
0
        {
1156
0
            static_cast<void>(MaybeDestroy(t));
1157
0
            break;
1158
0
        }
1159
0
    default:
1160
0
        {
1161
0
            mozilla::ipc::LogicError("unreached");
1162
0
            break;
1163
0
        }
1164
0
    }
1165
0
    mType = t;
1166
0
    return (*(this));
1167
0
}
1168
1169
auto WebAuthnMaybeMakeCredentialExtraInfo::operator=(WebAuthnMaybeMakeCredentialExtraInfo&& aRhs) -> WebAuthnMaybeMakeCredentialExtraInfo&
1170
0
{
1171
0
    (aRhs).AssertSanity();
1172
0
    Type t = (aRhs).type();
1173
0
    switch (t) {
1174
0
    case TWebAuthnMakeCredentialExtraInfo:
1175
0
        {
1176
0
            if (MaybeDestroy(t)) {
1177
0
                new (mozilla::KnownNotNull, ptr_WebAuthnMakeCredentialExtraInfo()) WebAuthnMakeCredentialExtraInfo;
1178
0
            }
1179
0
            (*(ptr_WebAuthnMakeCredentialExtraInfo())) = std::move((aRhs).get_WebAuthnMakeCredentialExtraInfo());
1180
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1181
0
            break;
1182
0
        }
1183
0
    case Tnull_t:
1184
0
        {
1185
0
            if (MaybeDestroy(t)) {
1186
0
                new (mozilla::KnownNotNull, ptr_null_t()) null_t;
1187
0
            }
1188
0
            (*(ptr_null_t())) = std::move((aRhs).get_null_t());
1189
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1190
0
            break;
1191
0
        }
1192
0
    case T__None:
1193
0
        {
1194
0
            static_cast<void>(MaybeDestroy(t));
1195
0
            break;
1196
0
        }
1197
0
    default:
1198
0
        {
1199
0
            mozilla::ipc::LogicError("unreached");
1200
0
            break;
1201
0
        }
1202
0
    }
1203
0
    (aRhs).mType = T__None;
1204
0
    mType = t;
1205
0
    return (*(this));
1206
0
}
1207
1208
auto WebAuthnMaybeMakeCredentialExtraInfo::operator==(const WebAuthnMakeCredentialExtraInfo& aRhs) const -> bool
1209
0
{
1210
0
    return (get_WebAuthnMakeCredentialExtraInfo()) == (aRhs);
1211
0
}
1212
1213
auto WebAuthnMaybeMakeCredentialExtraInfo::operator==(const null_t& aRhs) const -> bool
1214
0
{
1215
0
    return (get_null_t()) == (aRhs);
1216
0
}
1217
1218
auto WebAuthnMaybeMakeCredentialExtraInfo::operator==(const WebAuthnMaybeMakeCredentialExtraInfo& aRhs) const -> bool
1219
0
{
1220
0
    if ((type()) != ((aRhs).type())) {
1221
0
        return false;
1222
0
    }
1223
0
1224
0
    switch (type()) {
1225
0
    case TWebAuthnMakeCredentialExtraInfo:
1226
0
        {
1227
0
            return (get_WebAuthnMakeCredentialExtraInfo()) == ((aRhs).get_WebAuthnMakeCredentialExtraInfo());
1228
0
        }
1229
0
    case Tnull_t:
1230
0
        {
1231
0
            return (get_null_t()) == ((aRhs).get_null_t());
1232
0
        }
1233
0
    default:
1234
0
        {
1235
0
            mozilla::ipc::LogicError("unreached");
1236
0
            return false;
1237
0
        }
1238
0
    }
1239
0
}
1240
1241
auto WebAuthnMaybeMakeCredentialExtraInfo::get(WebAuthnMakeCredentialExtraInfo* aOutValue) const -> void
1242
0
{
1243
0
    (*(aOutValue)) = get_WebAuthnMakeCredentialExtraInfo();
1244
0
}
1245
1246
auto WebAuthnMaybeMakeCredentialExtraInfo::get(null_t* aOutValue) const -> void
1247
0
{
1248
0
    (*(aOutValue)) = get_null_t();
1249
0
}
1250
1251
} // namespace dom
1252
} // namespace mozilla
1253
1254
namespace mozilla {
1255
namespace ipc {
1256
auto IPDLParamTraits<mozilla::dom::WebAuthnMaybeMakeCredentialExtraInfo>::Write(
1257
        IPC::Message* aMsg,
1258
        mozilla::ipc::IProtocol* aActor,
1259
        const paramType& aVar) -> void
1260
{
1261
    typedef mozilla::dom::WebAuthnMaybeMakeCredentialExtraInfo union__;
1262
    int type;
1263
    type = (aVar).type();
1264
    WriteIPDLParam(aMsg, aActor, type);
1265
    // Sentinel = 'WebAuthnMaybeMakeCredentialExtraInfo'
1266
    (aMsg)->WriteSentinel(1568585467);
1267
1268
    switch (type) {
1269
    case union__::TWebAuthnMakeCredentialExtraInfo:
1270
        {
1271
            WriteIPDLParam(aMsg, aActor, (aVar).get_WebAuthnMakeCredentialExtraInfo());
1272
            // Sentinel = 'TWebAuthnMakeCredentialExtraInfo'
1273
            (aMsg)->WriteSentinel(2897113167);
1274
            return;
1275
        }
1276
    case union__::Tnull_t:
1277
        {
1278
            WriteIPDLParam(aMsg, aActor, (aVar).get_null_t());
1279
            // Sentinel = 'Tnull_t'
1280
            (aMsg)->WriteSentinel(3731137201);
1281
            return;
1282
        }
1283
    default:
1284
        {
1285
            (aActor)->FatalError("unknown union type");
1286
            return;
1287
        }
1288
    }
1289
}
1290
1291
auto IPDLParamTraits<mozilla::dom::WebAuthnMaybeMakeCredentialExtraInfo>::Read(
1292
        const IPC::Message* aMsg,
1293
        PickleIterator* aIter,
1294
        mozilla::ipc::IProtocol* aActor,
1295
        paramType* aVar) -> bool
1296
0
{
1297
0
    typedef mozilla::dom::WebAuthnMaybeMakeCredentialExtraInfo union__;
1298
0
    int type;
1299
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
1300
0
        (aActor)->FatalError("Error deserializing type of union WebAuthnMaybeMakeCredentialExtraInfo");
1301
0
        return false;
1302
0
    }
1303
0
    // Sentinel = 'WebAuthnMaybeMakeCredentialExtraInfo'
1304
0
    if ((!((aMsg)->ReadSentinel(aIter, 1568585467)))) {
1305
0
        mozilla::ipc::SentinelReadError("Error deserializing type of union WebAuthnMaybeMakeCredentialExtraInfo");
1306
0
        return false;
1307
0
    }
1308
0
1309
0
    switch (type) {
1310
0
    case union__::TWebAuthnMakeCredentialExtraInfo:
1311
0
        {
1312
0
            mozilla::dom::WebAuthnMakeCredentialExtraInfo tmp = mozilla::dom::WebAuthnMakeCredentialExtraInfo();
1313
0
            (*(aVar)) = tmp;
1314
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_WebAuthnMakeCredentialExtraInfo())))))) {
1315
0
                (aActor)->FatalError("Error deserializing variant TWebAuthnMakeCredentialExtraInfo of union WebAuthnMaybeMakeCredentialExtraInfo");
1316
0
                return false;
1317
0
            }
1318
0
            // Sentinel = 'TWebAuthnMakeCredentialExtraInfo'
1319
0
            if ((!((aMsg)->ReadSentinel(aIter, 2897113167)))) {
1320
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TWebAuthnMakeCredentialExtraInfo of union WebAuthnMaybeMakeCredentialExtraInfo");
1321
0
                return false;
1322
0
            }
1323
0
            return true;
1324
0
        }
1325
0
    case union__::Tnull_t:
1326
0
        {
1327
0
            mozilla::null_t tmp = mozilla::null_t();
1328
0
            (*(aVar)) = tmp;
1329
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_null_t())))))) {
1330
0
                (aActor)->FatalError("Error deserializing variant Tnull_t of union WebAuthnMaybeMakeCredentialExtraInfo");
1331
0
                return false;
1332
0
            }
1333
0
            // Sentinel = 'Tnull_t'
1334
0
            if ((!((aMsg)->ReadSentinel(aIter, 3731137201)))) {
1335
0
                mozilla::ipc::SentinelReadError("Error deserializing variant Tnull_t of union WebAuthnMaybeMakeCredentialExtraInfo");
1336
0
                return false;
1337
0
            }
1338
0
            return true;
1339
0
        }
1340
0
    default:
1341
0
        {
1342
0
            (aActor)->FatalError("unknown union type");
1343
0
            return false;
1344
0
        }
1345
0
    }
1346
0
}
1347
1348
} // namespace ipc
1349
} // namespace mozilla
1350
1351
//-----------------------------------------------------------------------------
1352
// Method definitions for the IPDL type |struct WebAuthnMakeCredentialInfo|
1353
//
1354
namespace mozilla {
1355
namespace dom {
1356
auto WebAuthnMakeCredentialInfo::operator==(const WebAuthnMakeCredentialInfo& _o) const -> bool
1357
0
{
1358
0
    if ((!((Origin()) == ((_o).Origin())))) {
1359
0
        return false;
1360
0
    }
1361
0
    if ((!((RpId()) == ((_o).RpId())))) {
1362
0
        return false;
1363
0
    }
1364
0
    if ((!((Challenge()) == ((_o).Challenge())))) {
1365
0
        return false;
1366
0
    }
1367
0
    if ((!((ClientDataJSON()) == ((_o).ClientDataJSON())))) {
1368
0
        return false;
1369
0
    }
1370
0
    if ((!((TimeoutMS()) == ((_o).TimeoutMS())))) {
1371
0
        return false;
1372
0
    }
1373
0
    if ((!((ExcludeList()) == ((_o).ExcludeList())))) {
1374
0
        return false;
1375
0
    }
1376
0
    if ((!((Extra()) == ((_o).Extra())))) {
1377
0
        return false;
1378
0
    }
1379
0
    return true;
1380
0
}
1381
1382
auto WebAuthnMakeCredentialInfo::operator!=(const WebAuthnMakeCredentialInfo& _o) const -> bool
1383
0
{
1384
0
    return (!(operator==(_o)));
1385
0
}
1386
1387
} // namespace dom
1388
} // namespace mozilla
1389
1390
namespace mozilla {
1391
namespace ipc {
1392
auto IPDLParamTraits<mozilla::dom::WebAuthnMakeCredentialInfo>::Write(
1393
        IPC::Message* aMsg,
1394
        mozilla::ipc::IProtocol* aActor,
1395
        const paramType& aVar) -> void
1396
0
{
1397
0
    WriteIPDLParam(aMsg, aActor, (aVar).Origin());
1398
0
    // Sentinel = 'Origin'
1399
0
    (aMsg)->WriteSentinel(4053590112);
1400
0
    WriteIPDLParam(aMsg, aActor, (aVar).RpId());
1401
0
    // Sentinel = 'RpId'
1402
0
    (aMsg)->WriteSentinel(2688815153);
1403
0
    WriteIPDLParam(aMsg, aActor, (aVar).Challenge());
1404
0
    // Sentinel = 'Challenge'
1405
0
    (aMsg)->WriteSentinel(1381253706);
1406
0
    WriteIPDLParam(aMsg, aActor, (aVar).ClientDataJSON());
1407
0
    // Sentinel = 'ClientDataJSON'
1408
0
    (aMsg)->WriteSentinel(3518101945);
1409
0
    WriteIPDLParam(aMsg, aActor, (aVar).TimeoutMS());
1410
0
    // Sentinel = 'TimeoutMS'
1411
0
    (aMsg)->WriteSentinel(2549274784);
1412
0
    WriteIPDLParam(aMsg, aActor, (aVar).ExcludeList());
1413
0
    // Sentinel = 'ExcludeList'
1414
0
    (aMsg)->WriteSentinel(2628186121);
1415
0
    WriteIPDLParam(aMsg, aActor, (aVar).Extra());
1416
0
    // Sentinel = 'Extra'
1417
0
    (aMsg)->WriteSentinel(2419867879);
1418
0
}
1419
1420
auto IPDLParamTraits<mozilla::dom::WebAuthnMakeCredentialInfo>::Read(
1421
        const IPC::Message* aMsg,
1422
        PickleIterator* aIter,
1423
        mozilla::ipc::IProtocol* aActor,
1424
        paramType* aVar) -> bool
1425
0
{
1426
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->Origin())))))) {
1427
0
        (aActor)->FatalError("Error deserializing 'Origin' (nsString) member of 'WebAuthnMakeCredentialInfo'");
1428
0
        return false;
1429
0
    }
1430
0
    // Sentinel = 'Origin'
1431
0
    if ((!((aMsg)->ReadSentinel(aIter, 4053590112)))) {
1432
0
        mozilla::ipc::SentinelReadError("Error deserializing 'Origin' (nsString) member of 'WebAuthnMakeCredentialInfo'");
1433
0
        return false;
1434
0
    }
1435
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->RpId())))))) {
1436
0
        (aActor)->FatalError("Error deserializing 'RpId' (nsString) member of 'WebAuthnMakeCredentialInfo'");
1437
0
        return false;
1438
0
    }
1439
0
    // Sentinel = 'RpId'
1440
0
    if ((!((aMsg)->ReadSentinel(aIter, 2688815153)))) {
1441
0
        mozilla::ipc::SentinelReadError("Error deserializing 'RpId' (nsString) member of 'WebAuthnMakeCredentialInfo'");
1442
0
        return false;
1443
0
    }
1444
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->Challenge())))))) {
1445
0
        (aActor)->FatalError("Error deserializing 'Challenge' (uint8_t[]) member of 'WebAuthnMakeCredentialInfo'");
1446
0
        return false;
1447
0
    }
1448
0
    // Sentinel = 'Challenge'
1449
0
    if ((!((aMsg)->ReadSentinel(aIter, 1381253706)))) {
1450
0
        mozilla::ipc::SentinelReadError("Error deserializing 'Challenge' (uint8_t[]) member of 'WebAuthnMakeCredentialInfo'");
1451
0
        return false;
1452
0
    }
1453
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->ClientDataJSON())))))) {
1454
0
        (aActor)->FatalError("Error deserializing 'ClientDataJSON' (nsCString) member of 'WebAuthnMakeCredentialInfo'");
1455
0
        return false;
1456
0
    }
1457
0
    // Sentinel = 'ClientDataJSON'
1458
0
    if ((!((aMsg)->ReadSentinel(aIter, 3518101945)))) {
1459
0
        mozilla::ipc::SentinelReadError("Error deserializing 'ClientDataJSON' (nsCString) member of 'WebAuthnMakeCredentialInfo'");
1460
0
        return false;
1461
0
    }
1462
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->TimeoutMS())))))) {
1463
0
        (aActor)->FatalError("Error deserializing 'TimeoutMS' (uint32_t) member of 'WebAuthnMakeCredentialInfo'");
1464
0
        return false;
1465
0
    }
1466
0
    // Sentinel = 'TimeoutMS'
1467
0
    if ((!((aMsg)->ReadSentinel(aIter, 2549274784)))) {
1468
0
        mozilla::ipc::SentinelReadError("Error deserializing 'TimeoutMS' (uint32_t) member of 'WebAuthnMakeCredentialInfo'");
1469
0
        return false;
1470
0
    }
1471
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->ExcludeList())))))) {
1472
0
        (aActor)->FatalError("Error deserializing 'ExcludeList' (WebAuthnScopedCredential[]) member of 'WebAuthnMakeCredentialInfo'");
1473
0
        return false;
1474
0
    }
1475
0
    // Sentinel = 'ExcludeList'
1476
0
    if ((!((aMsg)->ReadSentinel(aIter, 2628186121)))) {
1477
0
        mozilla::ipc::SentinelReadError("Error deserializing 'ExcludeList' (WebAuthnScopedCredential[]) member of 'WebAuthnMakeCredentialInfo'");
1478
0
        return false;
1479
0
    }
1480
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->Extra())))))) {
1481
0
        (aActor)->FatalError("Error deserializing 'Extra' (WebAuthnMaybeMakeCredentialExtraInfo) member of 'WebAuthnMakeCredentialInfo'");
1482
0
        return false;
1483
0
    }
1484
0
    // Sentinel = 'Extra'
1485
0
    if ((!((aMsg)->ReadSentinel(aIter, 2419867879)))) {
1486
0
        mozilla::ipc::SentinelReadError("Error deserializing 'Extra' (WebAuthnMaybeMakeCredentialExtraInfo) member of 'WebAuthnMakeCredentialInfo'");
1487
0
        return false;
1488
0
    }
1489
0
    return true;
1490
0
}
1491
1492
} // namespace ipc
1493
} // namespace mozilla
1494
1495
//-----------------------------------------------------------------------------
1496
// Method definitions for the IPDL type |struct WebAuthnMakeCredentialResult|
1497
//
1498
namespace mozilla {
1499
namespace dom {
1500
auto WebAuthnMakeCredentialResult::operator==(const WebAuthnMakeCredentialResult& _o) const -> bool
1501
0
{
1502
0
    if ((!((ClientDataJSON()) == ((_o).ClientDataJSON())))) {
1503
0
        return false;
1504
0
    }
1505
0
    if ((!((AttestationObject()) == ((_o).AttestationObject())))) {
1506
0
        return false;
1507
0
    }
1508
0
    if ((!((KeyHandle()) == ((_o).KeyHandle())))) {
1509
0
        return false;
1510
0
    }
1511
0
    if ((!((RegistrationData()) == ((_o).RegistrationData())))) {
1512
0
        return false;
1513
0
    }
1514
0
    return true;
1515
0
}
1516
1517
auto WebAuthnMakeCredentialResult::operator!=(const WebAuthnMakeCredentialResult& _o) const -> bool
1518
0
{
1519
0
    return (!(operator==(_o)));
1520
0
}
1521
1522
} // namespace dom
1523
} // namespace mozilla
1524
1525
namespace mozilla {
1526
namespace ipc {
1527
auto IPDLParamTraits<mozilla::dom::WebAuthnMakeCredentialResult>::Write(
1528
        IPC::Message* aMsg,
1529
        mozilla::ipc::IProtocol* aActor,
1530
        const paramType& aVar) -> void
1531
0
{
1532
0
    WriteIPDLParam(aMsg, aActor, (aVar).ClientDataJSON());
1533
0
    // Sentinel = 'ClientDataJSON'
1534
0
    (aMsg)->WriteSentinel(3518101945);
1535
0
    WriteIPDLParam(aMsg, aActor, (aVar).AttestationObject());
1536
0
    // Sentinel = 'AttestationObject'
1537
0
    (aMsg)->WriteSentinel(4271776302);
1538
0
    WriteIPDLParam(aMsg, aActor, (aVar).KeyHandle());
1539
0
    // Sentinel = 'KeyHandle'
1540
0
    (aMsg)->WriteSentinel(2245515378);
1541
0
    WriteIPDLParam(aMsg, aActor, (aVar).RegistrationData());
1542
0
    // Sentinel = 'RegistrationData'
1543
0
    (aMsg)->WriteSentinel(4070002651);
1544
0
}
1545
1546
auto IPDLParamTraits<mozilla::dom::WebAuthnMakeCredentialResult>::Read(
1547
        const IPC::Message* aMsg,
1548
        PickleIterator* aIter,
1549
        mozilla::ipc::IProtocol* aActor,
1550
        paramType* aVar) -> bool
1551
0
{
1552
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->ClientDataJSON())))))) {
1553
0
        (aActor)->FatalError("Error deserializing 'ClientDataJSON' (nsCString) member of 'WebAuthnMakeCredentialResult'");
1554
0
        return false;
1555
0
    }
1556
0
    // Sentinel = 'ClientDataJSON'
1557
0
    if ((!((aMsg)->ReadSentinel(aIter, 3518101945)))) {
1558
0
        mozilla::ipc::SentinelReadError("Error deserializing 'ClientDataJSON' (nsCString) member of 'WebAuthnMakeCredentialResult'");
1559
0
        return false;
1560
0
    }
1561
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->AttestationObject())))))) {
1562
0
        (aActor)->FatalError("Error deserializing 'AttestationObject' (uint8_t[]) member of 'WebAuthnMakeCredentialResult'");
1563
0
        return false;
1564
0
    }
1565
0
    // Sentinel = 'AttestationObject'
1566
0
    if ((!((aMsg)->ReadSentinel(aIter, 4271776302)))) {
1567
0
        mozilla::ipc::SentinelReadError("Error deserializing 'AttestationObject' (uint8_t[]) member of 'WebAuthnMakeCredentialResult'");
1568
0
        return false;
1569
0
    }
1570
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->KeyHandle())))))) {
1571
0
        (aActor)->FatalError("Error deserializing 'KeyHandle' (uint8_t[]) member of 'WebAuthnMakeCredentialResult'");
1572
0
        return false;
1573
0
    }
1574
0
    // Sentinel = 'KeyHandle'
1575
0
    if ((!((aMsg)->ReadSentinel(aIter, 2245515378)))) {
1576
0
        mozilla::ipc::SentinelReadError("Error deserializing 'KeyHandle' (uint8_t[]) member of 'WebAuthnMakeCredentialResult'");
1577
0
        return false;
1578
0
    }
1579
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->RegistrationData())))))) {
1580
0
        (aActor)->FatalError("Error deserializing 'RegistrationData' (uint8_t[]) member of 'WebAuthnMakeCredentialResult'");
1581
0
        return false;
1582
0
    }
1583
0
    // Sentinel = 'RegistrationData'
1584
0
    if ((!((aMsg)->ReadSentinel(aIter, 4070002651)))) {
1585
0
        mozilla::ipc::SentinelReadError("Error deserializing 'RegistrationData' (uint8_t[]) member of 'WebAuthnMakeCredentialResult'");
1586
0
        return false;
1587
0
    }
1588
0
    return true;
1589
0
}
1590
1591
} // namespace ipc
1592
} // namespace mozilla
1593
1594
//-----------------------------------------------------------------------------
1595
// Method definitions for the IPDL type |struct WebAuthnGetAssertionExtraInfo|
1596
//
1597
namespace mozilla {
1598
namespace dom {
1599
auto WebAuthnGetAssertionExtraInfo::operator==(const WebAuthnGetAssertionExtraInfo& _o) const -> bool
1600
0
{
1601
0
    if ((!((Extensions()) == ((_o).Extensions())))) {
1602
0
        return false;
1603
0
    }
1604
0
    if ((!((RequireUserVerification()) == ((_o).RequireUserVerification())))) {
1605
0
        return false;
1606
0
    }
1607
0
    return true;
1608
0
}
1609
1610
auto WebAuthnGetAssertionExtraInfo::operator!=(const WebAuthnGetAssertionExtraInfo& _o) const -> bool
1611
0
{
1612
0
    return (!(operator==(_o)));
1613
0
}
1614
1615
} // namespace dom
1616
} // namespace mozilla
1617
1618
namespace mozilla {
1619
namespace ipc {
1620
auto IPDLParamTraits<mozilla::dom::WebAuthnGetAssertionExtraInfo>::Write(
1621
        IPC::Message* aMsg,
1622
        mozilla::ipc::IProtocol* aActor,
1623
        const paramType& aVar) -> void
1624
0
{
1625
0
    WriteIPDLParam(aMsg, aActor, (aVar).Extensions());
1626
0
    // Sentinel = 'Extensions'
1627
0
    (aMsg)->WriteSentinel(77077076);
1628
0
    WriteIPDLParam(aMsg, aActor, (aVar).RequireUserVerification());
1629
0
    // Sentinel = 'RequireUserVerification'
1630
0
    (aMsg)->WriteSentinel(1708769026);
1631
0
}
1632
1633
auto IPDLParamTraits<mozilla::dom::WebAuthnGetAssertionExtraInfo>::Read(
1634
        const IPC::Message* aMsg,
1635
        PickleIterator* aIter,
1636
        mozilla::ipc::IProtocol* aActor,
1637
        paramType* aVar) -> bool
1638
0
{
1639
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->Extensions())))))) {
1640
0
        (aActor)->FatalError("Error deserializing 'Extensions' (WebAuthnExtension[]) member of 'WebAuthnGetAssertionExtraInfo'");
1641
0
        return false;
1642
0
    }
1643
0
    // Sentinel = 'Extensions'
1644
0
    if ((!((aMsg)->ReadSentinel(aIter, 77077076)))) {
1645
0
        mozilla::ipc::SentinelReadError("Error deserializing 'Extensions' (WebAuthnExtension[]) member of 'WebAuthnGetAssertionExtraInfo'");
1646
0
        return false;
1647
0
    }
1648
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->RequireUserVerification())))))) {
1649
0
        (aActor)->FatalError("Error deserializing 'RequireUserVerification' (bool) member of 'WebAuthnGetAssertionExtraInfo'");
1650
0
        return false;
1651
0
    }
1652
0
    // Sentinel = 'RequireUserVerification'
1653
0
    if ((!((aMsg)->ReadSentinel(aIter, 1708769026)))) {
1654
0
        mozilla::ipc::SentinelReadError("Error deserializing 'RequireUserVerification' (bool) member of 'WebAuthnGetAssertionExtraInfo'");
1655
0
        return false;
1656
0
    }
1657
0
    return true;
1658
0
}
1659
1660
} // namespace ipc
1661
} // namespace mozilla
1662
1663
//-----------------------------------------------------------------------------
1664
// Method definitions for the IPDL type |union WebAuthnMaybeGetAssertionExtraInfo|
1665
//
1666
namespace mozilla {
1667
namespace dom {
1668
auto WebAuthnMaybeGetAssertionExtraInfo::MaybeDestroy(Type aNewType) -> bool
1669
0
{
1670
0
    if ((mType) == (T__None)) {
1671
0
        return true;
1672
0
    }
1673
0
    if ((mType) == (aNewType)) {
1674
0
        return false;
1675
0
    }
1676
0
    switch (mType) {
1677
0
    case TWebAuthnGetAssertionExtraInfo:
1678
0
        {
1679
0
            (ptr_WebAuthnGetAssertionExtraInfo())->~WebAuthnGetAssertionExtraInfo__tdef();
1680
0
            break;
1681
0
        }
1682
0
    case Tnull_t:
1683
0
        {
1684
0
            (ptr_null_t())->~null_t__tdef();
1685
0
            break;
1686
0
        }
1687
0
    default:
1688
0
        {
1689
0
            mozilla::ipc::LogicError("not reached");
1690
0
            break;
1691
0
        }
1692
0
    }
1693
0
    return true;
1694
0
}
1695
1696
MOZ_IMPLICIT WebAuthnMaybeGetAssertionExtraInfo::WebAuthnMaybeGetAssertionExtraInfo(const WebAuthnGetAssertionExtraInfo& aOther)
1697
0
{
1698
0
    new (mozilla::KnownNotNull, ptr_WebAuthnGetAssertionExtraInfo()) WebAuthnGetAssertionExtraInfo(aOther);
1699
0
    mType = TWebAuthnGetAssertionExtraInfo;
1700
0
}
1701
1702
MOZ_IMPLICIT WebAuthnMaybeGetAssertionExtraInfo::WebAuthnMaybeGetAssertionExtraInfo(WebAuthnGetAssertionExtraInfo&& aOther)
1703
0
{
1704
0
    new (mozilla::KnownNotNull, ptr_WebAuthnGetAssertionExtraInfo()) WebAuthnGetAssertionExtraInfo(std::move(aOther));
1705
0
    mType = TWebAuthnGetAssertionExtraInfo;
1706
0
}
1707
1708
MOZ_IMPLICIT WebAuthnMaybeGetAssertionExtraInfo::WebAuthnMaybeGetAssertionExtraInfo(const null_t& aOther)
1709
0
{
1710
0
    new (mozilla::KnownNotNull, ptr_null_t()) null_t(aOther);
1711
0
    mType = Tnull_t;
1712
0
}
1713
1714
MOZ_IMPLICIT WebAuthnMaybeGetAssertionExtraInfo::WebAuthnMaybeGetAssertionExtraInfo(null_t&& aOther)
1715
0
{
1716
0
    new (mozilla::KnownNotNull, ptr_null_t()) null_t(std::move(aOther));
1717
0
    mType = Tnull_t;
1718
0
}
1719
1720
MOZ_IMPLICIT WebAuthnMaybeGetAssertionExtraInfo::WebAuthnMaybeGetAssertionExtraInfo(const WebAuthnMaybeGetAssertionExtraInfo& aOther)
1721
0
{
1722
0
    (aOther).AssertSanity();
1723
0
    switch ((aOther).type()) {
1724
0
    case TWebAuthnGetAssertionExtraInfo:
1725
0
        {
1726
0
            new (mozilla::KnownNotNull, ptr_WebAuthnGetAssertionExtraInfo()) WebAuthnGetAssertionExtraInfo((aOther).get_WebAuthnGetAssertionExtraInfo());
1727
0
            break;
1728
0
        }
1729
0
    case Tnull_t:
1730
0
        {
1731
0
            new (mozilla::KnownNotNull, ptr_null_t()) null_t((aOther).get_null_t());
1732
0
            break;
1733
0
        }
1734
0
    case T__None:
1735
0
        {
1736
0
            break;
1737
0
        }
1738
0
    default:
1739
0
        {
1740
0
            mozilla::ipc::LogicError("unreached");
1741
0
            return;
1742
0
        }
1743
0
    }
1744
0
    mType = (aOther).type();
1745
0
}
1746
1747
MOZ_IMPLICIT WebAuthnMaybeGetAssertionExtraInfo::WebAuthnMaybeGetAssertionExtraInfo(WebAuthnMaybeGetAssertionExtraInfo&& aOther)
1748
0
{
1749
0
    (aOther).AssertSanity();
1750
0
    Type t = (aOther).type();
1751
0
    switch (t) {
1752
0
    case TWebAuthnGetAssertionExtraInfo:
1753
0
        {
1754
0
            new (mozilla::KnownNotNull, ptr_WebAuthnGetAssertionExtraInfo()) WebAuthnGetAssertionExtraInfo(std::move((aOther).get_WebAuthnGetAssertionExtraInfo()));
1755
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
1756
0
            break;
1757
0
        }
1758
0
    case Tnull_t:
1759
0
        {
1760
0
            new (mozilla::KnownNotNull, ptr_null_t()) null_t(std::move((aOther).get_null_t()));
1761
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
1762
0
            break;
1763
0
        }
1764
0
    case T__None:
1765
0
        {
1766
0
            break;
1767
0
        }
1768
0
    default:
1769
0
        {
1770
0
            mozilla::ipc::LogicError("unreached");
1771
0
            return;
1772
0
        }
1773
0
    }
1774
0
    (aOther).mType = T__None;
1775
0
    mType = t;
1776
0
}
1777
1778
WebAuthnMaybeGetAssertionExtraInfo::~WebAuthnMaybeGetAssertionExtraInfo()
1779
0
{
1780
0
    static_cast<void>(MaybeDestroy(T__None));
1781
0
}
1782
1783
auto WebAuthnMaybeGetAssertionExtraInfo::operator=(const WebAuthnGetAssertionExtraInfo& aRhs) -> WebAuthnMaybeGetAssertionExtraInfo&
1784
0
{
1785
0
    if (MaybeDestroy(TWebAuthnGetAssertionExtraInfo)) {
1786
0
        new (mozilla::KnownNotNull, ptr_WebAuthnGetAssertionExtraInfo()) WebAuthnGetAssertionExtraInfo;
1787
0
    }
1788
0
    (*(ptr_WebAuthnGetAssertionExtraInfo())) = aRhs;
1789
0
    mType = TWebAuthnGetAssertionExtraInfo;
1790
0
    return (*(this));
1791
0
}
1792
1793
auto WebAuthnMaybeGetAssertionExtraInfo::operator=(WebAuthnGetAssertionExtraInfo&& aRhs) -> WebAuthnMaybeGetAssertionExtraInfo&
1794
0
{
1795
0
    if (MaybeDestroy(TWebAuthnGetAssertionExtraInfo)) {
1796
0
        new (mozilla::KnownNotNull, ptr_WebAuthnGetAssertionExtraInfo()) WebAuthnGetAssertionExtraInfo;
1797
0
    }
1798
0
    (*(ptr_WebAuthnGetAssertionExtraInfo())) = std::move(aRhs);
1799
0
    mType = TWebAuthnGetAssertionExtraInfo;
1800
0
    return (*(this));
1801
0
}
1802
1803
auto WebAuthnMaybeGetAssertionExtraInfo::operator=(const null_t& aRhs) -> WebAuthnMaybeGetAssertionExtraInfo&
1804
0
{
1805
0
    if (MaybeDestroy(Tnull_t)) {
1806
0
        new (mozilla::KnownNotNull, ptr_null_t()) null_t;
1807
0
    }
1808
0
    (*(ptr_null_t())) = aRhs;
1809
0
    mType = Tnull_t;
1810
0
    return (*(this));
1811
0
}
1812
1813
auto WebAuthnMaybeGetAssertionExtraInfo::operator=(null_t&& aRhs) -> WebAuthnMaybeGetAssertionExtraInfo&
1814
0
{
1815
0
    if (MaybeDestroy(Tnull_t)) {
1816
0
        new (mozilla::KnownNotNull, ptr_null_t()) null_t;
1817
0
    }
1818
0
    (*(ptr_null_t())) = std::move(aRhs);
1819
0
    mType = Tnull_t;
1820
0
    return (*(this));
1821
0
}
1822
1823
auto WebAuthnMaybeGetAssertionExtraInfo::operator=(const WebAuthnMaybeGetAssertionExtraInfo& aRhs) -> WebAuthnMaybeGetAssertionExtraInfo&
1824
0
{
1825
0
    (aRhs).AssertSanity();
1826
0
    Type t = (aRhs).type();
1827
0
    switch (t) {
1828
0
    case TWebAuthnGetAssertionExtraInfo:
1829
0
        {
1830
0
            if (MaybeDestroy(t)) {
1831
0
                new (mozilla::KnownNotNull, ptr_WebAuthnGetAssertionExtraInfo()) WebAuthnGetAssertionExtraInfo;
1832
0
            }
1833
0
            (*(ptr_WebAuthnGetAssertionExtraInfo())) = (aRhs).get_WebAuthnGetAssertionExtraInfo();
1834
0
            break;
1835
0
        }
1836
0
    case Tnull_t:
1837
0
        {
1838
0
            if (MaybeDestroy(t)) {
1839
0
                new (mozilla::KnownNotNull, ptr_null_t()) null_t;
1840
0
            }
1841
0
            (*(ptr_null_t())) = (aRhs).get_null_t();
1842
0
            break;
1843
0
        }
1844
0
    case T__None:
1845
0
        {
1846
0
            static_cast<void>(MaybeDestroy(t));
1847
0
            break;
1848
0
        }
1849
0
    default:
1850
0
        {
1851
0
            mozilla::ipc::LogicError("unreached");
1852
0
            break;
1853
0
        }
1854
0
    }
1855
0
    mType = t;
1856
0
    return (*(this));
1857
0
}
1858
1859
auto WebAuthnMaybeGetAssertionExtraInfo::operator=(WebAuthnMaybeGetAssertionExtraInfo&& aRhs) -> WebAuthnMaybeGetAssertionExtraInfo&
1860
0
{
1861
0
    (aRhs).AssertSanity();
1862
0
    Type t = (aRhs).type();
1863
0
    switch (t) {
1864
0
    case TWebAuthnGetAssertionExtraInfo:
1865
0
        {
1866
0
            if (MaybeDestroy(t)) {
1867
0
                new (mozilla::KnownNotNull, ptr_WebAuthnGetAssertionExtraInfo()) WebAuthnGetAssertionExtraInfo;
1868
0
            }
1869
0
            (*(ptr_WebAuthnGetAssertionExtraInfo())) = std::move((aRhs).get_WebAuthnGetAssertionExtraInfo());
1870
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1871
0
            break;
1872
0
        }
1873
0
    case Tnull_t:
1874
0
        {
1875
0
            if (MaybeDestroy(t)) {
1876
0
                new (mozilla::KnownNotNull, ptr_null_t()) null_t;
1877
0
            }
1878
0
            (*(ptr_null_t())) = std::move((aRhs).get_null_t());
1879
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1880
0
            break;
1881
0
        }
1882
0
    case T__None:
1883
0
        {
1884
0
            static_cast<void>(MaybeDestroy(t));
1885
0
            break;
1886
0
        }
1887
0
    default:
1888
0
        {
1889
0
            mozilla::ipc::LogicError("unreached");
1890
0
            break;
1891
0
        }
1892
0
    }
1893
0
    (aRhs).mType = T__None;
1894
0
    mType = t;
1895
0
    return (*(this));
1896
0
}
1897
1898
auto WebAuthnMaybeGetAssertionExtraInfo::operator==(const WebAuthnGetAssertionExtraInfo& aRhs) const -> bool
1899
0
{
1900
0
    return (get_WebAuthnGetAssertionExtraInfo()) == (aRhs);
1901
0
}
1902
1903
auto WebAuthnMaybeGetAssertionExtraInfo::operator==(const null_t& aRhs) const -> bool
1904
0
{
1905
0
    return (get_null_t()) == (aRhs);
1906
0
}
1907
1908
auto WebAuthnMaybeGetAssertionExtraInfo::operator==(const WebAuthnMaybeGetAssertionExtraInfo& aRhs) const -> bool
1909
0
{
1910
0
    if ((type()) != ((aRhs).type())) {
1911
0
        return false;
1912
0
    }
1913
0
1914
0
    switch (type()) {
1915
0
    case TWebAuthnGetAssertionExtraInfo:
1916
0
        {
1917
0
            return (get_WebAuthnGetAssertionExtraInfo()) == ((aRhs).get_WebAuthnGetAssertionExtraInfo());
1918
0
        }
1919
0
    case Tnull_t:
1920
0
        {
1921
0
            return (get_null_t()) == ((aRhs).get_null_t());
1922
0
        }
1923
0
    default:
1924
0
        {
1925
0
            mozilla::ipc::LogicError("unreached");
1926
0
            return false;
1927
0
        }
1928
0
    }
1929
0
}
1930
1931
auto WebAuthnMaybeGetAssertionExtraInfo::get(WebAuthnGetAssertionExtraInfo* aOutValue) const -> void
1932
0
{
1933
0
    (*(aOutValue)) = get_WebAuthnGetAssertionExtraInfo();
1934
0
}
1935
1936
auto WebAuthnMaybeGetAssertionExtraInfo::get(null_t* aOutValue) const -> void
1937
0
{
1938
0
    (*(aOutValue)) = get_null_t();
1939
0
}
1940
1941
} // namespace dom
1942
} // namespace mozilla
1943
1944
namespace mozilla {
1945
namespace ipc {
1946
auto IPDLParamTraits<mozilla::dom::WebAuthnMaybeGetAssertionExtraInfo>::Write(
1947
        IPC::Message* aMsg,
1948
        mozilla::ipc::IProtocol* aActor,
1949
        const paramType& aVar) -> void
1950
{
1951
    typedef mozilla::dom::WebAuthnMaybeGetAssertionExtraInfo union__;
1952
    int type;
1953
    type = (aVar).type();
1954
    WriteIPDLParam(aMsg, aActor, type);
1955
    // Sentinel = 'WebAuthnMaybeGetAssertionExtraInfo'
1956
    (aMsg)->WriteSentinel(747247534);
1957
1958
    switch (type) {
1959
    case union__::TWebAuthnGetAssertionExtraInfo:
1960
        {
1961
            WriteIPDLParam(aMsg, aActor, (aVar).get_WebAuthnGetAssertionExtraInfo());
1962
            // Sentinel = 'TWebAuthnGetAssertionExtraInfo'
1963
            (aMsg)->WriteSentinel(1350224354);
1964
            return;
1965
        }
1966
    case union__::Tnull_t:
1967
        {
1968
            WriteIPDLParam(aMsg, aActor, (aVar).get_null_t());
1969
            // Sentinel = 'Tnull_t'
1970
            (aMsg)->WriteSentinel(3731137201);
1971
            return;
1972
        }
1973
    default:
1974
        {
1975
            (aActor)->FatalError("unknown union type");
1976
            return;
1977
        }
1978
    }
1979
}
1980
1981
auto IPDLParamTraits<mozilla::dom::WebAuthnMaybeGetAssertionExtraInfo>::Read(
1982
        const IPC::Message* aMsg,
1983
        PickleIterator* aIter,
1984
        mozilla::ipc::IProtocol* aActor,
1985
        paramType* aVar) -> bool
1986
0
{
1987
0
    typedef mozilla::dom::WebAuthnMaybeGetAssertionExtraInfo union__;
1988
0
    int type;
1989
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
1990
0
        (aActor)->FatalError("Error deserializing type of union WebAuthnMaybeGetAssertionExtraInfo");
1991
0
        return false;
1992
0
    }
1993
0
    // Sentinel = 'WebAuthnMaybeGetAssertionExtraInfo'
1994
0
    if ((!((aMsg)->ReadSentinel(aIter, 747247534)))) {
1995
0
        mozilla::ipc::SentinelReadError("Error deserializing type of union WebAuthnMaybeGetAssertionExtraInfo");
1996
0
        return false;
1997
0
    }
1998
0
1999
0
    switch (type) {
2000
0
    case union__::TWebAuthnGetAssertionExtraInfo:
2001
0
        {
2002
0
            mozilla::dom::WebAuthnGetAssertionExtraInfo tmp = mozilla::dom::WebAuthnGetAssertionExtraInfo();
2003
0
            (*(aVar)) = tmp;
2004
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_WebAuthnGetAssertionExtraInfo())))))) {
2005
0
                (aActor)->FatalError("Error deserializing variant TWebAuthnGetAssertionExtraInfo of union WebAuthnMaybeGetAssertionExtraInfo");
2006
0
                return false;
2007
0
            }
2008
0
            // Sentinel = 'TWebAuthnGetAssertionExtraInfo'
2009
0
            if ((!((aMsg)->ReadSentinel(aIter, 1350224354)))) {
2010
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TWebAuthnGetAssertionExtraInfo of union WebAuthnMaybeGetAssertionExtraInfo");
2011
0
                return false;
2012
0
            }
2013
0
            return true;
2014
0
        }
2015
0
    case union__::Tnull_t:
2016
0
        {
2017
0
            mozilla::null_t tmp = mozilla::null_t();
2018
0
            (*(aVar)) = tmp;
2019
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_null_t())))))) {
2020
0
                (aActor)->FatalError("Error deserializing variant Tnull_t of union WebAuthnMaybeGetAssertionExtraInfo");
2021
0
                return false;
2022
0
            }
2023
0
            // Sentinel = 'Tnull_t'
2024
0
            if ((!((aMsg)->ReadSentinel(aIter, 3731137201)))) {
2025
0
                mozilla::ipc::SentinelReadError("Error deserializing variant Tnull_t of union WebAuthnMaybeGetAssertionExtraInfo");
2026
0
                return false;
2027
0
            }
2028
0
            return true;
2029
0
        }
2030
0
    default:
2031
0
        {
2032
0
            (aActor)->FatalError("unknown union type");
2033
0
            return false;
2034
0
        }
2035
0
    }
2036
0
}
2037
2038
} // namespace ipc
2039
} // namespace mozilla
2040
2041
//-----------------------------------------------------------------------------
2042
// Method definitions for the IPDL type |struct WebAuthnGetAssertionInfo|
2043
//
2044
namespace mozilla {
2045
namespace dom {
2046
auto WebAuthnGetAssertionInfo::operator==(const WebAuthnGetAssertionInfo& _o) const -> bool
2047
0
{
2048
0
    if ((!((Origin()) == ((_o).Origin())))) {
2049
0
        return false;
2050
0
    }
2051
0
    if ((!((RpId()) == ((_o).RpId())))) {
2052
0
        return false;
2053
0
    }
2054
0
    if ((!((Challenge()) == ((_o).Challenge())))) {
2055
0
        return false;
2056
0
    }
2057
0
    if ((!((ClientDataJSON()) == ((_o).ClientDataJSON())))) {
2058
0
        return false;
2059
0
    }
2060
0
    if ((!((TimeoutMS()) == ((_o).TimeoutMS())))) {
2061
0
        return false;
2062
0
    }
2063
0
    if ((!((AllowList()) == ((_o).AllowList())))) {
2064
0
        return false;
2065
0
    }
2066
0
    if ((!((Extra()) == ((_o).Extra())))) {
2067
0
        return false;
2068
0
    }
2069
0
    return true;
2070
0
}
2071
2072
auto WebAuthnGetAssertionInfo::operator!=(const WebAuthnGetAssertionInfo& _o) const -> bool
2073
0
{
2074
0
    return (!(operator==(_o)));
2075
0
}
2076
2077
} // namespace dom
2078
} // namespace mozilla
2079
2080
namespace mozilla {
2081
namespace ipc {
2082
auto IPDLParamTraits<mozilla::dom::WebAuthnGetAssertionInfo>::Write(
2083
        IPC::Message* aMsg,
2084
        mozilla::ipc::IProtocol* aActor,
2085
        const paramType& aVar) -> void
2086
0
{
2087
0
    WriteIPDLParam(aMsg, aActor, (aVar).Origin());
2088
0
    // Sentinel = 'Origin'
2089
0
    (aMsg)->WriteSentinel(4053590112);
2090
0
    WriteIPDLParam(aMsg, aActor, (aVar).RpId());
2091
0
    // Sentinel = 'RpId'
2092
0
    (aMsg)->WriteSentinel(2688815153);
2093
0
    WriteIPDLParam(aMsg, aActor, (aVar).Challenge());
2094
0
    // Sentinel = 'Challenge'
2095
0
    (aMsg)->WriteSentinel(1381253706);
2096
0
    WriteIPDLParam(aMsg, aActor, (aVar).ClientDataJSON());
2097
0
    // Sentinel = 'ClientDataJSON'
2098
0
    (aMsg)->WriteSentinel(3518101945);
2099
0
    WriteIPDLParam(aMsg, aActor, (aVar).TimeoutMS());
2100
0
    // Sentinel = 'TimeoutMS'
2101
0
    (aMsg)->WriteSentinel(2549274784);
2102
0
    WriteIPDLParam(aMsg, aActor, (aVar).AllowList());
2103
0
    // Sentinel = 'AllowList'
2104
0
    (aMsg)->WriteSentinel(1633896974);
2105
0
    WriteIPDLParam(aMsg, aActor, (aVar).Extra());
2106
0
    // Sentinel = 'Extra'
2107
0
    (aMsg)->WriteSentinel(2419867879);
2108
0
}
2109
2110
auto IPDLParamTraits<mozilla::dom::WebAuthnGetAssertionInfo>::Read(
2111
        const IPC::Message* aMsg,
2112
        PickleIterator* aIter,
2113
        mozilla::ipc::IProtocol* aActor,
2114
        paramType* aVar) -> bool
2115
0
{
2116
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->Origin())))))) {
2117
0
        (aActor)->FatalError("Error deserializing 'Origin' (nsString) member of 'WebAuthnGetAssertionInfo'");
2118
0
        return false;
2119
0
    }
2120
0
    // Sentinel = 'Origin'
2121
0
    if ((!((aMsg)->ReadSentinel(aIter, 4053590112)))) {
2122
0
        mozilla::ipc::SentinelReadError("Error deserializing 'Origin' (nsString) member of 'WebAuthnGetAssertionInfo'");
2123
0
        return false;
2124
0
    }
2125
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->RpId())))))) {
2126
0
        (aActor)->FatalError("Error deserializing 'RpId' (nsString) member of 'WebAuthnGetAssertionInfo'");
2127
0
        return false;
2128
0
    }
2129
0
    // Sentinel = 'RpId'
2130
0
    if ((!((aMsg)->ReadSentinel(aIter, 2688815153)))) {
2131
0
        mozilla::ipc::SentinelReadError("Error deserializing 'RpId' (nsString) member of 'WebAuthnGetAssertionInfo'");
2132
0
        return false;
2133
0
    }
2134
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->Challenge())))))) {
2135
0
        (aActor)->FatalError("Error deserializing 'Challenge' (uint8_t[]) member of 'WebAuthnGetAssertionInfo'");
2136
0
        return false;
2137
0
    }
2138
0
    // Sentinel = 'Challenge'
2139
0
    if ((!((aMsg)->ReadSentinel(aIter, 1381253706)))) {
2140
0
        mozilla::ipc::SentinelReadError("Error deserializing 'Challenge' (uint8_t[]) member of 'WebAuthnGetAssertionInfo'");
2141
0
        return false;
2142
0
    }
2143
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->ClientDataJSON())))))) {
2144
0
        (aActor)->FatalError("Error deserializing 'ClientDataJSON' (nsCString) member of 'WebAuthnGetAssertionInfo'");
2145
0
        return false;
2146
0
    }
2147
0
    // Sentinel = 'ClientDataJSON'
2148
0
    if ((!((aMsg)->ReadSentinel(aIter, 3518101945)))) {
2149
0
        mozilla::ipc::SentinelReadError("Error deserializing 'ClientDataJSON' (nsCString) member of 'WebAuthnGetAssertionInfo'");
2150
0
        return false;
2151
0
    }
2152
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->TimeoutMS())))))) {
2153
0
        (aActor)->FatalError("Error deserializing 'TimeoutMS' (uint32_t) member of 'WebAuthnGetAssertionInfo'");
2154
0
        return false;
2155
0
    }
2156
0
    // Sentinel = 'TimeoutMS'
2157
0
    if ((!((aMsg)->ReadSentinel(aIter, 2549274784)))) {
2158
0
        mozilla::ipc::SentinelReadError("Error deserializing 'TimeoutMS' (uint32_t) member of 'WebAuthnGetAssertionInfo'");
2159
0
        return false;
2160
0
    }
2161
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->AllowList())))))) {
2162
0
        (aActor)->FatalError("Error deserializing 'AllowList' (WebAuthnScopedCredential[]) member of 'WebAuthnGetAssertionInfo'");
2163
0
        return false;
2164
0
    }
2165
0
    // Sentinel = 'AllowList'
2166
0
    if ((!((aMsg)->ReadSentinel(aIter, 1633896974)))) {
2167
0
        mozilla::ipc::SentinelReadError("Error deserializing 'AllowList' (WebAuthnScopedCredential[]) member of 'WebAuthnGetAssertionInfo'");
2168
0
        return false;
2169
0
    }
2170
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->Extra())))))) {
2171
0
        (aActor)->FatalError("Error deserializing 'Extra' (WebAuthnMaybeGetAssertionExtraInfo) member of 'WebAuthnGetAssertionInfo'");
2172
0
        return false;
2173
0
    }
2174
0
    // Sentinel = 'Extra'
2175
0
    if ((!((aMsg)->ReadSentinel(aIter, 2419867879)))) {
2176
0
        mozilla::ipc::SentinelReadError("Error deserializing 'Extra' (WebAuthnMaybeGetAssertionExtraInfo) member of 'WebAuthnGetAssertionInfo'");
2177
0
        return false;
2178
0
    }
2179
0
    return true;
2180
0
}
2181
2182
} // namespace ipc
2183
} // namespace mozilla
2184
2185
//-----------------------------------------------------------------------------
2186
// Method definitions for the IPDL type |struct WebAuthnGetAssertionResult|
2187
//
2188
namespace mozilla {
2189
namespace dom {
2190
auto WebAuthnGetAssertionResult::operator==(const WebAuthnGetAssertionResult& _o) const -> bool
2191
0
{
2192
0
    if ((!((ClientDataJSON()) == ((_o).ClientDataJSON())))) {
2193
0
        return false;
2194
0
    }
2195
0
    if ((!((KeyHandle()) == ((_o).KeyHandle())))) {
2196
0
        return false;
2197
0
    }
2198
0
    if ((!((Signature()) == ((_o).Signature())))) {
2199
0
        return false;
2200
0
    }
2201
0
    if ((!((AuthenticatorData()) == ((_o).AuthenticatorData())))) {
2202
0
        return false;
2203
0
    }
2204
0
    if ((!((Extensions()) == ((_o).Extensions())))) {
2205
0
        return false;
2206
0
    }
2207
0
    if ((!((SignatureData()) == ((_o).SignatureData())))) {
2208
0
        return false;
2209
0
    }
2210
0
    return true;
2211
0
}
2212
2213
auto WebAuthnGetAssertionResult::operator!=(const WebAuthnGetAssertionResult& _o) const -> bool
2214
0
{
2215
0
    return (!(operator==(_o)));
2216
0
}
2217
2218
} // namespace dom
2219
} // namespace mozilla
2220
2221
namespace mozilla {
2222
namespace ipc {
2223
auto IPDLParamTraits<mozilla::dom::WebAuthnGetAssertionResult>::Write(
2224
        IPC::Message* aMsg,
2225
        mozilla::ipc::IProtocol* aActor,
2226
        const paramType& aVar) -> void
2227
0
{
2228
0
    WriteIPDLParam(aMsg, aActor, (aVar).ClientDataJSON());
2229
0
    // Sentinel = 'ClientDataJSON'
2230
0
    (aMsg)->WriteSentinel(3518101945);
2231
0
    WriteIPDLParam(aMsg, aActor, (aVar).KeyHandle());
2232
0
    // Sentinel = 'KeyHandle'
2233
0
    (aMsg)->WriteSentinel(2245515378);
2234
0
    WriteIPDLParam(aMsg, aActor, (aVar).Signature());
2235
0
    // Sentinel = 'Signature'
2236
0
    (aMsg)->WriteSentinel(736866007);
2237
0
    WriteIPDLParam(aMsg, aActor, (aVar).AuthenticatorData());
2238
0
    // Sentinel = 'AuthenticatorData'
2239
0
    (aMsg)->WriteSentinel(1133495140);
2240
0
    WriteIPDLParam(aMsg, aActor, (aVar).Extensions());
2241
0
    // Sentinel = 'Extensions'
2242
0
    (aMsg)->WriteSentinel(77077076);
2243
0
    WriteIPDLParam(aMsg, aActor, (aVar).SignatureData());
2244
0
    // Sentinel = 'SignatureData'
2245
0
    (aMsg)->WriteSentinel(4014511843);
2246
0
}
2247
2248
auto IPDLParamTraits<mozilla::dom::WebAuthnGetAssertionResult>::Read(
2249
        const IPC::Message* aMsg,
2250
        PickleIterator* aIter,
2251
        mozilla::ipc::IProtocol* aActor,
2252
        paramType* aVar) -> bool
2253
0
{
2254
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->ClientDataJSON())))))) {
2255
0
        (aActor)->FatalError("Error deserializing 'ClientDataJSON' (nsCString) member of 'WebAuthnGetAssertionResult'");
2256
0
        return false;
2257
0
    }
2258
0
    // Sentinel = 'ClientDataJSON'
2259
0
    if ((!((aMsg)->ReadSentinel(aIter, 3518101945)))) {
2260
0
        mozilla::ipc::SentinelReadError("Error deserializing 'ClientDataJSON' (nsCString) member of 'WebAuthnGetAssertionResult'");
2261
0
        return false;
2262
0
    }
2263
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->KeyHandle())))))) {
2264
0
        (aActor)->FatalError("Error deserializing 'KeyHandle' (uint8_t[]) member of 'WebAuthnGetAssertionResult'");
2265
0
        return false;
2266
0
    }
2267
0
    // Sentinel = 'KeyHandle'
2268
0
    if ((!((aMsg)->ReadSentinel(aIter, 2245515378)))) {
2269
0
        mozilla::ipc::SentinelReadError("Error deserializing 'KeyHandle' (uint8_t[]) member of 'WebAuthnGetAssertionResult'");
2270
0
        return false;
2271
0
    }
2272
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->Signature())))))) {
2273
0
        (aActor)->FatalError("Error deserializing 'Signature' (uint8_t[]) member of 'WebAuthnGetAssertionResult'");
2274
0
        return false;
2275
0
    }
2276
0
    // Sentinel = 'Signature'
2277
0
    if ((!((aMsg)->ReadSentinel(aIter, 736866007)))) {
2278
0
        mozilla::ipc::SentinelReadError("Error deserializing 'Signature' (uint8_t[]) member of 'WebAuthnGetAssertionResult'");
2279
0
        return false;
2280
0
    }
2281
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->AuthenticatorData())))))) {
2282
0
        (aActor)->FatalError("Error deserializing 'AuthenticatorData' (uint8_t[]) member of 'WebAuthnGetAssertionResult'");
2283
0
        return false;
2284
0
    }
2285
0
    // Sentinel = 'AuthenticatorData'
2286
0
    if ((!((aMsg)->ReadSentinel(aIter, 1133495140)))) {
2287
0
        mozilla::ipc::SentinelReadError("Error deserializing 'AuthenticatorData' (uint8_t[]) member of 'WebAuthnGetAssertionResult'");
2288
0
        return false;
2289
0
    }
2290
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->Extensions())))))) {
2291
0
        (aActor)->FatalError("Error deserializing 'Extensions' (WebAuthnExtensionResult[]) member of 'WebAuthnGetAssertionResult'");
2292
0
        return false;
2293
0
    }
2294
0
    // Sentinel = 'Extensions'
2295
0
    if ((!((aMsg)->ReadSentinel(aIter, 77077076)))) {
2296
0
        mozilla::ipc::SentinelReadError("Error deserializing 'Extensions' (WebAuthnExtensionResult[]) member of 'WebAuthnGetAssertionResult'");
2297
0
        return false;
2298
0
    }
2299
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->SignatureData())))))) {
2300
0
        (aActor)->FatalError("Error deserializing 'SignatureData' (uint8_t[]) member of 'WebAuthnGetAssertionResult'");
2301
0
        return false;
2302
0
    }
2303
0
    // Sentinel = 'SignatureData'
2304
0
    if ((!((aMsg)->ReadSentinel(aIter, 4014511843)))) {
2305
0
        mozilla::ipc::SentinelReadError("Error deserializing 'SignatureData' (uint8_t[]) member of 'WebAuthnGetAssertionResult'");
2306
0
        return false;
2307
0
    }
2308
0
    return true;
2309
0
}
2310
2311
} // namespace ipc
2312
} // namespace mozilla