Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/net/PFTPChannelParent.h"
8 :
9 : #include "mozilla/net/PNeckoParent.h"
10 :
11 : #include "nsIFile.h"
12 : #include "GeckoProfiler.h"
13 :
14 : namespace mozilla {
15 : namespace net {
16 :
17 :
18 0 : auto PFTPChannelParent::Recv__delete__() -> mozilla::ipc::IPCResult
19 : {
20 0 : return IPC_OK();
21 : }
22 :
23 :
24 0 : MOZ_IMPLICIT PFTPChannelParent::PFTPChannelParent() :
25 : mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
26 0 : mState(PFTPChannel::__Dead)
27 : {
28 0 : MOZ_COUNT_CTOR(PFTPChannelParent);
29 0 : }
30 :
31 0 : PFTPChannelParent::~PFTPChannelParent()
32 : {
33 0 : MOZ_COUNT_DTOR(PFTPChannelParent);
34 0 : }
35 :
36 0 : auto PFTPChannelParent::Manager() const -> PNeckoParent*
37 : {
38 0 : return static_cast<PNeckoParent*>(IProtocol::Manager());
39 : }
40 :
41 0 : auto PFTPChannelParent::SendOnStartRequest(
42 : const nsresult& aChannelStatus,
43 : const int64_t& aContentLength,
44 : const nsCString& aContentType,
45 : const PRTime& aLastModified,
46 : const nsCString& aEntityID,
47 : const URIParams& aURI) -> bool
48 : {
49 0 : IPC::Message* msg__ = PFTPChannel::Msg_OnStartRequest(Id());
50 :
51 0 : Write(aChannelStatus, msg__);
52 : // Sentinel = 'aChannelStatus'
53 0 : (msg__)->WriteSentinel(1494802930);
54 0 : Write(aContentLength, msg__);
55 : // Sentinel = 'aContentLength'
56 0 : (msg__)->WriteSentinel(773059686);
57 0 : Write(aContentType, msg__);
58 : // Sentinel = 'aContentType'
59 0 : (msg__)->WriteSentinel(694407768);
60 0 : Write(aLastModified, msg__);
61 : // Sentinel = 'aLastModified'
62 0 : (msg__)->WriteSentinel(3690958509);
63 0 : Write(aEntityID, msg__);
64 : // Sentinel = 'aEntityID'
65 0 : (msg__)->WriteSentinel(2409181170);
66 0 : Write(aURI, msg__);
67 : // Sentinel = 'aURI'
68 0 : (msg__)->WriteSentinel(2075506333);
69 :
70 :
71 :
72 :
73 0 : if (mozilla::ipc::LoggingEnabledFor("PFTPChannelParent")) {
74 0 : mozilla::ipc::LogMessageForProtocol("PFTPChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
75 : }
76 0 : AUTO_PROFILER_LABEL("PFTPChannel::Msg_OnStartRequest", OTHER);
77 0 : PFTPChannel::Transition(PFTPChannel::Msg_OnStartRequest__ID, (&(mState)));
78 :
79 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
80 0 : return sendok__;
81 : }
82 :
83 0 : auto PFTPChannelParent::SendOnDataAvailable(
84 : const nsresult& channelStatus,
85 : const nsCString& data,
86 : const uint64_t& offset,
87 : const uint32_t& count) -> bool
88 : {
89 0 : IPC::Message* msg__ = PFTPChannel::Msg_OnDataAvailable(Id());
90 :
91 0 : Write(channelStatus, msg__);
92 : // Sentinel = 'channelStatus'
93 0 : (msg__)->WriteSentinel(3148019746);
94 0 : Write(data, msg__);
95 : // Sentinel = 'data'
96 0 : (msg__)->WriteSentinel(843352540);
97 0 : Write(offset, msg__);
98 : // Sentinel = 'offset'
99 0 : (msg__)->WriteSentinel(1369947863);
100 0 : Write(count, msg__);
101 : // Sentinel = 'count'
102 0 : (msg__)->WriteSentinel(2126421856);
103 :
104 :
105 :
106 :
107 0 : if (mozilla::ipc::LoggingEnabledFor("PFTPChannelParent")) {
108 0 : mozilla::ipc::LogMessageForProtocol("PFTPChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
109 : }
110 0 : AUTO_PROFILER_LABEL("PFTPChannel::Msg_OnDataAvailable", OTHER);
111 0 : PFTPChannel::Transition(PFTPChannel::Msg_OnDataAvailable__ID, (&(mState)));
112 :
113 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
114 0 : return sendok__;
115 : }
116 :
117 0 : auto PFTPChannelParent::SendOnStopRequest(
118 : const nsresult& channelStatus,
119 : const nsCString& aErrorMsg,
120 : const bool& aUseUTF8) -> bool
121 : {
122 0 : IPC::Message* msg__ = PFTPChannel::Msg_OnStopRequest(Id());
123 :
124 0 : Write(channelStatus, msg__);
125 : // Sentinel = 'channelStatus'
126 0 : (msg__)->WriteSentinel(3148019746);
127 0 : Write(aErrorMsg, msg__);
128 : // Sentinel = 'aErrorMsg'
129 0 : (msg__)->WriteSentinel(2060733517);
130 0 : Write(aUseUTF8, msg__);
131 : // Sentinel = 'aUseUTF8'
132 0 : (msg__)->WriteSentinel(403508847);
133 :
134 :
135 :
136 :
137 0 : if (mozilla::ipc::LoggingEnabledFor("PFTPChannelParent")) {
138 0 : mozilla::ipc::LogMessageForProtocol("PFTPChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
139 : }
140 0 : AUTO_PROFILER_LABEL("PFTPChannel::Msg_OnStopRequest", OTHER);
141 0 : PFTPChannel::Transition(PFTPChannel::Msg_OnStopRequest__ID, (&(mState)));
142 :
143 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
144 0 : return sendok__;
145 : }
146 :
147 0 : auto PFTPChannelParent::SendFailedAsyncOpen(const nsresult& statusCode) -> bool
148 : {
149 0 : IPC::Message* msg__ = PFTPChannel::Msg_FailedAsyncOpen(Id());
150 :
151 0 : Write(statusCode, msg__);
152 : // Sentinel = 'statusCode'
153 0 : (msg__)->WriteSentinel(2709278591);
154 :
155 :
156 :
157 :
158 0 : if (mozilla::ipc::LoggingEnabledFor("PFTPChannelParent")) {
159 0 : mozilla::ipc::LogMessageForProtocol("PFTPChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
160 : }
161 0 : AUTO_PROFILER_LABEL("PFTPChannel::Msg_FailedAsyncOpen", OTHER);
162 0 : PFTPChannel::Transition(PFTPChannel::Msg_FailedAsyncOpen__ID, (&(mState)));
163 :
164 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
165 0 : return sendok__;
166 : }
167 :
168 0 : auto PFTPChannelParent::SendFlushedForDiversion() -> bool
169 : {
170 0 : IPC::Message* msg__ = PFTPChannel::Msg_FlushedForDiversion(Id());
171 :
172 :
173 :
174 :
175 :
176 0 : if (mozilla::ipc::LoggingEnabledFor("PFTPChannelParent")) {
177 0 : mozilla::ipc::LogMessageForProtocol("PFTPChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
178 : }
179 0 : AUTO_PROFILER_LABEL("PFTPChannel::Msg_FlushedForDiversion", OTHER);
180 0 : PFTPChannel::Transition(PFTPChannel::Msg_FlushedForDiversion__ID, (&(mState)));
181 :
182 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
183 0 : return sendok__;
184 : }
185 :
186 0 : auto PFTPChannelParent::SendDivertMessages() -> bool
187 : {
188 0 : IPC::Message* msg__ = PFTPChannel::Msg_DivertMessages(Id());
189 :
190 :
191 :
192 :
193 :
194 0 : if (mozilla::ipc::LoggingEnabledFor("PFTPChannelParent")) {
195 0 : mozilla::ipc::LogMessageForProtocol("PFTPChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
196 : }
197 0 : AUTO_PROFILER_LABEL("PFTPChannel::Msg_DivertMessages", OTHER);
198 0 : PFTPChannel::Transition(PFTPChannel::Msg_DivertMessages__ID, (&(mState)));
199 :
200 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
201 0 : return sendok__;
202 : }
203 :
204 0 : auto PFTPChannelParent::SendDeleteSelf() -> bool
205 : {
206 0 : IPC::Message* msg__ = PFTPChannel::Msg_DeleteSelf(Id());
207 :
208 :
209 :
210 :
211 :
212 0 : if (mozilla::ipc::LoggingEnabledFor("PFTPChannelParent")) {
213 0 : mozilla::ipc::LogMessageForProtocol("PFTPChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
214 : }
215 0 : AUTO_PROFILER_LABEL("PFTPChannel::Msg_DeleteSelf", OTHER);
216 0 : PFTPChannel::Transition(PFTPChannel::Msg_DeleteSelf__ID, (&(mState)));
217 :
218 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
219 0 : return sendok__;
220 : }
221 :
222 0 : auto PFTPChannelParent::RemoveManagee(
223 : int32_t aProtocolId,
224 : ProtocolBase* aListener) -> void
225 : {
226 0 : FatalError("unreached");
227 0 : return;
228 : }
229 :
230 0 : auto PFTPChannelParent::OnMessageReceived(const Message& msg__) -> PFTPChannelParent::Result
231 : {
232 0 : switch ((msg__).type()) {
233 : case PFTPChannel::Msg___delete____ID:
234 : {
235 0 : if (mozilla::ipc::LoggingEnabledFor("PFTPChannelParent")) {
236 0 : mozilla::ipc::LogMessageForProtocol("PFTPChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
237 : }
238 0 : AUTO_PROFILER_LABEL("PFTPChannel::Msg___delete__", OTHER);
239 :
240 0 : PickleIterator iter__(msg__);
241 : PFTPChannelParent* actor;
242 :
243 0 : if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
244 0 : FatalError("Error deserializing 'PFTPChannelParent'");
245 0 : return MsgValueError;
246 : }
247 : // Sentinel = 'actor'
248 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
249 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PFTPChannelParent'");
250 0 : return MsgValueError;
251 : }
252 0 : (msg__).EndRead(iter__, (msg__).type());
253 0 : PFTPChannel::Transition(PFTPChannel::Msg___delete____ID, (&(mState)));
254 0 : if ((!(Recv__delete__()))) {
255 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
256 : // Error handled in mozilla::ipc::IPCResult
257 0 : return MsgProcessingError;
258 : }
259 :
260 :
261 0 : IProtocol* mgr = (actor)->Manager();
262 0 : (actor)->DestroySubtree(Deletion);
263 0 : (actor)->DeallocSubtree();
264 0 : (mgr)->RemoveManagee(PFTPChannelMsgStart, actor);
265 :
266 0 : return MsgProcessed;
267 : }
268 : case PFTPChannel::Msg_Cancel__ID:
269 : {
270 0 : if (mozilla::ipc::LoggingEnabledFor("PFTPChannelParent")) {
271 0 : mozilla::ipc::LogMessageForProtocol("PFTPChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
272 : }
273 0 : AUTO_PROFILER_LABEL("PFTPChannel::Msg_Cancel", OTHER);
274 :
275 0 : PickleIterator iter__(msg__);
276 : nsresult status;
277 :
278 0 : if ((!(Read((&(status)), (&(msg__)), (&(iter__)))))) {
279 0 : FatalError("Error deserializing 'nsresult'");
280 0 : return MsgValueError;
281 : }
282 : // Sentinel = 'status'
283 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3714608576)))) {
284 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
285 0 : return MsgValueError;
286 : }
287 0 : (msg__).EndRead(iter__, (msg__).type());
288 0 : PFTPChannel::Transition(PFTPChannel::Msg_Cancel__ID, (&(mState)));
289 0 : if ((!(RecvCancel(mozilla::Move(status))))) {
290 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
291 : // Error handled in mozilla::ipc::IPCResult
292 0 : return MsgProcessingError;
293 : }
294 :
295 0 : return MsgProcessed;
296 : }
297 : case PFTPChannel::Msg_Suspend__ID:
298 : {
299 0 : if (mozilla::ipc::LoggingEnabledFor("PFTPChannelParent")) {
300 0 : mozilla::ipc::LogMessageForProtocol("PFTPChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
301 : }
302 0 : AUTO_PROFILER_LABEL("PFTPChannel::Msg_Suspend", OTHER);
303 :
304 0 : PFTPChannel::Transition(PFTPChannel::Msg_Suspend__ID, (&(mState)));
305 0 : if ((!(RecvSuspend()))) {
306 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
307 : // Error handled in mozilla::ipc::IPCResult
308 0 : return MsgProcessingError;
309 : }
310 :
311 0 : return MsgProcessed;
312 : }
313 : case PFTPChannel::Msg_Resume__ID:
314 : {
315 0 : if (mozilla::ipc::LoggingEnabledFor("PFTPChannelParent")) {
316 0 : mozilla::ipc::LogMessageForProtocol("PFTPChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
317 : }
318 0 : AUTO_PROFILER_LABEL("PFTPChannel::Msg_Resume", OTHER);
319 :
320 0 : PFTPChannel::Transition(PFTPChannel::Msg_Resume__ID, (&(mState)));
321 0 : if ((!(RecvResume()))) {
322 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
323 : // Error handled in mozilla::ipc::IPCResult
324 0 : return MsgProcessingError;
325 : }
326 :
327 0 : return MsgProcessed;
328 : }
329 : case PFTPChannel::Msg_DivertOnDataAvailable__ID:
330 : {
331 0 : if (mozilla::ipc::LoggingEnabledFor("PFTPChannelParent")) {
332 0 : mozilla::ipc::LogMessageForProtocol("PFTPChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
333 : }
334 0 : AUTO_PROFILER_LABEL("PFTPChannel::Msg_DivertOnDataAvailable", OTHER);
335 :
336 0 : PickleIterator iter__(msg__);
337 0 : nsCString data;
338 : uint64_t offset;
339 : uint32_t count;
340 :
341 0 : if ((!(Read((&(data)), (&(msg__)), (&(iter__)))))) {
342 0 : FatalError("Error deserializing 'nsCString'");
343 0 : return MsgValueError;
344 : }
345 : // Sentinel = 'data'
346 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 843352540)))) {
347 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
348 0 : return MsgValueError;
349 : }
350 0 : if ((!(Read((&(offset)), (&(msg__)), (&(iter__)))))) {
351 0 : FatalError("Error deserializing 'uint64_t'");
352 0 : return MsgValueError;
353 : }
354 : // Sentinel = 'offset'
355 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1369947863)))) {
356 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
357 0 : return MsgValueError;
358 : }
359 0 : if ((!(Read((&(count)), (&(msg__)), (&(iter__)))))) {
360 0 : FatalError("Error deserializing 'uint32_t'");
361 0 : return MsgValueError;
362 : }
363 : // Sentinel = 'count'
364 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2126421856)))) {
365 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
366 0 : return MsgValueError;
367 : }
368 0 : (msg__).EndRead(iter__, (msg__).type());
369 0 : PFTPChannel::Transition(PFTPChannel::Msg_DivertOnDataAvailable__ID, (&(mState)));
370 0 : if ((!(RecvDivertOnDataAvailable(mozilla::Move(data), mozilla::Move(offset), mozilla::Move(count))))) {
371 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
372 : // Error handled in mozilla::ipc::IPCResult
373 0 : return MsgProcessingError;
374 : }
375 :
376 0 : return MsgProcessed;
377 : }
378 : case PFTPChannel::Msg_DivertOnStopRequest__ID:
379 : {
380 0 : if (mozilla::ipc::LoggingEnabledFor("PFTPChannelParent")) {
381 0 : mozilla::ipc::LogMessageForProtocol("PFTPChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
382 : }
383 0 : AUTO_PROFILER_LABEL("PFTPChannel::Msg_DivertOnStopRequest", OTHER);
384 :
385 0 : PickleIterator iter__(msg__);
386 : nsresult statusCode;
387 :
388 0 : if ((!(Read((&(statusCode)), (&(msg__)), (&(iter__)))))) {
389 0 : FatalError("Error deserializing 'nsresult'");
390 0 : return MsgValueError;
391 : }
392 : // Sentinel = 'statusCode'
393 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2709278591)))) {
394 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
395 0 : return MsgValueError;
396 : }
397 0 : (msg__).EndRead(iter__, (msg__).type());
398 0 : PFTPChannel::Transition(PFTPChannel::Msg_DivertOnStopRequest__ID, (&(mState)));
399 0 : if ((!(RecvDivertOnStopRequest(mozilla::Move(statusCode))))) {
400 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
401 : // Error handled in mozilla::ipc::IPCResult
402 0 : return MsgProcessingError;
403 : }
404 :
405 0 : return MsgProcessed;
406 : }
407 : case PFTPChannel::Msg_DivertComplete__ID:
408 : {
409 0 : if (mozilla::ipc::LoggingEnabledFor("PFTPChannelParent")) {
410 0 : mozilla::ipc::LogMessageForProtocol("PFTPChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
411 : }
412 0 : AUTO_PROFILER_LABEL("PFTPChannel::Msg_DivertComplete", OTHER);
413 :
414 0 : PFTPChannel::Transition(PFTPChannel::Msg_DivertComplete__ID, (&(mState)));
415 0 : if ((!(RecvDivertComplete()))) {
416 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
417 : // Error handled in mozilla::ipc::IPCResult
418 0 : return MsgProcessingError;
419 : }
420 :
421 0 : return MsgProcessed;
422 : }
423 : default:
424 : {
425 0 : return MsgNotKnown;
426 : }
427 : }
428 : }
429 :
430 0 : auto PFTPChannelParent::OnMessageReceived(
431 : const Message& msg__,
432 : Message*& reply__) -> PFTPChannelParent::Result
433 : {
434 0 : return MsgNotKnown;
435 : }
436 :
437 0 : auto PFTPChannelParent::OnCallReceived(
438 : const Message& msg__,
439 : Message*& reply__) -> PFTPChannelParent::Result
440 : {
441 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
442 : return MsgNotKnown;
443 : }
444 :
445 0 : auto PFTPChannelParent::GetProtocolTypeId() -> int32_t
446 : {
447 0 : return PFTPChannelMsgStart;
448 : }
449 :
450 0 : auto PFTPChannelParent::ProtocolName() const -> const char*
451 : {
452 0 : return "PFTPChannelParent";
453 : }
454 :
455 0 : auto PFTPChannelParent::DestroySubtree(ActorDestroyReason why) -> void
456 : {
457 : // Unregister from our manager.
458 0 : Unregister(Id());
459 :
460 : // Reject owning pending promises.
461 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
462 :
463 : // Finally, destroy "us".
464 0 : ActorDestroy(why);
465 0 : }
466 :
467 0 : auto PFTPChannelParent::DeallocSubtree() -> void
468 : {
469 0 : }
470 :
471 0 : auto PFTPChannelParent::Write(
472 : const SystemPrincipalInfo& v__,
473 : Message* msg__) -> void
474 : {
475 0 : }
476 :
477 0 : auto PFTPChannelParent::Read(
478 : SystemPrincipalInfo* v__,
479 : const Message* msg__,
480 : PickleIterator* iter__) -> bool
481 : {
482 0 : return true;
483 : }
484 :
485 0 : auto PFTPChannelParent::Write(
486 : const nsTArray<PrincipalInfo>& v__,
487 : Message* msg__) -> void
488 : {
489 0 : uint32_t length = (v__).Length();
490 0 : Write(length, msg__);
491 : // Sentinel = ('length', 'PrincipalInfo[]')
492 0 : (msg__)->WriteSentinel(1032188126);
493 :
494 0 : for (auto& elem : v__) {
495 0 : Write(elem, msg__);
496 : // Sentinel = 'PrincipalInfo[]'
497 0 : (msg__)->WriteSentinel(413380193);
498 : }
499 0 : }
500 :
501 0 : auto PFTPChannelParent::Read(
502 : nsTArray<PrincipalInfo>* v__,
503 : const Message* msg__,
504 : PickleIterator* iter__) -> bool
505 : {
506 0 : nsTArray<PrincipalInfo> fa;
507 : uint32_t length;
508 0 : if ((!(Read((&(length)), msg__, iter__)))) {
509 0 : mozilla::ipc::ArrayLengthReadError("PrincipalInfo[]");
510 0 : return false;
511 : }
512 : // Sentinel = ('length', 'PrincipalInfo[]')
513 0 : if ((!((msg__)->ReadSentinel(iter__, 1032188126)))) {
514 0 : mozilla::ipc::SentinelReadError("PrincipalInfo[]");
515 0 : return false;
516 : }
517 :
518 0 : PrincipalInfo* elems = (fa).AppendElements(length);
519 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
520 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
521 0 : FatalError("Error deserializing 'PrincipalInfo[i]'");
522 0 : return false;
523 : }
524 : // Sentinel = 'PrincipalInfo[]'
525 0 : if ((!((msg__)->ReadSentinel(iter__, 413380193)))) {
526 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo[i]'");
527 0 : return false;
528 : }
529 : }
530 0 : (v__)->SwapElements(fa);
531 0 : return true;
532 : }
533 :
534 0 : auto PFTPChannelParent::Write(
535 : const NullPrincipalURIParams& v__,
536 : Message* msg__) -> void
537 : {
538 0 : }
539 :
540 0 : auto PFTPChannelParent::Read(
541 : NullPrincipalURIParams* v__,
542 : const Message* msg__,
543 : PickleIterator* iter__) -> bool
544 : {
545 0 : return true;
546 : }
547 :
548 0 : auto PFTPChannelParent::Write(
549 : const IconURIParams& v__,
550 : Message* msg__) -> void
551 : {
552 0 : Write((v__).uri(), msg__);
553 : // Sentinel = 'uri'
554 0 : (msg__)->WriteSentinel(1453210605);
555 0 : Write((v__).size(), msg__);
556 : // Sentinel = 'size'
557 0 : (msg__)->WriteSentinel(931048223);
558 0 : Write((v__).contentType(), msg__);
559 : // Sentinel = 'contentType'
560 0 : (msg__)->WriteSentinel(2092571716);
561 0 : Write((v__).fileName(), msg__);
562 : // Sentinel = 'fileName'
563 0 : (msg__)->WriteSentinel(3833449039);
564 0 : Write((v__).stockIcon(), msg__);
565 : // Sentinel = 'stockIcon'
566 0 : (msg__)->WriteSentinel(3601770784);
567 0 : Write((v__).iconSize(), msg__);
568 : // Sentinel = 'iconSize'
569 0 : (msg__)->WriteSentinel(2585310920);
570 0 : Write((v__).iconState(), msg__);
571 : // Sentinel = 'iconState'
572 0 : (msg__)->WriteSentinel(3444306207);
573 0 : }
574 :
575 0 : auto PFTPChannelParent::Read(
576 : IconURIParams* v__,
577 : const Message* msg__,
578 : PickleIterator* iter__) -> bool
579 : {
580 0 : if ((!(Read((&((v__)->uri())), msg__, iter__)))) {
581 0 : FatalError("Error deserializing 'uri' (OptionalURIParams) member of 'IconURIParams'");
582 0 : return false;
583 : }
584 : // Sentinel = 'uri'
585 0 : if ((!((msg__)->ReadSentinel(iter__, 1453210605)))) {
586 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uri' (OptionalURIParams) member of 'IconURIParams'");
587 0 : return false;
588 : }
589 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
590 0 : FatalError("Error deserializing 'size' (uint32_t) member of 'IconURIParams'");
591 0 : return false;
592 : }
593 : // Sentinel = 'size'
594 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
595 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (uint32_t) member of 'IconURIParams'");
596 0 : return false;
597 : }
598 0 : if ((!(Read((&((v__)->contentType())), msg__, iter__)))) {
599 0 : FatalError("Error deserializing 'contentType' (nsCString) member of 'IconURIParams'");
600 0 : return false;
601 : }
602 : // Sentinel = 'contentType'
603 0 : if ((!((msg__)->ReadSentinel(iter__, 2092571716)))) {
604 0 : mozilla::ipc::SentinelReadError("Error deserializing 'contentType' (nsCString) member of 'IconURIParams'");
605 0 : return false;
606 : }
607 0 : if ((!(Read((&((v__)->fileName())), msg__, iter__)))) {
608 0 : FatalError("Error deserializing 'fileName' (nsCString) member of 'IconURIParams'");
609 0 : return false;
610 : }
611 : // Sentinel = 'fileName'
612 0 : if ((!((msg__)->ReadSentinel(iter__, 3833449039)))) {
613 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileName' (nsCString) member of 'IconURIParams'");
614 0 : return false;
615 : }
616 0 : if ((!(Read((&((v__)->stockIcon())), msg__, iter__)))) {
617 0 : FatalError("Error deserializing 'stockIcon' (nsCString) member of 'IconURIParams'");
618 0 : return false;
619 : }
620 : // Sentinel = 'stockIcon'
621 0 : if ((!((msg__)->ReadSentinel(iter__, 3601770784)))) {
622 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stockIcon' (nsCString) member of 'IconURIParams'");
623 0 : return false;
624 : }
625 0 : if ((!(Read((&((v__)->iconSize())), msg__, iter__)))) {
626 0 : FatalError("Error deserializing 'iconSize' (int32_t) member of 'IconURIParams'");
627 0 : return false;
628 : }
629 : // Sentinel = 'iconSize'
630 0 : if ((!((msg__)->ReadSentinel(iter__, 2585310920)))) {
631 0 : mozilla::ipc::SentinelReadError("Error deserializing 'iconSize' (int32_t) member of 'IconURIParams'");
632 0 : return false;
633 : }
634 0 : if ((!(Read((&((v__)->iconState())), msg__, iter__)))) {
635 0 : FatalError("Error deserializing 'iconState' (int32_t) member of 'IconURIParams'");
636 0 : return false;
637 : }
638 : // Sentinel = 'iconState'
639 0 : if ((!((msg__)->ReadSentinel(iter__, 3444306207)))) {
640 0 : mozilla::ipc::SentinelReadError("Error deserializing 'iconState' (int32_t) member of 'IconURIParams'");
641 0 : return false;
642 : }
643 0 : return true;
644 : }
645 :
646 0 : auto PFTPChannelParent::Write(
647 : const ExpandedPrincipalInfo& v__,
648 : Message* msg__) -> void
649 : {
650 0 : Write((v__).attrs(), msg__);
651 : // Sentinel = 'attrs'
652 0 : (msg__)->WriteSentinel(3014987797);
653 0 : Write((v__).whitelist(), msg__);
654 : // Sentinel = 'whitelist'
655 0 : (msg__)->WriteSentinel(3731637258);
656 0 : }
657 :
658 0 : auto PFTPChannelParent::Read(
659 : ExpandedPrincipalInfo* v__,
660 : const Message* msg__,
661 : PickleIterator* iter__) -> bool
662 : {
663 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
664 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
665 0 : return false;
666 : }
667 : // Sentinel = 'attrs'
668 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
669 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
670 0 : return false;
671 : }
672 0 : if ((!(Read((&((v__)->whitelist())), msg__, iter__)))) {
673 0 : FatalError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
674 0 : return false;
675 : }
676 : // Sentinel = 'whitelist'
677 0 : if ((!((msg__)->ReadSentinel(iter__, 3731637258)))) {
678 0 : mozilla::ipc::SentinelReadError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
679 0 : return false;
680 : }
681 0 : return true;
682 : }
683 :
684 0 : auto PFTPChannelParent::Write(
685 : const JARURIParams& v__,
686 : Message* msg__) -> void
687 : {
688 0 : Write((v__).jarFile(), msg__);
689 : // Sentinel = 'jarFile'
690 0 : (msg__)->WriteSentinel(1572070078);
691 0 : Write((v__).jarEntry(), msg__);
692 : // Sentinel = 'jarEntry'
693 0 : (msg__)->WriteSentinel(941016033);
694 0 : Write((v__).charset(), msg__);
695 : // Sentinel = 'charset'
696 0 : (msg__)->WriteSentinel(1551550891);
697 0 : }
698 :
699 0 : auto PFTPChannelParent::Read(
700 : JARURIParams* v__,
701 : const Message* msg__,
702 : PickleIterator* iter__) -> bool
703 : {
704 0 : if ((!(Read((&((v__)->jarFile())), msg__, iter__)))) {
705 0 : FatalError("Error deserializing 'jarFile' (URIParams) member of 'JARURIParams'");
706 0 : return false;
707 : }
708 : // Sentinel = 'jarFile'
709 0 : if ((!((msg__)->ReadSentinel(iter__, 1572070078)))) {
710 0 : mozilla::ipc::SentinelReadError("Error deserializing 'jarFile' (URIParams) member of 'JARURIParams'");
711 0 : return false;
712 : }
713 0 : if ((!(Read((&((v__)->jarEntry())), msg__, iter__)))) {
714 0 : FatalError("Error deserializing 'jarEntry' (URIParams) member of 'JARURIParams'");
715 0 : return false;
716 : }
717 : // Sentinel = 'jarEntry'
718 0 : if ((!((msg__)->ReadSentinel(iter__, 941016033)))) {
719 0 : mozilla::ipc::SentinelReadError("Error deserializing 'jarEntry' (URIParams) member of 'JARURIParams'");
720 0 : return false;
721 : }
722 0 : if ((!(Read((&((v__)->charset())), msg__, iter__)))) {
723 0 : FatalError("Error deserializing 'charset' (nsCString) member of 'JARURIParams'");
724 0 : return false;
725 : }
726 : // Sentinel = 'charset'
727 0 : if ((!((msg__)->ReadSentinel(iter__, 1551550891)))) {
728 0 : mozilla::ipc::SentinelReadError("Error deserializing 'charset' (nsCString) member of 'JARURIParams'");
729 0 : return false;
730 : }
731 0 : return true;
732 : }
733 :
734 0 : auto PFTPChannelParent::Write(
735 : const SimpleNestedURIParams& v__,
736 : Message* msg__) -> void
737 : {
738 0 : Write((v__).simpleParams(), msg__);
739 : // Sentinel = 'simpleParams'
740 0 : (msg__)->WriteSentinel(3404291700);
741 0 : Write((v__).innerURI(), msg__);
742 : // Sentinel = 'innerURI'
743 0 : (msg__)->WriteSentinel(2573245334);
744 0 : }
745 :
746 0 : auto PFTPChannelParent::Read(
747 : SimpleNestedURIParams* v__,
748 : const Message* msg__,
749 : PickleIterator* iter__) -> bool
750 : {
751 0 : if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
752 0 : FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'SimpleNestedURIParams'");
753 0 : return false;
754 : }
755 : // Sentinel = 'simpleParams'
756 0 : if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
757 0 : mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'SimpleNestedURIParams'");
758 0 : return false;
759 : }
760 0 : if ((!(Read((&((v__)->innerURI())), msg__, iter__)))) {
761 0 : FatalError("Error deserializing 'innerURI' (URIParams) member of 'SimpleNestedURIParams'");
762 0 : return false;
763 : }
764 : // Sentinel = 'innerURI'
765 0 : if ((!((msg__)->ReadSentinel(iter__, 2573245334)))) {
766 0 : mozilla::ipc::SentinelReadError("Error deserializing 'innerURI' (URIParams) member of 'SimpleNestedURIParams'");
767 0 : return false;
768 : }
769 0 : return true;
770 : }
771 :
772 0 : auto PFTPChannelParent::Write(
773 : const OptionalURIParams& v__,
774 : Message* msg__) -> void
775 : {
776 : typedef OptionalURIParams type__;
777 0 : Write(int((v__).type()), msg__);
778 : // Sentinel = 'OptionalURIParams'
779 0 : (msg__)->WriteSentinel(1977079525);
780 :
781 0 : switch ((v__).type()) {
782 : case type__::Tvoid_t:
783 : {
784 0 : Write((v__).get_void_t(), msg__);
785 : // Sentinel = 'Tvoid_t'
786 0 : (msg__)->WriteSentinel(3041273328);
787 0 : return;
788 : }
789 : case type__::TURIParams:
790 : {
791 0 : Write((v__).get_URIParams(), msg__);
792 : // Sentinel = 'TURIParams'
793 0 : (msg__)->WriteSentinel(1132652062);
794 0 : return;
795 : }
796 : default:
797 : {
798 0 : FatalError("unknown union type");
799 0 : return;
800 : }
801 : }
802 : }
803 :
804 0 : auto PFTPChannelParent::Read(
805 : OptionalURIParams* v__,
806 : const Message* msg__,
807 : PickleIterator* iter__) -> bool
808 : {
809 : typedef OptionalURIParams type__;
810 : int type;
811 0 : if ((!(Read((&(type)), msg__, iter__)))) {
812 0 : mozilla::ipc::UnionTypeReadError("OptionalURIParams");
813 0 : return false;
814 : }
815 : // Sentinel = 'OptionalURIParams'
816 0 : if ((!((msg__)->ReadSentinel(iter__, 1977079525)))) {
817 0 : mozilla::ipc::SentinelReadError("OptionalURIParams");
818 0 : return false;
819 : }
820 :
821 0 : switch (type) {
822 : case type__::Tvoid_t:
823 : {
824 : void_t tmp = void_t();
825 0 : (*(v__)) = tmp;
826 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
827 0 : FatalError("Error deserializing Union type");
828 0 : return false;
829 : }
830 : // Sentinel = 'Tvoid_t'
831 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
832 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
833 0 : return false;
834 : }
835 0 : return true;
836 : }
837 : case type__::TURIParams:
838 : {
839 0 : URIParams tmp = URIParams();
840 0 : (*(v__)) = tmp;
841 0 : if ((!(Read((&((v__)->get_URIParams())), msg__, iter__)))) {
842 0 : FatalError("Error deserializing Union type");
843 0 : return false;
844 : }
845 : // Sentinel = 'TURIParams'
846 0 : if ((!((msg__)->ReadSentinel(iter__, 1132652062)))) {
847 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
848 0 : return false;
849 : }
850 0 : return true;
851 : }
852 : default:
853 : {
854 0 : FatalError("unknown union type");
855 0 : return false;
856 : }
857 : }
858 : }
859 :
860 0 : auto PFTPChannelParent::Write(
861 : const PrincipalInfo& v__,
862 : Message* msg__) -> void
863 : {
864 : typedef PrincipalInfo type__;
865 0 : Write(int((v__).type()), msg__);
866 : // Sentinel = 'PrincipalInfo'
867 0 : (msg__)->WriteSentinel(4194518819);
868 :
869 0 : switch ((v__).type()) {
870 : case type__::TContentPrincipalInfo:
871 : {
872 0 : Write((v__).get_ContentPrincipalInfo(), msg__);
873 : // Sentinel = 'TContentPrincipalInfo'
874 0 : (msg__)->WriteSentinel(3677342258);
875 0 : return;
876 : }
877 : case type__::TSystemPrincipalInfo:
878 : {
879 0 : Write((v__).get_SystemPrincipalInfo(), msg__);
880 : // Sentinel = 'TSystemPrincipalInfo'
881 0 : (msg__)->WriteSentinel(3590603679);
882 0 : return;
883 : }
884 : case type__::TNullPrincipalInfo:
885 : {
886 0 : Write((v__).get_NullPrincipalInfo(), msg__);
887 : // Sentinel = 'TNullPrincipalInfo'
888 0 : (msg__)->WriteSentinel(3477774965);
889 0 : return;
890 : }
891 : case type__::TExpandedPrincipalInfo:
892 : {
893 0 : Write((v__).get_ExpandedPrincipalInfo(), msg__);
894 : // Sentinel = 'TExpandedPrincipalInfo'
895 0 : (msg__)->WriteSentinel(589324917);
896 0 : return;
897 : }
898 : default:
899 : {
900 0 : FatalError("unknown union type");
901 0 : return;
902 : }
903 : }
904 : }
905 :
906 0 : auto PFTPChannelParent::Read(
907 : PrincipalInfo* v__,
908 : const Message* msg__,
909 : PickleIterator* iter__) -> bool
910 : {
911 : typedef PrincipalInfo type__;
912 : int type;
913 0 : if ((!(Read((&(type)), msg__, iter__)))) {
914 0 : mozilla::ipc::UnionTypeReadError("PrincipalInfo");
915 0 : return false;
916 : }
917 : // Sentinel = 'PrincipalInfo'
918 0 : if ((!((msg__)->ReadSentinel(iter__, 4194518819)))) {
919 0 : mozilla::ipc::SentinelReadError("PrincipalInfo");
920 0 : return false;
921 : }
922 :
923 0 : switch (type) {
924 : case type__::TContentPrincipalInfo:
925 : {
926 0 : ContentPrincipalInfo tmp = ContentPrincipalInfo();
927 0 : (*(v__)) = tmp;
928 0 : if ((!(Read((&((v__)->get_ContentPrincipalInfo())), msg__, iter__)))) {
929 0 : FatalError("Error deserializing Union type");
930 0 : return false;
931 : }
932 : // Sentinel = 'TContentPrincipalInfo'
933 0 : if ((!((msg__)->ReadSentinel(iter__, 3677342258)))) {
934 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
935 0 : return false;
936 : }
937 0 : return true;
938 : }
939 : case type__::TSystemPrincipalInfo:
940 : {
941 0 : SystemPrincipalInfo tmp = SystemPrincipalInfo();
942 0 : (*(v__)) = tmp;
943 0 : if ((!(Read((&((v__)->get_SystemPrincipalInfo())), msg__, iter__)))) {
944 0 : FatalError("Error deserializing Union type");
945 0 : return false;
946 : }
947 : // Sentinel = 'TSystemPrincipalInfo'
948 0 : if ((!((msg__)->ReadSentinel(iter__, 3590603679)))) {
949 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
950 0 : return false;
951 : }
952 0 : return true;
953 : }
954 : case type__::TNullPrincipalInfo:
955 : {
956 0 : NullPrincipalInfo tmp = NullPrincipalInfo();
957 0 : (*(v__)) = tmp;
958 0 : if ((!(Read((&((v__)->get_NullPrincipalInfo())), msg__, iter__)))) {
959 0 : FatalError("Error deserializing Union type");
960 0 : return false;
961 : }
962 : // Sentinel = 'TNullPrincipalInfo'
963 0 : if ((!((msg__)->ReadSentinel(iter__, 3477774965)))) {
964 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
965 0 : return false;
966 : }
967 0 : return true;
968 : }
969 : case type__::TExpandedPrincipalInfo:
970 : {
971 0 : ExpandedPrincipalInfo tmp = ExpandedPrincipalInfo();
972 0 : (*(v__)) = tmp;
973 0 : if ((!(Read((&((v__)->get_ExpandedPrincipalInfo())), msg__, iter__)))) {
974 0 : FatalError("Error deserializing Union type");
975 0 : return false;
976 : }
977 : // Sentinel = 'TExpandedPrincipalInfo'
978 0 : if ((!((msg__)->ReadSentinel(iter__, 589324917)))) {
979 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
980 0 : return false;
981 : }
982 0 : return true;
983 : }
984 : default:
985 : {
986 0 : FatalError("unknown union type");
987 0 : return false;
988 : }
989 : }
990 : }
991 :
992 0 : auto PFTPChannelParent::Write(
993 : const OptionalPrincipalInfo& v__,
994 : Message* msg__) -> void
995 : {
996 : typedef OptionalPrincipalInfo type__;
997 0 : Write(int((v__).type()), msg__);
998 : // Sentinel = 'OptionalPrincipalInfo'
999 0 : (msg__)->WriteSentinel(3041452007);
1000 :
1001 0 : switch ((v__).type()) {
1002 : case type__::Tvoid_t:
1003 : {
1004 0 : Write((v__).get_void_t(), msg__);
1005 : // Sentinel = 'Tvoid_t'
1006 0 : (msg__)->WriteSentinel(3041273328);
1007 0 : return;
1008 : }
1009 : case type__::TPrincipalInfo:
1010 : {
1011 0 : Write((v__).get_PrincipalInfo(), msg__);
1012 : // Sentinel = 'TPrincipalInfo'
1013 0 : (msg__)->WriteSentinel(1396743580);
1014 0 : return;
1015 : }
1016 : default:
1017 : {
1018 0 : FatalError("unknown union type");
1019 0 : return;
1020 : }
1021 : }
1022 : }
1023 :
1024 0 : auto PFTPChannelParent::Read(
1025 : OptionalPrincipalInfo* v__,
1026 : const Message* msg__,
1027 : PickleIterator* iter__) -> bool
1028 : {
1029 : typedef OptionalPrincipalInfo type__;
1030 : int type;
1031 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1032 0 : mozilla::ipc::UnionTypeReadError("OptionalPrincipalInfo");
1033 0 : return false;
1034 : }
1035 : // Sentinel = 'OptionalPrincipalInfo'
1036 0 : if ((!((msg__)->ReadSentinel(iter__, 3041452007)))) {
1037 0 : mozilla::ipc::SentinelReadError("OptionalPrincipalInfo");
1038 0 : return false;
1039 : }
1040 :
1041 0 : switch (type) {
1042 : case type__::Tvoid_t:
1043 : {
1044 : void_t tmp = void_t();
1045 0 : (*(v__)) = tmp;
1046 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
1047 0 : FatalError("Error deserializing Union type");
1048 0 : return false;
1049 : }
1050 : // Sentinel = 'Tvoid_t'
1051 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
1052 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1053 0 : return false;
1054 : }
1055 0 : return true;
1056 : }
1057 : case type__::TPrincipalInfo:
1058 : {
1059 0 : PrincipalInfo tmp = PrincipalInfo();
1060 0 : (*(v__)) = tmp;
1061 0 : if ((!(Read((&((v__)->get_PrincipalInfo())), msg__, iter__)))) {
1062 0 : FatalError("Error deserializing Union type");
1063 0 : return false;
1064 : }
1065 : // Sentinel = 'TPrincipalInfo'
1066 0 : if ((!((msg__)->ReadSentinel(iter__, 1396743580)))) {
1067 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1068 0 : return false;
1069 : }
1070 0 : return true;
1071 : }
1072 : default:
1073 : {
1074 0 : FatalError("unknown union type");
1075 0 : return false;
1076 : }
1077 : }
1078 : }
1079 :
1080 0 : auto PFTPChannelParent::Write(
1081 : const ContentPrincipalInfoOriginNoSuffix& v__,
1082 : Message* msg__) -> void
1083 : {
1084 : typedef ContentPrincipalInfoOriginNoSuffix type__;
1085 0 : Write(int((v__).type()), msg__);
1086 : // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
1087 0 : (msg__)->WriteSentinel(2442066713);
1088 :
1089 0 : switch ((v__).type()) {
1090 : case type__::TnsCString:
1091 : {
1092 0 : Write((v__).get_nsCString(), msg__);
1093 : // Sentinel = 'TnsCString'
1094 0 : (msg__)->WriteSentinel(2427411293);
1095 0 : return;
1096 : }
1097 : case type__::Tvoid_t:
1098 : {
1099 0 : Write((v__).get_void_t(), msg__);
1100 : // Sentinel = 'Tvoid_t'
1101 0 : (msg__)->WriteSentinel(3041273328);
1102 0 : return;
1103 : }
1104 : default:
1105 : {
1106 0 : FatalError("unknown union type");
1107 0 : return;
1108 : }
1109 : }
1110 : }
1111 :
1112 0 : auto PFTPChannelParent::Read(
1113 : ContentPrincipalInfoOriginNoSuffix* v__,
1114 : const Message* msg__,
1115 : PickleIterator* iter__) -> bool
1116 : {
1117 : typedef ContentPrincipalInfoOriginNoSuffix type__;
1118 : int type;
1119 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1120 0 : mozilla::ipc::UnionTypeReadError("ContentPrincipalInfoOriginNoSuffix");
1121 0 : return false;
1122 : }
1123 : // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
1124 0 : if ((!((msg__)->ReadSentinel(iter__, 2442066713)))) {
1125 0 : mozilla::ipc::SentinelReadError("ContentPrincipalInfoOriginNoSuffix");
1126 0 : return false;
1127 : }
1128 :
1129 0 : switch (type) {
1130 : case type__::TnsCString:
1131 : {
1132 0 : nsCString tmp = nsCString();
1133 0 : (*(v__)) = tmp;
1134 0 : if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
1135 0 : FatalError("Error deserializing Union type");
1136 0 : return false;
1137 : }
1138 : // Sentinel = 'TnsCString'
1139 0 : if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
1140 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1141 0 : return false;
1142 : }
1143 0 : return true;
1144 : }
1145 : case type__::Tvoid_t:
1146 : {
1147 : void_t tmp = void_t();
1148 0 : (*(v__)) = tmp;
1149 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
1150 0 : FatalError("Error deserializing Union type");
1151 0 : return false;
1152 : }
1153 : // Sentinel = 'Tvoid_t'
1154 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
1155 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1156 0 : return false;
1157 : }
1158 0 : return true;
1159 : }
1160 : default:
1161 : {
1162 0 : FatalError("unknown union type");
1163 0 : return false;
1164 : }
1165 : }
1166 : }
1167 :
1168 0 : auto PFTPChannelParent::Write(
1169 : const StandardURLParams& v__,
1170 : Message* msg__) -> void
1171 : {
1172 0 : Write((v__).urlType(), msg__);
1173 : // Sentinel = 'urlType'
1174 0 : (msg__)->WriteSentinel(4149428228);
1175 0 : Write((v__).port(), msg__);
1176 : // Sentinel = 'port'
1177 0 : (msg__)->WriteSentinel(3633211549);
1178 0 : Write((v__).defaultPort(), msg__);
1179 : // Sentinel = 'defaultPort'
1180 0 : (msg__)->WriteSentinel(599318897);
1181 0 : Write((v__).spec(), msg__);
1182 : // Sentinel = 'spec'
1183 0 : (msg__)->WriteSentinel(1630740541);
1184 0 : Write((v__).scheme(), msg__);
1185 : // Sentinel = 'scheme'
1186 0 : (msg__)->WriteSentinel(3619238715);
1187 0 : Write((v__).authority(), msg__);
1188 : // Sentinel = 'authority'
1189 0 : (msg__)->WriteSentinel(1669684878);
1190 0 : Write((v__).username(), msg__);
1191 : // Sentinel = 'username'
1192 0 : (msg__)->WriteSentinel(689225024);
1193 0 : Write((v__).password(), msg__);
1194 : // Sentinel = 'password'
1195 0 : (msg__)->WriteSentinel(2527534683);
1196 0 : Write((v__).host(), msg__);
1197 : // Sentinel = 'host'
1198 0 : (msg__)->WriteSentinel(4070301394);
1199 0 : Write((v__).path(), msg__);
1200 : // Sentinel = 'path'
1201 0 : (msg__)->WriteSentinel(913629401);
1202 0 : Write((v__).filePath(), msg__);
1203 : // Sentinel = 'filePath'
1204 0 : (msg__)->WriteSentinel(4122896455);
1205 0 : Write((v__).directory(), msg__);
1206 : // Sentinel = 'directory'
1207 0 : (msg__)->WriteSentinel(1201172472);
1208 0 : Write((v__).baseName(), msg__);
1209 : // Sentinel = 'baseName'
1210 0 : (msg__)->WriteSentinel(2448877418);
1211 0 : Write((v__).extension(), msg__);
1212 : // Sentinel = 'extension'
1213 0 : (msg__)->WriteSentinel(3211853542);
1214 0 : Write((v__).query(), msg__);
1215 : // Sentinel = 'query'
1216 0 : (msg__)->WriteSentinel(4249802777);
1217 0 : Write((v__).ref(), msg__);
1218 : // Sentinel = 'ref'
1219 0 : (msg__)->WriteSentinel(2626476732);
1220 0 : Write((v__).originCharset(), msg__);
1221 : // Sentinel = 'originCharset'
1222 0 : (msg__)->WriteSentinel(1320725495);
1223 0 : Write((v__).isMutable(), msg__);
1224 : // Sentinel = 'isMutable'
1225 0 : (msg__)->WriteSentinel(3552466783);
1226 0 : Write((v__).supportsFileURL(), msg__);
1227 : // Sentinel = 'supportsFileURL'
1228 0 : (msg__)->WriteSentinel(1871785710);
1229 0 : }
1230 :
1231 0 : auto PFTPChannelParent::Read(
1232 : StandardURLParams* v__,
1233 : const Message* msg__,
1234 : PickleIterator* iter__) -> bool
1235 : {
1236 0 : if ((!(Read((&((v__)->urlType())), msg__, iter__)))) {
1237 0 : FatalError("Error deserializing 'urlType' (uint32_t) member of 'StandardURLParams'");
1238 0 : return false;
1239 : }
1240 : // Sentinel = 'urlType'
1241 0 : if ((!((msg__)->ReadSentinel(iter__, 4149428228)))) {
1242 0 : mozilla::ipc::SentinelReadError("Error deserializing 'urlType' (uint32_t) member of 'StandardURLParams'");
1243 0 : return false;
1244 : }
1245 0 : if ((!(Read((&((v__)->port())), msg__, iter__)))) {
1246 0 : FatalError("Error deserializing 'port' (int32_t) member of 'StandardURLParams'");
1247 0 : return false;
1248 : }
1249 : // Sentinel = 'port'
1250 0 : if ((!((msg__)->ReadSentinel(iter__, 3633211549)))) {
1251 0 : mozilla::ipc::SentinelReadError("Error deserializing 'port' (int32_t) member of 'StandardURLParams'");
1252 0 : return false;
1253 : }
1254 0 : if ((!(Read((&((v__)->defaultPort())), msg__, iter__)))) {
1255 0 : FatalError("Error deserializing 'defaultPort' (int32_t) member of 'StandardURLParams'");
1256 0 : return false;
1257 : }
1258 : // Sentinel = 'defaultPort'
1259 0 : if ((!((msg__)->ReadSentinel(iter__, 599318897)))) {
1260 0 : mozilla::ipc::SentinelReadError("Error deserializing 'defaultPort' (int32_t) member of 'StandardURLParams'");
1261 0 : return false;
1262 : }
1263 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
1264 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'StandardURLParams'");
1265 0 : return false;
1266 : }
1267 : // Sentinel = 'spec'
1268 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
1269 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'StandardURLParams'");
1270 0 : return false;
1271 : }
1272 0 : if ((!(Read((&((v__)->scheme())), msg__, iter__)))) {
1273 0 : FatalError("Error deserializing 'scheme' (StandardURLSegment) member of 'StandardURLParams'");
1274 0 : return false;
1275 : }
1276 : // Sentinel = 'scheme'
1277 0 : if ((!((msg__)->ReadSentinel(iter__, 3619238715)))) {
1278 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scheme' (StandardURLSegment) member of 'StandardURLParams'");
1279 0 : return false;
1280 : }
1281 0 : if ((!(Read((&((v__)->authority())), msg__, iter__)))) {
1282 0 : FatalError("Error deserializing 'authority' (StandardURLSegment) member of 'StandardURLParams'");
1283 0 : return false;
1284 : }
1285 : // Sentinel = 'authority'
1286 0 : if ((!((msg__)->ReadSentinel(iter__, 1669684878)))) {
1287 0 : mozilla::ipc::SentinelReadError("Error deserializing 'authority' (StandardURLSegment) member of 'StandardURLParams'");
1288 0 : return false;
1289 : }
1290 0 : if ((!(Read((&((v__)->username())), msg__, iter__)))) {
1291 0 : FatalError("Error deserializing 'username' (StandardURLSegment) member of 'StandardURLParams'");
1292 0 : return false;
1293 : }
1294 : // Sentinel = 'username'
1295 0 : if ((!((msg__)->ReadSentinel(iter__, 689225024)))) {
1296 0 : mozilla::ipc::SentinelReadError("Error deserializing 'username' (StandardURLSegment) member of 'StandardURLParams'");
1297 0 : return false;
1298 : }
1299 0 : if ((!(Read((&((v__)->password())), msg__, iter__)))) {
1300 0 : FatalError("Error deserializing 'password' (StandardURLSegment) member of 'StandardURLParams'");
1301 0 : return false;
1302 : }
1303 : // Sentinel = 'password'
1304 0 : if ((!((msg__)->ReadSentinel(iter__, 2527534683)))) {
1305 0 : mozilla::ipc::SentinelReadError("Error deserializing 'password' (StandardURLSegment) member of 'StandardURLParams'");
1306 0 : return false;
1307 : }
1308 0 : if ((!(Read((&((v__)->host())), msg__, iter__)))) {
1309 0 : FatalError("Error deserializing 'host' (StandardURLSegment) member of 'StandardURLParams'");
1310 0 : return false;
1311 : }
1312 : // Sentinel = 'host'
1313 0 : if ((!((msg__)->ReadSentinel(iter__, 4070301394)))) {
1314 0 : mozilla::ipc::SentinelReadError("Error deserializing 'host' (StandardURLSegment) member of 'StandardURLParams'");
1315 0 : return false;
1316 : }
1317 0 : if ((!(Read((&((v__)->path())), msg__, iter__)))) {
1318 0 : FatalError("Error deserializing 'path' (StandardURLSegment) member of 'StandardURLParams'");
1319 0 : return false;
1320 : }
1321 : // Sentinel = 'path'
1322 0 : if ((!((msg__)->ReadSentinel(iter__, 913629401)))) {
1323 0 : mozilla::ipc::SentinelReadError("Error deserializing 'path' (StandardURLSegment) member of 'StandardURLParams'");
1324 0 : return false;
1325 : }
1326 0 : if ((!(Read((&((v__)->filePath())), msg__, iter__)))) {
1327 0 : FatalError("Error deserializing 'filePath' (StandardURLSegment) member of 'StandardURLParams'");
1328 0 : return false;
1329 : }
1330 : // Sentinel = 'filePath'
1331 0 : if ((!((msg__)->ReadSentinel(iter__, 4122896455)))) {
1332 0 : mozilla::ipc::SentinelReadError("Error deserializing 'filePath' (StandardURLSegment) member of 'StandardURLParams'");
1333 0 : return false;
1334 : }
1335 0 : if ((!(Read((&((v__)->directory())), msg__, iter__)))) {
1336 0 : FatalError("Error deserializing 'directory' (StandardURLSegment) member of 'StandardURLParams'");
1337 0 : return false;
1338 : }
1339 : // Sentinel = 'directory'
1340 0 : if ((!((msg__)->ReadSentinel(iter__, 1201172472)))) {
1341 0 : mozilla::ipc::SentinelReadError("Error deserializing 'directory' (StandardURLSegment) member of 'StandardURLParams'");
1342 0 : return false;
1343 : }
1344 0 : if ((!(Read((&((v__)->baseName())), msg__, iter__)))) {
1345 0 : FatalError("Error deserializing 'baseName' (StandardURLSegment) member of 'StandardURLParams'");
1346 0 : return false;
1347 : }
1348 : // Sentinel = 'baseName'
1349 0 : if ((!((msg__)->ReadSentinel(iter__, 2448877418)))) {
1350 0 : mozilla::ipc::SentinelReadError("Error deserializing 'baseName' (StandardURLSegment) member of 'StandardURLParams'");
1351 0 : return false;
1352 : }
1353 0 : if ((!(Read((&((v__)->extension())), msg__, iter__)))) {
1354 0 : FatalError("Error deserializing 'extension' (StandardURLSegment) member of 'StandardURLParams'");
1355 0 : return false;
1356 : }
1357 : // Sentinel = 'extension'
1358 0 : if ((!((msg__)->ReadSentinel(iter__, 3211853542)))) {
1359 0 : mozilla::ipc::SentinelReadError("Error deserializing 'extension' (StandardURLSegment) member of 'StandardURLParams'");
1360 0 : return false;
1361 : }
1362 0 : if ((!(Read((&((v__)->query())), msg__, iter__)))) {
1363 0 : FatalError("Error deserializing 'query' (StandardURLSegment) member of 'StandardURLParams'");
1364 0 : return false;
1365 : }
1366 : // Sentinel = 'query'
1367 0 : if ((!((msg__)->ReadSentinel(iter__, 4249802777)))) {
1368 0 : mozilla::ipc::SentinelReadError("Error deserializing 'query' (StandardURLSegment) member of 'StandardURLParams'");
1369 0 : return false;
1370 : }
1371 0 : if ((!(Read((&((v__)->ref())), msg__, iter__)))) {
1372 0 : FatalError("Error deserializing 'ref' (StandardURLSegment) member of 'StandardURLParams'");
1373 0 : return false;
1374 : }
1375 : // Sentinel = 'ref'
1376 0 : if ((!((msg__)->ReadSentinel(iter__, 2626476732)))) {
1377 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ref' (StandardURLSegment) member of 'StandardURLParams'");
1378 0 : return false;
1379 : }
1380 0 : if ((!(Read((&((v__)->originCharset())), msg__, iter__)))) {
1381 0 : FatalError("Error deserializing 'originCharset' (nsCString) member of 'StandardURLParams'");
1382 0 : return false;
1383 : }
1384 : // Sentinel = 'originCharset'
1385 0 : if ((!((msg__)->ReadSentinel(iter__, 1320725495)))) {
1386 0 : mozilla::ipc::SentinelReadError("Error deserializing 'originCharset' (nsCString) member of 'StandardURLParams'");
1387 0 : return false;
1388 : }
1389 0 : if ((!(Read((&((v__)->isMutable())), msg__, iter__)))) {
1390 0 : FatalError("Error deserializing 'isMutable' (bool) member of 'StandardURLParams'");
1391 0 : return false;
1392 : }
1393 : // Sentinel = 'isMutable'
1394 0 : if ((!((msg__)->ReadSentinel(iter__, 3552466783)))) {
1395 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isMutable' (bool) member of 'StandardURLParams'");
1396 0 : return false;
1397 : }
1398 0 : if ((!(Read((&((v__)->supportsFileURL())), msg__, iter__)))) {
1399 0 : FatalError("Error deserializing 'supportsFileURL' (bool) member of 'StandardURLParams'");
1400 0 : return false;
1401 : }
1402 : // Sentinel = 'supportsFileURL'
1403 0 : if ((!((msg__)->ReadSentinel(iter__, 1871785710)))) {
1404 0 : mozilla::ipc::SentinelReadError("Error deserializing 'supportsFileURL' (bool) member of 'StandardURLParams'");
1405 0 : return false;
1406 : }
1407 0 : return true;
1408 : }
1409 :
1410 0 : auto PFTPChannelParent::Write(
1411 : const ContentPrincipalInfo& v__,
1412 : Message* msg__) -> void
1413 : {
1414 0 : Write((v__).attrs(), msg__);
1415 : // Sentinel = 'attrs'
1416 0 : (msg__)->WriteSentinel(3014987797);
1417 0 : Write((v__).originNoSuffix(), msg__);
1418 : // Sentinel = 'originNoSuffix'
1419 0 : (msg__)->WriteSentinel(2833071422);
1420 0 : Write((v__).spec(), msg__);
1421 : // Sentinel = 'spec'
1422 0 : (msg__)->WriteSentinel(1630740541);
1423 0 : }
1424 :
1425 0 : auto PFTPChannelParent::Read(
1426 : ContentPrincipalInfo* v__,
1427 : const Message* msg__,
1428 : PickleIterator* iter__) -> bool
1429 : {
1430 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
1431 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
1432 0 : return false;
1433 : }
1434 : // Sentinel = 'attrs'
1435 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
1436 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
1437 0 : return false;
1438 : }
1439 0 : if ((!(Read((&((v__)->originNoSuffix())), msg__, iter__)))) {
1440 0 : FatalError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
1441 0 : return false;
1442 : }
1443 : // Sentinel = 'originNoSuffix'
1444 0 : if ((!((msg__)->ReadSentinel(iter__, 2833071422)))) {
1445 0 : mozilla::ipc::SentinelReadError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
1446 0 : return false;
1447 : }
1448 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
1449 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
1450 0 : return false;
1451 : }
1452 : // Sentinel = 'spec'
1453 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
1454 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
1455 0 : return false;
1456 : }
1457 0 : return true;
1458 : }
1459 :
1460 0 : auto PFTPChannelParent::Write(
1461 : const JSURIParams& v__,
1462 : Message* msg__) -> void
1463 : {
1464 0 : Write((v__).simpleParams(), msg__);
1465 : // Sentinel = 'simpleParams'
1466 0 : (msg__)->WriteSentinel(3404291700);
1467 0 : Write((v__).baseURI(), msg__);
1468 : // Sentinel = 'baseURI'
1469 0 : (msg__)->WriteSentinel(1836705256);
1470 0 : }
1471 :
1472 0 : auto PFTPChannelParent::Read(
1473 : JSURIParams* v__,
1474 : const Message* msg__,
1475 : PickleIterator* iter__) -> bool
1476 : {
1477 0 : if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
1478 0 : FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'JSURIParams'");
1479 0 : return false;
1480 : }
1481 : // Sentinel = 'simpleParams'
1482 0 : if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
1483 0 : mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'JSURIParams'");
1484 0 : return false;
1485 : }
1486 0 : if ((!(Read((&((v__)->baseURI())), msg__, iter__)))) {
1487 0 : FatalError("Error deserializing 'baseURI' (OptionalURIParams) member of 'JSURIParams'");
1488 0 : return false;
1489 : }
1490 : // Sentinel = 'baseURI'
1491 0 : if ((!((msg__)->ReadSentinel(iter__, 1836705256)))) {
1492 0 : mozilla::ipc::SentinelReadError("Error deserializing 'baseURI' (OptionalURIParams) member of 'JSURIParams'");
1493 0 : return false;
1494 : }
1495 0 : return true;
1496 : }
1497 :
1498 0 : auto PFTPChannelParent::Write(
1499 : const NullPrincipalInfo& v__,
1500 : Message* msg__) -> void
1501 : {
1502 0 : Write((v__).attrs(), msg__);
1503 : // Sentinel = 'attrs'
1504 0 : (msg__)->WriteSentinel(3014987797);
1505 0 : Write((v__).spec(), msg__);
1506 : // Sentinel = 'spec'
1507 0 : (msg__)->WriteSentinel(1630740541);
1508 0 : }
1509 :
1510 0 : auto PFTPChannelParent::Read(
1511 : NullPrincipalInfo* v__,
1512 : const Message* msg__,
1513 : PickleIterator* iter__) -> bool
1514 : {
1515 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
1516 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
1517 0 : return false;
1518 : }
1519 : // Sentinel = 'attrs'
1520 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
1521 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
1522 0 : return false;
1523 : }
1524 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
1525 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
1526 0 : return false;
1527 : }
1528 : // Sentinel = 'spec'
1529 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
1530 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
1531 0 : return false;
1532 : }
1533 0 : return true;
1534 : }
1535 :
1536 0 : auto PFTPChannelParent::Write(
1537 : const StandardURLSegment& v__,
1538 : Message* msg__) -> void
1539 : {
1540 0 : Write((v__).position(), msg__);
1541 : // Sentinel = 'position'
1542 0 : (msg__)->WriteSentinel(50847225);
1543 0 : Write((v__).length(), msg__);
1544 : // Sentinel = 'length'
1545 0 : (msg__)->WriteSentinel(1726618354);
1546 0 : }
1547 :
1548 0 : auto PFTPChannelParent::Read(
1549 : StandardURLSegment* v__,
1550 : const Message* msg__,
1551 : PickleIterator* iter__) -> bool
1552 : {
1553 0 : if ((!(Read((&((v__)->position())), msg__, iter__)))) {
1554 0 : FatalError("Error deserializing 'position' (uint32_t) member of 'StandardURLSegment'");
1555 0 : return false;
1556 : }
1557 : // Sentinel = 'position'
1558 0 : if ((!((msg__)->ReadSentinel(iter__, 50847225)))) {
1559 0 : mozilla::ipc::SentinelReadError("Error deserializing 'position' (uint32_t) member of 'StandardURLSegment'");
1560 0 : return false;
1561 : }
1562 0 : if ((!(Read((&((v__)->length())), msg__, iter__)))) {
1563 0 : FatalError("Error deserializing 'length' (int32_t) member of 'StandardURLSegment'");
1564 0 : return false;
1565 : }
1566 : // Sentinel = 'length'
1567 0 : if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
1568 0 : mozilla::ipc::SentinelReadError("Error deserializing 'length' (int32_t) member of 'StandardURLSegment'");
1569 0 : return false;
1570 : }
1571 0 : return true;
1572 : }
1573 :
1574 0 : auto PFTPChannelParent::Write(
1575 : const PFTPChannelParent* v__,
1576 : Message* msg__,
1577 : bool nullable__) -> void
1578 : {
1579 : int32_t id;
1580 0 : if ((!(v__))) {
1581 0 : if ((!(nullable__))) {
1582 0 : FatalError("NULL actor value passed to non-nullable param");
1583 : }
1584 0 : id = 0;
1585 : }
1586 : else {
1587 0 : id = (v__)->Id();
1588 0 : if ((1) == (id)) {
1589 0 : FatalError("actor has been |delete|d");
1590 : }
1591 : }
1592 :
1593 0 : Write(id, msg__);
1594 0 : }
1595 :
1596 0 : auto PFTPChannelParent::Read(
1597 : PFTPChannelParent** v__,
1598 : const Message* msg__,
1599 : PickleIterator* iter__,
1600 : bool nullable__) -> bool
1601 : {
1602 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PFTPChannel", PFTPChannelMsgStart);
1603 0 : if ((actor).isNothing()) {
1604 0 : return false;
1605 : }
1606 :
1607 0 : (*(v__)) = static_cast<PFTPChannelParent*>((actor).value());
1608 0 : return true;
1609 : }
1610 :
1611 0 : auto PFTPChannelParent::Write(
1612 : const HostObjectURIParams& v__,
1613 : Message* msg__) -> void
1614 : {
1615 0 : Write((v__).simpleParams(), msg__);
1616 : // Sentinel = 'simpleParams'
1617 0 : (msg__)->WriteSentinel(3404291700);
1618 0 : Write((v__).principal(), msg__);
1619 : // Sentinel = 'principal'
1620 0 : (msg__)->WriteSentinel(732240927);
1621 0 : }
1622 :
1623 0 : auto PFTPChannelParent::Read(
1624 : HostObjectURIParams* v__,
1625 : const Message* msg__,
1626 : PickleIterator* iter__) -> bool
1627 : {
1628 0 : if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
1629 0 : FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'HostObjectURIParams'");
1630 0 : return false;
1631 : }
1632 : // Sentinel = 'simpleParams'
1633 0 : if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
1634 0 : mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'HostObjectURIParams'");
1635 0 : return false;
1636 : }
1637 0 : if ((!(Read((&((v__)->principal())), msg__, iter__)))) {
1638 0 : FatalError("Error deserializing 'principal' (OptionalPrincipalInfo) member of 'HostObjectURIParams'");
1639 0 : return false;
1640 : }
1641 : // Sentinel = 'principal'
1642 0 : if ((!((msg__)->ReadSentinel(iter__, 732240927)))) {
1643 0 : mozilla::ipc::SentinelReadError("Error deserializing 'principal' (OptionalPrincipalInfo) member of 'HostObjectURIParams'");
1644 0 : return false;
1645 : }
1646 0 : return true;
1647 : }
1648 :
1649 0 : auto PFTPChannelParent::Write(
1650 : const URIParams& v__,
1651 : Message* msg__) -> void
1652 : {
1653 : typedef URIParams type__;
1654 0 : Write(int((v__).type()), msg__);
1655 : // Sentinel = 'URIParams'
1656 0 : (msg__)->WriteSentinel(1039516337);
1657 :
1658 0 : switch ((v__).type()) {
1659 : case type__::TSimpleURIParams:
1660 : {
1661 0 : Write((v__).get_SimpleURIParams(), msg__);
1662 : // Sentinel = 'TSimpleURIParams'
1663 0 : (msg__)->WriteSentinel(4028607586);
1664 0 : return;
1665 : }
1666 : case type__::TStandardURLParams:
1667 : {
1668 0 : Write((v__).get_StandardURLParams(), msg__);
1669 : // Sentinel = 'TStandardURLParams'
1670 0 : (msg__)->WriteSentinel(248174578);
1671 0 : return;
1672 : }
1673 : case type__::TJARURIParams:
1674 : {
1675 0 : Write((v__).get_JARURIParams(), msg__);
1676 : // Sentinel = 'TJARURIParams'
1677 0 : (msg__)->WriteSentinel(3404434792);
1678 0 : return;
1679 : }
1680 : case type__::TIconURIParams:
1681 : {
1682 0 : Write((v__).get_IconURIParams(), msg__);
1683 : // Sentinel = 'TIconURIParams'
1684 0 : (msg__)->WriteSentinel(1824279023);
1685 0 : return;
1686 : }
1687 : case type__::TNullPrincipalURIParams:
1688 : {
1689 0 : Write((v__).get_NullPrincipalURIParams(), msg__);
1690 : // Sentinel = 'TNullPrincipalURIParams'
1691 0 : (msg__)->WriteSentinel(216801182);
1692 0 : return;
1693 : }
1694 : case type__::TJSURIParams:
1695 : {
1696 0 : Write((v__).get_JSURIParams(), msg__);
1697 : // Sentinel = 'TJSURIParams'
1698 0 : (msg__)->WriteSentinel(32222119);
1699 0 : return;
1700 : }
1701 : case type__::TSimpleNestedURIParams:
1702 : {
1703 0 : Write((v__).get_SimpleNestedURIParams(), msg__);
1704 : // Sentinel = 'TSimpleNestedURIParams'
1705 0 : (msg__)->WriteSentinel(3192238307);
1706 0 : return;
1707 : }
1708 : case type__::THostObjectURIParams:
1709 : {
1710 0 : Write((v__).get_HostObjectURIParams(), msg__);
1711 : // Sentinel = 'THostObjectURIParams'
1712 0 : (msg__)->WriteSentinel(1307971301);
1713 0 : return;
1714 : }
1715 : default:
1716 : {
1717 0 : FatalError("unknown union type");
1718 0 : return;
1719 : }
1720 : }
1721 : }
1722 :
1723 0 : auto PFTPChannelParent::Read(
1724 : URIParams* v__,
1725 : const Message* msg__,
1726 : PickleIterator* iter__) -> bool
1727 : {
1728 : typedef URIParams type__;
1729 : int type;
1730 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1731 0 : mozilla::ipc::UnionTypeReadError("URIParams");
1732 0 : return false;
1733 : }
1734 : // Sentinel = 'URIParams'
1735 0 : if ((!((msg__)->ReadSentinel(iter__, 1039516337)))) {
1736 0 : mozilla::ipc::SentinelReadError("URIParams");
1737 0 : return false;
1738 : }
1739 :
1740 0 : switch (type) {
1741 : case type__::TSimpleURIParams:
1742 : {
1743 0 : SimpleURIParams tmp = SimpleURIParams();
1744 0 : (*(v__)) = tmp;
1745 0 : if ((!(Read((&((v__)->get_SimpleURIParams())), msg__, iter__)))) {
1746 0 : FatalError("Error deserializing Union type");
1747 0 : return false;
1748 : }
1749 : // Sentinel = 'TSimpleURIParams'
1750 0 : if ((!((msg__)->ReadSentinel(iter__, 4028607586)))) {
1751 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1752 0 : return false;
1753 : }
1754 0 : return true;
1755 : }
1756 : case type__::TStandardURLParams:
1757 : {
1758 0 : StandardURLParams tmp = StandardURLParams();
1759 0 : (*(v__)) = tmp;
1760 0 : if ((!(Read((&((v__)->get_StandardURLParams())), msg__, iter__)))) {
1761 0 : FatalError("Error deserializing Union type");
1762 0 : return false;
1763 : }
1764 : // Sentinel = 'TStandardURLParams'
1765 0 : if ((!((msg__)->ReadSentinel(iter__, 248174578)))) {
1766 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1767 0 : return false;
1768 : }
1769 0 : return true;
1770 : }
1771 : case type__::TJARURIParams:
1772 : {
1773 0 : JARURIParams tmp = JARURIParams();
1774 0 : (*(v__)) = tmp;
1775 0 : if ((!(Read((&((v__)->get_JARURIParams())), msg__, iter__)))) {
1776 0 : FatalError("Error deserializing Union type");
1777 0 : return false;
1778 : }
1779 : // Sentinel = 'TJARURIParams'
1780 0 : if ((!((msg__)->ReadSentinel(iter__, 3404434792)))) {
1781 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1782 0 : return false;
1783 : }
1784 0 : return true;
1785 : }
1786 : case type__::TIconURIParams:
1787 : {
1788 0 : IconURIParams tmp = IconURIParams();
1789 0 : (*(v__)) = tmp;
1790 0 : if ((!(Read((&((v__)->get_IconURIParams())), msg__, iter__)))) {
1791 0 : FatalError("Error deserializing Union type");
1792 0 : return false;
1793 : }
1794 : // Sentinel = 'TIconURIParams'
1795 0 : if ((!((msg__)->ReadSentinel(iter__, 1824279023)))) {
1796 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1797 0 : return false;
1798 : }
1799 0 : return true;
1800 : }
1801 : case type__::TNullPrincipalURIParams:
1802 : {
1803 0 : NullPrincipalURIParams tmp = NullPrincipalURIParams();
1804 0 : (*(v__)) = tmp;
1805 0 : if ((!(Read((&((v__)->get_NullPrincipalURIParams())), msg__, iter__)))) {
1806 0 : FatalError("Error deserializing Union type");
1807 0 : return false;
1808 : }
1809 : // Sentinel = 'TNullPrincipalURIParams'
1810 0 : if ((!((msg__)->ReadSentinel(iter__, 216801182)))) {
1811 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1812 0 : return false;
1813 : }
1814 0 : return true;
1815 : }
1816 : case type__::TJSURIParams:
1817 : {
1818 0 : JSURIParams tmp = JSURIParams();
1819 0 : (*(v__)) = tmp;
1820 0 : if ((!(Read((&((v__)->get_JSURIParams())), msg__, iter__)))) {
1821 0 : FatalError("Error deserializing Union type");
1822 0 : return false;
1823 : }
1824 : // Sentinel = 'TJSURIParams'
1825 0 : if ((!((msg__)->ReadSentinel(iter__, 32222119)))) {
1826 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1827 0 : return false;
1828 : }
1829 0 : return true;
1830 : }
1831 : case type__::TSimpleNestedURIParams:
1832 : {
1833 0 : SimpleNestedURIParams tmp = SimpleNestedURIParams();
1834 0 : (*(v__)) = tmp;
1835 0 : if ((!(Read((&((v__)->get_SimpleNestedURIParams())), msg__, iter__)))) {
1836 0 : FatalError("Error deserializing Union type");
1837 0 : return false;
1838 : }
1839 : // Sentinel = 'TSimpleNestedURIParams'
1840 0 : if ((!((msg__)->ReadSentinel(iter__, 3192238307)))) {
1841 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1842 0 : return false;
1843 : }
1844 0 : return true;
1845 : }
1846 : case type__::THostObjectURIParams:
1847 : {
1848 0 : HostObjectURIParams tmp = HostObjectURIParams();
1849 0 : (*(v__)) = tmp;
1850 0 : if ((!(Read((&((v__)->get_HostObjectURIParams())), msg__, iter__)))) {
1851 0 : FatalError("Error deserializing Union type");
1852 0 : return false;
1853 : }
1854 : // Sentinel = 'THostObjectURIParams'
1855 0 : if ((!((msg__)->ReadSentinel(iter__, 1307971301)))) {
1856 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1857 0 : return false;
1858 : }
1859 0 : return true;
1860 : }
1861 : default:
1862 : {
1863 0 : FatalError("unknown union type");
1864 0 : return false;
1865 : }
1866 : }
1867 : }
1868 :
1869 0 : auto PFTPChannelParent::Write(
1870 : const SimpleURIParams& v__,
1871 : Message* msg__) -> void
1872 : {
1873 0 : Write((v__).scheme(), msg__);
1874 : // Sentinel = 'scheme'
1875 0 : (msg__)->WriteSentinel(3619238715);
1876 0 : Write((v__).path(), msg__);
1877 : // Sentinel = 'path'
1878 0 : (msg__)->WriteSentinel(913629401);
1879 0 : Write((v__).ref(), msg__);
1880 : // Sentinel = 'ref'
1881 0 : (msg__)->WriteSentinel(2626476732);
1882 0 : Write((v__).query(), msg__);
1883 : // Sentinel = 'query'
1884 0 : (msg__)->WriteSentinel(4249802777);
1885 0 : Write((v__).isMutable(), msg__);
1886 : // Sentinel = 'isMutable'
1887 0 : (msg__)->WriteSentinel(3552466783);
1888 0 : }
1889 :
1890 0 : auto PFTPChannelParent::Read(
1891 : SimpleURIParams* v__,
1892 : const Message* msg__,
1893 : PickleIterator* iter__) -> bool
1894 : {
1895 0 : if ((!(Read((&((v__)->scheme())), msg__, iter__)))) {
1896 0 : FatalError("Error deserializing 'scheme' (nsCString) member of 'SimpleURIParams'");
1897 0 : return false;
1898 : }
1899 : // Sentinel = 'scheme'
1900 0 : if ((!((msg__)->ReadSentinel(iter__, 3619238715)))) {
1901 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scheme' (nsCString) member of 'SimpleURIParams'");
1902 0 : return false;
1903 : }
1904 0 : if ((!(Read((&((v__)->path())), msg__, iter__)))) {
1905 0 : FatalError("Error deserializing 'path' (nsCString) member of 'SimpleURIParams'");
1906 0 : return false;
1907 : }
1908 : // Sentinel = 'path'
1909 0 : if ((!((msg__)->ReadSentinel(iter__, 913629401)))) {
1910 0 : mozilla::ipc::SentinelReadError("Error deserializing 'path' (nsCString) member of 'SimpleURIParams'");
1911 0 : return false;
1912 : }
1913 0 : if ((!(Read((&((v__)->ref())), msg__, iter__)))) {
1914 0 : FatalError("Error deserializing 'ref' (nsCString) member of 'SimpleURIParams'");
1915 0 : return false;
1916 : }
1917 : // Sentinel = 'ref'
1918 0 : if ((!((msg__)->ReadSentinel(iter__, 2626476732)))) {
1919 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ref' (nsCString) member of 'SimpleURIParams'");
1920 0 : return false;
1921 : }
1922 0 : if ((!(Read((&((v__)->query())), msg__, iter__)))) {
1923 0 : FatalError("Error deserializing 'query' (nsCString) member of 'SimpleURIParams'");
1924 0 : return false;
1925 : }
1926 : // Sentinel = 'query'
1927 0 : if ((!((msg__)->ReadSentinel(iter__, 4249802777)))) {
1928 0 : mozilla::ipc::SentinelReadError("Error deserializing 'query' (nsCString) member of 'SimpleURIParams'");
1929 0 : return false;
1930 : }
1931 0 : if ((!(Read((&((v__)->isMutable())), msg__, iter__)))) {
1932 0 : FatalError("Error deserializing 'isMutable' (bool) member of 'SimpleURIParams'");
1933 0 : return false;
1934 : }
1935 : // Sentinel = 'isMutable'
1936 0 : if ((!((msg__)->ReadSentinel(iter__, 3552466783)))) {
1937 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isMutable' (bool) member of 'SimpleURIParams'");
1938 0 : return false;
1939 : }
1940 0 : return true;
1941 : }
1942 :
1943 :
1944 :
1945 : } // namespace net
1946 : } // namespace mozilla
|