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