Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/PWebBrowserPersistDocumentChild.h"
8 :
9 : #include "mozilla/dom/PContentChild.h"
10 : #include "mozilla/PWebBrowserPersistResourcesChild.h"
11 : #include "mozilla/PWebBrowserPersistSerializeChild.h"
12 : #include "mozilla/ipc/PFileDescriptorSetChild.h"
13 : #include "mozilla/ipc/PChildToParentStreamChild.h"
14 : #include "mozilla/ipc/PParentToChildStreamChild.h"
15 :
16 : #include "nsIFile.h"
17 : #include "GeckoProfiler.h"
18 :
19 : namespace mozilla {
20 :
21 :
22 0 : auto PWebBrowserPersistDocumentChild::RecvPWebBrowserPersistResourcesConstructor(PWebBrowserPersistResourcesChild* actor) -> mozilla::ipc::IPCResult
23 : {
24 0 : return IPC_OK();
25 : }
26 :
27 0 : auto PWebBrowserPersistDocumentChild::RecvPWebBrowserPersistSerializeConstructor(
28 : PWebBrowserPersistSerializeChild* actor,
29 : const WebBrowserPersistURIMap& aMap,
30 : const nsCString& aRequestedContentType,
31 : const uint32_t& aEncoderFlags,
32 : const uint32_t& aWrapColumn) -> mozilla::ipc::IPCResult
33 : {
34 0 : return IPC_OK();
35 : }
36 :
37 0 : auto PWebBrowserPersistDocumentChild::Recv__delete__() -> mozilla::ipc::IPCResult
38 : {
39 0 : return IPC_OK();
40 : }
41 :
42 0 : auto PWebBrowserPersistDocumentChild::ActorDestroy(ActorDestroyReason aWhy) -> void
43 : {
44 0 : }
45 :
46 0 : MOZ_IMPLICIT PWebBrowserPersistDocumentChild::PWebBrowserPersistDocumentChild() :
47 : mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
48 0 : mState(PWebBrowserPersistDocument::__Dead)
49 : {
50 0 : MOZ_COUNT_CTOR(PWebBrowserPersistDocumentChild);
51 0 : }
52 :
53 0 : PWebBrowserPersistDocumentChild::~PWebBrowserPersistDocumentChild()
54 : {
55 0 : MOZ_COUNT_DTOR(PWebBrowserPersistDocumentChild);
56 0 : }
57 :
58 0 : auto PWebBrowserPersistDocumentChild::Manager() const -> PContentChild*
59 : {
60 0 : return static_cast<PContentChild*>(IProtocol::Manager());
61 : }
62 :
63 0 : auto PWebBrowserPersistDocumentChild::ManagedPWebBrowserPersistResourcesChild(nsTArray<PWebBrowserPersistResourcesChild*>& aArr) const -> void
64 : {
65 0 : (mManagedPWebBrowserPersistResourcesChild).ToArray(aArr);
66 0 : }
67 :
68 0 : auto PWebBrowserPersistDocumentChild::ManagedPWebBrowserPersistResourcesChild() const -> const ManagedContainer<PWebBrowserPersistResourcesChild>&
69 : {
70 0 : return mManagedPWebBrowserPersistResourcesChild;
71 : }
72 :
73 0 : auto PWebBrowserPersistDocumentChild::ManagedPWebBrowserPersistSerializeChild(nsTArray<PWebBrowserPersistSerializeChild*>& aArr) const -> void
74 : {
75 0 : (mManagedPWebBrowserPersistSerializeChild).ToArray(aArr);
76 0 : }
77 :
78 0 : auto PWebBrowserPersistDocumentChild::ManagedPWebBrowserPersistSerializeChild() const -> const ManagedContainer<PWebBrowserPersistSerializeChild>&
79 : {
80 0 : return mManagedPWebBrowserPersistSerializeChild;
81 : }
82 :
83 0 : auto PWebBrowserPersistDocumentChild::SendAttributes(
84 : const WebBrowserPersistDocumentAttrs& aAttrs,
85 : const OptionalIPCStream& stream) -> bool
86 : {
87 0 : IPC::Message* msg__ = PWebBrowserPersistDocument::Msg_Attributes(Id());
88 :
89 0 : Write(aAttrs, msg__);
90 : // Sentinel = 'aAttrs'
91 0 : (msg__)->WriteSentinel(2405661289);
92 0 : Write(stream, msg__);
93 : // Sentinel = 'stream'
94 0 : (msg__)->WriteSentinel(4152748422);
95 :
96 :
97 :
98 :
99 0 : if (mozilla::ipc::LoggingEnabledFor("PWebBrowserPersistDocumentChild")) {
100 0 : mozilla::ipc::LogMessageForProtocol("PWebBrowserPersistDocumentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
101 : }
102 0 : AUTO_PROFILER_LABEL("PWebBrowserPersistDocument::Msg_Attributes", OTHER);
103 0 : PWebBrowserPersistDocument::Transition(PWebBrowserPersistDocument::Msg_Attributes__ID, (&(mState)));
104 :
105 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
106 0 : return sendok__;
107 : }
108 :
109 0 : auto PWebBrowserPersistDocumentChild::SendInitFailure(const nsresult& aStatus) -> bool
110 : {
111 0 : IPC::Message* msg__ = PWebBrowserPersistDocument::Msg_InitFailure(Id());
112 :
113 0 : Write(aStatus, msg__);
114 : // Sentinel = 'aStatus'
115 0 : (msg__)->WriteSentinel(236002576);
116 :
117 :
118 :
119 :
120 0 : if (mozilla::ipc::LoggingEnabledFor("PWebBrowserPersistDocumentChild")) {
121 0 : mozilla::ipc::LogMessageForProtocol("PWebBrowserPersistDocumentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
122 : }
123 0 : AUTO_PROFILER_LABEL("PWebBrowserPersistDocument::Msg_InitFailure", OTHER);
124 0 : PWebBrowserPersistDocument::Transition(PWebBrowserPersistDocument::Msg_InitFailure__ID, (&(mState)));
125 :
126 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
127 0 : return sendok__;
128 : }
129 :
130 0 : auto PWebBrowserPersistDocumentChild::RemoveManagee(
131 : int32_t aProtocolId,
132 : ProtocolBase* aListener) -> void
133 : {
134 0 : switch (aProtocolId) {
135 : case PWebBrowserPersistResourcesMsgStart:
136 : {
137 0 : PWebBrowserPersistResourcesChild* actor = static_cast<PWebBrowserPersistResourcesChild*>(aListener);
138 0 : auto& container = mManagedPWebBrowserPersistResourcesChild;
139 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
140 :
141 0 : (container).RemoveEntry(actor);
142 0 : DeallocPWebBrowserPersistResourcesChild(actor);
143 0 : return;
144 : }
145 : case PWebBrowserPersistSerializeMsgStart:
146 : {
147 0 : PWebBrowserPersistSerializeChild* actor = static_cast<PWebBrowserPersistSerializeChild*>(aListener);
148 0 : auto& container = mManagedPWebBrowserPersistSerializeChild;
149 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
150 :
151 0 : (container).RemoveEntry(actor);
152 0 : DeallocPWebBrowserPersistSerializeChild(actor);
153 0 : return;
154 : }
155 : default:
156 : {
157 0 : FatalError("unreached");
158 0 : return;
159 : }
160 : }
161 : }
162 :
163 0 : auto PWebBrowserPersistDocumentChild::OnMessageReceived(const Message& msg__) -> PWebBrowserPersistDocumentChild::Result
164 : {
165 0 : switch ((msg__).type()) {
166 : case PWebBrowserPersistDocument::Msg_SetPersistFlags__ID:
167 : {
168 0 : if (mozilla::ipc::LoggingEnabledFor("PWebBrowserPersistDocumentChild")) {
169 0 : mozilla::ipc::LogMessageForProtocol("PWebBrowserPersistDocumentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
170 : }
171 0 : AUTO_PROFILER_LABEL("PWebBrowserPersistDocument::Msg_SetPersistFlags", OTHER);
172 :
173 0 : PickleIterator iter__(msg__);
174 : uint32_t aNewFlags;
175 :
176 0 : if ((!(Read((&(aNewFlags)), (&(msg__)), (&(iter__)))))) {
177 0 : FatalError("Error deserializing 'uint32_t'");
178 0 : return MsgValueError;
179 : }
180 : // Sentinel = 'aNewFlags'
181 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4032949079)))) {
182 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
183 0 : return MsgValueError;
184 : }
185 0 : (msg__).EndRead(iter__, (msg__).type());
186 0 : PWebBrowserPersistDocument::Transition(PWebBrowserPersistDocument::Msg_SetPersistFlags__ID, (&(mState)));
187 0 : if ((!(RecvSetPersistFlags(mozilla::Move(aNewFlags))))) {
188 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
189 : // Error handled in mozilla::ipc::IPCResult
190 0 : return MsgProcessingError;
191 : }
192 :
193 0 : return MsgProcessed;
194 : }
195 : case PWebBrowserPersistDocument::Msg_PWebBrowserPersistResourcesConstructor__ID:
196 : {
197 0 : if (mozilla::ipc::LoggingEnabledFor("PWebBrowserPersistDocumentChild")) {
198 0 : mozilla::ipc::LogMessageForProtocol("PWebBrowserPersistDocumentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
199 : }
200 0 : AUTO_PROFILER_LABEL("PWebBrowserPersistDocument::Msg_PWebBrowserPersistResourcesConstructor", OTHER);
201 :
202 0 : PickleIterator iter__(msg__);
203 : ActorHandle handle__;
204 : PWebBrowserPersistResourcesChild* actor;
205 :
206 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
207 0 : FatalError("Error deserializing 'ActorHandle'");
208 0 : return MsgValueError;
209 : }
210 : // Sentinel = 'actor'
211 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
212 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
213 0 : return MsgValueError;
214 : }
215 0 : (msg__).EndRead(iter__, (msg__).type());
216 0 : PWebBrowserPersistDocument::Transition(PWebBrowserPersistDocument::Msg_PWebBrowserPersistResourcesConstructor__ID, (&(mState)));
217 0 : actor = AllocPWebBrowserPersistResourcesChild();
218 0 : if ((!(actor))) {
219 0 : NS_WARNING("Error constructing actor PWebBrowserPersistResourcesChild");
220 0 : return MsgValueError;
221 : }
222 0 : (actor)->SetManager(this);
223 0 : RegisterID(actor, (handle__).mId);
224 0 : (actor)->SetIPCChannel(GetIPCChannel());
225 0 : (mManagedPWebBrowserPersistResourcesChild).PutEntry(actor);
226 0 : (actor)->mState = mozilla::PWebBrowserPersistResources::__Start;
227 :
228 0 : if ((!(RecvPWebBrowserPersistResourcesConstructor(mozilla::Move(actor))))) {
229 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
230 : // Error handled in mozilla::ipc::IPCResult
231 0 : return MsgProcessingError;
232 : }
233 :
234 0 : return MsgProcessed;
235 : }
236 : case PWebBrowserPersistDocument::Msg_PWebBrowserPersistSerializeConstructor__ID:
237 : {
238 0 : if (mozilla::ipc::LoggingEnabledFor("PWebBrowserPersistDocumentChild")) {
239 0 : mozilla::ipc::LogMessageForProtocol("PWebBrowserPersistDocumentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
240 : }
241 0 : AUTO_PROFILER_LABEL("PWebBrowserPersistDocument::Msg_PWebBrowserPersistSerializeConstructor", OTHER);
242 :
243 0 : PickleIterator iter__(msg__);
244 : ActorHandle handle__;
245 : PWebBrowserPersistSerializeChild* actor;
246 0 : WebBrowserPersistURIMap aMap;
247 0 : nsCString aRequestedContentType;
248 : uint32_t aEncoderFlags;
249 : uint32_t aWrapColumn;
250 :
251 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
252 0 : FatalError("Error deserializing 'ActorHandle'");
253 0 : return MsgValueError;
254 : }
255 : // Sentinel = 'actor'
256 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
257 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
258 0 : return MsgValueError;
259 : }
260 0 : if ((!(Read((&(aMap)), (&(msg__)), (&(iter__)))))) {
261 0 : FatalError("Error deserializing 'WebBrowserPersistURIMap'");
262 0 : return MsgValueError;
263 : }
264 : // Sentinel = 'aMap'
265 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3570578933)))) {
266 0 : mozilla::ipc::SentinelReadError("Error deserializing 'WebBrowserPersistURIMap'");
267 0 : return MsgValueError;
268 : }
269 0 : if ((!(Read((&(aRequestedContentType)), (&(msg__)), (&(iter__)))))) {
270 0 : FatalError("Error deserializing 'nsCString'");
271 0 : return MsgValueError;
272 : }
273 : // Sentinel = 'aRequestedContentType'
274 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 193281947)))) {
275 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
276 0 : return MsgValueError;
277 : }
278 0 : if ((!(Read((&(aEncoderFlags)), (&(msg__)), (&(iter__)))))) {
279 0 : FatalError("Error deserializing 'uint32_t'");
280 0 : return MsgValueError;
281 : }
282 : // Sentinel = 'aEncoderFlags'
283 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1146908877)))) {
284 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
285 0 : return MsgValueError;
286 : }
287 0 : if ((!(Read((&(aWrapColumn)), (&(msg__)), (&(iter__)))))) {
288 0 : FatalError("Error deserializing 'uint32_t'");
289 0 : return MsgValueError;
290 : }
291 : // Sentinel = 'aWrapColumn'
292 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3600022264)))) {
293 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
294 0 : return MsgValueError;
295 : }
296 0 : (msg__).EndRead(iter__, (msg__).type());
297 0 : PWebBrowserPersistDocument::Transition(PWebBrowserPersistDocument::Msg_PWebBrowserPersistSerializeConstructor__ID, (&(mState)));
298 0 : actor = AllocPWebBrowserPersistSerializeChild(aMap, aRequestedContentType, aEncoderFlags, aWrapColumn);
299 0 : if ((!(actor))) {
300 0 : NS_WARNING("Error constructing actor PWebBrowserPersistSerializeChild");
301 0 : return MsgValueError;
302 : }
303 0 : (actor)->SetManager(this);
304 0 : RegisterID(actor, (handle__).mId);
305 0 : (actor)->SetIPCChannel(GetIPCChannel());
306 0 : (mManagedPWebBrowserPersistSerializeChild).PutEntry(actor);
307 0 : (actor)->mState = mozilla::PWebBrowserPersistSerialize::__Start;
308 :
309 0 : if ((!(RecvPWebBrowserPersistSerializeConstructor(mozilla::Move(actor), mozilla::Move(aMap), mozilla::Move(aRequestedContentType), mozilla::Move(aEncoderFlags), mozilla::Move(aWrapColumn))))) {
310 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
311 : // Error handled in mozilla::ipc::IPCResult
312 0 : return MsgProcessingError;
313 : }
314 :
315 0 : return MsgProcessed;
316 : }
317 : case PWebBrowserPersistDocument::Msg___delete____ID:
318 : {
319 0 : if (mozilla::ipc::LoggingEnabledFor("PWebBrowserPersistDocumentChild")) {
320 0 : mozilla::ipc::LogMessageForProtocol("PWebBrowserPersistDocumentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
321 : }
322 0 : AUTO_PROFILER_LABEL("PWebBrowserPersistDocument::Msg___delete__", OTHER);
323 :
324 0 : PickleIterator iter__(msg__);
325 : PWebBrowserPersistDocumentChild* actor;
326 :
327 0 : if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
328 0 : FatalError("Error deserializing 'PWebBrowserPersistDocumentChild'");
329 0 : return MsgValueError;
330 : }
331 : // Sentinel = 'actor'
332 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
333 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PWebBrowserPersistDocumentChild'");
334 0 : return MsgValueError;
335 : }
336 0 : (msg__).EndRead(iter__, (msg__).type());
337 0 : PWebBrowserPersistDocument::Transition(PWebBrowserPersistDocument::Msg___delete____ID, (&(mState)));
338 0 : if ((!(Recv__delete__()))) {
339 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
340 : // Error handled in mozilla::ipc::IPCResult
341 0 : return MsgProcessingError;
342 : }
343 :
344 :
345 0 : IProtocol* mgr = (actor)->Manager();
346 0 : (actor)->DestroySubtree(Deletion);
347 0 : (actor)->DeallocSubtree();
348 0 : (mgr)->RemoveManagee(PWebBrowserPersistDocumentMsgStart, actor);
349 :
350 0 : return MsgProcessed;
351 : }
352 : default:
353 : {
354 0 : return MsgNotKnown;
355 : }
356 : }
357 : }
358 :
359 0 : auto PWebBrowserPersistDocumentChild::OnMessageReceived(
360 : const Message& msg__,
361 : Message*& reply__) -> PWebBrowserPersistDocumentChild::Result
362 : {
363 0 : return MsgNotKnown;
364 : }
365 :
366 0 : auto PWebBrowserPersistDocumentChild::OnCallReceived(
367 : const Message& msg__,
368 : Message*& reply__) -> PWebBrowserPersistDocumentChild::Result
369 : {
370 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
371 : return MsgNotKnown;
372 : }
373 :
374 0 : auto PWebBrowserPersistDocumentChild::GetProtocolTypeId() -> int32_t
375 : {
376 0 : return PWebBrowserPersistDocumentMsgStart;
377 : }
378 :
379 0 : auto PWebBrowserPersistDocumentChild::ProtocolName() const -> const char*
380 : {
381 0 : return "PWebBrowserPersistDocumentChild";
382 : }
383 :
384 0 : auto PWebBrowserPersistDocumentChild::DestroySubtree(ActorDestroyReason why) -> void
385 : {
386 : // Unregister from our manager.
387 0 : Unregister(Id());
388 :
389 0 : ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
390 :
391 : {
392 : // Recursively shutting down PWebBrowserPersistResources kids
393 0 : nsTArray<PWebBrowserPersistResourcesChild*> kids;
394 : // Accumulate kids into a stable structure to iterate over
395 0 : ManagedPWebBrowserPersistResourcesChild(kids);
396 0 : for (auto& kid : kids) {
397 : // Guarding against a child removing a sibling from the list during the iteration.
398 0 : if ((mManagedPWebBrowserPersistResourcesChild).Contains(kid)) {
399 0 : (kid)->DestroySubtree(subtreewhy);
400 : }
401 : }
402 : }
403 : {
404 : // Recursively shutting down PWebBrowserPersistSerialize kids
405 0 : nsTArray<PWebBrowserPersistSerializeChild*> kids;
406 : // Accumulate kids into a stable structure to iterate over
407 0 : ManagedPWebBrowserPersistSerializeChild(kids);
408 0 : for (auto& kid : kids) {
409 : // Guarding against a child removing a sibling from the list during the iteration.
410 0 : if ((mManagedPWebBrowserPersistSerializeChild).Contains(kid)) {
411 0 : (kid)->DestroySubtree(subtreewhy);
412 : }
413 : }
414 : }
415 :
416 : // Reject owning pending promises.
417 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
418 :
419 : // Finally, destroy "us".
420 0 : ActorDestroy(why);
421 0 : }
422 :
423 0 : auto PWebBrowserPersistDocumentChild::DeallocSubtree() -> void
424 : {
425 : {
426 : // Recursively deleting PWebBrowserPersistResources kids
427 0 : for (auto iter = (mManagedPWebBrowserPersistResourcesChild).Iter(); (!((iter).Done())); (iter).Next()) {
428 0 : (((iter).Get())->GetKey())->DeallocSubtree();
429 : }
430 :
431 0 : for (auto iter = (mManagedPWebBrowserPersistResourcesChild).Iter(); (!((iter).Done())); (iter).Next()) {
432 0 : DeallocPWebBrowserPersistResourcesChild(((iter).Get())->GetKey());
433 : }
434 0 : (mManagedPWebBrowserPersistResourcesChild).Clear();
435 : }
436 : {
437 : // Recursively deleting PWebBrowserPersistSerialize kids
438 0 : for (auto iter = (mManagedPWebBrowserPersistSerializeChild).Iter(); (!((iter).Done())); (iter).Next()) {
439 0 : (((iter).Get())->GetKey())->DeallocSubtree();
440 : }
441 :
442 0 : for (auto iter = (mManagedPWebBrowserPersistSerializeChild).Iter(); (!((iter).Done())); (iter).Next()) {
443 0 : DeallocPWebBrowserPersistSerializeChild(((iter).Get())->GetKey());
444 : }
445 0 : (mManagedPWebBrowserPersistSerializeChild).Clear();
446 : }
447 0 : }
448 :
449 0 : auto PWebBrowserPersistDocumentChild::Write(
450 : const WebBrowserPersistURIMapEntry& v__,
451 : Message* msg__) -> void
452 : {
453 0 : Write((v__).mapFrom(), msg__);
454 : // Sentinel = 'mapFrom'
455 0 : (msg__)->WriteSentinel(2234736001);
456 0 : Write((v__).mapTo(), msg__);
457 : // Sentinel = 'mapTo'
458 0 : (msg__)->WriteSentinel(4068146524);
459 0 : }
460 :
461 0 : auto PWebBrowserPersistDocumentChild::Read(
462 : WebBrowserPersistURIMapEntry* v__,
463 : const Message* msg__,
464 : PickleIterator* iter__) -> bool
465 : {
466 0 : if ((!(Read((&((v__)->mapFrom())), msg__, iter__)))) {
467 0 : FatalError("Error deserializing 'mapFrom' (nsCString) member of 'WebBrowserPersistURIMapEntry'");
468 0 : return false;
469 : }
470 : // Sentinel = 'mapFrom'
471 0 : if ((!((msg__)->ReadSentinel(iter__, 2234736001)))) {
472 0 : mozilla::ipc::SentinelReadError("Error deserializing 'mapFrom' (nsCString) member of 'WebBrowserPersistURIMapEntry'");
473 0 : return false;
474 : }
475 0 : if ((!(Read((&((v__)->mapTo())), msg__, iter__)))) {
476 0 : FatalError("Error deserializing 'mapTo' (nsCString) member of 'WebBrowserPersistURIMapEntry'");
477 0 : return false;
478 : }
479 : // Sentinel = 'mapTo'
480 0 : if ((!((msg__)->ReadSentinel(iter__, 4068146524)))) {
481 0 : mozilla::ipc::SentinelReadError("Error deserializing 'mapTo' (nsCString) member of 'WebBrowserPersistURIMapEntry'");
482 0 : return false;
483 : }
484 0 : return true;
485 : }
486 :
487 0 : auto PWebBrowserPersistDocumentChild::Write(
488 : const nsTArray<InputStreamParams>& v__,
489 : Message* msg__) -> void
490 : {
491 0 : uint32_t length = (v__).Length();
492 0 : Write(length, msg__);
493 : // Sentinel = ('length', 'InputStreamParams[]')
494 0 : (msg__)->WriteSentinel(348334258);
495 :
496 0 : for (auto& elem : v__) {
497 0 : Write(elem, msg__);
498 : // Sentinel = 'InputStreamParams[]'
499 0 : (msg__)->WriteSentinel(2927715197);
500 : }
501 0 : }
502 :
503 0 : auto PWebBrowserPersistDocumentChild::Read(
504 : nsTArray<InputStreamParams>* v__,
505 : const Message* msg__,
506 : PickleIterator* iter__) -> bool
507 : {
508 0 : nsTArray<InputStreamParams> fa;
509 : uint32_t length;
510 0 : if ((!(Read((&(length)), msg__, iter__)))) {
511 0 : mozilla::ipc::ArrayLengthReadError("InputStreamParams[]");
512 0 : return false;
513 : }
514 : // Sentinel = ('length', 'InputStreamParams[]')
515 0 : if ((!((msg__)->ReadSentinel(iter__, 348334258)))) {
516 0 : mozilla::ipc::SentinelReadError("InputStreamParams[]");
517 0 : return false;
518 : }
519 :
520 0 : InputStreamParams* elems = (fa).AppendElements(length);
521 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
522 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
523 0 : FatalError("Error deserializing 'InputStreamParams[i]'");
524 0 : return false;
525 : }
526 : // Sentinel = 'InputStreamParams[]'
527 0 : if ((!((msg__)->ReadSentinel(iter__, 2927715197)))) {
528 0 : mozilla::ipc::SentinelReadError("Error deserializing 'InputStreamParams[i]'");
529 0 : return false;
530 : }
531 : }
532 0 : (v__)->SwapElements(fa);
533 0 : return true;
534 : }
535 :
536 0 : auto PWebBrowserPersistDocumentChild::Write(
537 : const OptionalInputStreamParams& v__,
538 : Message* msg__) -> void
539 : {
540 : typedef OptionalInputStreamParams type__;
541 0 : Write(int((v__).type()), msg__);
542 : // Sentinel = 'OptionalInputStreamParams'
543 0 : (msg__)->WriteSentinel(1355174443);
544 :
545 0 : switch ((v__).type()) {
546 : case type__::Tvoid_t:
547 : {
548 0 : Write((v__).get_void_t(), msg__);
549 : // Sentinel = 'Tvoid_t'
550 0 : (msg__)->WriteSentinel(3041273328);
551 0 : return;
552 : }
553 : case type__::TInputStreamParams:
554 : {
555 0 : Write((v__).get_InputStreamParams(), msg__);
556 : // Sentinel = 'TInputStreamParams'
557 0 : (msg__)->WriteSentinel(55652096);
558 0 : return;
559 : }
560 : default:
561 : {
562 0 : FatalError("unknown union type");
563 0 : return;
564 : }
565 : }
566 : }
567 :
568 0 : auto PWebBrowserPersistDocumentChild::Read(
569 : OptionalInputStreamParams* v__,
570 : const Message* msg__,
571 : PickleIterator* iter__) -> bool
572 : {
573 : typedef OptionalInputStreamParams type__;
574 : int type;
575 0 : if ((!(Read((&(type)), msg__, iter__)))) {
576 0 : mozilla::ipc::UnionTypeReadError("OptionalInputStreamParams");
577 0 : return false;
578 : }
579 : // Sentinel = 'OptionalInputStreamParams'
580 0 : if ((!((msg__)->ReadSentinel(iter__, 1355174443)))) {
581 0 : mozilla::ipc::SentinelReadError("OptionalInputStreamParams");
582 0 : return false;
583 : }
584 :
585 0 : switch (type) {
586 : case type__::Tvoid_t:
587 : {
588 : void_t tmp = void_t();
589 0 : (*(v__)) = tmp;
590 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
591 0 : FatalError("Error deserializing Union type");
592 0 : return false;
593 : }
594 : // Sentinel = 'Tvoid_t'
595 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
596 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
597 0 : return false;
598 : }
599 0 : return true;
600 : }
601 : case type__::TInputStreamParams:
602 : {
603 0 : InputStreamParams tmp = InputStreamParams();
604 0 : (*(v__)) = tmp;
605 0 : if ((!(Read((&((v__)->get_InputStreamParams())), msg__, iter__)))) {
606 0 : FatalError("Error deserializing Union type");
607 0 : return false;
608 : }
609 : // Sentinel = 'TInputStreamParams'
610 0 : if ((!((msg__)->ReadSentinel(iter__, 55652096)))) {
611 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
612 0 : return false;
613 : }
614 0 : return true;
615 : }
616 : default:
617 : {
618 0 : FatalError("unknown union type");
619 0 : return false;
620 : }
621 : }
622 : }
623 :
624 0 : auto PWebBrowserPersistDocumentChild::Write(
625 : const PWebBrowserPersistSerializeChild* v__,
626 : Message* msg__,
627 : bool nullable__) -> void
628 : {
629 : int32_t id;
630 0 : if ((!(v__))) {
631 0 : if ((!(nullable__))) {
632 0 : FatalError("NULL actor value passed to non-nullable param");
633 : }
634 0 : id = 0;
635 : }
636 : else {
637 0 : id = (v__)->Id();
638 0 : if ((1) == (id)) {
639 0 : FatalError("actor has been |delete|d");
640 : }
641 : }
642 :
643 0 : Write(id, msg__);
644 0 : }
645 :
646 0 : auto PWebBrowserPersistDocumentChild::Read(
647 : PWebBrowserPersistSerializeChild** v__,
648 : const Message* msg__,
649 : PickleIterator* iter__,
650 : bool nullable__) -> bool
651 : {
652 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PWebBrowserPersistSerialize", PWebBrowserPersistSerializeMsgStart);
653 0 : if ((actor).isNothing()) {
654 0 : return false;
655 : }
656 :
657 0 : (*(v__)) = static_cast<PWebBrowserPersistSerializeChild*>((actor).value());
658 0 : return true;
659 : }
660 :
661 0 : auto PWebBrowserPersistDocumentChild::Write(
662 : const IPCRemoteStream& v__,
663 : Message* msg__) -> void
664 : {
665 0 : Write((v__).delayedStart(), msg__);
666 : // Sentinel = 'delayedStart'
667 0 : (msg__)->WriteSentinel(1491822294);
668 0 : Write((v__).stream(), msg__);
669 : // Sentinel = 'stream'
670 0 : (msg__)->WriteSentinel(4152748422);
671 0 : }
672 :
673 0 : auto PWebBrowserPersistDocumentChild::Read(
674 : IPCRemoteStream* v__,
675 : const Message* msg__,
676 : PickleIterator* iter__) -> bool
677 : {
678 0 : if ((!(Read((&((v__)->delayedStart())), msg__, iter__)))) {
679 0 : FatalError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
680 0 : return false;
681 : }
682 : // Sentinel = 'delayedStart'
683 0 : if ((!((msg__)->ReadSentinel(iter__, 1491822294)))) {
684 0 : mozilla::ipc::SentinelReadError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
685 0 : return false;
686 : }
687 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
688 0 : FatalError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
689 0 : return false;
690 : }
691 : // Sentinel = 'stream'
692 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
693 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
694 0 : return false;
695 : }
696 0 : return true;
697 : }
698 :
699 0 : auto PWebBrowserPersistDocumentChild::Write(
700 : const FileInputStreamParams& v__,
701 : Message* msg__) -> void
702 : {
703 0 : Write((v__).fileDescriptorIndex(), msg__);
704 : // Sentinel = 'fileDescriptorIndex'
705 0 : (msg__)->WriteSentinel(587329112);
706 0 : Write((v__).behaviorFlags(), msg__);
707 : // Sentinel = 'behaviorFlags'
708 0 : (msg__)->WriteSentinel(2404401962);
709 0 : Write((v__).ioFlags(), msg__);
710 : // Sentinel = 'ioFlags'
711 0 : (msg__)->WriteSentinel(1483009730);
712 0 : }
713 :
714 0 : auto PWebBrowserPersistDocumentChild::Read(
715 : FileInputStreamParams* v__,
716 : const Message* msg__,
717 : PickleIterator* iter__) -> bool
718 : {
719 0 : if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
720 0 : FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
721 0 : return false;
722 : }
723 : // Sentinel = 'fileDescriptorIndex'
724 0 : if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
725 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
726 0 : return false;
727 : }
728 0 : if ((!(Read((&((v__)->behaviorFlags())), msg__, iter__)))) {
729 0 : FatalError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
730 0 : return false;
731 : }
732 : // Sentinel = 'behaviorFlags'
733 0 : if ((!((msg__)->ReadSentinel(iter__, 2404401962)))) {
734 0 : mozilla::ipc::SentinelReadError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
735 0 : return false;
736 : }
737 0 : if ((!(Read((&((v__)->ioFlags())), msg__, iter__)))) {
738 0 : FatalError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
739 0 : return false;
740 : }
741 : // Sentinel = 'ioFlags'
742 0 : if ((!((msg__)->ReadSentinel(iter__, 1483009730)))) {
743 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
744 0 : return false;
745 : }
746 0 : return true;
747 : }
748 :
749 0 : auto PWebBrowserPersistDocumentChild::Write(
750 : const PWebBrowserPersistDocumentChild* v__,
751 : Message* msg__,
752 : bool nullable__) -> void
753 : {
754 : int32_t id;
755 0 : if ((!(v__))) {
756 0 : if ((!(nullable__))) {
757 0 : FatalError("NULL actor value passed to non-nullable param");
758 : }
759 0 : id = 0;
760 : }
761 : else {
762 0 : id = (v__)->Id();
763 0 : if ((1) == (id)) {
764 0 : FatalError("actor has been |delete|d");
765 : }
766 : }
767 :
768 0 : Write(id, msg__);
769 0 : }
770 :
771 0 : auto PWebBrowserPersistDocumentChild::Read(
772 : PWebBrowserPersistDocumentChild** v__,
773 : const Message* msg__,
774 : PickleIterator* iter__,
775 : bool nullable__) -> bool
776 : {
777 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PWebBrowserPersistDocument", PWebBrowserPersistDocumentMsgStart);
778 0 : if ((actor).isNothing()) {
779 0 : return false;
780 : }
781 :
782 0 : (*(v__)) = static_cast<PWebBrowserPersistDocumentChild*>((actor).value());
783 0 : return true;
784 : }
785 :
786 0 : auto PWebBrowserPersistDocumentChild::Write(
787 : const IPCBlobInputStreamParams& v__,
788 : Message* msg__) -> void
789 : {
790 0 : Write((v__).id(), msg__);
791 : // Sentinel = 'id'
792 0 : (msg__)->WriteSentinel(2794505629);
793 0 : }
794 :
795 0 : auto PWebBrowserPersistDocumentChild::Read(
796 : IPCBlobInputStreamParams* v__,
797 : const Message* msg__,
798 : PickleIterator* iter__) -> bool
799 : {
800 0 : if ((!(Read((&((v__)->id())), msg__, iter__)))) {
801 0 : FatalError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
802 0 : return false;
803 : }
804 : // Sentinel = 'id'
805 0 : if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
806 0 : mozilla::ipc::SentinelReadError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
807 0 : return false;
808 : }
809 0 : return true;
810 : }
811 :
812 0 : auto PWebBrowserPersistDocumentChild::Write(
813 : const WebBrowserPersistDocumentAttrs& v__,
814 : Message* msg__) -> void
815 : {
816 0 : Write((v__).isPrivate(), msg__);
817 : // Sentinel = 'isPrivate'
818 0 : (msg__)->WriteSentinel(4033294520);
819 0 : Write((v__).documentURI(), msg__);
820 : // Sentinel = 'documentURI'
821 0 : (msg__)->WriteSentinel(3585823520);
822 0 : Write((v__).baseURI(), msg__);
823 : // Sentinel = 'baseURI'
824 0 : (msg__)->WriteSentinel(1836705256);
825 0 : Write((v__).contentType(), msg__);
826 : // Sentinel = 'contentType'
827 0 : (msg__)->WriteSentinel(2092571716);
828 0 : Write((v__).characterSet(), msg__);
829 : // Sentinel = 'characterSet'
830 0 : (msg__)->WriteSentinel(2220949387);
831 0 : Write((v__).title(), msg__);
832 : // Sentinel = 'title'
833 0 : (msg__)->WriteSentinel(4272139303);
834 0 : Write((v__).referrer(), msg__);
835 : // Sentinel = 'referrer'
836 0 : (msg__)->WriteSentinel(3770987113);
837 0 : Write((v__).contentDisposition(), msg__);
838 : // Sentinel = 'contentDisposition'
839 0 : (msg__)->WriteSentinel(2551304062);
840 0 : Write((v__).cacheKey(), msg__);
841 : // Sentinel = 'cacheKey'
842 0 : (msg__)->WriteSentinel(249191363);
843 0 : Write((v__).persistFlags(), msg__);
844 : // Sentinel = 'persistFlags'
845 0 : (msg__)->WriteSentinel(276845325);
846 0 : }
847 :
848 0 : auto PWebBrowserPersistDocumentChild::Read(
849 : WebBrowserPersistDocumentAttrs* v__,
850 : const Message* msg__,
851 : PickleIterator* iter__) -> bool
852 : {
853 0 : if ((!(Read((&((v__)->isPrivate())), msg__, iter__)))) {
854 0 : FatalError("Error deserializing 'isPrivate' (bool) member of 'WebBrowserPersistDocumentAttrs'");
855 0 : return false;
856 : }
857 : // Sentinel = 'isPrivate'
858 0 : if ((!((msg__)->ReadSentinel(iter__, 4033294520)))) {
859 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isPrivate' (bool) member of 'WebBrowserPersistDocumentAttrs'");
860 0 : return false;
861 : }
862 0 : if ((!(Read((&((v__)->documentURI())), msg__, iter__)))) {
863 0 : FatalError("Error deserializing 'documentURI' (nsCString) member of 'WebBrowserPersistDocumentAttrs'");
864 0 : return false;
865 : }
866 : // Sentinel = 'documentURI'
867 0 : if ((!((msg__)->ReadSentinel(iter__, 3585823520)))) {
868 0 : mozilla::ipc::SentinelReadError("Error deserializing 'documentURI' (nsCString) member of 'WebBrowserPersistDocumentAttrs'");
869 0 : return false;
870 : }
871 0 : if ((!(Read((&((v__)->baseURI())), msg__, iter__)))) {
872 0 : FatalError("Error deserializing 'baseURI' (nsCString) member of 'WebBrowserPersistDocumentAttrs'");
873 0 : return false;
874 : }
875 : // Sentinel = 'baseURI'
876 0 : if ((!((msg__)->ReadSentinel(iter__, 1836705256)))) {
877 0 : mozilla::ipc::SentinelReadError("Error deserializing 'baseURI' (nsCString) member of 'WebBrowserPersistDocumentAttrs'");
878 0 : return false;
879 : }
880 0 : if ((!(Read((&((v__)->contentType())), msg__, iter__)))) {
881 0 : FatalError("Error deserializing 'contentType' (nsCString) member of 'WebBrowserPersistDocumentAttrs'");
882 0 : return false;
883 : }
884 : // Sentinel = 'contentType'
885 0 : if ((!((msg__)->ReadSentinel(iter__, 2092571716)))) {
886 0 : mozilla::ipc::SentinelReadError("Error deserializing 'contentType' (nsCString) member of 'WebBrowserPersistDocumentAttrs'");
887 0 : return false;
888 : }
889 0 : if ((!(Read((&((v__)->characterSet())), msg__, iter__)))) {
890 0 : FatalError("Error deserializing 'characterSet' (nsCString) member of 'WebBrowserPersistDocumentAttrs'");
891 0 : return false;
892 : }
893 : // Sentinel = 'characterSet'
894 0 : if ((!((msg__)->ReadSentinel(iter__, 2220949387)))) {
895 0 : mozilla::ipc::SentinelReadError("Error deserializing 'characterSet' (nsCString) member of 'WebBrowserPersistDocumentAttrs'");
896 0 : return false;
897 : }
898 0 : if ((!(Read((&((v__)->title())), msg__, iter__)))) {
899 0 : FatalError("Error deserializing 'title' (nsString) member of 'WebBrowserPersistDocumentAttrs'");
900 0 : return false;
901 : }
902 : // Sentinel = 'title'
903 0 : if ((!((msg__)->ReadSentinel(iter__, 4272139303)))) {
904 0 : mozilla::ipc::SentinelReadError("Error deserializing 'title' (nsString) member of 'WebBrowserPersistDocumentAttrs'");
905 0 : return false;
906 : }
907 0 : if ((!(Read((&((v__)->referrer())), msg__, iter__)))) {
908 0 : FatalError("Error deserializing 'referrer' (nsString) member of 'WebBrowserPersistDocumentAttrs'");
909 0 : return false;
910 : }
911 : // Sentinel = 'referrer'
912 0 : if ((!((msg__)->ReadSentinel(iter__, 3770987113)))) {
913 0 : mozilla::ipc::SentinelReadError("Error deserializing 'referrer' (nsString) member of 'WebBrowserPersistDocumentAttrs'");
914 0 : return false;
915 : }
916 0 : if ((!(Read((&((v__)->contentDisposition())), msg__, iter__)))) {
917 0 : FatalError("Error deserializing 'contentDisposition' (nsString) member of 'WebBrowserPersistDocumentAttrs'");
918 0 : return false;
919 : }
920 : // Sentinel = 'contentDisposition'
921 0 : if ((!((msg__)->ReadSentinel(iter__, 2551304062)))) {
922 0 : mozilla::ipc::SentinelReadError("Error deserializing 'contentDisposition' (nsString) member of 'WebBrowserPersistDocumentAttrs'");
923 0 : return false;
924 : }
925 0 : if ((!(Read((&((v__)->cacheKey())), msg__, iter__)))) {
926 0 : FatalError("Error deserializing 'cacheKey' (uint32_t) member of 'WebBrowserPersistDocumentAttrs'");
927 0 : return false;
928 : }
929 : // Sentinel = 'cacheKey'
930 0 : if ((!((msg__)->ReadSentinel(iter__, 249191363)))) {
931 0 : mozilla::ipc::SentinelReadError("Error deserializing 'cacheKey' (uint32_t) member of 'WebBrowserPersistDocumentAttrs'");
932 0 : return false;
933 : }
934 0 : if ((!(Read((&((v__)->persistFlags())), msg__, iter__)))) {
935 0 : FatalError("Error deserializing 'persistFlags' (uint32_t) member of 'WebBrowserPersistDocumentAttrs'");
936 0 : return false;
937 : }
938 : // Sentinel = 'persistFlags'
939 0 : if ((!((msg__)->ReadSentinel(iter__, 276845325)))) {
940 0 : mozilla::ipc::SentinelReadError("Error deserializing 'persistFlags' (uint32_t) member of 'WebBrowserPersistDocumentAttrs'");
941 0 : return false;
942 : }
943 0 : return true;
944 : }
945 :
946 0 : auto PWebBrowserPersistDocumentChild::Write(
947 : const PWebBrowserPersistResourcesChild* v__,
948 : Message* msg__,
949 : bool nullable__) -> void
950 : {
951 : int32_t id;
952 0 : if ((!(v__))) {
953 0 : if ((!(nullable__))) {
954 0 : FatalError("NULL actor value passed to non-nullable param");
955 : }
956 0 : id = 0;
957 : }
958 : else {
959 0 : id = (v__)->Id();
960 0 : if ((1) == (id)) {
961 0 : FatalError("actor has been |delete|d");
962 : }
963 : }
964 :
965 0 : Write(id, msg__);
966 0 : }
967 :
968 0 : auto PWebBrowserPersistDocumentChild::Read(
969 : PWebBrowserPersistResourcesChild** v__,
970 : const Message* msg__,
971 : PickleIterator* iter__,
972 : bool nullable__) -> bool
973 : {
974 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PWebBrowserPersistResources", PWebBrowserPersistResourcesMsgStart);
975 0 : if ((actor).isNothing()) {
976 0 : return false;
977 : }
978 :
979 0 : (*(v__)) = static_cast<PWebBrowserPersistResourcesChild*>((actor).value());
980 0 : return true;
981 : }
982 :
983 0 : auto PWebBrowserPersistDocumentChild::Write(
984 : const InputStreamParamsWithFds& v__,
985 : Message* msg__) -> void
986 : {
987 0 : Write((v__).stream(), msg__);
988 : // Sentinel = 'stream'
989 0 : (msg__)->WriteSentinel(4152748422);
990 0 : Write((v__).optionalFds(), msg__);
991 : // Sentinel = 'optionalFds'
992 0 : (msg__)->WriteSentinel(1021803302);
993 0 : }
994 :
995 0 : auto PWebBrowserPersistDocumentChild::Read(
996 : InputStreamParamsWithFds* v__,
997 : const Message* msg__,
998 : PickleIterator* iter__) -> bool
999 : {
1000 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
1001 0 : FatalError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
1002 0 : return false;
1003 : }
1004 : // Sentinel = 'stream'
1005 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
1006 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
1007 0 : return false;
1008 : }
1009 0 : if ((!(Read((&((v__)->optionalFds())), msg__, iter__)))) {
1010 0 : FatalError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
1011 0 : return false;
1012 : }
1013 : // Sentinel = 'optionalFds'
1014 0 : if ((!((msg__)->ReadSentinel(iter__, 1021803302)))) {
1015 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
1016 0 : return false;
1017 : }
1018 0 : return true;
1019 : }
1020 :
1021 0 : auto PWebBrowserPersistDocumentChild::Write(
1022 : const nsTArray<FileDescriptor>& v__,
1023 : Message* msg__) -> void
1024 : {
1025 0 : uint32_t length = (v__).Length();
1026 0 : Write(length, msg__);
1027 : // Sentinel = ('length', 'FileDescriptor[]')
1028 0 : (msg__)->WriteSentinel(1697726450);
1029 :
1030 0 : for (auto& elem : v__) {
1031 0 : Write(elem, msg__);
1032 : // Sentinel = 'FileDescriptor[]'
1033 0 : (msg__)->WriteSentinel(1630221245);
1034 : }
1035 0 : }
1036 :
1037 0 : auto PWebBrowserPersistDocumentChild::Read(
1038 : nsTArray<FileDescriptor>* v__,
1039 : const Message* msg__,
1040 : PickleIterator* iter__) -> bool
1041 : {
1042 0 : nsTArray<FileDescriptor> fa;
1043 : uint32_t length;
1044 0 : if ((!(Read((&(length)), msg__, iter__)))) {
1045 0 : mozilla::ipc::ArrayLengthReadError("FileDescriptor[]");
1046 0 : return false;
1047 : }
1048 : // Sentinel = ('length', 'FileDescriptor[]')
1049 0 : if ((!((msg__)->ReadSentinel(iter__, 1697726450)))) {
1050 0 : mozilla::ipc::SentinelReadError("FileDescriptor[]");
1051 0 : return false;
1052 : }
1053 :
1054 0 : FileDescriptor* elems = (fa).AppendElements(length);
1055 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
1056 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
1057 0 : FatalError("Error deserializing 'FileDescriptor[i]'");
1058 0 : return false;
1059 : }
1060 : // Sentinel = 'FileDescriptor[]'
1061 0 : if ((!((msg__)->ReadSentinel(iter__, 1630221245)))) {
1062 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor[i]'");
1063 0 : return false;
1064 : }
1065 : }
1066 0 : (v__)->SwapElements(fa);
1067 0 : return true;
1068 : }
1069 :
1070 0 : auto PWebBrowserPersistDocumentChild::Write(
1071 : const nsTArray<HeaderEntry>& v__,
1072 : Message* msg__) -> void
1073 : {
1074 0 : uint32_t length = (v__).Length();
1075 0 : Write(length, msg__);
1076 : // Sentinel = ('length', 'HeaderEntry[]')
1077 0 : (msg__)->WriteSentinel(2689457705);
1078 :
1079 0 : for (auto& elem : v__) {
1080 0 : Write(elem, msg__);
1081 : // Sentinel = 'HeaderEntry[]'
1082 0 : (msg__)->WriteSentinel(454836120);
1083 : }
1084 0 : }
1085 :
1086 0 : auto PWebBrowserPersistDocumentChild::Read(
1087 : nsTArray<HeaderEntry>* v__,
1088 : const Message* msg__,
1089 : PickleIterator* iter__) -> bool
1090 : {
1091 0 : nsTArray<HeaderEntry> fa;
1092 : uint32_t length;
1093 0 : if ((!(Read((&(length)), msg__, iter__)))) {
1094 0 : mozilla::ipc::ArrayLengthReadError("HeaderEntry[]");
1095 0 : return false;
1096 : }
1097 : // Sentinel = ('length', 'HeaderEntry[]')
1098 0 : if ((!((msg__)->ReadSentinel(iter__, 2689457705)))) {
1099 0 : mozilla::ipc::SentinelReadError("HeaderEntry[]");
1100 0 : return false;
1101 : }
1102 :
1103 0 : HeaderEntry* elems = (fa).AppendElements(length);
1104 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
1105 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
1106 0 : FatalError("Error deserializing 'HeaderEntry[i]'");
1107 0 : return false;
1108 : }
1109 : // Sentinel = 'HeaderEntry[]'
1110 0 : if ((!((msg__)->ReadSentinel(iter__, 454836120)))) {
1111 0 : mozilla::ipc::SentinelReadError("Error deserializing 'HeaderEntry[i]'");
1112 0 : return false;
1113 : }
1114 : }
1115 0 : (v__)->SwapElements(fa);
1116 0 : return true;
1117 : }
1118 :
1119 0 : auto PWebBrowserPersistDocumentChild::Write(
1120 : const SlicedInputStreamParams& v__,
1121 : Message* msg__) -> void
1122 : {
1123 0 : Write((v__).stream(), msg__);
1124 : // Sentinel = 'stream'
1125 0 : (msg__)->WriteSentinel(4152748422);
1126 0 : Write((v__).start(), msg__);
1127 : // Sentinel = 'start'
1128 0 : (msg__)->WriteSentinel(2088644401);
1129 0 : Write((v__).length(), msg__);
1130 : // Sentinel = 'length'
1131 0 : (msg__)->WriteSentinel(1726618354);
1132 0 : Write((v__).curPos(), msg__);
1133 : // Sentinel = 'curPos'
1134 0 : (msg__)->WriteSentinel(4042140974);
1135 0 : Write((v__).closed(), msg__);
1136 : // Sentinel = 'closed'
1137 0 : (msg__)->WriteSentinel(561249462);
1138 0 : }
1139 :
1140 0 : auto PWebBrowserPersistDocumentChild::Read(
1141 : SlicedInputStreamParams* v__,
1142 : const Message* msg__,
1143 : PickleIterator* iter__) -> bool
1144 : {
1145 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
1146 0 : FatalError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
1147 0 : return false;
1148 : }
1149 : // Sentinel = 'stream'
1150 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
1151 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
1152 0 : return false;
1153 : }
1154 0 : if ((!(Read((&((v__)->start())), msg__, iter__)))) {
1155 0 : FatalError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
1156 0 : return false;
1157 : }
1158 : // Sentinel = 'start'
1159 0 : if ((!((msg__)->ReadSentinel(iter__, 2088644401)))) {
1160 0 : mozilla::ipc::SentinelReadError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
1161 0 : return false;
1162 : }
1163 0 : if ((!(Read((&((v__)->length())), msg__, iter__)))) {
1164 0 : FatalError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
1165 0 : return false;
1166 : }
1167 : // Sentinel = 'length'
1168 0 : if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
1169 0 : mozilla::ipc::SentinelReadError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
1170 0 : return false;
1171 : }
1172 0 : if ((!(Read((&((v__)->curPos())), msg__, iter__)))) {
1173 0 : FatalError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
1174 0 : return false;
1175 : }
1176 : // Sentinel = 'curPos'
1177 0 : if ((!((msg__)->ReadSentinel(iter__, 4042140974)))) {
1178 0 : mozilla::ipc::SentinelReadError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
1179 0 : return false;
1180 : }
1181 0 : if ((!(Read((&((v__)->closed())), msg__, iter__)))) {
1182 0 : FatalError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
1183 0 : return false;
1184 : }
1185 : // Sentinel = 'closed'
1186 0 : if ((!((msg__)->ReadSentinel(iter__, 561249462)))) {
1187 0 : mozilla::ipc::SentinelReadError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
1188 0 : return false;
1189 : }
1190 0 : return true;
1191 : }
1192 :
1193 0 : auto PWebBrowserPersistDocumentChild::Write(
1194 : const IPCRemoteStreamType& v__,
1195 : Message* msg__) -> void
1196 : {
1197 : typedef IPCRemoteStreamType type__;
1198 0 : Write(int((v__).type()), msg__);
1199 : // Sentinel = 'IPCRemoteStreamType'
1200 0 : (msg__)->WriteSentinel(391674895);
1201 :
1202 0 : switch ((v__).type()) {
1203 : case type__::TPChildToParentStreamParent:
1204 : {
1205 0 : FatalError("wrong side!");
1206 0 : return;
1207 : }
1208 : case type__::TPChildToParentStreamChild:
1209 : {
1210 0 : Write((v__).get_PChildToParentStreamChild(), msg__, false);
1211 : // Sentinel = 'TPChildToParentStreamChild'
1212 0 : (msg__)->WriteSentinel(1882094295);
1213 0 : return;
1214 : }
1215 : case type__::TPParentToChildStreamParent:
1216 : {
1217 0 : FatalError("wrong side!");
1218 0 : return;
1219 : }
1220 : case type__::TPParentToChildStreamChild:
1221 : {
1222 0 : Write((v__).get_PParentToChildStreamChild(), msg__, false);
1223 : // Sentinel = 'TPParentToChildStreamChild'
1224 0 : (msg__)->WriteSentinel(190098493);
1225 0 : return;
1226 : }
1227 : default:
1228 : {
1229 0 : FatalError("unknown union type");
1230 0 : return;
1231 : }
1232 : }
1233 : }
1234 :
1235 0 : auto PWebBrowserPersistDocumentChild::Read(
1236 : IPCRemoteStreamType* v__,
1237 : const Message* msg__,
1238 : PickleIterator* iter__) -> bool
1239 : {
1240 : typedef IPCRemoteStreamType type__;
1241 : int type;
1242 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1243 0 : mozilla::ipc::UnionTypeReadError("IPCRemoteStreamType");
1244 0 : return false;
1245 : }
1246 : // Sentinel = 'IPCRemoteStreamType'
1247 0 : if ((!((msg__)->ReadSentinel(iter__, 391674895)))) {
1248 0 : mozilla::ipc::SentinelReadError("IPCRemoteStreamType");
1249 0 : return false;
1250 : }
1251 :
1252 0 : switch (type) {
1253 : case type__::TPChildToParentStreamParent:
1254 : {
1255 0 : PChildToParentStreamChild* tmp = nullptr;
1256 0 : (*(v__)) = tmp;
1257 0 : if ((!(Read((&((v__)->get_PChildToParentStreamChild())), msg__, iter__, false)))) {
1258 0 : FatalError("Error deserializing Union type");
1259 0 : return false;
1260 : }
1261 : // Sentinel = 'TPChildToParentStreamParent'
1262 0 : if ((!((msg__)->ReadSentinel(iter__, 2724777622)))) {
1263 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1264 0 : return false;
1265 : }
1266 0 : return true;
1267 : }
1268 : case type__::TPChildToParentStreamChild:
1269 : {
1270 0 : return false;
1271 : }
1272 : case type__::TPParentToChildStreamParent:
1273 : {
1274 0 : PParentToChildStreamChild* tmp = nullptr;
1275 0 : (*(v__)) = tmp;
1276 0 : if ((!(Read((&((v__)->get_PParentToChildStreamChild())), msg__, iter__, false)))) {
1277 0 : FatalError("Error deserializing Union type");
1278 0 : return false;
1279 : }
1280 : // Sentinel = 'TPParentToChildStreamParent'
1281 0 : if ((!((msg__)->ReadSentinel(iter__, 3335986876)))) {
1282 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1283 0 : return false;
1284 : }
1285 0 : return true;
1286 : }
1287 : case type__::TPParentToChildStreamChild:
1288 : {
1289 0 : return false;
1290 : }
1291 : default:
1292 : {
1293 0 : FatalError("unknown union type");
1294 0 : return false;
1295 : }
1296 : }
1297 : }
1298 :
1299 0 : auto PWebBrowserPersistDocumentChild::Write(
1300 : const TemporaryFileInputStreamParams& v__,
1301 : Message* msg__) -> void
1302 : {
1303 0 : Write((v__).fileDescriptorIndex(), msg__);
1304 : // Sentinel = 'fileDescriptorIndex'
1305 0 : (msg__)->WriteSentinel(587329112);
1306 0 : Write((v__).startPos(), msg__);
1307 : // Sentinel = 'startPos'
1308 0 : (msg__)->WriteSentinel(557207962);
1309 0 : Write((v__).endPos(), msg__);
1310 : // Sentinel = 'endPos'
1311 0 : (msg__)->WriteSentinel(881536245);
1312 0 : }
1313 :
1314 0 : auto PWebBrowserPersistDocumentChild::Read(
1315 : TemporaryFileInputStreamParams* v__,
1316 : const Message* msg__,
1317 : PickleIterator* iter__) -> bool
1318 : {
1319 0 : if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
1320 0 : FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
1321 0 : return false;
1322 : }
1323 : // Sentinel = 'fileDescriptorIndex'
1324 0 : if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
1325 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
1326 0 : return false;
1327 : }
1328 0 : if ((!(Read((&((v__)->startPos())), msg__, iter__)))) {
1329 0 : FatalError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
1330 0 : return false;
1331 : }
1332 : // Sentinel = 'startPos'
1333 0 : if ((!((msg__)->ReadSentinel(iter__, 557207962)))) {
1334 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
1335 0 : return false;
1336 : }
1337 0 : if ((!(Read((&((v__)->endPos())), msg__, iter__)))) {
1338 0 : FatalError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
1339 0 : return false;
1340 : }
1341 : // Sentinel = 'endPos'
1342 0 : if ((!((msg__)->ReadSentinel(iter__, 881536245)))) {
1343 0 : mozilla::ipc::SentinelReadError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
1344 0 : return false;
1345 : }
1346 0 : return true;
1347 : }
1348 :
1349 0 : auto PWebBrowserPersistDocumentChild::Write(
1350 : const WebBrowserPersistURIMap& v__,
1351 : Message* msg__) -> void
1352 : {
1353 0 : Write((v__).mapURIs(), msg__);
1354 : // Sentinel = 'mapURIs'
1355 0 : (msg__)->WriteSentinel(1481862252);
1356 0 : Write((v__).targetBaseURI(), msg__);
1357 : // Sentinel = 'targetBaseURI'
1358 0 : (msg__)->WriteSentinel(1355746871);
1359 0 : }
1360 :
1361 0 : auto PWebBrowserPersistDocumentChild::Read(
1362 : WebBrowserPersistURIMap* v__,
1363 : const Message* msg__,
1364 : PickleIterator* iter__) -> bool
1365 : {
1366 0 : if ((!(Read((&((v__)->mapURIs())), msg__, iter__)))) {
1367 0 : FatalError("Error deserializing 'mapURIs' (WebBrowserPersistURIMapEntry[]) member of 'WebBrowserPersistURIMap'");
1368 0 : return false;
1369 : }
1370 : // Sentinel = 'mapURIs'
1371 0 : if ((!((msg__)->ReadSentinel(iter__, 1481862252)))) {
1372 0 : mozilla::ipc::SentinelReadError("Error deserializing 'mapURIs' (WebBrowserPersistURIMapEntry[]) member of 'WebBrowserPersistURIMap'");
1373 0 : return false;
1374 : }
1375 0 : if ((!(Read((&((v__)->targetBaseURI())), msg__, iter__)))) {
1376 0 : FatalError("Error deserializing 'targetBaseURI' (nsCString) member of 'WebBrowserPersistURIMap'");
1377 0 : return false;
1378 : }
1379 : // Sentinel = 'targetBaseURI'
1380 0 : if ((!((msg__)->ReadSentinel(iter__, 1355746871)))) {
1381 0 : mozilla::ipc::SentinelReadError("Error deserializing 'targetBaseURI' (nsCString) member of 'WebBrowserPersistURIMap'");
1382 0 : return false;
1383 : }
1384 0 : return true;
1385 : }
1386 :
1387 0 : auto PWebBrowserPersistDocumentChild::Write(
1388 : const MIMEInputStreamParams& v__,
1389 : Message* msg__) -> void
1390 : {
1391 0 : Write((v__).optionalStream(), msg__);
1392 : // Sentinel = 'optionalStream'
1393 0 : (msg__)->WriteSentinel(1003718562);
1394 0 : Write((v__).headers(), msg__);
1395 : // Sentinel = 'headers'
1396 0 : (msg__)->WriteSentinel(4284175217);
1397 0 : Write((v__).startedReading(), msg__);
1398 : // Sentinel = 'startedReading'
1399 0 : (msg__)->WriteSentinel(1906875903);
1400 0 : }
1401 :
1402 0 : auto PWebBrowserPersistDocumentChild::Read(
1403 : MIMEInputStreamParams* v__,
1404 : const Message* msg__,
1405 : PickleIterator* iter__) -> bool
1406 : {
1407 0 : if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
1408 0 : FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
1409 0 : return false;
1410 : }
1411 : // Sentinel = 'optionalStream'
1412 0 : if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
1413 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
1414 0 : return false;
1415 : }
1416 0 : if ((!(Read((&((v__)->headers())), msg__, iter__)))) {
1417 0 : FatalError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
1418 0 : return false;
1419 : }
1420 : // Sentinel = 'headers'
1421 0 : if ((!((msg__)->ReadSentinel(iter__, 4284175217)))) {
1422 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
1423 0 : return false;
1424 : }
1425 0 : if ((!(Read((&((v__)->startedReading())), msg__, iter__)))) {
1426 0 : FatalError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
1427 0 : return false;
1428 : }
1429 : // Sentinel = 'startedReading'
1430 0 : if ((!((msg__)->ReadSentinel(iter__, 1906875903)))) {
1431 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
1432 0 : return false;
1433 : }
1434 0 : return true;
1435 : }
1436 :
1437 0 : auto PWebBrowserPersistDocumentChild::Write(
1438 : const nsTArray<WebBrowserPersistURIMapEntry>& v__,
1439 : Message* msg__) -> void
1440 : {
1441 0 : uint32_t length = (v__).Length();
1442 0 : Write(length, msg__);
1443 : // Sentinel = ('length', 'WebBrowserPersistURIMapEntry[]')
1444 0 : (msg__)->WriteSentinel(1891413945);
1445 :
1446 0 : for (auto& elem : v__) {
1447 0 : Write(elem, msg__);
1448 : // Sentinel = 'WebBrowserPersistURIMapEntry[]'
1449 0 : (msg__)->WriteSentinel(2694758984);
1450 : }
1451 0 : }
1452 :
1453 0 : auto PWebBrowserPersistDocumentChild::Read(
1454 : nsTArray<WebBrowserPersistURIMapEntry>* v__,
1455 : const Message* msg__,
1456 : PickleIterator* iter__) -> bool
1457 : {
1458 0 : nsTArray<WebBrowserPersistURIMapEntry> fa;
1459 : uint32_t length;
1460 0 : if ((!(Read((&(length)), msg__, iter__)))) {
1461 0 : mozilla::ipc::ArrayLengthReadError("WebBrowserPersistURIMapEntry[]");
1462 0 : return false;
1463 : }
1464 : // Sentinel = ('length', 'WebBrowserPersistURIMapEntry[]')
1465 0 : if ((!((msg__)->ReadSentinel(iter__, 1891413945)))) {
1466 0 : mozilla::ipc::SentinelReadError("WebBrowserPersistURIMapEntry[]");
1467 0 : return false;
1468 : }
1469 :
1470 0 : WebBrowserPersistURIMapEntry* elems = (fa).AppendElements(length);
1471 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
1472 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
1473 0 : FatalError("Error deserializing 'WebBrowserPersistURIMapEntry[i]'");
1474 0 : return false;
1475 : }
1476 : // Sentinel = 'WebBrowserPersistURIMapEntry[]'
1477 0 : if ((!((msg__)->ReadSentinel(iter__, 2694758984)))) {
1478 0 : mozilla::ipc::SentinelReadError("Error deserializing 'WebBrowserPersistURIMapEntry[i]'");
1479 0 : return false;
1480 : }
1481 : }
1482 0 : (v__)->SwapElements(fa);
1483 0 : return true;
1484 : }
1485 :
1486 0 : auto PWebBrowserPersistDocumentChild::Write(
1487 : const InputStreamParams& v__,
1488 : Message* msg__) -> void
1489 : {
1490 : typedef InputStreamParams type__;
1491 0 : Write(int((v__).type()), msg__);
1492 : // Sentinel = 'InputStreamParams'
1493 0 : (msg__)->WriteSentinel(4114814015);
1494 :
1495 0 : switch ((v__).type()) {
1496 : case type__::TStringInputStreamParams:
1497 : {
1498 0 : Write((v__).get_StringInputStreamParams(), msg__);
1499 : // Sentinel = 'TStringInputStreamParams'
1500 0 : (msg__)->WriteSentinel(3395831651);
1501 0 : return;
1502 : }
1503 : case type__::TFileInputStreamParams:
1504 : {
1505 0 : Write((v__).get_FileInputStreamParams(), msg__);
1506 : // Sentinel = 'TFileInputStreamParams'
1507 0 : (msg__)->WriteSentinel(2543620282);
1508 0 : return;
1509 : }
1510 : case type__::TTemporaryFileInputStreamParams:
1511 : {
1512 0 : Write((v__).get_TemporaryFileInputStreamParams(), msg__);
1513 : // Sentinel = 'TTemporaryFileInputStreamParams'
1514 0 : (msg__)->WriteSentinel(587771548);
1515 0 : return;
1516 : }
1517 : case type__::TBufferedInputStreamParams:
1518 : {
1519 0 : Write((v__).get_BufferedInputStreamParams(), msg__);
1520 : // Sentinel = 'TBufferedInputStreamParams'
1521 0 : (msg__)->WriteSentinel(1698289307);
1522 0 : return;
1523 : }
1524 : case type__::TMIMEInputStreamParams:
1525 : {
1526 0 : Write((v__).get_MIMEInputStreamParams(), msg__);
1527 : // Sentinel = 'TMIMEInputStreamParams'
1528 0 : (msg__)->WriteSentinel(1948001964);
1529 0 : return;
1530 : }
1531 : case type__::TMultiplexInputStreamParams:
1532 : {
1533 0 : Write((v__).get_MultiplexInputStreamParams(), msg__);
1534 : // Sentinel = 'TMultiplexInputStreamParams'
1535 0 : (msg__)->WriteSentinel(3317853213);
1536 0 : return;
1537 : }
1538 : case type__::TSlicedInputStreamParams:
1539 : {
1540 0 : Write((v__).get_SlicedInputStreamParams(), msg__);
1541 : // Sentinel = 'TSlicedInputStreamParams'
1542 0 : (msg__)->WriteSentinel(445810472);
1543 0 : return;
1544 : }
1545 : case type__::TIPCBlobInputStreamParams:
1546 : {
1547 0 : Write((v__).get_IPCBlobInputStreamParams(), msg__);
1548 : // Sentinel = 'TIPCBlobInputStreamParams'
1549 0 : (msg__)->WriteSentinel(2436989998);
1550 0 : return;
1551 : }
1552 : default:
1553 : {
1554 0 : FatalError("unknown union type");
1555 0 : return;
1556 : }
1557 : }
1558 : }
1559 :
1560 0 : auto PWebBrowserPersistDocumentChild::Read(
1561 : InputStreamParams* v__,
1562 : const Message* msg__,
1563 : PickleIterator* iter__) -> bool
1564 : {
1565 : typedef InputStreamParams type__;
1566 : int type;
1567 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1568 0 : mozilla::ipc::UnionTypeReadError("InputStreamParams");
1569 0 : return false;
1570 : }
1571 : // Sentinel = 'InputStreamParams'
1572 0 : if ((!((msg__)->ReadSentinel(iter__, 4114814015)))) {
1573 0 : mozilla::ipc::SentinelReadError("InputStreamParams");
1574 0 : return false;
1575 : }
1576 :
1577 0 : switch (type) {
1578 : case type__::TStringInputStreamParams:
1579 : {
1580 0 : StringInputStreamParams tmp = StringInputStreamParams();
1581 0 : (*(v__)) = tmp;
1582 0 : if ((!(Read((&((v__)->get_StringInputStreamParams())), msg__, iter__)))) {
1583 0 : FatalError("Error deserializing Union type");
1584 0 : return false;
1585 : }
1586 : // Sentinel = 'TStringInputStreamParams'
1587 0 : if ((!((msg__)->ReadSentinel(iter__, 3395831651)))) {
1588 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1589 0 : return false;
1590 : }
1591 0 : return true;
1592 : }
1593 : case type__::TFileInputStreamParams:
1594 : {
1595 0 : FileInputStreamParams tmp = FileInputStreamParams();
1596 0 : (*(v__)) = tmp;
1597 0 : if ((!(Read((&((v__)->get_FileInputStreamParams())), msg__, iter__)))) {
1598 0 : FatalError("Error deserializing Union type");
1599 0 : return false;
1600 : }
1601 : // Sentinel = 'TFileInputStreamParams'
1602 0 : if ((!((msg__)->ReadSentinel(iter__, 2543620282)))) {
1603 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1604 0 : return false;
1605 : }
1606 0 : return true;
1607 : }
1608 : case type__::TTemporaryFileInputStreamParams:
1609 : {
1610 0 : TemporaryFileInputStreamParams tmp = TemporaryFileInputStreamParams();
1611 0 : (*(v__)) = tmp;
1612 0 : if ((!(Read((&((v__)->get_TemporaryFileInputStreamParams())), msg__, iter__)))) {
1613 0 : FatalError("Error deserializing Union type");
1614 0 : return false;
1615 : }
1616 : // Sentinel = 'TTemporaryFileInputStreamParams'
1617 0 : if ((!((msg__)->ReadSentinel(iter__, 587771548)))) {
1618 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1619 0 : return false;
1620 : }
1621 0 : return true;
1622 : }
1623 : case type__::TBufferedInputStreamParams:
1624 : {
1625 0 : BufferedInputStreamParams tmp = BufferedInputStreamParams();
1626 0 : (*(v__)) = tmp;
1627 0 : if ((!(Read((&((v__)->get_BufferedInputStreamParams())), msg__, iter__)))) {
1628 0 : FatalError("Error deserializing Union type");
1629 0 : return false;
1630 : }
1631 : // Sentinel = 'TBufferedInputStreamParams'
1632 0 : if ((!((msg__)->ReadSentinel(iter__, 1698289307)))) {
1633 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1634 0 : return false;
1635 : }
1636 0 : return true;
1637 : }
1638 : case type__::TMIMEInputStreamParams:
1639 : {
1640 0 : MIMEInputStreamParams tmp = MIMEInputStreamParams();
1641 0 : (*(v__)) = tmp;
1642 0 : if ((!(Read((&((v__)->get_MIMEInputStreamParams())), msg__, iter__)))) {
1643 0 : FatalError("Error deserializing Union type");
1644 0 : return false;
1645 : }
1646 : // Sentinel = 'TMIMEInputStreamParams'
1647 0 : if ((!((msg__)->ReadSentinel(iter__, 1948001964)))) {
1648 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1649 0 : return false;
1650 : }
1651 0 : return true;
1652 : }
1653 : case type__::TMultiplexInputStreamParams:
1654 : {
1655 0 : MultiplexInputStreamParams tmp = MultiplexInputStreamParams();
1656 0 : (*(v__)) = tmp;
1657 0 : if ((!(Read((&((v__)->get_MultiplexInputStreamParams())), msg__, iter__)))) {
1658 0 : FatalError("Error deserializing Union type");
1659 0 : return false;
1660 : }
1661 : // Sentinel = 'TMultiplexInputStreamParams'
1662 0 : if ((!((msg__)->ReadSentinel(iter__, 3317853213)))) {
1663 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1664 0 : return false;
1665 : }
1666 0 : return true;
1667 : }
1668 : case type__::TSlicedInputStreamParams:
1669 : {
1670 0 : SlicedInputStreamParams tmp = SlicedInputStreamParams();
1671 0 : (*(v__)) = tmp;
1672 0 : if ((!(Read((&((v__)->get_SlicedInputStreamParams())), msg__, iter__)))) {
1673 0 : FatalError("Error deserializing Union type");
1674 0 : return false;
1675 : }
1676 : // Sentinel = 'TSlicedInputStreamParams'
1677 0 : if ((!((msg__)->ReadSentinel(iter__, 445810472)))) {
1678 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1679 0 : return false;
1680 : }
1681 0 : return true;
1682 : }
1683 : case type__::TIPCBlobInputStreamParams:
1684 : {
1685 0 : IPCBlobInputStreamParams tmp = IPCBlobInputStreamParams();
1686 0 : (*(v__)) = tmp;
1687 0 : if ((!(Read((&((v__)->get_IPCBlobInputStreamParams())), msg__, iter__)))) {
1688 0 : FatalError("Error deserializing Union type");
1689 0 : return false;
1690 : }
1691 : // Sentinel = 'TIPCBlobInputStreamParams'
1692 0 : if ((!((msg__)->ReadSentinel(iter__, 2436989998)))) {
1693 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1694 0 : return false;
1695 : }
1696 0 : return true;
1697 : }
1698 : default:
1699 : {
1700 0 : FatalError("unknown union type");
1701 0 : return false;
1702 : }
1703 : }
1704 : }
1705 :
1706 0 : auto PWebBrowserPersistDocumentChild::Write(
1707 : const PParentToChildStreamChild* v__,
1708 : Message* msg__,
1709 : bool nullable__) -> void
1710 : {
1711 : int32_t id;
1712 0 : if ((!(v__))) {
1713 0 : if ((!(nullable__))) {
1714 0 : FatalError("NULL actor value passed to non-nullable param");
1715 : }
1716 0 : id = 0;
1717 : }
1718 : else {
1719 0 : id = (v__)->Id();
1720 0 : if ((1) == (id)) {
1721 0 : FatalError("actor has been |delete|d");
1722 : }
1723 : }
1724 :
1725 0 : Write(id, msg__);
1726 0 : }
1727 :
1728 0 : auto PWebBrowserPersistDocumentChild::Read(
1729 : PParentToChildStreamChild** v__,
1730 : const Message* msg__,
1731 : PickleIterator* iter__,
1732 : bool nullable__) -> bool
1733 : {
1734 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PParentToChildStream", PParentToChildStreamMsgStart);
1735 0 : if ((actor).isNothing()) {
1736 0 : return false;
1737 : }
1738 :
1739 0 : (*(v__)) = static_cast<PParentToChildStreamChild*>((actor).value());
1740 0 : return true;
1741 : }
1742 :
1743 0 : auto PWebBrowserPersistDocumentChild::Write(
1744 : const IPCStream& v__,
1745 : Message* msg__) -> void
1746 : {
1747 : typedef IPCStream type__;
1748 0 : Write(int((v__).type()), msg__);
1749 : // Sentinel = 'IPCStream'
1750 0 : (msg__)->WriteSentinel(442610715);
1751 :
1752 0 : switch ((v__).type()) {
1753 : case type__::TInputStreamParamsWithFds:
1754 : {
1755 0 : Write((v__).get_InputStreamParamsWithFds(), msg__);
1756 : // Sentinel = 'TInputStreamParamsWithFds'
1757 0 : (msg__)->WriteSentinel(2170706066);
1758 0 : return;
1759 : }
1760 : case type__::TIPCRemoteStream:
1761 : {
1762 0 : Write((v__).get_IPCRemoteStream(), msg__);
1763 : // Sentinel = 'TIPCRemoteStream'
1764 0 : (msg__)->WriteSentinel(2978132448);
1765 0 : return;
1766 : }
1767 : default:
1768 : {
1769 0 : FatalError("unknown union type");
1770 0 : return;
1771 : }
1772 : }
1773 : }
1774 :
1775 0 : auto PWebBrowserPersistDocumentChild::Read(
1776 : IPCStream* v__,
1777 : const Message* msg__,
1778 : PickleIterator* iter__) -> bool
1779 : {
1780 : typedef IPCStream type__;
1781 : int type;
1782 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1783 0 : mozilla::ipc::UnionTypeReadError("IPCStream");
1784 0 : return false;
1785 : }
1786 : // Sentinel = 'IPCStream'
1787 0 : if ((!((msg__)->ReadSentinel(iter__, 442610715)))) {
1788 0 : mozilla::ipc::SentinelReadError("IPCStream");
1789 0 : return false;
1790 : }
1791 :
1792 0 : switch (type) {
1793 : case type__::TInputStreamParamsWithFds:
1794 : {
1795 0 : InputStreamParamsWithFds tmp = InputStreamParamsWithFds();
1796 0 : (*(v__)) = tmp;
1797 0 : if ((!(Read((&((v__)->get_InputStreamParamsWithFds())), msg__, iter__)))) {
1798 0 : FatalError("Error deserializing Union type");
1799 0 : return false;
1800 : }
1801 : // Sentinel = 'TInputStreamParamsWithFds'
1802 0 : if ((!((msg__)->ReadSentinel(iter__, 2170706066)))) {
1803 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1804 0 : return false;
1805 : }
1806 0 : return true;
1807 : }
1808 : case type__::TIPCRemoteStream:
1809 : {
1810 0 : IPCRemoteStream tmp = IPCRemoteStream();
1811 0 : (*(v__)) = tmp;
1812 0 : if ((!(Read((&((v__)->get_IPCRemoteStream())), msg__, iter__)))) {
1813 0 : FatalError("Error deserializing Union type");
1814 0 : return false;
1815 : }
1816 : // Sentinel = 'TIPCRemoteStream'
1817 0 : if ((!((msg__)->ReadSentinel(iter__, 2978132448)))) {
1818 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1819 0 : return false;
1820 : }
1821 0 : return true;
1822 : }
1823 : default:
1824 : {
1825 0 : FatalError("unknown union type");
1826 0 : return false;
1827 : }
1828 : }
1829 : }
1830 :
1831 0 : auto PWebBrowserPersistDocumentChild::Write(
1832 : const OptionalIPCStream& v__,
1833 : Message* msg__) -> void
1834 : {
1835 : typedef OptionalIPCStream type__;
1836 0 : Write(int((v__).type()), msg__);
1837 : // Sentinel = 'OptionalIPCStream'
1838 0 : (msg__)->WriteSentinel(3815982647);
1839 :
1840 0 : switch ((v__).type()) {
1841 : case type__::TIPCStream:
1842 : {
1843 0 : Write((v__).get_IPCStream(), msg__);
1844 : // Sentinel = 'TIPCStream'
1845 0 : (msg__)->WriteSentinel(40701900);
1846 0 : return;
1847 : }
1848 : case type__::Tvoid_t:
1849 : {
1850 0 : Write((v__).get_void_t(), msg__);
1851 : // Sentinel = 'Tvoid_t'
1852 0 : (msg__)->WriteSentinel(3041273328);
1853 0 : return;
1854 : }
1855 : default:
1856 : {
1857 0 : FatalError("unknown union type");
1858 0 : return;
1859 : }
1860 : }
1861 : }
1862 :
1863 0 : auto PWebBrowserPersistDocumentChild::Read(
1864 : OptionalIPCStream* v__,
1865 : const Message* msg__,
1866 : PickleIterator* iter__) -> bool
1867 : {
1868 : typedef OptionalIPCStream type__;
1869 : int type;
1870 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1871 0 : mozilla::ipc::UnionTypeReadError("OptionalIPCStream");
1872 0 : return false;
1873 : }
1874 : // Sentinel = 'OptionalIPCStream'
1875 0 : if ((!((msg__)->ReadSentinel(iter__, 3815982647)))) {
1876 0 : mozilla::ipc::SentinelReadError("OptionalIPCStream");
1877 0 : return false;
1878 : }
1879 :
1880 0 : switch (type) {
1881 : case type__::TIPCStream:
1882 : {
1883 0 : IPCStream tmp = IPCStream();
1884 0 : (*(v__)) = tmp;
1885 0 : if ((!(Read((&((v__)->get_IPCStream())), msg__, iter__)))) {
1886 0 : FatalError("Error deserializing Union type");
1887 0 : return false;
1888 : }
1889 : // Sentinel = 'TIPCStream'
1890 0 : if ((!((msg__)->ReadSentinel(iter__, 40701900)))) {
1891 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1892 0 : return false;
1893 : }
1894 0 : return true;
1895 : }
1896 : case type__::Tvoid_t:
1897 : {
1898 : void_t tmp = void_t();
1899 0 : (*(v__)) = tmp;
1900 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
1901 0 : FatalError("Error deserializing Union type");
1902 0 : return false;
1903 : }
1904 : // Sentinel = 'Tvoid_t'
1905 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
1906 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1907 0 : return false;
1908 : }
1909 0 : return true;
1910 : }
1911 : default:
1912 : {
1913 0 : FatalError("unknown union type");
1914 0 : return false;
1915 : }
1916 : }
1917 : }
1918 :
1919 0 : auto PWebBrowserPersistDocumentChild::Write(
1920 : const StringInputStreamParams& v__,
1921 : Message* msg__) -> void
1922 : {
1923 0 : Write((v__).data(), msg__);
1924 : // Sentinel = 'data'
1925 0 : (msg__)->WriteSentinel(843352540);
1926 0 : }
1927 :
1928 0 : auto PWebBrowserPersistDocumentChild::Read(
1929 : StringInputStreamParams* v__,
1930 : const Message* msg__,
1931 : PickleIterator* iter__) -> bool
1932 : {
1933 0 : if ((!(Read((&((v__)->data())), msg__, iter__)))) {
1934 0 : FatalError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
1935 0 : return false;
1936 : }
1937 : // Sentinel = 'data'
1938 0 : if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
1939 0 : mozilla::ipc::SentinelReadError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
1940 0 : return false;
1941 : }
1942 0 : return true;
1943 : }
1944 :
1945 0 : auto PWebBrowserPersistDocumentChild::Write(
1946 : const MultiplexInputStreamParams& v__,
1947 : Message* msg__) -> void
1948 : {
1949 0 : Write((v__).streams(), msg__);
1950 : // Sentinel = 'streams'
1951 0 : (msg__)->WriteSentinel(4240383220);
1952 0 : Write((v__).currentStream(), msg__);
1953 : // Sentinel = 'currentStream'
1954 0 : (msg__)->WriteSentinel(682778074);
1955 0 : Write((v__).status(), msg__);
1956 : // Sentinel = 'status'
1957 0 : (msg__)->WriteSentinel(3714608576);
1958 0 : Write((v__).startedReadingCurrent(), msg__);
1959 : // Sentinel = 'startedReadingCurrent'
1960 0 : (msg__)->WriteSentinel(970542033);
1961 0 : }
1962 :
1963 0 : auto PWebBrowserPersistDocumentChild::Read(
1964 : MultiplexInputStreamParams* v__,
1965 : const Message* msg__,
1966 : PickleIterator* iter__) -> bool
1967 : {
1968 0 : if ((!(Read((&((v__)->streams())), msg__, iter__)))) {
1969 0 : FatalError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
1970 0 : return false;
1971 : }
1972 : // Sentinel = 'streams'
1973 0 : if ((!((msg__)->ReadSentinel(iter__, 4240383220)))) {
1974 0 : mozilla::ipc::SentinelReadError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
1975 0 : return false;
1976 : }
1977 0 : if ((!(Read((&((v__)->currentStream())), msg__, iter__)))) {
1978 0 : FatalError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
1979 0 : return false;
1980 : }
1981 : // Sentinel = 'currentStream'
1982 0 : if ((!((msg__)->ReadSentinel(iter__, 682778074)))) {
1983 0 : mozilla::ipc::SentinelReadError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
1984 0 : return false;
1985 : }
1986 0 : if ((!(Read((&((v__)->status())), msg__, iter__)))) {
1987 0 : FatalError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
1988 0 : return false;
1989 : }
1990 : // Sentinel = 'status'
1991 0 : if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
1992 0 : mozilla::ipc::SentinelReadError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
1993 0 : return false;
1994 : }
1995 0 : if ((!(Read((&((v__)->startedReadingCurrent())), msg__, iter__)))) {
1996 0 : FatalError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
1997 0 : return false;
1998 : }
1999 : // Sentinel = 'startedReadingCurrent'
2000 0 : if ((!((msg__)->ReadSentinel(iter__, 970542033)))) {
2001 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
2002 0 : return false;
2003 : }
2004 0 : return true;
2005 : }
2006 :
2007 0 : auto PWebBrowserPersistDocumentChild::Write(
2008 : const PFileDescriptorSetChild* v__,
2009 : Message* msg__,
2010 : bool nullable__) -> void
2011 : {
2012 : int32_t id;
2013 0 : if ((!(v__))) {
2014 0 : if ((!(nullable__))) {
2015 0 : FatalError("NULL actor value passed to non-nullable param");
2016 : }
2017 0 : id = 0;
2018 : }
2019 : else {
2020 0 : id = (v__)->Id();
2021 0 : if ((1) == (id)) {
2022 0 : FatalError("actor has been |delete|d");
2023 : }
2024 : }
2025 :
2026 0 : Write(id, msg__);
2027 0 : }
2028 :
2029 0 : auto PWebBrowserPersistDocumentChild::Read(
2030 : PFileDescriptorSetChild** v__,
2031 : const Message* msg__,
2032 : PickleIterator* iter__,
2033 : bool nullable__) -> bool
2034 : {
2035 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PFileDescriptorSet", PFileDescriptorSetMsgStart);
2036 0 : if ((actor).isNothing()) {
2037 0 : return false;
2038 : }
2039 :
2040 0 : (*(v__)) = static_cast<PFileDescriptorSetChild*>((actor).value());
2041 0 : return true;
2042 : }
2043 :
2044 0 : auto PWebBrowserPersistDocumentChild::Write(
2045 : const OptionalFileDescriptorSet& v__,
2046 : Message* msg__) -> void
2047 : {
2048 : typedef OptionalFileDescriptorSet type__;
2049 0 : Write(int((v__).type()), msg__);
2050 : // Sentinel = 'OptionalFileDescriptorSet'
2051 0 : (msg__)->WriteSentinel(955222862);
2052 :
2053 0 : switch ((v__).type()) {
2054 : case type__::TPFileDescriptorSetParent:
2055 : {
2056 0 : FatalError("wrong side!");
2057 0 : return;
2058 : }
2059 : case type__::TPFileDescriptorSetChild:
2060 : {
2061 0 : Write((v__).get_PFileDescriptorSetChild(), msg__, false);
2062 : // Sentinel = 'TPFileDescriptorSetChild'
2063 0 : (msg__)->WriteSentinel(3477929935);
2064 0 : return;
2065 : }
2066 : case type__::TArrayOfFileDescriptor:
2067 : {
2068 0 : Write((v__).get_ArrayOfFileDescriptor(), msg__);
2069 : // Sentinel = 'TArrayOfFileDescriptor'
2070 0 : (msg__)->WriteSentinel(2366096715);
2071 0 : return;
2072 : }
2073 : case type__::Tvoid_t:
2074 : {
2075 0 : Write((v__).get_void_t(), msg__);
2076 : // Sentinel = 'Tvoid_t'
2077 0 : (msg__)->WriteSentinel(3041273328);
2078 0 : return;
2079 : }
2080 : default:
2081 : {
2082 0 : FatalError("unknown union type");
2083 0 : return;
2084 : }
2085 : }
2086 : }
2087 :
2088 0 : auto PWebBrowserPersistDocumentChild::Read(
2089 : OptionalFileDescriptorSet* v__,
2090 : const Message* msg__,
2091 : PickleIterator* iter__) -> bool
2092 : {
2093 : typedef OptionalFileDescriptorSet type__;
2094 : int type;
2095 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2096 0 : mozilla::ipc::UnionTypeReadError("OptionalFileDescriptorSet");
2097 0 : return false;
2098 : }
2099 : // Sentinel = 'OptionalFileDescriptorSet'
2100 0 : if ((!((msg__)->ReadSentinel(iter__, 955222862)))) {
2101 0 : mozilla::ipc::SentinelReadError("OptionalFileDescriptorSet");
2102 0 : return false;
2103 : }
2104 :
2105 0 : switch (type) {
2106 : case type__::TPFileDescriptorSetParent:
2107 : {
2108 0 : PFileDescriptorSetChild* tmp = nullptr;
2109 0 : (*(v__)) = tmp;
2110 0 : if ((!(Read((&((v__)->get_PFileDescriptorSetChild())), msg__, iter__, false)))) {
2111 0 : FatalError("Error deserializing Union type");
2112 0 : return false;
2113 : }
2114 : // Sentinel = 'TPFileDescriptorSetParent'
2115 0 : if ((!((msg__)->ReadSentinel(iter__, 143041934)))) {
2116 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2117 0 : return false;
2118 : }
2119 0 : return true;
2120 : }
2121 : case type__::TPFileDescriptorSetChild:
2122 : {
2123 0 : return false;
2124 : }
2125 : case type__::TArrayOfFileDescriptor:
2126 : {
2127 0 : nsTArray<FileDescriptor> tmp;
2128 0 : (*(v__)) = tmp;
2129 0 : if ((!(Read((&((v__)->get_ArrayOfFileDescriptor())), msg__, iter__)))) {
2130 0 : FatalError("Error deserializing Union type");
2131 0 : return false;
2132 : }
2133 : // Sentinel = 'TArrayOfFileDescriptor'
2134 0 : if ((!((msg__)->ReadSentinel(iter__, 2366096715)))) {
2135 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2136 0 : return false;
2137 : }
2138 0 : return true;
2139 : }
2140 : case type__::Tvoid_t:
2141 : {
2142 : void_t tmp = void_t();
2143 0 : (*(v__)) = tmp;
2144 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
2145 0 : FatalError("Error deserializing Union type");
2146 0 : return false;
2147 : }
2148 : // Sentinel = 'Tvoid_t'
2149 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
2150 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2151 0 : return false;
2152 : }
2153 0 : return true;
2154 : }
2155 : default:
2156 : {
2157 0 : FatalError("unknown union type");
2158 0 : return false;
2159 : }
2160 : }
2161 : }
2162 :
2163 0 : auto PWebBrowserPersistDocumentChild::Write(
2164 : const FileDescriptor& v__,
2165 : Message* msg__) -> void
2166 : {
2167 0 : FileDescriptor::PickleType pfd = (v__).ShareTo(FileDescriptor::IPDLPrivate(), OtherPid());
2168 0 : IPC::WriteParam(msg__, pfd);
2169 0 : }
2170 :
2171 0 : auto PWebBrowserPersistDocumentChild::Read(
2172 : FileDescriptor* v__,
2173 : const Message* msg__,
2174 : PickleIterator* iter__) -> bool
2175 : {
2176 0 : FileDescriptor::PickleType pfd;
2177 0 : if ((!(IPC::ReadParam(msg__, iter__, (&(pfd)))))) {
2178 0 : return false;
2179 : }
2180 :
2181 0 : FileDescriptor fd = FileDescriptor(FileDescriptor::IPDLPrivate(), pfd);
2182 0 : if ((!((fd).IsValid()))) {
2183 0 : mozilla::ipc::ProtocolErrorBreakpoint("[PWebBrowserPersistDocumentChild] Received an invalid file descriptor!");
2184 : }
2185 :
2186 0 : (*(v__)) = fd;
2187 0 : return true;
2188 : }
2189 :
2190 0 : auto PWebBrowserPersistDocumentChild::Write(
2191 : const BufferedInputStreamParams& v__,
2192 : Message* msg__) -> void
2193 : {
2194 0 : Write((v__).optionalStream(), msg__);
2195 : // Sentinel = 'optionalStream'
2196 0 : (msg__)->WriteSentinel(1003718562);
2197 0 : Write((v__).bufferSize(), msg__);
2198 : // Sentinel = 'bufferSize'
2199 0 : (msg__)->WriteSentinel(3444538779);
2200 0 : }
2201 :
2202 0 : auto PWebBrowserPersistDocumentChild::Read(
2203 : BufferedInputStreamParams* v__,
2204 : const Message* msg__,
2205 : PickleIterator* iter__) -> bool
2206 : {
2207 0 : if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
2208 0 : FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
2209 0 : return false;
2210 : }
2211 : // Sentinel = 'optionalStream'
2212 0 : if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
2213 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
2214 0 : return false;
2215 : }
2216 0 : if ((!(Read((&((v__)->bufferSize())), msg__, iter__)))) {
2217 0 : FatalError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
2218 0 : return false;
2219 : }
2220 : // Sentinel = 'bufferSize'
2221 0 : if ((!((msg__)->ReadSentinel(iter__, 3444538779)))) {
2222 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
2223 0 : return false;
2224 : }
2225 0 : return true;
2226 : }
2227 :
2228 0 : auto PWebBrowserPersistDocumentChild::Write(
2229 : const HeaderEntry& v__,
2230 : Message* msg__) -> void
2231 : {
2232 0 : Write((v__).name(), msg__);
2233 : // Sentinel = 'name'
2234 0 : (msg__)->WriteSentinel(15034981);
2235 0 : Write((v__).value(), msg__);
2236 : // Sentinel = 'value'
2237 0 : (msg__)->WriteSentinel(3456818542);
2238 0 : }
2239 :
2240 0 : auto PWebBrowserPersistDocumentChild::Read(
2241 : HeaderEntry* v__,
2242 : const Message* msg__,
2243 : PickleIterator* iter__) -> bool
2244 : {
2245 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
2246 0 : FatalError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
2247 0 : return false;
2248 : }
2249 : // Sentinel = 'name'
2250 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
2251 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
2252 0 : return false;
2253 : }
2254 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
2255 0 : FatalError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
2256 0 : return false;
2257 : }
2258 : // Sentinel = 'value'
2259 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
2260 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
2261 0 : return false;
2262 : }
2263 0 : return true;
2264 : }
2265 :
2266 0 : auto PWebBrowserPersistDocumentChild::Write(
2267 : const PChildToParentStreamChild* v__,
2268 : Message* msg__,
2269 : bool nullable__) -> void
2270 : {
2271 : int32_t id;
2272 0 : if ((!(v__))) {
2273 0 : if ((!(nullable__))) {
2274 0 : FatalError("NULL actor value passed to non-nullable param");
2275 : }
2276 0 : id = 0;
2277 : }
2278 : else {
2279 0 : id = (v__)->Id();
2280 0 : if ((1) == (id)) {
2281 0 : FatalError("actor has been |delete|d");
2282 : }
2283 : }
2284 :
2285 0 : Write(id, msg__);
2286 0 : }
2287 :
2288 0 : auto PWebBrowserPersistDocumentChild::Read(
2289 : PChildToParentStreamChild** v__,
2290 : const Message* msg__,
2291 : PickleIterator* iter__,
2292 : bool nullable__) -> bool
2293 : {
2294 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PChildToParentStream", PChildToParentStreamMsgStart);
2295 0 : if ((actor).isNothing()) {
2296 0 : return false;
2297 : }
2298 :
2299 0 : (*(v__)) = static_cast<PChildToParentStreamChild*>((actor).value());
2300 0 : return true;
2301 : }
2302 :
2303 :
2304 :
2305 : } // namespace mozilla
|