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