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