Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/dom/PFlyWebPublishedServerParent.h"
8 :
9 : #include "mozilla/dom/PContentParent.h"
10 : #include "mozilla/ipc/PChildToParentStreamParent.h"
11 : #include "mozilla/ipc/PParentToChildStreamParent.h"
12 : #include "mozilla/ipc/PFileDescriptorSetParent.h"
13 : #include "mozilla/net/PTransportProviderParent.h"
14 :
15 : #include "nsIFile.h"
16 : #include "GeckoProfiler.h"
17 :
18 : namespace mozilla {
19 : namespace dom {
20 :
21 :
22 0 : auto PFlyWebPublishedServerParent::Recv__delete__() -> mozilla::ipc::IPCResult
23 : {
24 0 : return IPC_OK();
25 : }
26 :
27 :
28 0 : MOZ_IMPLICIT PFlyWebPublishedServerParent::PFlyWebPublishedServerParent() :
29 : mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
30 0 : mState(PFlyWebPublishedServer::__Dead)
31 : {
32 0 : MOZ_COUNT_CTOR(PFlyWebPublishedServerParent);
33 0 : }
34 :
35 0 : PFlyWebPublishedServerParent::~PFlyWebPublishedServerParent()
36 : {
37 0 : MOZ_COUNT_DTOR(PFlyWebPublishedServerParent);
38 0 : }
39 :
40 0 : auto PFlyWebPublishedServerParent::Manager() const -> PContentParent*
41 : {
42 0 : return static_cast<PContentParent*>(IProtocol::Manager());
43 : }
44 :
45 0 : auto PFlyWebPublishedServerParent::SendServerReady(const nsresult& aStatus) -> bool
46 : {
47 0 : IPC::Message* msg__ = PFlyWebPublishedServer::Msg_ServerReady(Id());
48 :
49 0 : Write(aStatus, msg__);
50 : // Sentinel = 'aStatus'
51 0 : (msg__)->WriteSentinel(236002576);
52 :
53 :
54 :
55 :
56 0 : if (mozilla::ipc::LoggingEnabledFor("PFlyWebPublishedServerParent")) {
57 0 : mozilla::ipc::LogMessageForProtocol("PFlyWebPublishedServerParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
58 : }
59 0 : AUTO_PROFILER_LABEL("PFlyWebPublishedServer::Msg_ServerReady", OTHER);
60 0 : PFlyWebPublishedServer::Transition(PFlyWebPublishedServer::Msg_ServerReady__ID, (&(mState)));
61 :
62 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
63 0 : return sendok__;
64 : }
65 :
66 0 : auto PFlyWebPublishedServerParent::SendFetchRequest(
67 : const IPCInternalRequest& aRequest,
68 : const uint64_t& aRequestId) -> bool
69 : {
70 0 : IPC::Message* msg__ = PFlyWebPublishedServer::Msg_FetchRequest(Id());
71 :
72 0 : Write(aRequest, msg__);
73 : // Sentinel = 'aRequest'
74 0 : (msg__)->WriteSentinel(1227940332);
75 0 : Write(aRequestId, msg__);
76 : // Sentinel = 'aRequestId'
77 0 : (msg__)->WriteSentinel(3709302657);
78 :
79 :
80 :
81 :
82 0 : if (mozilla::ipc::LoggingEnabledFor("PFlyWebPublishedServerParent")) {
83 0 : mozilla::ipc::LogMessageForProtocol("PFlyWebPublishedServerParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
84 : }
85 0 : AUTO_PROFILER_LABEL("PFlyWebPublishedServer::Msg_FetchRequest", OTHER);
86 0 : PFlyWebPublishedServer::Transition(PFlyWebPublishedServer::Msg_FetchRequest__ID, (&(mState)));
87 :
88 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
89 0 : return sendok__;
90 : }
91 :
92 0 : auto PFlyWebPublishedServerParent::SendWebSocketRequest(
93 : const IPCInternalRequest& aRequest,
94 : const uint64_t& aRequestId,
95 : PTransportProviderParent* aProvider) -> bool
96 : {
97 0 : IPC::Message* msg__ = PFlyWebPublishedServer::Msg_WebSocketRequest(Id());
98 :
99 0 : Write(aRequest, msg__);
100 : // Sentinel = 'aRequest'
101 0 : (msg__)->WriteSentinel(1227940332);
102 0 : Write(aRequestId, msg__);
103 : // Sentinel = 'aRequestId'
104 0 : (msg__)->WriteSentinel(3709302657);
105 0 : Write(aProvider, msg__, false);
106 : // Sentinel = 'aProvider'
107 0 : (msg__)->WriteSentinel(4112742927);
108 :
109 :
110 :
111 :
112 0 : if (mozilla::ipc::LoggingEnabledFor("PFlyWebPublishedServerParent")) {
113 0 : mozilla::ipc::LogMessageForProtocol("PFlyWebPublishedServerParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
114 : }
115 0 : AUTO_PROFILER_LABEL("PFlyWebPublishedServer::Msg_WebSocketRequest", OTHER);
116 0 : PFlyWebPublishedServer::Transition(PFlyWebPublishedServer::Msg_WebSocketRequest__ID, (&(mState)));
117 :
118 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
119 0 : return sendok__;
120 : }
121 :
122 0 : auto PFlyWebPublishedServerParent::SendServerClose() -> bool
123 : {
124 0 : IPC::Message* msg__ = PFlyWebPublishedServer::Msg_ServerClose(Id());
125 :
126 :
127 :
128 :
129 :
130 0 : if (mozilla::ipc::LoggingEnabledFor("PFlyWebPublishedServerParent")) {
131 0 : mozilla::ipc::LogMessageForProtocol("PFlyWebPublishedServerParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
132 : }
133 0 : AUTO_PROFILER_LABEL("PFlyWebPublishedServer::Msg_ServerClose", OTHER);
134 0 : PFlyWebPublishedServer::Transition(PFlyWebPublishedServer::Msg_ServerClose__ID, (&(mState)));
135 :
136 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
137 0 : return sendok__;
138 : }
139 :
140 0 : auto PFlyWebPublishedServerParent::RemoveManagee(
141 : int32_t aProtocolId,
142 : ProtocolBase* aListener) -> void
143 : {
144 0 : FatalError("unreached");
145 0 : return;
146 : }
147 :
148 0 : auto PFlyWebPublishedServerParent::OnMessageReceived(const Message& msg__) -> PFlyWebPublishedServerParent::Result
149 : {
150 0 : switch ((msg__).type()) {
151 : case PFlyWebPublishedServer::Msg___delete____ID:
152 : {
153 0 : if (mozilla::ipc::LoggingEnabledFor("PFlyWebPublishedServerParent")) {
154 0 : mozilla::ipc::LogMessageForProtocol("PFlyWebPublishedServerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
155 : }
156 0 : AUTO_PROFILER_LABEL("PFlyWebPublishedServer::Msg___delete__", OTHER);
157 :
158 0 : PickleIterator iter__(msg__);
159 : PFlyWebPublishedServerParent* actor;
160 :
161 0 : if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
162 0 : FatalError("Error deserializing 'PFlyWebPublishedServerParent'");
163 0 : return MsgValueError;
164 : }
165 : // Sentinel = 'actor'
166 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
167 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PFlyWebPublishedServerParent'");
168 0 : return MsgValueError;
169 : }
170 0 : (msg__).EndRead(iter__, (msg__).type());
171 0 : PFlyWebPublishedServer::Transition(PFlyWebPublishedServer::Msg___delete____ID, (&(mState)));
172 0 : if ((!(Recv__delete__()))) {
173 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
174 : // Error handled in mozilla::ipc::IPCResult
175 0 : return MsgProcessingError;
176 : }
177 :
178 :
179 0 : IProtocol* mgr = (actor)->Manager();
180 0 : (actor)->DestroySubtree(Deletion);
181 0 : (actor)->DeallocSubtree();
182 0 : (mgr)->RemoveManagee(PFlyWebPublishedServerMsgStart, actor);
183 :
184 0 : return MsgProcessed;
185 : }
186 : case PFlyWebPublishedServer::Msg_FetchResponse__ID:
187 : {
188 0 : if (mozilla::ipc::LoggingEnabledFor("PFlyWebPublishedServerParent")) {
189 0 : mozilla::ipc::LogMessageForProtocol("PFlyWebPublishedServerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
190 : }
191 0 : AUTO_PROFILER_LABEL("PFlyWebPublishedServer::Msg_FetchResponse", OTHER);
192 :
193 0 : PickleIterator iter__(msg__);
194 0 : IPCInternalResponse aResponse;
195 : uint64_t aRequestId;
196 :
197 0 : if ((!(Read((&(aResponse)), (&(msg__)), (&(iter__)))))) {
198 0 : FatalError("Error deserializing 'IPCInternalResponse'");
199 0 : return MsgValueError;
200 : }
201 : // Sentinel = 'aResponse'
202 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4228544409)))) {
203 0 : mozilla::ipc::SentinelReadError("Error deserializing 'IPCInternalResponse'");
204 0 : return MsgValueError;
205 : }
206 0 : if ((!(Read((&(aRequestId)), (&(msg__)), (&(iter__)))))) {
207 0 : FatalError("Error deserializing 'uint64_t'");
208 0 : return MsgValueError;
209 : }
210 : // Sentinel = 'aRequestId'
211 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3709302657)))) {
212 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
213 0 : return MsgValueError;
214 : }
215 0 : (msg__).EndRead(iter__, (msg__).type());
216 0 : PFlyWebPublishedServer::Transition(PFlyWebPublishedServer::Msg_FetchResponse__ID, (&(mState)));
217 0 : if ((!(RecvFetchResponse(mozilla::Move(aResponse), mozilla::Move(aRequestId))))) {
218 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
219 : // Error handled in mozilla::ipc::IPCResult
220 0 : return MsgProcessingError;
221 : }
222 :
223 0 : return MsgProcessed;
224 : }
225 : case PFlyWebPublishedServer::Msg_WebSocketResponse__ID:
226 : {
227 0 : if (mozilla::ipc::LoggingEnabledFor("PFlyWebPublishedServerParent")) {
228 0 : mozilla::ipc::LogMessageForProtocol("PFlyWebPublishedServerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
229 : }
230 0 : AUTO_PROFILER_LABEL("PFlyWebPublishedServer::Msg_WebSocketResponse", OTHER);
231 :
232 0 : PickleIterator iter__(msg__);
233 0 : IPCInternalResponse aResponse;
234 : uint64_t aRequestId;
235 :
236 0 : if ((!(Read((&(aResponse)), (&(msg__)), (&(iter__)))))) {
237 0 : FatalError("Error deserializing 'IPCInternalResponse'");
238 0 : return MsgValueError;
239 : }
240 : // Sentinel = 'aResponse'
241 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4228544409)))) {
242 0 : mozilla::ipc::SentinelReadError("Error deserializing 'IPCInternalResponse'");
243 0 : return MsgValueError;
244 : }
245 0 : if ((!(Read((&(aRequestId)), (&(msg__)), (&(iter__)))))) {
246 0 : FatalError("Error deserializing 'uint64_t'");
247 0 : return MsgValueError;
248 : }
249 : // Sentinel = 'aRequestId'
250 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3709302657)))) {
251 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
252 0 : return MsgValueError;
253 : }
254 0 : (msg__).EndRead(iter__, (msg__).type());
255 0 : PFlyWebPublishedServer::Transition(PFlyWebPublishedServer::Msg_WebSocketResponse__ID, (&(mState)));
256 0 : if ((!(RecvWebSocketResponse(mozilla::Move(aResponse), mozilla::Move(aRequestId))))) {
257 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
258 : // Error handled in mozilla::ipc::IPCResult
259 0 : return MsgProcessingError;
260 : }
261 :
262 0 : return MsgProcessed;
263 : }
264 : case PFlyWebPublishedServer::Msg_WebSocketAccept__ID:
265 : {
266 0 : if (mozilla::ipc::LoggingEnabledFor("PFlyWebPublishedServerParent")) {
267 0 : mozilla::ipc::LogMessageForProtocol("PFlyWebPublishedServerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
268 : }
269 0 : AUTO_PROFILER_LABEL("PFlyWebPublishedServer::Msg_WebSocketAccept", OTHER);
270 :
271 0 : PickleIterator iter__(msg__);
272 0 : nsString aProtocol;
273 : uint64_t aRequestId;
274 :
275 0 : if ((!(Read((&(aProtocol)), (&(msg__)), (&(iter__)))))) {
276 0 : FatalError("Error deserializing 'nsString'");
277 0 : return MsgValueError;
278 : }
279 : // Sentinel = 'aProtocol'
280 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3505310484)))) {
281 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
282 0 : return MsgValueError;
283 : }
284 0 : if ((!(Read((&(aRequestId)), (&(msg__)), (&(iter__)))))) {
285 0 : FatalError("Error deserializing 'uint64_t'");
286 0 : return MsgValueError;
287 : }
288 : // Sentinel = 'aRequestId'
289 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3709302657)))) {
290 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
291 0 : return MsgValueError;
292 : }
293 0 : (msg__).EndRead(iter__, (msg__).type());
294 0 : PFlyWebPublishedServer::Transition(PFlyWebPublishedServer::Msg_WebSocketAccept__ID, (&(mState)));
295 0 : if ((!(RecvWebSocketAccept(mozilla::Move(aProtocol), mozilla::Move(aRequestId))))) {
296 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
297 : // Error handled in mozilla::ipc::IPCResult
298 0 : return MsgProcessingError;
299 : }
300 :
301 0 : return MsgProcessed;
302 : }
303 : default:
304 : {
305 0 : return MsgNotKnown;
306 : }
307 : }
308 : }
309 :
310 0 : auto PFlyWebPublishedServerParent::OnMessageReceived(
311 : const Message& msg__,
312 : Message*& reply__) -> PFlyWebPublishedServerParent::Result
313 : {
314 0 : return MsgNotKnown;
315 : }
316 :
317 0 : auto PFlyWebPublishedServerParent::OnCallReceived(
318 : const Message& msg__,
319 : Message*& reply__) -> PFlyWebPublishedServerParent::Result
320 : {
321 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
322 : return MsgNotKnown;
323 : }
324 :
325 0 : auto PFlyWebPublishedServerParent::GetProtocolTypeId() -> int32_t
326 : {
327 0 : return PFlyWebPublishedServerMsgStart;
328 : }
329 :
330 0 : auto PFlyWebPublishedServerParent::ProtocolName() const -> const char*
331 : {
332 0 : return "PFlyWebPublishedServerParent";
333 : }
334 :
335 0 : auto PFlyWebPublishedServerParent::DestroySubtree(ActorDestroyReason why) -> void
336 : {
337 : // Unregister from our manager.
338 0 : Unregister(Id());
339 :
340 : // Reject owning pending promises.
341 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
342 :
343 : // Finally, destroy "us".
344 0 : ActorDestroy(why);
345 0 : }
346 :
347 0 : auto PFlyWebPublishedServerParent::DeallocSubtree() -> void
348 : {
349 0 : }
350 :
351 0 : auto PFlyWebPublishedServerParent::Write(
352 : const SystemPrincipalInfo& v__,
353 : Message* msg__) -> void
354 : {
355 0 : }
356 :
357 0 : auto PFlyWebPublishedServerParent::Read(
358 : SystemPrincipalInfo* v__,
359 : const Message* msg__,
360 : PickleIterator* iter__) -> bool
361 : {
362 0 : return true;
363 : }
364 :
365 0 : auto PFlyWebPublishedServerParent::Write(
366 : const IPCInternalResponse& v__,
367 : Message* msg__) -> void
368 : {
369 0 : Write((v__).type(), msg__);
370 : // Sentinel = 'type'
371 0 : (msg__)->WriteSentinel(2982068540);
372 0 : Write((v__).urlList(), msg__);
373 : // Sentinel = 'urlList'
374 0 : (msg__)->WriteSentinel(2130903160);
375 0 : Write((v__).status(), msg__);
376 : // Sentinel = 'status'
377 0 : (msg__)->WriteSentinel(3714608576);
378 0 : Write((v__).statusText(), msg__);
379 : // Sentinel = 'statusText'
380 0 : (msg__)->WriteSentinel(2492908073);
381 0 : Write((v__).headers(), msg__);
382 : // Sentinel = 'headers'
383 0 : (msg__)->WriteSentinel(4284175217);
384 0 : Write((v__).headersGuard(), msg__);
385 : // Sentinel = 'headersGuard'
386 0 : (msg__)->WriteSentinel(2295054805);
387 0 : Write((v__).channelInfo(), msg__);
388 : // Sentinel = 'channelInfo'
389 0 : (msg__)->WriteSentinel(2311115806);
390 0 : Write((v__).principalInfo(), msg__);
391 : // Sentinel = 'principalInfo'
392 0 : (msg__)->WriteSentinel(3386633731);
393 0 : Write((v__).body(), msg__);
394 : // Sentinel = 'body'
395 0 : (msg__)->WriteSentinel(2829965504);
396 0 : Write((v__).bodySize(), msg__);
397 : // Sentinel = 'bodySize'
398 0 : (msg__)->WriteSentinel(4138266271);
399 0 : }
400 :
401 0 : auto PFlyWebPublishedServerParent::Read(
402 : IPCInternalResponse* v__,
403 : const Message* msg__,
404 : PickleIterator* iter__) -> bool
405 : {
406 0 : if ((!(Read((&((v__)->type())), msg__, iter__)))) {
407 0 : FatalError("Error deserializing 'type' (ResponseType) member of 'IPCInternalResponse'");
408 0 : return false;
409 : }
410 : // Sentinel = 'type'
411 0 : if ((!((msg__)->ReadSentinel(iter__, 2982068540)))) {
412 0 : mozilla::ipc::SentinelReadError("Error deserializing 'type' (ResponseType) member of 'IPCInternalResponse'");
413 0 : return false;
414 : }
415 0 : if ((!(Read((&((v__)->urlList())), msg__, iter__)))) {
416 0 : FatalError("Error deserializing 'urlList' (nsCString[]) member of 'IPCInternalResponse'");
417 0 : return false;
418 : }
419 : // Sentinel = 'urlList'
420 0 : if ((!((msg__)->ReadSentinel(iter__, 2130903160)))) {
421 0 : mozilla::ipc::SentinelReadError("Error deserializing 'urlList' (nsCString[]) member of 'IPCInternalResponse'");
422 0 : return false;
423 : }
424 0 : if ((!(Read((&((v__)->status())), msg__, iter__)))) {
425 0 : FatalError("Error deserializing 'status' (uint32_t) member of 'IPCInternalResponse'");
426 0 : return false;
427 : }
428 : // Sentinel = 'status'
429 0 : if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
430 0 : mozilla::ipc::SentinelReadError("Error deserializing 'status' (uint32_t) member of 'IPCInternalResponse'");
431 0 : return false;
432 : }
433 0 : if ((!(Read((&((v__)->statusText())), msg__, iter__)))) {
434 0 : FatalError("Error deserializing 'statusText' (nsCString) member of 'IPCInternalResponse'");
435 0 : return false;
436 : }
437 : // Sentinel = 'statusText'
438 0 : if ((!((msg__)->ReadSentinel(iter__, 2492908073)))) {
439 0 : mozilla::ipc::SentinelReadError("Error deserializing 'statusText' (nsCString) member of 'IPCInternalResponse'");
440 0 : return false;
441 : }
442 0 : if ((!(Read((&((v__)->headers())), msg__, iter__)))) {
443 0 : FatalError("Error deserializing 'headers' (HeadersEntry[]) member of 'IPCInternalResponse'");
444 0 : return false;
445 : }
446 : // Sentinel = 'headers'
447 0 : if ((!((msg__)->ReadSentinel(iter__, 4284175217)))) {
448 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headers' (HeadersEntry[]) member of 'IPCInternalResponse'");
449 0 : return false;
450 : }
451 0 : if ((!(Read((&((v__)->headersGuard())), msg__, iter__)))) {
452 0 : FatalError("Error deserializing 'headersGuard' (HeadersGuardEnum) member of 'IPCInternalResponse'");
453 0 : return false;
454 : }
455 : // Sentinel = 'headersGuard'
456 0 : if ((!((msg__)->ReadSentinel(iter__, 2295054805)))) {
457 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headersGuard' (HeadersGuardEnum) member of 'IPCInternalResponse'");
458 0 : return false;
459 : }
460 0 : if ((!(Read((&((v__)->channelInfo())), msg__, iter__)))) {
461 0 : FatalError("Error deserializing 'channelInfo' (IPCChannelInfo) member of 'IPCInternalResponse'");
462 0 : return false;
463 : }
464 : // Sentinel = 'channelInfo'
465 0 : if ((!((msg__)->ReadSentinel(iter__, 2311115806)))) {
466 0 : mozilla::ipc::SentinelReadError("Error deserializing 'channelInfo' (IPCChannelInfo) member of 'IPCInternalResponse'");
467 0 : return false;
468 : }
469 0 : if ((!(Read((&((v__)->principalInfo())), msg__, iter__)))) {
470 0 : FatalError("Error deserializing 'principalInfo' (OptionalPrincipalInfo) member of 'IPCInternalResponse'");
471 0 : return false;
472 : }
473 : // Sentinel = 'principalInfo'
474 0 : if ((!((msg__)->ReadSentinel(iter__, 3386633731)))) {
475 0 : mozilla::ipc::SentinelReadError("Error deserializing 'principalInfo' (OptionalPrincipalInfo) member of 'IPCInternalResponse'");
476 0 : return false;
477 : }
478 0 : if ((!(Read((&((v__)->body())), msg__, iter__)))) {
479 0 : FatalError("Error deserializing 'body' (OptionalIPCStream) member of 'IPCInternalResponse'");
480 0 : return false;
481 : }
482 : // Sentinel = 'body'
483 0 : if ((!((msg__)->ReadSentinel(iter__, 2829965504)))) {
484 0 : mozilla::ipc::SentinelReadError("Error deserializing 'body' (OptionalIPCStream) member of 'IPCInternalResponse'");
485 0 : return false;
486 : }
487 0 : if ((!(Read((&((v__)->bodySize())), msg__, iter__)))) {
488 0 : FatalError("Error deserializing 'bodySize' (int64_t) member of 'IPCInternalResponse'");
489 0 : return false;
490 : }
491 : // Sentinel = 'bodySize'
492 0 : if ((!((msg__)->ReadSentinel(iter__, 4138266271)))) {
493 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bodySize' (int64_t) member of 'IPCInternalResponse'");
494 0 : return false;
495 : }
496 0 : return true;
497 : }
498 :
499 0 : auto PFlyWebPublishedServerParent::Write(
500 : const IPCBlobInputStreamParams& v__,
501 : Message* msg__) -> void
502 : {
503 0 : Write((v__).id(), msg__);
504 : // Sentinel = 'id'
505 0 : (msg__)->WriteSentinel(2794505629);
506 0 : }
507 :
508 0 : auto PFlyWebPublishedServerParent::Read(
509 : IPCBlobInputStreamParams* v__,
510 : const Message* msg__,
511 : PickleIterator* iter__) -> bool
512 : {
513 0 : if ((!(Read((&((v__)->id())), msg__, iter__)))) {
514 0 : FatalError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
515 0 : return false;
516 : }
517 : // Sentinel = 'id'
518 0 : if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
519 0 : mozilla::ipc::SentinelReadError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
520 0 : return false;
521 : }
522 0 : return true;
523 : }
524 :
525 0 : auto PFlyWebPublishedServerParent::Write(
526 : const nsTArray<PrincipalInfo>& v__,
527 : Message* msg__) -> void
528 : {
529 0 : uint32_t length = (v__).Length();
530 0 : Write(length, msg__);
531 : // Sentinel = ('length', 'PrincipalInfo[]')
532 0 : (msg__)->WriteSentinel(1032188126);
533 :
534 0 : for (auto& elem : v__) {
535 0 : Write(elem, msg__);
536 : // Sentinel = 'PrincipalInfo[]'
537 0 : (msg__)->WriteSentinel(413380193);
538 : }
539 0 : }
540 :
541 0 : auto PFlyWebPublishedServerParent::Read(
542 : nsTArray<PrincipalInfo>* v__,
543 : const Message* msg__,
544 : PickleIterator* iter__) -> bool
545 : {
546 0 : nsTArray<PrincipalInfo> fa;
547 : uint32_t length;
548 0 : if ((!(Read((&(length)), msg__, iter__)))) {
549 0 : mozilla::ipc::ArrayLengthReadError("PrincipalInfo[]");
550 0 : return false;
551 : }
552 : // Sentinel = ('length', 'PrincipalInfo[]')
553 0 : if ((!((msg__)->ReadSentinel(iter__, 1032188126)))) {
554 0 : mozilla::ipc::SentinelReadError("PrincipalInfo[]");
555 0 : return false;
556 : }
557 :
558 0 : PrincipalInfo* elems = (fa).AppendElements(length);
559 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
560 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
561 0 : FatalError("Error deserializing 'PrincipalInfo[i]'");
562 0 : return false;
563 : }
564 : // Sentinel = 'PrincipalInfo[]'
565 0 : if ((!((msg__)->ReadSentinel(iter__, 413380193)))) {
566 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo[i]'");
567 0 : return false;
568 : }
569 : }
570 0 : (v__)->SwapElements(fa);
571 0 : return true;
572 : }
573 :
574 0 : auto PFlyWebPublishedServerParent::Write(
575 : const ContentPrincipalInfoOriginNoSuffix& v__,
576 : Message* msg__) -> void
577 : {
578 : typedef ContentPrincipalInfoOriginNoSuffix type__;
579 0 : Write(int((v__).type()), msg__);
580 : // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
581 0 : (msg__)->WriteSentinel(2442066713);
582 :
583 0 : switch ((v__).type()) {
584 : case type__::TnsCString:
585 : {
586 0 : Write((v__).get_nsCString(), msg__);
587 : // Sentinel = 'TnsCString'
588 0 : (msg__)->WriteSentinel(2427411293);
589 0 : return;
590 : }
591 : case type__::Tvoid_t:
592 : {
593 0 : Write((v__).get_void_t(), msg__);
594 : // Sentinel = 'Tvoid_t'
595 0 : (msg__)->WriteSentinel(3041273328);
596 0 : return;
597 : }
598 : default:
599 : {
600 0 : FatalError("unknown union type");
601 0 : return;
602 : }
603 : }
604 : }
605 :
606 0 : auto PFlyWebPublishedServerParent::Read(
607 : ContentPrincipalInfoOriginNoSuffix* v__,
608 : const Message* msg__,
609 : PickleIterator* iter__) -> bool
610 : {
611 : typedef ContentPrincipalInfoOriginNoSuffix type__;
612 : int type;
613 0 : if ((!(Read((&(type)), msg__, iter__)))) {
614 0 : mozilla::ipc::UnionTypeReadError("ContentPrincipalInfoOriginNoSuffix");
615 0 : return false;
616 : }
617 : // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
618 0 : if ((!((msg__)->ReadSentinel(iter__, 2442066713)))) {
619 0 : mozilla::ipc::SentinelReadError("ContentPrincipalInfoOriginNoSuffix");
620 0 : return false;
621 : }
622 :
623 0 : switch (type) {
624 : case type__::TnsCString:
625 : {
626 0 : nsCString tmp = nsCString();
627 0 : (*(v__)) = tmp;
628 0 : if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
629 0 : FatalError("Error deserializing Union type");
630 0 : return false;
631 : }
632 : // Sentinel = 'TnsCString'
633 0 : if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
634 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
635 0 : return false;
636 : }
637 0 : return true;
638 : }
639 : case type__::Tvoid_t:
640 : {
641 : void_t tmp = void_t();
642 0 : (*(v__)) = tmp;
643 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
644 0 : FatalError("Error deserializing Union type");
645 0 : return false;
646 : }
647 : // Sentinel = 'Tvoid_t'
648 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
649 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
650 0 : return false;
651 : }
652 0 : return true;
653 : }
654 : default:
655 : {
656 0 : FatalError("unknown union type");
657 0 : return false;
658 : }
659 : }
660 : }
661 :
662 0 : auto PFlyWebPublishedServerParent::Write(
663 : const OptionalInputStreamParams& v__,
664 : Message* msg__) -> void
665 : {
666 : typedef OptionalInputStreamParams type__;
667 0 : Write(int((v__).type()), msg__);
668 : // Sentinel = 'OptionalInputStreamParams'
669 0 : (msg__)->WriteSentinel(1355174443);
670 :
671 0 : switch ((v__).type()) {
672 : case type__::Tvoid_t:
673 : {
674 0 : Write((v__).get_void_t(), msg__);
675 : // Sentinel = 'Tvoid_t'
676 0 : (msg__)->WriteSentinel(3041273328);
677 0 : return;
678 : }
679 : case type__::TInputStreamParams:
680 : {
681 0 : Write((v__).get_InputStreamParams(), msg__);
682 : // Sentinel = 'TInputStreamParams'
683 0 : (msg__)->WriteSentinel(55652096);
684 0 : return;
685 : }
686 : default:
687 : {
688 0 : FatalError("unknown union type");
689 0 : return;
690 : }
691 : }
692 : }
693 :
694 0 : auto PFlyWebPublishedServerParent::Read(
695 : OptionalInputStreamParams* v__,
696 : const Message* msg__,
697 : PickleIterator* iter__) -> bool
698 : {
699 : typedef OptionalInputStreamParams type__;
700 : int type;
701 0 : if ((!(Read((&(type)), msg__, iter__)))) {
702 0 : mozilla::ipc::UnionTypeReadError("OptionalInputStreamParams");
703 0 : return false;
704 : }
705 : // Sentinel = 'OptionalInputStreamParams'
706 0 : if ((!((msg__)->ReadSentinel(iter__, 1355174443)))) {
707 0 : mozilla::ipc::SentinelReadError("OptionalInputStreamParams");
708 0 : return false;
709 : }
710 :
711 0 : switch (type) {
712 : case type__::Tvoid_t:
713 : {
714 : void_t tmp = void_t();
715 0 : (*(v__)) = tmp;
716 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
717 0 : FatalError("Error deserializing Union type");
718 0 : return false;
719 : }
720 : // Sentinel = 'Tvoid_t'
721 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
722 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
723 0 : return false;
724 : }
725 0 : return true;
726 : }
727 : case type__::TInputStreamParams:
728 : {
729 0 : InputStreamParams tmp = InputStreamParams();
730 0 : (*(v__)) = tmp;
731 0 : if ((!(Read((&((v__)->get_InputStreamParams())), msg__, iter__)))) {
732 0 : FatalError("Error deserializing Union type");
733 0 : return false;
734 : }
735 : // Sentinel = 'TInputStreamParams'
736 0 : if ((!((msg__)->ReadSentinel(iter__, 55652096)))) {
737 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
738 0 : return false;
739 : }
740 0 : return true;
741 : }
742 : default:
743 : {
744 0 : FatalError("unknown union type");
745 0 : return false;
746 : }
747 : }
748 : }
749 :
750 0 : auto PFlyWebPublishedServerParent::Write(
751 : const IPCRemoteStream& v__,
752 : Message* msg__) -> void
753 : {
754 0 : Write((v__).delayedStart(), msg__);
755 : // Sentinel = 'delayedStart'
756 0 : (msg__)->WriteSentinel(1491822294);
757 0 : Write((v__).stream(), msg__);
758 : // Sentinel = 'stream'
759 0 : (msg__)->WriteSentinel(4152748422);
760 0 : }
761 :
762 0 : auto PFlyWebPublishedServerParent::Read(
763 : IPCRemoteStream* v__,
764 : const Message* msg__,
765 : PickleIterator* iter__) -> bool
766 : {
767 0 : if ((!(Read((&((v__)->delayedStart())), msg__, iter__)))) {
768 0 : FatalError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
769 0 : return false;
770 : }
771 : // Sentinel = 'delayedStart'
772 0 : if ((!((msg__)->ReadSentinel(iter__, 1491822294)))) {
773 0 : mozilla::ipc::SentinelReadError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
774 0 : return false;
775 : }
776 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
777 0 : FatalError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
778 0 : return false;
779 : }
780 : // Sentinel = 'stream'
781 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
782 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
783 0 : return false;
784 : }
785 0 : return true;
786 : }
787 :
788 0 : auto PFlyWebPublishedServerParent::Write(
789 : const nsTArray<InputStreamParams>& v__,
790 : Message* msg__) -> void
791 : {
792 0 : uint32_t length = (v__).Length();
793 0 : Write(length, msg__);
794 : // Sentinel = ('length', 'InputStreamParams[]')
795 0 : (msg__)->WriteSentinel(348334258);
796 :
797 0 : for (auto& elem : v__) {
798 0 : Write(elem, msg__);
799 : // Sentinel = 'InputStreamParams[]'
800 0 : (msg__)->WriteSentinel(2927715197);
801 : }
802 0 : }
803 :
804 0 : auto PFlyWebPublishedServerParent::Read(
805 : nsTArray<InputStreamParams>* v__,
806 : const Message* msg__,
807 : PickleIterator* iter__) -> bool
808 : {
809 0 : nsTArray<InputStreamParams> fa;
810 : uint32_t length;
811 0 : if ((!(Read((&(length)), msg__, iter__)))) {
812 0 : mozilla::ipc::ArrayLengthReadError("InputStreamParams[]");
813 0 : return false;
814 : }
815 : // Sentinel = ('length', 'InputStreamParams[]')
816 0 : if ((!((msg__)->ReadSentinel(iter__, 348334258)))) {
817 0 : mozilla::ipc::SentinelReadError("InputStreamParams[]");
818 0 : return false;
819 : }
820 :
821 0 : InputStreamParams* elems = (fa).AppendElements(length);
822 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
823 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
824 0 : FatalError("Error deserializing 'InputStreamParams[i]'");
825 0 : return false;
826 : }
827 : // Sentinel = 'InputStreamParams[]'
828 0 : if ((!((msg__)->ReadSentinel(iter__, 2927715197)))) {
829 0 : mozilla::ipc::SentinelReadError("Error deserializing 'InputStreamParams[i]'");
830 0 : return false;
831 : }
832 : }
833 0 : (v__)->SwapElements(fa);
834 0 : return true;
835 : }
836 :
837 0 : auto PFlyWebPublishedServerParent::Write(
838 : const nsTArray<FileDescriptor>& v__,
839 : Message* msg__) -> void
840 : {
841 0 : uint32_t length = (v__).Length();
842 0 : Write(length, msg__);
843 : // Sentinel = ('length', 'FileDescriptor[]')
844 0 : (msg__)->WriteSentinel(1697726450);
845 :
846 0 : for (auto& elem : v__) {
847 0 : Write(elem, msg__);
848 : // Sentinel = 'FileDescriptor[]'
849 0 : (msg__)->WriteSentinel(1630221245);
850 : }
851 0 : }
852 :
853 0 : auto PFlyWebPublishedServerParent::Read(
854 : nsTArray<FileDescriptor>* v__,
855 : const Message* msg__,
856 : PickleIterator* iter__) -> bool
857 : {
858 0 : nsTArray<FileDescriptor> fa;
859 : uint32_t length;
860 0 : if ((!(Read((&(length)), msg__, iter__)))) {
861 0 : mozilla::ipc::ArrayLengthReadError("FileDescriptor[]");
862 0 : return false;
863 : }
864 : // Sentinel = ('length', 'FileDescriptor[]')
865 0 : if ((!((msg__)->ReadSentinel(iter__, 1697726450)))) {
866 0 : mozilla::ipc::SentinelReadError("FileDescriptor[]");
867 0 : return false;
868 : }
869 :
870 0 : FileDescriptor* elems = (fa).AppendElements(length);
871 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
872 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
873 0 : FatalError("Error deserializing 'FileDescriptor[i]'");
874 0 : return false;
875 : }
876 : // Sentinel = 'FileDescriptor[]'
877 0 : if ((!((msg__)->ReadSentinel(iter__, 1630221245)))) {
878 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor[i]'");
879 0 : return false;
880 : }
881 : }
882 0 : (v__)->SwapElements(fa);
883 0 : return true;
884 : }
885 :
886 0 : auto PFlyWebPublishedServerParent::Write(
887 : const FileInputStreamParams& v__,
888 : Message* msg__) -> void
889 : {
890 0 : Write((v__).fileDescriptorIndex(), msg__);
891 : // Sentinel = 'fileDescriptorIndex'
892 0 : (msg__)->WriteSentinel(587329112);
893 0 : Write((v__).behaviorFlags(), msg__);
894 : // Sentinel = 'behaviorFlags'
895 0 : (msg__)->WriteSentinel(2404401962);
896 0 : Write((v__).ioFlags(), msg__);
897 : // Sentinel = 'ioFlags'
898 0 : (msg__)->WriteSentinel(1483009730);
899 0 : }
900 :
901 0 : auto PFlyWebPublishedServerParent::Read(
902 : FileInputStreamParams* v__,
903 : const Message* msg__,
904 : PickleIterator* iter__) -> bool
905 : {
906 0 : if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
907 0 : FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
908 0 : return false;
909 : }
910 : // Sentinel = 'fileDescriptorIndex'
911 0 : if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
912 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
913 0 : return false;
914 : }
915 0 : if ((!(Read((&((v__)->behaviorFlags())), msg__, iter__)))) {
916 0 : FatalError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
917 0 : return false;
918 : }
919 : // Sentinel = 'behaviorFlags'
920 0 : if ((!((msg__)->ReadSentinel(iter__, 2404401962)))) {
921 0 : mozilla::ipc::SentinelReadError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
922 0 : return false;
923 : }
924 0 : if ((!(Read((&((v__)->ioFlags())), msg__, iter__)))) {
925 0 : FatalError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
926 0 : return false;
927 : }
928 : // Sentinel = 'ioFlags'
929 0 : if ((!((msg__)->ReadSentinel(iter__, 1483009730)))) {
930 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
931 0 : return false;
932 : }
933 0 : return true;
934 : }
935 :
936 0 : auto PFlyWebPublishedServerParent::Write(
937 : const OptionalPrincipalInfo& v__,
938 : Message* msg__) -> void
939 : {
940 : typedef OptionalPrincipalInfo type__;
941 0 : Write(int((v__).type()), msg__);
942 : // Sentinel = 'OptionalPrincipalInfo'
943 0 : (msg__)->WriteSentinel(3041452007);
944 :
945 0 : switch ((v__).type()) {
946 : case type__::Tvoid_t:
947 : {
948 0 : Write((v__).get_void_t(), msg__);
949 : // Sentinel = 'Tvoid_t'
950 0 : (msg__)->WriteSentinel(3041273328);
951 0 : return;
952 : }
953 : case type__::TPrincipalInfo:
954 : {
955 0 : Write((v__).get_PrincipalInfo(), msg__);
956 : // Sentinel = 'TPrincipalInfo'
957 0 : (msg__)->WriteSentinel(1396743580);
958 0 : return;
959 : }
960 : default:
961 : {
962 0 : FatalError("unknown union type");
963 0 : return;
964 : }
965 : }
966 : }
967 :
968 0 : auto PFlyWebPublishedServerParent::Read(
969 : OptionalPrincipalInfo* v__,
970 : const Message* msg__,
971 : PickleIterator* iter__) -> bool
972 : {
973 : typedef OptionalPrincipalInfo type__;
974 : int type;
975 0 : if ((!(Read((&(type)), msg__, iter__)))) {
976 0 : mozilla::ipc::UnionTypeReadError("OptionalPrincipalInfo");
977 0 : return false;
978 : }
979 : // Sentinel = 'OptionalPrincipalInfo'
980 0 : if ((!((msg__)->ReadSentinel(iter__, 3041452007)))) {
981 0 : mozilla::ipc::SentinelReadError("OptionalPrincipalInfo");
982 0 : return false;
983 : }
984 :
985 0 : switch (type) {
986 : case type__::Tvoid_t:
987 : {
988 : void_t tmp = void_t();
989 0 : (*(v__)) = tmp;
990 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
991 0 : FatalError("Error deserializing Union type");
992 0 : return false;
993 : }
994 : // Sentinel = 'Tvoid_t'
995 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
996 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
997 0 : return false;
998 : }
999 0 : return true;
1000 : }
1001 : case type__::TPrincipalInfo:
1002 : {
1003 0 : PrincipalInfo tmp = PrincipalInfo();
1004 0 : (*(v__)) = tmp;
1005 0 : if ((!(Read((&((v__)->get_PrincipalInfo())), msg__, iter__)))) {
1006 0 : FatalError("Error deserializing Union type");
1007 0 : return false;
1008 : }
1009 : // Sentinel = 'TPrincipalInfo'
1010 0 : if ((!((msg__)->ReadSentinel(iter__, 1396743580)))) {
1011 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1012 0 : return false;
1013 : }
1014 0 : return true;
1015 : }
1016 : default:
1017 : {
1018 0 : FatalError("unknown union type");
1019 0 : return false;
1020 : }
1021 : }
1022 : }
1023 :
1024 0 : auto PFlyWebPublishedServerParent::Write(
1025 : const HeadersEntry& v__,
1026 : Message* msg__) -> void
1027 : {
1028 0 : Write((v__).name(), msg__);
1029 : // Sentinel = 'name'
1030 0 : (msg__)->WriteSentinel(15034981);
1031 0 : Write((v__).value(), msg__);
1032 : // Sentinel = 'value'
1033 0 : (msg__)->WriteSentinel(3456818542);
1034 0 : }
1035 :
1036 0 : auto PFlyWebPublishedServerParent::Read(
1037 : HeadersEntry* v__,
1038 : const Message* msg__,
1039 : PickleIterator* iter__) -> bool
1040 : {
1041 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
1042 0 : FatalError("Error deserializing 'name' (nsCString) member of 'HeadersEntry'");
1043 0 : return false;
1044 : }
1045 : // Sentinel = 'name'
1046 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
1047 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'HeadersEntry'");
1048 0 : return false;
1049 : }
1050 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
1051 0 : FatalError("Error deserializing 'value' (nsCString) member of 'HeadersEntry'");
1052 0 : return false;
1053 : }
1054 : // Sentinel = 'value'
1055 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
1056 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'HeadersEntry'");
1057 0 : return false;
1058 : }
1059 0 : return true;
1060 : }
1061 :
1062 0 : auto PFlyWebPublishedServerParent::Write(
1063 : const FileDescriptor& v__,
1064 : Message* msg__) -> void
1065 : {
1066 0 : FileDescriptor::PickleType pfd = (v__).ShareTo(FileDescriptor::IPDLPrivate(), OtherPid());
1067 0 : IPC::WriteParam(msg__, pfd);
1068 0 : }
1069 :
1070 0 : auto PFlyWebPublishedServerParent::Read(
1071 : FileDescriptor* v__,
1072 : const Message* msg__,
1073 : PickleIterator* iter__) -> bool
1074 : {
1075 0 : FileDescriptor::PickleType pfd;
1076 0 : if ((!(IPC::ReadParam(msg__, iter__, (&(pfd)))))) {
1077 0 : return false;
1078 : }
1079 :
1080 0 : FileDescriptor fd = FileDescriptor(FileDescriptor::IPDLPrivate(), pfd);
1081 0 : if ((!((fd).IsValid()))) {
1082 0 : mozilla::ipc::ProtocolErrorBreakpoint("[PFlyWebPublishedServerParent] Received an invalid file descriptor!");
1083 : }
1084 :
1085 0 : (*(v__)) = fd;
1086 0 : return true;
1087 : }
1088 :
1089 0 : auto PFlyWebPublishedServerParent::Write(
1090 : const ExpandedPrincipalInfo& v__,
1091 : Message* msg__) -> void
1092 : {
1093 0 : Write((v__).attrs(), msg__);
1094 : // Sentinel = 'attrs'
1095 0 : (msg__)->WriteSentinel(3014987797);
1096 0 : Write((v__).whitelist(), msg__);
1097 : // Sentinel = 'whitelist'
1098 0 : (msg__)->WriteSentinel(3731637258);
1099 0 : }
1100 :
1101 0 : auto PFlyWebPublishedServerParent::Read(
1102 : ExpandedPrincipalInfo* v__,
1103 : const Message* msg__,
1104 : PickleIterator* iter__) -> bool
1105 : {
1106 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
1107 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
1108 0 : return false;
1109 : }
1110 : // Sentinel = 'attrs'
1111 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
1112 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
1113 0 : return false;
1114 : }
1115 0 : if ((!(Read((&((v__)->whitelist())), msg__, iter__)))) {
1116 0 : FatalError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
1117 0 : return false;
1118 : }
1119 : // Sentinel = 'whitelist'
1120 0 : if ((!((msg__)->ReadSentinel(iter__, 3731637258)))) {
1121 0 : mozilla::ipc::SentinelReadError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
1122 0 : return false;
1123 : }
1124 0 : return true;
1125 : }
1126 :
1127 0 : auto PFlyWebPublishedServerParent::Write(
1128 : const InputStreamParamsWithFds& v__,
1129 : Message* msg__) -> void
1130 : {
1131 0 : Write((v__).stream(), msg__);
1132 : // Sentinel = 'stream'
1133 0 : (msg__)->WriteSentinel(4152748422);
1134 0 : Write((v__).optionalFds(), msg__);
1135 : // Sentinel = 'optionalFds'
1136 0 : (msg__)->WriteSentinel(1021803302);
1137 0 : }
1138 :
1139 0 : auto PFlyWebPublishedServerParent::Read(
1140 : InputStreamParamsWithFds* v__,
1141 : const Message* msg__,
1142 : PickleIterator* iter__) -> bool
1143 : {
1144 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
1145 0 : FatalError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
1146 0 : return false;
1147 : }
1148 : // Sentinel = 'stream'
1149 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
1150 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
1151 0 : return false;
1152 : }
1153 0 : if ((!(Read((&((v__)->optionalFds())), msg__, iter__)))) {
1154 0 : FatalError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
1155 0 : return false;
1156 : }
1157 : // Sentinel = 'optionalFds'
1158 0 : if ((!((msg__)->ReadSentinel(iter__, 1021803302)))) {
1159 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
1160 0 : return false;
1161 : }
1162 0 : return true;
1163 : }
1164 :
1165 0 : auto PFlyWebPublishedServerParent::Write(
1166 : const PTransportProviderParent* v__,
1167 : Message* msg__,
1168 : bool nullable__) -> void
1169 : {
1170 : int32_t id;
1171 0 : if ((!(v__))) {
1172 0 : if ((!(nullable__))) {
1173 0 : FatalError("NULL actor value passed to non-nullable param");
1174 : }
1175 0 : id = 0;
1176 : }
1177 : else {
1178 0 : id = (v__)->Id();
1179 0 : if ((1) == (id)) {
1180 0 : FatalError("actor has been |delete|d");
1181 : }
1182 : }
1183 :
1184 0 : Write(id, msg__);
1185 0 : }
1186 :
1187 0 : auto PFlyWebPublishedServerParent::Read(
1188 : PTransportProviderParent** v__,
1189 : const Message* msg__,
1190 : PickleIterator* iter__,
1191 : bool nullable__) -> bool
1192 : {
1193 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PTransportProvider", PTransportProviderMsgStart);
1194 0 : if ((actor).isNothing()) {
1195 0 : return false;
1196 : }
1197 :
1198 0 : (*(v__)) = static_cast<PTransportProviderParent*>((actor).value());
1199 0 : return true;
1200 : }
1201 :
1202 0 : auto PFlyWebPublishedServerParent::Write(
1203 : const IPCRemoteStreamType& v__,
1204 : Message* msg__) -> void
1205 : {
1206 : typedef IPCRemoteStreamType type__;
1207 0 : Write(int((v__).type()), msg__);
1208 : // Sentinel = 'IPCRemoteStreamType'
1209 0 : (msg__)->WriteSentinel(391674895);
1210 :
1211 0 : switch ((v__).type()) {
1212 : case type__::TPChildToParentStreamParent:
1213 : {
1214 0 : Write((v__).get_PChildToParentStreamParent(), msg__, false);
1215 : // Sentinel = 'TPChildToParentStreamParent'
1216 0 : (msg__)->WriteSentinel(2724777622);
1217 0 : return;
1218 : }
1219 : case type__::TPChildToParentStreamChild:
1220 : {
1221 0 : FatalError("wrong side!");
1222 0 : return;
1223 : }
1224 : case type__::TPParentToChildStreamParent:
1225 : {
1226 0 : Write((v__).get_PParentToChildStreamParent(), msg__, false);
1227 : // Sentinel = 'TPParentToChildStreamParent'
1228 0 : (msg__)->WriteSentinel(3335986876);
1229 0 : return;
1230 : }
1231 : case type__::TPParentToChildStreamChild:
1232 : {
1233 0 : FatalError("wrong side!");
1234 0 : return;
1235 : }
1236 : default:
1237 : {
1238 0 : FatalError("unknown union type");
1239 0 : return;
1240 : }
1241 : }
1242 : }
1243 :
1244 0 : auto PFlyWebPublishedServerParent::Read(
1245 : IPCRemoteStreamType* v__,
1246 : const Message* msg__,
1247 : PickleIterator* iter__) -> bool
1248 : {
1249 : typedef IPCRemoteStreamType type__;
1250 : int type;
1251 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1252 0 : mozilla::ipc::UnionTypeReadError("IPCRemoteStreamType");
1253 0 : return false;
1254 : }
1255 : // Sentinel = 'IPCRemoteStreamType'
1256 0 : if ((!((msg__)->ReadSentinel(iter__, 391674895)))) {
1257 0 : mozilla::ipc::SentinelReadError("IPCRemoteStreamType");
1258 0 : return false;
1259 : }
1260 :
1261 0 : switch (type) {
1262 : case type__::TPChildToParentStreamParent:
1263 : {
1264 0 : return false;
1265 : }
1266 : case type__::TPChildToParentStreamChild:
1267 : {
1268 0 : PChildToParentStreamParent* tmp = nullptr;
1269 0 : (*(v__)) = tmp;
1270 0 : if ((!(Read((&((v__)->get_PChildToParentStreamParent())), msg__, iter__, false)))) {
1271 0 : FatalError("Error deserializing Union type");
1272 0 : return false;
1273 : }
1274 : // Sentinel = 'TPChildToParentStreamChild'
1275 0 : if ((!((msg__)->ReadSentinel(iter__, 1882094295)))) {
1276 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1277 0 : return false;
1278 : }
1279 0 : return true;
1280 : }
1281 : case type__::TPParentToChildStreamParent:
1282 : {
1283 0 : return false;
1284 : }
1285 : case type__::TPParentToChildStreamChild:
1286 : {
1287 0 : PParentToChildStreamParent* tmp = nullptr;
1288 0 : (*(v__)) = tmp;
1289 0 : if ((!(Read((&((v__)->get_PParentToChildStreamParent())), msg__, iter__, false)))) {
1290 0 : FatalError("Error deserializing Union type");
1291 0 : return false;
1292 : }
1293 : // Sentinel = 'TPParentToChildStreamChild'
1294 0 : if ((!((msg__)->ReadSentinel(iter__, 190098493)))) {
1295 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1296 0 : return false;
1297 : }
1298 0 : return true;
1299 : }
1300 : default:
1301 : {
1302 0 : FatalError("unknown union type");
1303 0 : return false;
1304 : }
1305 : }
1306 : }
1307 :
1308 0 : auto PFlyWebPublishedServerParent::Write(
1309 : const nsTArray<HeaderEntry>& v__,
1310 : Message* msg__) -> void
1311 : {
1312 0 : uint32_t length = (v__).Length();
1313 0 : Write(length, msg__);
1314 : // Sentinel = ('length', 'HeaderEntry[]')
1315 0 : (msg__)->WriteSentinel(2689457705);
1316 :
1317 0 : for (auto& elem : v__) {
1318 0 : Write(elem, msg__);
1319 : // Sentinel = 'HeaderEntry[]'
1320 0 : (msg__)->WriteSentinel(454836120);
1321 : }
1322 0 : }
1323 :
1324 0 : auto PFlyWebPublishedServerParent::Read(
1325 : nsTArray<HeaderEntry>* v__,
1326 : const Message* msg__,
1327 : PickleIterator* iter__) -> bool
1328 : {
1329 0 : nsTArray<HeaderEntry> fa;
1330 : uint32_t length;
1331 0 : if ((!(Read((&(length)), msg__, iter__)))) {
1332 0 : mozilla::ipc::ArrayLengthReadError("HeaderEntry[]");
1333 0 : return false;
1334 : }
1335 : // Sentinel = ('length', 'HeaderEntry[]')
1336 0 : if ((!((msg__)->ReadSentinel(iter__, 2689457705)))) {
1337 0 : mozilla::ipc::SentinelReadError("HeaderEntry[]");
1338 0 : return false;
1339 : }
1340 :
1341 0 : HeaderEntry* elems = (fa).AppendElements(length);
1342 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
1343 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
1344 0 : FatalError("Error deserializing 'HeaderEntry[i]'");
1345 0 : return false;
1346 : }
1347 : // Sentinel = 'HeaderEntry[]'
1348 0 : if ((!((msg__)->ReadSentinel(iter__, 454836120)))) {
1349 0 : mozilla::ipc::SentinelReadError("Error deserializing 'HeaderEntry[i]'");
1350 0 : return false;
1351 : }
1352 : }
1353 0 : (v__)->SwapElements(fa);
1354 0 : return true;
1355 : }
1356 :
1357 0 : auto PFlyWebPublishedServerParent::Write(
1358 : const HeaderEntry& v__,
1359 : Message* msg__) -> void
1360 : {
1361 0 : Write((v__).name(), msg__);
1362 : // Sentinel = 'name'
1363 0 : (msg__)->WriteSentinel(15034981);
1364 0 : Write((v__).value(), msg__);
1365 : // Sentinel = 'value'
1366 0 : (msg__)->WriteSentinel(3456818542);
1367 0 : }
1368 :
1369 0 : auto PFlyWebPublishedServerParent::Read(
1370 : HeaderEntry* v__,
1371 : const Message* msg__,
1372 : PickleIterator* iter__) -> bool
1373 : {
1374 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
1375 0 : FatalError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
1376 0 : return false;
1377 : }
1378 : // Sentinel = 'name'
1379 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
1380 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
1381 0 : return false;
1382 : }
1383 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
1384 0 : FatalError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
1385 0 : return false;
1386 : }
1387 : // Sentinel = 'value'
1388 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
1389 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
1390 0 : return false;
1391 : }
1392 0 : return true;
1393 : }
1394 :
1395 0 : auto PFlyWebPublishedServerParent::Write(
1396 : const SlicedInputStreamParams& v__,
1397 : Message* msg__) -> void
1398 : {
1399 0 : Write((v__).stream(), msg__);
1400 : // Sentinel = 'stream'
1401 0 : (msg__)->WriteSentinel(4152748422);
1402 0 : Write((v__).start(), msg__);
1403 : // Sentinel = 'start'
1404 0 : (msg__)->WriteSentinel(2088644401);
1405 0 : Write((v__).length(), msg__);
1406 : // Sentinel = 'length'
1407 0 : (msg__)->WriteSentinel(1726618354);
1408 0 : Write((v__).curPos(), msg__);
1409 : // Sentinel = 'curPos'
1410 0 : (msg__)->WriteSentinel(4042140974);
1411 0 : Write((v__).closed(), msg__);
1412 : // Sentinel = 'closed'
1413 0 : (msg__)->WriteSentinel(561249462);
1414 0 : }
1415 :
1416 0 : auto PFlyWebPublishedServerParent::Read(
1417 : SlicedInputStreamParams* v__,
1418 : const Message* msg__,
1419 : PickleIterator* iter__) -> bool
1420 : {
1421 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
1422 0 : FatalError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
1423 0 : return false;
1424 : }
1425 : // Sentinel = 'stream'
1426 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
1427 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
1428 0 : return false;
1429 : }
1430 0 : if ((!(Read((&((v__)->start())), msg__, iter__)))) {
1431 0 : FatalError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
1432 0 : return false;
1433 : }
1434 : // Sentinel = 'start'
1435 0 : if ((!((msg__)->ReadSentinel(iter__, 2088644401)))) {
1436 0 : mozilla::ipc::SentinelReadError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
1437 0 : return false;
1438 : }
1439 0 : if ((!(Read((&((v__)->length())), msg__, iter__)))) {
1440 0 : FatalError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
1441 0 : return false;
1442 : }
1443 : // Sentinel = 'length'
1444 0 : if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
1445 0 : mozilla::ipc::SentinelReadError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
1446 0 : return false;
1447 : }
1448 0 : if ((!(Read((&((v__)->curPos())), msg__, iter__)))) {
1449 0 : FatalError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
1450 0 : return false;
1451 : }
1452 : // Sentinel = 'curPos'
1453 0 : if ((!((msg__)->ReadSentinel(iter__, 4042140974)))) {
1454 0 : mozilla::ipc::SentinelReadError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
1455 0 : return false;
1456 : }
1457 0 : if ((!(Read((&((v__)->closed())), msg__, iter__)))) {
1458 0 : FatalError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
1459 0 : return false;
1460 : }
1461 : // Sentinel = 'closed'
1462 0 : if ((!((msg__)->ReadSentinel(iter__, 561249462)))) {
1463 0 : mozilla::ipc::SentinelReadError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
1464 0 : return false;
1465 : }
1466 0 : return true;
1467 : }
1468 :
1469 0 : auto PFlyWebPublishedServerParent::Write(
1470 : const PrincipalInfo& v__,
1471 : Message* msg__) -> void
1472 : {
1473 : typedef PrincipalInfo type__;
1474 0 : Write(int((v__).type()), msg__);
1475 : // Sentinel = 'PrincipalInfo'
1476 0 : (msg__)->WriteSentinel(4194518819);
1477 :
1478 0 : switch ((v__).type()) {
1479 : case type__::TContentPrincipalInfo:
1480 : {
1481 0 : Write((v__).get_ContentPrincipalInfo(), msg__);
1482 : // Sentinel = 'TContentPrincipalInfo'
1483 0 : (msg__)->WriteSentinel(3677342258);
1484 0 : return;
1485 : }
1486 : case type__::TSystemPrincipalInfo:
1487 : {
1488 0 : Write((v__).get_SystemPrincipalInfo(), msg__);
1489 : // Sentinel = 'TSystemPrincipalInfo'
1490 0 : (msg__)->WriteSentinel(3590603679);
1491 0 : return;
1492 : }
1493 : case type__::TNullPrincipalInfo:
1494 : {
1495 0 : Write((v__).get_NullPrincipalInfo(), msg__);
1496 : // Sentinel = 'TNullPrincipalInfo'
1497 0 : (msg__)->WriteSentinel(3477774965);
1498 0 : return;
1499 : }
1500 : case type__::TExpandedPrincipalInfo:
1501 : {
1502 0 : Write((v__).get_ExpandedPrincipalInfo(), msg__);
1503 : // Sentinel = 'TExpandedPrincipalInfo'
1504 0 : (msg__)->WriteSentinel(589324917);
1505 0 : return;
1506 : }
1507 : default:
1508 : {
1509 0 : FatalError("unknown union type");
1510 0 : return;
1511 : }
1512 : }
1513 : }
1514 :
1515 0 : auto PFlyWebPublishedServerParent::Read(
1516 : PrincipalInfo* v__,
1517 : const Message* msg__,
1518 : PickleIterator* iter__) -> bool
1519 : {
1520 : typedef PrincipalInfo type__;
1521 : int type;
1522 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1523 0 : mozilla::ipc::UnionTypeReadError("PrincipalInfo");
1524 0 : return false;
1525 : }
1526 : // Sentinel = 'PrincipalInfo'
1527 0 : if ((!((msg__)->ReadSentinel(iter__, 4194518819)))) {
1528 0 : mozilla::ipc::SentinelReadError("PrincipalInfo");
1529 0 : return false;
1530 : }
1531 :
1532 0 : switch (type) {
1533 : case type__::TContentPrincipalInfo:
1534 : {
1535 0 : ContentPrincipalInfo tmp = ContentPrincipalInfo();
1536 0 : (*(v__)) = tmp;
1537 0 : if ((!(Read((&((v__)->get_ContentPrincipalInfo())), msg__, iter__)))) {
1538 0 : FatalError("Error deserializing Union type");
1539 0 : return false;
1540 : }
1541 : // Sentinel = 'TContentPrincipalInfo'
1542 0 : if ((!((msg__)->ReadSentinel(iter__, 3677342258)))) {
1543 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1544 0 : return false;
1545 : }
1546 0 : return true;
1547 : }
1548 : case type__::TSystemPrincipalInfo:
1549 : {
1550 0 : SystemPrincipalInfo tmp = SystemPrincipalInfo();
1551 0 : (*(v__)) = tmp;
1552 0 : if ((!(Read((&((v__)->get_SystemPrincipalInfo())), msg__, iter__)))) {
1553 0 : FatalError("Error deserializing Union type");
1554 0 : return false;
1555 : }
1556 : // Sentinel = 'TSystemPrincipalInfo'
1557 0 : if ((!((msg__)->ReadSentinel(iter__, 3590603679)))) {
1558 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1559 0 : return false;
1560 : }
1561 0 : return true;
1562 : }
1563 : case type__::TNullPrincipalInfo:
1564 : {
1565 0 : NullPrincipalInfo tmp = NullPrincipalInfo();
1566 0 : (*(v__)) = tmp;
1567 0 : if ((!(Read((&((v__)->get_NullPrincipalInfo())), msg__, iter__)))) {
1568 0 : FatalError("Error deserializing Union type");
1569 0 : return false;
1570 : }
1571 : // Sentinel = 'TNullPrincipalInfo'
1572 0 : if ((!((msg__)->ReadSentinel(iter__, 3477774965)))) {
1573 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1574 0 : return false;
1575 : }
1576 0 : return true;
1577 : }
1578 : case type__::TExpandedPrincipalInfo:
1579 : {
1580 0 : ExpandedPrincipalInfo tmp = ExpandedPrincipalInfo();
1581 0 : (*(v__)) = tmp;
1582 0 : if ((!(Read((&((v__)->get_ExpandedPrincipalInfo())), msg__, iter__)))) {
1583 0 : FatalError("Error deserializing Union type");
1584 0 : return false;
1585 : }
1586 : // Sentinel = 'TExpandedPrincipalInfo'
1587 0 : if ((!((msg__)->ReadSentinel(iter__, 589324917)))) {
1588 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1589 0 : return false;
1590 : }
1591 0 : return true;
1592 : }
1593 : default:
1594 : {
1595 0 : FatalError("unknown union type");
1596 0 : return false;
1597 : }
1598 : }
1599 : }
1600 :
1601 0 : auto PFlyWebPublishedServerParent::Write(
1602 : const TemporaryFileInputStreamParams& v__,
1603 : Message* msg__) -> void
1604 : {
1605 0 : Write((v__).fileDescriptorIndex(), msg__);
1606 : // Sentinel = 'fileDescriptorIndex'
1607 0 : (msg__)->WriteSentinel(587329112);
1608 0 : Write((v__).startPos(), msg__);
1609 : // Sentinel = 'startPos'
1610 0 : (msg__)->WriteSentinel(557207962);
1611 0 : Write((v__).endPos(), msg__);
1612 : // Sentinel = 'endPos'
1613 0 : (msg__)->WriteSentinel(881536245);
1614 0 : }
1615 :
1616 0 : auto PFlyWebPublishedServerParent::Read(
1617 : TemporaryFileInputStreamParams* v__,
1618 : const Message* msg__,
1619 : PickleIterator* iter__) -> bool
1620 : {
1621 0 : if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
1622 0 : FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
1623 0 : return false;
1624 : }
1625 : // Sentinel = 'fileDescriptorIndex'
1626 0 : if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
1627 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
1628 0 : return false;
1629 : }
1630 0 : if ((!(Read((&((v__)->startPos())), msg__, iter__)))) {
1631 0 : FatalError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
1632 0 : return false;
1633 : }
1634 : // Sentinel = 'startPos'
1635 0 : if ((!((msg__)->ReadSentinel(iter__, 557207962)))) {
1636 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
1637 0 : return false;
1638 : }
1639 0 : if ((!(Read((&((v__)->endPos())), msg__, iter__)))) {
1640 0 : FatalError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
1641 0 : return false;
1642 : }
1643 : // Sentinel = 'endPos'
1644 0 : if ((!((msg__)->ReadSentinel(iter__, 881536245)))) {
1645 0 : mozilla::ipc::SentinelReadError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
1646 0 : return false;
1647 : }
1648 0 : return true;
1649 : }
1650 :
1651 0 : auto PFlyWebPublishedServerParent::Write(
1652 : const PFlyWebPublishedServerParent* v__,
1653 : Message* msg__,
1654 : bool nullable__) -> void
1655 : {
1656 : int32_t id;
1657 0 : if ((!(v__))) {
1658 0 : if ((!(nullable__))) {
1659 0 : FatalError("NULL actor value passed to non-nullable param");
1660 : }
1661 0 : id = 0;
1662 : }
1663 : else {
1664 0 : id = (v__)->Id();
1665 0 : if ((1) == (id)) {
1666 0 : FatalError("actor has been |delete|d");
1667 : }
1668 : }
1669 :
1670 0 : Write(id, msg__);
1671 0 : }
1672 :
1673 0 : auto PFlyWebPublishedServerParent::Read(
1674 : PFlyWebPublishedServerParent** v__,
1675 : const Message* msg__,
1676 : PickleIterator* iter__,
1677 : bool nullable__) -> bool
1678 : {
1679 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PFlyWebPublishedServer", PFlyWebPublishedServerMsgStart);
1680 0 : if ((actor).isNothing()) {
1681 0 : return false;
1682 : }
1683 :
1684 0 : (*(v__)) = static_cast<PFlyWebPublishedServerParent*>((actor).value());
1685 0 : return true;
1686 : }
1687 :
1688 0 : auto PFlyWebPublishedServerParent::Write(
1689 : const IPCStream& v__,
1690 : Message* msg__) -> void
1691 : {
1692 : typedef IPCStream type__;
1693 0 : Write(int((v__).type()), msg__);
1694 : // Sentinel = 'IPCStream'
1695 0 : (msg__)->WriteSentinel(442610715);
1696 :
1697 0 : switch ((v__).type()) {
1698 : case type__::TInputStreamParamsWithFds:
1699 : {
1700 0 : Write((v__).get_InputStreamParamsWithFds(), msg__);
1701 : // Sentinel = 'TInputStreamParamsWithFds'
1702 0 : (msg__)->WriteSentinel(2170706066);
1703 0 : return;
1704 : }
1705 : case type__::TIPCRemoteStream:
1706 : {
1707 0 : Write((v__).get_IPCRemoteStream(), msg__);
1708 : // Sentinel = 'TIPCRemoteStream'
1709 0 : (msg__)->WriteSentinel(2978132448);
1710 0 : return;
1711 : }
1712 : default:
1713 : {
1714 0 : FatalError("unknown union type");
1715 0 : return;
1716 : }
1717 : }
1718 : }
1719 :
1720 0 : auto PFlyWebPublishedServerParent::Read(
1721 : IPCStream* v__,
1722 : const Message* msg__,
1723 : PickleIterator* iter__) -> bool
1724 : {
1725 : typedef IPCStream type__;
1726 : int type;
1727 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1728 0 : mozilla::ipc::UnionTypeReadError("IPCStream");
1729 0 : return false;
1730 : }
1731 : // Sentinel = 'IPCStream'
1732 0 : if ((!((msg__)->ReadSentinel(iter__, 442610715)))) {
1733 0 : mozilla::ipc::SentinelReadError("IPCStream");
1734 0 : return false;
1735 : }
1736 :
1737 0 : switch (type) {
1738 : case type__::TInputStreamParamsWithFds:
1739 : {
1740 0 : InputStreamParamsWithFds tmp = InputStreamParamsWithFds();
1741 0 : (*(v__)) = tmp;
1742 0 : if ((!(Read((&((v__)->get_InputStreamParamsWithFds())), msg__, iter__)))) {
1743 0 : FatalError("Error deserializing Union type");
1744 0 : return false;
1745 : }
1746 : // Sentinel = 'TInputStreamParamsWithFds'
1747 0 : if ((!((msg__)->ReadSentinel(iter__, 2170706066)))) {
1748 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1749 0 : return false;
1750 : }
1751 0 : return true;
1752 : }
1753 : case type__::TIPCRemoteStream:
1754 : {
1755 0 : IPCRemoteStream tmp = IPCRemoteStream();
1756 0 : (*(v__)) = tmp;
1757 0 : if ((!(Read((&((v__)->get_IPCRemoteStream())), msg__, iter__)))) {
1758 0 : FatalError("Error deserializing Union type");
1759 0 : return false;
1760 : }
1761 : // Sentinel = 'TIPCRemoteStream'
1762 0 : if ((!((msg__)->ReadSentinel(iter__, 2978132448)))) {
1763 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1764 0 : return false;
1765 : }
1766 0 : return true;
1767 : }
1768 : default:
1769 : {
1770 0 : FatalError("unknown union type");
1771 0 : return false;
1772 : }
1773 : }
1774 : }
1775 :
1776 0 : auto PFlyWebPublishedServerParent::Write(
1777 : const InputStreamParams& v__,
1778 : Message* msg__) -> void
1779 : {
1780 : typedef InputStreamParams type__;
1781 0 : Write(int((v__).type()), msg__);
1782 : // Sentinel = 'InputStreamParams'
1783 0 : (msg__)->WriteSentinel(4114814015);
1784 :
1785 0 : switch ((v__).type()) {
1786 : case type__::TStringInputStreamParams:
1787 : {
1788 0 : Write((v__).get_StringInputStreamParams(), msg__);
1789 : // Sentinel = 'TStringInputStreamParams'
1790 0 : (msg__)->WriteSentinel(3395831651);
1791 0 : return;
1792 : }
1793 : case type__::TFileInputStreamParams:
1794 : {
1795 0 : Write((v__).get_FileInputStreamParams(), msg__);
1796 : // Sentinel = 'TFileInputStreamParams'
1797 0 : (msg__)->WriteSentinel(2543620282);
1798 0 : return;
1799 : }
1800 : case type__::TTemporaryFileInputStreamParams:
1801 : {
1802 0 : Write((v__).get_TemporaryFileInputStreamParams(), msg__);
1803 : // Sentinel = 'TTemporaryFileInputStreamParams'
1804 0 : (msg__)->WriteSentinel(587771548);
1805 0 : return;
1806 : }
1807 : case type__::TBufferedInputStreamParams:
1808 : {
1809 0 : Write((v__).get_BufferedInputStreamParams(), msg__);
1810 : // Sentinel = 'TBufferedInputStreamParams'
1811 0 : (msg__)->WriteSentinel(1698289307);
1812 0 : return;
1813 : }
1814 : case type__::TMIMEInputStreamParams:
1815 : {
1816 0 : Write((v__).get_MIMEInputStreamParams(), msg__);
1817 : // Sentinel = 'TMIMEInputStreamParams'
1818 0 : (msg__)->WriteSentinel(1948001964);
1819 0 : return;
1820 : }
1821 : case type__::TMultiplexInputStreamParams:
1822 : {
1823 0 : Write((v__).get_MultiplexInputStreamParams(), msg__);
1824 : // Sentinel = 'TMultiplexInputStreamParams'
1825 0 : (msg__)->WriteSentinel(3317853213);
1826 0 : return;
1827 : }
1828 : case type__::TSlicedInputStreamParams:
1829 : {
1830 0 : Write((v__).get_SlicedInputStreamParams(), msg__);
1831 : // Sentinel = 'TSlicedInputStreamParams'
1832 0 : (msg__)->WriteSentinel(445810472);
1833 0 : return;
1834 : }
1835 : case type__::TIPCBlobInputStreamParams:
1836 : {
1837 0 : Write((v__).get_IPCBlobInputStreamParams(), msg__);
1838 : // Sentinel = 'TIPCBlobInputStreamParams'
1839 0 : (msg__)->WriteSentinel(2436989998);
1840 0 : return;
1841 : }
1842 : default:
1843 : {
1844 0 : FatalError("unknown union type");
1845 0 : return;
1846 : }
1847 : }
1848 : }
1849 :
1850 0 : auto PFlyWebPublishedServerParent::Read(
1851 : InputStreamParams* v__,
1852 : const Message* msg__,
1853 : PickleIterator* iter__) -> bool
1854 : {
1855 : typedef InputStreamParams type__;
1856 : int type;
1857 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1858 0 : mozilla::ipc::UnionTypeReadError("InputStreamParams");
1859 0 : return false;
1860 : }
1861 : // Sentinel = 'InputStreamParams'
1862 0 : if ((!((msg__)->ReadSentinel(iter__, 4114814015)))) {
1863 0 : mozilla::ipc::SentinelReadError("InputStreamParams");
1864 0 : return false;
1865 : }
1866 :
1867 0 : switch (type) {
1868 : case type__::TStringInputStreamParams:
1869 : {
1870 0 : StringInputStreamParams tmp = StringInputStreamParams();
1871 0 : (*(v__)) = tmp;
1872 0 : if ((!(Read((&((v__)->get_StringInputStreamParams())), msg__, iter__)))) {
1873 0 : FatalError("Error deserializing Union type");
1874 0 : return false;
1875 : }
1876 : // Sentinel = 'TStringInputStreamParams'
1877 0 : if ((!((msg__)->ReadSentinel(iter__, 3395831651)))) {
1878 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1879 0 : return false;
1880 : }
1881 0 : return true;
1882 : }
1883 : case type__::TFileInputStreamParams:
1884 : {
1885 0 : FileInputStreamParams tmp = FileInputStreamParams();
1886 0 : (*(v__)) = tmp;
1887 0 : if ((!(Read((&((v__)->get_FileInputStreamParams())), msg__, iter__)))) {
1888 0 : FatalError("Error deserializing Union type");
1889 0 : return false;
1890 : }
1891 : // Sentinel = 'TFileInputStreamParams'
1892 0 : if ((!((msg__)->ReadSentinel(iter__, 2543620282)))) {
1893 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1894 0 : return false;
1895 : }
1896 0 : return true;
1897 : }
1898 : case type__::TTemporaryFileInputStreamParams:
1899 : {
1900 0 : TemporaryFileInputStreamParams tmp = TemporaryFileInputStreamParams();
1901 0 : (*(v__)) = tmp;
1902 0 : if ((!(Read((&((v__)->get_TemporaryFileInputStreamParams())), msg__, iter__)))) {
1903 0 : FatalError("Error deserializing Union type");
1904 0 : return false;
1905 : }
1906 : // Sentinel = 'TTemporaryFileInputStreamParams'
1907 0 : if ((!((msg__)->ReadSentinel(iter__, 587771548)))) {
1908 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1909 0 : return false;
1910 : }
1911 0 : return true;
1912 : }
1913 : case type__::TBufferedInputStreamParams:
1914 : {
1915 0 : BufferedInputStreamParams tmp = BufferedInputStreamParams();
1916 0 : (*(v__)) = tmp;
1917 0 : if ((!(Read((&((v__)->get_BufferedInputStreamParams())), msg__, iter__)))) {
1918 0 : FatalError("Error deserializing Union type");
1919 0 : return false;
1920 : }
1921 : // Sentinel = 'TBufferedInputStreamParams'
1922 0 : if ((!((msg__)->ReadSentinel(iter__, 1698289307)))) {
1923 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1924 0 : return false;
1925 : }
1926 0 : return true;
1927 : }
1928 : case type__::TMIMEInputStreamParams:
1929 : {
1930 0 : MIMEInputStreamParams tmp = MIMEInputStreamParams();
1931 0 : (*(v__)) = tmp;
1932 0 : if ((!(Read((&((v__)->get_MIMEInputStreamParams())), msg__, iter__)))) {
1933 0 : FatalError("Error deserializing Union type");
1934 0 : return false;
1935 : }
1936 : // Sentinel = 'TMIMEInputStreamParams'
1937 0 : if ((!((msg__)->ReadSentinel(iter__, 1948001964)))) {
1938 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1939 0 : return false;
1940 : }
1941 0 : return true;
1942 : }
1943 : case type__::TMultiplexInputStreamParams:
1944 : {
1945 0 : MultiplexInputStreamParams tmp = MultiplexInputStreamParams();
1946 0 : (*(v__)) = tmp;
1947 0 : if ((!(Read((&((v__)->get_MultiplexInputStreamParams())), msg__, iter__)))) {
1948 0 : FatalError("Error deserializing Union type");
1949 0 : return false;
1950 : }
1951 : // Sentinel = 'TMultiplexInputStreamParams'
1952 0 : if ((!((msg__)->ReadSentinel(iter__, 3317853213)))) {
1953 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1954 0 : return false;
1955 : }
1956 0 : return true;
1957 : }
1958 : case type__::TSlicedInputStreamParams:
1959 : {
1960 0 : SlicedInputStreamParams tmp = SlicedInputStreamParams();
1961 0 : (*(v__)) = tmp;
1962 0 : if ((!(Read((&((v__)->get_SlicedInputStreamParams())), msg__, iter__)))) {
1963 0 : FatalError("Error deserializing Union type");
1964 0 : return false;
1965 : }
1966 : // Sentinel = 'TSlicedInputStreamParams'
1967 0 : if ((!((msg__)->ReadSentinel(iter__, 445810472)))) {
1968 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1969 0 : return false;
1970 : }
1971 0 : return true;
1972 : }
1973 : case type__::TIPCBlobInputStreamParams:
1974 : {
1975 0 : IPCBlobInputStreamParams tmp = IPCBlobInputStreamParams();
1976 0 : (*(v__)) = tmp;
1977 0 : if ((!(Read((&((v__)->get_IPCBlobInputStreamParams())), msg__, iter__)))) {
1978 0 : FatalError("Error deserializing Union type");
1979 0 : return false;
1980 : }
1981 : // Sentinel = 'TIPCBlobInputStreamParams'
1982 0 : if ((!((msg__)->ReadSentinel(iter__, 2436989998)))) {
1983 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1984 0 : return false;
1985 : }
1986 0 : return true;
1987 : }
1988 : default:
1989 : {
1990 0 : FatalError("unknown union type");
1991 0 : return false;
1992 : }
1993 : }
1994 : }
1995 :
1996 0 : auto PFlyWebPublishedServerParent::Write(
1997 : const IPCInternalRequest& v__,
1998 : Message* msg__) -> void
1999 : {
2000 0 : Write((v__).urls(), msg__);
2001 : // Sentinel = 'urls'
2002 0 : (msg__)->WriteSentinel(4188095734);
2003 0 : Write((v__).method(), msg__);
2004 : // Sentinel = 'method'
2005 0 : (msg__)->WriteSentinel(1846382781);
2006 0 : Write((v__).headers(), msg__);
2007 : // Sentinel = 'headers'
2008 0 : (msg__)->WriteSentinel(4284175217);
2009 0 : Write((v__).headersGuard(), msg__);
2010 : // Sentinel = 'headersGuard'
2011 0 : (msg__)->WriteSentinel(2295054805);
2012 0 : Write((v__).referrer(), msg__);
2013 : // Sentinel = 'referrer'
2014 0 : (msg__)->WriteSentinel(3770987113);
2015 0 : Write((v__).referrerPolicy(), msg__);
2016 : // Sentinel = 'referrerPolicy'
2017 0 : (msg__)->WriteSentinel(2269890057);
2018 0 : Write((v__).mode(), msg__);
2019 : // Sentinel = 'mode'
2020 0 : (msg__)->WriteSentinel(3911367285);
2021 0 : Write((v__).credentials(), msg__);
2022 : // Sentinel = 'credentials'
2023 0 : (msg__)->WriteSentinel(3085848153);
2024 0 : Write((v__).contentPolicyType(), msg__);
2025 : // Sentinel = 'contentPolicyType'
2026 0 : (msg__)->WriteSentinel(3089607692);
2027 0 : Write((v__).requestCache(), msg__);
2028 : // Sentinel = 'requestCache'
2029 0 : (msg__)->WriteSentinel(397161175);
2030 0 : Write((v__).requestRedirect(), msg__);
2031 : // Sentinel = 'requestRedirect'
2032 0 : (msg__)->WriteSentinel(3935301184);
2033 0 : }
2034 :
2035 0 : auto PFlyWebPublishedServerParent::Read(
2036 : IPCInternalRequest* v__,
2037 : const Message* msg__,
2038 : PickleIterator* iter__) -> bool
2039 : {
2040 0 : if ((!(Read((&((v__)->urls())), msg__, iter__)))) {
2041 0 : FatalError("Error deserializing 'urls' (nsCString[]) member of 'IPCInternalRequest'");
2042 0 : return false;
2043 : }
2044 : // Sentinel = 'urls'
2045 0 : if ((!((msg__)->ReadSentinel(iter__, 4188095734)))) {
2046 0 : mozilla::ipc::SentinelReadError("Error deserializing 'urls' (nsCString[]) member of 'IPCInternalRequest'");
2047 0 : return false;
2048 : }
2049 0 : if ((!(Read((&((v__)->method())), msg__, iter__)))) {
2050 0 : FatalError("Error deserializing 'method' (nsCString) member of 'IPCInternalRequest'");
2051 0 : return false;
2052 : }
2053 : // Sentinel = 'method'
2054 0 : if ((!((msg__)->ReadSentinel(iter__, 1846382781)))) {
2055 0 : mozilla::ipc::SentinelReadError("Error deserializing 'method' (nsCString) member of 'IPCInternalRequest'");
2056 0 : return false;
2057 : }
2058 0 : if ((!(Read((&((v__)->headers())), msg__, iter__)))) {
2059 0 : FatalError("Error deserializing 'headers' (HeadersEntry[]) member of 'IPCInternalRequest'");
2060 0 : return false;
2061 : }
2062 : // Sentinel = 'headers'
2063 0 : if ((!((msg__)->ReadSentinel(iter__, 4284175217)))) {
2064 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headers' (HeadersEntry[]) member of 'IPCInternalRequest'");
2065 0 : return false;
2066 : }
2067 0 : if ((!(Read((&((v__)->headersGuard())), msg__, iter__)))) {
2068 0 : FatalError("Error deserializing 'headersGuard' (HeadersGuardEnum) member of 'IPCInternalRequest'");
2069 0 : return false;
2070 : }
2071 : // Sentinel = 'headersGuard'
2072 0 : if ((!((msg__)->ReadSentinel(iter__, 2295054805)))) {
2073 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headersGuard' (HeadersGuardEnum) member of 'IPCInternalRequest'");
2074 0 : return false;
2075 : }
2076 0 : if ((!(Read((&((v__)->referrer())), msg__, iter__)))) {
2077 0 : FatalError("Error deserializing 'referrer' (nsString) member of 'IPCInternalRequest'");
2078 0 : return false;
2079 : }
2080 : // Sentinel = 'referrer'
2081 0 : if ((!((msg__)->ReadSentinel(iter__, 3770987113)))) {
2082 0 : mozilla::ipc::SentinelReadError("Error deserializing 'referrer' (nsString) member of 'IPCInternalRequest'");
2083 0 : return false;
2084 : }
2085 0 : if ((!(Read((&((v__)->referrerPolicy())), msg__, iter__)))) {
2086 0 : FatalError("Error deserializing 'referrerPolicy' (ReferrerPolicy) member of 'IPCInternalRequest'");
2087 0 : return false;
2088 : }
2089 : // Sentinel = 'referrerPolicy'
2090 0 : if ((!((msg__)->ReadSentinel(iter__, 2269890057)))) {
2091 0 : mozilla::ipc::SentinelReadError("Error deserializing 'referrerPolicy' (ReferrerPolicy) member of 'IPCInternalRequest'");
2092 0 : return false;
2093 : }
2094 0 : if ((!(Read((&((v__)->mode())), msg__, iter__)))) {
2095 0 : FatalError("Error deserializing 'mode' (RequestMode) member of 'IPCInternalRequest'");
2096 0 : return false;
2097 : }
2098 : // Sentinel = 'mode'
2099 0 : if ((!((msg__)->ReadSentinel(iter__, 3911367285)))) {
2100 0 : mozilla::ipc::SentinelReadError("Error deserializing 'mode' (RequestMode) member of 'IPCInternalRequest'");
2101 0 : return false;
2102 : }
2103 0 : if ((!(Read((&((v__)->credentials())), msg__, iter__)))) {
2104 0 : FatalError("Error deserializing 'credentials' (RequestCredentials) member of 'IPCInternalRequest'");
2105 0 : return false;
2106 : }
2107 : // Sentinel = 'credentials'
2108 0 : if ((!((msg__)->ReadSentinel(iter__, 3085848153)))) {
2109 0 : mozilla::ipc::SentinelReadError("Error deserializing 'credentials' (RequestCredentials) member of 'IPCInternalRequest'");
2110 0 : return false;
2111 : }
2112 0 : if ((!(Read((&((v__)->contentPolicyType())), msg__, iter__)))) {
2113 0 : FatalError("Error deserializing 'contentPolicyType' (uint32_t) member of 'IPCInternalRequest'");
2114 0 : return false;
2115 : }
2116 : // Sentinel = 'contentPolicyType'
2117 0 : if ((!((msg__)->ReadSentinel(iter__, 3089607692)))) {
2118 0 : mozilla::ipc::SentinelReadError("Error deserializing 'contentPolicyType' (uint32_t) member of 'IPCInternalRequest'");
2119 0 : return false;
2120 : }
2121 0 : if ((!(Read((&((v__)->requestCache())), msg__, iter__)))) {
2122 0 : FatalError("Error deserializing 'requestCache' (RequestCache) member of 'IPCInternalRequest'");
2123 0 : return false;
2124 : }
2125 : // Sentinel = 'requestCache'
2126 0 : if ((!((msg__)->ReadSentinel(iter__, 397161175)))) {
2127 0 : mozilla::ipc::SentinelReadError("Error deserializing 'requestCache' (RequestCache) member of 'IPCInternalRequest'");
2128 0 : return false;
2129 : }
2130 0 : if ((!(Read((&((v__)->requestRedirect())), msg__, iter__)))) {
2131 0 : FatalError("Error deserializing 'requestRedirect' (RequestRedirect) member of 'IPCInternalRequest'");
2132 0 : return false;
2133 : }
2134 : // Sentinel = 'requestRedirect'
2135 0 : if ((!((msg__)->ReadSentinel(iter__, 3935301184)))) {
2136 0 : mozilla::ipc::SentinelReadError("Error deserializing 'requestRedirect' (RequestRedirect) member of 'IPCInternalRequest'");
2137 0 : return false;
2138 : }
2139 0 : return true;
2140 : }
2141 :
2142 0 : auto PFlyWebPublishedServerParent::Write(
2143 : const MIMEInputStreamParams& v__,
2144 : Message* msg__) -> void
2145 : {
2146 0 : Write((v__).optionalStream(), msg__);
2147 : // Sentinel = 'optionalStream'
2148 0 : (msg__)->WriteSentinel(1003718562);
2149 0 : Write((v__).headers(), msg__);
2150 : // Sentinel = 'headers'
2151 0 : (msg__)->WriteSentinel(4284175217);
2152 0 : Write((v__).startedReading(), msg__);
2153 : // Sentinel = 'startedReading'
2154 0 : (msg__)->WriteSentinel(1906875903);
2155 0 : }
2156 :
2157 0 : auto PFlyWebPublishedServerParent::Read(
2158 : MIMEInputStreamParams* v__,
2159 : const Message* msg__,
2160 : PickleIterator* iter__) -> bool
2161 : {
2162 0 : if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
2163 0 : FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
2164 0 : return false;
2165 : }
2166 : // Sentinel = 'optionalStream'
2167 0 : if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
2168 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
2169 0 : return false;
2170 : }
2171 0 : if ((!(Read((&((v__)->headers())), msg__, iter__)))) {
2172 0 : FatalError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
2173 0 : return false;
2174 : }
2175 : // Sentinel = 'headers'
2176 0 : if ((!((msg__)->ReadSentinel(iter__, 4284175217)))) {
2177 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
2178 0 : return false;
2179 : }
2180 0 : if ((!(Read((&((v__)->startedReading())), msg__, iter__)))) {
2181 0 : FatalError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
2182 0 : return false;
2183 : }
2184 : // Sentinel = 'startedReading'
2185 0 : if ((!((msg__)->ReadSentinel(iter__, 1906875903)))) {
2186 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
2187 0 : return false;
2188 : }
2189 0 : return true;
2190 : }
2191 :
2192 0 : auto PFlyWebPublishedServerParent::Write(
2193 : const OptionalIPCStream& v__,
2194 : Message* msg__) -> void
2195 : {
2196 : typedef OptionalIPCStream type__;
2197 0 : Write(int((v__).type()), msg__);
2198 : // Sentinel = 'OptionalIPCStream'
2199 0 : (msg__)->WriteSentinel(3815982647);
2200 :
2201 0 : switch ((v__).type()) {
2202 : case type__::TIPCStream:
2203 : {
2204 0 : Write((v__).get_IPCStream(), msg__);
2205 : // Sentinel = 'TIPCStream'
2206 0 : (msg__)->WriteSentinel(40701900);
2207 0 : return;
2208 : }
2209 : case type__::Tvoid_t:
2210 : {
2211 0 : Write((v__).get_void_t(), msg__);
2212 : // Sentinel = 'Tvoid_t'
2213 0 : (msg__)->WriteSentinel(3041273328);
2214 0 : return;
2215 : }
2216 : default:
2217 : {
2218 0 : FatalError("unknown union type");
2219 0 : return;
2220 : }
2221 : }
2222 : }
2223 :
2224 0 : auto PFlyWebPublishedServerParent::Read(
2225 : OptionalIPCStream* v__,
2226 : const Message* msg__,
2227 : PickleIterator* iter__) -> bool
2228 : {
2229 : typedef OptionalIPCStream type__;
2230 : int type;
2231 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2232 0 : mozilla::ipc::UnionTypeReadError("OptionalIPCStream");
2233 0 : return false;
2234 : }
2235 : // Sentinel = 'OptionalIPCStream'
2236 0 : if ((!((msg__)->ReadSentinel(iter__, 3815982647)))) {
2237 0 : mozilla::ipc::SentinelReadError("OptionalIPCStream");
2238 0 : return false;
2239 : }
2240 :
2241 0 : switch (type) {
2242 : case type__::TIPCStream:
2243 : {
2244 0 : IPCStream tmp = IPCStream();
2245 0 : (*(v__)) = tmp;
2246 0 : if ((!(Read((&((v__)->get_IPCStream())), msg__, iter__)))) {
2247 0 : FatalError("Error deserializing Union type");
2248 0 : return false;
2249 : }
2250 : // Sentinel = 'TIPCStream'
2251 0 : if ((!((msg__)->ReadSentinel(iter__, 40701900)))) {
2252 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2253 0 : return false;
2254 : }
2255 0 : return true;
2256 : }
2257 : case type__::Tvoid_t:
2258 : {
2259 : void_t tmp = void_t();
2260 0 : (*(v__)) = tmp;
2261 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
2262 0 : FatalError("Error deserializing Union type");
2263 0 : return false;
2264 : }
2265 : // Sentinel = 'Tvoid_t'
2266 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
2267 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2268 0 : return false;
2269 : }
2270 0 : return true;
2271 : }
2272 : default:
2273 : {
2274 0 : FatalError("unknown union type");
2275 0 : return false;
2276 : }
2277 : }
2278 : }
2279 :
2280 0 : auto PFlyWebPublishedServerParent::Write(
2281 : const StringInputStreamParams& v__,
2282 : Message* msg__) -> void
2283 : {
2284 0 : Write((v__).data(), msg__);
2285 : // Sentinel = 'data'
2286 0 : (msg__)->WriteSentinel(843352540);
2287 0 : }
2288 :
2289 0 : auto PFlyWebPublishedServerParent::Read(
2290 : StringInputStreamParams* v__,
2291 : const Message* msg__,
2292 : PickleIterator* iter__) -> bool
2293 : {
2294 0 : if ((!(Read((&((v__)->data())), msg__, iter__)))) {
2295 0 : FatalError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
2296 0 : return false;
2297 : }
2298 : // Sentinel = 'data'
2299 0 : if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
2300 0 : mozilla::ipc::SentinelReadError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
2301 0 : return false;
2302 : }
2303 0 : return true;
2304 : }
2305 :
2306 0 : auto PFlyWebPublishedServerParent::Write(
2307 : const IPCChannelInfo& v__,
2308 : Message* msg__) -> void
2309 : {
2310 0 : Write((v__).securityInfo(), msg__);
2311 : // Sentinel = 'securityInfo'
2312 0 : (msg__)->WriteSentinel(158838750);
2313 0 : }
2314 :
2315 0 : auto PFlyWebPublishedServerParent::Read(
2316 : IPCChannelInfo* v__,
2317 : const Message* msg__,
2318 : PickleIterator* iter__) -> bool
2319 : {
2320 0 : if ((!(Read((&((v__)->securityInfo())), msg__, iter__)))) {
2321 0 : FatalError("Error deserializing 'securityInfo' (nsCString) member of 'IPCChannelInfo'");
2322 0 : return false;
2323 : }
2324 : // Sentinel = 'securityInfo'
2325 0 : if ((!((msg__)->ReadSentinel(iter__, 158838750)))) {
2326 0 : mozilla::ipc::SentinelReadError("Error deserializing 'securityInfo' (nsCString) member of 'IPCChannelInfo'");
2327 0 : return false;
2328 : }
2329 0 : return true;
2330 : }
2331 :
2332 0 : auto PFlyWebPublishedServerParent::Write(
2333 : const MultiplexInputStreamParams& v__,
2334 : Message* msg__) -> void
2335 : {
2336 0 : Write((v__).streams(), msg__);
2337 : // Sentinel = 'streams'
2338 0 : (msg__)->WriteSentinel(4240383220);
2339 0 : Write((v__).currentStream(), msg__);
2340 : // Sentinel = 'currentStream'
2341 0 : (msg__)->WriteSentinel(682778074);
2342 0 : Write((v__).status(), msg__);
2343 : // Sentinel = 'status'
2344 0 : (msg__)->WriteSentinel(3714608576);
2345 0 : Write((v__).startedReadingCurrent(), msg__);
2346 : // Sentinel = 'startedReadingCurrent'
2347 0 : (msg__)->WriteSentinel(970542033);
2348 0 : }
2349 :
2350 0 : auto PFlyWebPublishedServerParent::Read(
2351 : MultiplexInputStreamParams* v__,
2352 : const Message* msg__,
2353 : PickleIterator* iter__) -> bool
2354 : {
2355 0 : if ((!(Read((&((v__)->streams())), msg__, iter__)))) {
2356 0 : FatalError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
2357 0 : return false;
2358 : }
2359 : // Sentinel = 'streams'
2360 0 : if ((!((msg__)->ReadSentinel(iter__, 4240383220)))) {
2361 0 : mozilla::ipc::SentinelReadError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
2362 0 : return false;
2363 : }
2364 0 : if ((!(Read((&((v__)->currentStream())), msg__, iter__)))) {
2365 0 : FatalError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
2366 0 : return false;
2367 : }
2368 : // Sentinel = 'currentStream'
2369 0 : if ((!((msg__)->ReadSentinel(iter__, 682778074)))) {
2370 0 : mozilla::ipc::SentinelReadError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
2371 0 : return false;
2372 : }
2373 0 : if ((!(Read((&((v__)->status())), msg__, iter__)))) {
2374 0 : FatalError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
2375 0 : return false;
2376 : }
2377 : // Sentinel = 'status'
2378 0 : if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
2379 0 : mozilla::ipc::SentinelReadError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
2380 0 : return false;
2381 : }
2382 0 : if ((!(Read((&((v__)->startedReadingCurrent())), msg__, iter__)))) {
2383 0 : FatalError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
2384 0 : return false;
2385 : }
2386 : // Sentinel = 'startedReadingCurrent'
2387 0 : if ((!((msg__)->ReadSentinel(iter__, 970542033)))) {
2388 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
2389 0 : return false;
2390 : }
2391 0 : return true;
2392 : }
2393 :
2394 0 : auto PFlyWebPublishedServerParent::Write(
2395 : const PFileDescriptorSetParent* v__,
2396 : Message* msg__,
2397 : bool nullable__) -> void
2398 : {
2399 : int32_t id;
2400 0 : if ((!(v__))) {
2401 0 : if ((!(nullable__))) {
2402 0 : FatalError("NULL actor value passed to non-nullable param");
2403 : }
2404 0 : id = 0;
2405 : }
2406 : else {
2407 0 : id = (v__)->Id();
2408 0 : if ((1) == (id)) {
2409 0 : FatalError("actor has been |delete|d");
2410 : }
2411 : }
2412 :
2413 0 : Write(id, msg__);
2414 0 : }
2415 :
2416 0 : auto PFlyWebPublishedServerParent::Read(
2417 : PFileDescriptorSetParent** v__,
2418 : const Message* msg__,
2419 : PickleIterator* iter__,
2420 : bool nullable__) -> bool
2421 : {
2422 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PFileDescriptorSet", PFileDescriptorSetMsgStart);
2423 0 : if ((actor).isNothing()) {
2424 0 : return false;
2425 : }
2426 :
2427 0 : (*(v__)) = static_cast<PFileDescriptorSetParent*>((actor).value());
2428 0 : return true;
2429 : }
2430 :
2431 0 : auto PFlyWebPublishedServerParent::Write(
2432 : const OptionalFileDescriptorSet& v__,
2433 : Message* msg__) -> void
2434 : {
2435 : typedef OptionalFileDescriptorSet type__;
2436 0 : Write(int((v__).type()), msg__);
2437 : // Sentinel = 'OptionalFileDescriptorSet'
2438 0 : (msg__)->WriteSentinel(955222862);
2439 :
2440 0 : switch ((v__).type()) {
2441 : case type__::TPFileDescriptorSetParent:
2442 : {
2443 0 : Write((v__).get_PFileDescriptorSetParent(), msg__, false);
2444 : // Sentinel = 'TPFileDescriptorSetParent'
2445 0 : (msg__)->WriteSentinel(143041934);
2446 0 : return;
2447 : }
2448 : case type__::TPFileDescriptorSetChild:
2449 : {
2450 0 : FatalError("wrong side!");
2451 0 : return;
2452 : }
2453 : case type__::TArrayOfFileDescriptor:
2454 : {
2455 0 : Write((v__).get_ArrayOfFileDescriptor(), msg__);
2456 : // Sentinel = 'TArrayOfFileDescriptor'
2457 0 : (msg__)->WriteSentinel(2366096715);
2458 0 : return;
2459 : }
2460 : case type__::Tvoid_t:
2461 : {
2462 0 : Write((v__).get_void_t(), msg__);
2463 : // Sentinel = 'Tvoid_t'
2464 0 : (msg__)->WriteSentinel(3041273328);
2465 0 : return;
2466 : }
2467 : default:
2468 : {
2469 0 : FatalError("unknown union type");
2470 0 : return;
2471 : }
2472 : }
2473 : }
2474 :
2475 0 : auto PFlyWebPublishedServerParent::Read(
2476 : OptionalFileDescriptorSet* v__,
2477 : const Message* msg__,
2478 : PickleIterator* iter__) -> bool
2479 : {
2480 : typedef OptionalFileDescriptorSet type__;
2481 : int type;
2482 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2483 0 : mozilla::ipc::UnionTypeReadError("OptionalFileDescriptorSet");
2484 0 : return false;
2485 : }
2486 : // Sentinel = 'OptionalFileDescriptorSet'
2487 0 : if ((!((msg__)->ReadSentinel(iter__, 955222862)))) {
2488 0 : mozilla::ipc::SentinelReadError("OptionalFileDescriptorSet");
2489 0 : return false;
2490 : }
2491 :
2492 0 : switch (type) {
2493 : case type__::TPFileDescriptorSetParent:
2494 : {
2495 0 : return false;
2496 : }
2497 : case type__::TPFileDescriptorSetChild:
2498 : {
2499 0 : PFileDescriptorSetParent* tmp = nullptr;
2500 0 : (*(v__)) = tmp;
2501 0 : if ((!(Read((&((v__)->get_PFileDescriptorSetParent())), msg__, iter__, false)))) {
2502 0 : FatalError("Error deserializing Union type");
2503 0 : return false;
2504 : }
2505 : // Sentinel = 'TPFileDescriptorSetChild'
2506 0 : if ((!((msg__)->ReadSentinel(iter__, 3477929935)))) {
2507 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2508 0 : return false;
2509 : }
2510 0 : return true;
2511 : }
2512 : case type__::TArrayOfFileDescriptor:
2513 : {
2514 0 : nsTArray<FileDescriptor> tmp;
2515 0 : (*(v__)) = tmp;
2516 0 : if ((!(Read((&((v__)->get_ArrayOfFileDescriptor())), msg__, iter__)))) {
2517 0 : FatalError("Error deserializing Union type");
2518 0 : return false;
2519 : }
2520 : // Sentinel = 'TArrayOfFileDescriptor'
2521 0 : if ((!((msg__)->ReadSentinel(iter__, 2366096715)))) {
2522 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2523 0 : return false;
2524 : }
2525 0 : return true;
2526 : }
2527 : case type__::Tvoid_t:
2528 : {
2529 : void_t tmp = void_t();
2530 0 : (*(v__)) = tmp;
2531 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
2532 0 : FatalError("Error deserializing Union type");
2533 0 : return false;
2534 : }
2535 : // Sentinel = 'Tvoid_t'
2536 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
2537 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2538 0 : return false;
2539 : }
2540 0 : return true;
2541 : }
2542 : default:
2543 : {
2544 0 : FatalError("unknown union type");
2545 0 : return false;
2546 : }
2547 : }
2548 : }
2549 :
2550 0 : auto PFlyWebPublishedServerParent::Write(
2551 : const PParentToChildStreamParent* v__,
2552 : Message* msg__,
2553 : bool nullable__) -> void
2554 : {
2555 : int32_t id;
2556 0 : if ((!(v__))) {
2557 0 : if ((!(nullable__))) {
2558 0 : FatalError("NULL actor value passed to non-nullable param");
2559 : }
2560 0 : id = 0;
2561 : }
2562 : else {
2563 0 : id = (v__)->Id();
2564 0 : if ((1) == (id)) {
2565 0 : FatalError("actor has been |delete|d");
2566 : }
2567 : }
2568 :
2569 0 : Write(id, msg__);
2570 0 : }
2571 :
2572 0 : auto PFlyWebPublishedServerParent::Read(
2573 : PParentToChildStreamParent** v__,
2574 : const Message* msg__,
2575 : PickleIterator* iter__,
2576 : bool nullable__) -> bool
2577 : {
2578 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PParentToChildStream", PParentToChildStreamMsgStart);
2579 0 : if ((actor).isNothing()) {
2580 0 : return false;
2581 : }
2582 :
2583 0 : (*(v__)) = static_cast<PParentToChildStreamParent*>((actor).value());
2584 0 : return true;
2585 : }
2586 :
2587 0 : auto PFlyWebPublishedServerParent::Write(
2588 : const nsTArray<HeadersEntry>& v__,
2589 : Message* msg__) -> void
2590 : {
2591 0 : uint32_t length = (v__).Length();
2592 0 : Write(length, msg__);
2593 : // Sentinel = ('length', 'HeadersEntry[]')
2594 0 : (msg__)->WriteSentinel(2248834657);
2595 :
2596 0 : for (auto& elem : v__) {
2597 0 : Write(elem, msg__);
2598 : // Sentinel = 'HeadersEntry[]'
2599 0 : (msg__)->WriteSentinel(732413696);
2600 : }
2601 0 : }
2602 :
2603 0 : auto PFlyWebPublishedServerParent::Read(
2604 : nsTArray<HeadersEntry>* v__,
2605 : const Message* msg__,
2606 : PickleIterator* iter__) -> bool
2607 : {
2608 0 : nsTArray<HeadersEntry> fa;
2609 : uint32_t length;
2610 0 : if ((!(Read((&(length)), msg__, iter__)))) {
2611 0 : mozilla::ipc::ArrayLengthReadError("HeadersEntry[]");
2612 0 : return false;
2613 : }
2614 : // Sentinel = ('length', 'HeadersEntry[]')
2615 0 : if ((!((msg__)->ReadSentinel(iter__, 2248834657)))) {
2616 0 : mozilla::ipc::SentinelReadError("HeadersEntry[]");
2617 0 : return false;
2618 : }
2619 :
2620 0 : HeadersEntry* elems = (fa).AppendElements(length);
2621 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
2622 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
2623 0 : FatalError("Error deserializing 'HeadersEntry[i]'");
2624 0 : return false;
2625 : }
2626 : // Sentinel = 'HeadersEntry[]'
2627 0 : if ((!((msg__)->ReadSentinel(iter__, 732413696)))) {
2628 0 : mozilla::ipc::SentinelReadError("Error deserializing 'HeadersEntry[i]'");
2629 0 : return false;
2630 : }
2631 : }
2632 0 : (v__)->SwapElements(fa);
2633 0 : return true;
2634 : }
2635 :
2636 0 : auto PFlyWebPublishedServerParent::Write(
2637 : const ContentPrincipalInfo& v__,
2638 : Message* msg__) -> void
2639 : {
2640 0 : Write((v__).attrs(), msg__);
2641 : // Sentinel = 'attrs'
2642 0 : (msg__)->WriteSentinel(3014987797);
2643 0 : Write((v__).originNoSuffix(), msg__);
2644 : // Sentinel = 'originNoSuffix'
2645 0 : (msg__)->WriteSentinel(2833071422);
2646 0 : Write((v__).spec(), msg__);
2647 : // Sentinel = 'spec'
2648 0 : (msg__)->WriteSentinel(1630740541);
2649 0 : }
2650 :
2651 0 : auto PFlyWebPublishedServerParent::Read(
2652 : ContentPrincipalInfo* v__,
2653 : const Message* msg__,
2654 : PickleIterator* iter__) -> bool
2655 : {
2656 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
2657 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
2658 0 : return false;
2659 : }
2660 : // Sentinel = 'attrs'
2661 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
2662 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
2663 0 : return false;
2664 : }
2665 0 : if ((!(Read((&((v__)->originNoSuffix())), msg__, iter__)))) {
2666 0 : FatalError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
2667 0 : return false;
2668 : }
2669 : // Sentinel = 'originNoSuffix'
2670 0 : if ((!((msg__)->ReadSentinel(iter__, 2833071422)))) {
2671 0 : mozilla::ipc::SentinelReadError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
2672 0 : return false;
2673 : }
2674 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
2675 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
2676 0 : return false;
2677 : }
2678 : // Sentinel = 'spec'
2679 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
2680 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
2681 0 : return false;
2682 : }
2683 0 : return true;
2684 : }
2685 :
2686 0 : auto PFlyWebPublishedServerParent::Write(
2687 : const BufferedInputStreamParams& v__,
2688 : Message* msg__) -> void
2689 : {
2690 0 : Write((v__).optionalStream(), msg__);
2691 : // Sentinel = 'optionalStream'
2692 0 : (msg__)->WriteSentinel(1003718562);
2693 0 : Write((v__).bufferSize(), msg__);
2694 : // Sentinel = 'bufferSize'
2695 0 : (msg__)->WriteSentinel(3444538779);
2696 0 : }
2697 :
2698 0 : auto PFlyWebPublishedServerParent::Read(
2699 : BufferedInputStreamParams* v__,
2700 : const Message* msg__,
2701 : PickleIterator* iter__) -> bool
2702 : {
2703 0 : if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
2704 0 : FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
2705 0 : return false;
2706 : }
2707 : // Sentinel = 'optionalStream'
2708 0 : if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
2709 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
2710 0 : return false;
2711 : }
2712 0 : if ((!(Read((&((v__)->bufferSize())), msg__, iter__)))) {
2713 0 : FatalError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
2714 0 : return false;
2715 : }
2716 : // Sentinel = 'bufferSize'
2717 0 : if ((!((msg__)->ReadSentinel(iter__, 3444538779)))) {
2718 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
2719 0 : return false;
2720 : }
2721 0 : return true;
2722 : }
2723 :
2724 0 : auto PFlyWebPublishedServerParent::Write(
2725 : const NullPrincipalInfo& v__,
2726 : Message* msg__) -> void
2727 : {
2728 0 : Write((v__).attrs(), msg__);
2729 : // Sentinel = 'attrs'
2730 0 : (msg__)->WriteSentinel(3014987797);
2731 0 : Write((v__).spec(), msg__);
2732 : // Sentinel = 'spec'
2733 0 : (msg__)->WriteSentinel(1630740541);
2734 0 : }
2735 :
2736 0 : auto PFlyWebPublishedServerParent::Read(
2737 : NullPrincipalInfo* v__,
2738 : const Message* msg__,
2739 : PickleIterator* iter__) -> bool
2740 : {
2741 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
2742 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
2743 0 : return false;
2744 : }
2745 : // Sentinel = 'attrs'
2746 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
2747 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
2748 0 : return false;
2749 : }
2750 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
2751 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
2752 0 : return false;
2753 : }
2754 : // Sentinel = 'spec'
2755 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
2756 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
2757 0 : return false;
2758 : }
2759 0 : return true;
2760 : }
2761 :
2762 0 : auto PFlyWebPublishedServerParent::Write(
2763 : const PChildToParentStreamParent* v__,
2764 : Message* msg__,
2765 : bool nullable__) -> void
2766 : {
2767 : int32_t id;
2768 0 : if ((!(v__))) {
2769 0 : if ((!(nullable__))) {
2770 0 : FatalError("NULL actor value passed to non-nullable param");
2771 : }
2772 0 : id = 0;
2773 : }
2774 : else {
2775 0 : id = (v__)->Id();
2776 0 : if ((1) == (id)) {
2777 0 : FatalError("actor has been |delete|d");
2778 : }
2779 : }
2780 :
2781 0 : Write(id, msg__);
2782 0 : }
2783 :
2784 0 : auto PFlyWebPublishedServerParent::Read(
2785 : PChildToParentStreamParent** v__,
2786 : const Message* msg__,
2787 : PickleIterator* iter__,
2788 : bool nullable__) -> bool
2789 : {
2790 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PChildToParentStream", PChildToParentStreamMsgStart);
2791 0 : if ((actor).isNothing()) {
2792 0 : return false;
2793 : }
2794 :
2795 0 : (*(v__)) = static_cast<PChildToParentStreamParent*>((actor).value());
2796 0 : return true;
2797 : }
2798 :
2799 :
2800 :
2801 : } // namespace dom
2802 : } // namespace mozilla
|