Coverage Report

Created: 2018-09-25 14:53

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