Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/dom/PContentParent.h"
8 : #include "ipc/IPCMessageUtils.h"
9 : #include "mozilla/chrome/RegistryMessageUtils.h"
10 : #include "mozilla/dom/FlyWebPublishOptionsIPCSerializer.h"
11 : #include "mozilla/dom/MessagePort.h"
12 : #include "mozilla/dom/PermissionMessageUtils.h"
13 : #include "mozilla/dom/ipc/StructuredCloneData.h"
14 : #include "mozilla/layers/CompositorTypes.h"
15 : #include "mozilla/net/NeckoMessageUtils.h"
16 : #include "mozilla/widget/WidgetMessageUtils.h"
17 : #ifdef MOZ_CRASHREPORTER
18 : # include "nsXULAppAPI.h"
19 : #endif
20 :
21 : #include "mozilla/ipc/PBackgroundParent.h"
22 : #include "mozilla/dom/PBrowserParent.h"
23 : #include "mozilla/layers/PCompositorManagerParent.h"
24 : #include "mozilla/dom/PContentBridgeParent.h"
25 : #include "mozilla/dom/PContentPermissionRequestParent.h"
26 : #include "mozilla/dom/PCycleCollectWithLogsParent.h"
27 : #include "mozilla/psm/PPSMContentDownloaderParent.h"
28 : #include "mozilla/dom/PExternalHelperAppParent.h"
29 : #include "mozilla/dom/PHandlerServiceParent.h"
30 : #include "mozilla/ipc/PFileDescriptorSetParent.h"
31 : #include "mozilla/hal_sandbox/PHalParent.h"
32 : #include "mozilla/devtools/PHeapSnapshotTempFileHelperParent.h"
33 : #include "mozilla/PProcessHangMonitorParent.h"
34 : #include "mozilla/layers/PImageBridgeParent.h"
35 : #include "mozilla/ipc/PIPCBlobInputStreamParent.h"
36 : #include "mozilla/media/PMediaParent.h"
37 : #include "mozilla/net/PNeckoParent.h"
38 : #include "mozilla/gmp/PGMPContentParent.h"
39 : #include "mozilla/gmp/PGMPServiceParent.h"
40 : #include "mozilla/plugins/PPluginModuleParent.h"
41 : #include "mozilla/gmp/PGMPParent.h"
42 : #include "mozilla/embedding/PPrintingParent.h"
43 : #include "mozilla/ipc/PChildToParentStreamParent.h"
44 : #include "mozilla/ipc/PParentToChildStreamParent.h"
45 : #include "mozilla/docshell/POfflineCacheUpdateParent.h"
46 : #include "mozilla/layout/PRenderFrameParent.h"
47 : #include "mozilla/dom/PSpeechSynthesisParent.h"
48 : #include "mozilla/dom/PStorageParent.h"
49 : #include "mozilla/ipc/PTestShellParent.h"
50 : #include "mozilla/jsipc/PJavaScriptParent.h"
51 : #include "mozilla/PRemoteSpellcheckEngineParent.h"
52 : #include "mozilla/PWebBrowserPersistDocumentParent.h"
53 : #include "mozilla/dom/PWebrtcGlobalParent.h"
54 : #include "mozilla/dom/PPresentationParent.h"
55 : #include "mozilla/dom/PURLClassifierParent.h"
56 : #include "mozilla/dom/PURLClassifierLocalParent.h"
57 : #include "mozilla/gfx/PVRManagerParent.h"
58 : #include "mozilla/dom/PVideoDecoderManagerParent.h"
59 : #include "mozilla/dom/PFlyWebPublishedServerParent.h"
60 : #include "mozilla/PProfilerParent.h"
61 : #include "mozilla/loader/PScriptCacheParent.h"
62 :
63 : #include "nsIFile.h"
64 : #include "GeckoProfiler.h"
65 :
66 : namespace mozilla {
67 : namespace dom {
68 :
69 :
70 0 : auto PContentParent::RecvPBrowserConstructor(
71 : PBrowserParent* actor,
72 : const TabId& tabId,
73 : const TabId& sameTabGroupAs,
74 : const IPCTabContext& context,
75 : const uint32_t& chromeFlags,
76 : const ContentParentId& cpId,
77 : const bool& isForBrowser) -> mozilla::ipc::IPCResult
78 : {
79 0 : return IPC_OK();
80 : }
81 :
82 0 : auto PContentParent::RecvPFileDescriptorSetConstructor(
83 : PFileDescriptorSetParent* actor,
84 : const FileDescriptor& fd) -> mozilla::ipc::IPCResult
85 : {
86 0 : return IPC_OK();
87 : }
88 :
89 0 : auto PContentParent::RecvPWebBrowserPersistDocumentConstructor(
90 : PWebBrowserPersistDocumentParent* actor,
91 : PBrowserParent* aBrowser,
92 : const uint64_t& aOuterWindowID) -> mozilla::ipc::IPCResult
93 : {
94 0 : return IPC_OK();
95 : }
96 :
97 1 : auto PContentParent::RecvPJavaScriptConstructor(PJavaScriptParent* actor) -> mozilla::ipc::IPCResult
98 : {
99 1 : return IPC_OK();
100 : }
101 :
102 0 : auto PContentParent::RecvPRemoteSpellcheckEngineConstructor(PRemoteSpellcheckEngineParent* actor) -> mozilla::ipc::IPCResult
103 : {
104 0 : return IPC_OK();
105 : }
106 :
107 1 : auto PContentParent::RecvPHalConstructor(PHalParent* actor) -> mozilla::ipc::IPCResult
108 : {
109 1 : return IPC_OK();
110 : }
111 :
112 0 : auto PContentParent::RecvPHeapSnapshotTempFileHelperConstructor(PHeapSnapshotTempFileHelperParent* actor) -> mozilla::ipc::IPCResult
113 : {
114 0 : return IPC_OK();
115 : }
116 :
117 1 : auto PContentParent::RecvPNeckoConstructor(PNeckoParent* actor) -> mozilla::ipc::IPCResult
118 : {
119 1 : return IPC_OK();
120 : }
121 :
122 1 : auto PContentParent::RecvPPrintingConstructor(PPrintingParent* actor) -> mozilla::ipc::IPCResult
123 : {
124 1 : return IPC_OK();
125 : }
126 :
127 0 : auto PContentParent::RecvPChildToParentStreamConstructor(PChildToParentStreamParent* actor) -> mozilla::ipc::IPCResult
128 : {
129 0 : return IPC_OK();
130 : }
131 :
132 0 : auto PContentParent::RecvPSpeechSynthesisConstructor(PSpeechSynthesisParent* actor) -> mozilla::ipc::IPCResult
133 : {
134 0 : return IPC_OK();
135 : }
136 :
137 1 : auto PContentParent::RecvPStorageConstructor(PStorageParent* actor) -> mozilla::ipc::IPCResult
138 : {
139 1 : return IPC_OK();
140 : }
141 :
142 0 : auto PContentParent::RecvPMediaConstructor(PMediaParent* actor) -> mozilla::ipc::IPCResult
143 : {
144 0 : return IPC_OK();
145 : }
146 :
147 0 : auto PContentParent::RecvPWebrtcGlobalConstructor(PWebrtcGlobalParent* actor) -> mozilla::ipc::IPCResult
148 : {
149 0 : return IPC_OK();
150 : }
151 :
152 0 : auto PContentParent::RecvPPresentationConstructor(PPresentationParent* actor) -> mozilla::ipc::IPCResult
153 : {
154 0 : return IPC_OK();
155 : }
156 :
157 0 : auto PContentParent::RecvPFlyWebPublishedServerConstructor(
158 : PFlyWebPublishedServerParent* actor,
159 : const nsString& name,
160 : const FlyWebPublishOptions& params) -> mozilla::ipc::IPCResult
161 : {
162 0 : return IPC_OK();
163 : }
164 :
165 0 : auto PContentParent::RecvPURLClassifierConstructor(
166 : PURLClassifierParent* actor,
167 : const Principal& principal,
168 : const bool& useTrackingProtection,
169 : bool* success) -> mozilla::ipc::IPCResult
170 : {
171 0 : return IPC_OK();
172 : }
173 :
174 0 : auto PContentParent::RecvPURLClassifierLocalConstructor(
175 : PURLClassifierLocalParent* actor,
176 : const URIParams& uri,
177 : const nsCString& tables) -> mozilla::ipc::IPCResult
178 : {
179 0 : return IPC_OK();
180 : }
181 :
182 0 : auto PContentParent::RecvPPSMContentDownloaderConstructor(
183 : PPSMContentDownloaderParent* actor,
184 : const uint32_t& aCertType) -> mozilla::ipc::IPCResult
185 : {
186 0 : return IPC_OK();
187 : }
188 :
189 0 : auto PContentParent::RecvPExternalHelperAppConstructor(
190 : PExternalHelperAppParent* actor,
191 : const OptionalURIParams& uri,
192 : const nsCString& aMimeContentType,
193 : const nsCString& aContentDisposition,
194 : const uint32_t& aContentDispositionHint,
195 : const nsString& aContentDispositionFilename,
196 : const bool& aForceSave,
197 : const int64_t& aContentLength,
198 : const bool& aWasFileChannel,
199 : const OptionalURIParams& aReferrer,
200 : PBrowserParent* aBrowser) -> mozilla::ipc::IPCResult
201 : {
202 0 : return IPC_OK();
203 : }
204 :
205 0 : auto PContentParent::RecvPHandlerServiceConstructor(PHandlerServiceParent* actor) -> mozilla::ipc::IPCResult
206 : {
207 0 : return IPC_OK();
208 : }
209 :
210 0 : auto PContentParent::RecvPOfflineCacheUpdateConstructor(
211 : POfflineCacheUpdateParent* actor,
212 : const URIParams& manifestURI,
213 : const URIParams& documentURI,
214 : const PrincipalInfo& loadingPrincipal,
215 : const bool& stickDocument) -> mozilla::ipc::IPCResult
216 : {
217 0 : return IPC_OK();
218 : }
219 :
220 0 : auto PContentParent::RecvPContentPermissionRequestConstructor(
221 : PContentPermissionRequestParent* actor,
222 : nsTArray<PermissionRequest>&& aRequests,
223 : const Principal& aPrincipal,
224 : const TabId& tabId) -> mozilla::ipc::IPCResult
225 : {
226 0 : return IPC_OK();
227 : }
228 :
229 :
230 0 : auto PContentParent::ProcessingError(
231 : Result aCode,
232 : const char* aReason) -> void
233 : {
234 0 : }
235 :
236 0 : auto PContentParent::ShouldContinueFromReplyTimeout() -> bool
237 : {
238 0 : return true;
239 : }
240 :
241 209 : auto PContentParent::EnteredCxxStack() -> void
242 : {
243 209 : }
244 :
245 208 : auto PContentParent::ExitedCxxStack() -> void
246 : {
247 208 : }
248 :
249 0 : auto PContentParent::EnteredCall() -> void
250 : {
251 0 : }
252 :
253 0 : auto PContentParent::ExitedCall() -> void
254 : {
255 0 : }
256 :
257 2 : MOZ_IMPLICIT PContentParent::PContentParent() :
258 : mozilla::ipc::IToplevelProtocol(PContentMsgStart, mozilla::ipc::ParentSide),
259 : mChannel("PContentParent", ALLOW_THIS_IN_INITIALIZER_LIST(this)),
260 2 : mState(PContent::__Start)
261 : {
262 2 : MOZ_COUNT_CTOR(PContentParent);
263 2 : }
264 :
265 0 : PContentParent::~PContentParent()
266 : {
267 0 : MOZ_COUNT_DTOR(PContentParent);
268 0 : }
269 :
270 0 : auto PContentParent::ManagedPBrowserParent(nsTArray<PBrowserParent*>& aArr) const -> void
271 : {
272 0 : (mManagedPBrowserParent).ToArray(aArr);
273 0 : }
274 :
275 0 : auto PContentParent::ManagedPBrowserParent() const -> const ManagedContainer<PBrowserParent>&
276 : {
277 0 : return mManagedPBrowserParent;
278 : }
279 :
280 0 : auto PContentParent::ManagedPContentPermissionRequestParent(nsTArray<PContentPermissionRequestParent*>& aArr) const -> void
281 : {
282 0 : (mManagedPContentPermissionRequestParent).ToArray(aArr);
283 0 : }
284 :
285 0 : auto PContentParent::ManagedPContentPermissionRequestParent() const -> const ManagedContainer<PContentPermissionRequestParent>&
286 : {
287 0 : return mManagedPContentPermissionRequestParent;
288 : }
289 :
290 0 : auto PContentParent::ManagedPCycleCollectWithLogsParent(nsTArray<PCycleCollectWithLogsParent*>& aArr) const -> void
291 : {
292 0 : (mManagedPCycleCollectWithLogsParent).ToArray(aArr);
293 0 : }
294 :
295 0 : auto PContentParent::ManagedPCycleCollectWithLogsParent() const -> const ManagedContainer<PCycleCollectWithLogsParent>&
296 : {
297 0 : return mManagedPCycleCollectWithLogsParent;
298 : }
299 :
300 0 : auto PContentParent::ManagedPPSMContentDownloaderParent(nsTArray<PPSMContentDownloaderParent*>& aArr) const -> void
301 : {
302 0 : (mManagedPPSMContentDownloaderParent).ToArray(aArr);
303 0 : }
304 :
305 0 : auto PContentParent::ManagedPPSMContentDownloaderParent() const -> const ManagedContainer<PPSMContentDownloaderParent>&
306 : {
307 0 : return mManagedPPSMContentDownloaderParent;
308 : }
309 :
310 0 : auto PContentParent::ManagedPExternalHelperAppParent(nsTArray<PExternalHelperAppParent*>& aArr) const -> void
311 : {
312 0 : (mManagedPExternalHelperAppParent).ToArray(aArr);
313 0 : }
314 :
315 0 : auto PContentParent::ManagedPExternalHelperAppParent() const -> const ManagedContainer<PExternalHelperAppParent>&
316 : {
317 0 : return mManagedPExternalHelperAppParent;
318 : }
319 :
320 0 : auto PContentParent::ManagedPFileDescriptorSetParent(nsTArray<PFileDescriptorSetParent*>& aArr) const -> void
321 : {
322 0 : (mManagedPFileDescriptorSetParent).ToArray(aArr);
323 0 : }
324 :
325 0 : auto PContentParent::ManagedPFileDescriptorSetParent() const -> const ManagedContainer<PFileDescriptorSetParent>&
326 : {
327 0 : return mManagedPFileDescriptorSetParent;
328 : }
329 :
330 0 : auto PContentParent::ManagedPHalParent(nsTArray<PHalParent*>& aArr) const -> void
331 : {
332 0 : (mManagedPHalParent).ToArray(aArr);
333 0 : }
334 :
335 0 : auto PContentParent::ManagedPHalParent() const -> const ManagedContainer<PHalParent>&
336 : {
337 0 : return mManagedPHalParent;
338 : }
339 :
340 0 : auto PContentParent::ManagedPHandlerServiceParent(nsTArray<PHandlerServiceParent*>& aArr) const -> void
341 : {
342 0 : (mManagedPHandlerServiceParent).ToArray(aArr);
343 0 : }
344 :
345 0 : auto PContentParent::ManagedPHandlerServiceParent() const -> const ManagedContainer<PHandlerServiceParent>&
346 : {
347 0 : return mManagedPHandlerServiceParent;
348 : }
349 :
350 0 : auto PContentParent::ManagedPHeapSnapshotTempFileHelperParent(nsTArray<PHeapSnapshotTempFileHelperParent*>& aArr) const -> void
351 : {
352 0 : (mManagedPHeapSnapshotTempFileHelperParent).ToArray(aArr);
353 0 : }
354 :
355 0 : auto PContentParent::ManagedPHeapSnapshotTempFileHelperParent() const -> const ManagedContainer<PHeapSnapshotTempFileHelperParent>&
356 : {
357 0 : return mManagedPHeapSnapshotTempFileHelperParent;
358 : }
359 :
360 0 : auto PContentParent::ManagedPIPCBlobInputStreamParent(nsTArray<PIPCBlobInputStreamParent*>& aArr) const -> void
361 : {
362 0 : (mManagedPIPCBlobInputStreamParent).ToArray(aArr);
363 0 : }
364 :
365 0 : auto PContentParent::ManagedPIPCBlobInputStreamParent() const -> const ManagedContainer<PIPCBlobInputStreamParent>&
366 : {
367 0 : return mManagedPIPCBlobInputStreamParent;
368 : }
369 :
370 0 : auto PContentParent::ManagedPMediaParent(nsTArray<PMediaParent*>& aArr) const -> void
371 : {
372 0 : (mManagedPMediaParent).ToArray(aArr);
373 0 : }
374 :
375 0 : auto PContentParent::ManagedPMediaParent() const -> const ManagedContainer<PMediaParent>&
376 : {
377 0 : return mManagedPMediaParent;
378 : }
379 :
380 0 : auto PContentParent::ManagedPNeckoParent(nsTArray<PNeckoParent*>& aArr) const -> void
381 : {
382 0 : (mManagedPNeckoParent).ToArray(aArr);
383 0 : }
384 :
385 0 : auto PContentParent::ManagedPNeckoParent() const -> const ManagedContainer<PNeckoParent>&
386 : {
387 0 : return mManagedPNeckoParent;
388 : }
389 :
390 0 : auto PContentParent::ManagedPOfflineCacheUpdateParent(nsTArray<POfflineCacheUpdateParent*>& aArr) const -> void
391 : {
392 0 : (mManagedPOfflineCacheUpdateParent).ToArray(aArr);
393 0 : }
394 :
395 0 : auto PContentParent::ManagedPOfflineCacheUpdateParent() const -> const ManagedContainer<POfflineCacheUpdateParent>&
396 : {
397 0 : return mManagedPOfflineCacheUpdateParent;
398 : }
399 :
400 0 : auto PContentParent::ManagedPPrintingParent(nsTArray<PPrintingParent*>& aArr) const -> void
401 : {
402 0 : (mManagedPPrintingParent).ToArray(aArr);
403 0 : }
404 :
405 0 : auto PContentParent::ManagedPPrintingParent() const -> const ManagedContainer<PPrintingParent>&
406 : {
407 0 : return mManagedPPrintingParent;
408 : }
409 :
410 0 : auto PContentParent::ManagedPChildToParentStreamParent(nsTArray<PChildToParentStreamParent*>& aArr) const -> void
411 : {
412 0 : (mManagedPChildToParentStreamParent).ToArray(aArr);
413 0 : }
414 :
415 0 : auto PContentParent::ManagedPChildToParentStreamParent() const -> const ManagedContainer<PChildToParentStreamParent>&
416 : {
417 0 : return mManagedPChildToParentStreamParent;
418 : }
419 :
420 0 : auto PContentParent::ManagedPParentToChildStreamParent(nsTArray<PParentToChildStreamParent*>& aArr) const -> void
421 : {
422 0 : (mManagedPParentToChildStreamParent).ToArray(aArr);
423 0 : }
424 :
425 0 : auto PContentParent::ManagedPParentToChildStreamParent() const -> const ManagedContainer<PParentToChildStreamParent>&
426 : {
427 0 : return mManagedPParentToChildStreamParent;
428 : }
429 :
430 0 : auto PContentParent::ManagedPSpeechSynthesisParent(nsTArray<PSpeechSynthesisParent*>& aArr) const -> void
431 : {
432 0 : (mManagedPSpeechSynthesisParent).ToArray(aArr);
433 0 : }
434 :
435 0 : auto PContentParent::ManagedPSpeechSynthesisParent() const -> const ManagedContainer<PSpeechSynthesisParent>&
436 : {
437 0 : return mManagedPSpeechSynthesisParent;
438 : }
439 :
440 0 : auto PContentParent::ManagedPStorageParent(nsTArray<PStorageParent*>& aArr) const -> void
441 : {
442 0 : (mManagedPStorageParent).ToArray(aArr);
443 0 : }
444 :
445 0 : auto PContentParent::ManagedPStorageParent() const -> const ManagedContainer<PStorageParent>&
446 : {
447 0 : return mManagedPStorageParent;
448 : }
449 :
450 0 : auto PContentParent::ManagedPTestShellParent(nsTArray<PTestShellParent*>& aArr) const -> void
451 : {
452 0 : (mManagedPTestShellParent).ToArray(aArr);
453 0 : }
454 :
455 0 : auto PContentParent::ManagedPTestShellParent() const -> const ManagedContainer<PTestShellParent>&
456 : {
457 0 : return mManagedPTestShellParent;
458 : }
459 :
460 0 : auto PContentParent::ManagedPJavaScriptParent(nsTArray<PJavaScriptParent*>& aArr) const -> void
461 : {
462 0 : (mManagedPJavaScriptParent).ToArray(aArr);
463 0 : }
464 :
465 875 : auto PContentParent::ManagedPJavaScriptParent() const -> const ManagedContainer<PJavaScriptParent>&
466 : {
467 875 : return mManagedPJavaScriptParent;
468 : }
469 :
470 0 : auto PContentParent::ManagedPRemoteSpellcheckEngineParent(nsTArray<PRemoteSpellcheckEngineParent*>& aArr) const -> void
471 : {
472 0 : (mManagedPRemoteSpellcheckEngineParent).ToArray(aArr);
473 0 : }
474 :
475 0 : auto PContentParent::ManagedPRemoteSpellcheckEngineParent() const -> const ManagedContainer<PRemoteSpellcheckEngineParent>&
476 : {
477 0 : return mManagedPRemoteSpellcheckEngineParent;
478 : }
479 :
480 0 : auto PContentParent::ManagedPWebBrowserPersistDocumentParent(nsTArray<PWebBrowserPersistDocumentParent*>& aArr) const -> void
481 : {
482 0 : (mManagedPWebBrowserPersistDocumentParent).ToArray(aArr);
483 0 : }
484 :
485 0 : auto PContentParent::ManagedPWebBrowserPersistDocumentParent() const -> const ManagedContainer<PWebBrowserPersistDocumentParent>&
486 : {
487 0 : return mManagedPWebBrowserPersistDocumentParent;
488 : }
489 :
490 0 : auto PContentParent::ManagedPWebrtcGlobalParent(nsTArray<PWebrtcGlobalParent*>& aArr) const -> void
491 : {
492 0 : (mManagedPWebrtcGlobalParent).ToArray(aArr);
493 0 : }
494 :
495 0 : auto PContentParent::ManagedPWebrtcGlobalParent() const -> const ManagedContainer<PWebrtcGlobalParent>&
496 : {
497 0 : return mManagedPWebrtcGlobalParent;
498 : }
499 :
500 0 : auto PContentParent::ManagedPPresentationParent(nsTArray<PPresentationParent*>& aArr) const -> void
501 : {
502 0 : (mManagedPPresentationParent).ToArray(aArr);
503 0 : }
504 :
505 0 : auto PContentParent::ManagedPPresentationParent() const -> const ManagedContainer<PPresentationParent>&
506 : {
507 0 : return mManagedPPresentationParent;
508 : }
509 :
510 0 : auto PContentParent::ManagedPFlyWebPublishedServerParent(nsTArray<PFlyWebPublishedServerParent*>& aArr) const -> void
511 : {
512 0 : (mManagedPFlyWebPublishedServerParent).ToArray(aArr);
513 0 : }
514 :
515 0 : auto PContentParent::ManagedPFlyWebPublishedServerParent() const -> const ManagedContainer<PFlyWebPublishedServerParent>&
516 : {
517 0 : return mManagedPFlyWebPublishedServerParent;
518 : }
519 :
520 0 : auto PContentParent::ManagedPURLClassifierParent(nsTArray<PURLClassifierParent*>& aArr) const -> void
521 : {
522 0 : (mManagedPURLClassifierParent).ToArray(aArr);
523 0 : }
524 :
525 0 : auto PContentParent::ManagedPURLClassifierParent() const -> const ManagedContainer<PURLClassifierParent>&
526 : {
527 0 : return mManagedPURLClassifierParent;
528 : }
529 :
530 0 : auto PContentParent::ManagedPURLClassifierLocalParent(nsTArray<PURLClassifierLocalParent*>& aArr) const -> void
531 : {
532 0 : (mManagedPURLClassifierLocalParent).ToArray(aArr);
533 0 : }
534 :
535 0 : auto PContentParent::ManagedPURLClassifierLocalParent() const -> const ManagedContainer<PURLClassifierLocalParent>&
536 : {
537 0 : return mManagedPURLClassifierLocalParent;
538 : }
539 :
540 0 : auto PContentParent::ManagedPScriptCacheParent(nsTArray<PScriptCacheParent*>& aArr) const -> void
541 : {
542 0 : (mManagedPScriptCacheParent).ToArray(aArr);
543 0 : }
544 :
545 0 : auto PContentParent::ManagedPScriptCacheParent() const -> const ManagedContainer<PScriptCacheParent>&
546 : {
547 0 : return mManagedPScriptCacheParent;
548 : }
549 :
550 0 : auto PContentParent::SendPBrowserConstructor(
551 : const TabId& tabId,
552 : const TabId& sameTabGroupAs,
553 : const IPCTabContext& context,
554 : const uint32_t& chromeFlags,
555 : const ContentParentId& cpId,
556 : const bool& isForBrowser) -> PBrowserParent*
557 : {
558 0 : return SendPBrowserConstructor(AllocPBrowserParent(tabId, sameTabGroupAs, context, chromeFlags, cpId, isForBrowser), tabId, sameTabGroupAs, context, chromeFlags, cpId, isForBrowser);
559 : }
560 :
561 1 : auto PContentParent::SendPBrowserConstructor(
562 : PBrowserParent* actor,
563 : const TabId& tabId,
564 : const TabId& sameTabGroupAs,
565 : const IPCTabContext& context,
566 : const uint32_t& chromeFlags,
567 : const ContentParentId& cpId,
568 : const bool& isForBrowser) -> PBrowserParent*
569 : {
570 1 : if ((!(actor))) {
571 0 : NS_WARNING("Error constructing actor PBrowserParent");
572 0 : return nullptr;
573 : }
574 1 : (actor)->SetManager(this);
575 1 : Register(actor);
576 1 : (actor)->SetIPCChannel(GetIPCChannel());
577 1 : (mManagedPBrowserParent).PutEntry(actor);
578 1 : (actor)->mState = mozilla::dom::PBrowser::__Start;
579 :
580 1 : IPC::Message* msg__ = PContent::Msg_PBrowserConstructor(MSG_ROUTING_CONTROL);
581 :
582 1 : Write(actor, msg__, false);
583 : // Sentinel = 'actor'
584 1 : (msg__)->WriteSentinel(875202478);
585 1 : Write(tabId, msg__);
586 : // Sentinel = 'tabId'
587 1 : (msg__)->WriteSentinel(3419081923);
588 1 : Write(sameTabGroupAs, msg__);
589 : // Sentinel = 'sameTabGroupAs'
590 1 : (msg__)->WriteSentinel(3969365410);
591 1 : Write(context, msg__);
592 : // Sentinel = 'context'
593 1 : (msg__)->WriteSentinel(3514529014);
594 1 : Write(chromeFlags, msg__);
595 : // Sentinel = 'chromeFlags'
596 1 : (msg__)->WriteSentinel(299515804);
597 1 : Write(cpId, msg__);
598 : // Sentinel = 'cpId'
599 1 : (msg__)->WriteSentinel(2452595622);
600 1 : Write(isForBrowser, msg__);
601 : // Sentinel = 'isForBrowser'
602 1 : (msg__)->WriteSentinel(2051565587);
603 :
604 1 : (msg__)->set_constructor();
605 :
606 :
607 1 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
608 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
609 : }
610 2 : AUTO_PROFILER_LABEL("PContent::Msg_PBrowserConstructor", OTHER);
611 1 : PContent::Transition(PContent::Msg_PBrowserConstructor__ID, (&(mState)));
612 :
613 1 : bool sendok__ = (GetIPCChannel())->Send(msg__);
614 1 : if ((!(sendok__))) {
615 0 : IProtocol* mgr = (actor)->Manager();
616 0 : (actor)->DestroySubtree(FailedConstructor);
617 0 : (actor)->DeallocSubtree();
618 0 : (mgr)->RemoveManagee(PBrowserMsgStart, actor);
619 0 : return nullptr;
620 : }
621 1 : return actor;
622 : }
623 :
624 0 : auto PContentParent::SendPFileDescriptorSetConstructor(const FileDescriptor& fd) -> PFileDescriptorSetParent*
625 : {
626 0 : return SendPFileDescriptorSetConstructor(AllocPFileDescriptorSetParent(fd), fd);
627 : }
628 :
629 0 : auto PContentParent::SendPFileDescriptorSetConstructor(
630 : PFileDescriptorSetParent* actor,
631 : const FileDescriptor& fd) -> PFileDescriptorSetParent*
632 : {
633 0 : if ((!(actor))) {
634 0 : NS_WARNING("Error constructing actor PFileDescriptorSetParent");
635 0 : return nullptr;
636 : }
637 0 : (actor)->SetManager(this);
638 0 : Register(actor);
639 0 : (actor)->SetIPCChannel(GetIPCChannel());
640 0 : (mManagedPFileDescriptorSetParent).PutEntry(actor);
641 0 : (actor)->mState = mozilla::ipc::PFileDescriptorSet::__Start;
642 :
643 0 : IPC::Message* msg__ = PContent::Msg_PFileDescriptorSetConstructor(MSG_ROUTING_CONTROL);
644 :
645 0 : Write(actor, msg__, false);
646 : // Sentinel = 'actor'
647 0 : (msg__)->WriteSentinel(875202478);
648 0 : Write(fd, msg__);
649 : // Sentinel = 'fd'
650 0 : (msg__)->WriteSentinel(628535764);
651 :
652 0 : (msg__)->set_constructor();
653 :
654 :
655 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
656 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
657 : }
658 0 : AUTO_PROFILER_LABEL("PContent::Msg_PFileDescriptorSetConstructor", OTHER);
659 0 : PContent::Transition(PContent::Msg_PFileDescriptorSetConstructor__ID, (&(mState)));
660 :
661 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
662 0 : if ((!(sendok__))) {
663 0 : IProtocol* mgr = (actor)->Manager();
664 0 : (actor)->DestroySubtree(FailedConstructor);
665 0 : (actor)->DeallocSubtree();
666 0 : (mgr)->RemoveManagee(PFileDescriptorSetMsgStart, actor);
667 0 : return nullptr;
668 : }
669 0 : return actor;
670 : }
671 :
672 0 : auto PContentParent::SendPWebBrowserPersistDocumentConstructor(
673 : PBrowserParent* aBrowser,
674 : const uint64_t& aOuterWindowID) -> PWebBrowserPersistDocumentParent*
675 : {
676 0 : return SendPWebBrowserPersistDocumentConstructor(AllocPWebBrowserPersistDocumentParent(aBrowser, aOuterWindowID), aBrowser, aOuterWindowID);
677 : }
678 :
679 0 : auto PContentParent::SendPWebBrowserPersistDocumentConstructor(
680 : PWebBrowserPersistDocumentParent* actor,
681 : PBrowserParent* aBrowser,
682 : const uint64_t& aOuterWindowID) -> PWebBrowserPersistDocumentParent*
683 : {
684 0 : if ((!(actor))) {
685 0 : NS_WARNING("Error constructing actor PWebBrowserPersistDocumentParent");
686 0 : return nullptr;
687 : }
688 0 : (actor)->SetManager(this);
689 0 : Register(actor);
690 0 : (actor)->SetIPCChannel(GetIPCChannel());
691 0 : (mManagedPWebBrowserPersistDocumentParent).PutEntry(actor);
692 0 : (actor)->mState = mozilla::PWebBrowserPersistDocument::__Start;
693 :
694 0 : IPC::Message* msg__ = PContent::Msg_PWebBrowserPersistDocumentConstructor(MSG_ROUTING_CONTROL);
695 :
696 0 : Write(actor, msg__, false);
697 : // Sentinel = 'actor'
698 0 : (msg__)->WriteSentinel(875202478);
699 0 : Write(aBrowser, msg__, true);
700 : // Sentinel = 'aBrowser'
701 0 : (msg__)->WriteSentinel(3086016059);
702 0 : Write(aOuterWindowID, msg__);
703 : // Sentinel = 'aOuterWindowID'
704 0 : (msg__)->WriteSentinel(3438169907);
705 :
706 0 : (msg__)->set_constructor();
707 :
708 :
709 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
710 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
711 : }
712 0 : AUTO_PROFILER_LABEL("PContent::Msg_PWebBrowserPersistDocumentConstructor", OTHER);
713 0 : PContent::Transition(PContent::Msg_PWebBrowserPersistDocumentConstructor__ID, (&(mState)));
714 :
715 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
716 0 : if ((!(sendok__))) {
717 0 : IProtocol* mgr = (actor)->Manager();
718 0 : (actor)->DestroySubtree(FailedConstructor);
719 0 : (actor)->DeallocSubtree();
720 0 : (mgr)->RemoveManagee(PWebBrowserPersistDocumentMsgStart, actor);
721 0 : return nullptr;
722 : }
723 0 : return actor;
724 : }
725 :
726 0 : auto PContentParent::SendInitGMPService(const Endpoint<mozilla::gmp::PGMPServiceChild>& service) -> bool
727 : {
728 0 : IPC::Message* msg__ = PContent::Msg_InitGMPService(MSG_ROUTING_CONTROL);
729 :
730 0 : Write(service, msg__);
731 : // Sentinel = 'service'
732 0 : (msg__)->WriteSentinel(4064038);
733 :
734 :
735 :
736 :
737 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
738 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
739 : }
740 0 : AUTO_PROFILER_LABEL("PContent::Msg_InitGMPService", OTHER);
741 0 : PContent::Transition(PContent::Msg_InitGMPService__ID, (&(mState)));
742 :
743 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
744 0 : return sendok__;
745 : }
746 :
747 2 : auto PContentParent::SendInitProcessHangMonitor(const Endpoint<mozilla::PProcessHangMonitorChild>& hangMonitor) -> bool
748 : {
749 2 : IPC::Message* msg__ = PContent::Msg_InitProcessHangMonitor(MSG_ROUTING_CONTROL);
750 :
751 2 : Write(hangMonitor, msg__);
752 : // Sentinel = 'hangMonitor'
753 2 : (msg__)->WriteSentinel(1135728705);
754 :
755 :
756 :
757 :
758 2 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
759 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
760 : }
761 4 : AUTO_PROFILER_LABEL("PContent::Msg_InitProcessHangMonitor", OTHER);
762 2 : PContent::Transition(PContent::Msg_InitProcessHangMonitor__ID, (&(mState)));
763 :
764 2 : bool sendok__ = (GetIPCChannel())->Send(msg__);
765 4 : return sendok__;
766 : }
767 :
768 0 : auto PContentParent::SendInitContentBridgeChild(const Endpoint<mozilla::dom::PContentBridgeChild>& endpoint) -> bool
769 : {
770 0 : IPC::Message* msg__ = PContent::Msg_InitContentBridgeChild(MSG_ROUTING_CONTROL);
771 :
772 0 : Write(endpoint, msg__);
773 : // Sentinel = 'endpoint'
774 0 : (msg__)->WriteSentinel(3610972515);
775 :
776 :
777 :
778 :
779 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
780 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
781 : }
782 0 : AUTO_PROFILER_LABEL("PContent::Msg_InitContentBridgeChild", OTHER);
783 0 : PContent::Transition(PContent::Msg_InitContentBridgeChild__ID, (&(mState)));
784 :
785 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
786 0 : return sendok__;
787 : }
788 :
789 2 : auto PContentParent::SendInitProfiler(const Endpoint<mozilla::PProfilerChild>& aEndpoint) -> bool
790 : {
791 2 : IPC::Message* msg__ = PContent::Msg_InitProfiler(MSG_ROUTING_CONTROL);
792 :
793 2 : Write(aEndpoint, msg__);
794 : // Sentinel = 'aEndpoint'
795 2 : (msg__)->WriteSentinel(2457438235);
796 :
797 :
798 :
799 :
800 2 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
801 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
802 : }
803 4 : AUTO_PROFILER_LABEL("PContent::Msg_InitProfiler", OTHER);
804 2 : PContent::Transition(PContent::Msg_InitProfiler__ID, (&(mState)));
805 :
806 2 : bool sendok__ = (GetIPCChannel())->Send(msg__);
807 4 : return sendok__;
808 : }
809 :
810 2 : auto PContentParent::SendInitRendering(
811 : const Endpoint<mozilla::layers::PCompositorManagerChild>& compositor,
812 : const Endpoint<mozilla::layers::PImageBridgeChild>& imageBridge,
813 : const Endpoint<mozilla::gfx::PVRManagerChild>& vr,
814 : const Endpoint<mozilla::dom::PVideoDecoderManagerChild>& video,
815 : const nsTArray<uint32_t>& namespaces) -> bool
816 : {
817 2 : IPC::Message* msg__ = PContent::Msg_InitRendering(MSG_ROUTING_CONTROL);
818 :
819 2 : Write(compositor, msg__);
820 : // Sentinel = 'compositor'
821 2 : (msg__)->WriteSentinel(2766138585);
822 2 : Write(imageBridge, msg__);
823 : // Sentinel = 'imageBridge'
824 2 : (msg__)->WriteSentinel(390565091);
825 2 : Write(vr, msg__);
826 : // Sentinel = 'vr'
827 2 : (msg__)->WriteSentinel(727129490);
828 2 : Write(video, msg__);
829 : // Sentinel = 'video'
830 2 : (msg__)->WriteSentinel(1200625812);
831 2 : Write(namespaces, msg__);
832 : // Sentinel = 'namespaces'
833 2 : (msg__)->WriteSentinel(331300950);
834 :
835 :
836 :
837 :
838 2 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
839 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
840 : }
841 4 : AUTO_PROFILER_LABEL("PContent::Msg_InitRendering", OTHER);
842 2 : PContent::Transition(PContent::Msg_InitRendering__ID, (&(mState)));
843 :
844 2 : bool sendok__ = (GetIPCChannel())->Send(msg__);
845 4 : return sendok__;
846 : }
847 :
848 0 : auto PContentParent::SendReinitRendering(
849 : const Endpoint<mozilla::layers::PCompositorManagerChild>& compositor,
850 : const Endpoint<mozilla::layers::PImageBridgeChild>& bridge,
851 : const Endpoint<mozilla::gfx::PVRManagerChild>& vr,
852 : const Endpoint<mozilla::dom::PVideoDecoderManagerChild>& video,
853 : const nsTArray<uint32_t>& namespaces) -> bool
854 : {
855 0 : IPC::Message* msg__ = PContent::Msg_ReinitRendering(MSG_ROUTING_CONTROL);
856 :
857 0 : Write(compositor, msg__);
858 : // Sentinel = 'compositor'
859 0 : (msg__)->WriteSentinel(2766138585);
860 0 : Write(bridge, msg__);
861 : // Sentinel = 'bridge'
862 0 : (msg__)->WriteSentinel(1159488385);
863 0 : Write(vr, msg__);
864 : // Sentinel = 'vr'
865 0 : (msg__)->WriteSentinel(727129490);
866 0 : Write(video, msg__);
867 : // Sentinel = 'video'
868 0 : (msg__)->WriteSentinel(1200625812);
869 0 : Write(namespaces, msg__);
870 : // Sentinel = 'namespaces'
871 0 : (msg__)->WriteSentinel(331300950);
872 :
873 :
874 :
875 :
876 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
877 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
878 : }
879 0 : AUTO_PROFILER_LABEL("PContent::Msg_ReinitRendering", OTHER);
880 0 : PContent::Transition(PContent::Msg_ReinitRendering__ID, (&(mState)));
881 :
882 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
883 0 : return sendok__;
884 : }
885 :
886 0 : auto PContentParent::SendReinitRenderingForDeviceReset() -> bool
887 : {
888 0 : IPC::Message* msg__ = PContent::Msg_ReinitRenderingForDeviceReset(MSG_ROUTING_CONTROL);
889 :
890 :
891 :
892 :
893 :
894 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
895 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
896 : }
897 0 : AUTO_PROFILER_LABEL("PContent::Msg_ReinitRenderingForDeviceReset", OTHER);
898 0 : PContent::Transition(PContent::Msg_ReinitRenderingForDeviceReset__ID, (&(mState)));
899 :
900 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
901 0 : return sendok__;
902 : }
903 :
904 0 : auto PContentParent::SendSetProcessSandbox(const MaybeFileDesc& aBroker) -> bool
905 : {
906 0 : IPC::Message* msg__ = PContent::Msg_SetProcessSandbox(MSG_ROUTING_CONTROL);
907 :
908 0 : Write(aBroker, msg__);
909 : // Sentinel = 'aBroker'
910 0 : (msg__)->WriteSentinel(2424547965);
911 :
912 :
913 :
914 :
915 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
916 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
917 : }
918 0 : AUTO_PROFILER_LABEL("PContent::Msg_SetProcessSandbox", OTHER);
919 0 : PContent::Transition(PContent::Msg_SetProcessSandbox__ID, (&(mState)));
920 :
921 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
922 0 : return sendok__;
923 : }
924 :
925 0 : auto PContentParent::SendRequestMemoryReport(
926 : const uint32_t& generation,
927 : const bool& anonymize,
928 : const bool& minimizeMemoryUsage,
929 : const MaybeFileDesc& DMDFile) -> bool
930 : {
931 0 : IPC::Message* msg__ = PContent::Msg_RequestMemoryReport(MSG_ROUTING_CONTROL);
932 :
933 0 : Write(generation, msg__);
934 : // Sentinel = 'generation'
935 0 : (msg__)->WriteSentinel(1396961928);
936 0 : Write(anonymize, msg__);
937 : // Sentinel = 'anonymize'
938 0 : (msg__)->WriteSentinel(3334711915);
939 0 : Write(minimizeMemoryUsage, msg__);
940 : // Sentinel = 'minimizeMemoryUsage'
941 0 : (msg__)->WriteSentinel(3442464661);
942 0 : Write(DMDFile, msg__);
943 : // Sentinel = 'DMDFile'
944 0 : (msg__)->WriteSentinel(3739167222);
945 :
946 :
947 :
948 :
949 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
950 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
951 : }
952 0 : AUTO_PROFILER_LABEL("PContent::Msg_RequestMemoryReport", OTHER);
953 0 : PContent::Transition(PContent::Msg_RequestMemoryReport__ID, (&(mState)));
954 :
955 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
956 0 : return sendok__;
957 : }
958 :
959 0 : auto PContentParent::SendBidiKeyboardNotify(
960 : const bool& isLangRTL,
961 : const bool& haveBidiKeyboards) -> bool
962 : {
963 0 : IPC::Message* msg__ = PContent::Msg_BidiKeyboardNotify(MSG_ROUTING_CONTROL);
964 :
965 0 : Write(isLangRTL, msg__);
966 : // Sentinel = 'isLangRTL'
967 0 : (msg__)->WriteSentinel(1112035623);
968 0 : Write(haveBidiKeyboards, msg__);
969 : // Sentinel = 'haveBidiKeyboards'
970 0 : (msg__)->WriteSentinel(4121278935);
971 :
972 :
973 :
974 :
975 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
976 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
977 : }
978 0 : AUTO_PROFILER_LABEL("PContent::Msg_BidiKeyboardNotify", OTHER);
979 0 : PContent::Transition(PContent::Msg_BidiKeyboardNotify__ID, (&(mState)));
980 :
981 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
982 0 : return sendok__;
983 : }
984 :
985 0 : auto PContentParent::SendPCycleCollectWithLogsConstructor(
986 : const bool& dumpAllTraces,
987 : const FileDescriptor& gcLog,
988 : const FileDescriptor& ccLog) -> PCycleCollectWithLogsParent*
989 : {
990 0 : return SendPCycleCollectWithLogsConstructor(AllocPCycleCollectWithLogsParent(dumpAllTraces, gcLog, ccLog), dumpAllTraces, gcLog, ccLog);
991 : }
992 :
993 0 : auto PContentParent::SendPCycleCollectWithLogsConstructor(
994 : PCycleCollectWithLogsParent* actor,
995 : const bool& dumpAllTraces,
996 : const FileDescriptor& gcLog,
997 : const FileDescriptor& ccLog) -> PCycleCollectWithLogsParent*
998 : {
999 0 : if ((!(actor))) {
1000 0 : NS_WARNING("Error constructing actor PCycleCollectWithLogsParent");
1001 0 : return nullptr;
1002 : }
1003 0 : (actor)->SetManager(this);
1004 0 : Register(actor);
1005 0 : (actor)->SetIPCChannel(GetIPCChannel());
1006 0 : (mManagedPCycleCollectWithLogsParent).PutEntry(actor);
1007 0 : (actor)->mState = mozilla::dom::PCycleCollectWithLogs::__Start;
1008 :
1009 0 : IPC::Message* msg__ = PContent::Msg_PCycleCollectWithLogsConstructor(MSG_ROUTING_CONTROL);
1010 :
1011 0 : Write(actor, msg__, false);
1012 : // Sentinel = 'actor'
1013 0 : (msg__)->WriteSentinel(875202478);
1014 0 : Write(dumpAllTraces, msg__);
1015 : // Sentinel = 'dumpAllTraces'
1016 0 : (msg__)->WriteSentinel(1185678160);
1017 0 : Write(gcLog, msg__);
1018 : // Sentinel = 'gcLog'
1019 0 : (msg__)->WriteSentinel(1153400941);
1020 0 : Write(ccLog, msg__);
1021 : // Sentinel = 'ccLog'
1022 0 : (msg__)->WriteSentinel(2494741865);
1023 :
1024 0 : (msg__)->set_constructor();
1025 :
1026 :
1027 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1028 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1029 : }
1030 0 : AUTO_PROFILER_LABEL("PContent::Msg_PCycleCollectWithLogsConstructor", OTHER);
1031 0 : PContent::Transition(PContent::Msg_PCycleCollectWithLogsConstructor__ID, (&(mState)));
1032 :
1033 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1034 0 : if ((!(sendok__))) {
1035 0 : IProtocol* mgr = (actor)->Manager();
1036 0 : (actor)->DestroySubtree(FailedConstructor);
1037 0 : (actor)->DeallocSubtree();
1038 0 : (mgr)->RemoveManagee(PCycleCollectWithLogsMsgStart, actor);
1039 0 : return nullptr;
1040 : }
1041 0 : return actor;
1042 : }
1043 :
1044 0 : auto PContentParent::SendPTestShellConstructor() -> PTestShellParent*
1045 : {
1046 0 : return SendPTestShellConstructor(AllocPTestShellParent());
1047 : }
1048 :
1049 0 : auto PContentParent::SendPTestShellConstructor(PTestShellParent* actor) -> PTestShellParent*
1050 : {
1051 0 : if ((!(actor))) {
1052 0 : NS_WARNING("Error constructing actor PTestShellParent");
1053 0 : return nullptr;
1054 : }
1055 0 : (actor)->SetManager(this);
1056 0 : Register(actor);
1057 0 : (actor)->SetIPCChannel(GetIPCChannel());
1058 0 : (mManagedPTestShellParent).PutEntry(actor);
1059 0 : (actor)->mState = mozilla::ipc::PTestShell::__Start;
1060 :
1061 0 : IPC::Message* msg__ = PContent::Msg_PTestShellConstructor(MSG_ROUTING_CONTROL);
1062 :
1063 0 : Write(actor, msg__, false);
1064 : // Sentinel = 'actor'
1065 0 : (msg__)->WriteSentinel(875202478);
1066 :
1067 0 : (msg__)->set_constructor();
1068 :
1069 :
1070 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1071 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1072 : }
1073 0 : AUTO_PROFILER_LABEL("PContent::Msg_PTestShellConstructor", OTHER);
1074 0 : PContent::Transition(PContent::Msg_PTestShellConstructor__ID, (&(mState)));
1075 :
1076 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1077 0 : if ((!(sendok__))) {
1078 0 : IProtocol* mgr = (actor)->Manager();
1079 0 : (actor)->DestroySubtree(FailedConstructor);
1080 0 : (actor)->DeallocSubtree();
1081 0 : (mgr)->RemoveManagee(PTestShellMsgStart, actor);
1082 0 : return nullptr;
1083 : }
1084 0 : return actor;
1085 : }
1086 :
1087 2 : auto PContentParent::SendPScriptCacheConstructor(
1088 : const FileDescOrError& cacheFile,
1089 : const bool& wantCacheData) -> PScriptCacheParent*
1090 : {
1091 2 : return SendPScriptCacheConstructor(AllocPScriptCacheParent(cacheFile, wantCacheData), cacheFile, wantCacheData);
1092 : }
1093 :
1094 2 : auto PContentParent::SendPScriptCacheConstructor(
1095 : PScriptCacheParent* actor,
1096 : const FileDescOrError& cacheFile,
1097 : const bool& wantCacheData) -> PScriptCacheParent*
1098 : {
1099 2 : if ((!(actor))) {
1100 0 : NS_WARNING("Error constructing actor PScriptCacheParent");
1101 0 : return nullptr;
1102 : }
1103 2 : (actor)->SetManager(this);
1104 2 : Register(actor);
1105 2 : (actor)->SetIPCChannel(GetIPCChannel());
1106 2 : (mManagedPScriptCacheParent).PutEntry(actor);
1107 2 : (actor)->mState = mozilla::loader::PScriptCache::__Start;
1108 :
1109 2 : IPC::Message* msg__ = PContent::Msg_PScriptCacheConstructor(MSG_ROUTING_CONTROL);
1110 :
1111 2 : Write(actor, msg__, false);
1112 : // Sentinel = 'actor'
1113 2 : (msg__)->WriteSentinel(875202478);
1114 2 : Write(cacheFile, msg__);
1115 : // Sentinel = 'cacheFile'
1116 2 : (msg__)->WriteSentinel(1159637773);
1117 2 : Write(wantCacheData, msg__);
1118 : // Sentinel = 'wantCacheData'
1119 2 : (msg__)->WriteSentinel(2349173833);
1120 :
1121 2 : (msg__)->set_constructor();
1122 :
1123 :
1124 2 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1125 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1126 : }
1127 4 : AUTO_PROFILER_LABEL("PContent::Msg_PScriptCacheConstructor", OTHER);
1128 2 : PContent::Transition(PContent::Msg_PScriptCacheConstructor__ID, (&(mState)));
1129 :
1130 2 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1131 2 : if ((!(sendok__))) {
1132 0 : IProtocol* mgr = (actor)->Manager();
1133 0 : (actor)->DestroySubtree(FailedConstructor);
1134 0 : (actor)->DeallocSubtree();
1135 0 : (mgr)->RemoveManagee(PScriptCacheMsgStart, actor);
1136 0 : return nullptr;
1137 : }
1138 2 : return actor;
1139 : }
1140 :
1141 2 : auto PContentParent::SendRegisterChrome(
1142 : const nsTArray<ChromePackage>& packages,
1143 : const nsTArray<SubstitutionMapping>& substitutions,
1144 : const nsTArray<OverrideMapping>& overrides,
1145 : const nsCString& locale,
1146 : const bool& reset) -> bool
1147 : {
1148 2 : IPC::Message* msg__ = PContent::Msg_RegisterChrome(MSG_ROUTING_CONTROL);
1149 :
1150 2 : Write(packages, msg__);
1151 : // Sentinel = 'packages'
1152 2 : (msg__)->WriteSentinel(2544542939);
1153 2 : Write(substitutions, msg__);
1154 : // Sentinel = 'substitutions'
1155 2 : (msg__)->WriteSentinel(1650827567);
1156 2 : Write(overrides, msg__);
1157 : // Sentinel = 'overrides'
1158 2 : (msg__)->WriteSentinel(3491981546);
1159 2 : Write(locale, msg__);
1160 : // Sentinel = 'locale'
1161 2 : (msg__)->WriteSentinel(779891848);
1162 2 : Write(reset, msg__);
1163 : // Sentinel = 'reset'
1164 2 : (msg__)->WriteSentinel(2509547360);
1165 :
1166 :
1167 :
1168 :
1169 2 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1170 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1171 : }
1172 4 : AUTO_PROFILER_LABEL("PContent::Msg_RegisterChrome", OTHER);
1173 2 : PContent::Transition(PContent::Msg_RegisterChrome__ID, (&(mState)));
1174 :
1175 2 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1176 4 : return sendok__;
1177 : }
1178 :
1179 0 : auto PContentParent::SendRegisterChromeItem(const ChromeRegistryItem& item) -> bool
1180 : {
1181 0 : IPC::Message* msg__ = PContent::Msg_RegisterChromeItem(MSG_ROUTING_CONTROL);
1182 :
1183 0 : Write(item, msg__);
1184 : // Sentinel = 'item'
1185 0 : (msg__)->WriteSentinel(3785181297);
1186 :
1187 :
1188 :
1189 :
1190 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1191 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1192 : }
1193 0 : AUTO_PROFILER_LABEL("PContent::Msg_RegisterChromeItem", OTHER);
1194 0 : PContent::Transition(PContent::Msg_RegisterChromeItem__ID, (&(mState)));
1195 :
1196 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1197 0 : return sendok__;
1198 : }
1199 :
1200 0 : auto PContentParent::SendClearImageCache(
1201 : const bool& privateLoader,
1202 : const bool& chrome) -> bool
1203 : {
1204 0 : IPC::Message* msg__ = PContent::Msg_ClearImageCache(MSG_ROUTING_CONTROL);
1205 :
1206 0 : Write(privateLoader, msg__);
1207 : // Sentinel = 'privateLoader'
1208 0 : (msg__)->WriteSentinel(3222654805);
1209 0 : Write(chrome, msg__);
1210 : // Sentinel = 'chrome'
1211 0 : (msg__)->WriteSentinel(2631435560);
1212 :
1213 :
1214 :
1215 :
1216 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1217 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1218 : }
1219 0 : AUTO_PROFILER_LABEL("PContent::Msg_ClearImageCache", OTHER);
1220 0 : PContent::Transition(PContent::Msg_ClearImageCache__ID, (&(mState)));
1221 :
1222 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1223 0 : return sendok__;
1224 : }
1225 :
1226 0 : auto PContentParent::SendSetOffline(const bool& offline) -> bool
1227 : {
1228 0 : IPC::Message* msg__ = PContent::Msg_SetOffline(MSG_ROUTING_CONTROL);
1229 :
1230 0 : Write(offline, msg__);
1231 : // Sentinel = 'offline'
1232 0 : (msg__)->WriteSentinel(3136819898);
1233 :
1234 :
1235 :
1236 :
1237 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1238 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1239 : }
1240 0 : AUTO_PROFILER_LABEL("PContent::Msg_SetOffline", OTHER);
1241 0 : PContent::Transition(PContent::Msg_SetOffline__ID, (&(mState)));
1242 :
1243 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1244 0 : return sendok__;
1245 : }
1246 :
1247 0 : auto PContentParent::SendSetConnectivity(const bool& connectivity) -> bool
1248 : {
1249 0 : IPC::Message* msg__ = PContent::Msg_SetConnectivity(MSG_ROUTING_CONTROL);
1250 :
1251 0 : Write(connectivity, msg__);
1252 : // Sentinel = 'connectivity'
1253 0 : (msg__)->WriteSentinel(3733639633);
1254 :
1255 :
1256 :
1257 :
1258 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1259 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1260 : }
1261 0 : AUTO_PROFILER_LABEL("PContent::Msg_SetConnectivity", OTHER);
1262 0 : PContent::Transition(PContent::Msg_SetConnectivity__ID, (&(mState)));
1263 :
1264 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1265 0 : return sendok__;
1266 : }
1267 :
1268 0 : auto PContentParent::SendSetCaptivePortalState(const int32_t& aState) -> bool
1269 : {
1270 0 : IPC::Message* msg__ = PContent::Msg_SetCaptivePortalState(MSG_ROUTING_CONTROL);
1271 :
1272 0 : Write(aState, msg__);
1273 : // Sentinel = 'aState'
1274 0 : (msg__)->WriteSentinel(3694751962);
1275 :
1276 :
1277 :
1278 :
1279 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1280 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1281 : }
1282 0 : AUTO_PROFILER_LABEL("PContent::Msg_SetCaptivePortalState", OTHER);
1283 0 : PContent::Transition(PContent::Msg_SetCaptivePortalState__ID, (&(mState)));
1284 :
1285 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1286 0 : return sendok__;
1287 : }
1288 :
1289 1 : auto PContentParent::SendNotifyVisited(const URIParams& uri) -> bool
1290 : {
1291 1 : IPC::Message* msg__ = PContent::Msg_NotifyVisited(MSG_ROUTING_CONTROL);
1292 :
1293 1 : Write(uri, msg__);
1294 : // Sentinel = 'uri'
1295 1 : (msg__)->WriteSentinel(1453210605);
1296 :
1297 :
1298 :
1299 :
1300 1 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1301 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1302 : }
1303 2 : AUTO_PROFILER_LABEL("PContent::Msg_NotifyVisited", OTHER);
1304 1 : PContent::Transition(PContent::Msg_NotifyVisited__ID, (&(mState)));
1305 :
1306 1 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1307 2 : return sendok__;
1308 : }
1309 :
1310 23 : auto PContentParent::SendPreferenceUpdate(const PrefSetting& pref) -> bool
1311 : {
1312 23 : IPC::Message* msg__ = PContent::Msg_PreferenceUpdate(MSG_ROUTING_CONTROL);
1313 :
1314 23 : Write(pref, msg__);
1315 : // Sentinel = 'pref'
1316 23 : (msg__)->WriteSentinel(3089393963);
1317 :
1318 :
1319 :
1320 :
1321 23 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1322 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1323 : }
1324 46 : AUTO_PROFILER_LABEL("PContent::Msg_PreferenceUpdate", OTHER);
1325 23 : PContent::Transition(PContent::Msg_PreferenceUpdate__ID, (&(mState)));
1326 :
1327 23 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1328 46 : return sendok__;
1329 : }
1330 :
1331 0 : auto PContentParent::SendVarUpdate(const GfxVarUpdate& var) -> bool
1332 : {
1333 0 : IPC::Message* msg__ = PContent::Msg_VarUpdate(MSG_ROUTING_CONTROL);
1334 :
1335 0 : Write(var, msg__);
1336 : // Sentinel = 'var'
1337 0 : (msg__)->WriteSentinel(2283110200);
1338 :
1339 :
1340 :
1341 :
1342 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1343 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1344 : }
1345 0 : AUTO_PROFILER_LABEL("PContent::Msg_VarUpdate", OTHER);
1346 0 : PContent::Transition(PContent::Msg_VarUpdate__ID, (&(mState)));
1347 :
1348 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1349 0 : return sendok__;
1350 : }
1351 :
1352 0 : auto PContentParent::SendDataStoragePut(
1353 : const nsString& aFilename,
1354 : const DataStorageItem& aItem) -> bool
1355 : {
1356 0 : IPC::Message* msg__ = PContent::Msg_DataStoragePut(MSG_ROUTING_CONTROL);
1357 :
1358 0 : Write(aFilename, msg__);
1359 : // Sentinel = 'aFilename'
1360 0 : (msg__)->WriteSentinel(2942409315);
1361 0 : Write(aItem, msg__);
1362 : // Sentinel = 'aItem'
1363 0 : (msg__)->WriteSentinel(3914436313);
1364 :
1365 :
1366 :
1367 :
1368 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1369 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1370 : }
1371 0 : AUTO_PROFILER_LABEL("PContent::Msg_DataStoragePut", OTHER);
1372 0 : PContent::Transition(PContent::Msg_DataStoragePut__ID, (&(mState)));
1373 :
1374 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1375 0 : return sendok__;
1376 : }
1377 :
1378 0 : auto PContentParent::SendDataStorageRemove(
1379 : const nsString& aFilename,
1380 : const nsCString& aKey,
1381 : const DataStorageType& aType) -> bool
1382 : {
1383 0 : IPC::Message* msg__ = PContent::Msg_DataStorageRemove(MSG_ROUTING_CONTROL);
1384 :
1385 0 : Write(aFilename, msg__);
1386 : // Sentinel = 'aFilename'
1387 0 : (msg__)->WriteSentinel(2942409315);
1388 0 : Write(aKey, msg__);
1389 : // Sentinel = 'aKey'
1390 0 : (msg__)->WriteSentinel(3415890794);
1391 0 : Write(aType, msg__);
1392 : // Sentinel = 'aType'
1393 0 : (msg__)->WriteSentinel(1819585676);
1394 :
1395 :
1396 :
1397 :
1398 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1399 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1400 : }
1401 0 : AUTO_PROFILER_LABEL("PContent::Msg_DataStorageRemove", OTHER);
1402 0 : PContent::Transition(PContent::Msg_DataStorageRemove__ID, (&(mState)));
1403 :
1404 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1405 0 : return sendok__;
1406 : }
1407 :
1408 0 : auto PContentParent::SendDataStorageClear(const nsString& aFilename) -> bool
1409 : {
1410 0 : IPC::Message* msg__ = PContent::Msg_DataStorageClear(MSG_ROUTING_CONTROL);
1411 :
1412 0 : Write(aFilename, msg__);
1413 : // Sentinel = 'aFilename'
1414 0 : (msg__)->WriteSentinel(2942409315);
1415 :
1416 :
1417 :
1418 :
1419 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1420 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1421 : }
1422 0 : AUTO_PROFILER_LABEL("PContent::Msg_DataStorageClear", OTHER);
1423 0 : PContent::Transition(PContent::Msg_DataStorageClear__ID, (&(mState)));
1424 :
1425 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1426 0 : return sendok__;
1427 : }
1428 :
1429 0 : auto PContentParent::SendNotifyAlertsObserver(
1430 : const nsCString& topic,
1431 : const nsString& data) -> bool
1432 : {
1433 0 : IPC::Message* msg__ = PContent::Msg_NotifyAlertsObserver(MSG_ROUTING_CONTROL);
1434 :
1435 0 : Write(topic, msg__);
1436 : // Sentinel = 'topic'
1437 0 : (msg__)->WriteSentinel(261826960);
1438 0 : Write(data, msg__);
1439 : // Sentinel = 'data'
1440 0 : (msg__)->WriteSentinel(843352540);
1441 :
1442 :
1443 :
1444 :
1445 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1446 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1447 : }
1448 0 : AUTO_PROFILER_LABEL("PContent::Msg_NotifyAlertsObserver", OTHER);
1449 0 : PContent::Transition(PContent::Msg_NotifyAlertsObserver__ID, (&(mState)));
1450 :
1451 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1452 0 : return sendok__;
1453 : }
1454 :
1455 0 : auto PContentParent::SendGeolocationUpdate(const GeoPosition& somewhere) -> bool
1456 : {
1457 0 : IPC::Message* msg__ = PContent::Msg_GeolocationUpdate(MSG_ROUTING_CONTROL);
1458 :
1459 0 : Write(somewhere, msg__);
1460 : // Sentinel = 'somewhere'
1461 0 : (msg__)->WriteSentinel(2546901544);
1462 :
1463 :
1464 :
1465 :
1466 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1467 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1468 : }
1469 0 : AUTO_PROFILER_LABEL("PContent::Msg_GeolocationUpdate", OTHER);
1470 0 : PContent::Transition(PContent::Msg_GeolocationUpdate__ID, (&(mState)));
1471 :
1472 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1473 0 : return sendok__;
1474 : }
1475 :
1476 0 : auto PContentParent::SendGeolocationError(const uint16_t& errorCode) -> bool
1477 : {
1478 0 : IPC::Message* msg__ = PContent::Msg_GeolocationError(MSG_ROUTING_CONTROL);
1479 :
1480 0 : Write(errorCode, msg__);
1481 : // Sentinel = 'errorCode'
1482 0 : (msg__)->WriteSentinel(262143504);
1483 :
1484 :
1485 :
1486 :
1487 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1488 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1489 : }
1490 0 : AUTO_PROFILER_LABEL("PContent::Msg_GeolocationError", OTHER);
1491 0 : PContent::Transition(PContent::Msg_GeolocationError__ID, (&(mState)));
1492 :
1493 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1494 0 : return sendok__;
1495 : }
1496 :
1497 0 : auto PContentParent::SendUpdateDictionaryList(const nsTArray<nsString>& dictionaries) -> bool
1498 : {
1499 0 : IPC::Message* msg__ = PContent::Msg_UpdateDictionaryList(MSG_ROUTING_CONTROL);
1500 :
1501 0 : Write(dictionaries, msg__);
1502 : // Sentinel = 'dictionaries'
1503 0 : (msg__)->WriteSentinel(3810082412);
1504 :
1505 :
1506 :
1507 :
1508 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1509 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1510 : }
1511 0 : AUTO_PROFILER_LABEL("PContent::Msg_UpdateDictionaryList", OTHER);
1512 0 : PContent::Transition(PContent::Msg_UpdateDictionaryList__ID, (&(mState)));
1513 :
1514 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1515 0 : return sendok__;
1516 : }
1517 :
1518 0 : auto PContentParent::SendUpdateAppLocales(const nsTArray<nsCString>& appLocales) -> bool
1519 : {
1520 0 : IPC::Message* msg__ = PContent::Msg_UpdateAppLocales(MSG_ROUTING_CONTROL);
1521 :
1522 0 : Write(appLocales, msg__);
1523 : // Sentinel = 'appLocales'
1524 0 : (msg__)->WriteSentinel(2758913044);
1525 :
1526 :
1527 :
1528 :
1529 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1530 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1531 : }
1532 0 : AUTO_PROFILER_LABEL("PContent::Msg_UpdateAppLocales", OTHER);
1533 0 : PContent::Transition(PContent::Msg_UpdateAppLocales__ID, (&(mState)));
1534 :
1535 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1536 0 : return sendok__;
1537 : }
1538 :
1539 0 : auto PContentParent::SendUpdateRequestedLocales(const nsTArray<nsCString>& requestedLocales) -> bool
1540 : {
1541 0 : IPC::Message* msg__ = PContent::Msg_UpdateRequestedLocales(MSG_ROUTING_CONTROL);
1542 :
1543 0 : Write(requestedLocales, msg__);
1544 : // Sentinel = 'requestedLocales'
1545 0 : (msg__)->WriteSentinel(2758015985);
1546 :
1547 :
1548 :
1549 :
1550 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1551 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1552 : }
1553 0 : AUTO_PROFILER_LABEL("PContent::Msg_UpdateRequestedLocales", OTHER);
1554 0 : PContent::Transition(PContent::Msg_UpdateRequestedLocales__ID, (&(mState)));
1555 :
1556 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1557 0 : return sendok__;
1558 : }
1559 :
1560 0 : auto PContentParent::SendAddPermission(const Permission& permission) -> bool
1561 : {
1562 0 : IPC::Message* msg__ = PContent::Msg_AddPermission(MSG_ROUTING_CONTROL);
1563 :
1564 0 : Write(permission, msg__);
1565 : // Sentinel = 'permission'
1566 0 : (msg__)->WriteSentinel(22860871);
1567 :
1568 :
1569 :
1570 :
1571 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1572 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1573 : }
1574 0 : AUTO_PROFILER_LABEL("PContent::Msg_AddPermission", OTHER);
1575 0 : PContent::Transition(PContent::Msg_AddPermission__ID, (&(mState)));
1576 :
1577 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1578 0 : return sendok__;
1579 : }
1580 :
1581 0 : auto PContentParent::SendFlushMemory(const nsString& reason) -> bool
1582 : {
1583 0 : IPC::Message* msg__ = PContent::Msg_FlushMemory(MSG_ROUTING_CONTROL);
1584 :
1585 0 : Write(reason, msg__);
1586 : // Sentinel = 'reason'
1587 0 : (msg__)->WriteSentinel(4151390930);
1588 :
1589 :
1590 :
1591 :
1592 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1593 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1594 : }
1595 0 : AUTO_PROFILER_LABEL("PContent::Msg_FlushMemory", OTHER);
1596 0 : PContent::Transition(PContent::Msg_FlushMemory__ID, (&(mState)));
1597 :
1598 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1599 0 : return sendok__;
1600 : }
1601 :
1602 0 : auto PContentParent::SendGarbageCollect() -> bool
1603 : {
1604 0 : IPC::Message* msg__ = PContent::Msg_GarbageCollect(MSG_ROUTING_CONTROL);
1605 :
1606 :
1607 :
1608 :
1609 :
1610 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1611 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1612 : }
1613 0 : AUTO_PROFILER_LABEL("PContent::Msg_GarbageCollect", OTHER);
1614 0 : PContent::Transition(PContent::Msg_GarbageCollect__ID, (&(mState)));
1615 :
1616 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1617 0 : return sendok__;
1618 : }
1619 :
1620 0 : auto PContentParent::SendCycleCollect() -> bool
1621 : {
1622 0 : IPC::Message* msg__ = PContent::Msg_CycleCollect(MSG_ROUTING_CONTROL);
1623 :
1624 :
1625 :
1626 :
1627 :
1628 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1629 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1630 : }
1631 0 : AUTO_PROFILER_LABEL("PContent::Msg_CycleCollect", OTHER);
1632 0 : PContent::Transition(PContent::Msg_CycleCollect__ID, (&(mState)));
1633 :
1634 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1635 0 : return sendok__;
1636 : }
1637 :
1638 0 : auto PContentParent::SendActivateA11y(
1639 : const uint32_t& aMainChromeTid,
1640 : const uint32_t& aMsaaID) -> bool
1641 : {
1642 0 : IPC::Message* msg__ = PContent::Msg_ActivateA11y(MSG_ROUTING_CONTROL);
1643 :
1644 0 : Write(aMainChromeTid, msg__);
1645 : // Sentinel = 'aMainChromeTid'
1646 0 : (msg__)->WriteSentinel(3575603341);
1647 0 : Write(aMsaaID, msg__);
1648 : // Sentinel = 'aMsaaID'
1649 0 : (msg__)->WriteSentinel(645559775);
1650 :
1651 :
1652 :
1653 :
1654 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1655 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1656 : }
1657 0 : AUTO_PROFILER_LABEL("PContent::Msg_ActivateA11y", OTHER);
1658 0 : PContent::Transition(PContent::Msg_ActivateA11y__ID, (&(mState)));
1659 :
1660 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1661 0 : return sendok__;
1662 : }
1663 :
1664 0 : auto PContentParent::SendShutdownA11y() -> bool
1665 : {
1666 0 : IPC::Message* msg__ = PContent::Msg_ShutdownA11y(MSG_ROUTING_CONTROL);
1667 :
1668 :
1669 :
1670 :
1671 :
1672 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1673 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1674 : }
1675 0 : AUTO_PROFILER_LABEL("PContent::Msg_ShutdownA11y", OTHER);
1676 0 : PContent::Transition(PContent::Msg_ShutdownA11y__ID, (&(mState)));
1677 :
1678 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1679 0 : return sendok__;
1680 : }
1681 :
1682 2 : auto PContentParent::SendAppInfo(
1683 : const nsCString& version,
1684 : const nsCString& buildID,
1685 : const nsCString& name,
1686 : const nsCString& UAName,
1687 : const nsCString& ID,
1688 : const nsCString& vendor) -> bool
1689 : {
1690 2 : IPC::Message* msg__ = PContent::Msg_AppInfo(MSG_ROUTING_CONTROL);
1691 :
1692 2 : Write(version, msg__);
1693 : // Sentinel = 'version'
1694 2 : (msg__)->WriteSentinel(4003360947);
1695 2 : Write(buildID, msg__);
1696 : // Sentinel = 'buildID'
1697 2 : (msg__)->WriteSentinel(1387208200);
1698 2 : Write(name, msg__);
1699 : // Sentinel = 'name'
1700 2 : (msg__)->WriteSentinel(15034981);
1701 2 : Write(UAName, msg__);
1702 : // Sentinel = 'UAName'
1703 2 : (msg__)->WriteSentinel(1769178349);
1704 2 : Write(ID, msg__);
1705 : // Sentinel = 'ID'
1706 2 : (msg__)->WriteSentinel(2597318109);
1707 2 : Write(vendor, msg__);
1708 : // Sentinel = 'vendor'
1709 2 : (msg__)->WriteSentinel(461600324);
1710 :
1711 :
1712 :
1713 :
1714 2 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1715 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1716 : }
1717 4 : AUTO_PROFILER_LABEL("PContent::Msg_AppInfo", OTHER);
1718 2 : PContent::Transition(PContent::Msg_AppInfo__ID, (&(mState)));
1719 :
1720 2 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1721 4 : return sendok__;
1722 : }
1723 :
1724 2 : auto PContentParent::SendRemoteType(const nsString& aRemoteType) -> bool
1725 : {
1726 2 : IPC::Message* msg__ = PContent::Msg_RemoteType(MSG_ROUTING_CONTROL);
1727 :
1728 2 : Write(aRemoteType, msg__);
1729 : // Sentinel = 'aRemoteType'
1730 2 : (msg__)->WriteSentinel(4113166544);
1731 :
1732 :
1733 :
1734 :
1735 2 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1736 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1737 : }
1738 4 : AUTO_PROFILER_LABEL("PContent::Msg_RemoteType", OTHER);
1739 2 : PContent::Transition(PContent::Msg_RemoteType__ID, (&(mState)));
1740 :
1741 2 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1742 4 : return sendok__;
1743 : }
1744 :
1745 2 : auto PContentParent::SendInitServiceWorkers(const ServiceWorkerConfiguration& aConfig) -> bool
1746 : {
1747 2 : IPC::Message* msg__ = PContent::Msg_InitServiceWorkers(MSG_ROUTING_CONTROL);
1748 :
1749 2 : Write(aConfig, msg__);
1750 : // Sentinel = 'aConfig'
1751 2 : (msg__)->WriteSentinel(3808514188);
1752 :
1753 :
1754 :
1755 :
1756 2 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1757 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1758 : }
1759 4 : AUTO_PROFILER_LABEL("PContent::Msg_InitServiceWorkers", OTHER);
1760 2 : PContent::Transition(PContent::Msg_InitServiceWorkers__ID, (&(mState)));
1761 :
1762 2 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1763 4 : return sendok__;
1764 : }
1765 :
1766 2 : auto PContentParent::SendInitBlobURLs(const nsTArray<BlobURLRegistrationData>& registrations) -> bool
1767 : {
1768 2 : IPC::Message* msg__ = PContent::Msg_InitBlobURLs(MSG_ROUTING_CONTROL);
1769 :
1770 2 : Write(registrations, msg__);
1771 : // Sentinel = 'registrations'
1772 2 : (msg__)->WriteSentinel(2559949423);
1773 :
1774 :
1775 :
1776 :
1777 2 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1778 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1779 : }
1780 4 : AUTO_PROFILER_LABEL("PContent::Msg_InitBlobURLs", OTHER);
1781 2 : PContent::Transition(PContent::Msg_InitBlobURLs__ID, (&(mState)));
1782 :
1783 2 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1784 4 : return sendok__;
1785 : }
1786 :
1787 2 : auto PContentParent::SendSetXPCOMProcessAttributes(
1788 : const XPCOMInitData& xpcomInit,
1789 : const StructuredCloneData& initialData,
1790 : const nsTArray<LookAndFeelInt>& lookAndFeelIntCache) -> bool
1791 : {
1792 2 : IPC::Message* msg__ = PContent::Msg_SetXPCOMProcessAttributes(MSG_ROUTING_CONTROL);
1793 :
1794 2 : Write(xpcomInit, msg__);
1795 : // Sentinel = 'xpcomInit'
1796 2 : (msg__)->WriteSentinel(1191505416);
1797 2 : Write(initialData, msg__);
1798 : // Sentinel = 'initialData'
1799 2 : (msg__)->WriteSentinel(3214224943);
1800 2 : Write(lookAndFeelIntCache, msg__);
1801 : // Sentinel = 'lookAndFeelIntCache'
1802 2 : (msg__)->WriteSentinel(4279224656);
1803 :
1804 :
1805 :
1806 :
1807 2 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1808 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1809 : }
1810 4 : AUTO_PROFILER_LABEL("PContent::Msg_SetXPCOMProcessAttributes", OTHER);
1811 2 : PContent::Transition(PContent::Msg_SetXPCOMProcessAttributes__ID, (&(mState)));
1812 :
1813 2 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1814 4 : return sendok__;
1815 : }
1816 :
1817 0 : auto PContentParent::SendLastPrivateDocShellDestroyed() -> bool
1818 : {
1819 0 : IPC::Message* msg__ = PContent::Msg_LastPrivateDocShellDestroyed(MSG_ROUTING_CONTROL);
1820 :
1821 :
1822 :
1823 :
1824 :
1825 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1826 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1827 : }
1828 0 : AUTO_PROFILER_LABEL("PContent::Msg_LastPrivateDocShellDestroyed", OTHER);
1829 0 : PContent::Transition(PContent::Msg_LastPrivateDocShellDestroyed__ID, (&(mState)));
1830 :
1831 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1832 0 : return sendok__;
1833 : }
1834 :
1835 0 : auto PContentParent::SendNotifyProcessPriorityChanged(const ProcessPriority& priority) -> bool
1836 : {
1837 0 : IPC::Message* msg__ = PContent::Msg_NotifyProcessPriorityChanged(MSG_ROUTING_CONTROL);
1838 :
1839 0 : Write(priority, msg__);
1840 : // Sentinel = 'priority'
1841 0 : (msg__)->WriteSentinel(558136112);
1842 :
1843 :
1844 :
1845 :
1846 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1847 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1848 : }
1849 0 : AUTO_PROFILER_LABEL("PContent::Msg_NotifyProcessPriorityChanged", OTHER);
1850 0 : PContent::Transition(PContent::Msg_NotifyProcessPriorityChanged__ID, (&(mState)));
1851 :
1852 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1853 0 : return sendok__;
1854 : }
1855 :
1856 0 : auto PContentParent::SendMinimizeMemoryUsage() -> bool
1857 : {
1858 0 : IPC::Message* msg__ = PContent::Msg_MinimizeMemoryUsage(MSG_ROUTING_CONTROL);
1859 :
1860 :
1861 :
1862 :
1863 :
1864 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1865 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1866 : }
1867 0 : AUTO_PROFILER_LABEL("PContent::Msg_MinimizeMemoryUsage", OTHER);
1868 0 : PContent::Transition(PContent::Msg_MinimizeMemoryUsage__ID, (&(mState)));
1869 :
1870 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1871 0 : return sendok__;
1872 : }
1873 :
1874 2 : auto PContentParent::SendLoadAndRegisterSheet(
1875 : const URIParams& uri,
1876 : const uint32_t& type) -> bool
1877 : {
1878 2 : IPC::Message* msg__ = PContent::Msg_LoadAndRegisterSheet(MSG_ROUTING_CONTROL);
1879 :
1880 2 : Write(uri, msg__);
1881 : // Sentinel = 'uri'
1882 2 : (msg__)->WriteSentinel(1453210605);
1883 2 : Write(type, msg__);
1884 : // Sentinel = 'type'
1885 2 : (msg__)->WriteSentinel(2982068540);
1886 :
1887 :
1888 :
1889 :
1890 2 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1891 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1892 : }
1893 4 : AUTO_PROFILER_LABEL("PContent::Msg_LoadAndRegisterSheet", OTHER);
1894 2 : PContent::Transition(PContent::Msg_LoadAndRegisterSheet__ID, (&(mState)));
1895 :
1896 2 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1897 4 : return sendok__;
1898 : }
1899 :
1900 0 : auto PContentParent::SendUnregisterSheet(
1901 : const URIParams& uri,
1902 : const uint32_t& type) -> bool
1903 : {
1904 0 : IPC::Message* msg__ = PContent::Msg_UnregisterSheet(MSG_ROUTING_CONTROL);
1905 :
1906 0 : Write(uri, msg__);
1907 : // Sentinel = 'uri'
1908 0 : (msg__)->WriteSentinel(1453210605);
1909 0 : Write(type, msg__);
1910 : // Sentinel = 'type'
1911 0 : (msg__)->WriteSentinel(2982068540);
1912 :
1913 :
1914 :
1915 :
1916 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1917 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1918 : }
1919 0 : AUTO_PROFILER_LABEL("PContent::Msg_UnregisterSheet", OTHER);
1920 0 : PContent::Transition(PContent::Msg_UnregisterSheet__ID, (&(mState)));
1921 :
1922 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1923 0 : return sendok__;
1924 : }
1925 :
1926 0 : auto PContentParent::SendNotifyIdleObserver(
1927 : const uint64_t& observerId,
1928 : const nsCString& topic,
1929 : const nsString& str) -> bool
1930 : {
1931 0 : IPC::Message* msg__ = PContent::Msg_NotifyIdleObserver(MSG_ROUTING_CONTROL);
1932 :
1933 0 : Write(observerId, msg__);
1934 : // Sentinel = 'observerId'
1935 0 : (msg__)->WriteSentinel(2815026823);
1936 0 : Write(topic, msg__);
1937 : // Sentinel = 'topic'
1938 0 : (msg__)->WriteSentinel(261826960);
1939 0 : Write(str, msg__);
1940 : // Sentinel = 'str'
1941 0 : (msg__)->WriteSentinel(3748377462);
1942 :
1943 :
1944 :
1945 :
1946 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1947 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1948 : }
1949 0 : AUTO_PROFILER_LABEL("PContent::Msg_NotifyIdleObserver", OTHER);
1950 0 : PContent::Transition(PContent::Msg_NotifyIdleObserver__ID, (&(mState)));
1951 :
1952 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1953 0 : return sendok__;
1954 : }
1955 :
1956 0 : auto PContentParent::SendInvokeDragSession(
1957 : const nsTArray<IPCDataTransfer>& transfers,
1958 : const uint32_t& action) -> bool
1959 : {
1960 0 : IPC::Message* msg__ = PContent::Msg_InvokeDragSession(MSG_ROUTING_CONTROL);
1961 :
1962 0 : Write(transfers, msg__);
1963 : // Sentinel = 'transfers'
1964 0 : (msg__)->WriteSentinel(3048523737);
1965 0 : Write(action, msg__);
1966 : // Sentinel = 'action'
1967 0 : (msg__)->WriteSentinel(991072504);
1968 :
1969 :
1970 :
1971 :
1972 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1973 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1974 : }
1975 0 : AUTO_PROFILER_LABEL("PContent::Msg_InvokeDragSession", OTHER);
1976 0 : PContent::Transition(PContent::Msg_InvokeDragSession__ID, (&(mState)));
1977 :
1978 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1979 0 : return sendok__;
1980 : }
1981 :
1982 0 : auto PContentParent::SendEndDragSession(
1983 : const bool& aDoneDrag,
1984 : const bool& aUserCancelled,
1985 : const LayoutDeviceIntPoint& aDragEndPoint,
1986 : const uint32_t& aKeyModifiers) -> bool
1987 : {
1988 0 : IPC::Message* msg__ = PContent::Msg_EndDragSession(MSG_ROUTING_CONTROL);
1989 :
1990 0 : Write(aDoneDrag, msg__);
1991 : // Sentinel = 'aDoneDrag'
1992 0 : (msg__)->WriteSentinel(3406977382);
1993 0 : Write(aUserCancelled, msg__);
1994 : // Sentinel = 'aUserCancelled'
1995 0 : (msg__)->WriteSentinel(3762723247);
1996 0 : Write(aDragEndPoint, msg__);
1997 : // Sentinel = 'aDragEndPoint'
1998 0 : (msg__)->WriteSentinel(2254135269);
1999 0 : Write(aKeyModifiers, msg__);
2000 : // Sentinel = 'aKeyModifiers'
2001 0 : (msg__)->WriteSentinel(838210057);
2002 :
2003 :
2004 :
2005 :
2006 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2007 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2008 : }
2009 0 : AUTO_PROFILER_LABEL("PContent::Msg_EndDragSession", OTHER);
2010 0 : PContent::Transition(PContent::Msg_EndDragSession__ID, (&(mState)));
2011 :
2012 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2013 0 : return sendok__;
2014 : }
2015 :
2016 0 : auto PContentParent::SendDomainSetChanged(
2017 : const uint32_t& aSetType,
2018 : const uint32_t& aChangeType,
2019 : const OptionalURIParams& aDomain) -> bool
2020 : {
2021 0 : IPC::Message* msg__ = PContent::Msg_DomainSetChanged(MSG_ROUTING_CONTROL);
2022 :
2023 0 : Write(aSetType, msg__);
2024 : // Sentinel = 'aSetType'
2025 0 : (msg__)->WriteSentinel(3577437707);
2026 0 : Write(aChangeType, msg__);
2027 : // Sentinel = 'aChangeType'
2028 0 : (msg__)->WriteSentinel(3383103566);
2029 0 : Write(aDomain, msg__);
2030 : // Sentinel = 'aDomain'
2031 0 : (msg__)->WriteSentinel(115381882);
2032 :
2033 :
2034 :
2035 :
2036 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2037 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2038 : }
2039 0 : AUTO_PROFILER_LABEL("PContent::Msg_DomainSetChanged", OTHER);
2040 0 : PContent::Transition(PContent::Msg_DomainSetChanged__ID, (&(mState)));
2041 :
2042 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2043 0 : return sendok__;
2044 : }
2045 :
2046 0 : auto PContentParent::SendShutdown() -> bool
2047 : {
2048 0 : IPC::Message* msg__ = PContent::Msg_Shutdown(MSG_ROUTING_CONTROL);
2049 :
2050 :
2051 :
2052 :
2053 :
2054 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2055 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2056 : }
2057 0 : AUTO_PROFILER_LABEL("PContent::Msg_Shutdown", OTHER);
2058 0 : PContent::Transition(PContent::Msg_Shutdown__ID, (&(mState)));
2059 :
2060 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2061 0 : return sendok__;
2062 : }
2063 :
2064 18 : auto PContentParent::SendLoadProcessScript(const nsString& url) -> bool
2065 : {
2066 18 : IPC::Message* msg__ = PContent::Msg_LoadProcessScript(MSG_ROUTING_CONTROL);
2067 :
2068 18 : Write(url, msg__);
2069 : // Sentinel = 'url'
2070 18 : (msg__)->WriteSentinel(1453210600);
2071 :
2072 :
2073 :
2074 :
2075 18 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2076 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2077 : }
2078 36 : AUTO_PROFILER_LABEL("PContent::Msg_LoadProcessScript", OTHER);
2079 18 : PContent::Transition(PContent::Msg_LoadProcessScript__ID, (&(mState)));
2080 :
2081 18 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2082 36 : return sendok__;
2083 : }
2084 :
2085 0 : auto PContentParent::SendUpdateWindow(const uintptr_t& aChildId) -> bool
2086 : {
2087 0 : IPC::Message* msg__ = PContent::Msg_UpdateWindow(MSG_ROUTING_CONTROL);
2088 :
2089 0 : Write(aChildId, msg__);
2090 : // Sentinel = 'aChildId'
2091 0 : (msg__)->WriteSentinel(328267498);
2092 :
2093 :
2094 :
2095 :
2096 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2097 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2098 : }
2099 0 : AUTO_PROFILER_LABEL("PContent::Msg_UpdateWindow", OTHER);
2100 0 : PContent::Transition(PContent::Msg_UpdateWindow__ID, (&(mState)));
2101 :
2102 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2103 0 : return sendok__;
2104 : }
2105 :
2106 0 : auto PContentParent::SendNotifyPresentationReceiverLaunched(
2107 : PBrowserParent* aIframe,
2108 : const nsString& aSessionId) -> bool
2109 : {
2110 0 : IPC::Message* msg__ = PContent::Msg_NotifyPresentationReceiverLaunched(MSG_ROUTING_CONTROL);
2111 :
2112 0 : Write(aIframe, msg__, false);
2113 : // Sentinel = 'aIframe'
2114 0 : (msg__)->WriteSentinel(161927714);
2115 0 : Write(aSessionId, msg__);
2116 : // Sentinel = 'aSessionId'
2117 0 : (msg__)->WriteSentinel(725794242);
2118 :
2119 :
2120 :
2121 :
2122 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2123 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2124 : }
2125 0 : AUTO_PROFILER_LABEL("PContent::Msg_NotifyPresentationReceiverLaunched", OTHER);
2126 0 : PContent::Transition(PContent::Msg_NotifyPresentationReceiverLaunched__ID, (&(mState)));
2127 :
2128 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2129 0 : return sendok__;
2130 : }
2131 :
2132 0 : auto PContentParent::SendNotifyPresentationReceiverCleanUp(const nsString& aSessionId) -> bool
2133 : {
2134 0 : IPC::Message* msg__ = PContent::Msg_NotifyPresentationReceiverCleanUp(MSG_ROUTING_CONTROL);
2135 :
2136 0 : Write(aSessionId, msg__);
2137 : // Sentinel = 'aSessionId'
2138 0 : (msg__)->WriteSentinel(725794242);
2139 :
2140 :
2141 :
2142 :
2143 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2144 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2145 : }
2146 0 : AUTO_PROFILER_LABEL("PContent::Msg_NotifyPresentationReceiverCleanUp", OTHER);
2147 0 : PContent::Transition(PContent::Msg_NotifyPresentationReceiverCleanUp__ID, (&(mState)));
2148 :
2149 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2150 0 : return sendok__;
2151 : }
2152 :
2153 0 : auto PContentParent::SendNotifyEmptyHTTPCache() -> bool
2154 : {
2155 0 : IPC::Message* msg__ = PContent::Msg_NotifyEmptyHTTPCache(MSG_ROUTING_CONTROL);
2156 :
2157 :
2158 :
2159 :
2160 :
2161 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2162 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2163 : }
2164 0 : AUTO_PROFILER_LABEL("PContent::Msg_NotifyEmptyHTTPCache", OTHER);
2165 0 : PContent::Transition(PContent::Msg_NotifyEmptyHTTPCache__ID, (&(mState)));
2166 :
2167 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2168 0 : return sendok__;
2169 : }
2170 :
2171 0 : auto PContentParent::SendPush(
2172 : const nsCString& scope,
2173 : const Principal& principal,
2174 : const nsString& messageId) -> bool
2175 : {
2176 0 : IPC::Message* msg__ = PContent::Msg_Push(MSG_ROUTING_CONTROL);
2177 :
2178 0 : Write(scope, msg__);
2179 : // Sentinel = 'scope'
2180 0 : (msg__)->WriteSentinel(2191984953);
2181 0 : Write(principal, msg__);
2182 : // Sentinel = 'principal'
2183 0 : (msg__)->WriteSentinel(732240927);
2184 0 : Write(messageId, msg__);
2185 : // Sentinel = 'messageId'
2186 0 : (msg__)->WriteSentinel(2887269495);
2187 :
2188 :
2189 :
2190 :
2191 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2192 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2193 : }
2194 0 : AUTO_PROFILER_LABEL("PContent::Msg_Push", OTHER);
2195 0 : PContent::Transition(PContent::Msg_Push__ID, (&(mState)));
2196 :
2197 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2198 0 : return sendok__;
2199 : }
2200 :
2201 0 : auto PContentParent::SendPushWithData(
2202 : const nsCString& scope,
2203 : const Principal& principal,
2204 : const nsString& messageId,
2205 : const nsTArray<uint8_t>& data) -> bool
2206 : {
2207 0 : IPC::Message* msg__ = PContent::Msg_PushWithData(MSG_ROUTING_CONTROL);
2208 :
2209 0 : Write(scope, msg__);
2210 : // Sentinel = 'scope'
2211 0 : (msg__)->WriteSentinel(2191984953);
2212 0 : Write(principal, msg__);
2213 : // Sentinel = 'principal'
2214 0 : (msg__)->WriteSentinel(732240927);
2215 0 : Write(messageId, msg__);
2216 : // Sentinel = 'messageId'
2217 0 : (msg__)->WriteSentinel(2887269495);
2218 0 : Write(data, msg__);
2219 : // Sentinel = 'data'
2220 0 : (msg__)->WriteSentinel(843352540);
2221 :
2222 :
2223 :
2224 :
2225 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2226 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2227 : }
2228 0 : AUTO_PROFILER_LABEL("PContent::Msg_PushWithData", OTHER);
2229 0 : PContent::Transition(PContent::Msg_PushWithData__ID, (&(mState)));
2230 :
2231 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2232 0 : return sendok__;
2233 : }
2234 :
2235 0 : auto PContentParent::SendPushSubscriptionChange(
2236 : const nsCString& scope,
2237 : const Principal& principal) -> bool
2238 : {
2239 0 : IPC::Message* msg__ = PContent::Msg_PushSubscriptionChange(MSG_ROUTING_CONTROL);
2240 :
2241 0 : Write(scope, msg__);
2242 : // Sentinel = 'scope'
2243 0 : (msg__)->WriteSentinel(2191984953);
2244 0 : Write(principal, msg__);
2245 : // Sentinel = 'principal'
2246 0 : (msg__)->WriteSentinel(732240927);
2247 :
2248 :
2249 :
2250 :
2251 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2252 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2253 : }
2254 0 : AUTO_PROFILER_LABEL("PContent::Msg_PushSubscriptionChange", OTHER);
2255 0 : PContent::Transition(PContent::Msg_PushSubscriptionChange__ID, (&(mState)));
2256 :
2257 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2258 0 : return sendok__;
2259 : }
2260 :
2261 0 : auto PContentParent::SendPushError(
2262 : const nsCString& scope,
2263 : const Principal& principal,
2264 : const nsString& message,
2265 : const uint32_t& flags) -> bool
2266 : {
2267 0 : IPC::Message* msg__ = PContent::Msg_PushError(MSG_ROUTING_CONTROL);
2268 :
2269 0 : Write(scope, msg__);
2270 : // Sentinel = 'scope'
2271 0 : (msg__)->WriteSentinel(2191984953);
2272 0 : Write(principal, msg__);
2273 : // Sentinel = 'principal'
2274 0 : (msg__)->WriteSentinel(732240927);
2275 0 : Write(message, msg__);
2276 : // Sentinel = 'message'
2277 0 : (msg__)->WriteSentinel(1366108954);
2278 0 : Write(flags, msg__);
2279 : // Sentinel = 'flags'
2280 0 : (msg__)->WriteSentinel(2550519284);
2281 :
2282 :
2283 :
2284 :
2285 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2286 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2287 : }
2288 0 : AUTO_PROFILER_LABEL("PContent::Msg_PushError", OTHER);
2289 0 : PContent::Transition(PContent::Msg_PushError__ID, (&(mState)));
2290 :
2291 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2292 0 : return sendok__;
2293 : }
2294 :
2295 0 : auto PContentParent::SendSetAudioSessionData(
2296 : const nsID& aID,
2297 : const nsString& aDisplayName,
2298 : const nsString& aIconPath) -> bool
2299 : {
2300 0 : IPC::Message* msg__ = PContent::Msg_SetAudioSessionData(MSG_ROUTING_CONTROL);
2301 :
2302 0 : Write(aID, msg__);
2303 : // Sentinel = 'aID'
2304 0 : (msg__)->WriteSentinel(2735041849);
2305 0 : Write(aDisplayName, msg__);
2306 : // Sentinel = 'aDisplayName'
2307 0 : (msg__)->WriteSentinel(531102644);
2308 0 : Write(aIconPath, msg__);
2309 : // Sentinel = 'aIconPath'
2310 0 : (msg__)->WriteSentinel(2359874914);
2311 :
2312 :
2313 :
2314 :
2315 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2316 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2317 : }
2318 0 : AUTO_PROFILER_LABEL("PContent::Msg_SetAudioSessionData", OTHER);
2319 0 : PContent::Transition(PContent::Msg_SetAudioSessionData__ID, (&(mState)));
2320 :
2321 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2322 0 : return sendok__;
2323 : }
2324 :
2325 0 : auto PContentParent::SendGetFilesResponse(
2326 : const nsID& aID,
2327 : const GetFilesResponseResult& aResult) -> bool
2328 : {
2329 0 : IPC::Message* msg__ = PContent::Msg_GetFilesResponse(MSG_ROUTING_CONTROL);
2330 :
2331 0 : Write(aID, msg__);
2332 : // Sentinel = 'aID'
2333 0 : (msg__)->WriteSentinel(2735041849);
2334 0 : Write(aResult, msg__);
2335 : // Sentinel = 'aResult'
2336 0 : (msg__)->WriteSentinel(3888726089);
2337 :
2338 :
2339 :
2340 :
2341 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2342 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2343 : }
2344 0 : AUTO_PROFILER_LABEL("PContent::Msg_GetFilesResponse", OTHER);
2345 0 : PContent::Transition(PContent::Msg_GetFilesResponse__ID, (&(mState)));
2346 :
2347 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2348 0 : return sendok__;
2349 : }
2350 :
2351 0 : auto PContentParent::SendBlobURLRegistration(
2352 : const nsCString& aURI,
2353 : const IPCBlob& aBlob,
2354 : const Principal& aPrincipal) -> bool
2355 : {
2356 0 : IPC::Message* msg__ = PContent::Msg_BlobURLRegistration(MSG_ROUTING_CONTROL);
2357 :
2358 0 : Write(aURI, msg__);
2359 : // Sentinel = 'aURI'
2360 0 : (msg__)->WriteSentinel(2075506333);
2361 0 : Write(aBlob, msg__);
2362 : // Sentinel = 'aBlob'
2363 0 : (msg__)->WriteSentinel(3425660321);
2364 0 : Write(aPrincipal, msg__);
2365 : // Sentinel = 'aPrincipal'
2366 0 : (msg__)->WriteSentinel(4097511);
2367 :
2368 :
2369 :
2370 :
2371 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2372 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2373 : }
2374 0 : AUTO_PROFILER_LABEL("PContent::Msg_BlobURLRegistration", OTHER);
2375 0 : PContent::Transition(PContent::Msg_BlobURLRegistration__ID, (&(mState)));
2376 :
2377 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2378 0 : return sendok__;
2379 : }
2380 :
2381 0 : auto PContentParent::SendBlobURLUnregistration(const nsCString& aURI) -> bool
2382 : {
2383 0 : IPC::Message* msg__ = PContent::Msg_BlobURLUnregistration(MSG_ROUTING_CONTROL);
2384 :
2385 0 : Write(aURI, msg__);
2386 : // Sentinel = 'aURI'
2387 0 : (msg__)->WriteSentinel(2075506333);
2388 :
2389 :
2390 :
2391 :
2392 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2393 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2394 : }
2395 0 : AUTO_PROFILER_LABEL("PContent::Msg_BlobURLUnregistration", OTHER);
2396 0 : PContent::Transition(PContent::Msg_BlobURLUnregistration__ID, (&(mState)));
2397 :
2398 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2399 0 : return sendok__;
2400 : }
2401 :
2402 0 : auto PContentParent::SendDispatchLocalStorageChange(
2403 : const nsString& documentURI,
2404 : const nsString& key,
2405 : const nsString& oldValue,
2406 : const nsString& newValue,
2407 : const Principal& principal,
2408 : const bool& isPrivate) -> bool
2409 : {
2410 0 : IPC::Message* msg__ = PContent::Msg_DispatchLocalStorageChange(MSG_ROUTING_CONTROL);
2411 :
2412 0 : Write(documentURI, msg__);
2413 : // Sentinel = 'documentURI'
2414 0 : (msg__)->WriteSentinel(3585823520);
2415 0 : Write(key, msg__);
2416 : // Sentinel = 'key'
2417 0 : (msg__)->WriteSentinel(35142870);
2418 0 : Write(oldValue, msg__);
2419 : // Sentinel = 'oldValue'
2420 0 : (msg__)->WriteSentinel(2227149046);
2421 0 : Write(newValue, msg__);
2422 : // Sentinel = 'newValue'
2423 0 : (msg__)->WriteSentinel(1405873629);
2424 0 : Write(principal, msg__);
2425 : // Sentinel = 'principal'
2426 0 : (msg__)->WriteSentinel(732240927);
2427 0 : Write(isPrivate, msg__);
2428 : // Sentinel = 'isPrivate'
2429 0 : (msg__)->WriteSentinel(4033294520);
2430 :
2431 :
2432 :
2433 :
2434 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2435 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2436 : }
2437 0 : AUTO_PROFILER_LABEL("PContent::Msg_DispatchLocalStorageChange", OTHER);
2438 0 : PContent::Transition(PContent::Msg_DispatchLocalStorageChange__ID, (&(mState)));
2439 :
2440 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2441 0 : return sendok__;
2442 : }
2443 :
2444 3 : auto PContentParent::SendGMPsChanged(const nsTArray<GMPCapabilityData>& capabilities) -> bool
2445 : {
2446 3 : IPC::Message* msg__ = PContent::Msg_GMPsChanged(MSG_ROUTING_CONTROL);
2447 :
2448 3 : Write(capabilities, msg__);
2449 : // Sentinel = 'capabilities'
2450 3 : (msg__)->WriteSentinel(4197121582);
2451 :
2452 :
2453 :
2454 :
2455 3 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2456 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2457 : }
2458 6 : AUTO_PROFILER_LABEL("PContent::Msg_GMPsChanged", OTHER);
2459 3 : PContent::Transition(PContent::Msg_GMPsChanged__ID, (&(mState)));
2460 :
2461 3 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2462 6 : return sendok__;
2463 : }
2464 :
2465 0 : auto PContentParent::SendFileCreationResponse(
2466 : const nsID& aID,
2467 : const FileCreationResult& aResult) -> bool
2468 : {
2469 0 : IPC::Message* msg__ = PContent::Msg_FileCreationResponse(MSG_ROUTING_CONTROL);
2470 :
2471 0 : Write(aID, msg__);
2472 : // Sentinel = 'aID'
2473 0 : (msg__)->WriteSentinel(2735041849);
2474 0 : Write(aResult, msg__);
2475 : // Sentinel = 'aResult'
2476 0 : (msg__)->WriteSentinel(3888726089);
2477 :
2478 :
2479 :
2480 :
2481 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2482 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2483 : }
2484 0 : AUTO_PROFILER_LABEL("PContent::Msg_FileCreationResponse", OTHER);
2485 0 : PContent::Transition(PContent::Msg_FileCreationResponse__ID, (&(mState)));
2486 :
2487 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2488 0 : return sendok__;
2489 : }
2490 :
2491 1 : auto PContentParent::SendActivate(PBrowserParent* aTab) -> bool
2492 : {
2493 1 : IPC::Message* msg__ = PContent::Msg_Activate(MSG_ROUTING_CONTROL);
2494 :
2495 1 : Write(aTab, msg__, false);
2496 : // Sentinel = 'aTab'
2497 1 : (msg__)->WriteSentinel(1179125994);
2498 :
2499 :
2500 :
2501 :
2502 1 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2503 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2504 : }
2505 2 : AUTO_PROFILER_LABEL("PContent::Msg_Activate", OTHER);
2506 1 : PContent::Transition(PContent::Msg_Activate__ID, (&(mState)));
2507 :
2508 1 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2509 2 : return sendok__;
2510 : }
2511 :
2512 0 : auto PContentParent::SendDeactivate(PBrowserParent* aTab) -> bool
2513 : {
2514 0 : IPC::Message* msg__ = PContent::Msg_Deactivate(MSG_ROUTING_CONTROL);
2515 :
2516 0 : Write(aTab, msg__, false);
2517 : // Sentinel = 'aTab'
2518 0 : (msg__)->WriteSentinel(1179125994);
2519 :
2520 :
2521 :
2522 :
2523 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2524 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2525 : }
2526 0 : AUTO_PROFILER_LABEL("PContent::Msg_Deactivate", OTHER);
2527 0 : PContent::Transition(PContent::Msg_Deactivate__ID, (&(mState)));
2528 :
2529 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2530 0 : return sendok__;
2531 : }
2532 :
2533 1 : auto PContentParent::SendParentActivated(
2534 : PBrowserParent* aTab,
2535 : const bool& aActivated) -> bool
2536 : {
2537 1 : IPC::Message* msg__ = PContent::Msg_ParentActivated(MSG_ROUTING_CONTROL);
2538 :
2539 1 : Write(aTab, msg__, false);
2540 : // Sentinel = 'aTab'
2541 1 : (msg__)->WriteSentinel(1179125994);
2542 1 : Write(aActivated, msg__);
2543 : // Sentinel = 'aActivated'
2544 1 : (msg__)->WriteSentinel(2491273264);
2545 :
2546 :
2547 :
2548 :
2549 1 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2550 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2551 : }
2552 2 : AUTO_PROFILER_LABEL("PContent::Msg_ParentActivated", OTHER);
2553 1 : PContent::Transition(PContent::Msg_ParentActivated__ID, (&(mState)));
2554 :
2555 1 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2556 2 : return sendok__;
2557 : }
2558 :
2559 0 : auto PContentParent::SendPParentToChildStreamConstructor() -> PParentToChildStreamParent*
2560 : {
2561 0 : return SendPParentToChildStreamConstructor(AllocPParentToChildStreamParent());
2562 : }
2563 :
2564 0 : auto PContentParent::SendPParentToChildStreamConstructor(PParentToChildStreamParent* actor) -> PParentToChildStreamParent*
2565 : {
2566 0 : if ((!(actor))) {
2567 0 : NS_WARNING("Error constructing actor PParentToChildStreamParent");
2568 0 : return nullptr;
2569 : }
2570 0 : (actor)->SetManager(this);
2571 0 : Register(actor);
2572 0 : (actor)->SetIPCChannel(GetIPCChannel());
2573 0 : (mManagedPParentToChildStreamParent).PutEntry(actor);
2574 0 : (actor)->mState = mozilla::ipc::PParentToChildStream::__Start;
2575 :
2576 0 : IPC::Message* msg__ = PContent::Msg_PParentToChildStreamConstructor(MSG_ROUTING_CONTROL);
2577 :
2578 0 : Write(actor, msg__, false);
2579 : // Sentinel = 'actor'
2580 0 : (msg__)->WriteSentinel(875202478);
2581 :
2582 0 : (msg__)->set_constructor();
2583 :
2584 :
2585 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2586 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2587 : }
2588 0 : AUTO_PROFILER_LABEL("PContent::Msg_PParentToChildStreamConstructor", OTHER);
2589 0 : PContent::Transition(PContent::Msg_PParentToChildStreamConstructor__ID, (&(mState)));
2590 :
2591 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2592 0 : if ((!(sendok__))) {
2593 0 : IProtocol* mgr = (actor)->Manager();
2594 0 : (actor)->DestroySubtree(FailedConstructor);
2595 0 : (actor)->DeallocSubtree();
2596 0 : (mgr)->RemoveManagee(PParentToChildStreamMsgStart, actor);
2597 0 : return nullptr;
2598 : }
2599 0 : return actor;
2600 : }
2601 :
2602 0 : auto PContentParent::SendProvideAnonymousTemporaryFile(
2603 : const uint64_t& aID,
2604 : const FileDescOrError& aFD) -> bool
2605 : {
2606 0 : IPC::Message* msg__ = PContent::Msg_ProvideAnonymousTemporaryFile(MSG_ROUTING_CONTROL);
2607 :
2608 0 : Write(aID, msg__);
2609 : // Sentinel = 'aID'
2610 0 : (msg__)->WriteSentinel(2735041849);
2611 0 : Write(aFD, msg__);
2612 : // Sentinel = 'aFD'
2613 0 : (msg__)->WriteSentinel(2730041960);
2614 :
2615 :
2616 :
2617 :
2618 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2619 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2620 : }
2621 0 : AUTO_PROFILER_LABEL("PContent::Msg_ProvideAnonymousTemporaryFile", OTHER);
2622 0 : PContent::Transition(PContent::Msg_ProvideAnonymousTemporaryFile__ID, (&(mState)));
2623 :
2624 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2625 0 : return sendok__;
2626 : }
2627 :
2628 3 : auto PContentParent::SendSetPermissionsWithKey(
2629 : const nsCString& aPermissionKey,
2630 : const nsTArray<Permission>& aPermissions) -> bool
2631 : {
2632 3 : IPC::Message* msg__ = PContent::Msg_SetPermissionsWithKey(MSG_ROUTING_CONTROL);
2633 :
2634 3 : Write(aPermissionKey, msg__);
2635 : // Sentinel = 'aPermissionKey'
2636 3 : (msg__)->WriteSentinel(1655133647);
2637 3 : Write(aPermissions, msg__);
2638 : // Sentinel = 'aPermissions'
2639 3 : (msg__)->WriteSentinel(1882836443);
2640 :
2641 :
2642 :
2643 :
2644 3 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2645 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2646 : }
2647 6 : AUTO_PROFILER_LABEL("PContent::Msg_SetPermissionsWithKey", OTHER);
2648 3 : PContent::Transition(PContent::Msg_SetPermissionsWithKey__ID, (&(mState)));
2649 :
2650 3 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2651 6 : return sendok__;
2652 : }
2653 :
2654 2 : auto PContentParent::SendRefreshScreens(const nsTArray<ScreenDetails>& aScreens) -> bool
2655 : {
2656 2 : IPC::Message* msg__ = PContent::Msg_RefreshScreens(MSG_ROUTING_CONTROL);
2657 :
2658 2 : Write(aScreens, msg__);
2659 : // Sentinel = 'aScreens'
2660 2 : (msg__)->WriteSentinel(2322625764);
2661 :
2662 :
2663 :
2664 :
2665 2 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2666 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2667 : }
2668 4 : AUTO_PROFILER_LABEL("PContent::Msg_RefreshScreens", OTHER);
2669 2 : PContent::Transition(PContent::Msg_RefreshScreens__ID, (&(mState)));
2670 :
2671 2 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2672 4 : return sendok__;
2673 : }
2674 :
2675 0 : auto PContentParent::SendPIPCBlobInputStreamConstructor(
2676 : const nsID& aID,
2677 : const uint64_t& aSize) -> PIPCBlobInputStreamParent*
2678 : {
2679 0 : return SendPIPCBlobInputStreamConstructor(AllocPIPCBlobInputStreamParent(aID, aSize), aID, aSize);
2680 : }
2681 :
2682 0 : auto PContentParent::SendPIPCBlobInputStreamConstructor(
2683 : PIPCBlobInputStreamParent* actor,
2684 : const nsID& aID,
2685 : const uint64_t& aSize) -> PIPCBlobInputStreamParent*
2686 : {
2687 0 : if ((!(actor))) {
2688 0 : NS_WARNING("Error constructing actor PIPCBlobInputStreamParent");
2689 0 : return nullptr;
2690 : }
2691 0 : (actor)->SetManager(this);
2692 0 : Register(actor);
2693 0 : (actor)->SetIPCChannel(GetIPCChannel());
2694 0 : (mManagedPIPCBlobInputStreamParent).PutEntry(actor);
2695 0 : (actor)->mState = mozilla::ipc::PIPCBlobInputStream::__Start;
2696 :
2697 0 : IPC::Message* msg__ = PContent::Msg_PIPCBlobInputStreamConstructor(MSG_ROUTING_CONTROL);
2698 :
2699 0 : Write(actor, msg__, false);
2700 : // Sentinel = 'actor'
2701 0 : (msg__)->WriteSentinel(875202478);
2702 0 : Write(aID, msg__);
2703 : // Sentinel = 'aID'
2704 0 : (msg__)->WriteSentinel(2735041849);
2705 0 : Write(aSize, msg__);
2706 : // Sentinel = 'aSize'
2707 0 : (msg__)->WriteSentinel(2556665555);
2708 :
2709 0 : (msg__)->set_constructor();
2710 :
2711 :
2712 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2713 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2714 : }
2715 0 : AUTO_PROFILER_LABEL("PContent::Msg_PIPCBlobInputStreamConstructor", OTHER);
2716 0 : PContent::Transition(PContent::Msg_PIPCBlobInputStreamConstructor__ID, (&(mState)));
2717 :
2718 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2719 0 : if ((!(sendok__))) {
2720 0 : IProtocol* mgr = (actor)->Manager();
2721 0 : (actor)->DestroySubtree(FailedConstructor);
2722 0 : (actor)->DeallocSubtree();
2723 0 : (mgr)->RemoveManagee(PIPCBlobInputStreamMsgStart, actor);
2724 0 : return nullptr;
2725 : }
2726 0 : return actor;
2727 : }
2728 :
2729 3 : auto PContentParent::SendSetPluginList(
2730 : const uint32_t& pluginEpoch,
2731 : const nsTArray<PluginTag>& plugins,
2732 : const nsTArray<FakePluginTag>& fakePlugins) -> bool
2733 : {
2734 3 : IPC::Message* msg__ = PContent::Msg_SetPluginList(MSG_ROUTING_CONTROL);
2735 :
2736 3 : Write(pluginEpoch, msg__);
2737 : // Sentinel = 'pluginEpoch'
2738 3 : (msg__)->WriteSentinel(2162950827);
2739 3 : Write(plugins, msg__);
2740 : // Sentinel = 'plugins'
2741 3 : (msg__)->WriteSentinel(2745061527);
2742 3 : Write(fakePlugins, msg__);
2743 : // Sentinel = 'fakePlugins'
2744 3 : (msg__)->WriteSentinel(3769647974);
2745 :
2746 :
2747 :
2748 :
2749 3 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2750 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2751 : }
2752 6 : AUTO_PROFILER_LABEL("PContent::Msg_SetPluginList", OTHER);
2753 3 : PContent::Transition(PContent::Msg_SetPluginList__ID, (&(mState)));
2754 :
2755 3 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2756 6 : return sendok__;
2757 : }
2758 :
2759 2 : auto PContentParent::SendShareCodeCoverageMutex(const CrossProcessMutexHandle& handle) -> bool
2760 : {
2761 2 : IPC::Message* msg__ = PContent::Msg_ShareCodeCoverageMutex(MSG_ROUTING_CONTROL);
2762 :
2763 2 : Write(handle, msg__);
2764 : // Sentinel = 'handle'
2765 2 : (msg__)->WriteSentinel(453975108);
2766 :
2767 :
2768 :
2769 :
2770 2 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2771 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2772 : }
2773 4 : AUTO_PROFILER_LABEL("PContent::Msg_ShareCodeCoverageMutex", OTHER);
2774 2 : PContent::Transition(PContent::Msg_ShareCodeCoverageMutex__ID, (&(mState)));
2775 :
2776 2 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2777 4 : return sendok__;
2778 : }
2779 :
2780 0 : auto PContentParent::SendDumpCodeCoverageCounters() -> bool
2781 : {
2782 0 : IPC::Message* msg__ = PContent::Msg_DumpCodeCoverageCounters(MSG_ROUTING_CONTROL);
2783 :
2784 :
2785 :
2786 :
2787 :
2788 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2789 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2790 : }
2791 0 : AUTO_PROFILER_LABEL("PContent::Msg_DumpCodeCoverageCounters", OTHER);
2792 0 : PContent::Transition(PContent::Msg_DumpCodeCoverageCounters__ID, (&(mState)));
2793 :
2794 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2795 0 : return sendok__;
2796 : }
2797 :
2798 0 : auto PContentParent::SendResetCodeCoverageCounters() -> bool
2799 : {
2800 0 : IPC::Message* msg__ = PContent::Msg_ResetCodeCoverageCounters(MSG_ROUTING_CONTROL);
2801 :
2802 :
2803 :
2804 :
2805 :
2806 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2807 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2808 : }
2809 0 : AUTO_PROFILER_LABEL("PContent::Msg_ResetCodeCoverageCounters", OTHER);
2810 0 : PContent::Transition(PContent::Msg_ResetCodeCoverageCounters__ID, (&(mState)));
2811 :
2812 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2813 0 : return sendok__;
2814 : }
2815 :
2816 2 : auto PContentParent::SendAsyncMessage(
2817 : const nsString& aMessage,
2818 : const nsTArray<CpowEntry>& aCpows,
2819 : const Principal& aPrincipal,
2820 : const ClonedMessageData& aData) -> bool
2821 : {
2822 2 : IPC::Message* msg__ = PContent::Msg_AsyncMessage(MSG_ROUTING_CONTROL);
2823 :
2824 2 : Write(aMessage, msg__);
2825 : // Sentinel = 'aMessage'
2826 2 : (msg__)->WriteSentinel(3453110902);
2827 2 : Write(aCpows, msg__);
2828 : // Sentinel = 'aCpows'
2829 2 : (msg__)->WriteSentinel(2178221451);
2830 2 : Write(aPrincipal, msg__);
2831 : // Sentinel = 'aPrincipal'
2832 2 : (msg__)->WriteSentinel(4097511);
2833 2 : Write(aData, msg__);
2834 : // Sentinel = 'aData'
2835 2 : (msg__)->WriteSentinel(3285075324);
2836 :
2837 :
2838 :
2839 :
2840 2 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2841 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2842 : }
2843 4 : AUTO_PROFILER_LABEL("PContent::Msg_AsyncMessage", OTHER);
2844 2 : PContent::Transition(PContent::Msg_AsyncMessage__ID, (&(mState)));
2845 :
2846 2 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2847 4 : return sendok__;
2848 : }
2849 :
2850 0 : auto PContentParent::SendNotifyPushSubscriptionModifiedObservers(
2851 : const nsCString& scope,
2852 : const Principal& principal) -> bool
2853 : {
2854 0 : IPC::Message* msg__ = PContent::Msg_NotifyPushSubscriptionModifiedObservers(MSG_ROUTING_CONTROL);
2855 :
2856 0 : Write(scope, msg__);
2857 : // Sentinel = 'scope'
2858 0 : (msg__)->WriteSentinel(2191984953);
2859 0 : Write(principal, msg__);
2860 : // Sentinel = 'principal'
2861 0 : (msg__)->WriteSentinel(732240927);
2862 :
2863 :
2864 :
2865 :
2866 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2867 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2868 : }
2869 0 : AUTO_PROFILER_LABEL("PContent::Msg_NotifyPushSubscriptionModifiedObservers", OTHER);
2870 0 : PContent::Transition(PContent::Msg_NotifyPushSubscriptionModifiedObservers__ID, (&(mState)));
2871 :
2872 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
2873 0 : return sendok__;
2874 : }
2875 :
2876 94 : auto PContentParent::GetIPCChannel() -> MessageChannel*
2877 : {
2878 94 : return (&(mChannel));
2879 : }
2880 :
2881 0 : auto PContentParent::GetIPCChannel() const -> const MessageChannel*
2882 : {
2883 0 : return (&(mChannel));
2884 : }
2885 :
2886 1 : auto PContentParent::RemoveManagee(
2887 : int32_t aProtocolId,
2888 : ProtocolBase* aListener) -> void
2889 : {
2890 1 : switch (aProtocolId) {
2891 : case PBrowserMsgStart:
2892 : {
2893 0 : PBrowserParent* actor = static_cast<PBrowserParent*>(aListener);
2894 0 : auto& container = mManagedPBrowserParent;
2895 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
2896 :
2897 0 : (container).RemoveEntry(actor);
2898 0 : DeallocPBrowserParent(actor);
2899 0 : return;
2900 : }
2901 : case PContentPermissionRequestMsgStart:
2902 : {
2903 0 : PContentPermissionRequestParent* actor = static_cast<PContentPermissionRequestParent*>(aListener);
2904 0 : auto& container = mManagedPContentPermissionRequestParent;
2905 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
2906 :
2907 0 : (container).RemoveEntry(actor);
2908 0 : DeallocPContentPermissionRequestParent(actor);
2909 0 : return;
2910 : }
2911 : case PCycleCollectWithLogsMsgStart:
2912 : {
2913 0 : PCycleCollectWithLogsParent* actor = static_cast<PCycleCollectWithLogsParent*>(aListener);
2914 0 : auto& container = mManagedPCycleCollectWithLogsParent;
2915 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
2916 :
2917 0 : (container).RemoveEntry(actor);
2918 0 : DeallocPCycleCollectWithLogsParent(actor);
2919 0 : return;
2920 : }
2921 : case PPSMContentDownloaderMsgStart:
2922 : {
2923 0 : PPSMContentDownloaderParent* actor = static_cast<PPSMContentDownloaderParent*>(aListener);
2924 0 : auto& container = mManagedPPSMContentDownloaderParent;
2925 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
2926 :
2927 0 : (container).RemoveEntry(actor);
2928 0 : DeallocPPSMContentDownloaderParent(actor);
2929 0 : return;
2930 : }
2931 : case PExternalHelperAppMsgStart:
2932 : {
2933 0 : PExternalHelperAppParent* actor = static_cast<PExternalHelperAppParent*>(aListener);
2934 0 : auto& container = mManagedPExternalHelperAppParent;
2935 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
2936 :
2937 0 : (container).RemoveEntry(actor);
2938 0 : DeallocPExternalHelperAppParent(actor);
2939 0 : return;
2940 : }
2941 : case PFileDescriptorSetMsgStart:
2942 : {
2943 0 : PFileDescriptorSetParent* actor = static_cast<PFileDescriptorSetParent*>(aListener);
2944 0 : auto& container = mManagedPFileDescriptorSetParent;
2945 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
2946 :
2947 0 : (container).RemoveEntry(actor);
2948 0 : DeallocPFileDescriptorSetParent(actor);
2949 0 : return;
2950 : }
2951 : case PHalMsgStart:
2952 : {
2953 0 : PHalParent* actor = static_cast<PHalParent*>(aListener);
2954 0 : auto& container = mManagedPHalParent;
2955 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
2956 :
2957 0 : (container).RemoveEntry(actor);
2958 0 : DeallocPHalParent(actor);
2959 0 : return;
2960 : }
2961 : case PHandlerServiceMsgStart:
2962 : {
2963 0 : PHandlerServiceParent* actor = static_cast<PHandlerServiceParent*>(aListener);
2964 0 : auto& container = mManagedPHandlerServiceParent;
2965 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
2966 :
2967 0 : (container).RemoveEntry(actor);
2968 0 : DeallocPHandlerServiceParent(actor);
2969 0 : return;
2970 : }
2971 : case PHeapSnapshotTempFileHelperMsgStart:
2972 : {
2973 0 : PHeapSnapshotTempFileHelperParent* actor = static_cast<PHeapSnapshotTempFileHelperParent*>(aListener);
2974 0 : auto& container = mManagedPHeapSnapshotTempFileHelperParent;
2975 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
2976 :
2977 0 : (container).RemoveEntry(actor);
2978 0 : DeallocPHeapSnapshotTempFileHelperParent(actor);
2979 0 : return;
2980 : }
2981 : case PIPCBlobInputStreamMsgStart:
2982 : {
2983 0 : PIPCBlobInputStreamParent* actor = static_cast<PIPCBlobInputStreamParent*>(aListener);
2984 0 : auto& container = mManagedPIPCBlobInputStreamParent;
2985 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
2986 :
2987 0 : (container).RemoveEntry(actor);
2988 0 : DeallocPIPCBlobInputStreamParent(actor);
2989 0 : return;
2990 : }
2991 : case PMediaMsgStart:
2992 : {
2993 0 : PMediaParent* actor = static_cast<PMediaParent*>(aListener);
2994 0 : auto& container = mManagedPMediaParent;
2995 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
2996 :
2997 0 : (container).RemoveEntry(actor);
2998 0 : DeallocPMediaParent(actor);
2999 0 : return;
3000 : }
3001 : case PNeckoMsgStart:
3002 : {
3003 0 : PNeckoParent* actor = static_cast<PNeckoParent*>(aListener);
3004 0 : auto& container = mManagedPNeckoParent;
3005 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3006 :
3007 0 : (container).RemoveEntry(actor);
3008 0 : DeallocPNeckoParent(actor);
3009 0 : return;
3010 : }
3011 : case POfflineCacheUpdateMsgStart:
3012 : {
3013 0 : POfflineCacheUpdateParent* actor = static_cast<POfflineCacheUpdateParent*>(aListener);
3014 0 : auto& container = mManagedPOfflineCacheUpdateParent;
3015 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3016 :
3017 0 : (container).RemoveEntry(actor);
3018 0 : DeallocPOfflineCacheUpdateParent(actor);
3019 0 : return;
3020 : }
3021 : case PPrintingMsgStart:
3022 : {
3023 0 : PPrintingParent* actor = static_cast<PPrintingParent*>(aListener);
3024 0 : auto& container = mManagedPPrintingParent;
3025 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3026 :
3027 0 : (container).RemoveEntry(actor);
3028 0 : DeallocPPrintingParent(actor);
3029 0 : return;
3030 : }
3031 : case PChildToParentStreamMsgStart:
3032 : {
3033 0 : PChildToParentStreamParent* actor = static_cast<PChildToParentStreamParent*>(aListener);
3034 0 : auto& container = mManagedPChildToParentStreamParent;
3035 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3036 :
3037 0 : (container).RemoveEntry(actor);
3038 0 : DeallocPChildToParentStreamParent(actor);
3039 0 : return;
3040 : }
3041 : case PParentToChildStreamMsgStart:
3042 : {
3043 0 : PParentToChildStreamParent* actor = static_cast<PParentToChildStreamParent*>(aListener);
3044 0 : auto& container = mManagedPParentToChildStreamParent;
3045 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3046 :
3047 0 : (container).RemoveEntry(actor);
3048 0 : DeallocPParentToChildStreamParent(actor);
3049 0 : return;
3050 : }
3051 : case PSpeechSynthesisMsgStart:
3052 : {
3053 0 : PSpeechSynthesisParent* actor = static_cast<PSpeechSynthesisParent*>(aListener);
3054 0 : auto& container = mManagedPSpeechSynthesisParent;
3055 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3056 :
3057 0 : (container).RemoveEntry(actor);
3058 0 : DeallocPSpeechSynthesisParent(actor);
3059 0 : return;
3060 : }
3061 : case PStorageMsgStart:
3062 : {
3063 0 : PStorageParent* actor = static_cast<PStorageParent*>(aListener);
3064 0 : auto& container = mManagedPStorageParent;
3065 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3066 :
3067 0 : (container).RemoveEntry(actor);
3068 0 : DeallocPStorageParent(actor);
3069 0 : return;
3070 : }
3071 : case PTestShellMsgStart:
3072 : {
3073 0 : PTestShellParent* actor = static_cast<PTestShellParent*>(aListener);
3074 0 : auto& container = mManagedPTestShellParent;
3075 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3076 :
3077 0 : (container).RemoveEntry(actor);
3078 0 : DeallocPTestShellParent(actor);
3079 0 : return;
3080 : }
3081 : case PJavaScriptMsgStart:
3082 : {
3083 0 : PJavaScriptParent* actor = static_cast<PJavaScriptParent*>(aListener);
3084 0 : auto& container = mManagedPJavaScriptParent;
3085 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3086 :
3087 0 : (container).RemoveEntry(actor);
3088 0 : DeallocPJavaScriptParent(actor);
3089 0 : return;
3090 : }
3091 : case PRemoteSpellcheckEngineMsgStart:
3092 : {
3093 0 : PRemoteSpellcheckEngineParent* actor = static_cast<PRemoteSpellcheckEngineParent*>(aListener);
3094 0 : auto& container = mManagedPRemoteSpellcheckEngineParent;
3095 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3096 :
3097 0 : (container).RemoveEntry(actor);
3098 0 : DeallocPRemoteSpellcheckEngineParent(actor);
3099 0 : return;
3100 : }
3101 : case PWebBrowserPersistDocumentMsgStart:
3102 : {
3103 0 : PWebBrowserPersistDocumentParent* actor = static_cast<PWebBrowserPersistDocumentParent*>(aListener);
3104 0 : auto& container = mManagedPWebBrowserPersistDocumentParent;
3105 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3106 :
3107 0 : (container).RemoveEntry(actor);
3108 0 : DeallocPWebBrowserPersistDocumentParent(actor);
3109 0 : return;
3110 : }
3111 : case PWebrtcGlobalMsgStart:
3112 : {
3113 0 : PWebrtcGlobalParent* actor = static_cast<PWebrtcGlobalParent*>(aListener);
3114 0 : auto& container = mManagedPWebrtcGlobalParent;
3115 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3116 :
3117 0 : (container).RemoveEntry(actor);
3118 0 : DeallocPWebrtcGlobalParent(actor);
3119 0 : return;
3120 : }
3121 : case PPresentationMsgStart:
3122 : {
3123 0 : PPresentationParent* actor = static_cast<PPresentationParent*>(aListener);
3124 0 : auto& container = mManagedPPresentationParent;
3125 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3126 :
3127 0 : (container).RemoveEntry(actor);
3128 0 : DeallocPPresentationParent(actor);
3129 0 : return;
3130 : }
3131 : case PFlyWebPublishedServerMsgStart:
3132 : {
3133 0 : PFlyWebPublishedServerParent* actor = static_cast<PFlyWebPublishedServerParent*>(aListener);
3134 0 : auto& container = mManagedPFlyWebPublishedServerParent;
3135 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3136 :
3137 0 : (container).RemoveEntry(actor);
3138 0 : DeallocPFlyWebPublishedServerParent(actor);
3139 0 : return;
3140 : }
3141 : case PURLClassifierMsgStart:
3142 : {
3143 0 : PURLClassifierParent* actor = static_cast<PURLClassifierParent*>(aListener);
3144 0 : auto& container = mManagedPURLClassifierParent;
3145 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3146 :
3147 0 : (container).RemoveEntry(actor);
3148 0 : DeallocPURLClassifierParent(actor);
3149 0 : return;
3150 : }
3151 : case PURLClassifierLocalMsgStart:
3152 : {
3153 0 : PURLClassifierLocalParent* actor = static_cast<PURLClassifierLocalParent*>(aListener);
3154 0 : auto& container = mManagedPURLClassifierLocalParent;
3155 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3156 :
3157 0 : (container).RemoveEntry(actor);
3158 0 : DeallocPURLClassifierLocalParent(actor);
3159 0 : return;
3160 : }
3161 : case PScriptCacheMsgStart:
3162 : {
3163 1 : PScriptCacheParent* actor = static_cast<PScriptCacheParent*>(aListener);
3164 1 : auto& container = mManagedPScriptCacheParent;
3165 1 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3166 :
3167 1 : (container).RemoveEntry(actor);
3168 1 : DeallocPScriptCacheParent(actor);
3169 1 : return;
3170 : }
3171 : default:
3172 : {
3173 0 : FatalError("unreached");
3174 0 : return;
3175 : }
3176 : }
3177 : }
3178 :
3179 81 : auto PContentParent::OnMessageReceived(const Message& msg__) -> PContentParent::Result
3180 : {
3181 81 : int32_t route__ = (msg__).routing_id();
3182 81 : if ((MSG_ROUTING_CONTROL) != (route__)) {
3183 59 : ChannelListener* routed__ = Lookup(route__);
3184 59 : if ((!(routed__))) {
3185 0 : return MsgRouteError;
3186 : }
3187 59 : return (routed__)->OnMessageReceived(msg__);
3188 : }
3189 :
3190 22 : switch ((msg__).type()) {
3191 : case PContent::Reply_PBrowserConstructor__ID:
3192 : {
3193 0 : return MsgProcessed;
3194 : }
3195 : case PContent::Msg_PBrowserConstructor__ID:
3196 : {
3197 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3198 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3199 : }
3200 0 : AUTO_PROFILER_LABEL("PContent::Msg_PBrowserConstructor", OTHER);
3201 :
3202 0 : PickleIterator iter__(msg__);
3203 : ActorHandle handle__;
3204 : PBrowserParent* actor;
3205 0 : TabId tabId;
3206 0 : TabId sameTabGroupAs;
3207 0 : IPCTabContext context;
3208 : uint32_t chromeFlags;
3209 0 : ContentParentId cpId;
3210 : bool isForBrowser;
3211 :
3212 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
3213 0 : FatalError("Error deserializing 'ActorHandle'");
3214 0 : return MsgValueError;
3215 : }
3216 : // Sentinel = 'actor'
3217 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
3218 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
3219 0 : return MsgValueError;
3220 : }
3221 0 : if ((!(Read((&(tabId)), (&(msg__)), (&(iter__)))))) {
3222 0 : FatalError("Error deserializing 'TabId'");
3223 0 : return MsgValueError;
3224 : }
3225 : // Sentinel = 'tabId'
3226 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3419081923)))) {
3227 0 : mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
3228 0 : return MsgValueError;
3229 : }
3230 0 : if ((!(Read((&(sameTabGroupAs)), (&(msg__)), (&(iter__)))))) {
3231 0 : FatalError("Error deserializing 'TabId'");
3232 0 : return MsgValueError;
3233 : }
3234 : // Sentinel = 'sameTabGroupAs'
3235 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3969365410)))) {
3236 0 : mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
3237 0 : return MsgValueError;
3238 : }
3239 0 : if ((!(Read((&(context)), (&(msg__)), (&(iter__)))))) {
3240 0 : FatalError("Error deserializing 'IPCTabContext'");
3241 0 : return MsgValueError;
3242 : }
3243 : // Sentinel = 'context'
3244 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3514529014)))) {
3245 0 : mozilla::ipc::SentinelReadError("Error deserializing 'IPCTabContext'");
3246 0 : return MsgValueError;
3247 : }
3248 0 : if ((!(Read((&(chromeFlags)), (&(msg__)), (&(iter__)))))) {
3249 0 : FatalError("Error deserializing 'uint32_t'");
3250 0 : return MsgValueError;
3251 : }
3252 : // Sentinel = 'chromeFlags'
3253 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 299515804)))) {
3254 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
3255 0 : return MsgValueError;
3256 : }
3257 0 : if ((!(Read((&(cpId)), (&(msg__)), (&(iter__)))))) {
3258 0 : FatalError("Error deserializing 'ContentParentId'");
3259 0 : return MsgValueError;
3260 : }
3261 : // Sentinel = 'cpId'
3262 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2452595622)))) {
3263 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ContentParentId'");
3264 0 : return MsgValueError;
3265 : }
3266 0 : if ((!(Read((&(isForBrowser)), (&(msg__)), (&(iter__)))))) {
3267 0 : FatalError("Error deserializing 'bool'");
3268 0 : return MsgValueError;
3269 : }
3270 : // Sentinel = 'isForBrowser'
3271 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2051565587)))) {
3272 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
3273 0 : return MsgValueError;
3274 : }
3275 0 : (msg__).EndRead(iter__, (msg__).type());
3276 0 : PContent::Transition(PContent::Msg_PBrowserConstructor__ID, (&(mState)));
3277 0 : actor = AllocPBrowserParent(tabId, sameTabGroupAs, context, chromeFlags, cpId, isForBrowser);
3278 0 : if ((!(actor))) {
3279 0 : NS_WARNING("Error constructing actor PBrowserParent");
3280 0 : return MsgValueError;
3281 : }
3282 0 : (actor)->SetManager(this);
3283 0 : RegisterID(actor, (handle__).mId);
3284 0 : (actor)->SetIPCChannel(GetIPCChannel());
3285 0 : (mManagedPBrowserParent).PutEntry(actor);
3286 0 : (actor)->mState = mozilla::dom::PBrowser::__Start;
3287 :
3288 0 : if ((!(RecvPBrowserConstructor(mozilla::Move(actor), mozilla::Move(tabId), mozilla::Move(sameTabGroupAs), mozilla::Move(context), mozilla::Move(chromeFlags), mozilla::Move(cpId), mozilla::Move(isForBrowser))))) {
3289 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3290 : // Error handled in mozilla::ipc::IPCResult
3291 0 : return MsgProcessingError;
3292 : }
3293 :
3294 0 : return MsgProcessed;
3295 : }
3296 : case PContent::Reply_PFileDescriptorSetConstructor__ID:
3297 : {
3298 0 : return MsgProcessed;
3299 : }
3300 : case PContent::Msg_PFileDescriptorSetConstructor__ID:
3301 : {
3302 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3303 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3304 : }
3305 0 : AUTO_PROFILER_LABEL("PContent::Msg_PFileDescriptorSetConstructor", OTHER);
3306 :
3307 0 : PickleIterator iter__(msg__);
3308 : ActorHandle handle__;
3309 : PFileDescriptorSetParent* actor;
3310 0 : FileDescriptor fd;
3311 :
3312 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
3313 0 : FatalError("Error deserializing 'ActorHandle'");
3314 0 : return MsgValueError;
3315 : }
3316 : // Sentinel = 'actor'
3317 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
3318 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
3319 0 : return MsgValueError;
3320 : }
3321 0 : if ((!(Read((&(fd)), (&(msg__)), (&(iter__)))))) {
3322 0 : FatalError("Error deserializing 'FileDescriptor'");
3323 0 : return MsgValueError;
3324 : }
3325 : // Sentinel = 'fd'
3326 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 628535764)))) {
3327 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor'");
3328 0 : return MsgValueError;
3329 : }
3330 0 : (msg__).EndRead(iter__, (msg__).type());
3331 0 : PContent::Transition(PContent::Msg_PFileDescriptorSetConstructor__ID, (&(mState)));
3332 0 : actor = AllocPFileDescriptorSetParent(fd);
3333 0 : if ((!(actor))) {
3334 0 : NS_WARNING("Error constructing actor PFileDescriptorSetParent");
3335 0 : return MsgValueError;
3336 : }
3337 0 : (actor)->SetManager(this);
3338 0 : RegisterID(actor, (handle__).mId);
3339 0 : (actor)->SetIPCChannel(GetIPCChannel());
3340 0 : (mManagedPFileDescriptorSetParent).PutEntry(actor);
3341 0 : (actor)->mState = mozilla::ipc::PFileDescriptorSet::__Start;
3342 :
3343 0 : if ((!(RecvPFileDescriptorSetConstructor(mozilla::Move(actor), mozilla::Move(fd))))) {
3344 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3345 : // Error handled in mozilla::ipc::IPCResult
3346 0 : return MsgProcessingError;
3347 : }
3348 :
3349 0 : return MsgProcessed;
3350 : }
3351 : case PContent::Reply_PWebBrowserPersistDocumentConstructor__ID:
3352 : {
3353 0 : return MsgProcessed;
3354 : }
3355 : case PContent::Msg_PWebBrowserPersistDocumentConstructor__ID:
3356 : {
3357 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3358 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3359 : }
3360 0 : AUTO_PROFILER_LABEL("PContent::Msg_PWebBrowserPersistDocumentConstructor", OTHER);
3361 :
3362 0 : PickleIterator iter__(msg__);
3363 : ActorHandle handle__;
3364 : PWebBrowserPersistDocumentParent* actor;
3365 : PBrowserParent* aBrowser;
3366 : uint64_t aOuterWindowID;
3367 :
3368 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
3369 0 : FatalError("Error deserializing 'ActorHandle'");
3370 0 : return MsgValueError;
3371 : }
3372 : // Sentinel = 'actor'
3373 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
3374 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
3375 0 : return MsgValueError;
3376 : }
3377 0 : if ((!(Read((&(aBrowser)), (&(msg__)), (&(iter__)), true)))) {
3378 0 : FatalError("Error deserializing 'PBrowserParent'");
3379 0 : return MsgValueError;
3380 : }
3381 : // Sentinel = 'aBrowser'
3382 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3086016059)))) {
3383 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserParent'");
3384 0 : return MsgValueError;
3385 : }
3386 0 : if ((!(Read((&(aOuterWindowID)), (&(msg__)), (&(iter__)))))) {
3387 0 : FatalError("Error deserializing 'uint64_t'");
3388 0 : return MsgValueError;
3389 : }
3390 : // Sentinel = 'aOuterWindowID'
3391 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3438169907)))) {
3392 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
3393 0 : return MsgValueError;
3394 : }
3395 0 : (msg__).EndRead(iter__, (msg__).type());
3396 0 : PContent::Transition(PContent::Msg_PWebBrowserPersistDocumentConstructor__ID, (&(mState)));
3397 0 : actor = AllocPWebBrowserPersistDocumentParent(aBrowser, aOuterWindowID);
3398 0 : if ((!(actor))) {
3399 0 : NS_WARNING("Error constructing actor PWebBrowserPersistDocumentParent");
3400 0 : return MsgValueError;
3401 : }
3402 0 : (actor)->SetManager(this);
3403 0 : RegisterID(actor, (handle__).mId);
3404 0 : (actor)->SetIPCChannel(GetIPCChannel());
3405 0 : (mManagedPWebBrowserPersistDocumentParent).PutEntry(actor);
3406 0 : (actor)->mState = mozilla::PWebBrowserPersistDocument::__Start;
3407 :
3408 0 : if ((!(RecvPWebBrowserPersistDocumentConstructor(mozilla::Move(actor), mozilla::Move(aBrowser), mozilla::Move(aOuterWindowID))))) {
3409 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3410 : // Error handled in mozilla::ipc::IPCResult
3411 0 : return MsgProcessingError;
3412 : }
3413 :
3414 0 : return MsgProcessed;
3415 : }
3416 : case PContent::Reply_PCycleCollectWithLogsConstructor__ID:
3417 : {
3418 0 : return MsgProcessed;
3419 : }
3420 : case PContent::Reply_PTestShellConstructor__ID:
3421 : {
3422 0 : return MsgProcessed;
3423 : }
3424 : case PContent::Reply_PScriptCacheConstructor__ID:
3425 : {
3426 0 : return MsgProcessed;
3427 : }
3428 : case PContent::Reply_PParentToChildStreamConstructor__ID:
3429 : {
3430 0 : return MsgProcessed;
3431 : }
3432 : case PContent::Reply_PIPCBlobInputStreamConstructor__ID:
3433 : {
3434 0 : return MsgProcessed;
3435 : }
3436 : case PContent::Msg_InitBackground__ID:
3437 : {
3438 2 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3439 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3440 : }
3441 4 : AUTO_PROFILER_LABEL("PContent::Msg_InitBackground", OTHER);
3442 :
3443 2 : PickleIterator iter__(msg__);
3444 4 : Endpoint<mozilla::ipc::PBackgroundParent> aEndpoint;
3445 :
3446 2 : if ((!(Read((&(aEndpoint)), (&(msg__)), (&(iter__)))))) {
3447 0 : FatalError("Error deserializing 'Endpoint<mozilla::ipc::PBackgroundParent>'");
3448 0 : return MsgValueError;
3449 : }
3450 : // Sentinel = 'aEndpoint'
3451 2 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2457438235)))) {
3452 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::ipc::PBackgroundParent>'");
3453 0 : return MsgValueError;
3454 : }
3455 2 : (msg__).EndRead(iter__, (msg__).type());
3456 2 : PContent::Transition(PContent::Msg_InitBackground__ID, (&(mState)));
3457 2 : if ((!(RecvInitBackground(mozilla::Move(aEndpoint))))) {
3458 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3459 : // Error handled in mozilla::ipc::IPCResult
3460 0 : return MsgProcessingError;
3461 : }
3462 :
3463 2 : return MsgProcessed;
3464 : }
3465 : case PContent::Msg_CreateGMPService__ID:
3466 : {
3467 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3468 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3469 : }
3470 0 : AUTO_PROFILER_LABEL("PContent::Msg_CreateGMPService", OTHER);
3471 :
3472 0 : PContent::Transition(PContent::Msg_CreateGMPService__ID, (&(mState)));
3473 0 : if ((!(RecvCreateGMPService()))) {
3474 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3475 : // Error handled in mozilla::ipc::IPCResult
3476 0 : return MsgProcessingError;
3477 : }
3478 :
3479 0 : return MsgProcessed;
3480 : }
3481 : case PContent::Msg_PJavaScriptConstructor__ID:
3482 : {
3483 1 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3484 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3485 : }
3486 2 : AUTO_PROFILER_LABEL("PContent::Msg_PJavaScriptConstructor", OTHER);
3487 :
3488 1 : PickleIterator iter__(msg__);
3489 : ActorHandle handle__;
3490 : PJavaScriptParent* actor;
3491 :
3492 1 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
3493 0 : FatalError("Error deserializing 'ActorHandle'");
3494 0 : return MsgValueError;
3495 : }
3496 : // Sentinel = 'actor'
3497 1 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
3498 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
3499 0 : return MsgValueError;
3500 : }
3501 1 : (msg__).EndRead(iter__, (msg__).type());
3502 1 : PContent::Transition(PContent::Msg_PJavaScriptConstructor__ID, (&(mState)));
3503 1 : actor = AllocPJavaScriptParent();
3504 1 : if ((!(actor))) {
3505 0 : NS_WARNING("Error constructing actor PJavaScriptParent");
3506 0 : return MsgValueError;
3507 : }
3508 1 : (actor)->SetManager(this);
3509 1 : RegisterID(actor, (handle__).mId);
3510 1 : (actor)->SetIPCChannel(GetIPCChannel());
3511 1 : (mManagedPJavaScriptParent).PutEntry(actor);
3512 1 : (actor)->mState = mozilla::jsipc::PJavaScript::__Start;
3513 :
3514 1 : if ((!(RecvPJavaScriptConstructor(mozilla::Move(actor))))) {
3515 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3516 : // Error handled in mozilla::ipc::IPCResult
3517 0 : return MsgProcessingError;
3518 : }
3519 :
3520 1 : return MsgProcessed;
3521 : }
3522 : case PContent::Msg_PRemoteSpellcheckEngineConstructor__ID:
3523 : {
3524 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3525 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3526 : }
3527 0 : AUTO_PROFILER_LABEL("PContent::Msg_PRemoteSpellcheckEngineConstructor", OTHER);
3528 :
3529 0 : PickleIterator iter__(msg__);
3530 : ActorHandle handle__;
3531 : PRemoteSpellcheckEngineParent* actor;
3532 :
3533 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
3534 0 : FatalError("Error deserializing 'ActorHandle'");
3535 0 : return MsgValueError;
3536 : }
3537 : // Sentinel = 'actor'
3538 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
3539 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
3540 0 : return MsgValueError;
3541 : }
3542 0 : (msg__).EndRead(iter__, (msg__).type());
3543 0 : PContent::Transition(PContent::Msg_PRemoteSpellcheckEngineConstructor__ID, (&(mState)));
3544 0 : actor = AllocPRemoteSpellcheckEngineParent();
3545 0 : if ((!(actor))) {
3546 0 : NS_WARNING("Error constructing actor PRemoteSpellcheckEngineParent");
3547 0 : return MsgValueError;
3548 : }
3549 0 : (actor)->SetManager(this);
3550 0 : RegisterID(actor, (handle__).mId);
3551 0 : (actor)->SetIPCChannel(GetIPCChannel());
3552 0 : (mManagedPRemoteSpellcheckEngineParent).PutEntry(actor);
3553 0 : (actor)->mState = mozilla::PRemoteSpellcheckEngine::__Start;
3554 :
3555 0 : if ((!(RecvPRemoteSpellcheckEngineConstructor(mozilla::Move(actor))))) {
3556 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3557 : // Error handled in mozilla::ipc::IPCResult
3558 0 : return MsgProcessingError;
3559 : }
3560 :
3561 0 : return MsgProcessed;
3562 : }
3563 : case PContent::Msg_InitCrashReporter__ID:
3564 : {
3565 1 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3566 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3567 : }
3568 2 : AUTO_PROFILER_LABEL("PContent::Msg_InitCrashReporter", OTHER);
3569 :
3570 1 : PickleIterator iter__(msg__);
3571 2 : Shmem shmem;
3572 : NativeThreadId tid;
3573 :
3574 1 : if ((!(Read((&(shmem)), (&(msg__)), (&(iter__)))))) {
3575 0 : FatalError("Error deserializing 'Shmem'");
3576 0 : return MsgValueError;
3577 : }
3578 : // Sentinel = 'shmem'
3579 1 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4252604405)))) {
3580 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Shmem'");
3581 0 : return MsgValueError;
3582 : }
3583 1 : if ((!(Read((&(tid)), (&(msg__)), (&(iter__)))))) {
3584 0 : FatalError("Error deserializing 'NativeThreadId'");
3585 0 : return MsgValueError;
3586 : }
3587 : // Sentinel = 'tid'
3588 1 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 333309880)))) {
3589 0 : mozilla::ipc::SentinelReadError("Error deserializing 'NativeThreadId'");
3590 0 : return MsgValueError;
3591 : }
3592 1 : (msg__).EndRead(iter__, (msg__).type());
3593 1 : PContent::Transition(PContent::Msg_InitCrashReporter__ID, (&(mState)));
3594 1 : if ((!(RecvInitCrashReporter(mozilla::Move(shmem), mozilla::Move(tid))))) {
3595 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3596 : // Error handled in mozilla::ipc::IPCResult
3597 0 : return MsgProcessingError;
3598 : }
3599 :
3600 1 : return MsgProcessed;
3601 : }
3602 : case PContent::Msg_AccumulateMixedContentHSTS__ID:
3603 : {
3604 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3605 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3606 : }
3607 0 : AUTO_PROFILER_LABEL("PContent::Msg_AccumulateMixedContentHSTS", OTHER);
3608 :
3609 0 : PickleIterator iter__(msg__);
3610 0 : URIParams aURI;
3611 : bool aActive;
3612 : bool aHasHSTSPriming;
3613 0 : OriginAttributes aOriginAttributes;
3614 :
3615 0 : if ((!(Read((&(aURI)), (&(msg__)), (&(iter__)))))) {
3616 0 : FatalError("Error deserializing 'URIParams'");
3617 0 : return MsgValueError;
3618 : }
3619 : // Sentinel = 'aURI'
3620 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2075506333)))) {
3621 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
3622 0 : return MsgValueError;
3623 : }
3624 0 : if ((!(Read((&(aActive)), (&(msg__)), (&(iter__)))))) {
3625 0 : FatalError("Error deserializing 'bool'");
3626 0 : return MsgValueError;
3627 : }
3628 : // Sentinel = 'aActive'
3629 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1215369048)))) {
3630 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
3631 0 : return MsgValueError;
3632 : }
3633 0 : if ((!(Read((&(aHasHSTSPriming)), (&(msg__)), (&(iter__)))))) {
3634 0 : FatalError("Error deserializing 'bool'");
3635 0 : return MsgValueError;
3636 : }
3637 : // Sentinel = 'aHasHSTSPriming'
3638 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3985354078)))) {
3639 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
3640 0 : return MsgValueError;
3641 : }
3642 0 : if ((!(Read((&(aOriginAttributes)), (&(msg__)), (&(iter__)))))) {
3643 0 : FatalError("Error deserializing 'OriginAttributes'");
3644 0 : return MsgValueError;
3645 : }
3646 : // Sentinel = 'aOriginAttributes'
3647 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2175998517)))) {
3648 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OriginAttributes'");
3649 0 : return MsgValueError;
3650 : }
3651 0 : (msg__).EndRead(iter__, (msg__).type());
3652 0 : PContent::Transition(PContent::Msg_AccumulateMixedContentHSTS__ID, (&(mState)));
3653 0 : if ((!(RecvAccumulateMixedContentHSTS(mozilla::Move(aURI), mozilla::Move(aActive), mozilla::Move(aHasHSTSPriming), mozilla::Move(aOriginAttributes))))) {
3654 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3655 : // Error handled in mozilla::ipc::IPCResult
3656 0 : return MsgProcessingError;
3657 : }
3658 :
3659 0 : return MsgProcessed;
3660 : }
3661 : case PContent::Msg_PHalConstructor__ID:
3662 : {
3663 1 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3664 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3665 : }
3666 2 : AUTO_PROFILER_LABEL("PContent::Msg_PHalConstructor", OTHER);
3667 :
3668 1 : PickleIterator iter__(msg__);
3669 : ActorHandle handle__;
3670 : PHalParent* actor;
3671 :
3672 1 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
3673 0 : FatalError("Error deserializing 'ActorHandle'");
3674 0 : return MsgValueError;
3675 : }
3676 : // Sentinel = 'actor'
3677 1 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
3678 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
3679 0 : return MsgValueError;
3680 : }
3681 1 : (msg__).EndRead(iter__, (msg__).type());
3682 1 : PContent::Transition(PContent::Msg_PHalConstructor__ID, (&(mState)));
3683 1 : actor = AllocPHalParent();
3684 1 : if ((!(actor))) {
3685 0 : NS_WARNING("Error constructing actor PHalParent");
3686 0 : return MsgValueError;
3687 : }
3688 1 : (actor)->SetManager(this);
3689 1 : RegisterID(actor, (handle__).mId);
3690 1 : (actor)->SetIPCChannel(GetIPCChannel());
3691 1 : (mManagedPHalParent).PutEntry(actor);
3692 1 : (actor)->mState = mozilla::hal_sandbox::PHal::__Start;
3693 :
3694 1 : if ((!(RecvPHalConstructor(mozilla::Move(actor))))) {
3695 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3696 : // Error handled in mozilla::ipc::IPCResult
3697 0 : return MsgProcessingError;
3698 : }
3699 :
3700 1 : return MsgProcessed;
3701 : }
3702 : case PContent::Msg_PHeapSnapshotTempFileHelperConstructor__ID:
3703 : {
3704 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3705 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3706 : }
3707 0 : AUTO_PROFILER_LABEL("PContent::Msg_PHeapSnapshotTempFileHelperConstructor", OTHER);
3708 :
3709 0 : PickleIterator iter__(msg__);
3710 : ActorHandle handle__;
3711 : PHeapSnapshotTempFileHelperParent* actor;
3712 :
3713 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
3714 0 : FatalError("Error deserializing 'ActorHandle'");
3715 0 : return MsgValueError;
3716 : }
3717 : // Sentinel = 'actor'
3718 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
3719 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
3720 0 : return MsgValueError;
3721 : }
3722 0 : (msg__).EndRead(iter__, (msg__).type());
3723 0 : PContent::Transition(PContent::Msg_PHeapSnapshotTempFileHelperConstructor__ID, (&(mState)));
3724 0 : actor = AllocPHeapSnapshotTempFileHelperParent();
3725 0 : if ((!(actor))) {
3726 0 : NS_WARNING("Error constructing actor PHeapSnapshotTempFileHelperParent");
3727 0 : return MsgValueError;
3728 : }
3729 0 : (actor)->SetManager(this);
3730 0 : RegisterID(actor, (handle__).mId);
3731 0 : (actor)->SetIPCChannel(GetIPCChannel());
3732 0 : (mManagedPHeapSnapshotTempFileHelperParent).PutEntry(actor);
3733 0 : (actor)->mState = mozilla::devtools::PHeapSnapshotTempFileHelper::__Start;
3734 :
3735 0 : if ((!(RecvPHeapSnapshotTempFileHelperConstructor(mozilla::Move(actor))))) {
3736 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3737 : // Error handled in mozilla::ipc::IPCResult
3738 0 : return MsgProcessingError;
3739 : }
3740 :
3741 0 : return MsgProcessed;
3742 : }
3743 : case PContent::Msg_PNeckoConstructor__ID:
3744 : {
3745 1 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3746 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3747 : }
3748 2 : AUTO_PROFILER_LABEL("PContent::Msg_PNeckoConstructor", OTHER);
3749 :
3750 1 : PickleIterator iter__(msg__);
3751 : ActorHandle handle__;
3752 : PNeckoParent* actor;
3753 :
3754 1 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
3755 0 : FatalError("Error deserializing 'ActorHandle'");
3756 0 : return MsgValueError;
3757 : }
3758 : // Sentinel = 'actor'
3759 1 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
3760 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
3761 0 : return MsgValueError;
3762 : }
3763 1 : (msg__).EndRead(iter__, (msg__).type());
3764 1 : PContent::Transition(PContent::Msg_PNeckoConstructor__ID, (&(mState)));
3765 1 : actor = AllocPNeckoParent();
3766 1 : if ((!(actor))) {
3767 0 : NS_WARNING("Error constructing actor PNeckoParent");
3768 0 : return MsgValueError;
3769 : }
3770 1 : (actor)->SetManager(this);
3771 1 : RegisterID(actor, (handle__).mId);
3772 1 : (actor)->SetIPCChannel(GetIPCChannel());
3773 1 : (mManagedPNeckoParent).PutEntry(actor);
3774 1 : (actor)->mState = mozilla::net::PNecko::__Start;
3775 :
3776 1 : if ((!(RecvPNeckoConstructor(mozilla::Move(actor))))) {
3777 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3778 : // Error handled in mozilla::ipc::IPCResult
3779 0 : return MsgProcessingError;
3780 : }
3781 :
3782 1 : return MsgProcessed;
3783 : }
3784 : case PContent::Msg_PPrintingConstructor__ID:
3785 : {
3786 1 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3787 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3788 : }
3789 2 : AUTO_PROFILER_LABEL("PContent::Msg_PPrintingConstructor", OTHER);
3790 :
3791 1 : PickleIterator iter__(msg__);
3792 : ActorHandle handle__;
3793 : PPrintingParent* actor;
3794 :
3795 1 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
3796 0 : FatalError("Error deserializing 'ActorHandle'");
3797 0 : return MsgValueError;
3798 : }
3799 : // Sentinel = 'actor'
3800 1 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
3801 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
3802 0 : return MsgValueError;
3803 : }
3804 1 : (msg__).EndRead(iter__, (msg__).type());
3805 1 : PContent::Transition(PContent::Msg_PPrintingConstructor__ID, (&(mState)));
3806 1 : actor = AllocPPrintingParent();
3807 1 : if ((!(actor))) {
3808 0 : NS_WARNING("Error constructing actor PPrintingParent");
3809 0 : return MsgValueError;
3810 : }
3811 1 : (actor)->SetManager(this);
3812 1 : RegisterID(actor, (handle__).mId);
3813 1 : (actor)->SetIPCChannel(GetIPCChannel());
3814 1 : (mManagedPPrintingParent).PutEntry(actor);
3815 1 : (actor)->mState = mozilla::embedding::PPrinting::__Start;
3816 :
3817 1 : if ((!(RecvPPrintingConstructor(mozilla::Move(actor))))) {
3818 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3819 : // Error handled in mozilla::ipc::IPCResult
3820 0 : return MsgProcessingError;
3821 : }
3822 :
3823 1 : return MsgProcessed;
3824 : }
3825 : case PContent::Msg_PChildToParentStreamConstructor__ID:
3826 : {
3827 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3828 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3829 : }
3830 0 : AUTO_PROFILER_LABEL("PContent::Msg_PChildToParentStreamConstructor", OTHER);
3831 :
3832 0 : PickleIterator iter__(msg__);
3833 : ActorHandle handle__;
3834 : PChildToParentStreamParent* actor;
3835 :
3836 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
3837 0 : FatalError("Error deserializing 'ActorHandle'");
3838 0 : return MsgValueError;
3839 : }
3840 : // Sentinel = 'actor'
3841 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
3842 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
3843 0 : return MsgValueError;
3844 : }
3845 0 : (msg__).EndRead(iter__, (msg__).type());
3846 0 : PContent::Transition(PContent::Msg_PChildToParentStreamConstructor__ID, (&(mState)));
3847 0 : actor = AllocPChildToParentStreamParent();
3848 0 : if ((!(actor))) {
3849 0 : NS_WARNING("Error constructing actor PChildToParentStreamParent");
3850 0 : return MsgValueError;
3851 : }
3852 0 : (actor)->SetManager(this);
3853 0 : RegisterID(actor, (handle__).mId);
3854 0 : (actor)->SetIPCChannel(GetIPCChannel());
3855 0 : (mManagedPChildToParentStreamParent).PutEntry(actor);
3856 0 : (actor)->mState = mozilla::ipc::PChildToParentStream::__Start;
3857 :
3858 0 : if ((!(RecvPChildToParentStreamConstructor(mozilla::Move(actor))))) {
3859 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3860 : // Error handled in mozilla::ipc::IPCResult
3861 0 : return MsgProcessingError;
3862 : }
3863 :
3864 0 : return MsgProcessed;
3865 : }
3866 : case PContent::Msg_PSpeechSynthesisConstructor__ID:
3867 : {
3868 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3869 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3870 : }
3871 0 : AUTO_PROFILER_LABEL("PContent::Msg_PSpeechSynthesisConstructor", OTHER);
3872 :
3873 0 : PickleIterator iter__(msg__);
3874 : ActorHandle handle__;
3875 : PSpeechSynthesisParent* actor;
3876 :
3877 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
3878 0 : FatalError("Error deserializing 'ActorHandle'");
3879 0 : return MsgValueError;
3880 : }
3881 : // Sentinel = 'actor'
3882 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
3883 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
3884 0 : return MsgValueError;
3885 : }
3886 0 : (msg__).EndRead(iter__, (msg__).type());
3887 0 : PContent::Transition(PContent::Msg_PSpeechSynthesisConstructor__ID, (&(mState)));
3888 0 : actor = AllocPSpeechSynthesisParent();
3889 0 : if ((!(actor))) {
3890 0 : NS_WARNING("Error constructing actor PSpeechSynthesisParent");
3891 0 : return MsgValueError;
3892 : }
3893 0 : (actor)->SetManager(this);
3894 0 : RegisterID(actor, (handle__).mId);
3895 0 : (actor)->SetIPCChannel(GetIPCChannel());
3896 0 : (mManagedPSpeechSynthesisParent).PutEntry(actor);
3897 0 : (actor)->mState = mozilla::dom::PSpeechSynthesis::__Start;
3898 :
3899 0 : if ((!(RecvPSpeechSynthesisConstructor(mozilla::Move(actor))))) {
3900 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3901 : // Error handled in mozilla::ipc::IPCResult
3902 0 : return MsgProcessingError;
3903 : }
3904 :
3905 0 : return MsgProcessed;
3906 : }
3907 : case PContent::Msg_PStorageConstructor__ID:
3908 : {
3909 1 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3910 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3911 : }
3912 2 : AUTO_PROFILER_LABEL("PContent::Msg_PStorageConstructor", OTHER);
3913 :
3914 1 : PickleIterator iter__(msg__);
3915 : ActorHandle handle__;
3916 : PStorageParent* actor;
3917 :
3918 1 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
3919 0 : FatalError("Error deserializing 'ActorHandle'");
3920 0 : return MsgValueError;
3921 : }
3922 : // Sentinel = 'actor'
3923 1 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
3924 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
3925 0 : return MsgValueError;
3926 : }
3927 1 : (msg__).EndRead(iter__, (msg__).type());
3928 1 : PContent::Transition(PContent::Msg_PStorageConstructor__ID, (&(mState)));
3929 1 : actor = AllocPStorageParent();
3930 1 : if ((!(actor))) {
3931 0 : NS_WARNING("Error constructing actor PStorageParent");
3932 0 : return MsgValueError;
3933 : }
3934 1 : (actor)->SetManager(this);
3935 1 : RegisterID(actor, (handle__).mId);
3936 1 : (actor)->SetIPCChannel(GetIPCChannel());
3937 1 : (mManagedPStorageParent).PutEntry(actor);
3938 1 : (actor)->mState = mozilla::dom::PStorage::__Start;
3939 :
3940 1 : if ((!(RecvPStorageConstructor(mozilla::Move(actor))))) {
3941 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3942 : // Error handled in mozilla::ipc::IPCResult
3943 0 : return MsgProcessingError;
3944 : }
3945 :
3946 1 : return MsgProcessed;
3947 : }
3948 : case PContent::Msg_PMediaConstructor__ID:
3949 : {
3950 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3951 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3952 : }
3953 0 : AUTO_PROFILER_LABEL("PContent::Msg_PMediaConstructor", OTHER);
3954 :
3955 0 : PickleIterator iter__(msg__);
3956 : ActorHandle handle__;
3957 : PMediaParent* actor;
3958 :
3959 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
3960 0 : FatalError("Error deserializing 'ActorHandle'");
3961 0 : return MsgValueError;
3962 : }
3963 : // Sentinel = 'actor'
3964 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
3965 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
3966 0 : return MsgValueError;
3967 : }
3968 0 : (msg__).EndRead(iter__, (msg__).type());
3969 0 : PContent::Transition(PContent::Msg_PMediaConstructor__ID, (&(mState)));
3970 0 : actor = AllocPMediaParent();
3971 0 : if ((!(actor))) {
3972 0 : NS_WARNING("Error constructing actor PMediaParent");
3973 0 : return MsgValueError;
3974 : }
3975 0 : (actor)->SetManager(this);
3976 0 : RegisterID(actor, (handle__).mId);
3977 0 : (actor)->SetIPCChannel(GetIPCChannel());
3978 0 : (mManagedPMediaParent).PutEntry(actor);
3979 0 : (actor)->mState = mozilla::media::PMedia::__Start;
3980 :
3981 0 : if ((!(RecvPMediaConstructor(mozilla::Move(actor))))) {
3982 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3983 : // Error handled in mozilla::ipc::IPCResult
3984 0 : return MsgProcessingError;
3985 : }
3986 :
3987 0 : return MsgProcessed;
3988 : }
3989 : case PContent::Msg_PWebrtcGlobalConstructor__ID:
3990 : {
3991 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3992 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3993 : }
3994 0 : AUTO_PROFILER_LABEL("PContent::Msg_PWebrtcGlobalConstructor", OTHER);
3995 :
3996 0 : PickleIterator iter__(msg__);
3997 : ActorHandle handle__;
3998 : PWebrtcGlobalParent* actor;
3999 :
4000 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
4001 0 : FatalError("Error deserializing 'ActorHandle'");
4002 0 : return MsgValueError;
4003 : }
4004 : // Sentinel = 'actor'
4005 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4006 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4007 0 : return MsgValueError;
4008 : }
4009 0 : (msg__).EndRead(iter__, (msg__).type());
4010 0 : PContent::Transition(PContent::Msg_PWebrtcGlobalConstructor__ID, (&(mState)));
4011 0 : actor = AllocPWebrtcGlobalParent();
4012 0 : if ((!(actor))) {
4013 0 : NS_WARNING("Error constructing actor PWebrtcGlobalParent");
4014 0 : return MsgValueError;
4015 : }
4016 0 : (actor)->SetManager(this);
4017 0 : RegisterID(actor, (handle__).mId);
4018 0 : (actor)->SetIPCChannel(GetIPCChannel());
4019 0 : (mManagedPWebrtcGlobalParent).PutEntry(actor);
4020 0 : (actor)->mState = mozilla::dom::PWebrtcGlobal::__Start;
4021 :
4022 0 : if ((!(RecvPWebrtcGlobalConstructor(mozilla::Move(actor))))) {
4023 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4024 : // Error handled in mozilla::ipc::IPCResult
4025 0 : return MsgProcessingError;
4026 : }
4027 :
4028 0 : return MsgProcessed;
4029 : }
4030 : case PContent::Msg_PPresentationConstructor__ID:
4031 : {
4032 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4033 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4034 : }
4035 0 : AUTO_PROFILER_LABEL("PContent::Msg_PPresentationConstructor", OTHER);
4036 :
4037 0 : PickleIterator iter__(msg__);
4038 : ActorHandle handle__;
4039 : PPresentationParent* actor;
4040 :
4041 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
4042 0 : FatalError("Error deserializing 'ActorHandle'");
4043 0 : return MsgValueError;
4044 : }
4045 : // Sentinel = 'actor'
4046 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4047 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4048 0 : return MsgValueError;
4049 : }
4050 0 : (msg__).EndRead(iter__, (msg__).type());
4051 0 : PContent::Transition(PContent::Msg_PPresentationConstructor__ID, (&(mState)));
4052 0 : actor = AllocPPresentationParent();
4053 0 : if ((!(actor))) {
4054 0 : NS_WARNING("Error constructing actor PPresentationParent");
4055 0 : return MsgValueError;
4056 : }
4057 0 : (actor)->SetManager(this);
4058 0 : RegisterID(actor, (handle__).mId);
4059 0 : (actor)->SetIPCChannel(GetIPCChannel());
4060 0 : (mManagedPPresentationParent).PutEntry(actor);
4061 0 : (actor)->mState = mozilla::dom::PPresentation::__Start;
4062 :
4063 0 : if ((!(RecvPPresentationConstructor(mozilla::Move(actor))))) {
4064 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4065 : // Error handled in mozilla::ipc::IPCResult
4066 0 : return MsgProcessingError;
4067 : }
4068 :
4069 0 : return MsgProcessed;
4070 : }
4071 : case PContent::Msg_PFlyWebPublishedServerConstructor__ID:
4072 : {
4073 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4074 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4075 : }
4076 0 : AUTO_PROFILER_LABEL("PContent::Msg_PFlyWebPublishedServerConstructor", OTHER);
4077 :
4078 0 : PickleIterator iter__(msg__);
4079 : ActorHandle handle__;
4080 : PFlyWebPublishedServerParent* actor;
4081 0 : nsString name;
4082 0 : FlyWebPublishOptions params;
4083 :
4084 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
4085 0 : FatalError("Error deserializing 'ActorHandle'");
4086 0 : return MsgValueError;
4087 : }
4088 : // Sentinel = 'actor'
4089 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4090 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4091 0 : return MsgValueError;
4092 : }
4093 0 : if ((!(Read((&(name)), (&(msg__)), (&(iter__)))))) {
4094 0 : FatalError("Error deserializing 'nsString'");
4095 0 : return MsgValueError;
4096 : }
4097 : // Sentinel = 'name'
4098 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 15034981)))) {
4099 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
4100 0 : return MsgValueError;
4101 : }
4102 0 : if ((!(Read((&(params)), (&(msg__)), (&(iter__)))))) {
4103 0 : FatalError("Error deserializing 'FlyWebPublishOptions'");
4104 0 : return MsgValueError;
4105 : }
4106 : // Sentinel = 'params'
4107 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1677790004)))) {
4108 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FlyWebPublishOptions'");
4109 0 : return MsgValueError;
4110 : }
4111 0 : (msg__).EndRead(iter__, (msg__).type());
4112 0 : PContent::Transition(PContent::Msg_PFlyWebPublishedServerConstructor__ID, (&(mState)));
4113 0 : actor = AllocPFlyWebPublishedServerParent(name, params);
4114 0 : if ((!(actor))) {
4115 0 : NS_WARNING("Error constructing actor PFlyWebPublishedServerParent");
4116 0 : return MsgValueError;
4117 : }
4118 0 : (actor)->SetManager(this);
4119 0 : RegisterID(actor, (handle__).mId);
4120 0 : (actor)->SetIPCChannel(GetIPCChannel());
4121 0 : (mManagedPFlyWebPublishedServerParent).PutEntry(actor);
4122 0 : (actor)->mState = mozilla::dom::PFlyWebPublishedServer::__Start;
4123 :
4124 0 : if ((!(RecvPFlyWebPublishedServerConstructor(mozilla::Move(actor), mozilla::Move(name), mozilla::Move(params))))) {
4125 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4126 : // Error handled in mozilla::ipc::IPCResult
4127 0 : return MsgProcessingError;
4128 : }
4129 :
4130 0 : return MsgProcessed;
4131 : }
4132 : case PContent::Msg_PURLClassifierLocalConstructor__ID:
4133 : {
4134 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4135 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4136 : }
4137 0 : AUTO_PROFILER_LABEL("PContent::Msg_PURLClassifierLocalConstructor", OTHER);
4138 :
4139 0 : PickleIterator iter__(msg__);
4140 : ActorHandle handle__;
4141 : PURLClassifierLocalParent* actor;
4142 0 : URIParams uri;
4143 0 : nsCString tables;
4144 :
4145 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
4146 0 : FatalError("Error deserializing 'ActorHandle'");
4147 0 : return MsgValueError;
4148 : }
4149 : // Sentinel = 'actor'
4150 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4151 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4152 0 : return MsgValueError;
4153 : }
4154 0 : if ((!(Read((&(uri)), (&(msg__)), (&(iter__)))))) {
4155 0 : FatalError("Error deserializing 'URIParams'");
4156 0 : return MsgValueError;
4157 : }
4158 : // Sentinel = 'uri'
4159 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
4160 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
4161 0 : return MsgValueError;
4162 : }
4163 0 : if ((!(Read((&(tables)), (&(msg__)), (&(iter__)))))) {
4164 0 : FatalError("Error deserializing 'nsCString'");
4165 0 : return MsgValueError;
4166 : }
4167 : // Sentinel = 'tables'
4168 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1212380705)))) {
4169 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
4170 0 : return MsgValueError;
4171 : }
4172 0 : (msg__).EndRead(iter__, (msg__).type());
4173 0 : PContent::Transition(PContent::Msg_PURLClassifierLocalConstructor__ID, (&(mState)));
4174 0 : actor = AllocPURLClassifierLocalParent(uri, tables);
4175 0 : if ((!(actor))) {
4176 0 : NS_WARNING("Error constructing actor PURLClassifierLocalParent");
4177 0 : return MsgValueError;
4178 : }
4179 0 : (actor)->SetManager(this);
4180 0 : RegisterID(actor, (handle__).mId);
4181 0 : (actor)->SetIPCChannel(GetIPCChannel());
4182 0 : (mManagedPURLClassifierLocalParent).PutEntry(actor);
4183 0 : (actor)->mState = mozilla::dom::PURLClassifierLocal::__Start;
4184 :
4185 0 : if ((!(RecvPURLClassifierLocalConstructor(mozilla::Move(actor), mozilla::Move(uri), mozilla::Move(tables))))) {
4186 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4187 : // Error handled in mozilla::ipc::IPCResult
4188 0 : return MsgProcessingError;
4189 : }
4190 :
4191 0 : return MsgProcessed;
4192 : }
4193 : case PContent::Msg_StartVisitedQuery__ID:
4194 : {
4195 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4196 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4197 : }
4198 0 : AUTO_PROFILER_LABEL("PContent::Msg_StartVisitedQuery", OTHER);
4199 :
4200 0 : PickleIterator iter__(msg__);
4201 0 : URIParams uri;
4202 :
4203 0 : if ((!(Read((&(uri)), (&(msg__)), (&(iter__)))))) {
4204 0 : FatalError("Error deserializing 'URIParams'");
4205 0 : return MsgValueError;
4206 : }
4207 : // Sentinel = 'uri'
4208 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
4209 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
4210 0 : return MsgValueError;
4211 : }
4212 0 : (msg__).EndRead(iter__, (msg__).type());
4213 0 : PContent::Transition(PContent::Msg_StartVisitedQuery__ID, (&(mState)));
4214 0 : if ((!(RecvStartVisitedQuery(mozilla::Move(uri))))) {
4215 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4216 : // Error handled in mozilla::ipc::IPCResult
4217 0 : return MsgProcessingError;
4218 : }
4219 :
4220 0 : return MsgProcessed;
4221 : }
4222 : case PContent::Msg_VisitURI__ID:
4223 : {
4224 1 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4225 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4226 : }
4227 2 : AUTO_PROFILER_LABEL("PContent::Msg_VisitURI", OTHER);
4228 :
4229 1 : PickleIterator iter__(msg__);
4230 2 : URIParams uri;
4231 2 : OptionalURIParams referrer;
4232 : uint32_t flags;
4233 :
4234 1 : if ((!(Read((&(uri)), (&(msg__)), (&(iter__)))))) {
4235 0 : FatalError("Error deserializing 'URIParams'");
4236 0 : return MsgValueError;
4237 : }
4238 : // Sentinel = 'uri'
4239 1 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
4240 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
4241 0 : return MsgValueError;
4242 : }
4243 1 : if ((!(Read((&(referrer)), (&(msg__)), (&(iter__)))))) {
4244 0 : FatalError("Error deserializing 'OptionalURIParams'");
4245 0 : return MsgValueError;
4246 : }
4247 : // Sentinel = 'referrer'
4248 1 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3770987113)))) {
4249 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
4250 0 : return MsgValueError;
4251 : }
4252 1 : if ((!(Read((&(flags)), (&(msg__)), (&(iter__)))))) {
4253 0 : FatalError("Error deserializing 'uint32_t'");
4254 0 : return MsgValueError;
4255 : }
4256 : // Sentinel = 'flags'
4257 1 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2550519284)))) {
4258 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
4259 0 : return MsgValueError;
4260 : }
4261 1 : (msg__).EndRead(iter__, (msg__).type());
4262 1 : PContent::Transition(PContent::Msg_VisitURI__ID, (&(mState)));
4263 1 : if ((!(RecvVisitURI(mozilla::Move(uri), mozilla::Move(referrer), mozilla::Move(flags))))) {
4264 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4265 : // Error handled in mozilla::ipc::IPCResult
4266 0 : return MsgProcessingError;
4267 : }
4268 :
4269 1 : return MsgProcessed;
4270 : }
4271 : case PContent::Msg_SetURITitle__ID:
4272 : {
4273 1 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4274 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4275 : }
4276 2 : AUTO_PROFILER_LABEL("PContent::Msg_SetURITitle", OTHER);
4277 :
4278 1 : PickleIterator iter__(msg__);
4279 2 : URIParams uri;
4280 2 : nsString title;
4281 :
4282 1 : if ((!(Read((&(uri)), (&(msg__)), (&(iter__)))))) {
4283 0 : FatalError("Error deserializing 'URIParams'");
4284 0 : return MsgValueError;
4285 : }
4286 : // Sentinel = 'uri'
4287 1 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
4288 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
4289 0 : return MsgValueError;
4290 : }
4291 1 : if ((!(Read((&(title)), (&(msg__)), (&(iter__)))))) {
4292 0 : FatalError("Error deserializing 'nsString'");
4293 0 : return MsgValueError;
4294 : }
4295 : // Sentinel = 'title'
4296 1 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4272139303)))) {
4297 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
4298 0 : return MsgValueError;
4299 : }
4300 1 : (msg__).EndRead(iter__, (msg__).type());
4301 1 : PContent::Transition(PContent::Msg_SetURITitle__ID, (&(mState)));
4302 1 : if ((!(RecvSetURITitle(mozilla::Move(uri), mozilla::Move(title))))) {
4303 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4304 : // Error handled in mozilla::ipc::IPCResult
4305 0 : return MsgProcessingError;
4306 : }
4307 :
4308 1 : return MsgProcessed;
4309 : }
4310 : case PContent::Msg_LoadURIExternal__ID:
4311 : {
4312 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4313 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4314 : }
4315 0 : AUTO_PROFILER_LABEL("PContent::Msg_LoadURIExternal", OTHER);
4316 :
4317 0 : PickleIterator iter__(msg__);
4318 0 : URIParams uri;
4319 : PBrowserParent* windowContext;
4320 :
4321 0 : if ((!(Read((&(uri)), (&(msg__)), (&(iter__)))))) {
4322 0 : FatalError("Error deserializing 'URIParams'");
4323 0 : return MsgValueError;
4324 : }
4325 : // Sentinel = 'uri'
4326 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
4327 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
4328 0 : return MsgValueError;
4329 : }
4330 0 : if ((!(Read((&(windowContext)), (&(msg__)), (&(iter__)), false)))) {
4331 0 : FatalError("Error deserializing 'PBrowserParent'");
4332 0 : return MsgValueError;
4333 : }
4334 : // Sentinel = 'windowContext'
4335 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3429612728)))) {
4336 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserParent'");
4337 0 : return MsgValueError;
4338 : }
4339 0 : (msg__).EndRead(iter__, (msg__).type());
4340 0 : PContent::Transition(PContent::Msg_LoadURIExternal__ID, (&(mState)));
4341 0 : if ((!(RecvLoadURIExternal(mozilla::Move(uri), mozilla::Move(windowContext))))) {
4342 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4343 : // Error handled in mozilla::ipc::IPCResult
4344 0 : return MsgProcessingError;
4345 : }
4346 :
4347 0 : return MsgProcessed;
4348 : }
4349 : case PContent::Msg_ExtProtocolChannelConnectParent__ID:
4350 : {
4351 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4352 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4353 : }
4354 0 : AUTO_PROFILER_LABEL("PContent::Msg_ExtProtocolChannelConnectParent", OTHER);
4355 :
4356 0 : PickleIterator iter__(msg__);
4357 : uint32_t registrarId;
4358 :
4359 0 : if ((!(Read((&(registrarId)), (&(msg__)), (&(iter__)))))) {
4360 0 : FatalError("Error deserializing 'uint32_t'");
4361 0 : return MsgValueError;
4362 : }
4363 : // Sentinel = 'registrarId'
4364 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3202787989)))) {
4365 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
4366 0 : return MsgValueError;
4367 : }
4368 0 : (msg__).EndRead(iter__, (msg__).type());
4369 0 : PContent::Transition(PContent::Msg_ExtProtocolChannelConnectParent__ID, (&(mState)));
4370 0 : if ((!(RecvExtProtocolChannelConnectParent(mozilla::Move(registrarId))))) {
4371 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4372 : // Error handled in mozilla::ipc::IPCResult
4373 0 : return MsgProcessingError;
4374 : }
4375 :
4376 0 : return MsgProcessed;
4377 : }
4378 : case PContent::Msg_ShowAlert__ID:
4379 : {
4380 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4381 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4382 : }
4383 0 : AUTO_PROFILER_LABEL("PContent::Msg_ShowAlert", OTHER);
4384 :
4385 0 : PickleIterator iter__(msg__);
4386 : AlertNotificationType alert;
4387 :
4388 0 : if ((!(Read((&(alert)), (&(msg__)), (&(iter__)))))) {
4389 0 : FatalError("Error deserializing 'AlertNotificationType'");
4390 0 : return MsgValueError;
4391 : }
4392 : // Sentinel = 'alert'
4393 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3087341007)))) {
4394 0 : mozilla::ipc::SentinelReadError("Error deserializing 'AlertNotificationType'");
4395 0 : return MsgValueError;
4396 : }
4397 0 : (msg__).EndRead(iter__, (msg__).type());
4398 0 : PContent::Transition(PContent::Msg_ShowAlert__ID, (&(mState)));
4399 0 : if ((!(RecvShowAlert(mozilla::Move(alert))))) {
4400 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4401 : // Error handled in mozilla::ipc::IPCResult
4402 0 : return MsgProcessingError;
4403 : }
4404 :
4405 0 : return MsgProcessed;
4406 : }
4407 : case PContent::Msg_CloseAlert__ID:
4408 : {
4409 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4410 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4411 : }
4412 0 : AUTO_PROFILER_LABEL("PContent::Msg_CloseAlert", OTHER);
4413 :
4414 0 : PickleIterator iter__(msg__);
4415 0 : nsString name;
4416 0 : Principal principal;
4417 :
4418 0 : if ((!(Read((&(name)), (&(msg__)), (&(iter__)))))) {
4419 0 : FatalError("Error deserializing 'nsString'");
4420 0 : return MsgValueError;
4421 : }
4422 : // Sentinel = 'name'
4423 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 15034981)))) {
4424 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
4425 0 : return MsgValueError;
4426 : }
4427 0 : if ((!(Read((&(principal)), (&(msg__)), (&(iter__)))))) {
4428 0 : FatalError("Error deserializing 'Principal'");
4429 0 : return MsgValueError;
4430 : }
4431 : // Sentinel = 'principal'
4432 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
4433 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
4434 0 : return MsgValueError;
4435 : }
4436 0 : (msg__).EndRead(iter__, (msg__).type());
4437 0 : PContent::Transition(PContent::Msg_CloseAlert__ID, (&(mState)));
4438 0 : if ((!(RecvCloseAlert(mozilla::Move(name), mozilla::Move(principal))))) {
4439 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4440 : // Error handled in mozilla::ipc::IPCResult
4441 0 : return MsgProcessingError;
4442 : }
4443 :
4444 0 : return MsgProcessed;
4445 : }
4446 : case PContent::Msg_DisableNotifications__ID:
4447 : {
4448 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4449 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4450 : }
4451 0 : AUTO_PROFILER_LABEL("PContent::Msg_DisableNotifications", OTHER);
4452 :
4453 0 : PickleIterator iter__(msg__);
4454 0 : Principal principal;
4455 :
4456 0 : if ((!(Read((&(principal)), (&(msg__)), (&(iter__)))))) {
4457 0 : FatalError("Error deserializing 'Principal'");
4458 0 : return MsgValueError;
4459 : }
4460 : // Sentinel = 'principal'
4461 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
4462 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
4463 0 : return MsgValueError;
4464 : }
4465 0 : (msg__).EndRead(iter__, (msg__).type());
4466 0 : PContent::Transition(PContent::Msg_DisableNotifications__ID, (&(mState)));
4467 0 : if ((!(RecvDisableNotifications(mozilla::Move(principal))))) {
4468 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4469 : // Error handled in mozilla::ipc::IPCResult
4470 0 : return MsgProcessingError;
4471 : }
4472 :
4473 0 : return MsgProcessed;
4474 : }
4475 : case PContent::Msg_OpenNotificationSettings__ID:
4476 : {
4477 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4478 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4479 : }
4480 0 : AUTO_PROFILER_LABEL("PContent::Msg_OpenNotificationSettings", OTHER);
4481 :
4482 0 : PickleIterator iter__(msg__);
4483 0 : Principal principal;
4484 :
4485 0 : if ((!(Read((&(principal)), (&(msg__)), (&(iter__)))))) {
4486 0 : FatalError("Error deserializing 'Principal'");
4487 0 : return MsgValueError;
4488 : }
4489 : // Sentinel = 'principal'
4490 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
4491 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
4492 0 : return MsgValueError;
4493 : }
4494 0 : (msg__).EndRead(iter__, (msg__).type());
4495 0 : PContent::Transition(PContent::Msg_OpenNotificationSettings__ID, (&(mState)));
4496 0 : if ((!(RecvOpenNotificationSettings(mozilla::Move(principal))))) {
4497 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4498 : // Error handled in mozilla::ipc::IPCResult
4499 0 : return MsgProcessingError;
4500 : }
4501 :
4502 0 : return MsgProcessed;
4503 : }
4504 : case PContent::Msg_PPSMContentDownloaderConstructor__ID:
4505 : {
4506 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4507 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4508 : }
4509 0 : AUTO_PROFILER_LABEL("PContent::Msg_PPSMContentDownloaderConstructor", OTHER);
4510 :
4511 0 : PickleIterator iter__(msg__);
4512 : ActorHandle handle__;
4513 : PPSMContentDownloaderParent* actor;
4514 : uint32_t aCertType;
4515 :
4516 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
4517 0 : FatalError("Error deserializing 'ActorHandle'");
4518 0 : return MsgValueError;
4519 : }
4520 : // Sentinel = 'actor'
4521 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4522 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4523 0 : return MsgValueError;
4524 : }
4525 0 : if ((!(Read((&(aCertType)), (&(msg__)), (&(iter__)))))) {
4526 0 : FatalError("Error deserializing 'uint32_t'");
4527 0 : return MsgValueError;
4528 : }
4529 : // Sentinel = 'aCertType'
4530 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 919891650)))) {
4531 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
4532 0 : return MsgValueError;
4533 : }
4534 0 : (msg__).EndRead(iter__, (msg__).type());
4535 0 : PContent::Transition(PContent::Msg_PPSMContentDownloaderConstructor__ID, (&(mState)));
4536 0 : actor = AllocPPSMContentDownloaderParent(aCertType);
4537 0 : if ((!(actor))) {
4538 0 : NS_WARNING("Error constructing actor PPSMContentDownloaderParent");
4539 0 : return MsgValueError;
4540 : }
4541 0 : (actor)->SetManager(this);
4542 0 : RegisterID(actor, (handle__).mId);
4543 0 : (actor)->SetIPCChannel(GetIPCChannel());
4544 0 : (mManagedPPSMContentDownloaderParent).PutEntry(actor);
4545 0 : (actor)->mState = mozilla::psm::PPSMContentDownloader::__Start;
4546 :
4547 0 : if ((!(RecvPPSMContentDownloaderConstructor(mozilla::Move(actor), mozilla::Move(aCertType))))) {
4548 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4549 : // Error handled in mozilla::ipc::IPCResult
4550 0 : return MsgProcessingError;
4551 : }
4552 :
4553 0 : return MsgProcessed;
4554 : }
4555 : case PContent::Msg_PExternalHelperAppConstructor__ID:
4556 : {
4557 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4558 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4559 : }
4560 0 : AUTO_PROFILER_LABEL("PContent::Msg_PExternalHelperAppConstructor", OTHER);
4561 :
4562 0 : PickleIterator iter__(msg__);
4563 : ActorHandle handle__;
4564 : PExternalHelperAppParent* actor;
4565 0 : OptionalURIParams uri;
4566 0 : nsCString aMimeContentType;
4567 0 : nsCString aContentDisposition;
4568 : uint32_t aContentDispositionHint;
4569 0 : nsString aContentDispositionFilename;
4570 : bool aForceSave;
4571 : int64_t aContentLength;
4572 : bool aWasFileChannel;
4573 0 : OptionalURIParams aReferrer;
4574 : PBrowserParent* aBrowser;
4575 :
4576 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
4577 0 : FatalError("Error deserializing 'ActorHandle'");
4578 0 : return MsgValueError;
4579 : }
4580 : // Sentinel = 'actor'
4581 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4582 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4583 0 : return MsgValueError;
4584 : }
4585 0 : if ((!(Read((&(uri)), (&(msg__)), (&(iter__)))))) {
4586 0 : FatalError("Error deserializing 'OptionalURIParams'");
4587 0 : return MsgValueError;
4588 : }
4589 : // Sentinel = 'uri'
4590 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
4591 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
4592 0 : return MsgValueError;
4593 : }
4594 0 : if ((!(Read((&(aMimeContentType)), (&(msg__)), (&(iter__)))))) {
4595 0 : FatalError("Error deserializing 'nsCString'");
4596 0 : return MsgValueError;
4597 : }
4598 : // Sentinel = 'aMimeContentType'
4599 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1001170972)))) {
4600 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
4601 0 : return MsgValueError;
4602 : }
4603 0 : if ((!(Read((&(aContentDisposition)), (&(msg__)), (&(iter__)))))) {
4604 0 : FatalError("Error deserializing 'nsCString'");
4605 0 : return MsgValueError;
4606 : }
4607 : // Sentinel = 'aContentDisposition'
4608 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2499070154)))) {
4609 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
4610 0 : return MsgValueError;
4611 : }
4612 0 : if ((!(Read((&(aContentDispositionHint)), (&(msg__)), (&(iter__)))))) {
4613 0 : FatalError("Error deserializing 'uint32_t'");
4614 0 : return MsgValueError;
4615 : }
4616 : // Sentinel = 'aContentDispositionHint'
4617 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4044281289)))) {
4618 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
4619 0 : return MsgValueError;
4620 : }
4621 0 : if ((!(Read((&(aContentDispositionFilename)), (&(msg__)), (&(iter__)))))) {
4622 0 : FatalError("Error deserializing 'nsString'");
4623 0 : return MsgValueError;
4624 : }
4625 : // Sentinel = 'aContentDispositionFilename'
4626 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3976510585)))) {
4627 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
4628 0 : return MsgValueError;
4629 : }
4630 0 : if ((!(Read((&(aForceSave)), (&(msg__)), (&(iter__)))))) {
4631 0 : FatalError("Error deserializing 'bool'");
4632 0 : return MsgValueError;
4633 : }
4634 : // Sentinel = 'aForceSave'
4635 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1729926259)))) {
4636 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
4637 0 : return MsgValueError;
4638 : }
4639 0 : if ((!(Read((&(aContentLength)), (&(msg__)), (&(iter__)))))) {
4640 0 : FatalError("Error deserializing 'int64_t'");
4641 0 : return MsgValueError;
4642 : }
4643 : // Sentinel = 'aContentLength'
4644 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 773059686)))) {
4645 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int64_t'");
4646 0 : return MsgValueError;
4647 : }
4648 0 : if ((!(Read((&(aWasFileChannel)), (&(msg__)), (&(iter__)))))) {
4649 0 : FatalError("Error deserializing 'bool'");
4650 0 : return MsgValueError;
4651 : }
4652 : // Sentinel = 'aWasFileChannel'
4653 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2398731776)))) {
4654 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
4655 0 : return MsgValueError;
4656 : }
4657 0 : if ((!(Read((&(aReferrer)), (&(msg__)), (&(iter__)))))) {
4658 0 : FatalError("Error deserializing 'OptionalURIParams'");
4659 0 : return MsgValueError;
4660 : }
4661 : // Sentinel = 'aReferrer'
4662 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1461587361)))) {
4663 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
4664 0 : return MsgValueError;
4665 : }
4666 0 : if ((!(Read((&(aBrowser)), (&(msg__)), (&(iter__)), true)))) {
4667 0 : FatalError("Error deserializing 'PBrowserParent'");
4668 0 : return MsgValueError;
4669 : }
4670 : // Sentinel = 'aBrowser'
4671 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3086016059)))) {
4672 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserParent'");
4673 0 : return MsgValueError;
4674 : }
4675 0 : (msg__).EndRead(iter__, (msg__).type());
4676 0 : PContent::Transition(PContent::Msg_PExternalHelperAppConstructor__ID, (&(mState)));
4677 0 : actor = AllocPExternalHelperAppParent(uri, aMimeContentType, aContentDisposition, aContentDispositionHint, aContentDispositionFilename, aForceSave, aContentLength, aWasFileChannel, aReferrer, aBrowser);
4678 0 : if ((!(actor))) {
4679 0 : NS_WARNING("Error constructing actor PExternalHelperAppParent");
4680 0 : return MsgValueError;
4681 : }
4682 0 : (actor)->SetManager(this);
4683 0 : RegisterID(actor, (handle__).mId);
4684 0 : (actor)->SetIPCChannel(GetIPCChannel());
4685 0 : (mManagedPExternalHelperAppParent).PutEntry(actor);
4686 0 : (actor)->mState = mozilla::dom::PExternalHelperApp::__Start;
4687 :
4688 0 : if ((!(RecvPExternalHelperAppConstructor(mozilla::Move(actor), mozilla::Move(uri), mozilla::Move(aMimeContentType), mozilla::Move(aContentDisposition), mozilla::Move(aContentDispositionHint), mozilla::Move(aContentDispositionFilename), mozilla::Move(aForceSave), mozilla::Move(aContentLength), mozilla::Move(aWasFileChannel), mozilla::Move(aReferrer), mozilla::Move(aBrowser))))) {
4689 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4690 : // Error handled in mozilla::ipc::IPCResult
4691 0 : return MsgProcessingError;
4692 : }
4693 :
4694 0 : return MsgProcessed;
4695 : }
4696 : case PContent::Msg_PHandlerServiceConstructor__ID:
4697 : {
4698 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4699 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4700 : }
4701 0 : AUTO_PROFILER_LABEL("PContent::Msg_PHandlerServiceConstructor", OTHER);
4702 :
4703 0 : PickleIterator iter__(msg__);
4704 : ActorHandle handle__;
4705 : PHandlerServiceParent* actor;
4706 :
4707 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
4708 0 : FatalError("Error deserializing 'ActorHandle'");
4709 0 : return MsgValueError;
4710 : }
4711 : // Sentinel = 'actor'
4712 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4713 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4714 0 : return MsgValueError;
4715 : }
4716 0 : (msg__).EndRead(iter__, (msg__).type());
4717 0 : PContent::Transition(PContent::Msg_PHandlerServiceConstructor__ID, (&(mState)));
4718 0 : actor = AllocPHandlerServiceParent();
4719 0 : if ((!(actor))) {
4720 0 : NS_WARNING("Error constructing actor PHandlerServiceParent");
4721 0 : return MsgValueError;
4722 : }
4723 0 : (actor)->SetManager(this);
4724 0 : RegisterID(actor, (handle__).mId);
4725 0 : (actor)->SetIPCChannel(GetIPCChannel());
4726 0 : (mManagedPHandlerServiceParent).PutEntry(actor);
4727 0 : (actor)->mState = mozilla::dom::PHandlerService::__Start;
4728 :
4729 0 : if ((!(RecvPHandlerServiceConstructor(mozilla::Move(actor))))) {
4730 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4731 : // Error handled in mozilla::ipc::IPCResult
4732 0 : return MsgProcessingError;
4733 : }
4734 :
4735 0 : return MsgProcessed;
4736 : }
4737 : case PContent::Msg_AddGeolocationListener__ID:
4738 : {
4739 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4740 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4741 : }
4742 0 : AUTO_PROFILER_LABEL("PContent::Msg_AddGeolocationListener", OTHER);
4743 :
4744 0 : PickleIterator iter__(msg__);
4745 0 : Principal principal;
4746 : bool highAccuracy;
4747 :
4748 0 : if ((!(Read((&(principal)), (&(msg__)), (&(iter__)))))) {
4749 0 : FatalError("Error deserializing 'Principal'");
4750 0 : return MsgValueError;
4751 : }
4752 : // Sentinel = 'principal'
4753 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
4754 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
4755 0 : return MsgValueError;
4756 : }
4757 0 : if ((!(Read((&(highAccuracy)), (&(msg__)), (&(iter__)))))) {
4758 0 : FatalError("Error deserializing 'bool'");
4759 0 : return MsgValueError;
4760 : }
4761 : // Sentinel = 'highAccuracy'
4762 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 369486639)))) {
4763 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
4764 0 : return MsgValueError;
4765 : }
4766 0 : (msg__).EndRead(iter__, (msg__).type());
4767 0 : PContent::Transition(PContent::Msg_AddGeolocationListener__ID, (&(mState)));
4768 0 : if ((!(RecvAddGeolocationListener(mozilla::Move(principal), mozilla::Move(highAccuracy))))) {
4769 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4770 : // Error handled in mozilla::ipc::IPCResult
4771 0 : return MsgProcessingError;
4772 : }
4773 :
4774 0 : return MsgProcessed;
4775 : }
4776 : case PContent::Msg_RemoveGeolocationListener__ID:
4777 : {
4778 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4779 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4780 : }
4781 0 : AUTO_PROFILER_LABEL("PContent::Msg_RemoveGeolocationListener", OTHER);
4782 :
4783 0 : PContent::Transition(PContent::Msg_RemoveGeolocationListener__ID, (&(mState)));
4784 0 : if ((!(RecvRemoveGeolocationListener()))) {
4785 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4786 : // Error handled in mozilla::ipc::IPCResult
4787 0 : return MsgProcessingError;
4788 : }
4789 :
4790 0 : return MsgProcessed;
4791 : }
4792 : case PContent::Msg_SetGeolocationHigherAccuracy__ID:
4793 : {
4794 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4795 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4796 : }
4797 0 : AUTO_PROFILER_LABEL("PContent::Msg_SetGeolocationHigherAccuracy", OTHER);
4798 :
4799 0 : PickleIterator iter__(msg__);
4800 : bool enable;
4801 :
4802 0 : if ((!(Read((&(enable)), (&(msg__)), (&(iter__)))))) {
4803 0 : FatalError("Error deserializing 'bool'");
4804 0 : return MsgValueError;
4805 : }
4806 : // Sentinel = 'enable'
4807 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 399314243)))) {
4808 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
4809 0 : return MsgValueError;
4810 : }
4811 0 : (msg__).EndRead(iter__, (msg__).type());
4812 0 : PContent::Transition(PContent::Msg_SetGeolocationHigherAccuracy__ID, (&(mState)));
4813 0 : if ((!(RecvSetGeolocationHigherAccuracy(mozilla::Move(enable))))) {
4814 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4815 : // Error handled in mozilla::ipc::IPCResult
4816 0 : return MsgProcessingError;
4817 : }
4818 :
4819 0 : return MsgProcessed;
4820 : }
4821 : case PContent::Msg_ConsoleMessage__ID:
4822 : {
4823 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4824 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4825 : }
4826 0 : AUTO_PROFILER_LABEL("PContent::Msg_ConsoleMessage", OTHER);
4827 :
4828 0 : PickleIterator iter__(msg__);
4829 0 : nsString message;
4830 :
4831 0 : if ((!(Read((&(message)), (&(msg__)), (&(iter__)))))) {
4832 0 : FatalError("Error deserializing 'nsString'");
4833 0 : return MsgValueError;
4834 : }
4835 : // Sentinel = 'message'
4836 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1366108954)))) {
4837 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
4838 0 : return MsgValueError;
4839 : }
4840 0 : (msg__).EndRead(iter__, (msg__).type());
4841 0 : PContent::Transition(PContent::Msg_ConsoleMessage__ID, (&(mState)));
4842 0 : if ((!(RecvConsoleMessage(mozilla::Move(message))))) {
4843 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4844 : // Error handled in mozilla::ipc::IPCResult
4845 0 : return MsgProcessingError;
4846 : }
4847 :
4848 0 : return MsgProcessed;
4849 : }
4850 : case PContent::Msg_ScriptError__ID:
4851 : {
4852 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4853 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4854 : }
4855 0 : AUTO_PROFILER_LABEL("PContent::Msg_ScriptError", OTHER);
4856 :
4857 0 : PickleIterator iter__(msg__);
4858 0 : nsString message;
4859 0 : nsString sourceName;
4860 0 : nsString sourceLine;
4861 : uint32_t lineNumber;
4862 : uint32_t colNumber;
4863 : uint32_t flags;
4864 0 : nsCString category;
4865 :
4866 0 : if ((!(Read((&(message)), (&(msg__)), (&(iter__)))))) {
4867 0 : FatalError("Error deserializing 'nsString'");
4868 0 : return MsgValueError;
4869 : }
4870 : // Sentinel = 'message'
4871 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1366108954)))) {
4872 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
4873 0 : return MsgValueError;
4874 : }
4875 0 : if ((!(Read((&(sourceName)), (&(msg__)), (&(iter__)))))) {
4876 0 : FatalError("Error deserializing 'nsString'");
4877 0 : return MsgValueError;
4878 : }
4879 : // Sentinel = 'sourceName'
4880 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 725837832)))) {
4881 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
4882 0 : return MsgValueError;
4883 : }
4884 0 : if ((!(Read((&(sourceLine)), (&(msg__)), (&(iter__)))))) {
4885 0 : FatalError("Error deserializing 'nsString'");
4886 0 : return MsgValueError;
4887 : }
4888 : // Sentinel = 'sourceLine'
4889 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2099440551)))) {
4890 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
4891 0 : return MsgValueError;
4892 : }
4893 0 : if ((!(Read((&(lineNumber)), (&(msg__)), (&(iter__)))))) {
4894 0 : FatalError("Error deserializing 'uint32_t'");
4895 0 : return MsgValueError;
4896 : }
4897 : // Sentinel = 'lineNumber'
4898 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1005376855)))) {
4899 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
4900 0 : return MsgValueError;
4901 : }
4902 0 : if ((!(Read((&(colNumber)), (&(msg__)), (&(iter__)))))) {
4903 0 : FatalError("Error deserializing 'uint32_t'");
4904 0 : return MsgValueError;
4905 : }
4906 : // Sentinel = 'colNumber'
4907 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1714268980)))) {
4908 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
4909 0 : return MsgValueError;
4910 : }
4911 0 : if ((!(Read((&(flags)), (&(msg__)), (&(iter__)))))) {
4912 0 : FatalError("Error deserializing 'uint32_t'");
4913 0 : return MsgValueError;
4914 : }
4915 : // Sentinel = 'flags'
4916 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2550519284)))) {
4917 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
4918 0 : return MsgValueError;
4919 : }
4920 0 : if ((!(Read((&(category)), (&(msg__)), (&(iter__)))))) {
4921 0 : FatalError("Error deserializing 'nsCString'");
4922 0 : return MsgValueError;
4923 : }
4924 : // Sentinel = 'category'
4925 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1962932896)))) {
4926 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
4927 0 : return MsgValueError;
4928 : }
4929 0 : (msg__).EndRead(iter__, (msg__).type());
4930 0 : PContent::Transition(PContent::Msg_ScriptError__ID, (&(mState)));
4931 0 : if ((!(RecvScriptError(mozilla::Move(message), mozilla::Move(sourceName), mozilla::Move(sourceLine), mozilla::Move(lineNumber), mozilla::Move(colNumber), mozilla::Move(flags), mozilla::Move(category))))) {
4932 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4933 : // Error handled in mozilla::ipc::IPCResult
4934 0 : return MsgProcessingError;
4935 : }
4936 :
4937 0 : return MsgProcessed;
4938 : }
4939 : case PContent::Msg_SetClipboard__ID:
4940 : {
4941 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4942 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4943 : }
4944 0 : AUTO_PROFILER_LABEL("PContent::Msg_SetClipboard", OTHER);
4945 :
4946 0 : PickleIterator iter__(msg__);
4947 0 : IPCDataTransfer aDataTransfer;
4948 : bool aIsPrivateData;
4949 0 : Principal aRequestingPrincipal;
4950 : int32_t aWhichClipboard;
4951 :
4952 0 : if ((!(Read((&(aDataTransfer)), (&(msg__)), (&(iter__)))))) {
4953 0 : FatalError("Error deserializing 'IPCDataTransfer'");
4954 0 : return MsgValueError;
4955 : }
4956 : // Sentinel = 'aDataTransfer'
4957 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 234514541)))) {
4958 0 : mozilla::ipc::SentinelReadError("Error deserializing 'IPCDataTransfer'");
4959 0 : return MsgValueError;
4960 : }
4961 0 : if ((!(Read((&(aIsPrivateData)), (&(msg__)), (&(iter__)))))) {
4962 0 : FatalError("Error deserializing 'bool'");
4963 0 : return MsgValueError;
4964 : }
4965 : // Sentinel = 'aIsPrivateData'
4966 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1857969960)))) {
4967 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
4968 0 : return MsgValueError;
4969 : }
4970 0 : if ((!(Read((&(aRequestingPrincipal)), (&(msg__)), (&(iter__)))))) {
4971 0 : FatalError("Error deserializing 'Principal'");
4972 0 : return MsgValueError;
4973 : }
4974 : // Sentinel = 'aRequestingPrincipal'
4975 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2772545910)))) {
4976 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
4977 0 : return MsgValueError;
4978 : }
4979 0 : if ((!(Read((&(aWhichClipboard)), (&(msg__)), (&(iter__)))))) {
4980 0 : FatalError("Error deserializing 'int32_t'");
4981 0 : return MsgValueError;
4982 : }
4983 : // Sentinel = 'aWhichClipboard'
4984 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4216338969)))) {
4985 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
4986 0 : return MsgValueError;
4987 : }
4988 0 : (msg__).EndRead(iter__, (msg__).type());
4989 0 : PContent::Transition(PContent::Msg_SetClipboard__ID, (&(mState)));
4990 0 : if ((!(RecvSetClipboard(mozilla::Move(aDataTransfer), mozilla::Move(aIsPrivateData), mozilla::Move(aRequestingPrincipal), mozilla::Move(aWhichClipboard))))) {
4991 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4992 : // Error handled in mozilla::ipc::IPCResult
4993 0 : return MsgProcessingError;
4994 : }
4995 :
4996 0 : return MsgProcessed;
4997 : }
4998 : case PContent::Msg_EmptyClipboard__ID:
4999 : {
5000 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5001 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5002 : }
5003 0 : AUTO_PROFILER_LABEL("PContent::Msg_EmptyClipboard", OTHER);
5004 :
5005 0 : PickleIterator iter__(msg__);
5006 : int32_t aWhichClipboard;
5007 :
5008 0 : if ((!(Read((&(aWhichClipboard)), (&(msg__)), (&(iter__)))))) {
5009 0 : FatalError("Error deserializing 'int32_t'");
5010 0 : return MsgValueError;
5011 : }
5012 : // Sentinel = 'aWhichClipboard'
5013 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4216338969)))) {
5014 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
5015 0 : return MsgValueError;
5016 : }
5017 0 : (msg__).EndRead(iter__, (msg__).type());
5018 0 : PContent::Transition(PContent::Msg_EmptyClipboard__ID, (&(mState)));
5019 0 : if ((!(RecvEmptyClipboard(mozilla::Move(aWhichClipboard))))) {
5020 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5021 : // Error handled in mozilla::ipc::IPCResult
5022 0 : return MsgProcessingError;
5023 : }
5024 :
5025 0 : return MsgProcessed;
5026 : }
5027 : case PContent::Msg_PrivateDocShellsExist__ID:
5028 : {
5029 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5030 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5031 : }
5032 0 : AUTO_PROFILER_LABEL("PContent::Msg_PrivateDocShellsExist", OTHER);
5033 :
5034 0 : PickleIterator iter__(msg__);
5035 : bool aExist;
5036 :
5037 0 : if ((!(Read((&(aExist)), (&(msg__)), (&(iter__)))))) {
5038 0 : FatalError("Error deserializing 'bool'");
5039 0 : return MsgValueError;
5040 : }
5041 : // Sentinel = 'aExist'
5042 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1481080944)))) {
5043 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5044 0 : return MsgValueError;
5045 : }
5046 0 : (msg__).EndRead(iter__, (msg__).type());
5047 0 : PContent::Transition(PContent::Msg_PrivateDocShellsExist__ID, (&(mState)));
5048 0 : if ((!(RecvPrivateDocShellsExist(mozilla::Move(aExist))))) {
5049 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5050 : // Error handled in mozilla::ipc::IPCResult
5051 0 : return MsgProcessingError;
5052 : }
5053 :
5054 0 : return MsgProcessed;
5055 : }
5056 : case PContent::Msg_FirstIdle__ID:
5057 : {
5058 1 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5059 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5060 : }
5061 2 : AUTO_PROFILER_LABEL("PContent::Msg_FirstIdle", OTHER);
5062 :
5063 1 : PContent::Transition(PContent::Msg_FirstIdle__ID, (&(mState)));
5064 1 : if ((!(RecvFirstIdle()))) {
5065 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5066 : // Error handled in mozilla::ipc::IPCResult
5067 0 : return MsgProcessingError;
5068 : }
5069 :
5070 1 : return MsgProcessed;
5071 : }
5072 : case PContent::Msg_DeviceReset__ID:
5073 : {
5074 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5075 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5076 : }
5077 0 : AUTO_PROFILER_LABEL("PContent::Msg_DeviceReset", OTHER);
5078 :
5079 0 : PContent::Transition(PContent::Msg_DeviceReset__ID, (&(mState)));
5080 0 : if ((!(RecvDeviceReset()))) {
5081 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5082 : // Error handled in mozilla::ipc::IPCResult
5083 0 : return MsgProcessingError;
5084 : }
5085 :
5086 0 : return MsgProcessed;
5087 : }
5088 : case PContent::Msg_CopyFavicon__ID:
5089 : {
5090 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5091 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5092 : }
5093 0 : AUTO_PROFILER_LABEL("PContent::Msg_CopyFavicon", OTHER);
5094 :
5095 0 : PickleIterator iter__(msg__);
5096 0 : URIParams oldURI;
5097 0 : URIParams newURI;
5098 0 : Principal aLoadingPrincipal;
5099 : bool isPrivate;
5100 :
5101 0 : if ((!(Read((&(oldURI)), (&(msg__)), (&(iter__)))))) {
5102 0 : FatalError("Error deserializing 'URIParams'");
5103 0 : return MsgValueError;
5104 : }
5105 : // Sentinel = 'oldURI'
5106 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 90428473)))) {
5107 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
5108 0 : return MsgValueError;
5109 : }
5110 0 : if ((!(Read((&(newURI)), (&(msg__)), (&(iter__)))))) {
5111 0 : FatalError("Error deserializing 'URIParams'");
5112 0 : return MsgValueError;
5113 : }
5114 : // Sentinel = 'newURI'
5115 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1179970086)))) {
5116 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
5117 0 : return MsgValueError;
5118 : }
5119 0 : if ((!(Read((&(aLoadingPrincipal)), (&(msg__)), (&(iter__)))))) {
5120 0 : FatalError("Error deserializing 'Principal'");
5121 0 : return MsgValueError;
5122 : }
5123 : // Sentinel = 'aLoadingPrincipal'
5124 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4178989650)))) {
5125 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
5126 0 : return MsgValueError;
5127 : }
5128 0 : if ((!(Read((&(isPrivate)), (&(msg__)), (&(iter__)))))) {
5129 0 : FatalError("Error deserializing 'bool'");
5130 0 : return MsgValueError;
5131 : }
5132 : // Sentinel = 'isPrivate'
5133 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4033294520)))) {
5134 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5135 0 : return MsgValueError;
5136 : }
5137 0 : (msg__).EndRead(iter__, (msg__).type());
5138 0 : PContent::Transition(PContent::Msg_CopyFavicon__ID, (&(mState)));
5139 0 : if ((!(RecvCopyFavicon(mozilla::Move(oldURI), mozilla::Move(newURI), mozilla::Move(aLoadingPrincipal), mozilla::Move(isPrivate))))) {
5140 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5141 : // Error handled in mozilla::ipc::IPCResult
5142 0 : return MsgProcessingError;
5143 : }
5144 :
5145 0 : return MsgProcessed;
5146 : }
5147 : case PContent::Msg_DeallocateLayerTreeId__ID:
5148 : {
5149 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5150 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5151 : }
5152 0 : AUTO_PROFILER_LABEL("PContent::Msg_DeallocateLayerTreeId", OTHER);
5153 :
5154 0 : PickleIterator iter__(msg__);
5155 0 : ContentParentId cpId;
5156 : uint64_t id;
5157 :
5158 0 : if ((!(Read((&(cpId)), (&(msg__)), (&(iter__)))))) {
5159 0 : FatalError("Error deserializing 'ContentParentId'");
5160 0 : return MsgValueError;
5161 : }
5162 : // Sentinel = 'cpId'
5163 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2452595622)))) {
5164 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ContentParentId'");
5165 0 : return MsgValueError;
5166 : }
5167 0 : if ((!(Read((&(id)), (&(msg__)), (&(iter__)))))) {
5168 0 : FatalError("Error deserializing 'uint64_t'");
5169 0 : return MsgValueError;
5170 : }
5171 : // Sentinel = 'id'
5172 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) {
5173 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
5174 0 : return MsgValueError;
5175 : }
5176 0 : (msg__).EndRead(iter__, (msg__).type());
5177 0 : PContent::Transition(PContent::Msg_DeallocateLayerTreeId__ID, (&(mState)));
5178 0 : if ((!(RecvDeallocateLayerTreeId(mozilla::Move(cpId), mozilla::Move(id))))) {
5179 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5180 : // Error handled in mozilla::ipc::IPCResult
5181 0 : return MsgProcessingError;
5182 : }
5183 :
5184 0 : return MsgProcessed;
5185 : }
5186 : case PContent::Msg_RecordingDeviceEvents__ID:
5187 : {
5188 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5189 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5190 : }
5191 0 : AUTO_PROFILER_LABEL("PContent::Msg_RecordingDeviceEvents", OTHER);
5192 :
5193 0 : PickleIterator iter__(msg__);
5194 0 : nsString recordingStatus;
5195 0 : nsString pageURL;
5196 : bool isAudio;
5197 : bool isVideo;
5198 :
5199 0 : if ((!(Read((&(recordingStatus)), (&(msg__)), (&(iter__)))))) {
5200 0 : FatalError("Error deserializing 'nsString'");
5201 0 : return MsgValueError;
5202 : }
5203 : // Sentinel = 'recordingStatus'
5204 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2504558560)))) {
5205 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
5206 0 : return MsgValueError;
5207 : }
5208 0 : if ((!(Read((&(pageURL)), (&(msg__)), (&(iter__)))))) {
5209 0 : FatalError("Error deserializing 'nsString'");
5210 0 : return MsgValueError;
5211 : }
5212 : // Sentinel = 'pageURL'
5213 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3373102899)))) {
5214 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
5215 0 : return MsgValueError;
5216 : }
5217 0 : if ((!(Read((&(isAudio)), (&(msg__)), (&(iter__)))))) {
5218 0 : FatalError("Error deserializing 'bool'");
5219 0 : return MsgValueError;
5220 : }
5221 : // Sentinel = 'isAudio'
5222 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3505326961)))) {
5223 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5224 0 : return MsgValueError;
5225 : }
5226 0 : if ((!(Read((&(isVideo)), (&(msg__)), (&(iter__)))))) {
5227 0 : FatalError("Error deserializing 'bool'");
5228 0 : return MsgValueError;
5229 : }
5230 : // Sentinel = 'isVideo'
5231 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1688400398)))) {
5232 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5233 0 : return MsgValueError;
5234 : }
5235 0 : (msg__).EndRead(iter__, (msg__).type());
5236 0 : PContent::Transition(PContent::Msg_RecordingDeviceEvents__ID, (&(mState)));
5237 0 : if ((!(RecvRecordingDeviceEvents(mozilla::Move(recordingStatus), mozilla::Move(pageURL), mozilla::Move(isAudio), mozilla::Move(isVideo))))) {
5238 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5239 : // Error handled in mozilla::ipc::IPCResult
5240 0 : return MsgProcessingError;
5241 : }
5242 :
5243 0 : return MsgProcessed;
5244 : }
5245 : case PContent::Msg_GraphicsError__ID:
5246 : {
5247 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5248 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5249 : }
5250 0 : AUTO_PROFILER_LABEL("PContent::Msg_GraphicsError", OTHER);
5251 :
5252 0 : PickleIterator iter__(msg__);
5253 0 : nsCString aError;
5254 :
5255 0 : if ((!(Read((&(aError)), (&(msg__)), (&(iter__)))))) {
5256 0 : FatalError("Error deserializing 'nsCString'");
5257 0 : return MsgValueError;
5258 : }
5259 : // Sentinel = 'aError'
5260 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3299422495)))) {
5261 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
5262 0 : return MsgValueError;
5263 : }
5264 0 : (msg__).EndRead(iter__, (msg__).type());
5265 0 : PContent::Transition(PContent::Msg_GraphicsError__ID, (&(mState)));
5266 0 : if ((!(RecvGraphicsError(mozilla::Move(aError))))) {
5267 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5268 : // Error handled in mozilla::ipc::IPCResult
5269 0 : return MsgProcessingError;
5270 : }
5271 :
5272 0 : return MsgProcessed;
5273 : }
5274 : case PContent::Msg_AddIdleObserver__ID:
5275 : {
5276 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5277 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5278 : }
5279 0 : AUTO_PROFILER_LABEL("PContent::Msg_AddIdleObserver", OTHER);
5280 :
5281 0 : PickleIterator iter__(msg__);
5282 : uint64_t observerId;
5283 : uint32_t idleTimeInS;
5284 :
5285 0 : if ((!(Read((&(observerId)), (&(msg__)), (&(iter__)))))) {
5286 0 : FatalError("Error deserializing 'uint64_t'");
5287 0 : return MsgValueError;
5288 : }
5289 : // Sentinel = 'observerId'
5290 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2815026823)))) {
5291 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
5292 0 : return MsgValueError;
5293 : }
5294 0 : if ((!(Read((&(idleTimeInS)), (&(msg__)), (&(iter__)))))) {
5295 0 : FatalError("Error deserializing 'uint32_t'");
5296 0 : return MsgValueError;
5297 : }
5298 : // Sentinel = 'idleTimeInS'
5299 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2527371272)))) {
5300 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
5301 0 : return MsgValueError;
5302 : }
5303 0 : (msg__).EndRead(iter__, (msg__).type());
5304 0 : PContent::Transition(PContent::Msg_AddIdleObserver__ID, (&(mState)));
5305 0 : if ((!(RecvAddIdleObserver(mozilla::Move(observerId), mozilla::Move(idleTimeInS))))) {
5306 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5307 : // Error handled in mozilla::ipc::IPCResult
5308 0 : return MsgProcessingError;
5309 : }
5310 :
5311 0 : return MsgProcessed;
5312 : }
5313 : case PContent::Msg_RemoveIdleObserver__ID:
5314 : {
5315 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5316 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5317 : }
5318 0 : AUTO_PROFILER_LABEL("PContent::Msg_RemoveIdleObserver", OTHER);
5319 :
5320 0 : PickleIterator iter__(msg__);
5321 : uint64_t observerId;
5322 : uint32_t idleTimeInS;
5323 :
5324 0 : if ((!(Read((&(observerId)), (&(msg__)), (&(iter__)))))) {
5325 0 : FatalError("Error deserializing 'uint64_t'");
5326 0 : return MsgValueError;
5327 : }
5328 : // Sentinel = 'observerId'
5329 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2815026823)))) {
5330 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
5331 0 : return MsgValueError;
5332 : }
5333 0 : if ((!(Read((&(idleTimeInS)), (&(msg__)), (&(iter__)))))) {
5334 0 : FatalError("Error deserializing 'uint32_t'");
5335 0 : return MsgValueError;
5336 : }
5337 : // Sentinel = 'idleTimeInS'
5338 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2527371272)))) {
5339 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
5340 0 : return MsgValueError;
5341 : }
5342 0 : (msg__).EndRead(iter__, (msg__).type());
5343 0 : PContent::Transition(PContent::Msg_RemoveIdleObserver__ID, (&(mState)));
5344 0 : if ((!(RecvRemoveIdleObserver(mozilla::Move(observerId), mozilla::Move(idleTimeInS))))) {
5345 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5346 : // Error handled in mozilla::ipc::IPCResult
5347 0 : return MsgProcessingError;
5348 : }
5349 :
5350 0 : return MsgProcessed;
5351 : }
5352 : case PContent::Msg_BackUpXResources__ID:
5353 : {
5354 1 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5355 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5356 : }
5357 2 : AUTO_PROFILER_LABEL("PContent::Msg_BackUpXResources", OTHER);
5358 :
5359 1 : PickleIterator iter__(msg__);
5360 2 : FileDescriptor aXSocketFd;
5361 :
5362 1 : if ((!(Read((&(aXSocketFd)), (&(msg__)), (&(iter__)))))) {
5363 0 : FatalError("Error deserializing 'FileDescriptor'");
5364 0 : return MsgValueError;
5365 : }
5366 : // Sentinel = 'aXSocketFd'
5367 1 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1448798316)))) {
5368 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor'");
5369 0 : return MsgValueError;
5370 : }
5371 1 : (msg__).EndRead(iter__, (msg__).type());
5372 1 : PContent::Transition(PContent::Msg_BackUpXResources__ID, (&(mState)));
5373 1 : if ((!(RecvBackUpXResources(mozilla::Move(aXSocketFd))))) {
5374 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5375 : // Error handled in mozilla::ipc::IPCResult
5376 0 : return MsgProcessingError;
5377 : }
5378 :
5379 1 : return MsgProcessed;
5380 : }
5381 : case PContent::Msg_RequestAnonymousTemporaryFile__ID:
5382 : {
5383 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5384 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5385 : }
5386 0 : AUTO_PROFILER_LABEL("PContent::Msg_RequestAnonymousTemporaryFile", OTHER);
5387 :
5388 0 : PickleIterator iter__(msg__);
5389 : uint64_t aID;
5390 :
5391 0 : if ((!(Read((&(aID)), (&(msg__)), (&(iter__)))))) {
5392 0 : FatalError("Error deserializing 'uint64_t'");
5393 0 : return MsgValueError;
5394 : }
5395 : // Sentinel = 'aID'
5396 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) {
5397 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
5398 0 : return MsgValueError;
5399 : }
5400 0 : (msg__).EndRead(iter__, (msg__).type());
5401 0 : PContent::Transition(PContent::Msg_RequestAnonymousTemporaryFile__ID, (&(mState)));
5402 0 : if ((!(RecvRequestAnonymousTemporaryFile(mozilla::Move(aID))))) {
5403 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5404 : // Error handled in mozilla::ipc::IPCResult
5405 0 : return MsgProcessingError;
5406 : }
5407 :
5408 0 : return MsgProcessed;
5409 : }
5410 : case PContent::Msg_UnregisterRemoteFrame__ID:
5411 : {
5412 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5413 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5414 : }
5415 0 : AUTO_PROFILER_LABEL("PContent::Msg_UnregisterRemoteFrame", OTHER);
5416 :
5417 0 : PickleIterator iter__(msg__);
5418 0 : TabId tabId;
5419 0 : ContentParentId cpId;
5420 : bool aMarkedDestroying;
5421 :
5422 0 : if ((!(Read((&(tabId)), (&(msg__)), (&(iter__)))))) {
5423 0 : FatalError("Error deserializing 'TabId'");
5424 0 : return MsgValueError;
5425 : }
5426 : // Sentinel = 'tabId'
5427 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3419081923)))) {
5428 0 : mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
5429 0 : return MsgValueError;
5430 : }
5431 0 : if ((!(Read((&(cpId)), (&(msg__)), (&(iter__)))))) {
5432 0 : FatalError("Error deserializing 'ContentParentId'");
5433 0 : return MsgValueError;
5434 : }
5435 : // Sentinel = 'cpId'
5436 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2452595622)))) {
5437 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ContentParentId'");
5438 0 : return MsgValueError;
5439 : }
5440 0 : if ((!(Read((&(aMarkedDestroying)), (&(msg__)), (&(iter__)))))) {
5441 0 : FatalError("Error deserializing 'bool'");
5442 0 : return MsgValueError;
5443 : }
5444 : // Sentinel = 'aMarkedDestroying'
5445 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4114437722)))) {
5446 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5447 0 : return MsgValueError;
5448 : }
5449 0 : (msg__).EndRead(iter__, (msg__).type());
5450 0 : PContent::Transition(PContent::Msg_UnregisterRemoteFrame__ID, (&(mState)));
5451 0 : if ((!(RecvUnregisterRemoteFrame(mozilla::Move(tabId), mozilla::Move(cpId), mozilla::Move(aMarkedDestroying))))) {
5452 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5453 : // Error handled in mozilla::ipc::IPCResult
5454 0 : return MsgProcessingError;
5455 : }
5456 :
5457 0 : return MsgProcessed;
5458 : }
5459 : case PContent::Msg_NotifyTabDestroying__ID:
5460 : {
5461 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5462 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5463 : }
5464 0 : AUTO_PROFILER_LABEL("PContent::Msg_NotifyTabDestroying", OTHER);
5465 :
5466 0 : PickleIterator iter__(msg__);
5467 0 : TabId tabId;
5468 0 : ContentParentId cpId;
5469 :
5470 0 : if ((!(Read((&(tabId)), (&(msg__)), (&(iter__)))))) {
5471 0 : FatalError("Error deserializing 'TabId'");
5472 0 : return MsgValueError;
5473 : }
5474 : // Sentinel = 'tabId'
5475 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3419081923)))) {
5476 0 : mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
5477 0 : return MsgValueError;
5478 : }
5479 0 : if ((!(Read((&(cpId)), (&(msg__)), (&(iter__)))))) {
5480 0 : FatalError("Error deserializing 'ContentParentId'");
5481 0 : return MsgValueError;
5482 : }
5483 : // Sentinel = 'cpId'
5484 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2452595622)))) {
5485 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ContentParentId'");
5486 0 : return MsgValueError;
5487 : }
5488 0 : (msg__).EndRead(iter__, (msg__).type());
5489 0 : PContent::Transition(PContent::Msg_NotifyTabDestroying__ID, (&(mState)));
5490 0 : if ((!(RecvNotifyTabDestroying(mozilla::Move(tabId), mozilla::Move(cpId))))) {
5491 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5492 : // Error handled in mozilla::ipc::IPCResult
5493 0 : return MsgProcessingError;
5494 : }
5495 :
5496 0 : return MsgProcessed;
5497 : }
5498 : case PContent::Msg_POfflineCacheUpdateConstructor__ID:
5499 : {
5500 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5501 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5502 : }
5503 0 : AUTO_PROFILER_LABEL("PContent::Msg_POfflineCacheUpdateConstructor", OTHER);
5504 :
5505 0 : PickleIterator iter__(msg__);
5506 : ActorHandle handle__;
5507 : POfflineCacheUpdateParent* actor;
5508 0 : URIParams manifestURI;
5509 0 : URIParams documentURI;
5510 0 : PrincipalInfo loadingPrincipal;
5511 : bool stickDocument;
5512 :
5513 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
5514 0 : FatalError("Error deserializing 'ActorHandle'");
5515 0 : return MsgValueError;
5516 : }
5517 : // Sentinel = 'actor'
5518 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
5519 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
5520 0 : return MsgValueError;
5521 : }
5522 0 : if ((!(Read((&(manifestURI)), (&(msg__)), (&(iter__)))))) {
5523 0 : FatalError("Error deserializing 'URIParams'");
5524 0 : return MsgValueError;
5525 : }
5526 : // Sentinel = 'manifestURI'
5527 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3261212628)))) {
5528 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
5529 0 : return MsgValueError;
5530 : }
5531 0 : if ((!(Read((&(documentURI)), (&(msg__)), (&(iter__)))))) {
5532 0 : FatalError("Error deserializing 'URIParams'");
5533 0 : return MsgValueError;
5534 : }
5535 : // Sentinel = 'documentURI'
5536 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3585823520)))) {
5537 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
5538 0 : return MsgValueError;
5539 : }
5540 0 : if ((!(Read((&(loadingPrincipal)), (&(msg__)), (&(iter__)))))) {
5541 0 : FatalError("Error deserializing 'PrincipalInfo'");
5542 0 : return MsgValueError;
5543 : }
5544 : // Sentinel = 'loadingPrincipal'
5545 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2000304082)))) {
5546 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo'");
5547 0 : return MsgValueError;
5548 : }
5549 0 : if ((!(Read((&(stickDocument)), (&(msg__)), (&(iter__)))))) {
5550 0 : FatalError("Error deserializing 'bool'");
5551 0 : return MsgValueError;
5552 : }
5553 : // Sentinel = 'stickDocument'
5554 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2826141294)))) {
5555 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5556 0 : return MsgValueError;
5557 : }
5558 0 : (msg__).EndRead(iter__, (msg__).type());
5559 0 : PContent::Transition(PContent::Msg_POfflineCacheUpdateConstructor__ID, (&(mState)));
5560 0 : actor = AllocPOfflineCacheUpdateParent(manifestURI, documentURI, loadingPrincipal, stickDocument);
5561 0 : if ((!(actor))) {
5562 0 : NS_WARNING("Error constructing actor POfflineCacheUpdateParent");
5563 0 : return MsgValueError;
5564 : }
5565 0 : (actor)->SetManager(this);
5566 0 : RegisterID(actor, (handle__).mId);
5567 0 : (actor)->SetIPCChannel(GetIPCChannel());
5568 0 : (mManagedPOfflineCacheUpdateParent).PutEntry(actor);
5569 0 : (actor)->mState = mozilla::docshell::POfflineCacheUpdate::__Start;
5570 :
5571 0 : if ((!(RecvPOfflineCacheUpdateConstructor(mozilla::Move(actor), mozilla::Move(manifestURI), mozilla::Move(documentURI), mozilla::Move(loadingPrincipal), mozilla::Move(stickDocument))))) {
5572 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5573 : // Error handled in mozilla::ipc::IPCResult
5574 0 : return MsgProcessingError;
5575 : }
5576 :
5577 0 : return MsgProcessed;
5578 : }
5579 : case PContent::Msg_SetOfflinePermission__ID:
5580 : {
5581 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5582 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5583 : }
5584 0 : AUTO_PROFILER_LABEL("PContent::Msg_SetOfflinePermission", OTHER);
5585 :
5586 0 : PickleIterator iter__(msg__);
5587 0 : Principal principal;
5588 :
5589 0 : if ((!(Read((&(principal)), (&(msg__)), (&(iter__)))))) {
5590 0 : FatalError("Error deserializing 'Principal'");
5591 0 : return MsgValueError;
5592 : }
5593 : // Sentinel = 'principal'
5594 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
5595 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
5596 0 : return MsgValueError;
5597 : }
5598 0 : (msg__).EndRead(iter__, (msg__).type());
5599 0 : PContent::Transition(PContent::Msg_SetOfflinePermission__ID, (&(mState)));
5600 0 : if ((!(RecvSetOfflinePermission(mozilla::Move(principal))))) {
5601 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5602 : // Error handled in mozilla::ipc::IPCResult
5603 0 : return MsgProcessingError;
5604 : }
5605 :
5606 0 : return MsgProcessed;
5607 : }
5608 : case PContent::Msg_FinishShutdown__ID:
5609 : {
5610 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5611 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5612 : }
5613 0 : AUTO_PROFILER_LABEL("PContent::Msg_FinishShutdown", OTHER);
5614 :
5615 0 : PContent::Transition(PContent::Msg_FinishShutdown__ID, (&(mState)));
5616 0 : if ((!(RecvFinishShutdown()))) {
5617 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5618 : // Error handled in mozilla::ipc::IPCResult
5619 0 : return MsgProcessingError;
5620 : }
5621 :
5622 0 : return MsgProcessed;
5623 : }
5624 : case PContent::Msg_UpdateDropEffect__ID:
5625 : {
5626 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5627 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5628 : }
5629 0 : AUTO_PROFILER_LABEL("PContent::Msg_UpdateDropEffect", OTHER);
5630 :
5631 0 : PickleIterator iter__(msg__);
5632 : uint32_t aDragAction;
5633 : uint32_t aDropEffect;
5634 :
5635 0 : if ((!(Read((&(aDragAction)), (&(msg__)), (&(iter__)))))) {
5636 0 : FatalError("Error deserializing 'uint32_t'");
5637 0 : return MsgValueError;
5638 : }
5639 : // Sentinel = 'aDragAction'
5640 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2407569738)))) {
5641 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
5642 0 : return MsgValueError;
5643 : }
5644 0 : if ((!(Read((&(aDropEffect)), (&(msg__)), (&(iter__)))))) {
5645 0 : FatalError("Error deserializing 'uint32_t'");
5646 0 : return MsgValueError;
5647 : }
5648 : // Sentinel = 'aDropEffect'
5649 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4065146166)))) {
5650 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
5651 0 : return MsgValueError;
5652 : }
5653 0 : (msg__).EndRead(iter__, (msg__).type());
5654 0 : PContent::Transition(PContent::Msg_UpdateDropEffect__ID, (&(mState)));
5655 0 : if ((!(RecvUpdateDropEffect(mozilla::Move(aDragAction), mozilla::Move(aDropEffect))))) {
5656 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5657 : // Error handled in mozilla::ipc::IPCResult
5658 0 : return MsgProcessingError;
5659 : }
5660 :
5661 0 : return MsgProcessed;
5662 : }
5663 : case PContent::Msg_PContentPermissionRequestConstructor__ID:
5664 : {
5665 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5666 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5667 : }
5668 0 : AUTO_PROFILER_LABEL("PContent::Msg_PContentPermissionRequestConstructor", OTHER);
5669 :
5670 0 : PickleIterator iter__(msg__);
5671 : ActorHandle handle__;
5672 : PContentPermissionRequestParent* actor;
5673 0 : nsTArray<PermissionRequest> aRequests;
5674 0 : Principal aPrincipal;
5675 0 : TabId tabId;
5676 :
5677 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
5678 0 : FatalError("Error deserializing 'ActorHandle'");
5679 0 : return MsgValueError;
5680 : }
5681 : // Sentinel = 'actor'
5682 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
5683 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
5684 0 : return MsgValueError;
5685 : }
5686 0 : if ((!(Read((&(aRequests)), (&(msg__)), (&(iter__)))))) {
5687 0 : FatalError("Error deserializing 'nsTArray'");
5688 0 : return MsgValueError;
5689 : }
5690 : // Sentinel = 'aRequests'
5691 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4267960022)))) {
5692 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
5693 0 : return MsgValueError;
5694 : }
5695 0 : if ((!(Read((&(aPrincipal)), (&(msg__)), (&(iter__)))))) {
5696 0 : FatalError("Error deserializing 'Principal'");
5697 0 : return MsgValueError;
5698 : }
5699 : // Sentinel = 'aPrincipal'
5700 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4097511)))) {
5701 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
5702 0 : return MsgValueError;
5703 : }
5704 0 : if ((!(Read((&(tabId)), (&(msg__)), (&(iter__)))))) {
5705 0 : FatalError("Error deserializing 'TabId'");
5706 0 : return MsgValueError;
5707 : }
5708 : // Sentinel = 'tabId'
5709 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3419081923)))) {
5710 0 : mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
5711 0 : return MsgValueError;
5712 : }
5713 0 : (msg__).EndRead(iter__, (msg__).type());
5714 0 : PContent::Transition(PContent::Msg_PContentPermissionRequestConstructor__ID, (&(mState)));
5715 0 : actor = AllocPContentPermissionRequestParent(aRequests, aPrincipal, tabId);
5716 0 : if ((!(actor))) {
5717 0 : NS_WARNING("Error constructing actor PContentPermissionRequestParent");
5718 0 : return MsgValueError;
5719 : }
5720 0 : (actor)->SetManager(this);
5721 0 : RegisterID(actor, (handle__).mId);
5722 0 : (actor)->SetIPCChannel(GetIPCChannel());
5723 0 : (mManagedPContentPermissionRequestParent).PutEntry(actor);
5724 0 : (actor)->mState = mozilla::dom::PContentPermissionRequest::__Start;
5725 :
5726 0 : if ((!(RecvPContentPermissionRequestConstructor(mozilla::Move(actor), mozilla::Move(aRequests), mozilla::Move(aPrincipal), mozilla::Move(tabId))))) {
5727 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5728 : // Error handled in mozilla::ipc::IPCResult
5729 0 : return MsgProcessingError;
5730 : }
5731 :
5732 0 : return MsgProcessed;
5733 : }
5734 : case PContent::Msg_ShutdownProfile__ID:
5735 : {
5736 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5737 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5738 : }
5739 0 : AUTO_PROFILER_LABEL("PContent::Msg_ShutdownProfile", OTHER);
5740 :
5741 0 : PickleIterator iter__(msg__);
5742 0 : nsCString aProfile;
5743 :
5744 0 : if ((!(Read((&(aProfile)), (&(msg__)), (&(iter__)))))) {
5745 0 : FatalError("Error deserializing 'nsCString'");
5746 0 : return MsgValueError;
5747 : }
5748 : // Sentinel = 'aProfile'
5749 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3994647340)))) {
5750 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
5751 0 : return MsgValueError;
5752 : }
5753 0 : (msg__).EndRead(iter__, (msg__).type());
5754 0 : PContent::Transition(PContent::Msg_ShutdownProfile__ID, (&(mState)));
5755 0 : if ((!(RecvShutdownProfile(mozilla::Move(aProfile))))) {
5756 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5757 : // Error handled in mozilla::ipc::IPCResult
5758 0 : return MsgProcessingError;
5759 : }
5760 :
5761 0 : return MsgProcessed;
5762 : }
5763 : case PContent::Msg_CreateWindow__ID:
5764 : {
5765 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5766 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5767 : }
5768 0 : AUTO_PROFILER_LABEL("PContent::Msg_CreateWindow", OTHER);
5769 :
5770 0 : PickleIterator iter__(msg__);
5771 : PBrowserParent* aThisTab;
5772 : PBrowserParent* aNewTab;
5773 : PRenderFrameParent* aRenderFrame;
5774 : uint32_t aChromeFlags;
5775 : bool aCalledFromJS;
5776 : bool aPositionSpecified;
5777 : bool aSizeSpecified;
5778 0 : nsCString aFeatures;
5779 0 : nsCString aBaseURI;
5780 : float aFullZoom;
5781 0 : Principal aTriggeringPrincipal;
5782 :
5783 0 : if ((!(Read((&(aThisTab)), (&(msg__)), (&(iter__)), true)))) {
5784 0 : FatalError("Error deserializing 'PBrowserParent'");
5785 0 : return MsgValueError;
5786 : }
5787 : // Sentinel = 'aThisTab'
5788 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 607760926)))) {
5789 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserParent'");
5790 0 : return MsgValueError;
5791 : }
5792 0 : if ((!(Read((&(aNewTab)), (&(msg__)), (&(iter__)), false)))) {
5793 0 : FatalError("Error deserializing 'PBrowserParent'");
5794 0 : return MsgValueError;
5795 : }
5796 : // Sentinel = 'aNewTab'
5797 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2089222425)))) {
5798 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserParent'");
5799 0 : return MsgValueError;
5800 : }
5801 0 : if ((!(Read((&(aRenderFrame)), (&(msg__)), (&(iter__)), false)))) {
5802 0 : FatalError("Error deserializing 'PRenderFrameParent'");
5803 0 : return MsgValueError;
5804 : }
5805 : // Sentinel = 'aRenderFrame'
5806 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1469288264)))) {
5807 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PRenderFrameParent'");
5808 0 : return MsgValueError;
5809 : }
5810 0 : if ((!(Read((&(aChromeFlags)), (&(msg__)), (&(iter__)))))) {
5811 0 : FatalError("Error deserializing 'uint32_t'");
5812 0 : return MsgValueError;
5813 : }
5814 : // Sentinel = 'aChromeFlags'
5815 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3327922672)))) {
5816 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
5817 0 : return MsgValueError;
5818 : }
5819 0 : if ((!(Read((&(aCalledFromJS)), (&(msg__)), (&(iter__)))))) {
5820 0 : FatalError("Error deserializing 'bool'");
5821 0 : return MsgValueError;
5822 : }
5823 : // Sentinel = 'aCalledFromJS'
5824 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1499256202)))) {
5825 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5826 0 : return MsgValueError;
5827 : }
5828 0 : if ((!(Read((&(aPositionSpecified)), (&(msg__)), (&(iter__)))))) {
5829 0 : FatalError("Error deserializing 'bool'");
5830 0 : return MsgValueError;
5831 : }
5832 : // Sentinel = 'aPositionSpecified'
5833 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2933421868)))) {
5834 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5835 0 : return MsgValueError;
5836 : }
5837 0 : if ((!(Read((&(aSizeSpecified)), (&(msg__)), (&(iter__)))))) {
5838 0 : FatalError("Error deserializing 'bool'");
5839 0 : return MsgValueError;
5840 : }
5841 : // Sentinel = 'aSizeSpecified'
5842 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3086178338)))) {
5843 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5844 0 : return MsgValueError;
5845 : }
5846 0 : if ((!(Read((&(aFeatures)), (&(msg__)), (&(iter__)))))) {
5847 0 : FatalError("Error deserializing 'nsCString'");
5848 0 : return MsgValueError;
5849 : }
5850 : // Sentinel = 'aFeatures'
5851 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1001034525)))) {
5852 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
5853 0 : return MsgValueError;
5854 : }
5855 0 : if ((!(Read((&(aBaseURI)), (&(msg__)), (&(iter__)))))) {
5856 0 : FatalError("Error deserializing 'nsCString'");
5857 0 : return MsgValueError;
5858 : }
5859 : // Sentinel = 'aBaseURI'
5860 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2848511784)))) {
5861 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
5862 0 : return MsgValueError;
5863 : }
5864 0 : if ((!(Read((&(aFullZoom)), (&(msg__)), (&(iter__)))))) {
5865 0 : FatalError("Error deserializing 'float'");
5866 0 : return MsgValueError;
5867 : }
5868 : // Sentinel = 'aFullZoom'
5869 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2072210550)))) {
5870 0 : mozilla::ipc::SentinelReadError("Error deserializing 'float'");
5871 0 : return MsgValueError;
5872 : }
5873 0 : if ((!(Read((&(aTriggeringPrincipal)), (&(msg__)), (&(iter__)))))) {
5874 0 : FatalError("Error deserializing 'Principal'");
5875 0 : return MsgValueError;
5876 : }
5877 : // Sentinel = 'aTriggeringPrincipal'
5878 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1219575273)))) {
5879 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
5880 0 : return MsgValueError;
5881 : }
5882 0 : (msg__).EndRead(iter__, (msg__).type());
5883 0 : PContent::Transition(PContent::Msg_CreateWindow__ID, (&(mState)));
5884 0 : int32_t id__ = MSG_ROUTING_CONTROL;
5885 :
5886 0 : int32_t seqno__ = (msg__).seqno();
5887 0 : WeakPtr<PContentParent> self__ = this;
5888 0 : CreateWindowResolver resolver = [this, self__, id__, seqno__](CreatedWindowInfo aParam) {
5889 0 : if ((!(self__))) {
5890 0 : NS_WARNING("Not resolving promise because actor is dead.");
5891 0 : return;
5892 : }
5893 0 : if ((mState) == (PContent::__Dead)) {
5894 0 : NS_WARNING("Not resolving promise because actor is destroyed.");
5895 0 : return;
5896 : }
5897 0 : bool resolve__ = true;
5898 0 : CreatedWindowInfo window;
5899 0 : window = aParam;
5900 0 : IPC::Message* reply__ = PContent::Reply_CreateWindow(id__);
5901 0 : Write(resolve__, reply__);
5902 : // Sentinel = 'resolve__'
5903 0 : (reply__)->WriteSentinel(3997392463);
5904 0 : Write(window, reply__);
5905 : // Sentinel = 'window'
5906 0 : (reply__)->WriteSentinel(3032525362);
5907 0 : (reply__)->set_reply();
5908 0 : (reply__)->set_seqno(seqno__);
5909 :
5910 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5911 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
5912 : }
5913 0 : bool sendok__ = (GetIPCChannel())->Send(reply__);
5914 0 : if ((!(sendok__))) {
5915 0 : NS_WARNING("Error sending reply");
5916 : }
5917 0 : };
5918 0 : if ((!(RecvCreateWindow(mozilla::Move(aThisTab), mozilla::Move(aNewTab), mozilla::Move(aRenderFrame), mozilla::Move(aChromeFlags), mozilla::Move(aCalledFromJS), mozilla::Move(aPositionSpecified), mozilla::Move(aSizeSpecified), mozilla::Move(aFeatures), mozilla::Move(aBaseURI), mozilla::Move(aFullZoom), mozilla::Move(aTriggeringPrincipal), mozilla::Move(resolver))))) {
5919 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5920 : // Error handled in mozilla::ipc::IPCResult
5921 0 : return MsgProcessingError;
5922 : }
5923 :
5924 0 : return MsgProcessed;
5925 : }
5926 : case PContent::Msg_CreateWindowInDifferentProcess__ID:
5927 : {
5928 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5929 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5930 : }
5931 0 : AUTO_PROFILER_LABEL("PContent::Msg_CreateWindowInDifferentProcess", OTHER);
5932 :
5933 0 : PickleIterator iter__(msg__);
5934 : PBrowserParent* aThisTab;
5935 : uint32_t aChromeFlags;
5936 : bool aCalledFromJS;
5937 : bool aPositionSpecified;
5938 : bool aSizeSpecified;
5939 0 : URIParams aURIToLoad;
5940 0 : nsCString aFeatures;
5941 0 : nsCString aBaseURI;
5942 : float aFullZoom;
5943 0 : nsString aName;
5944 0 : Principal aTriggeringPrincipal;
5945 :
5946 0 : if ((!(Read((&(aThisTab)), (&(msg__)), (&(iter__)), false)))) {
5947 0 : FatalError("Error deserializing 'PBrowserParent'");
5948 0 : return MsgValueError;
5949 : }
5950 : // Sentinel = 'aThisTab'
5951 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 607760926)))) {
5952 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserParent'");
5953 0 : return MsgValueError;
5954 : }
5955 0 : if ((!(Read((&(aChromeFlags)), (&(msg__)), (&(iter__)))))) {
5956 0 : FatalError("Error deserializing 'uint32_t'");
5957 0 : return MsgValueError;
5958 : }
5959 : // Sentinel = 'aChromeFlags'
5960 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3327922672)))) {
5961 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
5962 0 : return MsgValueError;
5963 : }
5964 0 : if ((!(Read((&(aCalledFromJS)), (&(msg__)), (&(iter__)))))) {
5965 0 : FatalError("Error deserializing 'bool'");
5966 0 : return MsgValueError;
5967 : }
5968 : // Sentinel = 'aCalledFromJS'
5969 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1499256202)))) {
5970 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5971 0 : return MsgValueError;
5972 : }
5973 0 : if ((!(Read((&(aPositionSpecified)), (&(msg__)), (&(iter__)))))) {
5974 0 : FatalError("Error deserializing 'bool'");
5975 0 : return MsgValueError;
5976 : }
5977 : // Sentinel = 'aPositionSpecified'
5978 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2933421868)))) {
5979 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5980 0 : return MsgValueError;
5981 : }
5982 0 : if ((!(Read((&(aSizeSpecified)), (&(msg__)), (&(iter__)))))) {
5983 0 : FatalError("Error deserializing 'bool'");
5984 0 : return MsgValueError;
5985 : }
5986 : // Sentinel = 'aSizeSpecified'
5987 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3086178338)))) {
5988 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5989 0 : return MsgValueError;
5990 : }
5991 0 : if ((!(Read((&(aURIToLoad)), (&(msg__)), (&(iter__)))))) {
5992 0 : FatalError("Error deserializing 'URIParams'");
5993 0 : return MsgValueError;
5994 : }
5995 : // Sentinel = 'aURIToLoad'
5996 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4091656936)))) {
5997 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
5998 0 : return MsgValueError;
5999 : }
6000 0 : if ((!(Read((&(aFeatures)), (&(msg__)), (&(iter__)))))) {
6001 0 : FatalError("Error deserializing 'nsCString'");
6002 0 : return MsgValueError;
6003 : }
6004 : // Sentinel = 'aFeatures'
6005 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1001034525)))) {
6006 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
6007 0 : return MsgValueError;
6008 : }
6009 0 : if ((!(Read((&(aBaseURI)), (&(msg__)), (&(iter__)))))) {
6010 0 : FatalError("Error deserializing 'nsCString'");
6011 0 : return MsgValueError;
6012 : }
6013 : // Sentinel = 'aBaseURI'
6014 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2848511784)))) {
6015 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
6016 0 : return MsgValueError;
6017 : }
6018 0 : if ((!(Read((&(aFullZoom)), (&(msg__)), (&(iter__)))))) {
6019 0 : FatalError("Error deserializing 'float'");
6020 0 : return MsgValueError;
6021 : }
6022 : // Sentinel = 'aFullZoom'
6023 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2072210550)))) {
6024 0 : mozilla::ipc::SentinelReadError("Error deserializing 'float'");
6025 0 : return MsgValueError;
6026 : }
6027 0 : if ((!(Read((&(aName)), (&(msg__)), (&(iter__)))))) {
6028 0 : FatalError("Error deserializing 'nsString'");
6029 0 : return MsgValueError;
6030 : }
6031 : // Sentinel = 'aName'
6032 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1450162941)))) {
6033 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
6034 0 : return MsgValueError;
6035 : }
6036 0 : if ((!(Read((&(aTriggeringPrincipal)), (&(msg__)), (&(iter__)))))) {
6037 0 : FatalError("Error deserializing 'Principal'");
6038 0 : return MsgValueError;
6039 : }
6040 : // Sentinel = 'aTriggeringPrincipal'
6041 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1219575273)))) {
6042 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
6043 0 : return MsgValueError;
6044 : }
6045 0 : (msg__).EndRead(iter__, (msg__).type());
6046 0 : PContent::Transition(PContent::Msg_CreateWindowInDifferentProcess__ID, (&(mState)));
6047 0 : if ((!(RecvCreateWindowInDifferentProcess(mozilla::Move(aThisTab), mozilla::Move(aChromeFlags), mozilla::Move(aCalledFromJS), mozilla::Move(aPositionSpecified), mozilla::Move(aSizeSpecified), mozilla::Move(aURIToLoad), mozilla::Move(aFeatures), mozilla::Move(aBaseURI), mozilla::Move(aFullZoom), mozilla::Move(aName), mozilla::Move(aTriggeringPrincipal))))) {
6048 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6049 : // Error handled in mozilla::ipc::IPCResult
6050 0 : return MsgProcessingError;
6051 : }
6052 :
6053 0 : return MsgProcessed;
6054 : }
6055 : case PContent::Msg_NotifyBenchmarkResult__ID:
6056 : {
6057 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6058 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6059 : }
6060 0 : AUTO_PROFILER_LABEL("PContent::Msg_NotifyBenchmarkResult", OTHER);
6061 :
6062 0 : PickleIterator iter__(msg__);
6063 0 : nsString aCodecName;
6064 : uint32_t aDecodeFPS;
6065 :
6066 0 : if ((!(Read((&(aCodecName)), (&(msg__)), (&(iter__)))))) {
6067 0 : FatalError("Error deserializing 'nsString'");
6068 0 : return MsgValueError;
6069 : }
6070 : // Sentinel = 'aCodecName'
6071 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1573682074)))) {
6072 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
6073 0 : return MsgValueError;
6074 : }
6075 0 : if ((!(Read((&(aDecodeFPS)), (&(msg__)), (&(iter__)))))) {
6076 0 : FatalError("Error deserializing 'uint32_t'");
6077 0 : return MsgValueError;
6078 : }
6079 : // Sentinel = 'aDecodeFPS'
6080 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2083295506)))) {
6081 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
6082 0 : return MsgValueError;
6083 : }
6084 0 : (msg__).EndRead(iter__, (msg__).type());
6085 0 : PContent::Transition(PContent::Msg_NotifyBenchmarkResult__ID, (&(mState)));
6086 0 : if ((!(RecvNotifyBenchmarkResult(mozilla::Move(aCodecName), mozilla::Move(aDecodeFPS))))) {
6087 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6088 : // Error handled in mozilla::ipc::IPCResult
6089 0 : return MsgProcessingError;
6090 : }
6091 :
6092 0 : return MsgProcessed;
6093 : }
6094 : case PContent::Msg_NotifyPushObservers__ID:
6095 : {
6096 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6097 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6098 : }
6099 0 : AUTO_PROFILER_LABEL("PContent::Msg_NotifyPushObservers", OTHER);
6100 :
6101 0 : PickleIterator iter__(msg__);
6102 0 : nsCString scope;
6103 0 : Principal principal;
6104 0 : nsString messageId;
6105 :
6106 0 : if ((!(Read((&(scope)), (&(msg__)), (&(iter__)))))) {
6107 0 : FatalError("Error deserializing 'nsCString'");
6108 0 : return MsgValueError;
6109 : }
6110 : // Sentinel = 'scope'
6111 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2191984953)))) {
6112 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
6113 0 : return MsgValueError;
6114 : }
6115 0 : if ((!(Read((&(principal)), (&(msg__)), (&(iter__)))))) {
6116 0 : FatalError("Error deserializing 'Principal'");
6117 0 : return MsgValueError;
6118 : }
6119 : // Sentinel = 'principal'
6120 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
6121 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
6122 0 : return MsgValueError;
6123 : }
6124 0 : if ((!(Read((&(messageId)), (&(msg__)), (&(iter__)))))) {
6125 0 : FatalError("Error deserializing 'nsString'");
6126 0 : return MsgValueError;
6127 : }
6128 : // Sentinel = 'messageId'
6129 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2887269495)))) {
6130 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
6131 0 : return MsgValueError;
6132 : }
6133 0 : (msg__).EndRead(iter__, (msg__).type());
6134 0 : PContent::Transition(PContent::Msg_NotifyPushObservers__ID, (&(mState)));
6135 0 : if ((!(RecvNotifyPushObservers(mozilla::Move(scope), mozilla::Move(principal), mozilla::Move(messageId))))) {
6136 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6137 : // Error handled in mozilla::ipc::IPCResult
6138 0 : return MsgProcessingError;
6139 : }
6140 :
6141 0 : return MsgProcessed;
6142 : }
6143 : case PContent::Msg_NotifyPushObserversWithData__ID:
6144 : {
6145 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6146 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6147 : }
6148 0 : AUTO_PROFILER_LABEL("PContent::Msg_NotifyPushObserversWithData", OTHER);
6149 :
6150 0 : PickleIterator iter__(msg__);
6151 0 : nsCString scope;
6152 0 : Principal principal;
6153 0 : nsString messageId;
6154 0 : nsTArray<uint8_t> data;
6155 :
6156 0 : if ((!(Read((&(scope)), (&(msg__)), (&(iter__)))))) {
6157 0 : FatalError("Error deserializing 'nsCString'");
6158 0 : return MsgValueError;
6159 : }
6160 : // Sentinel = 'scope'
6161 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2191984953)))) {
6162 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
6163 0 : return MsgValueError;
6164 : }
6165 0 : if ((!(Read((&(principal)), (&(msg__)), (&(iter__)))))) {
6166 0 : FatalError("Error deserializing 'Principal'");
6167 0 : return MsgValueError;
6168 : }
6169 : // Sentinel = 'principal'
6170 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
6171 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
6172 0 : return MsgValueError;
6173 : }
6174 0 : if ((!(Read((&(messageId)), (&(msg__)), (&(iter__)))))) {
6175 0 : FatalError("Error deserializing 'nsString'");
6176 0 : return MsgValueError;
6177 : }
6178 : // Sentinel = 'messageId'
6179 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2887269495)))) {
6180 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
6181 0 : return MsgValueError;
6182 : }
6183 0 : if ((!(Read((&(data)), (&(msg__)), (&(iter__)))))) {
6184 0 : FatalError("Error deserializing 'nsTArray'");
6185 0 : return MsgValueError;
6186 : }
6187 : // Sentinel = 'data'
6188 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 843352540)))) {
6189 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
6190 0 : return MsgValueError;
6191 : }
6192 0 : (msg__).EndRead(iter__, (msg__).type());
6193 0 : PContent::Transition(PContent::Msg_NotifyPushObserversWithData__ID, (&(mState)));
6194 0 : if ((!(RecvNotifyPushObserversWithData(mozilla::Move(scope), mozilla::Move(principal), mozilla::Move(messageId), mozilla::Move(data))))) {
6195 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6196 : // Error handled in mozilla::ipc::IPCResult
6197 0 : return MsgProcessingError;
6198 : }
6199 :
6200 0 : return MsgProcessed;
6201 : }
6202 : case PContent::Msg_NotifyPushSubscriptionChangeObservers__ID:
6203 : {
6204 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6205 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6206 : }
6207 0 : AUTO_PROFILER_LABEL("PContent::Msg_NotifyPushSubscriptionChangeObservers", OTHER);
6208 :
6209 0 : PickleIterator iter__(msg__);
6210 0 : nsCString scope;
6211 0 : Principal principal;
6212 :
6213 0 : if ((!(Read((&(scope)), (&(msg__)), (&(iter__)))))) {
6214 0 : FatalError("Error deserializing 'nsCString'");
6215 0 : return MsgValueError;
6216 : }
6217 : // Sentinel = 'scope'
6218 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2191984953)))) {
6219 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
6220 0 : return MsgValueError;
6221 : }
6222 0 : if ((!(Read((&(principal)), (&(msg__)), (&(iter__)))))) {
6223 0 : FatalError("Error deserializing 'Principal'");
6224 0 : return MsgValueError;
6225 : }
6226 : // Sentinel = 'principal'
6227 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
6228 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
6229 0 : return MsgValueError;
6230 : }
6231 0 : (msg__).EndRead(iter__, (msg__).type());
6232 0 : PContent::Transition(PContent::Msg_NotifyPushSubscriptionChangeObservers__ID, (&(mState)));
6233 0 : if ((!(RecvNotifyPushSubscriptionChangeObservers(mozilla::Move(scope), mozilla::Move(principal))))) {
6234 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6235 : // Error handled in mozilla::ipc::IPCResult
6236 0 : return MsgProcessingError;
6237 : }
6238 :
6239 0 : return MsgProcessed;
6240 : }
6241 : case PContent::Msg_NotifyLowMemory__ID:
6242 : {
6243 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6244 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6245 : }
6246 0 : AUTO_PROFILER_LABEL("PContent::Msg_NotifyLowMemory", OTHER);
6247 :
6248 0 : PContent::Transition(PContent::Msg_NotifyLowMemory__ID, (&(mState)));
6249 0 : if ((!(RecvNotifyLowMemory()))) {
6250 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6251 : // Error handled in mozilla::ipc::IPCResult
6252 0 : return MsgProcessingError;
6253 : }
6254 :
6255 0 : return MsgProcessed;
6256 : }
6257 : case PContent::Msg_GetFilesRequest__ID:
6258 : {
6259 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6260 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6261 : }
6262 0 : AUTO_PROFILER_LABEL("PContent::Msg_GetFilesRequest", OTHER);
6263 :
6264 0 : PickleIterator iter__(msg__);
6265 : nsID aID;
6266 0 : nsString aDirectory;
6267 : bool aRecursiveFlag;
6268 :
6269 0 : if ((!(Read((&(aID)), (&(msg__)), (&(iter__)))))) {
6270 0 : FatalError("Error deserializing 'nsID'");
6271 0 : return MsgValueError;
6272 : }
6273 : // Sentinel = 'aID'
6274 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) {
6275 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsID'");
6276 0 : return MsgValueError;
6277 : }
6278 0 : if ((!(Read((&(aDirectory)), (&(msg__)), (&(iter__)))))) {
6279 0 : FatalError("Error deserializing 'nsString'");
6280 0 : return MsgValueError;
6281 : }
6282 : // Sentinel = 'aDirectory'
6283 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 106387836)))) {
6284 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
6285 0 : return MsgValueError;
6286 : }
6287 0 : if ((!(Read((&(aRecursiveFlag)), (&(msg__)), (&(iter__)))))) {
6288 0 : FatalError("Error deserializing 'bool'");
6289 0 : return MsgValueError;
6290 : }
6291 : // Sentinel = 'aRecursiveFlag'
6292 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3322465491)))) {
6293 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
6294 0 : return MsgValueError;
6295 : }
6296 0 : (msg__).EndRead(iter__, (msg__).type());
6297 0 : PContent::Transition(PContent::Msg_GetFilesRequest__ID, (&(mState)));
6298 0 : if ((!(RecvGetFilesRequest(mozilla::Move(aID), mozilla::Move(aDirectory), mozilla::Move(aRecursiveFlag))))) {
6299 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6300 : // Error handled in mozilla::ipc::IPCResult
6301 0 : return MsgProcessingError;
6302 : }
6303 :
6304 0 : return MsgProcessed;
6305 : }
6306 : case PContent::Msg_DeleteGetFilesRequest__ID:
6307 : {
6308 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6309 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6310 : }
6311 0 : AUTO_PROFILER_LABEL("PContent::Msg_DeleteGetFilesRequest", OTHER);
6312 :
6313 0 : PickleIterator iter__(msg__);
6314 : nsID aID;
6315 :
6316 0 : if ((!(Read((&(aID)), (&(msg__)), (&(iter__)))))) {
6317 0 : FatalError("Error deserializing 'nsID'");
6318 0 : return MsgValueError;
6319 : }
6320 : // Sentinel = 'aID'
6321 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) {
6322 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsID'");
6323 0 : return MsgValueError;
6324 : }
6325 0 : (msg__).EndRead(iter__, (msg__).type());
6326 0 : PContent::Transition(PContent::Msg_DeleteGetFilesRequest__ID, (&(mState)));
6327 0 : if ((!(RecvDeleteGetFilesRequest(mozilla::Move(aID))))) {
6328 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6329 : // Error handled in mozilla::ipc::IPCResult
6330 0 : return MsgProcessingError;
6331 : }
6332 :
6333 0 : return MsgProcessed;
6334 : }
6335 : case PContent::Msg_FileCreationRequest__ID:
6336 : {
6337 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6338 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6339 : }
6340 0 : AUTO_PROFILER_LABEL("PContent::Msg_FileCreationRequest", OTHER);
6341 :
6342 0 : PickleIterator iter__(msg__);
6343 : nsID aID;
6344 0 : nsString aFullPath;
6345 0 : nsString aType;
6346 0 : nsString aName;
6347 : bool lastModifiedPassed;
6348 : int64_t lastModified;
6349 : bool aExistenceCheck;
6350 : bool aIsFromNsIFile;
6351 :
6352 0 : if ((!(Read((&(aID)), (&(msg__)), (&(iter__)))))) {
6353 0 : FatalError("Error deserializing 'nsID'");
6354 0 : return MsgValueError;
6355 : }
6356 : // Sentinel = 'aID'
6357 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) {
6358 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsID'");
6359 0 : return MsgValueError;
6360 : }
6361 0 : if ((!(Read((&(aFullPath)), (&(msg__)), (&(iter__)))))) {
6362 0 : FatalError("Error deserializing 'nsString'");
6363 0 : return MsgValueError;
6364 : }
6365 : // Sentinel = 'aFullPath'
6366 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4067018590)))) {
6367 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
6368 0 : return MsgValueError;
6369 : }
6370 0 : if ((!(Read((&(aType)), (&(msg__)), (&(iter__)))))) {
6371 0 : FatalError("Error deserializing 'nsString'");
6372 0 : return MsgValueError;
6373 : }
6374 : // Sentinel = 'aType'
6375 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1819585676)))) {
6376 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
6377 0 : return MsgValueError;
6378 : }
6379 0 : if ((!(Read((&(aName)), (&(msg__)), (&(iter__)))))) {
6380 0 : FatalError("Error deserializing 'nsString'");
6381 0 : return MsgValueError;
6382 : }
6383 : // Sentinel = 'aName'
6384 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1450162941)))) {
6385 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
6386 0 : return MsgValueError;
6387 : }
6388 0 : if ((!(Read((&(lastModifiedPassed)), (&(msg__)), (&(iter__)))))) {
6389 0 : FatalError("Error deserializing 'bool'");
6390 0 : return MsgValueError;
6391 : }
6392 : // Sentinel = 'lastModifiedPassed'
6393 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3066214163)))) {
6394 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
6395 0 : return MsgValueError;
6396 : }
6397 0 : if ((!(Read((&(lastModified)), (&(msg__)), (&(iter__)))))) {
6398 0 : FatalError("Error deserializing 'int64_t'");
6399 0 : return MsgValueError;
6400 : }
6401 : // Sentinel = 'lastModified'
6402 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3456113257)))) {
6403 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int64_t'");
6404 0 : return MsgValueError;
6405 : }
6406 0 : if ((!(Read((&(aExistenceCheck)), (&(msg__)), (&(iter__)))))) {
6407 0 : FatalError("Error deserializing 'bool'");
6408 0 : return MsgValueError;
6409 : }
6410 : // Sentinel = 'aExistenceCheck'
6411 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1222718518)))) {
6412 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
6413 0 : return MsgValueError;
6414 : }
6415 0 : if ((!(Read((&(aIsFromNsIFile)), (&(msg__)), (&(iter__)))))) {
6416 0 : FatalError("Error deserializing 'bool'");
6417 0 : return MsgValueError;
6418 : }
6419 : // Sentinel = 'aIsFromNsIFile'
6420 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3315483341)))) {
6421 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
6422 0 : return MsgValueError;
6423 : }
6424 0 : (msg__).EndRead(iter__, (msg__).type());
6425 0 : PContent::Transition(PContent::Msg_FileCreationRequest__ID, (&(mState)));
6426 0 : if ((!(RecvFileCreationRequest(mozilla::Move(aID), mozilla::Move(aFullPath), mozilla::Move(aType), mozilla::Move(aName), mozilla::Move(lastModifiedPassed), mozilla::Move(lastModified), mozilla::Move(aExistenceCheck), mozilla::Move(aIsFromNsIFile))))) {
6427 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6428 : // Error handled in mozilla::ipc::IPCResult
6429 0 : return MsgProcessingError;
6430 : }
6431 :
6432 0 : return MsgProcessed;
6433 : }
6434 : case PContent::Msg_StoreAndBroadcastBlobURLRegistration__ID:
6435 : {
6436 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6437 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6438 : }
6439 0 : AUTO_PROFILER_LABEL("PContent::Msg_StoreAndBroadcastBlobURLRegistration", OTHER);
6440 :
6441 0 : PickleIterator iter__(msg__);
6442 0 : nsCString url;
6443 0 : IPCBlob blob;
6444 0 : Principal principal;
6445 :
6446 0 : if ((!(Read((&(url)), (&(msg__)), (&(iter__)))))) {
6447 0 : FatalError("Error deserializing 'nsCString'");
6448 0 : return MsgValueError;
6449 : }
6450 : // Sentinel = 'url'
6451 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210600)))) {
6452 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
6453 0 : return MsgValueError;
6454 : }
6455 0 : if ((!(Read((&(blob)), (&(msg__)), (&(iter__)))))) {
6456 0 : FatalError("Error deserializing 'IPCBlob'");
6457 0 : return MsgValueError;
6458 : }
6459 : // Sentinel = 'blob'
6460 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1963585077)))) {
6461 0 : mozilla::ipc::SentinelReadError("Error deserializing 'IPCBlob'");
6462 0 : return MsgValueError;
6463 : }
6464 0 : if ((!(Read((&(principal)), (&(msg__)), (&(iter__)))))) {
6465 0 : FatalError("Error deserializing 'Principal'");
6466 0 : return MsgValueError;
6467 : }
6468 : // Sentinel = 'principal'
6469 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
6470 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
6471 0 : return MsgValueError;
6472 : }
6473 0 : (msg__).EndRead(iter__, (msg__).type());
6474 0 : PContent::Transition(PContent::Msg_StoreAndBroadcastBlobURLRegistration__ID, (&(mState)));
6475 0 : if ((!(RecvStoreAndBroadcastBlobURLRegistration(mozilla::Move(url), mozilla::Move(blob), mozilla::Move(principal))))) {
6476 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6477 : // Error handled in mozilla::ipc::IPCResult
6478 0 : return MsgProcessingError;
6479 : }
6480 :
6481 0 : return MsgProcessed;
6482 : }
6483 : case PContent::Msg_UnstoreAndBroadcastBlobURLUnregistration__ID:
6484 : {
6485 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6486 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6487 : }
6488 0 : AUTO_PROFILER_LABEL("PContent::Msg_UnstoreAndBroadcastBlobURLUnregistration", OTHER);
6489 :
6490 0 : PickleIterator iter__(msg__);
6491 0 : nsCString url;
6492 :
6493 0 : if ((!(Read((&(url)), (&(msg__)), (&(iter__)))))) {
6494 0 : FatalError("Error deserializing 'nsCString'");
6495 0 : return MsgValueError;
6496 : }
6497 : // Sentinel = 'url'
6498 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210600)))) {
6499 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
6500 0 : return MsgValueError;
6501 : }
6502 0 : (msg__).EndRead(iter__, (msg__).type());
6503 0 : PContent::Transition(PContent::Msg_UnstoreAndBroadcastBlobURLUnregistration__ID, (&(mState)));
6504 0 : if ((!(RecvUnstoreAndBroadcastBlobURLUnregistration(mozilla::Move(url))))) {
6505 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6506 : // Error handled in mozilla::ipc::IPCResult
6507 0 : return MsgProcessingError;
6508 : }
6509 :
6510 0 : return MsgProcessed;
6511 : }
6512 : case PContent::Msg_BroadcastLocalStorageChange__ID:
6513 : {
6514 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6515 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6516 : }
6517 0 : AUTO_PROFILER_LABEL("PContent::Msg_BroadcastLocalStorageChange", OTHER);
6518 :
6519 0 : PickleIterator iter__(msg__);
6520 0 : nsString documentURI;
6521 0 : nsString key;
6522 0 : nsString oldValue;
6523 0 : nsString newValue;
6524 0 : Principal principal;
6525 : bool isPrivate;
6526 :
6527 0 : if ((!(Read((&(documentURI)), (&(msg__)), (&(iter__)))))) {
6528 0 : FatalError("Error deserializing 'nsString'");
6529 0 : return MsgValueError;
6530 : }
6531 : // Sentinel = 'documentURI'
6532 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3585823520)))) {
6533 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
6534 0 : return MsgValueError;
6535 : }
6536 0 : if ((!(Read((&(key)), (&(msg__)), (&(iter__)))))) {
6537 0 : FatalError("Error deserializing 'nsString'");
6538 0 : return MsgValueError;
6539 : }
6540 : // Sentinel = 'key'
6541 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 35142870)))) {
6542 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
6543 0 : return MsgValueError;
6544 : }
6545 0 : if ((!(Read((&(oldValue)), (&(msg__)), (&(iter__)))))) {
6546 0 : FatalError("Error deserializing 'nsString'");
6547 0 : return MsgValueError;
6548 : }
6549 : // Sentinel = 'oldValue'
6550 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2227149046)))) {
6551 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
6552 0 : return MsgValueError;
6553 : }
6554 0 : if ((!(Read((&(newValue)), (&(msg__)), (&(iter__)))))) {
6555 0 : FatalError("Error deserializing 'nsString'");
6556 0 : return MsgValueError;
6557 : }
6558 : // Sentinel = 'newValue'
6559 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1405873629)))) {
6560 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
6561 0 : return MsgValueError;
6562 : }
6563 0 : if ((!(Read((&(principal)), (&(msg__)), (&(iter__)))))) {
6564 0 : FatalError("Error deserializing 'Principal'");
6565 0 : return MsgValueError;
6566 : }
6567 : // Sentinel = 'principal'
6568 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
6569 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
6570 0 : return MsgValueError;
6571 : }
6572 0 : if ((!(Read((&(isPrivate)), (&(msg__)), (&(iter__)))))) {
6573 0 : FatalError("Error deserializing 'bool'");
6574 0 : return MsgValueError;
6575 : }
6576 : // Sentinel = 'isPrivate'
6577 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4033294520)))) {
6578 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
6579 0 : return MsgValueError;
6580 : }
6581 0 : (msg__).EndRead(iter__, (msg__).type());
6582 0 : PContent::Transition(PContent::Msg_BroadcastLocalStorageChange__ID, (&(mState)));
6583 0 : if ((!(RecvBroadcastLocalStorageChange(mozilla::Move(documentURI), mozilla::Move(key), mozilla::Move(oldValue), mozilla::Move(newValue), mozilla::Move(principal), mozilla::Move(isPrivate))))) {
6584 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6585 : // Error handled in mozilla::ipc::IPCResult
6586 0 : return MsgProcessingError;
6587 : }
6588 :
6589 0 : return MsgProcessed;
6590 : }
6591 : case PContent::Msg_AccumulateChildHistograms__ID:
6592 : {
6593 2 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6594 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6595 : }
6596 4 : AUTO_PROFILER_LABEL("PContent::Msg_AccumulateChildHistograms", OTHER);
6597 :
6598 2 : PickleIterator iter__(msg__);
6599 4 : nsTArray<Accumulation> accumulations;
6600 :
6601 2 : if ((!(Read((&(accumulations)), (&(msg__)), (&(iter__)))))) {
6602 0 : FatalError("Error deserializing 'nsTArray'");
6603 0 : return MsgValueError;
6604 : }
6605 : // Sentinel = 'accumulations'
6606 2 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2180708333)))) {
6607 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
6608 0 : return MsgValueError;
6609 : }
6610 2 : (msg__).EndRead(iter__, (msg__).type());
6611 2 : PContent::Transition(PContent::Msg_AccumulateChildHistograms__ID, (&(mState)));
6612 2 : if ((!(RecvAccumulateChildHistograms(mozilla::Move(accumulations))))) {
6613 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6614 : // Error handled in mozilla::ipc::IPCResult
6615 0 : return MsgProcessingError;
6616 : }
6617 :
6618 2 : return MsgProcessed;
6619 : }
6620 : case PContent::Msg_AccumulateChildKeyedHistograms__ID:
6621 : {
6622 2 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6623 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6624 : }
6625 4 : AUTO_PROFILER_LABEL("PContent::Msg_AccumulateChildKeyedHistograms", OTHER);
6626 :
6627 2 : PickleIterator iter__(msg__);
6628 4 : nsTArray<KeyedAccumulation> accumulations;
6629 :
6630 2 : if ((!(Read((&(accumulations)), (&(msg__)), (&(iter__)))))) {
6631 0 : FatalError("Error deserializing 'nsTArray'");
6632 0 : return MsgValueError;
6633 : }
6634 : // Sentinel = 'accumulations'
6635 2 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2180708333)))) {
6636 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
6637 0 : return MsgValueError;
6638 : }
6639 2 : (msg__).EndRead(iter__, (msg__).type());
6640 2 : PContent::Transition(PContent::Msg_AccumulateChildKeyedHistograms__ID, (&(mState)));
6641 2 : if ((!(RecvAccumulateChildKeyedHistograms(mozilla::Move(accumulations))))) {
6642 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6643 : // Error handled in mozilla::ipc::IPCResult
6644 0 : return MsgProcessingError;
6645 : }
6646 :
6647 2 : return MsgProcessed;
6648 : }
6649 : case PContent::Msg_UpdateChildScalars__ID:
6650 : {
6651 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6652 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6653 : }
6654 0 : AUTO_PROFILER_LABEL("PContent::Msg_UpdateChildScalars", OTHER);
6655 :
6656 0 : PickleIterator iter__(msg__);
6657 0 : nsTArray<ScalarAction> updates;
6658 :
6659 0 : if ((!(Read((&(updates)), (&(msg__)), (&(iter__)))))) {
6660 0 : FatalError("Error deserializing 'nsTArray'");
6661 0 : return MsgValueError;
6662 : }
6663 : // Sentinel = 'updates'
6664 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3737108565)))) {
6665 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
6666 0 : return MsgValueError;
6667 : }
6668 0 : (msg__).EndRead(iter__, (msg__).type());
6669 0 : PContent::Transition(PContent::Msg_UpdateChildScalars__ID, (&(mState)));
6670 0 : if ((!(RecvUpdateChildScalars(mozilla::Move(updates))))) {
6671 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6672 : // Error handled in mozilla::ipc::IPCResult
6673 0 : return MsgProcessingError;
6674 : }
6675 :
6676 0 : return MsgProcessed;
6677 : }
6678 : case PContent::Msg_UpdateChildKeyedScalars__ID:
6679 : {
6680 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6681 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6682 : }
6683 0 : AUTO_PROFILER_LABEL("PContent::Msg_UpdateChildKeyedScalars", OTHER);
6684 :
6685 0 : PickleIterator iter__(msg__);
6686 0 : nsTArray<KeyedScalarAction> updates;
6687 :
6688 0 : if ((!(Read((&(updates)), (&(msg__)), (&(iter__)))))) {
6689 0 : FatalError("Error deserializing 'nsTArray'");
6690 0 : return MsgValueError;
6691 : }
6692 : // Sentinel = 'updates'
6693 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3737108565)))) {
6694 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
6695 0 : return MsgValueError;
6696 : }
6697 0 : (msg__).EndRead(iter__, (msg__).type());
6698 0 : PContent::Transition(PContent::Msg_UpdateChildKeyedScalars__ID, (&(mState)));
6699 0 : if ((!(RecvUpdateChildKeyedScalars(mozilla::Move(updates))))) {
6700 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6701 : // Error handled in mozilla::ipc::IPCResult
6702 0 : return MsgProcessingError;
6703 : }
6704 :
6705 0 : return MsgProcessed;
6706 : }
6707 : case PContent::Msg_RecordChildEvents__ID:
6708 : {
6709 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6710 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6711 : }
6712 0 : AUTO_PROFILER_LABEL("PContent::Msg_RecordChildEvents", OTHER);
6713 :
6714 0 : PickleIterator iter__(msg__);
6715 0 : nsTArray<ChildEventData> events;
6716 :
6717 0 : if ((!(Read((&(events)), (&(msg__)), (&(iter__)))))) {
6718 0 : FatalError("Error deserializing 'nsTArray'");
6719 0 : return MsgValueError;
6720 : }
6721 : // Sentinel = 'events'
6722 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1921707453)))) {
6723 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
6724 0 : return MsgValueError;
6725 : }
6726 0 : (msg__).EndRead(iter__, (msg__).type());
6727 0 : PContent::Transition(PContent::Msg_RecordChildEvents__ID, (&(mState)));
6728 0 : if ((!(RecvRecordChildEvents(mozilla::Move(events))))) {
6729 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6730 : // Error handled in mozilla::ipc::IPCResult
6731 0 : return MsgProcessingError;
6732 : }
6733 :
6734 0 : return MsgProcessed;
6735 : }
6736 : case PContent::Msg_RecordDiscardedData__ID:
6737 : {
6738 2 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6739 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6740 : }
6741 4 : AUTO_PROFILER_LABEL("PContent::Msg_RecordDiscardedData", OTHER);
6742 :
6743 2 : PickleIterator iter__(msg__);
6744 : DiscardedData data;
6745 :
6746 2 : if ((!(Read((&(data)), (&(msg__)), (&(iter__)))))) {
6747 0 : FatalError("Error deserializing 'DiscardedData'");
6748 0 : return MsgValueError;
6749 : }
6750 : // Sentinel = 'data'
6751 2 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 843352540)))) {
6752 0 : mozilla::ipc::SentinelReadError("Error deserializing 'DiscardedData'");
6753 0 : return MsgValueError;
6754 : }
6755 2 : (msg__).EndRead(iter__, (msg__).type());
6756 2 : PContent::Transition(PContent::Msg_RecordDiscardedData__ID, (&(mState)));
6757 2 : if ((!(RecvRecordDiscardedData(mozilla::Move(data))))) {
6758 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6759 : // Error handled in mozilla::ipc::IPCResult
6760 0 : return MsgProcessingError;
6761 : }
6762 :
6763 2 : return MsgProcessed;
6764 : }
6765 : case PContent::Msg_A11yHandlerControl__ID:
6766 : {
6767 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6768 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6769 : }
6770 0 : AUTO_PROFILER_LABEL("PContent::Msg_A11yHandlerControl", OTHER);
6771 :
6772 0 : PickleIterator iter__(msg__);
6773 : uint32_t aPid;
6774 : IHandlerControlHolder aHandlerControl;
6775 :
6776 0 : if ((!(Read((&(aPid)), (&(msg__)), (&(iter__)))))) {
6777 0 : FatalError("Error deserializing 'uint32_t'");
6778 0 : return MsgValueError;
6779 : }
6780 : // Sentinel = 'aPid'
6781 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4120646000)))) {
6782 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
6783 0 : return MsgValueError;
6784 : }
6785 0 : if ((!(Read((&(aHandlerControl)), (&(msg__)), (&(iter__)))))) {
6786 0 : FatalError("Error deserializing 'IHandlerControlHolder'");
6787 0 : return MsgValueError;
6788 : }
6789 : // Sentinel = 'aHandlerControl'
6790 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3719124325)))) {
6791 0 : mozilla::ipc::SentinelReadError("Error deserializing 'IHandlerControlHolder'");
6792 0 : return MsgValueError;
6793 : }
6794 0 : (msg__).EndRead(iter__, (msg__).type());
6795 0 : PContent::Transition(PContent::Msg_A11yHandlerControl__ID, (&(mState)));
6796 0 : if ((!(RecvA11yHandlerControl(mozilla::Move(aPid), mozilla::Move(aHandlerControl))))) {
6797 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6798 : // Error handled in mozilla::ipc::IPCResult
6799 0 : return MsgProcessingError;
6800 : }
6801 :
6802 0 : return MsgProcessed;
6803 : }
6804 : case PContent::Msg_AddMemoryReport__ID:
6805 : {
6806 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6807 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6808 : }
6809 0 : AUTO_PROFILER_LABEL("PContent::Msg_AddMemoryReport", OTHER);
6810 :
6811 0 : PickleIterator iter__(msg__);
6812 0 : MemoryReport aReport;
6813 :
6814 0 : if ((!(Read((&(aReport)), (&(msg__)), (&(iter__)))))) {
6815 0 : FatalError("Error deserializing 'MemoryReport'");
6816 0 : return MsgValueError;
6817 : }
6818 : // Sentinel = 'aReport'
6819 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3792799576)))) {
6820 0 : mozilla::ipc::SentinelReadError("Error deserializing 'MemoryReport'");
6821 0 : return MsgValueError;
6822 : }
6823 0 : (msg__).EndRead(iter__, (msg__).type());
6824 0 : PContent::Transition(PContent::Msg_AddMemoryReport__ID, (&(mState)));
6825 0 : if ((!(RecvAddMemoryReport(mozilla::Move(aReport))))) {
6826 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6827 : // Error handled in mozilla::ipc::IPCResult
6828 0 : return MsgProcessingError;
6829 : }
6830 :
6831 0 : return MsgProcessed;
6832 : }
6833 : case PContent::Msg_FinishMemoryReport__ID:
6834 : {
6835 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6836 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6837 : }
6838 0 : AUTO_PROFILER_LABEL("PContent::Msg_FinishMemoryReport", OTHER);
6839 :
6840 0 : PickleIterator iter__(msg__);
6841 : uint32_t aGeneration;
6842 :
6843 0 : if ((!(Read((&(aGeneration)), (&(msg__)), (&(iter__)))))) {
6844 0 : FatalError("Error deserializing 'uint32_t'");
6845 0 : return MsgValueError;
6846 : }
6847 : // Sentinel = 'aGeneration'
6848 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2329783584)))) {
6849 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
6850 0 : return MsgValueError;
6851 : }
6852 0 : (msg__).EndRead(iter__, (msg__).type());
6853 0 : PContent::Transition(PContent::Msg_FinishMemoryReport__ID, (&(mState)));
6854 0 : if ((!(RecvFinishMemoryReport(mozilla::Move(aGeneration))))) {
6855 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6856 : // Error handled in mozilla::ipc::IPCResult
6857 0 : return MsgProcessingError;
6858 : }
6859 :
6860 0 : return MsgProcessed;
6861 : }
6862 : case PContent::Msg_MaybeReloadPlugins__ID:
6863 : {
6864 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6865 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6866 : }
6867 0 : AUTO_PROFILER_LABEL("PContent::Msg_MaybeReloadPlugins", OTHER);
6868 :
6869 0 : PContent::Transition(PContent::Msg_MaybeReloadPlugins__ID, (&(mState)));
6870 0 : if ((!(RecvMaybeReloadPlugins()))) {
6871 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6872 : // Error handled in mozilla::ipc::IPCResult
6873 0 : return MsgProcessingError;
6874 : }
6875 :
6876 0 : return MsgProcessed;
6877 : }
6878 : case PContent::Msg_AsyncMessage__ID:
6879 : {
6880 3 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6881 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6882 : }
6883 6 : AUTO_PROFILER_LABEL("PContent::Msg_AsyncMessage", OTHER);
6884 :
6885 3 : PickleIterator iter__(msg__);
6886 6 : nsString aMessage;
6887 6 : nsTArray<CpowEntry> aCpows;
6888 6 : Principal aPrincipal;
6889 6 : ClonedMessageData aData;
6890 :
6891 3 : if ((!(Read((&(aMessage)), (&(msg__)), (&(iter__)))))) {
6892 0 : FatalError("Error deserializing 'nsString'");
6893 0 : return MsgValueError;
6894 : }
6895 : // Sentinel = 'aMessage'
6896 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3453110902)))) {
6897 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
6898 0 : return MsgValueError;
6899 : }
6900 3 : if ((!(Read((&(aCpows)), (&(msg__)), (&(iter__)))))) {
6901 0 : FatalError("Error deserializing 'nsTArray'");
6902 0 : return MsgValueError;
6903 : }
6904 : // Sentinel = 'aCpows'
6905 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2178221451)))) {
6906 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
6907 0 : return MsgValueError;
6908 : }
6909 3 : if ((!(Read((&(aPrincipal)), (&(msg__)), (&(iter__)))))) {
6910 0 : FatalError("Error deserializing 'Principal'");
6911 0 : return MsgValueError;
6912 : }
6913 : // Sentinel = 'aPrincipal'
6914 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4097511)))) {
6915 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
6916 0 : return MsgValueError;
6917 : }
6918 3 : if ((!(Read((&(aData)), (&(msg__)), (&(iter__)))))) {
6919 0 : FatalError("Error deserializing 'ClonedMessageData'");
6920 0 : return MsgValueError;
6921 : }
6922 : // Sentinel = 'aData'
6923 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3285075324)))) {
6924 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ClonedMessageData'");
6925 0 : return MsgValueError;
6926 : }
6927 3 : (msg__).EndRead(iter__, (msg__).type());
6928 3 : PContent::Transition(PContent::Msg_AsyncMessage__ID, (&(mState)));
6929 3 : if ((!(RecvAsyncMessage(mozilla::Move(aMessage), mozilla::Move(aCpows), mozilla::Move(aPrincipal), mozilla::Move(aData))))) {
6930 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6931 : // Error handled in mozilla::ipc::IPCResult
6932 0 : return MsgProcessingError;
6933 : }
6934 :
6935 3 : return MsgProcessed;
6936 : }
6937 : case PContent::Msg_NotifyPushSubscriptionModifiedObservers__ID:
6938 : {
6939 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6940 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6941 : }
6942 0 : AUTO_PROFILER_LABEL("PContent::Msg_NotifyPushSubscriptionModifiedObservers", OTHER);
6943 :
6944 0 : PickleIterator iter__(msg__);
6945 0 : nsCString scope;
6946 0 : Principal principal;
6947 :
6948 0 : if ((!(Read((&(scope)), (&(msg__)), (&(iter__)))))) {
6949 0 : FatalError("Error deserializing 'nsCString'");
6950 0 : return MsgValueError;
6951 : }
6952 : // Sentinel = 'scope'
6953 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2191984953)))) {
6954 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
6955 0 : return MsgValueError;
6956 : }
6957 0 : if ((!(Read((&(principal)), (&(msg__)), (&(iter__)))))) {
6958 0 : FatalError("Error deserializing 'Principal'");
6959 0 : return MsgValueError;
6960 : }
6961 : // Sentinel = 'principal'
6962 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
6963 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
6964 0 : return MsgValueError;
6965 : }
6966 0 : (msg__).EndRead(iter__, (msg__).type());
6967 0 : PContent::Transition(PContent::Msg_NotifyPushSubscriptionModifiedObservers__ID, (&(mState)));
6968 0 : if ((!(RecvNotifyPushSubscriptionModifiedObservers(mozilla::Move(scope), mozilla::Move(principal))))) {
6969 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6970 : // Error handled in mozilla::ipc::IPCResult
6971 0 : return MsgProcessingError;
6972 : }
6973 :
6974 0 : return MsgProcessed;
6975 : }
6976 : default:
6977 : {
6978 0 : return MsgNotKnown;
6979 : }
6980 : case SHMEM_CREATED_MESSAGE_TYPE:
6981 : {
6982 1 : if ((!(ShmemCreated(msg__)))) {
6983 0 : return MsgPayloadError;
6984 : }
6985 1 : return MsgProcessed;
6986 : }
6987 : case SHMEM_DESTROYED_MESSAGE_TYPE:
6988 : {
6989 0 : if ((!(ShmemDestroyed(msg__)))) {
6990 0 : return MsgPayloadError;
6991 : }
6992 0 : return MsgProcessed;
6993 : }
6994 : }
6995 : }
6996 :
6997 0 : auto PContentParent::OnMessageReceived(
6998 : const Message& msg__,
6999 : Message*& reply__) -> PContentParent::Result
7000 : {
7001 0 : int32_t route__ = (msg__).routing_id();
7002 0 : if ((MSG_ROUTING_CONTROL) != (route__)) {
7003 0 : ChannelListener* routed__ = Lookup(route__);
7004 0 : if ((!(routed__))) {
7005 0 : return MsgRouteError;
7006 : }
7007 0 : return (routed__)->OnMessageReceived(msg__, reply__);
7008 : }
7009 :
7010 0 : switch ((msg__).type()) {
7011 : case PContent::Msg_CreateChildProcess__ID:
7012 : {
7013 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7014 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7015 : }
7016 0 : AUTO_PROFILER_LABEL("PContent::Msg_CreateChildProcess", OTHER);
7017 :
7018 0 : PickleIterator iter__(msg__);
7019 0 : IPCTabContext context;
7020 : ProcessPriority priority;
7021 0 : TabId openerTabId;
7022 0 : TabId tabId;
7023 :
7024 0 : if ((!(Read((&(context)), (&(msg__)), (&(iter__)))))) {
7025 0 : FatalError("Error deserializing 'IPCTabContext'");
7026 0 : return MsgValueError;
7027 : }
7028 : // Sentinel = 'context'
7029 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3514529014)))) {
7030 0 : mozilla::ipc::SentinelReadError("Error deserializing 'IPCTabContext'");
7031 0 : return MsgValueError;
7032 : }
7033 0 : if ((!(Read((&(priority)), (&(msg__)), (&(iter__)))))) {
7034 0 : FatalError("Error deserializing 'ProcessPriority'");
7035 0 : return MsgValueError;
7036 : }
7037 : // Sentinel = 'priority'
7038 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 558136112)))) {
7039 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ProcessPriority'");
7040 0 : return MsgValueError;
7041 : }
7042 0 : if ((!(Read((&(openerTabId)), (&(msg__)), (&(iter__)))))) {
7043 0 : FatalError("Error deserializing 'TabId'");
7044 0 : return MsgValueError;
7045 : }
7046 : // Sentinel = 'openerTabId'
7047 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 817688674)))) {
7048 0 : mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
7049 0 : return MsgValueError;
7050 : }
7051 0 : if ((!(Read((&(tabId)), (&(msg__)), (&(iter__)))))) {
7052 0 : FatalError("Error deserializing 'TabId'");
7053 0 : return MsgValueError;
7054 : }
7055 : // Sentinel = 'tabId'
7056 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3419081923)))) {
7057 0 : mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
7058 0 : return MsgValueError;
7059 : }
7060 0 : (msg__).EndRead(iter__, (msg__).type());
7061 0 : PContent::Transition(PContent::Msg_CreateChildProcess__ID, (&(mState)));
7062 0 : int32_t id__ = MSG_ROUTING_CONTROL;
7063 0 : ContentParentId cpId;
7064 : bool isForBrowser;
7065 0 : if ((!(RecvCreateChildProcess(mozilla::Move(context), mozilla::Move(priority), mozilla::Move(openerTabId), mozilla::Move(tabId), (&(cpId)), (&(isForBrowser)))))) {
7066 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7067 : // Error handled in mozilla::ipc::IPCResult
7068 0 : return MsgProcessingError;
7069 : }
7070 :
7071 0 : reply__ = PContent::Reply_CreateChildProcess(id__);
7072 :
7073 0 : Write(cpId, reply__);
7074 : // Sentinel = 'cpId'
7075 0 : (reply__)->WriteSentinel(2452595622);
7076 0 : Write(isForBrowser, reply__);
7077 : // Sentinel = 'isForBrowser'
7078 0 : (reply__)->WriteSentinel(2051565587);
7079 0 : (reply__)->set_sync();
7080 0 : (reply__)->set_reply();
7081 :
7082 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7083 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7084 : }
7085 0 : return MsgProcessed;
7086 : }
7087 : case PContent::Msg_BridgeToChildProcess__ID:
7088 : {
7089 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7090 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7091 : }
7092 0 : AUTO_PROFILER_LABEL("PContent::Msg_BridgeToChildProcess", OTHER);
7093 :
7094 0 : PickleIterator iter__(msg__);
7095 0 : ContentParentId cpId;
7096 :
7097 0 : if ((!(Read((&(cpId)), (&(msg__)), (&(iter__)))))) {
7098 0 : FatalError("Error deserializing 'ContentParentId'");
7099 0 : return MsgValueError;
7100 : }
7101 : // Sentinel = 'cpId'
7102 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2452595622)))) {
7103 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ContentParentId'");
7104 0 : return MsgValueError;
7105 : }
7106 0 : (msg__).EndRead(iter__, (msg__).type());
7107 0 : PContent::Transition(PContent::Msg_BridgeToChildProcess__ID, (&(mState)));
7108 0 : int32_t id__ = MSG_ROUTING_CONTROL;
7109 0 : Endpoint<mozilla::dom::PContentBridgeParent> endpoint;
7110 0 : if ((!(RecvBridgeToChildProcess(mozilla::Move(cpId), (&(endpoint)))))) {
7111 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7112 : // Error handled in mozilla::ipc::IPCResult
7113 0 : return MsgProcessingError;
7114 : }
7115 :
7116 0 : reply__ = PContent::Reply_BridgeToChildProcess(id__);
7117 :
7118 0 : Write(endpoint, reply__);
7119 : // Sentinel = 'endpoint'
7120 0 : (reply__)->WriteSentinel(3610972515);
7121 0 : (reply__)->set_sync();
7122 0 : (reply__)->set_reply();
7123 :
7124 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7125 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7126 : }
7127 0 : return MsgProcessed;
7128 : }
7129 : case PContent::Msg_LoadPlugin__ID:
7130 : {
7131 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7132 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7133 : }
7134 0 : AUTO_PROFILER_LABEL("PContent::Msg_LoadPlugin", OTHER);
7135 :
7136 0 : PickleIterator iter__(msg__);
7137 : uint32_t aPluginId;
7138 :
7139 0 : if ((!(Read((&(aPluginId)), (&(msg__)), (&(iter__)))))) {
7140 0 : FatalError("Error deserializing 'uint32_t'");
7141 0 : return MsgValueError;
7142 : }
7143 : // Sentinel = 'aPluginId'
7144 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4181313310)))) {
7145 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
7146 0 : return MsgValueError;
7147 : }
7148 0 : (msg__).EndRead(iter__, (msg__).type());
7149 0 : PContent::Transition(PContent::Msg_LoadPlugin__ID, (&(mState)));
7150 0 : int32_t id__ = MSG_ROUTING_CONTROL;
7151 : nsresult aResult;
7152 : uint32_t aRunID;
7153 0 : Endpoint<mozilla::plugins::PPluginModuleParent> aEndpoint;
7154 0 : if ((!(RecvLoadPlugin(mozilla::Move(aPluginId), (&(aResult)), (&(aRunID)), (&(aEndpoint)))))) {
7155 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7156 : // Error handled in mozilla::ipc::IPCResult
7157 0 : return MsgProcessingError;
7158 : }
7159 :
7160 0 : reply__ = PContent::Reply_LoadPlugin(id__);
7161 :
7162 0 : Write(aResult, reply__);
7163 : // Sentinel = 'aResult'
7164 0 : (reply__)->WriteSentinel(3888726089);
7165 0 : Write(aRunID, reply__);
7166 : // Sentinel = 'aRunID'
7167 0 : (reply__)->WriteSentinel(2758209365);
7168 0 : Write(aEndpoint, reply__);
7169 : // Sentinel = 'aEndpoint'
7170 0 : (reply__)->WriteSentinel(2457438235);
7171 0 : (reply__)->set_sync();
7172 0 : (reply__)->set_reply();
7173 :
7174 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7175 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7176 : }
7177 0 : return MsgProcessed;
7178 : }
7179 : case PContent::Msg_ConnectPluginBridge__ID:
7180 : {
7181 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7182 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7183 : }
7184 0 : AUTO_PROFILER_LABEL("PContent::Msg_ConnectPluginBridge", OTHER);
7185 :
7186 0 : PickleIterator iter__(msg__);
7187 : uint32_t aPluginId;
7188 :
7189 0 : if ((!(Read((&(aPluginId)), (&(msg__)), (&(iter__)))))) {
7190 0 : FatalError("Error deserializing 'uint32_t'");
7191 0 : return MsgValueError;
7192 : }
7193 : // Sentinel = 'aPluginId'
7194 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4181313310)))) {
7195 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
7196 0 : return MsgValueError;
7197 : }
7198 0 : (msg__).EndRead(iter__, (msg__).type());
7199 0 : PContent::Transition(PContent::Msg_ConnectPluginBridge__ID, (&(mState)));
7200 0 : int32_t id__ = MSG_ROUTING_CONTROL;
7201 : nsresult rv;
7202 0 : Endpoint<mozilla::plugins::PPluginModuleParent> aEndpoint;
7203 0 : if ((!(RecvConnectPluginBridge(mozilla::Move(aPluginId), (&(rv)), (&(aEndpoint)))))) {
7204 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7205 : // Error handled in mozilla::ipc::IPCResult
7206 0 : return MsgProcessingError;
7207 : }
7208 :
7209 0 : reply__ = PContent::Reply_ConnectPluginBridge(id__);
7210 :
7211 0 : Write(rv, reply__);
7212 : // Sentinel = 'rv'
7213 0 : (reply__)->WriteSentinel(702481058);
7214 0 : Write(aEndpoint, reply__);
7215 : // Sentinel = 'aEndpoint'
7216 0 : (reply__)->WriteSentinel(2457438235);
7217 0 : (reply__)->set_sync();
7218 0 : (reply__)->set_reply();
7219 :
7220 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7221 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7222 : }
7223 0 : return MsgProcessed;
7224 : }
7225 : case PContent::Msg_GetBlocklistState__ID:
7226 : {
7227 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7228 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7229 : }
7230 0 : AUTO_PROFILER_LABEL("PContent::Msg_GetBlocklistState", OTHER);
7231 :
7232 0 : PickleIterator iter__(msg__);
7233 : uint32_t aPluginId;
7234 :
7235 0 : if ((!(Read((&(aPluginId)), (&(msg__)), (&(iter__)))))) {
7236 0 : FatalError("Error deserializing 'uint32_t'");
7237 0 : return MsgValueError;
7238 : }
7239 : // Sentinel = 'aPluginId'
7240 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4181313310)))) {
7241 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
7242 0 : return MsgValueError;
7243 : }
7244 0 : (msg__).EndRead(iter__, (msg__).type());
7245 0 : PContent::Transition(PContent::Msg_GetBlocklistState__ID, (&(mState)));
7246 0 : int32_t id__ = MSG_ROUTING_CONTROL;
7247 : uint32_t aState;
7248 0 : if ((!(RecvGetBlocklistState(mozilla::Move(aPluginId), (&(aState)))))) {
7249 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7250 : // Error handled in mozilla::ipc::IPCResult
7251 0 : return MsgProcessingError;
7252 : }
7253 :
7254 0 : reply__ = PContent::Reply_GetBlocklistState(id__);
7255 :
7256 0 : Write(aState, reply__);
7257 : // Sentinel = 'aState'
7258 0 : (reply__)->WriteSentinel(3694751962);
7259 0 : (reply__)->set_sync();
7260 0 : (reply__)->set_reply();
7261 :
7262 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7263 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7264 : }
7265 0 : return MsgProcessed;
7266 : }
7267 : case PContent::Msg_NSSU2FTokenIsCompatibleVersion__ID:
7268 : {
7269 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7270 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7271 : }
7272 0 : AUTO_PROFILER_LABEL("PContent::Msg_NSSU2FTokenIsCompatibleVersion", OTHER);
7273 :
7274 0 : PickleIterator iter__(msg__);
7275 0 : nsString version;
7276 :
7277 0 : if ((!(Read((&(version)), (&(msg__)), (&(iter__)))))) {
7278 0 : FatalError("Error deserializing 'nsString'");
7279 0 : return MsgValueError;
7280 : }
7281 : // Sentinel = 'version'
7282 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4003360947)))) {
7283 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
7284 0 : return MsgValueError;
7285 : }
7286 0 : (msg__).EndRead(iter__, (msg__).type());
7287 0 : PContent::Transition(PContent::Msg_NSSU2FTokenIsCompatibleVersion__ID, (&(mState)));
7288 0 : int32_t id__ = MSG_ROUTING_CONTROL;
7289 : bool result;
7290 0 : if ((!(RecvNSSU2FTokenIsCompatibleVersion(mozilla::Move(version), (&(result)))))) {
7291 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7292 : // Error handled in mozilla::ipc::IPCResult
7293 0 : return MsgProcessingError;
7294 : }
7295 :
7296 0 : reply__ = PContent::Reply_NSSU2FTokenIsCompatibleVersion(id__);
7297 :
7298 0 : Write(result, reply__);
7299 : // Sentinel = 'result'
7300 0 : (reply__)->WriteSentinel(3991766165);
7301 0 : (reply__)->set_sync();
7302 0 : (reply__)->set_reply();
7303 :
7304 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7305 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7306 : }
7307 0 : return MsgProcessed;
7308 : }
7309 : case PContent::Msg_NSSU2FTokenIsRegistered__ID:
7310 : {
7311 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7312 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7313 : }
7314 0 : AUTO_PROFILER_LABEL("PContent::Msg_NSSU2FTokenIsRegistered", OTHER);
7315 :
7316 0 : PickleIterator iter__(msg__);
7317 0 : nsTArray<uint8_t> keyHandle;
7318 0 : nsTArray<uint8_t> application;
7319 :
7320 0 : if ((!(Read((&(keyHandle)), (&(msg__)), (&(iter__)))))) {
7321 0 : FatalError("Error deserializing 'nsTArray'");
7322 0 : return MsgValueError;
7323 : }
7324 : // Sentinel = 'keyHandle'
7325 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2730345426)))) {
7326 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
7327 0 : return MsgValueError;
7328 : }
7329 0 : if ((!(Read((&(application)), (&(msg__)), (&(iter__)))))) {
7330 0 : FatalError("Error deserializing 'nsTArray'");
7331 0 : return MsgValueError;
7332 : }
7333 : // Sentinel = 'application'
7334 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1681668017)))) {
7335 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
7336 0 : return MsgValueError;
7337 : }
7338 0 : (msg__).EndRead(iter__, (msg__).type());
7339 0 : PContent::Transition(PContent::Msg_NSSU2FTokenIsRegistered__ID, (&(mState)));
7340 0 : int32_t id__ = MSG_ROUTING_CONTROL;
7341 : bool isValidKeyHandle;
7342 0 : if ((!(RecvNSSU2FTokenIsRegistered(mozilla::Move(keyHandle), mozilla::Move(application), (&(isValidKeyHandle)))))) {
7343 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7344 : // Error handled in mozilla::ipc::IPCResult
7345 0 : return MsgProcessingError;
7346 : }
7347 :
7348 0 : reply__ = PContent::Reply_NSSU2FTokenIsRegistered(id__);
7349 :
7350 0 : Write(isValidKeyHandle, reply__);
7351 : // Sentinel = 'isValidKeyHandle'
7352 0 : (reply__)->WriteSentinel(2229168629);
7353 0 : (reply__)->set_sync();
7354 0 : (reply__)->set_reply();
7355 :
7356 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7357 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7358 : }
7359 0 : return MsgProcessed;
7360 : }
7361 : case PContent::Msg_NSSU2FTokenRegister__ID:
7362 : {
7363 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7364 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7365 : }
7366 0 : AUTO_PROFILER_LABEL("PContent::Msg_NSSU2FTokenRegister", OTHER);
7367 :
7368 0 : PickleIterator iter__(msg__);
7369 0 : nsTArray<uint8_t> application;
7370 0 : nsTArray<uint8_t> challenge;
7371 :
7372 0 : if ((!(Read((&(application)), (&(msg__)), (&(iter__)))))) {
7373 0 : FatalError("Error deserializing 'nsTArray'");
7374 0 : return MsgValueError;
7375 : }
7376 : // Sentinel = 'application'
7377 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1681668017)))) {
7378 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
7379 0 : return MsgValueError;
7380 : }
7381 0 : if ((!(Read((&(challenge)), (&(msg__)), (&(iter__)))))) {
7382 0 : FatalError("Error deserializing 'nsTArray'");
7383 0 : return MsgValueError;
7384 : }
7385 : // Sentinel = 'challenge'
7386 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3710327146)))) {
7387 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
7388 0 : return MsgValueError;
7389 : }
7390 0 : (msg__).EndRead(iter__, (msg__).type());
7391 0 : PContent::Transition(PContent::Msg_NSSU2FTokenRegister__ID, (&(mState)));
7392 0 : int32_t id__ = MSG_ROUTING_CONTROL;
7393 0 : nsTArray<uint8_t> registration;
7394 0 : if ((!(RecvNSSU2FTokenRegister(mozilla::Move(application), mozilla::Move(challenge), (&(registration)))))) {
7395 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7396 : // Error handled in mozilla::ipc::IPCResult
7397 0 : return MsgProcessingError;
7398 : }
7399 :
7400 0 : reply__ = PContent::Reply_NSSU2FTokenRegister(id__);
7401 :
7402 0 : Write(registration, reply__);
7403 : // Sentinel = 'registration'
7404 0 : (reply__)->WriteSentinel(2467561239);
7405 0 : (reply__)->set_sync();
7406 0 : (reply__)->set_reply();
7407 :
7408 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7409 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7410 : }
7411 0 : return MsgProcessed;
7412 : }
7413 : case PContent::Msg_NSSU2FTokenSign__ID:
7414 : {
7415 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7416 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7417 : }
7418 0 : AUTO_PROFILER_LABEL("PContent::Msg_NSSU2FTokenSign", OTHER);
7419 :
7420 0 : PickleIterator iter__(msg__);
7421 0 : nsTArray<uint8_t> application;
7422 0 : nsTArray<uint8_t> challenge;
7423 0 : nsTArray<uint8_t> keyHandle;
7424 :
7425 0 : if ((!(Read((&(application)), (&(msg__)), (&(iter__)))))) {
7426 0 : FatalError("Error deserializing 'nsTArray'");
7427 0 : return MsgValueError;
7428 : }
7429 : // Sentinel = 'application'
7430 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1681668017)))) {
7431 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
7432 0 : return MsgValueError;
7433 : }
7434 0 : if ((!(Read((&(challenge)), (&(msg__)), (&(iter__)))))) {
7435 0 : FatalError("Error deserializing 'nsTArray'");
7436 0 : return MsgValueError;
7437 : }
7438 : // Sentinel = 'challenge'
7439 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3710327146)))) {
7440 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
7441 0 : return MsgValueError;
7442 : }
7443 0 : if ((!(Read((&(keyHandle)), (&(msg__)), (&(iter__)))))) {
7444 0 : FatalError("Error deserializing 'nsTArray'");
7445 0 : return MsgValueError;
7446 : }
7447 : // Sentinel = 'keyHandle'
7448 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2730345426)))) {
7449 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
7450 0 : return MsgValueError;
7451 : }
7452 0 : (msg__).EndRead(iter__, (msg__).type());
7453 0 : PContent::Transition(PContent::Msg_NSSU2FTokenSign__ID, (&(mState)));
7454 0 : int32_t id__ = MSG_ROUTING_CONTROL;
7455 0 : nsTArray<uint8_t> signature;
7456 0 : if ((!(RecvNSSU2FTokenSign(mozilla::Move(application), mozilla::Move(challenge), mozilla::Move(keyHandle), (&(signature)))))) {
7457 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7458 : // Error handled in mozilla::ipc::IPCResult
7459 0 : return MsgProcessingError;
7460 : }
7461 :
7462 0 : reply__ = PContent::Reply_NSSU2FTokenSign(id__);
7463 :
7464 0 : Write(signature, reply__);
7465 : // Sentinel = 'signature'
7466 0 : (reply__)->WriteSentinel(3024077559);
7467 0 : (reply__)->set_sync();
7468 0 : (reply__)->set_reply();
7469 :
7470 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7471 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7472 : }
7473 0 : return MsgProcessed;
7474 : }
7475 : case PContent::Msg_IsSecureURI__ID:
7476 : {
7477 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7478 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7479 : }
7480 0 : AUTO_PROFILER_LABEL("PContent::Msg_IsSecureURI", OTHER);
7481 :
7482 0 : PickleIterator iter__(msg__);
7483 : uint32_t aType;
7484 0 : URIParams aURI;
7485 : uint32_t aFlags;
7486 0 : OriginAttributes aOriginAttributes;
7487 :
7488 0 : if ((!(Read((&(aType)), (&(msg__)), (&(iter__)))))) {
7489 0 : FatalError("Error deserializing 'uint32_t'");
7490 0 : return MsgValueError;
7491 : }
7492 : // Sentinel = 'aType'
7493 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1819585676)))) {
7494 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
7495 0 : return MsgValueError;
7496 : }
7497 0 : if ((!(Read((&(aURI)), (&(msg__)), (&(iter__)))))) {
7498 0 : FatalError("Error deserializing 'URIParams'");
7499 0 : return MsgValueError;
7500 : }
7501 : // Sentinel = 'aURI'
7502 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2075506333)))) {
7503 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
7504 0 : return MsgValueError;
7505 : }
7506 0 : if ((!(Read((&(aFlags)), (&(msg__)), (&(iter__)))))) {
7507 0 : FatalError("Error deserializing 'uint32_t'");
7508 0 : return MsgValueError;
7509 : }
7510 : // Sentinel = 'aFlags'
7511 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3595665704)))) {
7512 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
7513 0 : return MsgValueError;
7514 : }
7515 0 : if ((!(Read((&(aOriginAttributes)), (&(msg__)), (&(iter__)))))) {
7516 0 : FatalError("Error deserializing 'OriginAttributes'");
7517 0 : return MsgValueError;
7518 : }
7519 : // Sentinel = 'aOriginAttributes'
7520 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2175998517)))) {
7521 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OriginAttributes'");
7522 0 : return MsgValueError;
7523 : }
7524 0 : (msg__).EndRead(iter__, (msg__).type());
7525 0 : PContent::Transition(PContent::Msg_IsSecureURI__ID, (&(mState)));
7526 0 : int32_t id__ = MSG_ROUTING_CONTROL;
7527 : bool isSecureURI;
7528 0 : if ((!(RecvIsSecureURI(mozilla::Move(aType), mozilla::Move(aURI), mozilla::Move(aFlags), mozilla::Move(aOriginAttributes), (&(isSecureURI)))))) {
7529 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7530 : // Error handled in mozilla::ipc::IPCResult
7531 0 : return MsgProcessingError;
7532 : }
7533 :
7534 0 : reply__ = PContent::Reply_IsSecureURI(id__);
7535 :
7536 0 : Write(isSecureURI, reply__);
7537 : // Sentinel = 'isSecureURI'
7538 0 : (reply__)->WriteSentinel(672781896);
7539 0 : (reply__)->set_sync();
7540 0 : (reply__)->set_reply();
7541 :
7542 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7543 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7544 : }
7545 0 : return MsgProcessed;
7546 : }
7547 : case PContent::Msg_PURLClassifierConstructor__ID:
7548 : {
7549 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7550 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7551 : }
7552 0 : AUTO_PROFILER_LABEL("PContent::Msg_PURLClassifierConstructor", OTHER);
7553 :
7554 0 : PickleIterator iter__(msg__);
7555 : ActorHandle handle__;
7556 : PURLClassifierParent* actor;
7557 0 : Principal principal;
7558 : bool useTrackingProtection;
7559 :
7560 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
7561 0 : FatalError("Error deserializing 'ActorHandle'");
7562 0 : return MsgValueError;
7563 : }
7564 : // Sentinel = 'actor'
7565 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
7566 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
7567 0 : return MsgValueError;
7568 : }
7569 0 : if ((!(Read((&(principal)), (&(msg__)), (&(iter__)))))) {
7570 0 : FatalError("Error deserializing 'Principal'");
7571 0 : return MsgValueError;
7572 : }
7573 : // Sentinel = 'principal'
7574 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
7575 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
7576 0 : return MsgValueError;
7577 : }
7578 0 : if ((!(Read((&(useTrackingProtection)), (&(msg__)), (&(iter__)))))) {
7579 0 : FatalError("Error deserializing 'bool'");
7580 0 : return MsgValueError;
7581 : }
7582 : // Sentinel = 'useTrackingProtection'
7583 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3366740154)))) {
7584 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
7585 0 : return MsgValueError;
7586 : }
7587 0 : (msg__).EndRead(iter__, (msg__).type());
7588 0 : PContent::Transition(PContent::Msg_PURLClassifierConstructor__ID, (&(mState)));
7589 : bool success;
7590 0 : actor = AllocPURLClassifierParent(principal, useTrackingProtection, (&(success)));
7591 0 : if ((!(actor))) {
7592 0 : NS_WARNING("Error constructing actor PURLClassifierParent");
7593 0 : return MsgValueError;
7594 : }
7595 0 : (actor)->SetManager(this);
7596 0 : RegisterID(actor, (handle__).mId);
7597 0 : (actor)->SetIPCChannel(GetIPCChannel());
7598 0 : (mManagedPURLClassifierParent).PutEntry(actor);
7599 0 : (actor)->mState = mozilla::dom::PURLClassifier::__Start;
7600 :
7601 0 : int32_t id__ = MSG_ROUTING_CONTROL;
7602 0 : if ((!(RecvPURLClassifierConstructor(mozilla::Move(actor), mozilla::Move(principal), mozilla::Move(useTrackingProtection), (&(success)))))) {
7603 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7604 : // Error handled in mozilla::ipc::IPCResult
7605 0 : return MsgProcessingError;
7606 : }
7607 0 : reply__ = PContent::Reply_PURLClassifierConstructor(id__);
7608 :
7609 0 : Write(success, reply__);
7610 : // Sentinel = 'success'
7611 0 : (reply__)->WriteSentinel(3877396070);
7612 0 : (reply__)->set_sync();
7613 0 : (reply__)->set_constructor();
7614 0 : (reply__)->set_reply();
7615 :
7616 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7617 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7618 : }
7619 :
7620 0 : return MsgProcessed;
7621 : }
7622 : case PContent::Msg_ClassifyLocal__ID:
7623 : {
7624 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7625 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7626 : }
7627 0 : AUTO_PROFILER_LABEL("PContent::Msg_ClassifyLocal", OTHER);
7628 :
7629 0 : PickleIterator iter__(msg__);
7630 0 : URIParams uri;
7631 0 : nsCString tables;
7632 :
7633 0 : if ((!(Read((&(uri)), (&(msg__)), (&(iter__)))))) {
7634 0 : FatalError("Error deserializing 'URIParams'");
7635 0 : return MsgValueError;
7636 : }
7637 : // Sentinel = 'uri'
7638 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
7639 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
7640 0 : return MsgValueError;
7641 : }
7642 0 : if ((!(Read((&(tables)), (&(msg__)), (&(iter__)))))) {
7643 0 : FatalError("Error deserializing 'nsCString'");
7644 0 : return MsgValueError;
7645 : }
7646 : // Sentinel = 'tables'
7647 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1212380705)))) {
7648 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
7649 0 : return MsgValueError;
7650 : }
7651 0 : (msg__).EndRead(iter__, (msg__).type());
7652 0 : PContent::Transition(PContent::Msg_ClassifyLocal__ID, (&(mState)));
7653 0 : int32_t id__ = MSG_ROUTING_CONTROL;
7654 : nsresult rv;
7655 0 : nsTArray<nsCString> results;
7656 0 : if ((!(RecvClassifyLocal(mozilla::Move(uri), mozilla::Move(tables), (&(rv)), (&(results)))))) {
7657 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7658 : // Error handled in mozilla::ipc::IPCResult
7659 0 : return MsgProcessingError;
7660 : }
7661 :
7662 0 : reply__ = PContent::Reply_ClassifyLocal(id__);
7663 :
7664 0 : Write(rv, reply__);
7665 : // Sentinel = 'rv'
7666 0 : (reply__)->WriteSentinel(702481058);
7667 0 : Write(results, reply__);
7668 : // Sentinel = 'results'
7669 0 : (reply__)->WriteSentinel(1173657613);
7670 0 : (reply__)->set_sync();
7671 0 : (reply__)->set_reply();
7672 :
7673 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7674 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7675 : }
7676 0 : return MsgProcessed;
7677 : }
7678 : case PContent::Msg_GetGfxVars__ID:
7679 : {
7680 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7681 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7682 : }
7683 0 : AUTO_PROFILER_LABEL("PContent::Msg_GetGfxVars", OTHER);
7684 :
7685 0 : PContent::Transition(PContent::Msg_GetGfxVars__ID, (&(mState)));
7686 0 : int32_t id__ = MSG_ROUTING_CONTROL;
7687 0 : nsTArray<GfxVarUpdate> vars;
7688 0 : if ((!(RecvGetGfxVars((&(vars)))))) {
7689 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7690 : // Error handled in mozilla::ipc::IPCResult
7691 0 : return MsgProcessingError;
7692 : }
7693 :
7694 0 : reply__ = PContent::Reply_GetGfxVars(id__);
7695 :
7696 0 : Write(vars, reply__);
7697 : // Sentinel = 'vars'
7698 0 : (reply__)->WriteSentinel(2632090118);
7699 0 : (reply__)->set_sync();
7700 0 : (reply__)->set_reply();
7701 :
7702 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7703 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7704 : }
7705 0 : return MsgProcessed;
7706 : }
7707 : case PContent::Msg_ReadFontList__ID:
7708 : {
7709 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7710 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7711 : }
7712 0 : AUTO_PROFILER_LABEL("PContent::Msg_ReadFontList", OTHER);
7713 :
7714 0 : PContent::Transition(PContent::Msg_ReadFontList__ID, (&(mState)));
7715 0 : int32_t id__ = MSG_ROUTING_CONTROL;
7716 0 : nsTArray<FontListEntry> retValue;
7717 0 : if ((!(RecvReadFontList((&(retValue)))))) {
7718 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7719 : // Error handled in mozilla::ipc::IPCResult
7720 0 : return MsgProcessingError;
7721 : }
7722 :
7723 0 : reply__ = PContent::Reply_ReadFontList(id__);
7724 :
7725 0 : Write(retValue, reply__);
7726 : // Sentinel = 'retValue'
7727 0 : (reply__)->WriteSentinel(3328961628);
7728 0 : (reply__)->set_sync();
7729 0 : (reply__)->set_reply();
7730 :
7731 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7732 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7733 : }
7734 0 : return MsgProcessed;
7735 : }
7736 : case PContent::Msg_SyncMessage__ID:
7737 : {
7738 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7739 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7740 : }
7741 0 : AUTO_PROFILER_LABEL("PContent::Msg_SyncMessage", OTHER);
7742 :
7743 0 : PickleIterator iter__(msg__);
7744 0 : nsString aMessage;
7745 0 : ClonedMessageData aData;
7746 0 : nsTArray<CpowEntry> aCpows;
7747 0 : Principal aPrincipal;
7748 :
7749 0 : if ((!(Read((&(aMessage)), (&(msg__)), (&(iter__)))))) {
7750 0 : FatalError("Error deserializing 'nsString'");
7751 0 : return MsgValueError;
7752 : }
7753 : // Sentinel = 'aMessage'
7754 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3453110902)))) {
7755 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
7756 0 : return MsgValueError;
7757 : }
7758 0 : if ((!(Read((&(aData)), (&(msg__)), (&(iter__)))))) {
7759 0 : FatalError("Error deserializing 'ClonedMessageData'");
7760 0 : return MsgValueError;
7761 : }
7762 : // Sentinel = 'aData'
7763 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3285075324)))) {
7764 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ClonedMessageData'");
7765 0 : return MsgValueError;
7766 : }
7767 0 : if ((!(Read((&(aCpows)), (&(msg__)), (&(iter__)))))) {
7768 0 : FatalError("Error deserializing 'nsTArray'");
7769 0 : return MsgValueError;
7770 : }
7771 : // Sentinel = 'aCpows'
7772 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2178221451)))) {
7773 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
7774 0 : return MsgValueError;
7775 : }
7776 0 : if ((!(Read((&(aPrincipal)), (&(msg__)), (&(iter__)))))) {
7777 0 : FatalError("Error deserializing 'Principal'");
7778 0 : return MsgValueError;
7779 : }
7780 : // Sentinel = 'aPrincipal'
7781 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4097511)))) {
7782 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
7783 0 : return MsgValueError;
7784 : }
7785 0 : (msg__).EndRead(iter__, (msg__).type());
7786 0 : PContent::Transition(PContent::Msg_SyncMessage__ID, (&(mState)));
7787 0 : int32_t id__ = MSG_ROUTING_CONTROL;
7788 0 : nsTArray<StructuredCloneData> retval;
7789 0 : if ((!(RecvSyncMessage(mozilla::Move(aMessage), mozilla::Move(aData), mozilla::Move(aCpows), mozilla::Move(aPrincipal), (&(retval)))))) {
7790 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7791 : // Error handled in mozilla::ipc::IPCResult
7792 0 : return MsgProcessingError;
7793 : }
7794 :
7795 0 : reply__ = PContent::Reply_SyncMessage(id__);
7796 :
7797 0 : Write(retval, reply__);
7798 : // Sentinel = 'retval'
7799 0 : (reply__)->WriteSentinel(3130628604);
7800 0 : (reply__)->set_sync();
7801 0 : (reply__)->set_reply();
7802 :
7803 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7804 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7805 : }
7806 0 : return MsgProcessed;
7807 : }
7808 : case PContent::Msg_RpcMessage__ID:
7809 : {
7810 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7811 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7812 : }
7813 0 : AUTO_PROFILER_LABEL("PContent::Msg_RpcMessage", OTHER);
7814 :
7815 0 : PickleIterator iter__(msg__);
7816 0 : nsString aMessage;
7817 0 : ClonedMessageData aData;
7818 0 : nsTArray<CpowEntry> aCpows;
7819 0 : Principal aPrincipal;
7820 :
7821 0 : if ((!(Read((&(aMessage)), (&(msg__)), (&(iter__)))))) {
7822 0 : FatalError("Error deserializing 'nsString'");
7823 0 : return MsgValueError;
7824 : }
7825 : // Sentinel = 'aMessage'
7826 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3453110902)))) {
7827 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
7828 0 : return MsgValueError;
7829 : }
7830 0 : if ((!(Read((&(aData)), (&(msg__)), (&(iter__)))))) {
7831 0 : FatalError("Error deserializing 'ClonedMessageData'");
7832 0 : return MsgValueError;
7833 : }
7834 : // Sentinel = 'aData'
7835 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3285075324)))) {
7836 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ClonedMessageData'");
7837 0 : return MsgValueError;
7838 : }
7839 0 : if ((!(Read((&(aCpows)), (&(msg__)), (&(iter__)))))) {
7840 0 : FatalError("Error deserializing 'nsTArray'");
7841 0 : return MsgValueError;
7842 : }
7843 : // Sentinel = 'aCpows'
7844 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2178221451)))) {
7845 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
7846 0 : return MsgValueError;
7847 : }
7848 0 : if ((!(Read((&(aPrincipal)), (&(msg__)), (&(iter__)))))) {
7849 0 : FatalError("Error deserializing 'Principal'");
7850 0 : return MsgValueError;
7851 : }
7852 : // Sentinel = 'aPrincipal'
7853 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4097511)))) {
7854 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
7855 0 : return MsgValueError;
7856 : }
7857 0 : (msg__).EndRead(iter__, (msg__).type());
7858 0 : PContent::Transition(PContent::Msg_RpcMessage__ID, (&(mState)));
7859 0 : int32_t id__ = MSG_ROUTING_CONTROL;
7860 0 : nsTArray<StructuredCloneData> retval;
7861 0 : if ((!(RecvRpcMessage(mozilla::Move(aMessage), mozilla::Move(aData), mozilla::Move(aCpows), mozilla::Move(aPrincipal), (&(retval)))))) {
7862 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7863 : // Error handled in mozilla::ipc::IPCResult
7864 0 : return MsgProcessingError;
7865 : }
7866 :
7867 0 : reply__ = PContent::Reply_RpcMessage(id__);
7868 :
7869 0 : Write(retval, reply__);
7870 : // Sentinel = 'retval'
7871 0 : (reply__)->WriteSentinel(3130628604);
7872 0 : (reply__)->set_sync();
7873 0 : (reply__)->set_reply();
7874 :
7875 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7876 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7877 : }
7878 0 : return MsgProcessed;
7879 : }
7880 : case PContent::Msg_GetClipboard__ID:
7881 : {
7882 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7883 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7884 : }
7885 0 : AUTO_PROFILER_LABEL("PContent::Msg_GetClipboard", OTHER);
7886 :
7887 0 : PickleIterator iter__(msg__);
7888 0 : nsTArray<nsCString> aTypes;
7889 : int32_t aWhichClipboard;
7890 :
7891 0 : if ((!(Read((&(aTypes)), (&(msg__)), (&(iter__)))))) {
7892 0 : FatalError("Error deserializing 'nsTArray'");
7893 0 : return MsgValueError;
7894 : }
7895 : // Sentinel = 'aTypes'
7896 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2467002798)))) {
7897 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
7898 0 : return MsgValueError;
7899 : }
7900 0 : if ((!(Read((&(aWhichClipboard)), (&(msg__)), (&(iter__)))))) {
7901 0 : FatalError("Error deserializing 'int32_t'");
7902 0 : return MsgValueError;
7903 : }
7904 : // Sentinel = 'aWhichClipboard'
7905 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4216338969)))) {
7906 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
7907 0 : return MsgValueError;
7908 : }
7909 0 : (msg__).EndRead(iter__, (msg__).type());
7910 0 : PContent::Transition(PContent::Msg_GetClipboard__ID, (&(mState)));
7911 0 : int32_t id__ = MSG_ROUTING_CONTROL;
7912 0 : IPCDataTransfer dataTransfer;
7913 0 : if ((!(RecvGetClipboard(mozilla::Move(aTypes), mozilla::Move(aWhichClipboard), (&(dataTransfer)))))) {
7914 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7915 : // Error handled in mozilla::ipc::IPCResult
7916 0 : return MsgProcessingError;
7917 : }
7918 :
7919 0 : reply__ = PContent::Reply_GetClipboard(id__);
7920 :
7921 0 : Write(dataTransfer, reply__);
7922 : // Sentinel = 'dataTransfer'
7923 0 : (reply__)->WriteSentinel(2250342981);
7924 0 : (reply__)->set_sync();
7925 0 : (reply__)->set_reply();
7926 :
7927 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7928 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7929 : }
7930 0 : return MsgProcessed;
7931 : }
7932 : case PContent::Msg_ClipboardHasType__ID:
7933 : {
7934 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7935 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7936 : }
7937 0 : AUTO_PROFILER_LABEL("PContent::Msg_ClipboardHasType", OTHER);
7938 :
7939 0 : PickleIterator iter__(msg__);
7940 0 : nsTArray<nsCString> aTypes;
7941 : int32_t aWhichClipboard;
7942 :
7943 0 : if ((!(Read((&(aTypes)), (&(msg__)), (&(iter__)))))) {
7944 0 : FatalError("Error deserializing 'nsTArray'");
7945 0 : return MsgValueError;
7946 : }
7947 : // Sentinel = 'aTypes'
7948 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2467002798)))) {
7949 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
7950 0 : return MsgValueError;
7951 : }
7952 0 : if ((!(Read((&(aWhichClipboard)), (&(msg__)), (&(iter__)))))) {
7953 0 : FatalError("Error deserializing 'int32_t'");
7954 0 : return MsgValueError;
7955 : }
7956 : // Sentinel = 'aWhichClipboard'
7957 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4216338969)))) {
7958 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
7959 0 : return MsgValueError;
7960 : }
7961 0 : (msg__).EndRead(iter__, (msg__).type());
7962 0 : PContent::Transition(PContent::Msg_ClipboardHasType__ID, (&(mState)));
7963 0 : int32_t id__ = MSG_ROUTING_CONTROL;
7964 : bool hasType;
7965 0 : if ((!(RecvClipboardHasType(mozilla::Move(aTypes), mozilla::Move(aWhichClipboard), (&(hasType)))))) {
7966 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7967 : // Error handled in mozilla::ipc::IPCResult
7968 0 : return MsgProcessingError;
7969 : }
7970 :
7971 0 : reply__ = PContent::Reply_ClipboardHasType(id__);
7972 :
7973 0 : Write(hasType, reply__);
7974 : // Sentinel = 'hasType'
7975 0 : (reply__)->WriteSentinel(2839560423);
7976 0 : (reply__)->set_sync();
7977 0 : (reply__)->set_reply();
7978 :
7979 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7980 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7981 : }
7982 0 : return MsgProcessed;
7983 : }
7984 : case PContent::Msg_GetSystemColors__ID:
7985 : {
7986 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7987 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7988 : }
7989 0 : AUTO_PROFILER_LABEL("PContent::Msg_GetSystemColors", OTHER);
7990 :
7991 0 : PickleIterator iter__(msg__);
7992 : uint32_t colorsCount;
7993 :
7994 0 : if ((!(Read((&(colorsCount)), (&(msg__)), (&(iter__)))))) {
7995 0 : FatalError("Error deserializing 'uint32_t'");
7996 0 : return MsgValueError;
7997 : }
7998 : // Sentinel = 'colorsCount'
7999 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 767523530)))) {
8000 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
8001 0 : return MsgValueError;
8002 : }
8003 0 : (msg__).EndRead(iter__, (msg__).type());
8004 0 : PContent::Transition(PContent::Msg_GetSystemColors__ID, (&(mState)));
8005 0 : int32_t id__ = MSG_ROUTING_CONTROL;
8006 0 : nsTArray<uint32_t> colors;
8007 0 : if ((!(RecvGetSystemColors(mozilla::Move(colorsCount), (&(colors)))))) {
8008 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8009 : // Error handled in mozilla::ipc::IPCResult
8010 0 : return MsgProcessingError;
8011 : }
8012 :
8013 0 : reply__ = PContent::Reply_GetSystemColors(id__);
8014 :
8015 0 : Write(colors, reply__);
8016 : // Sentinel = 'colors'
8017 0 : (reply__)->WriteSentinel(2508874770);
8018 0 : (reply__)->set_sync();
8019 0 : (reply__)->set_reply();
8020 :
8021 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8022 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8023 : }
8024 0 : return MsgProcessed;
8025 : }
8026 : case PContent::Msg_GetIconForExtension__ID:
8027 : {
8028 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8029 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8030 : }
8031 0 : AUTO_PROFILER_LABEL("PContent::Msg_GetIconForExtension", OTHER);
8032 :
8033 0 : PickleIterator iter__(msg__);
8034 0 : nsCString aFileExt;
8035 : uint32_t aIconSize;
8036 :
8037 0 : if ((!(Read((&(aFileExt)), (&(msg__)), (&(iter__)))))) {
8038 0 : FatalError("Error deserializing 'nsCString'");
8039 0 : return MsgValueError;
8040 : }
8041 : // Sentinel = 'aFileExt'
8042 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 931144044)))) {
8043 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
8044 0 : return MsgValueError;
8045 : }
8046 0 : if ((!(Read((&(aIconSize)), (&(msg__)), (&(iter__)))))) {
8047 0 : FatalError("Error deserializing 'uint32_t'");
8048 0 : return MsgValueError;
8049 : }
8050 : // Sentinel = 'aIconSize'
8051 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3889311776)))) {
8052 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
8053 0 : return MsgValueError;
8054 : }
8055 0 : (msg__).EndRead(iter__, (msg__).type());
8056 0 : PContent::Transition(PContent::Msg_GetIconForExtension__ID, (&(mState)));
8057 0 : int32_t id__ = MSG_ROUTING_CONTROL;
8058 0 : nsTArray<uint8_t> bits;
8059 0 : if ((!(RecvGetIconForExtension(mozilla::Move(aFileExt), mozilla::Move(aIconSize), (&(bits)))))) {
8060 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8061 : // Error handled in mozilla::ipc::IPCResult
8062 0 : return MsgProcessingError;
8063 : }
8064 :
8065 0 : reply__ = PContent::Reply_GetIconForExtension(id__);
8066 :
8067 0 : Write(bits, reply__);
8068 : // Sentinel = 'bits'
8069 0 : (reply__)->WriteSentinel(2740652860);
8070 0 : (reply__)->set_sync();
8071 0 : (reply__)->set_reply();
8072 :
8073 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8074 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8075 : }
8076 0 : return MsgProcessed;
8077 : }
8078 : case PContent::Msg_GetShowPasswordSetting__ID:
8079 : {
8080 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8081 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8082 : }
8083 0 : AUTO_PROFILER_LABEL("PContent::Msg_GetShowPasswordSetting", OTHER);
8084 :
8085 0 : PContent::Transition(PContent::Msg_GetShowPasswordSetting__ID, (&(mState)));
8086 0 : int32_t id__ = MSG_ROUTING_CONTROL;
8087 : bool showPassword;
8088 0 : if ((!(RecvGetShowPasswordSetting((&(showPassword)))))) {
8089 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8090 : // Error handled in mozilla::ipc::IPCResult
8091 0 : return MsgProcessingError;
8092 : }
8093 :
8094 0 : reply__ = PContent::Reply_GetShowPasswordSetting(id__);
8095 :
8096 0 : Write(showPassword, reply__);
8097 : // Sentinel = 'showPassword'
8098 0 : (reply__)->WriteSentinel(2677726048);
8099 0 : (reply__)->set_sync();
8100 0 : (reply__)->set_reply();
8101 :
8102 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8103 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8104 : }
8105 0 : return MsgProcessed;
8106 : }
8107 : case PContent::Msg_KeywordToURI__ID:
8108 : {
8109 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8110 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8111 : }
8112 0 : AUTO_PROFILER_LABEL("PContent::Msg_KeywordToURI", OTHER);
8113 :
8114 0 : PickleIterator iter__(msg__);
8115 0 : nsCString keyword;
8116 :
8117 0 : if ((!(Read((&(keyword)), (&(msg__)), (&(iter__)))))) {
8118 0 : FatalError("Error deserializing 'nsCString'");
8119 0 : return MsgValueError;
8120 : }
8121 : // Sentinel = 'keyword'
8122 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1802027878)))) {
8123 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
8124 0 : return MsgValueError;
8125 : }
8126 0 : (msg__).EndRead(iter__, (msg__).type());
8127 0 : PContent::Transition(PContent::Msg_KeywordToURI__ID, (&(mState)));
8128 0 : int32_t id__ = MSG_ROUTING_CONTROL;
8129 0 : nsString providerName;
8130 0 : OptionalIPCStream postData;
8131 0 : OptionalURIParams uri;
8132 0 : if ((!(RecvKeywordToURI(mozilla::Move(keyword), (&(providerName)), (&(postData)), (&(uri)))))) {
8133 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8134 : // Error handled in mozilla::ipc::IPCResult
8135 0 : return MsgProcessingError;
8136 : }
8137 :
8138 0 : reply__ = PContent::Reply_KeywordToURI(id__);
8139 :
8140 0 : Write(providerName, reply__);
8141 : // Sentinel = 'providerName'
8142 0 : (reply__)->WriteSentinel(876606310);
8143 0 : Write(postData, reply__);
8144 : // Sentinel = 'postData'
8145 0 : (reply__)->WriteSentinel(1373212390);
8146 0 : Write(uri, reply__);
8147 : // Sentinel = 'uri'
8148 0 : (reply__)->WriteSentinel(1453210605);
8149 0 : (reply__)->set_sync();
8150 0 : (reply__)->set_reply();
8151 :
8152 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8153 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8154 : }
8155 0 : return MsgProcessed;
8156 : }
8157 : case PContent::Msg_NotifyKeywordSearchLoading__ID:
8158 : {
8159 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8160 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8161 : }
8162 0 : AUTO_PROFILER_LABEL("PContent::Msg_NotifyKeywordSearchLoading", OTHER);
8163 :
8164 0 : PickleIterator iter__(msg__);
8165 0 : nsString providerName;
8166 0 : nsString keyword;
8167 :
8168 0 : if ((!(Read((&(providerName)), (&(msg__)), (&(iter__)))))) {
8169 0 : FatalError("Error deserializing 'nsString'");
8170 0 : return MsgValueError;
8171 : }
8172 : // Sentinel = 'providerName'
8173 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 876606310)))) {
8174 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
8175 0 : return MsgValueError;
8176 : }
8177 0 : if ((!(Read((&(keyword)), (&(msg__)), (&(iter__)))))) {
8178 0 : FatalError("Error deserializing 'nsString'");
8179 0 : return MsgValueError;
8180 : }
8181 : // Sentinel = 'keyword'
8182 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1802027878)))) {
8183 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
8184 0 : return MsgValueError;
8185 : }
8186 0 : (msg__).EndRead(iter__, (msg__).type());
8187 0 : PContent::Transition(PContent::Msg_NotifyKeywordSearchLoading__ID, (&(mState)));
8188 0 : int32_t id__ = MSG_ROUTING_CONTROL;
8189 0 : if ((!(RecvNotifyKeywordSearchLoading(mozilla::Move(providerName), mozilla::Move(keyword))))) {
8190 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8191 : // Error handled in mozilla::ipc::IPCResult
8192 0 : return MsgProcessingError;
8193 : }
8194 :
8195 0 : reply__ = PContent::Reply_NotifyKeywordSearchLoading(id__);
8196 :
8197 0 : (reply__)->set_sync();
8198 0 : (reply__)->set_reply();
8199 :
8200 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8201 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8202 : }
8203 0 : return MsgProcessed;
8204 : }
8205 : case PContent::Msg_AllocateLayerTreeId__ID:
8206 : {
8207 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8208 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8209 : }
8210 0 : AUTO_PROFILER_LABEL("PContent::Msg_AllocateLayerTreeId", OTHER);
8211 :
8212 0 : PickleIterator iter__(msg__);
8213 0 : ContentParentId cpId;
8214 0 : TabId tabId;
8215 :
8216 0 : if ((!(Read((&(cpId)), (&(msg__)), (&(iter__)))))) {
8217 0 : FatalError("Error deserializing 'ContentParentId'");
8218 0 : return MsgValueError;
8219 : }
8220 : // Sentinel = 'cpId'
8221 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2452595622)))) {
8222 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ContentParentId'");
8223 0 : return MsgValueError;
8224 : }
8225 0 : if ((!(Read((&(tabId)), (&(msg__)), (&(iter__)))))) {
8226 0 : FatalError("Error deserializing 'TabId'");
8227 0 : return MsgValueError;
8228 : }
8229 : // Sentinel = 'tabId'
8230 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3419081923)))) {
8231 0 : mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
8232 0 : return MsgValueError;
8233 : }
8234 0 : (msg__).EndRead(iter__, (msg__).type());
8235 0 : PContent::Transition(PContent::Msg_AllocateLayerTreeId__ID, (&(mState)));
8236 0 : int32_t id__ = MSG_ROUTING_CONTROL;
8237 : uint64_t id;
8238 0 : if ((!(RecvAllocateLayerTreeId(mozilla::Move(cpId), mozilla::Move(tabId), (&(id)))))) {
8239 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8240 : // Error handled in mozilla::ipc::IPCResult
8241 0 : return MsgProcessingError;
8242 : }
8243 :
8244 0 : reply__ = PContent::Reply_AllocateLayerTreeId(id__);
8245 :
8246 0 : Write(id, reply__);
8247 : // Sentinel = 'id'
8248 0 : (reply__)->WriteSentinel(2794505629);
8249 0 : (reply__)->set_sync();
8250 0 : (reply__)->set_reply();
8251 :
8252 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8253 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8254 : }
8255 0 : return MsgProcessed;
8256 : }
8257 : case PContent::Msg_BeginDriverCrashGuard__ID:
8258 : {
8259 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8260 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8261 : }
8262 0 : AUTO_PROFILER_LABEL("PContent::Msg_BeginDriverCrashGuard", OTHER);
8263 :
8264 0 : PickleIterator iter__(msg__);
8265 : uint32_t aGuardType;
8266 :
8267 0 : if ((!(Read((&(aGuardType)), (&(msg__)), (&(iter__)))))) {
8268 0 : FatalError("Error deserializing 'uint32_t'");
8269 0 : return MsgValueError;
8270 : }
8271 : // Sentinel = 'aGuardType'
8272 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2013376914)))) {
8273 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
8274 0 : return MsgValueError;
8275 : }
8276 0 : (msg__).EndRead(iter__, (msg__).type());
8277 0 : PContent::Transition(PContent::Msg_BeginDriverCrashGuard__ID, (&(mState)));
8278 0 : int32_t id__ = MSG_ROUTING_CONTROL;
8279 : bool crashDetected;
8280 0 : if ((!(RecvBeginDriverCrashGuard(mozilla::Move(aGuardType), (&(crashDetected)))))) {
8281 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8282 : // Error handled in mozilla::ipc::IPCResult
8283 0 : return MsgProcessingError;
8284 : }
8285 :
8286 0 : reply__ = PContent::Reply_BeginDriverCrashGuard(id__);
8287 :
8288 0 : Write(crashDetected, reply__);
8289 : // Sentinel = 'crashDetected'
8290 0 : (reply__)->WriteSentinel(1759895034);
8291 0 : (reply__)->set_sync();
8292 0 : (reply__)->set_reply();
8293 :
8294 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8295 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8296 : }
8297 0 : return MsgProcessed;
8298 : }
8299 : case PContent::Msg_EndDriverCrashGuard__ID:
8300 : {
8301 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8302 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8303 : }
8304 0 : AUTO_PROFILER_LABEL("PContent::Msg_EndDriverCrashGuard", OTHER);
8305 :
8306 0 : PickleIterator iter__(msg__);
8307 : uint32_t aGuardType;
8308 :
8309 0 : if ((!(Read((&(aGuardType)), (&(msg__)), (&(iter__)))))) {
8310 0 : FatalError("Error deserializing 'uint32_t'");
8311 0 : return MsgValueError;
8312 : }
8313 : // Sentinel = 'aGuardType'
8314 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2013376914)))) {
8315 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
8316 0 : return MsgValueError;
8317 : }
8318 0 : (msg__).EndRead(iter__, (msg__).type());
8319 0 : PContent::Transition(PContent::Msg_EndDriverCrashGuard__ID, (&(mState)));
8320 0 : int32_t id__ = MSG_ROUTING_CONTROL;
8321 0 : if ((!(RecvEndDriverCrashGuard(mozilla::Move(aGuardType))))) {
8322 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8323 : // Error handled in mozilla::ipc::IPCResult
8324 0 : return MsgProcessingError;
8325 : }
8326 :
8327 0 : reply__ = PContent::Reply_EndDriverCrashGuard(id__);
8328 :
8329 0 : (reply__)->set_sync();
8330 0 : (reply__)->set_reply();
8331 :
8332 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8333 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8334 : }
8335 0 : return MsgProcessed;
8336 : }
8337 : case PContent::Msg_KeygenProcessValue__ID:
8338 : {
8339 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8340 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8341 : }
8342 0 : AUTO_PROFILER_LABEL("PContent::Msg_KeygenProcessValue", OTHER);
8343 :
8344 0 : PickleIterator iter__(msg__);
8345 0 : nsString oldValue;
8346 0 : nsString challenge;
8347 0 : nsString keytype;
8348 0 : nsString keyparams;
8349 :
8350 0 : if ((!(Read((&(oldValue)), (&(msg__)), (&(iter__)))))) {
8351 0 : FatalError("Error deserializing 'nsString'");
8352 0 : return MsgValueError;
8353 : }
8354 : // Sentinel = 'oldValue'
8355 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2227149046)))) {
8356 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
8357 0 : return MsgValueError;
8358 : }
8359 0 : if ((!(Read((&(challenge)), (&(msg__)), (&(iter__)))))) {
8360 0 : FatalError("Error deserializing 'nsString'");
8361 0 : return MsgValueError;
8362 : }
8363 : // Sentinel = 'challenge'
8364 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3710327146)))) {
8365 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
8366 0 : return MsgValueError;
8367 : }
8368 0 : if ((!(Read((&(keytype)), (&(msg__)), (&(iter__)))))) {
8369 0 : FatalError("Error deserializing 'nsString'");
8370 0 : return MsgValueError;
8371 : }
8372 : // Sentinel = 'keytype'
8373 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 391822858)))) {
8374 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
8375 0 : return MsgValueError;
8376 : }
8377 0 : if ((!(Read((&(keyparams)), (&(msg__)), (&(iter__)))))) {
8378 0 : FatalError("Error deserializing 'nsString'");
8379 0 : return MsgValueError;
8380 : }
8381 : // Sentinel = 'keyparams'
8382 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 591068598)))) {
8383 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
8384 0 : return MsgValueError;
8385 : }
8386 0 : (msg__).EndRead(iter__, (msg__).type());
8387 0 : PContent::Transition(PContent::Msg_KeygenProcessValue__ID, (&(mState)));
8388 0 : int32_t id__ = MSG_ROUTING_CONTROL;
8389 0 : nsString newValue;
8390 0 : if ((!(RecvKeygenProcessValue(mozilla::Move(oldValue), mozilla::Move(challenge), mozilla::Move(keytype), mozilla::Move(keyparams), (&(newValue)))))) {
8391 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8392 : // Error handled in mozilla::ipc::IPCResult
8393 0 : return MsgProcessingError;
8394 : }
8395 :
8396 0 : reply__ = PContent::Reply_KeygenProcessValue(id__);
8397 :
8398 0 : Write(newValue, reply__);
8399 : // Sentinel = 'newValue'
8400 0 : (reply__)->WriteSentinel(1405873629);
8401 0 : (reply__)->set_sync();
8402 0 : (reply__)->set_reply();
8403 :
8404 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8405 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8406 : }
8407 0 : return MsgProcessed;
8408 : }
8409 : case PContent::Msg_KeygenProvideContent__ID:
8410 : {
8411 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8412 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8413 : }
8414 0 : AUTO_PROFILER_LABEL("PContent::Msg_KeygenProvideContent", OTHER);
8415 :
8416 0 : PContent::Transition(PContent::Msg_KeygenProvideContent__ID, (&(mState)));
8417 0 : int32_t id__ = MSG_ROUTING_CONTROL;
8418 0 : nsString aAttribute;
8419 0 : nsTArray<nsString> aContent;
8420 0 : if ((!(RecvKeygenProvideContent((&(aAttribute)), (&(aContent)))))) {
8421 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8422 : // Error handled in mozilla::ipc::IPCResult
8423 0 : return MsgProcessingError;
8424 : }
8425 :
8426 0 : reply__ = PContent::Reply_KeygenProvideContent(id__);
8427 :
8428 0 : Write(aAttribute, reply__);
8429 : // Sentinel = 'aAttribute'
8430 0 : (reply__)->WriteSentinel(4137811577);
8431 0 : Write(aContent, reply__);
8432 : // Sentinel = 'aContent'
8433 0 : (reply__)->WriteSentinel(2066258676);
8434 0 : (reply__)->set_sync();
8435 0 : (reply__)->set_reply();
8436 :
8437 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8438 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8439 : }
8440 0 : return MsgProcessed;
8441 : }
8442 : case PContent::Msg_GetGraphicsDeviceInitData__ID:
8443 : {
8444 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8445 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8446 : }
8447 0 : AUTO_PROFILER_LABEL("PContent::Msg_GetGraphicsDeviceInitData", OTHER);
8448 :
8449 0 : PContent::Transition(PContent::Msg_GetGraphicsDeviceInitData__ID, (&(mState)));
8450 0 : int32_t id__ = MSG_ROUTING_CONTROL;
8451 0 : ContentDeviceData aData;
8452 0 : if ((!(RecvGetGraphicsDeviceInitData((&(aData)))))) {
8453 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8454 : // Error handled in mozilla::ipc::IPCResult
8455 0 : return MsgProcessingError;
8456 : }
8457 :
8458 0 : reply__ = PContent::Reply_GetGraphicsDeviceInitData(id__);
8459 :
8460 0 : Write(aData, reply__);
8461 : // Sentinel = 'aData'
8462 0 : (reply__)->WriteSentinel(3285075324);
8463 0 : (reply__)->set_sync();
8464 0 : (reply__)->set_reply();
8465 :
8466 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8467 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8468 : }
8469 0 : return MsgProcessed;
8470 : }
8471 : case PContent::Msg_GetAndroidSystemInfo__ID:
8472 : {
8473 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8474 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8475 : }
8476 0 : AUTO_PROFILER_LABEL("PContent::Msg_GetAndroidSystemInfo", OTHER);
8477 :
8478 0 : PContent::Transition(PContent::Msg_GetAndroidSystemInfo__ID, (&(mState)));
8479 0 : int32_t id__ = MSG_ROUTING_CONTROL;
8480 0 : AndroidSystemInfo info;
8481 0 : if ((!(RecvGetAndroidSystemInfo((&(info)))))) {
8482 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8483 : // Error handled in mozilla::ipc::IPCResult
8484 0 : return MsgProcessingError;
8485 : }
8486 :
8487 0 : reply__ = PContent::Reply_GetAndroidSystemInfo(id__);
8488 :
8489 0 : Write(info, reply__);
8490 : // Sentinel = 'info'
8491 0 : (reply__)->WriteSentinel(3750868832);
8492 0 : (reply__)->set_sync();
8493 0 : (reply__)->set_reply();
8494 :
8495 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8496 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8497 : }
8498 0 : return MsgProcessed;
8499 : }
8500 : case PContent::Msg_UngrabPointer__ID:
8501 : {
8502 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8503 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8504 : }
8505 0 : AUTO_PROFILER_LABEL("PContent::Msg_UngrabPointer", OTHER);
8506 :
8507 0 : PickleIterator iter__(msg__);
8508 : uint32_t time;
8509 :
8510 0 : if ((!(Read((&(time)), (&(msg__)), (&(iter__)))))) {
8511 0 : FatalError("Error deserializing 'uint32_t'");
8512 0 : return MsgValueError;
8513 : }
8514 : // Sentinel = 'time'
8515 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4231890935)))) {
8516 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
8517 0 : return MsgValueError;
8518 : }
8519 0 : (msg__).EndRead(iter__, (msg__).type());
8520 0 : PContent::Transition(PContent::Msg_UngrabPointer__ID, (&(mState)));
8521 0 : int32_t id__ = MSG_ROUTING_CONTROL;
8522 0 : if ((!(RecvUngrabPointer(mozilla::Move(time))))) {
8523 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8524 : // Error handled in mozilla::ipc::IPCResult
8525 0 : return MsgProcessingError;
8526 : }
8527 :
8528 0 : reply__ = PContent::Reply_UngrabPointer(id__);
8529 :
8530 0 : (reply__)->set_sync();
8531 0 : (reply__)->set_reply();
8532 :
8533 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8534 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8535 : }
8536 0 : return MsgProcessed;
8537 : }
8538 : case PContent::Msg_RemovePermission__ID:
8539 : {
8540 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8541 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8542 : }
8543 0 : AUTO_PROFILER_LABEL("PContent::Msg_RemovePermission", OTHER);
8544 :
8545 0 : PickleIterator iter__(msg__);
8546 0 : Principal principal;
8547 0 : nsCString permissionType;
8548 :
8549 0 : if ((!(Read((&(principal)), (&(msg__)), (&(iter__)))))) {
8550 0 : FatalError("Error deserializing 'Principal'");
8551 0 : return MsgValueError;
8552 : }
8553 : // Sentinel = 'principal'
8554 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
8555 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
8556 0 : return MsgValueError;
8557 : }
8558 0 : if ((!(Read((&(permissionType)), (&(msg__)), (&(iter__)))))) {
8559 0 : FatalError("Error deserializing 'nsCString'");
8560 0 : return MsgValueError;
8561 : }
8562 : // Sentinel = 'permissionType'
8563 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3770618267)))) {
8564 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
8565 0 : return MsgValueError;
8566 : }
8567 0 : (msg__).EndRead(iter__, (msg__).type());
8568 0 : PContent::Transition(PContent::Msg_RemovePermission__ID, (&(mState)));
8569 0 : int32_t id__ = MSG_ROUTING_CONTROL;
8570 : nsresult rv;
8571 0 : if ((!(RecvRemovePermission(mozilla::Move(principal), mozilla::Move(permissionType), (&(rv)))))) {
8572 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8573 : // Error handled in mozilla::ipc::IPCResult
8574 0 : return MsgProcessingError;
8575 : }
8576 :
8577 0 : reply__ = PContent::Reply_RemovePermission(id__);
8578 :
8579 0 : Write(rv, reply__);
8580 : // Sentinel = 'rv'
8581 0 : (reply__)->WriteSentinel(702481058);
8582 0 : (reply__)->set_sync();
8583 0 : (reply__)->set_reply();
8584 :
8585 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8586 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8587 : }
8588 0 : return MsgProcessed;
8589 : }
8590 : case PContent::Msg_GetA11yContentId__ID:
8591 : {
8592 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8593 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8594 : }
8595 0 : AUTO_PROFILER_LABEL("PContent::Msg_GetA11yContentId", OTHER);
8596 :
8597 0 : PContent::Transition(PContent::Msg_GetA11yContentId__ID, (&(mState)));
8598 0 : int32_t id__ = MSG_ROUTING_CONTROL;
8599 : uint32_t aContentId;
8600 0 : if ((!(RecvGetA11yContentId((&(aContentId)))))) {
8601 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8602 : // Error handled in mozilla::ipc::IPCResult
8603 0 : return MsgProcessingError;
8604 : }
8605 :
8606 0 : reply__ = PContent::Reply_GetA11yContentId(id__);
8607 :
8608 0 : Write(aContentId, reply__);
8609 : // Sentinel = 'aContentId'
8610 0 : (reply__)->WriteSentinel(2021670937);
8611 0 : (reply__)->set_sync();
8612 0 : (reply__)->set_reply();
8613 :
8614 0 : if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8615 0 : mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8616 : }
8617 0 : return MsgProcessed;
8618 : }
8619 : default:
8620 : {
8621 0 : return MsgNotKnown;
8622 : }
8623 : }
8624 : }
8625 :
8626 0 : auto PContentParent::OnCallReceived(
8627 : const Message& msg__,
8628 : Message*& reply__) -> PContentParent::Result
8629 : {
8630 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
8631 : return MsgNotKnown;
8632 : }
8633 :
8634 0 : auto PContentParent::GetProtocolTypeId() -> int32_t
8635 : {
8636 0 : return PContentMsgStart;
8637 : }
8638 :
8639 0 : auto PContentParent::OnChannelClose() -> void
8640 : {
8641 0 : DestroySubtree(NormalShutdown);
8642 0 : DeallocSubtree();
8643 0 : DeallocShmems();
8644 0 : DeallocPContentParent();
8645 0 : }
8646 :
8647 0 : auto PContentParent::OnChannelError() -> void
8648 : {
8649 0 : DestroySubtree(AbnormalShutdown);
8650 0 : DeallocSubtree();
8651 0 : DeallocShmems();
8652 0 : DeallocPContentParent();
8653 0 : }
8654 :
8655 0 : auto PContentParent::ProtocolName() const -> const char*
8656 : {
8657 0 : return "PContentParent";
8658 : }
8659 :
8660 0 : auto PContentParent::DestroySubtree(ActorDestroyReason why) -> void
8661 : {
8662 0 : ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
8663 :
8664 : {
8665 : // Recursively shutting down PBrowser kids
8666 0 : nsTArray<PBrowserParent*> kids;
8667 : // Accumulate kids into a stable structure to iterate over
8668 0 : ManagedPBrowserParent(kids);
8669 0 : for (auto& kid : kids) {
8670 : // Guarding against a child removing a sibling from the list during the iteration.
8671 0 : if ((mManagedPBrowserParent).Contains(kid)) {
8672 0 : (kid)->DestroySubtree(subtreewhy);
8673 : }
8674 : }
8675 : }
8676 : {
8677 : // Recursively shutting down PContentPermissionRequest kids
8678 0 : nsTArray<PContentPermissionRequestParent*> kids;
8679 : // Accumulate kids into a stable structure to iterate over
8680 0 : ManagedPContentPermissionRequestParent(kids);
8681 0 : for (auto& kid : kids) {
8682 : // Guarding against a child removing a sibling from the list during the iteration.
8683 0 : if ((mManagedPContentPermissionRequestParent).Contains(kid)) {
8684 0 : (kid)->DestroySubtree(subtreewhy);
8685 : }
8686 : }
8687 : }
8688 : {
8689 : // Recursively shutting down PCycleCollectWithLogs kids
8690 0 : nsTArray<PCycleCollectWithLogsParent*> kids;
8691 : // Accumulate kids into a stable structure to iterate over
8692 0 : ManagedPCycleCollectWithLogsParent(kids);
8693 0 : for (auto& kid : kids) {
8694 : // Guarding against a child removing a sibling from the list during the iteration.
8695 0 : if ((mManagedPCycleCollectWithLogsParent).Contains(kid)) {
8696 0 : (kid)->DestroySubtree(subtreewhy);
8697 : }
8698 : }
8699 : }
8700 : {
8701 : // Recursively shutting down PPSMContentDownloader kids
8702 0 : nsTArray<PPSMContentDownloaderParent*> kids;
8703 : // Accumulate kids into a stable structure to iterate over
8704 0 : ManagedPPSMContentDownloaderParent(kids);
8705 0 : for (auto& kid : kids) {
8706 : // Guarding against a child removing a sibling from the list during the iteration.
8707 0 : if ((mManagedPPSMContentDownloaderParent).Contains(kid)) {
8708 0 : (kid)->DestroySubtree(subtreewhy);
8709 : }
8710 : }
8711 : }
8712 : {
8713 : // Recursively shutting down PExternalHelperApp kids
8714 0 : nsTArray<PExternalHelperAppParent*> kids;
8715 : // Accumulate kids into a stable structure to iterate over
8716 0 : ManagedPExternalHelperAppParent(kids);
8717 0 : for (auto& kid : kids) {
8718 : // Guarding against a child removing a sibling from the list during the iteration.
8719 0 : if ((mManagedPExternalHelperAppParent).Contains(kid)) {
8720 0 : (kid)->DestroySubtree(subtreewhy);
8721 : }
8722 : }
8723 : }
8724 : {
8725 : // Recursively shutting down PFileDescriptorSet kids
8726 0 : nsTArray<PFileDescriptorSetParent*> kids;
8727 : // Accumulate kids into a stable structure to iterate over
8728 0 : ManagedPFileDescriptorSetParent(kids);
8729 0 : for (auto& kid : kids) {
8730 : // Guarding against a child removing a sibling from the list during the iteration.
8731 0 : if ((mManagedPFileDescriptorSetParent).Contains(kid)) {
8732 0 : (kid)->DestroySubtree(subtreewhy);
8733 : }
8734 : }
8735 : }
8736 : {
8737 : // Recursively shutting down PHal kids
8738 0 : nsTArray<PHalParent*> kids;
8739 : // Accumulate kids into a stable structure to iterate over
8740 0 : ManagedPHalParent(kids);
8741 0 : for (auto& kid : kids) {
8742 : // Guarding against a child removing a sibling from the list during the iteration.
8743 0 : if ((mManagedPHalParent).Contains(kid)) {
8744 0 : (kid)->DestroySubtree(subtreewhy);
8745 : }
8746 : }
8747 : }
8748 : {
8749 : // Recursively shutting down PHandlerService kids
8750 0 : nsTArray<PHandlerServiceParent*> kids;
8751 : // Accumulate kids into a stable structure to iterate over
8752 0 : ManagedPHandlerServiceParent(kids);
8753 0 : for (auto& kid : kids) {
8754 : // Guarding against a child removing a sibling from the list during the iteration.
8755 0 : if ((mManagedPHandlerServiceParent).Contains(kid)) {
8756 0 : (kid)->DestroySubtree(subtreewhy);
8757 : }
8758 : }
8759 : }
8760 : {
8761 : // Recursively shutting down PHeapSnapshotTempFileHelper kids
8762 0 : nsTArray<PHeapSnapshotTempFileHelperParent*> kids;
8763 : // Accumulate kids into a stable structure to iterate over
8764 0 : ManagedPHeapSnapshotTempFileHelperParent(kids);
8765 0 : for (auto& kid : kids) {
8766 : // Guarding against a child removing a sibling from the list during the iteration.
8767 0 : if ((mManagedPHeapSnapshotTempFileHelperParent).Contains(kid)) {
8768 0 : (kid)->DestroySubtree(subtreewhy);
8769 : }
8770 : }
8771 : }
8772 : {
8773 : // Recursively shutting down PIPCBlobInputStream kids
8774 0 : nsTArray<PIPCBlobInputStreamParent*> kids;
8775 : // Accumulate kids into a stable structure to iterate over
8776 0 : ManagedPIPCBlobInputStreamParent(kids);
8777 0 : for (auto& kid : kids) {
8778 : // Guarding against a child removing a sibling from the list during the iteration.
8779 0 : if ((mManagedPIPCBlobInputStreamParent).Contains(kid)) {
8780 0 : (kid)->DestroySubtree(subtreewhy);
8781 : }
8782 : }
8783 : }
8784 : {
8785 : // Recursively shutting down PMedia kids
8786 0 : nsTArray<PMediaParent*> kids;
8787 : // Accumulate kids into a stable structure to iterate over
8788 0 : ManagedPMediaParent(kids);
8789 0 : for (auto& kid : kids) {
8790 : // Guarding against a child removing a sibling from the list during the iteration.
8791 0 : if ((mManagedPMediaParent).Contains(kid)) {
8792 0 : (kid)->DestroySubtree(subtreewhy);
8793 : }
8794 : }
8795 : }
8796 : {
8797 : // Recursively shutting down PNecko kids
8798 0 : nsTArray<PNeckoParent*> kids;
8799 : // Accumulate kids into a stable structure to iterate over
8800 0 : ManagedPNeckoParent(kids);
8801 0 : for (auto& kid : kids) {
8802 : // Guarding against a child removing a sibling from the list during the iteration.
8803 0 : if ((mManagedPNeckoParent).Contains(kid)) {
8804 0 : (kid)->DestroySubtree(subtreewhy);
8805 : }
8806 : }
8807 : }
8808 : {
8809 : // Recursively shutting down POfflineCacheUpdate kids
8810 0 : nsTArray<POfflineCacheUpdateParent*> kids;
8811 : // Accumulate kids into a stable structure to iterate over
8812 0 : ManagedPOfflineCacheUpdateParent(kids);
8813 0 : for (auto& kid : kids) {
8814 : // Guarding against a child removing a sibling from the list during the iteration.
8815 0 : if ((mManagedPOfflineCacheUpdateParent).Contains(kid)) {
8816 0 : (kid)->DestroySubtree(subtreewhy);
8817 : }
8818 : }
8819 : }
8820 : {
8821 : // Recursively shutting down PPrinting kids
8822 0 : nsTArray<PPrintingParent*> kids;
8823 : // Accumulate kids into a stable structure to iterate over
8824 0 : ManagedPPrintingParent(kids);
8825 0 : for (auto& kid : kids) {
8826 : // Guarding against a child removing a sibling from the list during the iteration.
8827 0 : if ((mManagedPPrintingParent).Contains(kid)) {
8828 0 : (kid)->DestroySubtree(subtreewhy);
8829 : }
8830 : }
8831 : }
8832 : {
8833 : // Recursively shutting down PChildToParentStream kids
8834 0 : nsTArray<PChildToParentStreamParent*> kids;
8835 : // Accumulate kids into a stable structure to iterate over
8836 0 : ManagedPChildToParentStreamParent(kids);
8837 0 : for (auto& kid : kids) {
8838 : // Guarding against a child removing a sibling from the list during the iteration.
8839 0 : if ((mManagedPChildToParentStreamParent).Contains(kid)) {
8840 0 : (kid)->DestroySubtree(subtreewhy);
8841 : }
8842 : }
8843 : }
8844 : {
8845 : // Recursively shutting down PParentToChildStream kids
8846 0 : nsTArray<PParentToChildStreamParent*> kids;
8847 : // Accumulate kids into a stable structure to iterate over
8848 0 : ManagedPParentToChildStreamParent(kids);
8849 0 : for (auto& kid : kids) {
8850 : // Guarding against a child removing a sibling from the list during the iteration.
8851 0 : if ((mManagedPParentToChildStreamParent).Contains(kid)) {
8852 0 : (kid)->DestroySubtree(subtreewhy);
8853 : }
8854 : }
8855 : }
8856 : {
8857 : // Recursively shutting down PSpeechSynthesis kids
8858 0 : nsTArray<PSpeechSynthesisParent*> kids;
8859 : // Accumulate kids into a stable structure to iterate over
8860 0 : ManagedPSpeechSynthesisParent(kids);
8861 0 : for (auto& kid : kids) {
8862 : // Guarding against a child removing a sibling from the list during the iteration.
8863 0 : if ((mManagedPSpeechSynthesisParent).Contains(kid)) {
8864 0 : (kid)->DestroySubtree(subtreewhy);
8865 : }
8866 : }
8867 : }
8868 : {
8869 : // Recursively shutting down PStorage kids
8870 0 : nsTArray<PStorageParent*> kids;
8871 : // Accumulate kids into a stable structure to iterate over
8872 0 : ManagedPStorageParent(kids);
8873 0 : for (auto& kid : kids) {
8874 : // Guarding against a child removing a sibling from the list during the iteration.
8875 0 : if ((mManagedPStorageParent).Contains(kid)) {
8876 0 : (kid)->DestroySubtree(subtreewhy);
8877 : }
8878 : }
8879 : }
8880 : {
8881 : // Recursively shutting down PTestShell kids
8882 0 : nsTArray<PTestShellParent*> kids;
8883 : // Accumulate kids into a stable structure to iterate over
8884 0 : ManagedPTestShellParent(kids);
8885 0 : for (auto& kid : kids) {
8886 : // Guarding against a child removing a sibling from the list during the iteration.
8887 0 : if ((mManagedPTestShellParent).Contains(kid)) {
8888 0 : (kid)->DestroySubtree(subtreewhy);
8889 : }
8890 : }
8891 : }
8892 : {
8893 : // Recursively shutting down PJavaScript kids
8894 0 : nsTArray<PJavaScriptParent*> kids;
8895 : // Accumulate kids into a stable structure to iterate over
8896 0 : ManagedPJavaScriptParent(kids);
8897 0 : for (auto& kid : kids) {
8898 : // Guarding against a child removing a sibling from the list during the iteration.
8899 0 : if ((mManagedPJavaScriptParent).Contains(kid)) {
8900 0 : (kid)->DestroySubtree(subtreewhy);
8901 : }
8902 : }
8903 : }
8904 : {
8905 : // Recursively shutting down PRemoteSpellcheckEngine kids
8906 0 : nsTArray<PRemoteSpellcheckEngineParent*> kids;
8907 : // Accumulate kids into a stable structure to iterate over
8908 0 : ManagedPRemoteSpellcheckEngineParent(kids);
8909 0 : for (auto& kid : kids) {
8910 : // Guarding against a child removing a sibling from the list during the iteration.
8911 0 : if ((mManagedPRemoteSpellcheckEngineParent).Contains(kid)) {
8912 0 : (kid)->DestroySubtree(subtreewhy);
8913 : }
8914 : }
8915 : }
8916 : {
8917 : // Recursively shutting down PWebBrowserPersistDocument kids
8918 0 : nsTArray<PWebBrowserPersistDocumentParent*> kids;
8919 : // Accumulate kids into a stable structure to iterate over
8920 0 : ManagedPWebBrowserPersistDocumentParent(kids);
8921 0 : for (auto& kid : kids) {
8922 : // Guarding against a child removing a sibling from the list during the iteration.
8923 0 : if ((mManagedPWebBrowserPersistDocumentParent).Contains(kid)) {
8924 0 : (kid)->DestroySubtree(subtreewhy);
8925 : }
8926 : }
8927 : }
8928 : {
8929 : // Recursively shutting down PWebrtcGlobal kids
8930 0 : nsTArray<PWebrtcGlobalParent*> kids;
8931 : // Accumulate kids into a stable structure to iterate over
8932 0 : ManagedPWebrtcGlobalParent(kids);
8933 0 : for (auto& kid : kids) {
8934 : // Guarding against a child removing a sibling from the list during the iteration.
8935 0 : if ((mManagedPWebrtcGlobalParent).Contains(kid)) {
8936 0 : (kid)->DestroySubtree(subtreewhy);
8937 : }
8938 : }
8939 : }
8940 : {
8941 : // Recursively shutting down PPresentation kids
8942 0 : nsTArray<PPresentationParent*> kids;
8943 : // Accumulate kids into a stable structure to iterate over
8944 0 : ManagedPPresentationParent(kids);
8945 0 : for (auto& kid : kids) {
8946 : // Guarding against a child removing a sibling from the list during the iteration.
8947 0 : if ((mManagedPPresentationParent).Contains(kid)) {
8948 0 : (kid)->DestroySubtree(subtreewhy);
8949 : }
8950 : }
8951 : }
8952 : {
8953 : // Recursively shutting down PFlyWebPublishedServer kids
8954 0 : nsTArray<PFlyWebPublishedServerParent*> kids;
8955 : // Accumulate kids into a stable structure to iterate over
8956 0 : ManagedPFlyWebPublishedServerParent(kids);
8957 0 : for (auto& kid : kids) {
8958 : // Guarding against a child removing a sibling from the list during the iteration.
8959 0 : if ((mManagedPFlyWebPublishedServerParent).Contains(kid)) {
8960 0 : (kid)->DestroySubtree(subtreewhy);
8961 : }
8962 : }
8963 : }
8964 : {
8965 : // Recursively shutting down PURLClassifier kids
8966 0 : nsTArray<PURLClassifierParent*> kids;
8967 : // Accumulate kids into a stable structure to iterate over
8968 0 : ManagedPURLClassifierParent(kids);
8969 0 : for (auto& kid : kids) {
8970 : // Guarding against a child removing a sibling from the list during the iteration.
8971 0 : if ((mManagedPURLClassifierParent).Contains(kid)) {
8972 0 : (kid)->DestroySubtree(subtreewhy);
8973 : }
8974 : }
8975 : }
8976 : {
8977 : // Recursively shutting down PURLClassifierLocal kids
8978 0 : nsTArray<PURLClassifierLocalParent*> kids;
8979 : // Accumulate kids into a stable structure to iterate over
8980 0 : ManagedPURLClassifierLocalParent(kids);
8981 0 : for (auto& kid : kids) {
8982 : // Guarding against a child removing a sibling from the list during the iteration.
8983 0 : if ((mManagedPURLClassifierLocalParent).Contains(kid)) {
8984 0 : (kid)->DestroySubtree(subtreewhy);
8985 : }
8986 : }
8987 : }
8988 : {
8989 : // Recursively shutting down PScriptCache kids
8990 0 : nsTArray<PScriptCacheParent*> kids;
8991 : // Accumulate kids into a stable structure to iterate over
8992 0 : ManagedPScriptCacheParent(kids);
8993 0 : for (auto& kid : kids) {
8994 : // Guarding against a child removing a sibling from the list during the iteration.
8995 0 : if ((mManagedPScriptCacheParent).Contains(kid)) {
8996 0 : (kid)->DestroySubtree(subtreewhy);
8997 : }
8998 : }
8999 : }
9000 :
9001 : // Reject owning pending promises.
9002 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
9003 :
9004 : // Finally, destroy "us".
9005 0 : ActorDestroy(why);
9006 0 : }
9007 :
9008 0 : auto PContentParent::DeallocSubtree() -> void
9009 : {
9010 : {
9011 : // Recursively deleting PBrowser kids
9012 0 : for (auto iter = (mManagedPBrowserParent).Iter(); (!((iter).Done())); (iter).Next()) {
9013 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9014 : }
9015 :
9016 0 : for (auto iter = (mManagedPBrowserParent).Iter(); (!((iter).Done())); (iter).Next()) {
9017 0 : DeallocPBrowserParent(((iter).Get())->GetKey());
9018 : }
9019 0 : (mManagedPBrowserParent).Clear();
9020 : }
9021 : {
9022 : // Recursively deleting PContentPermissionRequest kids
9023 0 : for (auto iter = (mManagedPContentPermissionRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
9024 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9025 : }
9026 :
9027 0 : for (auto iter = (mManagedPContentPermissionRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
9028 0 : DeallocPContentPermissionRequestParent(((iter).Get())->GetKey());
9029 : }
9030 0 : (mManagedPContentPermissionRequestParent).Clear();
9031 : }
9032 : {
9033 : // Recursively deleting PCycleCollectWithLogs kids
9034 0 : for (auto iter = (mManagedPCycleCollectWithLogsParent).Iter(); (!((iter).Done())); (iter).Next()) {
9035 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9036 : }
9037 :
9038 0 : for (auto iter = (mManagedPCycleCollectWithLogsParent).Iter(); (!((iter).Done())); (iter).Next()) {
9039 0 : DeallocPCycleCollectWithLogsParent(((iter).Get())->GetKey());
9040 : }
9041 0 : (mManagedPCycleCollectWithLogsParent).Clear();
9042 : }
9043 : {
9044 : // Recursively deleting PPSMContentDownloader kids
9045 0 : for (auto iter = (mManagedPPSMContentDownloaderParent).Iter(); (!((iter).Done())); (iter).Next()) {
9046 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9047 : }
9048 :
9049 0 : for (auto iter = (mManagedPPSMContentDownloaderParent).Iter(); (!((iter).Done())); (iter).Next()) {
9050 0 : DeallocPPSMContentDownloaderParent(((iter).Get())->GetKey());
9051 : }
9052 0 : (mManagedPPSMContentDownloaderParent).Clear();
9053 : }
9054 : {
9055 : // Recursively deleting PExternalHelperApp kids
9056 0 : for (auto iter = (mManagedPExternalHelperAppParent).Iter(); (!((iter).Done())); (iter).Next()) {
9057 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9058 : }
9059 :
9060 0 : for (auto iter = (mManagedPExternalHelperAppParent).Iter(); (!((iter).Done())); (iter).Next()) {
9061 0 : DeallocPExternalHelperAppParent(((iter).Get())->GetKey());
9062 : }
9063 0 : (mManagedPExternalHelperAppParent).Clear();
9064 : }
9065 : {
9066 : // Recursively deleting PFileDescriptorSet kids
9067 0 : for (auto iter = (mManagedPFileDescriptorSetParent).Iter(); (!((iter).Done())); (iter).Next()) {
9068 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9069 : }
9070 :
9071 0 : for (auto iter = (mManagedPFileDescriptorSetParent).Iter(); (!((iter).Done())); (iter).Next()) {
9072 0 : DeallocPFileDescriptorSetParent(((iter).Get())->GetKey());
9073 : }
9074 0 : (mManagedPFileDescriptorSetParent).Clear();
9075 : }
9076 : {
9077 : // Recursively deleting PHal kids
9078 0 : for (auto iter = (mManagedPHalParent).Iter(); (!((iter).Done())); (iter).Next()) {
9079 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9080 : }
9081 :
9082 0 : for (auto iter = (mManagedPHalParent).Iter(); (!((iter).Done())); (iter).Next()) {
9083 0 : DeallocPHalParent(((iter).Get())->GetKey());
9084 : }
9085 0 : (mManagedPHalParent).Clear();
9086 : }
9087 : {
9088 : // Recursively deleting PHandlerService kids
9089 0 : for (auto iter = (mManagedPHandlerServiceParent).Iter(); (!((iter).Done())); (iter).Next()) {
9090 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9091 : }
9092 :
9093 0 : for (auto iter = (mManagedPHandlerServiceParent).Iter(); (!((iter).Done())); (iter).Next()) {
9094 0 : DeallocPHandlerServiceParent(((iter).Get())->GetKey());
9095 : }
9096 0 : (mManagedPHandlerServiceParent).Clear();
9097 : }
9098 : {
9099 : // Recursively deleting PHeapSnapshotTempFileHelper kids
9100 0 : for (auto iter = (mManagedPHeapSnapshotTempFileHelperParent).Iter(); (!((iter).Done())); (iter).Next()) {
9101 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9102 : }
9103 :
9104 0 : for (auto iter = (mManagedPHeapSnapshotTempFileHelperParent).Iter(); (!((iter).Done())); (iter).Next()) {
9105 0 : DeallocPHeapSnapshotTempFileHelperParent(((iter).Get())->GetKey());
9106 : }
9107 0 : (mManagedPHeapSnapshotTempFileHelperParent).Clear();
9108 : }
9109 : {
9110 : // Recursively deleting PIPCBlobInputStream kids
9111 0 : for (auto iter = (mManagedPIPCBlobInputStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
9112 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9113 : }
9114 :
9115 0 : for (auto iter = (mManagedPIPCBlobInputStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
9116 0 : DeallocPIPCBlobInputStreamParent(((iter).Get())->GetKey());
9117 : }
9118 0 : (mManagedPIPCBlobInputStreamParent).Clear();
9119 : }
9120 : {
9121 : // Recursively deleting PMedia kids
9122 0 : for (auto iter = (mManagedPMediaParent).Iter(); (!((iter).Done())); (iter).Next()) {
9123 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9124 : }
9125 :
9126 0 : for (auto iter = (mManagedPMediaParent).Iter(); (!((iter).Done())); (iter).Next()) {
9127 0 : DeallocPMediaParent(((iter).Get())->GetKey());
9128 : }
9129 0 : (mManagedPMediaParent).Clear();
9130 : }
9131 : {
9132 : // Recursively deleting PNecko kids
9133 0 : for (auto iter = (mManagedPNeckoParent).Iter(); (!((iter).Done())); (iter).Next()) {
9134 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9135 : }
9136 :
9137 0 : for (auto iter = (mManagedPNeckoParent).Iter(); (!((iter).Done())); (iter).Next()) {
9138 0 : DeallocPNeckoParent(((iter).Get())->GetKey());
9139 : }
9140 0 : (mManagedPNeckoParent).Clear();
9141 : }
9142 : {
9143 : // Recursively deleting POfflineCacheUpdate kids
9144 0 : for (auto iter = (mManagedPOfflineCacheUpdateParent).Iter(); (!((iter).Done())); (iter).Next()) {
9145 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9146 : }
9147 :
9148 0 : for (auto iter = (mManagedPOfflineCacheUpdateParent).Iter(); (!((iter).Done())); (iter).Next()) {
9149 0 : DeallocPOfflineCacheUpdateParent(((iter).Get())->GetKey());
9150 : }
9151 0 : (mManagedPOfflineCacheUpdateParent).Clear();
9152 : }
9153 : {
9154 : // Recursively deleting PPrinting kids
9155 0 : for (auto iter = (mManagedPPrintingParent).Iter(); (!((iter).Done())); (iter).Next()) {
9156 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9157 : }
9158 :
9159 0 : for (auto iter = (mManagedPPrintingParent).Iter(); (!((iter).Done())); (iter).Next()) {
9160 0 : DeallocPPrintingParent(((iter).Get())->GetKey());
9161 : }
9162 0 : (mManagedPPrintingParent).Clear();
9163 : }
9164 : {
9165 : // Recursively deleting PChildToParentStream kids
9166 0 : for (auto iter = (mManagedPChildToParentStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
9167 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9168 : }
9169 :
9170 0 : for (auto iter = (mManagedPChildToParentStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
9171 0 : DeallocPChildToParentStreamParent(((iter).Get())->GetKey());
9172 : }
9173 0 : (mManagedPChildToParentStreamParent).Clear();
9174 : }
9175 : {
9176 : // Recursively deleting PParentToChildStream kids
9177 0 : for (auto iter = (mManagedPParentToChildStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
9178 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9179 : }
9180 :
9181 0 : for (auto iter = (mManagedPParentToChildStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
9182 0 : DeallocPParentToChildStreamParent(((iter).Get())->GetKey());
9183 : }
9184 0 : (mManagedPParentToChildStreamParent).Clear();
9185 : }
9186 : {
9187 : // Recursively deleting PSpeechSynthesis kids
9188 0 : for (auto iter = (mManagedPSpeechSynthesisParent).Iter(); (!((iter).Done())); (iter).Next()) {
9189 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9190 : }
9191 :
9192 0 : for (auto iter = (mManagedPSpeechSynthesisParent).Iter(); (!((iter).Done())); (iter).Next()) {
9193 0 : DeallocPSpeechSynthesisParent(((iter).Get())->GetKey());
9194 : }
9195 0 : (mManagedPSpeechSynthesisParent).Clear();
9196 : }
9197 : {
9198 : // Recursively deleting PStorage kids
9199 0 : for (auto iter = (mManagedPStorageParent).Iter(); (!((iter).Done())); (iter).Next()) {
9200 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9201 : }
9202 :
9203 0 : for (auto iter = (mManagedPStorageParent).Iter(); (!((iter).Done())); (iter).Next()) {
9204 0 : DeallocPStorageParent(((iter).Get())->GetKey());
9205 : }
9206 0 : (mManagedPStorageParent).Clear();
9207 : }
9208 : {
9209 : // Recursively deleting PTestShell kids
9210 0 : for (auto iter = (mManagedPTestShellParent).Iter(); (!((iter).Done())); (iter).Next()) {
9211 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9212 : }
9213 :
9214 0 : for (auto iter = (mManagedPTestShellParent).Iter(); (!((iter).Done())); (iter).Next()) {
9215 0 : DeallocPTestShellParent(((iter).Get())->GetKey());
9216 : }
9217 0 : (mManagedPTestShellParent).Clear();
9218 : }
9219 : {
9220 : // Recursively deleting PJavaScript kids
9221 0 : for (auto iter = (mManagedPJavaScriptParent).Iter(); (!((iter).Done())); (iter).Next()) {
9222 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9223 : }
9224 :
9225 0 : for (auto iter = (mManagedPJavaScriptParent).Iter(); (!((iter).Done())); (iter).Next()) {
9226 0 : DeallocPJavaScriptParent(((iter).Get())->GetKey());
9227 : }
9228 0 : (mManagedPJavaScriptParent).Clear();
9229 : }
9230 : {
9231 : // Recursively deleting PRemoteSpellcheckEngine kids
9232 0 : for (auto iter = (mManagedPRemoteSpellcheckEngineParent).Iter(); (!((iter).Done())); (iter).Next()) {
9233 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9234 : }
9235 :
9236 0 : for (auto iter = (mManagedPRemoteSpellcheckEngineParent).Iter(); (!((iter).Done())); (iter).Next()) {
9237 0 : DeallocPRemoteSpellcheckEngineParent(((iter).Get())->GetKey());
9238 : }
9239 0 : (mManagedPRemoteSpellcheckEngineParent).Clear();
9240 : }
9241 : {
9242 : // Recursively deleting PWebBrowserPersistDocument kids
9243 0 : for (auto iter = (mManagedPWebBrowserPersistDocumentParent).Iter(); (!((iter).Done())); (iter).Next()) {
9244 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9245 : }
9246 :
9247 0 : for (auto iter = (mManagedPWebBrowserPersistDocumentParent).Iter(); (!((iter).Done())); (iter).Next()) {
9248 0 : DeallocPWebBrowserPersistDocumentParent(((iter).Get())->GetKey());
9249 : }
9250 0 : (mManagedPWebBrowserPersistDocumentParent).Clear();
9251 : }
9252 : {
9253 : // Recursively deleting PWebrtcGlobal kids
9254 0 : for (auto iter = (mManagedPWebrtcGlobalParent).Iter(); (!((iter).Done())); (iter).Next()) {
9255 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9256 : }
9257 :
9258 0 : for (auto iter = (mManagedPWebrtcGlobalParent).Iter(); (!((iter).Done())); (iter).Next()) {
9259 0 : DeallocPWebrtcGlobalParent(((iter).Get())->GetKey());
9260 : }
9261 0 : (mManagedPWebrtcGlobalParent).Clear();
9262 : }
9263 : {
9264 : // Recursively deleting PPresentation kids
9265 0 : for (auto iter = (mManagedPPresentationParent).Iter(); (!((iter).Done())); (iter).Next()) {
9266 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9267 : }
9268 :
9269 0 : for (auto iter = (mManagedPPresentationParent).Iter(); (!((iter).Done())); (iter).Next()) {
9270 0 : DeallocPPresentationParent(((iter).Get())->GetKey());
9271 : }
9272 0 : (mManagedPPresentationParent).Clear();
9273 : }
9274 : {
9275 : // Recursively deleting PFlyWebPublishedServer kids
9276 0 : for (auto iter = (mManagedPFlyWebPublishedServerParent).Iter(); (!((iter).Done())); (iter).Next()) {
9277 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9278 : }
9279 :
9280 0 : for (auto iter = (mManagedPFlyWebPublishedServerParent).Iter(); (!((iter).Done())); (iter).Next()) {
9281 0 : DeallocPFlyWebPublishedServerParent(((iter).Get())->GetKey());
9282 : }
9283 0 : (mManagedPFlyWebPublishedServerParent).Clear();
9284 : }
9285 : {
9286 : // Recursively deleting PURLClassifier kids
9287 0 : for (auto iter = (mManagedPURLClassifierParent).Iter(); (!((iter).Done())); (iter).Next()) {
9288 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9289 : }
9290 :
9291 0 : for (auto iter = (mManagedPURLClassifierParent).Iter(); (!((iter).Done())); (iter).Next()) {
9292 0 : DeallocPURLClassifierParent(((iter).Get())->GetKey());
9293 : }
9294 0 : (mManagedPURLClassifierParent).Clear();
9295 : }
9296 : {
9297 : // Recursively deleting PURLClassifierLocal kids
9298 0 : for (auto iter = (mManagedPURLClassifierLocalParent).Iter(); (!((iter).Done())); (iter).Next()) {
9299 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9300 : }
9301 :
9302 0 : for (auto iter = (mManagedPURLClassifierLocalParent).Iter(); (!((iter).Done())); (iter).Next()) {
9303 0 : DeallocPURLClassifierLocalParent(((iter).Get())->GetKey());
9304 : }
9305 0 : (mManagedPURLClassifierLocalParent).Clear();
9306 : }
9307 : {
9308 : // Recursively deleting PScriptCache kids
9309 0 : for (auto iter = (mManagedPScriptCacheParent).Iter(); (!((iter).Done())); (iter).Next()) {
9310 0 : (((iter).Get())->GetKey())->DeallocSubtree();
9311 : }
9312 :
9313 0 : for (auto iter = (mManagedPScriptCacheParent).Iter(); (!((iter).Done())); (iter).Next()) {
9314 0 : DeallocPScriptCacheParent(((iter).Get())->GetKey());
9315 : }
9316 0 : (mManagedPScriptCacheParent).Clear();
9317 : }
9318 0 : }
9319 :
9320 0 : auto PContentParent::DeallocPContentParent() -> void
9321 : {
9322 0 : }
9323 :
9324 0 : auto PContentParent::Write(
9325 : const PPrintingParent* v__,
9326 : Message* msg__,
9327 : bool nullable__) -> void
9328 : {
9329 : int32_t id;
9330 0 : if ((!(v__))) {
9331 0 : if ((!(nullable__))) {
9332 0 : FatalError("NULL actor value passed to non-nullable param");
9333 : }
9334 0 : id = 0;
9335 : }
9336 : else {
9337 0 : id = (v__)->Id();
9338 0 : if ((1) == (id)) {
9339 0 : FatalError("actor has been |delete|d");
9340 : }
9341 : }
9342 :
9343 0 : Write(id, msg__);
9344 0 : }
9345 :
9346 0 : auto PContentParent::Read(
9347 : PPrintingParent** v__,
9348 : const Message* msg__,
9349 : PickleIterator* iter__,
9350 : bool nullable__) -> bool
9351 : {
9352 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPrinting", PPrintingMsgStart);
9353 0 : if ((actor).isNothing()) {
9354 0 : return false;
9355 : }
9356 :
9357 0 : (*(v__)) = static_cast<PPrintingParent*>((actor).value());
9358 0 : return true;
9359 : }
9360 :
9361 0 : auto PContentParent::Write(
9362 : const FileCreationErrorResult& v__,
9363 : Message* msg__) -> void
9364 : {
9365 0 : Write((v__).errorCode(), msg__);
9366 : // Sentinel = 'errorCode'
9367 0 : (msg__)->WriteSentinel(262143504);
9368 0 : }
9369 :
9370 0 : auto PContentParent::Read(
9371 : FileCreationErrorResult* v__,
9372 : const Message* msg__,
9373 : PickleIterator* iter__) -> bool
9374 : {
9375 0 : if ((!(Read((&((v__)->errorCode())), msg__, iter__)))) {
9376 0 : FatalError("Error deserializing 'errorCode' (nsresult) member of 'FileCreationErrorResult'");
9377 0 : return false;
9378 : }
9379 : // Sentinel = 'errorCode'
9380 0 : if ((!((msg__)->ReadSentinel(iter__, 262143504)))) {
9381 0 : mozilla::ipc::SentinelReadError("Error deserializing 'errorCode' (nsresult) member of 'FileCreationErrorResult'");
9382 0 : return false;
9383 : }
9384 0 : return true;
9385 : }
9386 :
9387 0 : auto PContentParent::Write(
9388 : const PURLClassifierParent* v__,
9389 : Message* msg__,
9390 : bool nullable__) -> void
9391 : {
9392 : int32_t id;
9393 0 : if ((!(v__))) {
9394 0 : if ((!(nullable__))) {
9395 0 : FatalError("NULL actor value passed to non-nullable param");
9396 : }
9397 0 : id = 0;
9398 : }
9399 : else {
9400 0 : id = (v__)->Id();
9401 0 : if ((1) == (id)) {
9402 0 : FatalError("actor has been |delete|d");
9403 : }
9404 : }
9405 :
9406 0 : Write(id, msg__);
9407 0 : }
9408 :
9409 0 : auto PContentParent::Read(
9410 : PURLClassifierParent** v__,
9411 : const Message* msg__,
9412 : PickleIterator* iter__,
9413 : bool nullable__) -> bool
9414 : {
9415 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PURLClassifier", PURLClassifierMsgStart);
9416 0 : if ((actor).isNothing()) {
9417 0 : return false;
9418 : }
9419 :
9420 0 : (*(v__)) = static_cast<PURLClassifierParent*>((actor).value());
9421 0 : return true;
9422 : }
9423 :
9424 0 : auto PContentParent::Write(
9425 : const ContentPrincipalInfoOriginNoSuffix& v__,
9426 : Message* msg__) -> void
9427 : {
9428 : typedef ContentPrincipalInfoOriginNoSuffix type__;
9429 0 : Write(int((v__).type()), msg__);
9430 : // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
9431 0 : (msg__)->WriteSentinel(2442066713);
9432 :
9433 0 : switch ((v__).type()) {
9434 : case type__::TnsCString:
9435 : {
9436 0 : Write((v__).get_nsCString(), msg__);
9437 : // Sentinel = 'TnsCString'
9438 0 : (msg__)->WriteSentinel(2427411293);
9439 0 : return;
9440 : }
9441 : case type__::Tvoid_t:
9442 : {
9443 0 : Write((v__).get_void_t(), msg__);
9444 : // Sentinel = 'Tvoid_t'
9445 0 : (msg__)->WriteSentinel(3041273328);
9446 0 : return;
9447 : }
9448 : default:
9449 : {
9450 0 : FatalError("unknown union type");
9451 0 : return;
9452 : }
9453 : }
9454 : }
9455 :
9456 0 : auto PContentParent::Read(
9457 : ContentPrincipalInfoOriginNoSuffix* v__,
9458 : const Message* msg__,
9459 : PickleIterator* iter__) -> bool
9460 : {
9461 : typedef ContentPrincipalInfoOriginNoSuffix type__;
9462 : int type;
9463 0 : if ((!(Read((&(type)), msg__, iter__)))) {
9464 0 : mozilla::ipc::UnionTypeReadError("ContentPrincipalInfoOriginNoSuffix");
9465 0 : return false;
9466 : }
9467 : // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
9468 0 : if ((!((msg__)->ReadSentinel(iter__, 2442066713)))) {
9469 0 : mozilla::ipc::SentinelReadError("ContentPrincipalInfoOriginNoSuffix");
9470 0 : return false;
9471 : }
9472 :
9473 0 : switch (type) {
9474 : case type__::TnsCString:
9475 : {
9476 0 : nsCString tmp = nsCString();
9477 0 : (*(v__)) = tmp;
9478 0 : if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
9479 0 : FatalError("Error deserializing Union type");
9480 0 : return false;
9481 : }
9482 : // Sentinel = 'TnsCString'
9483 0 : if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
9484 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
9485 0 : return false;
9486 : }
9487 0 : return true;
9488 : }
9489 : case type__::Tvoid_t:
9490 : {
9491 : void_t tmp = void_t();
9492 0 : (*(v__)) = tmp;
9493 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
9494 0 : FatalError("Error deserializing Union type");
9495 0 : return false;
9496 : }
9497 : // Sentinel = 'Tvoid_t'
9498 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
9499 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
9500 0 : return false;
9501 : }
9502 0 : return true;
9503 : }
9504 : default:
9505 : {
9506 0 : FatalError("unknown union type");
9507 0 : return false;
9508 : }
9509 : }
9510 : }
9511 :
9512 0 : auto PContentParent::Write(
9513 : const WellKnownSymbol& v__,
9514 : Message* msg__) -> void
9515 : {
9516 0 : Write((v__).which(), msg__);
9517 : // Sentinel = 'which'
9518 0 : (msg__)->WriteSentinel(328170422);
9519 0 : }
9520 :
9521 0 : auto PContentParent::Read(
9522 : WellKnownSymbol* v__,
9523 : const Message* msg__,
9524 : PickleIterator* iter__) -> bool
9525 : {
9526 0 : if ((!(Read((&((v__)->which())), msg__, iter__)))) {
9527 0 : FatalError("Error deserializing 'which' (uint32_t) member of 'WellKnownSymbol'");
9528 0 : return false;
9529 : }
9530 : // Sentinel = 'which'
9531 0 : if ((!((msg__)->ReadSentinel(iter__, 328170422)))) {
9532 0 : mozilla::ipc::SentinelReadError("Error deserializing 'which' (uint32_t) member of 'WellKnownSymbol'");
9533 0 : return false;
9534 : }
9535 0 : return true;
9536 : }
9537 :
9538 3 : auto PContentParent::Write(
9539 : const StandardURLParams& v__,
9540 : Message* msg__) -> void
9541 : {
9542 3 : Write((v__).urlType(), msg__);
9543 : // Sentinel = 'urlType'
9544 3 : (msg__)->WriteSentinel(4149428228);
9545 3 : Write((v__).port(), msg__);
9546 : // Sentinel = 'port'
9547 3 : (msg__)->WriteSentinel(3633211549);
9548 3 : Write((v__).defaultPort(), msg__);
9549 : // Sentinel = 'defaultPort'
9550 3 : (msg__)->WriteSentinel(599318897);
9551 3 : Write((v__).spec(), msg__);
9552 : // Sentinel = 'spec'
9553 3 : (msg__)->WriteSentinel(1630740541);
9554 3 : Write((v__).scheme(), msg__);
9555 : // Sentinel = 'scheme'
9556 3 : (msg__)->WriteSentinel(3619238715);
9557 3 : Write((v__).authority(), msg__);
9558 : // Sentinel = 'authority'
9559 3 : (msg__)->WriteSentinel(1669684878);
9560 3 : Write((v__).username(), msg__);
9561 : // Sentinel = 'username'
9562 3 : (msg__)->WriteSentinel(689225024);
9563 3 : Write((v__).password(), msg__);
9564 : // Sentinel = 'password'
9565 3 : (msg__)->WriteSentinel(2527534683);
9566 3 : Write((v__).host(), msg__);
9567 : // Sentinel = 'host'
9568 3 : (msg__)->WriteSentinel(4070301394);
9569 3 : Write((v__).path(), msg__);
9570 : // Sentinel = 'path'
9571 3 : (msg__)->WriteSentinel(913629401);
9572 3 : Write((v__).filePath(), msg__);
9573 : // Sentinel = 'filePath'
9574 3 : (msg__)->WriteSentinel(4122896455);
9575 3 : Write((v__).directory(), msg__);
9576 : // Sentinel = 'directory'
9577 3 : (msg__)->WriteSentinel(1201172472);
9578 3 : Write((v__).baseName(), msg__);
9579 : // Sentinel = 'baseName'
9580 3 : (msg__)->WriteSentinel(2448877418);
9581 3 : Write((v__).extension(), msg__);
9582 : // Sentinel = 'extension'
9583 3 : (msg__)->WriteSentinel(3211853542);
9584 3 : Write((v__).query(), msg__);
9585 : // Sentinel = 'query'
9586 3 : (msg__)->WriteSentinel(4249802777);
9587 3 : Write((v__).ref(), msg__);
9588 : // Sentinel = 'ref'
9589 3 : (msg__)->WriteSentinel(2626476732);
9590 3 : Write((v__).originCharset(), msg__);
9591 : // Sentinel = 'originCharset'
9592 3 : (msg__)->WriteSentinel(1320725495);
9593 3 : Write((v__).isMutable(), msg__);
9594 : // Sentinel = 'isMutable'
9595 3 : (msg__)->WriteSentinel(3552466783);
9596 3 : Write((v__).supportsFileURL(), msg__);
9597 : // Sentinel = 'supportsFileURL'
9598 3 : (msg__)->WriteSentinel(1871785710);
9599 3 : }
9600 :
9601 2 : auto PContentParent::Read(
9602 : StandardURLParams* v__,
9603 : const Message* msg__,
9604 : PickleIterator* iter__) -> bool
9605 : {
9606 2 : if ((!(Read((&((v__)->urlType())), msg__, iter__)))) {
9607 0 : FatalError("Error deserializing 'urlType' (uint32_t) member of 'StandardURLParams'");
9608 0 : return false;
9609 : }
9610 : // Sentinel = 'urlType'
9611 2 : if ((!((msg__)->ReadSentinel(iter__, 4149428228)))) {
9612 0 : mozilla::ipc::SentinelReadError("Error deserializing 'urlType' (uint32_t) member of 'StandardURLParams'");
9613 0 : return false;
9614 : }
9615 2 : if ((!(Read((&((v__)->port())), msg__, iter__)))) {
9616 0 : FatalError("Error deserializing 'port' (int32_t) member of 'StandardURLParams'");
9617 0 : return false;
9618 : }
9619 : // Sentinel = 'port'
9620 2 : if ((!((msg__)->ReadSentinel(iter__, 3633211549)))) {
9621 0 : mozilla::ipc::SentinelReadError("Error deserializing 'port' (int32_t) member of 'StandardURLParams'");
9622 0 : return false;
9623 : }
9624 2 : if ((!(Read((&((v__)->defaultPort())), msg__, iter__)))) {
9625 0 : FatalError("Error deserializing 'defaultPort' (int32_t) member of 'StandardURLParams'");
9626 0 : return false;
9627 : }
9628 : // Sentinel = 'defaultPort'
9629 2 : if ((!((msg__)->ReadSentinel(iter__, 599318897)))) {
9630 0 : mozilla::ipc::SentinelReadError("Error deserializing 'defaultPort' (int32_t) member of 'StandardURLParams'");
9631 0 : return false;
9632 : }
9633 2 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
9634 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'StandardURLParams'");
9635 0 : return false;
9636 : }
9637 : // Sentinel = 'spec'
9638 2 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
9639 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'StandardURLParams'");
9640 0 : return false;
9641 : }
9642 2 : if ((!(Read((&((v__)->scheme())), msg__, iter__)))) {
9643 0 : FatalError("Error deserializing 'scheme' (StandardURLSegment) member of 'StandardURLParams'");
9644 0 : return false;
9645 : }
9646 : // Sentinel = 'scheme'
9647 2 : if ((!((msg__)->ReadSentinel(iter__, 3619238715)))) {
9648 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scheme' (StandardURLSegment) member of 'StandardURLParams'");
9649 0 : return false;
9650 : }
9651 2 : if ((!(Read((&((v__)->authority())), msg__, iter__)))) {
9652 0 : FatalError("Error deserializing 'authority' (StandardURLSegment) member of 'StandardURLParams'");
9653 0 : return false;
9654 : }
9655 : // Sentinel = 'authority'
9656 2 : if ((!((msg__)->ReadSentinel(iter__, 1669684878)))) {
9657 0 : mozilla::ipc::SentinelReadError("Error deserializing 'authority' (StandardURLSegment) member of 'StandardURLParams'");
9658 0 : return false;
9659 : }
9660 2 : if ((!(Read((&((v__)->username())), msg__, iter__)))) {
9661 0 : FatalError("Error deserializing 'username' (StandardURLSegment) member of 'StandardURLParams'");
9662 0 : return false;
9663 : }
9664 : // Sentinel = 'username'
9665 2 : if ((!((msg__)->ReadSentinel(iter__, 689225024)))) {
9666 0 : mozilla::ipc::SentinelReadError("Error deserializing 'username' (StandardURLSegment) member of 'StandardURLParams'");
9667 0 : return false;
9668 : }
9669 2 : if ((!(Read((&((v__)->password())), msg__, iter__)))) {
9670 0 : FatalError("Error deserializing 'password' (StandardURLSegment) member of 'StandardURLParams'");
9671 0 : return false;
9672 : }
9673 : // Sentinel = 'password'
9674 2 : if ((!((msg__)->ReadSentinel(iter__, 2527534683)))) {
9675 0 : mozilla::ipc::SentinelReadError("Error deserializing 'password' (StandardURLSegment) member of 'StandardURLParams'");
9676 0 : return false;
9677 : }
9678 2 : if ((!(Read((&((v__)->host())), msg__, iter__)))) {
9679 0 : FatalError("Error deserializing 'host' (StandardURLSegment) member of 'StandardURLParams'");
9680 0 : return false;
9681 : }
9682 : // Sentinel = 'host'
9683 2 : if ((!((msg__)->ReadSentinel(iter__, 4070301394)))) {
9684 0 : mozilla::ipc::SentinelReadError("Error deserializing 'host' (StandardURLSegment) member of 'StandardURLParams'");
9685 0 : return false;
9686 : }
9687 2 : if ((!(Read((&((v__)->path())), msg__, iter__)))) {
9688 0 : FatalError("Error deserializing 'path' (StandardURLSegment) member of 'StandardURLParams'");
9689 0 : return false;
9690 : }
9691 : // Sentinel = 'path'
9692 2 : if ((!((msg__)->ReadSentinel(iter__, 913629401)))) {
9693 0 : mozilla::ipc::SentinelReadError("Error deserializing 'path' (StandardURLSegment) member of 'StandardURLParams'");
9694 0 : return false;
9695 : }
9696 2 : if ((!(Read((&((v__)->filePath())), msg__, iter__)))) {
9697 0 : FatalError("Error deserializing 'filePath' (StandardURLSegment) member of 'StandardURLParams'");
9698 0 : return false;
9699 : }
9700 : // Sentinel = 'filePath'
9701 2 : if ((!((msg__)->ReadSentinel(iter__, 4122896455)))) {
9702 0 : mozilla::ipc::SentinelReadError("Error deserializing 'filePath' (StandardURLSegment) member of 'StandardURLParams'");
9703 0 : return false;
9704 : }
9705 2 : if ((!(Read((&((v__)->directory())), msg__, iter__)))) {
9706 0 : FatalError("Error deserializing 'directory' (StandardURLSegment) member of 'StandardURLParams'");
9707 0 : return false;
9708 : }
9709 : // Sentinel = 'directory'
9710 2 : if ((!((msg__)->ReadSentinel(iter__, 1201172472)))) {
9711 0 : mozilla::ipc::SentinelReadError("Error deserializing 'directory' (StandardURLSegment) member of 'StandardURLParams'");
9712 0 : return false;
9713 : }
9714 2 : if ((!(Read((&((v__)->baseName())), msg__, iter__)))) {
9715 0 : FatalError("Error deserializing 'baseName' (StandardURLSegment) member of 'StandardURLParams'");
9716 0 : return false;
9717 : }
9718 : // Sentinel = 'baseName'
9719 2 : if ((!((msg__)->ReadSentinel(iter__, 2448877418)))) {
9720 0 : mozilla::ipc::SentinelReadError("Error deserializing 'baseName' (StandardURLSegment) member of 'StandardURLParams'");
9721 0 : return false;
9722 : }
9723 2 : if ((!(Read((&((v__)->extension())), msg__, iter__)))) {
9724 0 : FatalError("Error deserializing 'extension' (StandardURLSegment) member of 'StandardURLParams'");
9725 0 : return false;
9726 : }
9727 : // Sentinel = 'extension'
9728 2 : if ((!((msg__)->ReadSentinel(iter__, 3211853542)))) {
9729 0 : mozilla::ipc::SentinelReadError("Error deserializing 'extension' (StandardURLSegment) member of 'StandardURLParams'");
9730 0 : return false;
9731 : }
9732 2 : if ((!(Read((&((v__)->query())), msg__, iter__)))) {
9733 0 : FatalError("Error deserializing 'query' (StandardURLSegment) member of 'StandardURLParams'");
9734 0 : return false;
9735 : }
9736 : // Sentinel = 'query'
9737 2 : if ((!((msg__)->ReadSentinel(iter__, 4249802777)))) {
9738 0 : mozilla::ipc::SentinelReadError("Error deserializing 'query' (StandardURLSegment) member of 'StandardURLParams'");
9739 0 : return false;
9740 : }
9741 2 : if ((!(Read((&((v__)->ref())), msg__, iter__)))) {
9742 0 : FatalError("Error deserializing 'ref' (StandardURLSegment) member of 'StandardURLParams'");
9743 0 : return false;
9744 : }
9745 : // Sentinel = 'ref'
9746 2 : if ((!((msg__)->ReadSentinel(iter__, 2626476732)))) {
9747 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ref' (StandardURLSegment) member of 'StandardURLParams'");
9748 0 : return false;
9749 : }
9750 2 : if ((!(Read((&((v__)->originCharset())), msg__, iter__)))) {
9751 0 : FatalError("Error deserializing 'originCharset' (nsCString) member of 'StandardURLParams'");
9752 0 : return false;
9753 : }
9754 : // Sentinel = 'originCharset'
9755 2 : if ((!((msg__)->ReadSentinel(iter__, 1320725495)))) {
9756 0 : mozilla::ipc::SentinelReadError("Error deserializing 'originCharset' (nsCString) member of 'StandardURLParams'");
9757 0 : return false;
9758 : }
9759 2 : if ((!(Read((&((v__)->isMutable())), msg__, iter__)))) {
9760 0 : FatalError("Error deserializing 'isMutable' (bool) member of 'StandardURLParams'");
9761 0 : return false;
9762 : }
9763 : // Sentinel = 'isMutable'
9764 2 : if ((!((msg__)->ReadSentinel(iter__, 3552466783)))) {
9765 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isMutable' (bool) member of 'StandardURLParams'");
9766 0 : return false;
9767 : }
9768 2 : if ((!(Read((&((v__)->supportsFileURL())), msg__, iter__)))) {
9769 0 : FatalError("Error deserializing 'supportsFileURL' (bool) member of 'StandardURLParams'");
9770 0 : return false;
9771 : }
9772 : // Sentinel = 'supportsFileURL'
9773 2 : if ((!((msg__)->ReadSentinel(iter__, 1871785710)))) {
9774 0 : mozilla::ipc::SentinelReadError("Error deserializing 'supportsFileURL' (bool) member of 'StandardURLParams'");
9775 0 : return false;
9776 : }
9777 2 : return true;
9778 : }
9779 :
9780 44 : auto PContentParent::Write(
9781 : const GfxInfoFeatureStatus& v__,
9782 : Message* msg__) -> void
9783 : {
9784 44 : Write((v__).feature(), msg__);
9785 : // Sentinel = 'feature'
9786 44 : (msg__)->WriteSentinel(4241949101);
9787 44 : Write((v__).status(), msg__);
9788 : // Sentinel = 'status'
9789 44 : (msg__)->WriteSentinel(3714608576);
9790 44 : Write((v__).failureId(), msg__);
9791 : // Sentinel = 'failureId'
9792 44 : (msg__)->WriteSentinel(2726219852);
9793 44 : }
9794 :
9795 0 : auto PContentParent::Read(
9796 : GfxInfoFeatureStatus* v__,
9797 : const Message* msg__,
9798 : PickleIterator* iter__) -> bool
9799 : {
9800 0 : if ((!(Read((&((v__)->feature())), msg__, iter__)))) {
9801 0 : FatalError("Error deserializing 'feature' (int32_t) member of 'GfxInfoFeatureStatus'");
9802 0 : return false;
9803 : }
9804 : // Sentinel = 'feature'
9805 0 : if ((!((msg__)->ReadSentinel(iter__, 4241949101)))) {
9806 0 : mozilla::ipc::SentinelReadError("Error deserializing 'feature' (int32_t) member of 'GfxInfoFeatureStatus'");
9807 0 : return false;
9808 : }
9809 0 : if ((!(Read((&((v__)->status())), msg__, iter__)))) {
9810 0 : FatalError("Error deserializing 'status' (int32_t) member of 'GfxInfoFeatureStatus'");
9811 0 : return false;
9812 : }
9813 : // Sentinel = 'status'
9814 0 : if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
9815 0 : mozilla::ipc::SentinelReadError("Error deserializing 'status' (int32_t) member of 'GfxInfoFeatureStatus'");
9816 0 : return false;
9817 : }
9818 0 : if ((!(Read((&((v__)->failureId())), msg__, iter__)))) {
9819 0 : FatalError("Error deserializing 'failureId' (nsCString) member of 'GfxInfoFeatureStatus'");
9820 0 : return false;
9821 : }
9822 : // Sentinel = 'failureId'
9823 0 : if ((!((msg__)->ReadSentinel(iter__, 2726219852)))) {
9824 0 : mozilla::ipc::SentinelReadError("Error deserializing 'failureId' (nsCString) member of 'GfxInfoFeatureStatus'");
9825 0 : return false;
9826 : }
9827 0 : return true;
9828 : }
9829 :
9830 0 : auto PContentParent::Write(
9831 : const PSpeechSynthesisParent* v__,
9832 : Message* msg__,
9833 : bool nullable__) -> void
9834 : {
9835 : int32_t id;
9836 0 : if ((!(v__))) {
9837 0 : if ((!(nullable__))) {
9838 0 : FatalError("NULL actor value passed to non-nullable param");
9839 : }
9840 0 : id = 0;
9841 : }
9842 : else {
9843 0 : id = (v__)->Id();
9844 0 : if ((1) == (id)) {
9845 0 : FatalError("actor has been |delete|d");
9846 : }
9847 : }
9848 :
9849 0 : Write(id, msg__);
9850 0 : }
9851 :
9852 0 : auto PContentParent::Read(
9853 : PSpeechSynthesisParent** v__,
9854 : const Message* msg__,
9855 : PickleIterator* iter__,
9856 : bool nullable__) -> bool
9857 : {
9858 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PSpeechSynthesis", PSpeechSynthesisMsgStart);
9859 0 : if ((actor).isNothing()) {
9860 0 : return false;
9861 : }
9862 :
9863 0 : (*(v__)) = static_cast<PSpeechSynthesisParent*>((actor).value());
9864 0 : return true;
9865 : }
9866 :
9867 0 : auto PContentParent::Write(
9868 : const FrameScriptInfo& v__,
9869 : Message* msg__) -> void
9870 : {
9871 0 : Write((v__).url(), msg__);
9872 : // Sentinel = 'url'
9873 0 : (msg__)->WriteSentinel(1453210600);
9874 0 : Write((v__).runInGlobalScope(), msg__);
9875 : // Sentinel = 'runInGlobalScope'
9876 0 : (msg__)->WriteSentinel(471517085);
9877 0 : }
9878 :
9879 0 : auto PContentParent::Read(
9880 : FrameScriptInfo* v__,
9881 : const Message* msg__,
9882 : PickleIterator* iter__) -> bool
9883 : {
9884 0 : if ((!(Read((&((v__)->url())), msg__, iter__)))) {
9885 0 : FatalError("Error deserializing 'url' (nsString) member of 'FrameScriptInfo'");
9886 0 : return false;
9887 : }
9888 : // Sentinel = 'url'
9889 0 : if ((!((msg__)->ReadSentinel(iter__, 1453210600)))) {
9890 0 : mozilla::ipc::SentinelReadError("Error deserializing 'url' (nsString) member of 'FrameScriptInfo'");
9891 0 : return false;
9892 : }
9893 0 : if ((!(Read((&((v__)->runInGlobalScope())), msg__, iter__)))) {
9894 0 : FatalError("Error deserializing 'runInGlobalScope' (bool) member of 'FrameScriptInfo'");
9895 0 : return false;
9896 : }
9897 : // Sentinel = 'runInGlobalScope'
9898 0 : if ((!((msg__)->ReadSentinel(iter__, 471517085)))) {
9899 0 : mozilla::ipc::SentinelReadError("Error deserializing 'runInGlobalScope' (bool) member of 'FrameScriptInfo'");
9900 0 : return false;
9901 : }
9902 0 : return true;
9903 : }
9904 :
9905 2 : auto PContentParent::Write(
9906 : const FileDescOrError& v__,
9907 : Message* msg__) -> void
9908 : {
9909 : typedef FileDescOrError type__;
9910 2 : Write(int((v__).type()), msg__);
9911 : // Sentinel = 'FileDescOrError'
9912 2 : (msg__)->WriteSentinel(485183767);
9913 :
9914 2 : switch ((v__).type()) {
9915 : case type__::TFileDescriptor:
9916 : {
9917 2 : Write((v__).get_FileDescriptor(), msg__);
9918 : // Sentinel = 'TFileDescriptor'
9919 2 : (msg__)->WriteSentinel(3431583866);
9920 2 : return;
9921 : }
9922 : case type__::Tnsresult:
9923 : {
9924 0 : Write((v__).get_nsresult(), msg__);
9925 : // Sentinel = 'Tnsresult'
9926 0 : (msg__)->WriteSentinel(2293764539);
9927 0 : return;
9928 : }
9929 : default:
9930 : {
9931 0 : FatalError("unknown union type");
9932 0 : return;
9933 : }
9934 : }
9935 : }
9936 :
9937 0 : auto PContentParent::Read(
9938 : FileDescOrError* v__,
9939 : const Message* msg__,
9940 : PickleIterator* iter__) -> bool
9941 : {
9942 : typedef FileDescOrError type__;
9943 : int type;
9944 0 : if ((!(Read((&(type)), msg__, iter__)))) {
9945 0 : mozilla::ipc::UnionTypeReadError("FileDescOrError");
9946 0 : return false;
9947 : }
9948 : // Sentinel = 'FileDescOrError'
9949 0 : if ((!((msg__)->ReadSentinel(iter__, 485183767)))) {
9950 0 : mozilla::ipc::SentinelReadError("FileDescOrError");
9951 0 : return false;
9952 : }
9953 :
9954 0 : switch (type) {
9955 : case type__::TFileDescriptor:
9956 : {
9957 0 : FileDescriptor tmp = FileDescriptor();
9958 0 : (*(v__)) = tmp;
9959 0 : if ((!(Read((&((v__)->get_FileDescriptor())), msg__, iter__)))) {
9960 0 : FatalError("Error deserializing Union type");
9961 0 : return false;
9962 : }
9963 : // Sentinel = 'TFileDescriptor'
9964 0 : if ((!((msg__)->ReadSentinel(iter__, 3431583866)))) {
9965 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
9966 0 : return false;
9967 : }
9968 0 : return true;
9969 : }
9970 : case type__::Tnsresult:
9971 : {
9972 0 : nsresult tmp = nsresult();
9973 0 : (*(v__)) = tmp;
9974 0 : if ((!(Read((&((v__)->get_nsresult())), msg__, iter__)))) {
9975 0 : FatalError("Error deserializing Union type");
9976 0 : return false;
9977 : }
9978 : // Sentinel = 'Tnsresult'
9979 0 : if ((!((msg__)->ReadSentinel(iter__, 2293764539)))) {
9980 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
9981 0 : return false;
9982 : }
9983 0 : return true;
9984 : }
9985 : default:
9986 : {
9987 0 : FatalError("unknown union type");
9988 0 : return false;
9989 : }
9990 : }
9991 : }
9992 :
9993 0 : auto PContentParent::Write(
9994 : const nsTArray<FrameScriptInfo>& v__,
9995 : Message* msg__) -> void
9996 : {
9997 0 : uint32_t length = (v__).Length();
9998 0 : Write(length, msg__);
9999 : // Sentinel = ('length', 'FrameScriptInfo[]')
10000 0 : (msg__)->WriteSentinel(627330232);
10001 :
10002 0 : for (auto& elem : v__) {
10003 0 : Write(elem, msg__);
10004 : // Sentinel = 'FrameScriptInfo[]'
10005 0 : (msg__)->WriteSentinel(1658954175);
10006 : }
10007 0 : }
10008 :
10009 0 : auto PContentParent::Read(
10010 : nsTArray<FrameScriptInfo>* v__,
10011 : const Message* msg__,
10012 : PickleIterator* iter__) -> bool
10013 : {
10014 0 : nsTArray<FrameScriptInfo> fa;
10015 : uint32_t length;
10016 0 : if ((!(Read((&(length)), msg__, iter__)))) {
10017 0 : mozilla::ipc::ArrayLengthReadError("FrameScriptInfo[]");
10018 0 : return false;
10019 : }
10020 : // Sentinel = ('length', 'FrameScriptInfo[]')
10021 0 : if ((!((msg__)->ReadSentinel(iter__, 627330232)))) {
10022 0 : mozilla::ipc::SentinelReadError("FrameScriptInfo[]");
10023 0 : return false;
10024 : }
10025 :
10026 0 : FrameScriptInfo* elems = (fa).AppendElements(length);
10027 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
10028 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
10029 0 : FatalError("Error deserializing 'FrameScriptInfo[i]'");
10030 0 : return false;
10031 : }
10032 : // Sentinel = 'FrameScriptInfo[]'
10033 0 : if ((!((msg__)->ReadSentinel(iter__, 1658954175)))) {
10034 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FrameScriptInfo[i]'");
10035 0 : return false;
10036 : }
10037 : }
10038 0 : (v__)->SwapElements(fa);
10039 0 : return true;
10040 : }
10041 :
10042 0 : auto PContentParent::Write(
10043 : const IPCFileUnion& v__,
10044 : Message* msg__) -> void
10045 : {
10046 : typedef IPCFileUnion type__;
10047 0 : Write(int((v__).type()), msg__);
10048 : // Sentinel = 'IPCFileUnion'
10049 0 : (msg__)->WriteSentinel(1913022529);
10050 :
10051 0 : switch ((v__).type()) {
10052 : case type__::Tvoid_t:
10053 : {
10054 0 : Write((v__).get_void_t(), msg__);
10055 : // Sentinel = 'Tvoid_t'
10056 0 : (msg__)->WriteSentinel(3041273328);
10057 0 : return;
10058 : }
10059 : case type__::TIPCFile:
10060 : {
10061 0 : Write((v__).get_IPCFile(), msg__);
10062 : // Sentinel = 'TIPCFile'
10063 0 : (msg__)->WriteSentinel(3562676876);
10064 0 : return;
10065 : }
10066 : default:
10067 : {
10068 0 : FatalError("unknown union type");
10069 0 : return;
10070 : }
10071 : }
10072 : }
10073 :
10074 0 : auto PContentParent::Read(
10075 : IPCFileUnion* v__,
10076 : const Message* msg__,
10077 : PickleIterator* iter__) -> bool
10078 : {
10079 : typedef IPCFileUnion type__;
10080 : int type;
10081 0 : if ((!(Read((&(type)), msg__, iter__)))) {
10082 0 : mozilla::ipc::UnionTypeReadError("IPCFileUnion");
10083 0 : return false;
10084 : }
10085 : // Sentinel = 'IPCFileUnion'
10086 0 : if ((!((msg__)->ReadSentinel(iter__, 1913022529)))) {
10087 0 : mozilla::ipc::SentinelReadError("IPCFileUnion");
10088 0 : return false;
10089 : }
10090 :
10091 0 : switch (type) {
10092 : case type__::Tvoid_t:
10093 : {
10094 : void_t tmp = void_t();
10095 0 : (*(v__)) = tmp;
10096 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
10097 0 : FatalError("Error deserializing Union type");
10098 0 : return false;
10099 : }
10100 : // Sentinel = 'Tvoid_t'
10101 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
10102 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
10103 0 : return false;
10104 : }
10105 0 : return true;
10106 : }
10107 : case type__::TIPCFile:
10108 : {
10109 0 : IPCFile tmp = IPCFile();
10110 0 : (*(v__)) = tmp;
10111 0 : if ((!(Read((&((v__)->get_IPCFile())), msg__, iter__)))) {
10112 0 : FatalError("Error deserializing Union type");
10113 0 : return false;
10114 : }
10115 : // Sentinel = 'TIPCFile'
10116 0 : if ((!((msg__)->ReadSentinel(iter__, 3562676876)))) {
10117 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
10118 0 : return false;
10119 : }
10120 0 : return true;
10121 : }
10122 : default:
10123 : {
10124 0 : FatalError("unknown union type");
10125 0 : return false;
10126 : }
10127 : }
10128 : }
10129 :
10130 0 : auto PContentParent::Write(
10131 : const PTestShellParent* v__,
10132 : Message* msg__,
10133 : bool nullable__) -> void
10134 : {
10135 : int32_t id;
10136 0 : if ((!(v__))) {
10137 0 : if ((!(nullable__))) {
10138 0 : FatalError("NULL actor value passed to non-nullable param");
10139 : }
10140 0 : id = 0;
10141 : }
10142 : else {
10143 0 : id = (v__)->Id();
10144 0 : if ((1) == (id)) {
10145 0 : FatalError("actor has been |delete|d");
10146 : }
10147 : }
10148 :
10149 0 : Write(id, msg__);
10150 0 : }
10151 :
10152 0 : auto PContentParent::Read(
10153 : PTestShellParent** v__,
10154 : const Message* msg__,
10155 : PickleIterator* iter__,
10156 : bool nullable__) -> bool
10157 : {
10158 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PTestShell", PTestShellMsgStart);
10159 0 : if ((actor).isNothing()) {
10160 0 : return false;
10161 : }
10162 :
10163 0 : (*(v__)) = static_cast<PTestShellParent*>((actor).value());
10164 0 : return true;
10165 : }
10166 :
10167 0 : auto PContentParent::Write(
10168 : const FileCreationResult& v__,
10169 : Message* msg__) -> void
10170 : {
10171 : typedef FileCreationResult type__;
10172 0 : Write(int((v__).type()), msg__);
10173 : // Sentinel = 'FileCreationResult'
10174 0 : (msg__)->WriteSentinel(4116604968);
10175 :
10176 0 : switch ((v__).type()) {
10177 : case type__::TFileCreationSuccessResult:
10178 : {
10179 0 : Write((v__).get_FileCreationSuccessResult(), msg__);
10180 : // Sentinel = 'TFileCreationSuccessResult'
10181 0 : (msg__)->WriteSentinel(3762472511);
10182 0 : return;
10183 : }
10184 : case type__::TFileCreationErrorResult:
10185 : {
10186 0 : Write((v__).get_FileCreationErrorResult(), msg__);
10187 : // Sentinel = 'TFileCreationErrorResult'
10188 0 : (msg__)->WriteSentinel(3521336454);
10189 0 : return;
10190 : }
10191 : default:
10192 : {
10193 0 : FatalError("unknown union type");
10194 0 : return;
10195 : }
10196 : }
10197 : }
10198 :
10199 0 : auto PContentParent::Read(
10200 : FileCreationResult* v__,
10201 : const Message* msg__,
10202 : PickleIterator* iter__) -> bool
10203 : {
10204 : typedef FileCreationResult type__;
10205 : int type;
10206 0 : if ((!(Read((&(type)), msg__, iter__)))) {
10207 0 : mozilla::ipc::UnionTypeReadError("FileCreationResult");
10208 0 : return false;
10209 : }
10210 : // Sentinel = 'FileCreationResult'
10211 0 : if ((!((msg__)->ReadSentinel(iter__, 4116604968)))) {
10212 0 : mozilla::ipc::SentinelReadError("FileCreationResult");
10213 0 : return false;
10214 : }
10215 :
10216 0 : switch (type) {
10217 : case type__::TFileCreationSuccessResult:
10218 : {
10219 0 : FileCreationSuccessResult tmp = FileCreationSuccessResult();
10220 0 : (*(v__)) = tmp;
10221 0 : if ((!(Read((&((v__)->get_FileCreationSuccessResult())), msg__, iter__)))) {
10222 0 : FatalError("Error deserializing Union type");
10223 0 : return false;
10224 : }
10225 : // Sentinel = 'TFileCreationSuccessResult'
10226 0 : if ((!((msg__)->ReadSentinel(iter__, 3762472511)))) {
10227 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
10228 0 : return false;
10229 : }
10230 0 : return true;
10231 : }
10232 : case type__::TFileCreationErrorResult:
10233 : {
10234 0 : FileCreationErrorResult tmp = FileCreationErrorResult();
10235 0 : (*(v__)) = tmp;
10236 0 : if ((!(Read((&((v__)->get_FileCreationErrorResult())), msg__, iter__)))) {
10237 0 : FatalError("Error deserializing Union type");
10238 0 : return false;
10239 : }
10240 : // Sentinel = 'TFileCreationErrorResult'
10241 0 : if ((!((msg__)->ReadSentinel(iter__, 3521336454)))) {
10242 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
10243 0 : return false;
10244 : }
10245 0 : return true;
10246 : }
10247 : default:
10248 : {
10249 0 : FatalError("unknown union type");
10250 0 : return false;
10251 : }
10252 : }
10253 : }
10254 :
10255 0 : auto PContentParent::Write(
10256 : const DimensionInfo& v__,
10257 : Message* msg__) -> void
10258 : {
10259 0 : Write((v__).rect(), msg__);
10260 : // Sentinel = 'rect'
10261 0 : (msg__)->WriteSentinel(438776542);
10262 0 : Write((v__).size(), msg__);
10263 : // Sentinel = 'size'
10264 0 : (msg__)->WriteSentinel(931048223);
10265 0 : Write((v__).orientation(), msg__);
10266 : // Sentinel = 'orientation'
10267 0 : (msg__)->WriteSentinel(759639429);
10268 0 : Write((v__).clientOffset(), msg__);
10269 : // Sentinel = 'clientOffset'
10270 0 : (msg__)->WriteSentinel(2868996624);
10271 0 : Write((v__).chromeDisp(), msg__);
10272 : // Sentinel = 'chromeDisp'
10273 0 : (msg__)->WriteSentinel(3933418452);
10274 0 : }
10275 :
10276 0 : auto PContentParent::Read(
10277 : DimensionInfo* v__,
10278 : const Message* msg__,
10279 : PickleIterator* iter__) -> bool
10280 : {
10281 0 : if ((!(Read((&((v__)->rect())), msg__, iter__)))) {
10282 0 : FatalError("Error deserializing 'rect' (CSSRect) member of 'DimensionInfo'");
10283 0 : return false;
10284 : }
10285 : // Sentinel = 'rect'
10286 0 : if ((!((msg__)->ReadSentinel(iter__, 438776542)))) {
10287 0 : mozilla::ipc::SentinelReadError("Error deserializing 'rect' (CSSRect) member of 'DimensionInfo'");
10288 0 : return false;
10289 : }
10290 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
10291 0 : FatalError("Error deserializing 'size' (CSSSize) member of 'DimensionInfo'");
10292 0 : return false;
10293 : }
10294 : // Sentinel = 'size'
10295 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
10296 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (CSSSize) member of 'DimensionInfo'");
10297 0 : return false;
10298 : }
10299 0 : if ((!(Read((&((v__)->orientation())), msg__, iter__)))) {
10300 0 : FatalError("Error deserializing 'orientation' (ScreenOrientationInternal) member of 'DimensionInfo'");
10301 0 : return false;
10302 : }
10303 : // Sentinel = 'orientation'
10304 0 : if ((!((msg__)->ReadSentinel(iter__, 759639429)))) {
10305 0 : mozilla::ipc::SentinelReadError("Error deserializing 'orientation' (ScreenOrientationInternal) member of 'DimensionInfo'");
10306 0 : return false;
10307 : }
10308 0 : if ((!(Read((&((v__)->clientOffset())), msg__, iter__)))) {
10309 0 : FatalError("Error deserializing 'clientOffset' (LayoutDeviceIntPoint) member of 'DimensionInfo'");
10310 0 : return false;
10311 : }
10312 : // Sentinel = 'clientOffset'
10313 0 : if ((!((msg__)->ReadSentinel(iter__, 2868996624)))) {
10314 0 : mozilla::ipc::SentinelReadError("Error deserializing 'clientOffset' (LayoutDeviceIntPoint) member of 'DimensionInfo'");
10315 0 : return false;
10316 : }
10317 0 : if ((!(Read((&((v__)->chromeDisp())), msg__, iter__)))) {
10318 0 : FatalError("Error deserializing 'chromeDisp' (LayoutDeviceIntPoint) member of 'DimensionInfo'");
10319 0 : return false;
10320 : }
10321 : // Sentinel = 'chromeDisp'
10322 0 : if ((!((msg__)->ReadSentinel(iter__, 3933418452)))) {
10323 0 : mozilla::ipc::SentinelReadError("Error deserializing 'chromeDisp' (LayoutDeviceIntPoint) member of 'DimensionInfo'");
10324 0 : return false;
10325 : }
10326 0 : return true;
10327 : }
10328 :
10329 0 : auto PContentParent::Write(
10330 : const PHalParent* v__,
10331 : Message* msg__,
10332 : bool nullable__) -> void
10333 : {
10334 : int32_t id;
10335 0 : if ((!(v__))) {
10336 0 : if ((!(nullable__))) {
10337 0 : FatalError("NULL actor value passed to non-nullable param");
10338 : }
10339 0 : id = 0;
10340 : }
10341 : else {
10342 0 : id = (v__)->Id();
10343 0 : if ((1) == (id)) {
10344 0 : FatalError("actor has been |delete|d");
10345 : }
10346 : }
10347 :
10348 0 : Write(id, msg__);
10349 0 : }
10350 :
10351 0 : auto PContentParent::Read(
10352 : PHalParent** v__,
10353 : const Message* msg__,
10354 : PickleIterator* iter__,
10355 : bool nullable__) -> bool
10356 : {
10357 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PHal", PHalMsgStart);
10358 0 : if ((actor).isNothing()) {
10359 0 : return false;
10360 : }
10361 :
10362 0 : (*(v__)) = static_cast<PHalParent*>((actor).value());
10363 0 : return true;
10364 : }
10365 :
10366 0 : auto PContentParent::Write(
10367 : const PNeckoParent* v__,
10368 : Message* msg__,
10369 : bool nullable__) -> void
10370 : {
10371 : int32_t id;
10372 0 : if ((!(v__))) {
10373 0 : if ((!(nullable__))) {
10374 0 : FatalError("NULL actor value passed to non-nullable param");
10375 : }
10376 0 : id = 0;
10377 : }
10378 : else {
10379 0 : id = (v__)->Id();
10380 0 : if ((1) == (id)) {
10381 0 : FatalError("actor has been |delete|d");
10382 : }
10383 : }
10384 :
10385 0 : Write(id, msg__);
10386 0 : }
10387 :
10388 0 : auto PContentParent::Read(
10389 : PNeckoParent** v__,
10390 : const Message* msg__,
10391 : PickleIterator* iter__,
10392 : bool nullable__) -> bool
10393 : {
10394 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PNecko", PNeckoMsgStart);
10395 0 : if ((actor).isNothing()) {
10396 0 : return false;
10397 : }
10398 :
10399 0 : (*(v__)) = static_cast<PNeckoParent*>((actor).value());
10400 0 : return true;
10401 : }
10402 :
10403 2 : auto PContentParent::Write(
10404 : const ClonedMessageData& v__,
10405 : Message* msg__) -> void
10406 : {
10407 2 : Write((v__).data(), msg__);
10408 : // Sentinel = 'data'
10409 2 : (msg__)->WriteSentinel(843352540);
10410 2 : Write((v__).blobs(), msg__);
10411 : // Sentinel = 'blobs'
10412 2 : (msg__)->WriteSentinel(635500709);
10413 2 : Write((v__).inputStreams(), msg__);
10414 : // Sentinel = 'inputStreams'
10415 2 : (msg__)->WriteSentinel(435739475);
10416 2 : Write((v__).identfiers(), msg__);
10417 : // Sentinel = 'identfiers'
10418 2 : (msg__)->WriteSentinel(3130566733);
10419 2 : }
10420 :
10421 3 : auto PContentParent::Read(
10422 : ClonedMessageData* v__,
10423 : const Message* msg__,
10424 : PickleIterator* iter__) -> bool
10425 : {
10426 3 : if ((!(Read((&((v__)->data())), msg__, iter__)))) {
10427 0 : FatalError("Error deserializing 'data' (SerializedStructuredCloneBuffer) member of 'ClonedMessageData'");
10428 0 : return false;
10429 : }
10430 : // Sentinel = 'data'
10431 3 : if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
10432 0 : mozilla::ipc::SentinelReadError("Error deserializing 'data' (SerializedStructuredCloneBuffer) member of 'ClonedMessageData'");
10433 0 : return false;
10434 : }
10435 3 : if ((!(Read((&((v__)->blobs())), msg__, iter__)))) {
10436 0 : FatalError("Error deserializing 'blobs' (IPCBlob[]) member of 'ClonedMessageData'");
10437 0 : return false;
10438 : }
10439 : // Sentinel = 'blobs'
10440 3 : if ((!((msg__)->ReadSentinel(iter__, 635500709)))) {
10441 0 : mozilla::ipc::SentinelReadError("Error deserializing 'blobs' (IPCBlob[]) member of 'ClonedMessageData'");
10442 0 : return false;
10443 : }
10444 3 : if ((!(Read((&((v__)->inputStreams())), msg__, iter__)))) {
10445 0 : FatalError("Error deserializing 'inputStreams' (IPCStream[]) member of 'ClonedMessageData'");
10446 0 : return false;
10447 : }
10448 : // Sentinel = 'inputStreams'
10449 3 : if ((!((msg__)->ReadSentinel(iter__, 435739475)))) {
10450 0 : mozilla::ipc::SentinelReadError("Error deserializing 'inputStreams' (IPCStream[]) member of 'ClonedMessageData'");
10451 0 : return false;
10452 : }
10453 3 : if ((!(Read((&((v__)->identfiers())), msg__, iter__)))) {
10454 0 : FatalError("Error deserializing 'identfiers' (MessagePortIdentifier[]) member of 'ClonedMessageData'");
10455 0 : return false;
10456 : }
10457 : // Sentinel = 'identfiers'
10458 3 : if ((!((msg__)->ReadSentinel(iter__, 3130566733)))) {
10459 0 : mozilla::ipc::SentinelReadError("Error deserializing 'identfiers' (MessagePortIdentifier[]) member of 'ClonedMessageData'");
10460 0 : return false;
10461 : }
10462 3 : return true;
10463 : }
10464 :
10465 2 : auto PContentParent::Write(
10466 : const nsTArray<GfxInfoFeatureStatus>& v__,
10467 : Message* msg__) -> void
10468 : {
10469 2 : uint32_t length = (v__).Length();
10470 2 : Write(length, msg__);
10471 : // Sentinel = ('length', 'GfxInfoFeatureStatus[]')
10472 2 : (msg__)->WriteSentinel(2182733926);
10473 :
10474 46 : for (auto& elem : v__) {
10475 44 : Write(elem, msg__);
10476 : // Sentinel = 'GfxInfoFeatureStatus[]'
10477 44 : (msg__)->WriteSentinel(454724025);
10478 : }
10479 2 : }
10480 :
10481 0 : auto PContentParent::Read(
10482 : nsTArray<GfxInfoFeatureStatus>* v__,
10483 : const Message* msg__,
10484 : PickleIterator* iter__) -> bool
10485 : {
10486 0 : nsTArray<GfxInfoFeatureStatus> fa;
10487 : uint32_t length;
10488 0 : if ((!(Read((&(length)), msg__, iter__)))) {
10489 0 : mozilla::ipc::ArrayLengthReadError("GfxInfoFeatureStatus[]");
10490 0 : return false;
10491 : }
10492 : // Sentinel = ('length', 'GfxInfoFeatureStatus[]')
10493 0 : if ((!((msg__)->ReadSentinel(iter__, 2182733926)))) {
10494 0 : mozilla::ipc::SentinelReadError("GfxInfoFeatureStatus[]");
10495 0 : return false;
10496 : }
10497 :
10498 0 : GfxInfoFeatureStatus* elems = (fa).AppendElements(length);
10499 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
10500 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
10501 0 : FatalError("Error deserializing 'GfxInfoFeatureStatus[i]'");
10502 0 : return false;
10503 : }
10504 : // Sentinel = 'GfxInfoFeatureStatus[]'
10505 0 : if ((!((msg__)->ReadSentinel(iter__, 454724025)))) {
10506 0 : mozilla::ipc::SentinelReadError("Error deserializing 'GfxInfoFeatureStatus[i]'");
10507 0 : return false;
10508 : }
10509 : }
10510 0 : (v__)->SwapElements(fa);
10511 0 : return true;
10512 : }
10513 :
10514 0 : auto PContentParent::Write(
10515 : const nsTArray<HeaderEntry>& v__,
10516 : Message* msg__) -> void
10517 : {
10518 0 : uint32_t length = (v__).Length();
10519 0 : Write(length, msg__);
10520 : // Sentinel = ('length', 'HeaderEntry[]')
10521 0 : (msg__)->WriteSentinel(2689457705);
10522 :
10523 0 : for (auto& elem : v__) {
10524 0 : Write(elem, msg__);
10525 : // Sentinel = 'HeaderEntry[]'
10526 0 : (msg__)->WriteSentinel(454836120);
10527 : }
10528 0 : }
10529 :
10530 0 : auto PContentParent::Read(
10531 : nsTArray<HeaderEntry>* v__,
10532 : const Message* msg__,
10533 : PickleIterator* iter__) -> bool
10534 : {
10535 0 : nsTArray<HeaderEntry> fa;
10536 : uint32_t length;
10537 0 : if ((!(Read((&(length)), msg__, iter__)))) {
10538 0 : mozilla::ipc::ArrayLengthReadError("HeaderEntry[]");
10539 0 : return false;
10540 : }
10541 : // Sentinel = ('length', 'HeaderEntry[]')
10542 0 : if ((!((msg__)->ReadSentinel(iter__, 2689457705)))) {
10543 0 : mozilla::ipc::SentinelReadError("HeaderEntry[]");
10544 0 : return false;
10545 : }
10546 :
10547 0 : HeaderEntry* elems = (fa).AppendElements(length);
10548 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
10549 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
10550 0 : FatalError("Error deserializing 'HeaderEntry[i]'");
10551 0 : return false;
10552 : }
10553 : // Sentinel = 'HeaderEntry[]'
10554 0 : if ((!((msg__)->ReadSentinel(iter__, 454836120)))) {
10555 0 : mozilla::ipc::SentinelReadError("Error deserializing 'HeaderEntry[i]'");
10556 0 : return false;
10557 : }
10558 : }
10559 0 : (v__)->SwapElements(fa);
10560 0 : return true;
10561 : }
10562 :
10563 0 : auto PContentParent::Write(
10564 : const JARURIParams& v__,
10565 : Message* msg__) -> void
10566 : {
10567 0 : Write((v__).jarFile(), msg__);
10568 : // Sentinel = 'jarFile'
10569 0 : (msg__)->WriteSentinel(1572070078);
10570 0 : Write((v__).jarEntry(), msg__);
10571 : // Sentinel = 'jarEntry'
10572 0 : (msg__)->WriteSentinel(941016033);
10573 0 : Write((v__).charset(), msg__);
10574 : // Sentinel = 'charset'
10575 0 : (msg__)->WriteSentinel(1551550891);
10576 0 : }
10577 :
10578 0 : auto PContentParent::Read(
10579 : JARURIParams* v__,
10580 : const Message* msg__,
10581 : PickleIterator* iter__) -> bool
10582 : {
10583 0 : if ((!(Read((&((v__)->jarFile())), msg__, iter__)))) {
10584 0 : FatalError("Error deserializing 'jarFile' (URIParams) member of 'JARURIParams'");
10585 0 : return false;
10586 : }
10587 : // Sentinel = 'jarFile'
10588 0 : if ((!((msg__)->ReadSentinel(iter__, 1572070078)))) {
10589 0 : mozilla::ipc::SentinelReadError("Error deserializing 'jarFile' (URIParams) member of 'JARURIParams'");
10590 0 : return false;
10591 : }
10592 0 : if ((!(Read((&((v__)->jarEntry())), msg__, iter__)))) {
10593 0 : FatalError("Error deserializing 'jarEntry' (URIParams) member of 'JARURIParams'");
10594 0 : return false;
10595 : }
10596 : // Sentinel = 'jarEntry'
10597 0 : if ((!((msg__)->ReadSentinel(iter__, 941016033)))) {
10598 0 : mozilla::ipc::SentinelReadError("Error deserializing 'jarEntry' (URIParams) member of 'JARURIParams'");
10599 0 : return false;
10600 : }
10601 0 : if ((!(Read((&((v__)->charset())), msg__, iter__)))) {
10602 0 : FatalError("Error deserializing 'charset' (nsCString) member of 'JARURIParams'");
10603 0 : return false;
10604 : }
10605 : // Sentinel = 'charset'
10606 0 : if ((!((msg__)->ReadSentinel(iter__, 1551550891)))) {
10607 0 : mozilla::ipc::SentinelReadError("Error deserializing 'charset' (nsCString) member of 'JARURIParams'");
10608 0 : return false;
10609 : }
10610 0 : return true;
10611 : }
10612 :
10613 0 : auto PContentParent::Write(
10614 : const InputStreamParams& v__,
10615 : Message* msg__) -> void
10616 : {
10617 : typedef InputStreamParams type__;
10618 0 : Write(int((v__).type()), msg__);
10619 : // Sentinel = 'InputStreamParams'
10620 0 : (msg__)->WriteSentinel(4114814015);
10621 :
10622 0 : switch ((v__).type()) {
10623 : case type__::TStringInputStreamParams:
10624 : {
10625 0 : Write((v__).get_StringInputStreamParams(), msg__);
10626 : // Sentinel = 'TStringInputStreamParams'
10627 0 : (msg__)->WriteSentinel(3395831651);
10628 0 : return;
10629 : }
10630 : case type__::TFileInputStreamParams:
10631 : {
10632 0 : Write((v__).get_FileInputStreamParams(), msg__);
10633 : // Sentinel = 'TFileInputStreamParams'
10634 0 : (msg__)->WriteSentinel(2543620282);
10635 0 : return;
10636 : }
10637 : case type__::TTemporaryFileInputStreamParams:
10638 : {
10639 0 : Write((v__).get_TemporaryFileInputStreamParams(), msg__);
10640 : // Sentinel = 'TTemporaryFileInputStreamParams'
10641 0 : (msg__)->WriteSentinel(587771548);
10642 0 : return;
10643 : }
10644 : case type__::TBufferedInputStreamParams:
10645 : {
10646 0 : Write((v__).get_BufferedInputStreamParams(), msg__);
10647 : // Sentinel = 'TBufferedInputStreamParams'
10648 0 : (msg__)->WriteSentinel(1698289307);
10649 0 : return;
10650 : }
10651 : case type__::TMIMEInputStreamParams:
10652 : {
10653 0 : Write((v__).get_MIMEInputStreamParams(), msg__);
10654 : // Sentinel = 'TMIMEInputStreamParams'
10655 0 : (msg__)->WriteSentinel(1948001964);
10656 0 : return;
10657 : }
10658 : case type__::TMultiplexInputStreamParams:
10659 : {
10660 0 : Write((v__).get_MultiplexInputStreamParams(), msg__);
10661 : // Sentinel = 'TMultiplexInputStreamParams'
10662 0 : (msg__)->WriteSentinel(3317853213);
10663 0 : return;
10664 : }
10665 : case type__::TSlicedInputStreamParams:
10666 : {
10667 0 : Write((v__).get_SlicedInputStreamParams(), msg__);
10668 : // Sentinel = 'TSlicedInputStreamParams'
10669 0 : (msg__)->WriteSentinel(445810472);
10670 0 : return;
10671 : }
10672 : case type__::TIPCBlobInputStreamParams:
10673 : {
10674 0 : Write((v__).get_IPCBlobInputStreamParams(), msg__);
10675 : // Sentinel = 'TIPCBlobInputStreamParams'
10676 0 : (msg__)->WriteSentinel(2436989998);
10677 0 : return;
10678 : }
10679 : default:
10680 : {
10681 0 : FatalError("unknown union type");
10682 0 : return;
10683 : }
10684 : }
10685 : }
10686 :
10687 0 : auto PContentParent::Read(
10688 : InputStreamParams* v__,
10689 : const Message* msg__,
10690 : PickleIterator* iter__) -> bool
10691 : {
10692 : typedef InputStreamParams type__;
10693 : int type;
10694 0 : if ((!(Read((&(type)), msg__, iter__)))) {
10695 0 : mozilla::ipc::UnionTypeReadError("InputStreamParams");
10696 0 : return false;
10697 : }
10698 : // Sentinel = 'InputStreamParams'
10699 0 : if ((!((msg__)->ReadSentinel(iter__, 4114814015)))) {
10700 0 : mozilla::ipc::SentinelReadError("InputStreamParams");
10701 0 : return false;
10702 : }
10703 :
10704 0 : switch (type) {
10705 : case type__::TStringInputStreamParams:
10706 : {
10707 0 : StringInputStreamParams tmp = StringInputStreamParams();
10708 0 : (*(v__)) = tmp;
10709 0 : if ((!(Read((&((v__)->get_StringInputStreamParams())), msg__, iter__)))) {
10710 0 : FatalError("Error deserializing Union type");
10711 0 : return false;
10712 : }
10713 : // Sentinel = 'TStringInputStreamParams'
10714 0 : if ((!((msg__)->ReadSentinel(iter__, 3395831651)))) {
10715 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
10716 0 : return false;
10717 : }
10718 0 : return true;
10719 : }
10720 : case type__::TFileInputStreamParams:
10721 : {
10722 0 : FileInputStreamParams tmp = FileInputStreamParams();
10723 0 : (*(v__)) = tmp;
10724 0 : if ((!(Read((&((v__)->get_FileInputStreamParams())), msg__, iter__)))) {
10725 0 : FatalError("Error deserializing Union type");
10726 0 : return false;
10727 : }
10728 : // Sentinel = 'TFileInputStreamParams'
10729 0 : if ((!((msg__)->ReadSentinel(iter__, 2543620282)))) {
10730 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
10731 0 : return false;
10732 : }
10733 0 : return true;
10734 : }
10735 : case type__::TTemporaryFileInputStreamParams:
10736 : {
10737 0 : TemporaryFileInputStreamParams tmp = TemporaryFileInputStreamParams();
10738 0 : (*(v__)) = tmp;
10739 0 : if ((!(Read((&((v__)->get_TemporaryFileInputStreamParams())), msg__, iter__)))) {
10740 0 : FatalError("Error deserializing Union type");
10741 0 : return false;
10742 : }
10743 : // Sentinel = 'TTemporaryFileInputStreamParams'
10744 0 : if ((!((msg__)->ReadSentinel(iter__, 587771548)))) {
10745 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
10746 0 : return false;
10747 : }
10748 0 : return true;
10749 : }
10750 : case type__::TBufferedInputStreamParams:
10751 : {
10752 0 : BufferedInputStreamParams tmp = BufferedInputStreamParams();
10753 0 : (*(v__)) = tmp;
10754 0 : if ((!(Read((&((v__)->get_BufferedInputStreamParams())), msg__, iter__)))) {
10755 0 : FatalError("Error deserializing Union type");
10756 0 : return false;
10757 : }
10758 : // Sentinel = 'TBufferedInputStreamParams'
10759 0 : if ((!((msg__)->ReadSentinel(iter__, 1698289307)))) {
10760 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
10761 0 : return false;
10762 : }
10763 0 : return true;
10764 : }
10765 : case type__::TMIMEInputStreamParams:
10766 : {
10767 0 : MIMEInputStreamParams tmp = MIMEInputStreamParams();
10768 0 : (*(v__)) = tmp;
10769 0 : if ((!(Read((&((v__)->get_MIMEInputStreamParams())), msg__, iter__)))) {
10770 0 : FatalError("Error deserializing Union type");
10771 0 : return false;
10772 : }
10773 : // Sentinel = 'TMIMEInputStreamParams'
10774 0 : if ((!((msg__)->ReadSentinel(iter__, 1948001964)))) {
10775 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
10776 0 : return false;
10777 : }
10778 0 : return true;
10779 : }
10780 : case type__::TMultiplexInputStreamParams:
10781 : {
10782 0 : MultiplexInputStreamParams tmp = MultiplexInputStreamParams();
10783 0 : (*(v__)) = tmp;
10784 0 : if ((!(Read((&((v__)->get_MultiplexInputStreamParams())), msg__, iter__)))) {
10785 0 : FatalError("Error deserializing Union type");
10786 0 : return false;
10787 : }
10788 : // Sentinel = 'TMultiplexInputStreamParams'
10789 0 : if ((!((msg__)->ReadSentinel(iter__, 3317853213)))) {
10790 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
10791 0 : return false;
10792 : }
10793 0 : return true;
10794 : }
10795 : case type__::TSlicedInputStreamParams:
10796 : {
10797 0 : SlicedInputStreamParams tmp = SlicedInputStreamParams();
10798 0 : (*(v__)) = tmp;
10799 0 : if ((!(Read((&((v__)->get_SlicedInputStreamParams())), msg__, iter__)))) {
10800 0 : FatalError("Error deserializing Union type");
10801 0 : return false;
10802 : }
10803 : // Sentinel = 'TSlicedInputStreamParams'
10804 0 : if ((!((msg__)->ReadSentinel(iter__, 445810472)))) {
10805 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
10806 0 : return false;
10807 : }
10808 0 : return true;
10809 : }
10810 : case type__::TIPCBlobInputStreamParams:
10811 : {
10812 0 : IPCBlobInputStreamParams tmp = IPCBlobInputStreamParams();
10813 0 : (*(v__)) = tmp;
10814 0 : if ((!(Read((&((v__)->get_IPCBlobInputStreamParams())), msg__, iter__)))) {
10815 0 : FatalError("Error deserializing Union type");
10816 0 : return false;
10817 : }
10818 : // Sentinel = 'TIPCBlobInputStreamParams'
10819 0 : if ((!((msg__)->ReadSentinel(iter__, 2436989998)))) {
10820 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
10821 0 : return false;
10822 : }
10823 0 : return true;
10824 : }
10825 : default:
10826 : {
10827 0 : FatalError("unknown union type");
10828 0 : return false;
10829 : }
10830 : }
10831 : }
10832 :
10833 0 : auto PContentParent::Write(
10834 : const PopupIPCTabContext& v__,
10835 : Message* msg__) -> void
10836 : {
10837 0 : Write((v__).opener(), msg__);
10838 : // Sentinel = 'opener'
10839 0 : (msg__)->WriteSentinel(2714806963);
10840 0 : Write((v__).isMozBrowserElement(), msg__);
10841 : // Sentinel = 'isMozBrowserElement'
10842 0 : (msg__)->WriteSentinel(2365644109);
10843 0 : }
10844 :
10845 0 : auto PContentParent::Read(
10846 : PopupIPCTabContext* v__,
10847 : const Message* msg__,
10848 : PickleIterator* iter__) -> bool
10849 : {
10850 0 : if ((!(Read((&((v__)->opener())), msg__, iter__)))) {
10851 0 : FatalError("Error deserializing 'opener' (PBrowserOrId) member of 'PopupIPCTabContext'");
10852 0 : return false;
10853 : }
10854 : // Sentinel = 'opener'
10855 0 : if ((!((msg__)->ReadSentinel(iter__, 2714806963)))) {
10856 0 : mozilla::ipc::SentinelReadError("Error deserializing 'opener' (PBrowserOrId) member of 'PopupIPCTabContext'");
10857 0 : return false;
10858 : }
10859 0 : if ((!(Read((&((v__)->isMozBrowserElement())), msg__, iter__)))) {
10860 0 : FatalError("Error deserializing 'isMozBrowserElement' (bool) member of 'PopupIPCTabContext'");
10861 0 : return false;
10862 : }
10863 : // Sentinel = 'isMozBrowserElement'
10864 0 : if ((!((msg__)->ReadSentinel(iter__, 2365644109)))) {
10865 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isMozBrowserElement' (bool) member of 'PopupIPCTabContext'");
10866 0 : return false;
10867 : }
10868 0 : return true;
10869 : }
10870 :
10871 1 : auto PContentParent::Write(
10872 : const FrameIPCTabContext& v__,
10873 : Message* msg__) -> void
10874 : {
10875 1 : Write((v__).originAttributes(), msg__);
10876 : // Sentinel = 'originAttributes'
10877 1 : (msg__)->WriteSentinel(2655275965);
10878 1 : Write((v__).isMozBrowserElement(), msg__);
10879 : // Sentinel = 'isMozBrowserElement'
10880 1 : (msg__)->WriteSentinel(2365644109);
10881 1 : Write((v__).isPrerendered(), msg__);
10882 : // Sentinel = 'isPrerendered'
10883 1 : (msg__)->WriteSentinel(752926845);
10884 1 : Write((v__).presentationURL(), msg__);
10885 : // Sentinel = 'presentationURL'
10886 1 : (msg__)->WriteSentinel(4359828);
10887 1 : Write((v__).showAccelerators(), msg__);
10888 : // Sentinel = 'showAccelerators'
10889 1 : (msg__)->WriteSentinel(2628588971);
10890 1 : Write((v__).showFocusRings(), msg__);
10891 : // Sentinel = 'showFocusRings'
10892 1 : (msg__)->WriteSentinel(2619412036);
10893 1 : }
10894 :
10895 0 : auto PContentParent::Read(
10896 : FrameIPCTabContext* v__,
10897 : const Message* msg__,
10898 : PickleIterator* iter__) -> bool
10899 : {
10900 0 : if ((!(Read((&((v__)->originAttributes())), msg__, iter__)))) {
10901 0 : FatalError("Error deserializing 'originAttributes' (OriginAttributes) member of 'FrameIPCTabContext'");
10902 0 : return false;
10903 : }
10904 : // Sentinel = 'originAttributes'
10905 0 : if ((!((msg__)->ReadSentinel(iter__, 2655275965)))) {
10906 0 : mozilla::ipc::SentinelReadError("Error deserializing 'originAttributes' (OriginAttributes) member of 'FrameIPCTabContext'");
10907 0 : return false;
10908 : }
10909 0 : if ((!(Read((&((v__)->isMozBrowserElement())), msg__, iter__)))) {
10910 0 : FatalError("Error deserializing 'isMozBrowserElement' (bool) member of 'FrameIPCTabContext'");
10911 0 : return false;
10912 : }
10913 : // Sentinel = 'isMozBrowserElement'
10914 0 : if ((!((msg__)->ReadSentinel(iter__, 2365644109)))) {
10915 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isMozBrowserElement' (bool) member of 'FrameIPCTabContext'");
10916 0 : return false;
10917 : }
10918 0 : if ((!(Read((&((v__)->isPrerendered())), msg__, iter__)))) {
10919 0 : FatalError("Error deserializing 'isPrerendered' (bool) member of 'FrameIPCTabContext'");
10920 0 : return false;
10921 : }
10922 : // Sentinel = 'isPrerendered'
10923 0 : if ((!((msg__)->ReadSentinel(iter__, 752926845)))) {
10924 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isPrerendered' (bool) member of 'FrameIPCTabContext'");
10925 0 : return false;
10926 : }
10927 0 : if ((!(Read((&((v__)->presentationURL())), msg__, iter__)))) {
10928 0 : FatalError("Error deserializing 'presentationURL' (nsString) member of 'FrameIPCTabContext'");
10929 0 : return false;
10930 : }
10931 : // Sentinel = 'presentationURL'
10932 0 : if ((!((msg__)->ReadSentinel(iter__, 4359828)))) {
10933 0 : mozilla::ipc::SentinelReadError("Error deserializing 'presentationURL' (nsString) member of 'FrameIPCTabContext'");
10934 0 : return false;
10935 : }
10936 0 : if ((!(Read((&((v__)->showAccelerators())), msg__, iter__)))) {
10937 0 : FatalError("Error deserializing 'showAccelerators' (UIStateChangeType) member of 'FrameIPCTabContext'");
10938 0 : return false;
10939 : }
10940 : // Sentinel = 'showAccelerators'
10941 0 : if ((!((msg__)->ReadSentinel(iter__, 2628588971)))) {
10942 0 : mozilla::ipc::SentinelReadError("Error deserializing 'showAccelerators' (UIStateChangeType) member of 'FrameIPCTabContext'");
10943 0 : return false;
10944 : }
10945 0 : if ((!(Read((&((v__)->showFocusRings())), msg__, iter__)))) {
10946 0 : FatalError("Error deserializing 'showFocusRings' (UIStateChangeType) member of 'FrameIPCTabContext'");
10947 0 : return false;
10948 : }
10949 : // Sentinel = 'showFocusRings'
10950 0 : if ((!((msg__)->ReadSentinel(iter__, 2619412036)))) {
10951 0 : mozilla::ipc::SentinelReadError("Error deserializing 'showFocusRings' (UIStateChangeType) member of 'FrameIPCTabContext'");
10952 0 : return false;
10953 : }
10954 0 : return true;
10955 : }
10956 :
10957 0 : auto PContentParent::Write(
10958 : const StringInputStreamParams& v__,
10959 : Message* msg__) -> void
10960 : {
10961 0 : Write((v__).data(), msg__);
10962 : // Sentinel = 'data'
10963 0 : (msg__)->WriteSentinel(843352540);
10964 0 : }
10965 :
10966 0 : auto PContentParent::Read(
10967 : StringInputStreamParams* v__,
10968 : const Message* msg__,
10969 : PickleIterator* iter__) -> bool
10970 : {
10971 0 : if ((!(Read((&((v__)->data())), msg__, iter__)))) {
10972 0 : FatalError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
10973 0 : return false;
10974 : }
10975 : // Sentinel = 'data'
10976 0 : if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
10977 0 : mozilla::ipc::SentinelReadError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
10978 0 : return false;
10979 : }
10980 0 : return true;
10981 : }
10982 :
10983 0 : auto PContentParent::Write(
10984 : const JSPluginFrameIPCTabContext& v__,
10985 : Message* msg__) -> void
10986 : {
10987 0 : Write((v__).jsPluginId(), msg__);
10988 : // Sentinel = 'jsPluginId'
10989 0 : (msg__)->WriteSentinel(3968295297);
10990 0 : }
10991 :
10992 0 : auto PContentParent::Read(
10993 : JSPluginFrameIPCTabContext* v__,
10994 : const Message* msg__,
10995 : PickleIterator* iter__) -> bool
10996 : {
10997 0 : if ((!(Read((&((v__)->jsPluginId())), msg__, iter__)))) {
10998 0 : FatalError("Error deserializing 'jsPluginId' (uint32_t) member of 'JSPluginFrameIPCTabContext'");
10999 0 : return false;
11000 : }
11001 : // Sentinel = 'jsPluginId'
11002 0 : if ((!((msg__)->ReadSentinel(iter__, 3968295297)))) {
11003 0 : mozilla::ipc::SentinelReadError("Error deserializing 'jsPluginId' (uint32_t) member of 'JSPluginFrameIPCTabContext'");
11004 0 : return false;
11005 : }
11006 0 : return true;
11007 : }
11008 :
11009 0 : auto PContentParent::Write(
11010 : const UndefinedVariant& v__,
11011 : Message* msg__) -> void
11012 : {
11013 0 : }
11014 :
11015 0 : auto PContentParent::Read(
11016 : UndefinedVariant* v__,
11017 : const Message* msg__,
11018 : PickleIterator* iter__) -> bool
11019 : {
11020 0 : return true;
11021 : }
11022 :
11023 0 : auto PContentParent::Write(
11024 : const MultiplexInputStreamParams& v__,
11025 : Message* msg__) -> void
11026 : {
11027 0 : Write((v__).streams(), msg__);
11028 : // Sentinel = 'streams'
11029 0 : (msg__)->WriteSentinel(4240383220);
11030 0 : Write((v__).currentStream(), msg__);
11031 : // Sentinel = 'currentStream'
11032 0 : (msg__)->WriteSentinel(682778074);
11033 0 : Write((v__).status(), msg__);
11034 : // Sentinel = 'status'
11035 0 : (msg__)->WriteSentinel(3714608576);
11036 0 : Write((v__).startedReadingCurrent(), msg__);
11037 : // Sentinel = 'startedReadingCurrent'
11038 0 : (msg__)->WriteSentinel(970542033);
11039 0 : }
11040 :
11041 0 : auto PContentParent::Read(
11042 : MultiplexInputStreamParams* v__,
11043 : const Message* msg__,
11044 : PickleIterator* iter__) -> bool
11045 : {
11046 0 : if ((!(Read((&((v__)->streams())), msg__, iter__)))) {
11047 0 : FatalError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
11048 0 : return false;
11049 : }
11050 : // Sentinel = 'streams'
11051 0 : if ((!((msg__)->ReadSentinel(iter__, 4240383220)))) {
11052 0 : mozilla::ipc::SentinelReadError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
11053 0 : return false;
11054 : }
11055 0 : if ((!(Read((&((v__)->currentStream())), msg__, iter__)))) {
11056 0 : FatalError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
11057 0 : return false;
11058 : }
11059 : // Sentinel = 'currentStream'
11060 0 : if ((!((msg__)->ReadSentinel(iter__, 682778074)))) {
11061 0 : mozilla::ipc::SentinelReadError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
11062 0 : return false;
11063 : }
11064 0 : if ((!(Read((&((v__)->status())), msg__, iter__)))) {
11065 0 : FatalError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
11066 0 : return false;
11067 : }
11068 : // Sentinel = 'status'
11069 0 : if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
11070 0 : mozilla::ipc::SentinelReadError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
11071 0 : return false;
11072 : }
11073 0 : if ((!(Read((&((v__)->startedReadingCurrent())), msg__, iter__)))) {
11074 0 : FatalError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
11075 0 : return false;
11076 : }
11077 : // Sentinel = 'startedReadingCurrent'
11078 0 : if ((!((msg__)->ReadSentinel(iter__, 970542033)))) {
11079 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
11080 0 : return false;
11081 : }
11082 0 : return true;
11083 : }
11084 :
11085 0 : auto PContentParent::Write(
11086 : const PIPCBlobInputStreamParent* v__,
11087 : Message* msg__,
11088 : bool nullable__) -> void
11089 : {
11090 : int32_t id;
11091 0 : if ((!(v__))) {
11092 0 : if ((!(nullable__))) {
11093 0 : FatalError("NULL actor value passed to non-nullable param");
11094 : }
11095 0 : id = 0;
11096 : }
11097 : else {
11098 0 : id = (v__)->Id();
11099 0 : if ((1) == (id)) {
11100 0 : FatalError("actor has been |delete|d");
11101 : }
11102 : }
11103 :
11104 0 : Write(id, msg__);
11105 0 : }
11106 :
11107 0 : auto PContentParent::Read(
11108 : PIPCBlobInputStreamParent** v__,
11109 : const Message* msg__,
11110 : PickleIterator* iter__,
11111 : bool nullable__) -> bool
11112 : {
11113 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PIPCBlobInputStream", PIPCBlobInputStreamMsgStart);
11114 0 : if ((actor).isNothing()) {
11115 0 : return false;
11116 : }
11117 :
11118 0 : (*(v__)) = static_cast<PIPCBlobInputStreamParent*>((actor).value());
11119 0 : return true;
11120 : }
11121 :
11122 3 : auto PContentParent::Write(
11123 : const nsTArray<FakePluginTag>& v__,
11124 : Message* msg__) -> void
11125 : {
11126 3 : uint32_t length = (v__).Length();
11127 3 : Write(length, msg__);
11128 : // Sentinel = ('length', 'FakePluginTag[]')
11129 3 : (msg__)->WriteSentinel(418361122);
11130 :
11131 3 : for (auto& elem : v__) {
11132 0 : Write(elem, msg__);
11133 : // Sentinel = 'FakePluginTag[]'
11134 0 : (msg__)->WriteSentinel(13754509);
11135 : }
11136 3 : }
11137 :
11138 0 : auto PContentParent::Read(
11139 : nsTArray<FakePluginTag>* v__,
11140 : const Message* msg__,
11141 : PickleIterator* iter__) -> bool
11142 : {
11143 0 : nsTArray<FakePluginTag> fa;
11144 : uint32_t length;
11145 0 : if ((!(Read((&(length)), msg__, iter__)))) {
11146 0 : mozilla::ipc::ArrayLengthReadError("FakePluginTag[]");
11147 0 : return false;
11148 : }
11149 : // Sentinel = ('length', 'FakePluginTag[]')
11150 0 : if ((!((msg__)->ReadSentinel(iter__, 418361122)))) {
11151 0 : mozilla::ipc::SentinelReadError("FakePluginTag[]");
11152 0 : return false;
11153 : }
11154 :
11155 0 : FakePluginTag* elems = (fa).AppendElements(length);
11156 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
11157 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
11158 0 : FatalError("Error deserializing 'FakePluginTag[i]'");
11159 0 : return false;
11160 : }
11161 : // Sentinel = 'FakePluginTag[]'
11162 0 : if ((!((msg__)->ReadSentinel(iter__, 13754509)))) {
11163 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FakePluginTag[i]'");
11164 0 : return false;
11165 : }
11166 : }
11167 0 : (v__)->SwapElements(fa);
11168 0 : return true;
11169 : }
11170 :
11171 0 : auto PContentParent::Write(
11172 : const MemoryReport& v__,
11173 : Message* msg__) -> void
11174 : {
11175 0 : Write((v__).process(), msg__);
11176 : // Sentinel = 'process'
11177 0 : (msg__)->WriteSentinel(2642549128);
11178 0 : Write((v__).path(), msg__);
11179 : // Sentinel = 'path'
11180 0 : (msg__)->WriteSentinel(913629401);
11181 0 : Write((v__).kind(), msg__);
11182 : // Sentinel = 'kind'
11183 0 : (msg__)->WriteSentinel(2950460258);
11184 0 : Write((v__).units(), msg__);
11185 : // Sentinel = 'units'
11186 0 : (msg__)->WriteSentinel(4054023608);
11187 0 : Write((v__).amount(), msg__);
11188 : // Sentinel = 'amount'
11189 0 : (msg__)->WriteSentinel(2439491826);
11190 0 : Write((v__).generation(), msg__);
11191 : // Sentinel = 'generation'
11192 0 : (msg__)->WriteSentinel(1396961928);
11193 0 : Write((v__).desc(), msg__);
11194 : // Sentinel = 'desc'
11195 0 : (msg__)->WriteSentinel(3761872479);
11196 0 : }
11197 :
11198 0 : auto PContentParent::Read(
11199 : MemoryReport* v__,
11200 : const Message* msg__,
11201 : PickleIterator* iter__) -> bool
11202 : {
11203 0 : if ((!(Read((&((v__)->process())), msg__, iter__)))) {
11204 0 : FatalError("Error deserializing 'process' (nsCString) member of 'MemoryReport'");
11205 0 : return false;
11206 : }
11207 : // Sentinel = 'process'
11208 0 : if ((!((msg__)->ReadSentinel(iter__, 2642549128)))) {
11209 0 : mozilla::ipc::SentinelReadError("Error deserializing 'process' (nsCString) member of 'MemoryReport'");
11210 0 : return false;
11211 : }
11212 0 : if ((!(Read((&((v__)->path())), msg__, iter__)))) {
11213 0 : FatalError("Error deserializing 'path' (nsCString) member of 'MemoryReport'");
11214 0 : return false;
11215 : }
11216 : // Sentinel = 'path'
11217 0 : if ((!((msg__)->ReadSentinel(iter__, 913629401)))) {
11218 0 : mozilla::ipc::SentinelReadError("Error deserializing 'path' (nsCString) member of 'MemoryReport'");
11219 0 : return false;
11220 : }
11221 0 : if ((!(Read((&((v__)->kind())), msg__, iter__)))) {
11222 0 : FatalError("Error deserializing 'kind' (int32_t) member of 'MemoryReport'");
11223 0 : return false;
11224 : }
11225 : // Sentinel = 'kind'
11226 0 : if ((!((msg__)->ReadSentinel(iter__, 2950460258)))) {
11227 0 : mozilla::ipc::SentinelReadError("Error deserializing 'kind' (int32_t) member of 'MemoryReport'");
11228 0 : return false;
11229 : }
11230 0 : if ((!(Read((&((v__)->units())), msg__, iter__)))) {
11231 0 : FatalError("Error deserializing 'units' (int32_t) member of 'MemoryReport'");
11232 0 : return false;
11233 : }
11234 : // Sentinel = 'units'
11235 0 : if ((!((msg__)->ReadSentinel(iter__, 4054023608)))) {
11236 0 : mozilla::ipc::SentinelReadError("Error deserializing 'units' (int32_t) member of 'MemoryReport'");
11237 0 : return false;
11238 : }
11239 0 : if ((!(Read((&((v__)->amount())), msg__, iter__)))) {
11240 0 : FatalError("Error deserializing 'amount' (int64_t) member of 'MemoryReport'");
11241 0 : return false;
11242 : }
11243 : // Sentinel = 'amount'
11244 0 : if ((!((msg__)->ReadSentinel(iter__, 2439491826)))) {
11245 0 : mozilla::ipc::SentinelReadError("Error deserializing 'amount' (int64_t) member of 'MemoryReport'");
11246 0 : return false;
11247 : }
11248 0 : if ((!(Read((&((v__)->generation())), msg__, iter__)))) {
11249 0 : FatalError("Error deserializing 'generation' (uint32_t) member of 'MemoryReport'");
11250 0 : return false;
11251 : }
11252 : // Sentinel = 'generation'
11253 0 : if ((!((msg__)->ReadSentinel(iter__, 1396961928)))) {
11254 0 : mozilla::ipc::SentinelReadError("Error deserializing 'generation' (uint32_t) member of 'MemoryReport'");
11255 0 : return false;
11256 : }
11257 0 : if ((!(Read((&((v__)->desc())), msg__, iter__)))) {
11258 0 : FatalError("Error deserializing 'desc' (nsCString) member of 'MemoryReport'");
11259 0 : return false;
11260 : }
11261 : // Sentinel = 'desc'
11262 0 : if ((!((msg__)->ReadSentinel(iter__, 3761872479)))) {
11263 0 : mozilla::ipc::SentinelReadError("Error deserializing 'desc' (nsCString) member of 'MemoryReport'");
11264 0 : return false;
11265 : }
11266 0 : return true;
11267 : }
11268 :
11269 0 : auto PContentParent::Write(
11270 : const PRemoteSpellcheckEngineParent* v__,
11271 : Message* msg__,
11272 : bool nullable__) -> void
11273 : {
11274 : int32_t id;
11275 0 : if ((!(v__))) {
11276 0 : if ((!(nullable__))) {
11277 0 : FatalError("NULL actor value passed to non-nullable param");
11278 : }
11279 0 : id = 0;
11280 : }
11281 : else {
11282 0 : id = (v__)->Id();
11283 0 : if ((1) == (id)) {
11284 0 : FatalError("actor has been |delete|d");
11285 : }
11286 : }
11287 :
11288 0 : Write(id, msg__);
11289 0 : }
11290 :
11291 0 : auto PContentParent::Read(
11292 : PRemoteSpellcheckEngineParent** v__,
11293 : const Message* msg__,
11294 : PickleIterator* iter__,
11295 : bool nullable__) -> bool
11296 : {
11297 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PRemoteSpellcheckEngine", PRemoteSpellcheckEngineMsgStart);
11298 0 : if ((actor).isNothing()) {
11299 0 : return false;
11300 : }
11301 :
11302 0 : (*(v__)) = static_cast<PRemoteSpellcheckEngineParent*>((actor).value());
11303 0 : return true;
11304 : }
11305 :
11306 6088 : auto PContentParent::Write(
11307 : const PrefSetting& v__,
11308 : Message* msg__) -> void
11309 : {
11310 6088 : Write((v__).name(), msg__);
11311 : // Sentinel = 'name'
11312 6088 : (msg__)->WriteSentinel(15034981);
11313 6088 : Write((v__).defaultValue(), msg__);
11314 : // Sentinel = 'defaultValue'
11315 6088 : (msg__)->WriteSentinel(1929752362);
11316 6088 : Write((v__).userValue(), msg__);
11317 : // Sentinel = 'userValue'
11318 6088 : (msg__)->WriteSentinel(727902553);
11319 6088 : }
11320 :
11321 0 : auto PContentParent::Read(
11322 : PrefSetting* v__,
11323 : const Message* msg__,
11324 : PickleIterator* iter__) -> bool
11325 : {
11326 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
11327 0 : FatalError("Error deserializing 'name' (nsCString) member of 'PrefSetting'");
11328 0 : return false;
11329 : }
11330 : // Sentinel = 'name'
11331 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
11332 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'PrefSetting'");
11333 0 : return false;
11334 : }
11335 0 : if ((!(Read((&((v__)->defaultValue())), msg__, iter__)))) {
11336 0 : FatalError("Error deserializing 'defaultValue' (MaybePrefValue) member of 'PrefSetting'");
11337 0 : return false;
11338 : }
11339 : // Sentinel = 'defaultValue'
11340 0 : if ((!((msg__)->ReadSentinel(iter__, 1929752362)))) {
11341 0 : mozilla::ipc::SentinelReadError("Error deserializing 'defaultValue' (MaybePrefValue) member of 'PrefSetting'");
11342 0 : return false;
11343 : }
11344 0 : if ((!(Read((&((v__)->userValue())), msg__, iter__)))) {
11345 0 : FatalError("Error deserializing 'userValue' (MaybePrefValue) member of 'PrefSetting'");
11346 0 : return false;
11347 : }
11348 : // Sentinel = 'userValue'
11349 0 : if ((!((msg__)->ReadSentinel(iter__, 727902553)))) {
11350 0 : mozilla::ipc::SentinelReadError("Error deserializing 'userValue' (MaybePrefValue) member of 'PrefSetting'");
11351 0 : return false;
11352 : }
11353 0 : return true;
11354 : }
11355 :
11356 0 : auto PContentParent::Write(
11357 : const IPCBlob& v__,
11358 : Message* msg__) -> void
11359 : {
11360 0 : Write((v__).type(), msg__);
11361 : // Sentinel = 'type'
11362 0 : (msg__)->WriteSentinel(2982068540);
11363 0 : Write((v__).size(), msg__);
11364 : // Sentinel = 'size'
11365 0 : (msg__)->WriteSentinel(931048223);
11366 0 : Write((v__).inputStream(), msg__);
11367 : // Sentinel = 'inputStream'
11368 0 : (msg__)->WriteSentinel(2684883823);
11369 0 : Write((v__).file(), msg__);
11370 : // Sentinel = 'file'
11371 0 : (msg__)->WriteSentinel(224874390);
11372 0 : Write((v__).fileId(), msg__);
11373 : // Sentinel = 'fileId'
11374 0 : (msg__)->WriteSentinel(108004447);
11375 0 : }
11376 :
11377 0 : auto PContentParent::Read(
11378 : IPCBlob* v__,
11379 : const Message* msg__,
11380 : PickleIterator* iter__) -> bool
11381 : {
11382 0 : if ((!(Read((&((v__)->type())), msg__, iter__)))) {
11383 0 : FatalError("Error deserializing 'type' (nsString) member of 'IPCBlob'");
11384 0 : return false;
11385 : }
11386 : // Sentinel = 'type'
11387 0 : if ((!((msg__)->ReadSentinel(iter__, 2982068540)))) {
11388 0 : mozilla::ipc::SentinelReadError("Error deserializing 'type' (nsString) member of 'IPCBlob'");
11389 0 : return false;
11390 : }
11391 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
11392 0 : FatalError("Error deserializing 'size' (uint64_t) member of 'IPCBlob'");
11393 0 : return false;
11394 : }
11395 : // Sentinel = 'size'
11396 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
11397 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (uint64_t) member of 'IPCBlob'");
11398 0 : return false;
11399 : }
11400 0 : if ((!(Read((&((v__)->inputStream())), msg__, iter__)))) {
11401 0 : FatalError("Error deserializing 'inputStream' (IPCBlobStream) member of 'IPCBlob'");
11402 0 : return false;
11403 : }
11404 : // Sentinel = 'inputStream'
11405 0 : if ((!((msg__)->ReadSentinel(iter__, 2684883823)))) {
11406 0 : mozilla::ipc::SentinelReadError("Error deserializing 'inputStream' (IPCBlobStream) member of 'IPCBlob'");
11407 0 : return false;
11408 : }
11409 0 : if ((!(Read((&((v__)->file())), msg__, iter__)))) {
11410 0 : FatalError("Error deserializing 'file' (IPCFileUnion) member of 'IPCBlob'");
11411 0 : return false;
11412 : }
11413 : // Sentinel = 'file'
11414 0 : if ((!((msg__)->ReadSentinel(iter__, 224874390)))) {
11415 0 : mozilla::ipc::SentinelReadError("Error deserializing 'file' (IPCFileUnion) member of 'IPCBlob'");
11416 0 : return false;
11417 : }
11418 0 : if ((!(Read((&((v__)->fileId())), msg__, iter__)))) {
11419 0 : FatalError("Error deserializing 'fileId' (int64_t) member of 'IPCBlob'");
11420 0 : return false;
11421 : }
11422 : // Sentinel = 'fileId'
11423 0 : if ((!((msg__)->ReadSentinel(iter__, 108004447)))) {
11424 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileId' (int64_t) member of 'IPCBlob'");
11425 0 : return false;
11426 : }
11427 0 : return true;
11428 : }
11429 :
11430 0 : auto PContentParent::Write(
11431 : const PPresentationParent* v__,
11432 : Message* msg__,
11433 : bool nullable__) -> void
11434 : {
11435 : int32_t id;
11436 0 : if ((!(v__))) {
11437 0 : if ((!(nullable__))) {
11438 0 : FatalError("NULL actor value passed to non-nullable param");
11439 : }
11440 0 : id = 0;
11441 : }
11442 : else {
11443 0 : id = (v__)->Id();
11444 0 : if ((1) == (id)) {
11445 0 : FatalError("actor has been |delete|d");
11446 : }
11447 : }
11448 :
11449 0 : Write(id, msg__);
11450 0 : }
11451 :
11452 0 : auto PContentParent::Read(
11453 : PPresentationParent** v__,
11454 : const Message* msg__,
11455 : PickleIterator* iter__,
11456 : bool nullable__) -> bool
11457 : {
11458 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPresentation", PPresentationMsgStart);
11459 0 : if ((actor).isNothing()) {
11460 0 : return false;
11461 : }
11462 :
11463 0 : (*(v__)) = static_cast<PPresentationParent*>((actor).value());
11464 0 : return true;
11465 : }
11466 :
11467 0 : auto PContentParent::Write(
11468 : const NullVariant& v__,
11469 : Message* msg__) -> void
11470 : {
11471 0 : }
11472 :
11473 0 : auto PContentParent::Read(
11474 : NullVariant* v__,
11475 : const Message* msg__,
11476 : PickleIterator* iter__) -> bool
11477 : {
11478 0 : return true;
11479 : }
11480 :
11481 0 : auto PContentParent::Write(
11482 : const NullPrincipalInfo& v__,
11483 : Message* msg__) -> void
11484 : {
11485 0 : Write((v__).attrs(), msg__);
11486 : // Sentinel = 'attrs'
11487 0 : (msg__)->WriteSentinel(3014987797);
11488 0 : Write((v__).spec(), msg__);
11489 : // Sentinel = 'spec'
11490 0 : (msg__)->WriteSentinel(1630740541);
11491 0 : }
11492 :
11493 0 : auto PContentParent::Read(
11494 : NullPrincipalInfo* v__,
11495 : const Message* msg__,
11496 : PickleIterator* iter__) -> bool
11497 : {
11498 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
11499 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
11500 0 : return false;
11501 : }
11502 : // Sentinel = 'attrs'
11503 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
11504 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
11505 0 : return false;
11506 : }
11507 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
11508 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
11509 0 : return false;
11510 : }
11511 : // Sentinel = 'spec'
11512 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
11513 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
11514 0 : return false;
11515 : }
11516 0 : return true;
11517 : }
11518 :
11519 2 : auto PContentParent::Write(
11520 : const D3D11DeviceStatus& v__,
11521 : Message* msg__) -> void
11522 : {
11523 2 : Write((v__).isWARP(), msg__);
11524 : // Sentinel = 'isWARP'
11525 2 : (msg__)->WriteSentinel(1265874836);
11526 2 : Write((v__).textureSharingWorks(), msg__);
11527 : // Sentinel = 'textureSharingWorks'
11528 2 : (msg__)->WriteSentinel(2619561312);
11529 2 : Write((v__).featureLevel(), msg__);
11530 : // Sentinel = 'featureLevel'
11531 2 : (msg__)->WriteSentinel(3350666840);
11532 2 : Write((v__).adapter(), msg__);
11533 : // Sentinel = 'adapter'
11534 2 : (msg__)->WriteSentinel(3228599530);
11535 2 : }
11536 :
11537 0 : auto PContentParent::Read(
11538 : D3D11DeviceStatus* v__,
11539 : const Message* msg__,
11540 : PickleIterator* iter__) -> bool
11541 : {
11542 0 : if ((!(Read((&((v__)->isWARP())), msg__, iter__)))) {
11543 0 : FatalError("Error deserializing 'isWARP' (bool) member of 'D3D11DeviceStatus'");
11544 0 : return false;
11545 : }
11546 : // Sentinel = 'isWARP'
11547 0 : if ((!((msg__)->ReadSentinel(iter__, 1265874836)))) {
11548 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isWARP' (bool) member of 'D3D11DeviceStatus'");
11549 0 : return false;
11550 : }
11551 0 : if ((!(Read((&((v__)->textureSharingWorks())), msg__, iter__)))) {
11552 0 : FatalError("Error deserializing 'textureSharingWorks' (bool) member of 'D3D11DeviceStatus'");
11553 0 : return false;
11554 : }
11555 : // Sentinel = 'textureSharingWorks'
11556 0 : if ((!((msg__)->ReadSentinel(iter__, 2619561312)))) {
11557 0 : mozilla::ipc::SentinelReadError("Error deserializing 'textureSharingWorks' (bool) member of 'D3D11DeviceStatus'");
11558 0 : return false;
11559 : }
11560 0 : if ((!(Read((&((v__)->featureLevel())), msg__, iter__)))) {
11561 0 : FatalError("Error deserializing 'featureLevel' (uint32_t) member of 'D3D11DeviceStatus'");
11562 0 : return false;
11563 : }
11564 : // Sentinel = 'featureLevel'
11565 0 : if ((!((msg__)->ReadSentinel(iter__, 3350666840)))) {
11566 0 : mozilla::ipc::SentinelReadError("Error deserializing 'featureLevel' (uint32_t) member of 'D3D11DeviceStatus'");
11567 0 : return false;
11568 : }
11569 0 : if ((!(Read((&((v__)->adapter())), msg__, iter__)))) {
11570 0 : FatalError("Error deserializing 'adapter' (DxgiAdapterDesc) member of 'D3D11DeviceStatus'");
11571 0 : return false;
11572 : }
11573 : // Sentinel = 'adapter'
11574 0 : if ((!((msg__)->ReadSentinel(iter__, 3228599530)))) {
11575 0 : mozilla::ipc::SentinelReadError("Error deserializing 'adapter' (DxgiAdapterDesc) member of 'D3D11DeviceStatus'");
11576 0 : return false;
11577 : }
11578 0 : return true;
11579 : }
11580 :
11581 2 : auto PContentParent::Write(
11582 : const nsTArray<IPCStream>& v__,
11583 : Message* msg__) -> void
11584 : {
11585 2 : uint32_t length = (v__).Length();
11586 2 : Write(length, msg__);
11587 : // Sentinel = ('length', 'IPCStream[]')
11588 2 : (msg__)->WriteSentinel(790413678);
11589 :
11590 2 : for (auto& elem : v__) {
11591 0 : Write(elem, msg__);
11592 : // Sentinel = 'IPCStream[]'
11593 0 : (msg__)->WriteSentinel(117417041);
11594 : }
11595 2 : }
11596 :
11597 3 : auto PContentParent::Read(
11598 : nsTArray<IPCStream>* v__,
11599 : const Message* msg__,
11600 : PickleIterator* iter__) -> bool
11601 : {
11602 6 : nsTArray<IPCStream> fa;
11603 : uint32_t length;
11604 3 : if ((!(Read((&(length)), msg__, iter__)))) {
11605 0 : mozilla::ipc::ArrayLengthReadError("IPCStream[]");
11606 0 : return false;
11607 : }
11608 : // Sentinel = ('length', 'IPCStream[]')
11609 3 : if ((!((msg__)->ReadSentinel(iter__, 790413678)))) {
11610 0 : mozilla::ipc::SentinelReadError("IPCStream[]");
11611 0 : return false;
11612 : }
11613 :
11614 3 : IPCStream* elems = (fa).AppendElements(length);
11615 3 : for (uint32_t i = 0; (i) < (length); (++(i))) {
11616 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
11617 0 : FatalError("Error deserializing 'IPCStream[i]'");
11618 0 : return false;
11619 : }
11620 : // Sentinel = 'IPCStream[]'
11621 0 : if ((!((msg__)->ReadSentinel(iter__, 117417041)))) {
11622 0 : mozilla::ipc::SentinelReadError("Error deserializing 'IPCStream[i]'");
11623 0 : return false;
11624 : }
11625 : }
11626 3 : (v__)->SwapElements(fa);
11627 3 : return true;
11628 : }
11629 :
11630 0 : auto PContentParent::Write(
11631 : const SystemPrincipalInfo& v__,
11632 : Message* msg__) -> void
11633 : {
11634 0 : }
11635 :
11636 0 : auto PContentParent::Read(
11637 : SystemPrincipalInfo* v__,
11638 : const Message* msg__,
11639 : PickleIterator* iter__) -> bool
11640 : {
11641 0 : return true;
11642 : }
11643 :
11644 0 : auto PContentParent::Write(
11645 : const nsTArray<InputStreamParams>& v__,
11646 : Message* msg__) -> void
11647 : {
11648 0 : uint32_t length = (v__).Length();
11649 0 : Write(length, msg__);
11650 : // Sentinel = ('length', 'InputStreamParams[]')
11651 0 : (msg__)->WriteSentinel(348334258);
11652 :
11653 0 : for (auto& elem : v__) {
11654 0 : Write(elem, msg__);
11655 : // Sentinel = 'InputStreamParams[]'
11656 0 : (msg__)->WriteSentinel(2927715197);
11657 : }
11658 0 : }
11659 :
11660 0 : auto PContentParent::Read(
11661 : nsTArray<InputStreamParams>* v__,
11662 : const Message* msg__,
11663 : PickleIterator* iter__) -> bool
11664 : {
11665 0 : nsTArray<InputStreamParams> fa;
11666 : uint32_t length;
11667 0 : if ((!(Read((&(length)), msg__, iter__)))) {
11668 0 : mozilla::ipc::ArrayLengthReadError("InputStreamParams[]");
11669 0 : return false;
11670 : }
11671 : // Sentinel = ('length', 'InputStreamParams[]')
11672 0 : if ((!((msg__)->ReadSentinel(iter__, 348334258)))) {
11673 0 : mozilla::ipc::SentinelReadError("InputStreamParams[]");
11674 0 : return false;
11675 : }
11676 :
11677 0 : InputStreamParams* elems = (fa).AppendElements(length);
11678 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
11679 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
11680 0 : FatalError("Error deserializing 'InputStreamParams[i]'");
11681 0 : return false;
11682 : }
11683 : // Sentinel = 'InputStreamParams[]'
11684 0 : if ((!((msg__)->ReadSentinel(iter__, 2927715197)))) {
11685 0 : mozilla::ipc::SentinelReadError("Error deserializing 'InputStreamParams[i]'");
11686 0 : return false;
11687 : }
11688 : }
11689 0 : (v__)->SwapElements(fa);
11690 0 : return true;
11691 : }
11692 :
11693 1 : auto PContentParent::Write(
11694 : const IPCTabContext& v__,
11695 : Message* msg__) -> void
11696 : {
11697 : typedef IPCTabContext type__;
11698 1 : Write(int((v__).type()), msg__);
11699 : // Sentinel = 'IPCTabContext'
11700 1 : (msg__)->WriteSentinel(506037529);
11701 :
11702 1 : switch ((v__).type()) {
11703 : case type__::TPopupIPCTabContext:
11704 : {
11705 0 : Write((v__).get_PopupIPCTabContext(), msg__);
11706 : // Sentinel = 'TPopupIPCTabContext'
11707 0 : (msg__)->WriteSentinel(4038668053);
11708 0 : return;
11709 : }
11710 : case type__::TFrameIPCTabContext:
11711 : {
11712 1 : Write((v__).get_FrameIPCTabContext(), msg__);
11713 : // Sentinel = 'TFrameIPCTabContext'
11714 1 : (msg__)->WriteSentinel(4211766306);
11715 1 : return;
11716 : }
11717 : case type__::TJSPluginFrameIPCTabContext:
11718 : {
11719 0 : Write((v__).get_JSPluginFrameIPCTabContext(), msg__);
11720 : // Sentinel = 'TJSPluginFrameIPCTabContext'
11721 0 : (msg__)->WriteSentinel(953478246);
11722 0 : return;
11723 : }
11724 : case type__::TUnsafeIPCTabContext:
11725 : {
11726 0 : Write((v__).get_UnsafeIPCTabContext(), msg__);
11727 : // Sentinel = 'TUnsafeIPCTabContext'
11728 0 : (msg__)->WriteSentinel(152883886);
11729 0 : return;
11730 : }
11731 : default:
11732 : {
11733 0 : FatalError("unknown union type");
11734 0 : return;
11735 : }
11736 : }
11737 : }
11738 :
11739 0 : auto PContentParent::Read(
11740 : IPCTabContext* v__,
11741 : const Message* msg__,
11742 : PickleIterator* iter__) -> bool
11743 : {
11744 : typedef IPCTabContext type__;
11745 : int type;
11746 0 : if ((!(Read((&(type)), msg__, iter__)))) {
11747 0 : mozilla::ipc::UnionTypeReadError("IPCTabContext");
11748 0 : return false;
11749 : }
11750 : // Sentinel = 'IPCTabContext'
11751 0 : if ((!((msg__)->ReadSentinel(iter__, 506037529)))) {
11752 0 : mozilla::ipc::SentinelReadError("IPCTabContext");
11753 0 : return false;
11754 : }
11755 :
11756 0 : switch (type) {
11757 : case type__::TPopupIPCTabContext:
11758 : {
11759 0 : PopupIPCTabContext tmp = PopupIPCTabContext();
11760 0 : (*(v__)) = tmp;
11761 0 : if ((!(Read((&((v__)->get_PopupIPCTabContext())), msg__, iter__)))) {
11762 0 : FatalError("Error deserializing Union type");
11763 0 : return false;
11764 : }
11765 : // Sentinel = 'TPopupIPCTabContext'
11766 0 : if ((!((msg__)->ReadSentinel(iter__, 4038668053)))) {
11767 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
11768 0 : return false;
11769 : }
11770 0 : return true;
11771 : }
11772 : case type__::TFrameIPCTabContext:
11773 : {
11774 0 : FrameIPCTabContext tmp = FrameIPCTabContext();
11775 0 : (*(v__)) = tmp;
11776 0 : if ((!(Read((&((v__)->get_FrameIPCTabContext())), msg__, iter__)))) {
11777 0 : FatalError("Error deserializing Union type");
11778 0 : return false;
11779 : }
11780 : // Sentinel = 'TFrameIPCTabContext'
11781 0 : if ((!((msg__)->ReadSentinel(iter__, 4211766306)))) {
11782 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
11783 0 : return false;
11784 : }
11785 0 : return true;
11786 : }
11787 : case type__::TJSPluginFrameIPCTabContext:
11788 : {
11789 0 : JSPluginFrameIPCTabContext tmp = JSPluginFrameIPCTabContext();
11790 0 : (*(v__)) = tmp;
11791 0 : if ((!(Read((&((v__)->get_JSPluginFrameIPCTabContext())), msg__, iter__)))) {
11792 0 : FatalError("Error deserializing Union type");
11793 0 : return false;
11794 : }
11795 : // Sentinel = 'TJSPluginFrameIPCTabContext'
11796 0 : if ((!((msg__)->ReadSentinel(iter__, 953478246)))) {
11797 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
11798 0 : return false;
11799 : }
11800 0 : return true;
11801 : }
11802 : case type__::TUnsafeIPCTabContext:
11803 : {
11804 0 : UnsafeIPCTabContext tmp = UnsafeIPCTabContext();
11805 0 : (*(v__)) = tmp;
11806 0 : if ((!(Read((&((v__)->get_UnsafeIPCTabContext())), msg__, iter__)))) {
11807 0 : FatalError("Error deserializing Union type");
11808 0 : return false;
11809 : }
11810 : // Sentinel = 'TUnsafeIPCTabContext'
11811 0 : if ((!((msg__)->ReadSentinel(iter__, 152883886)))) {
11812 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
11813 0 : return false;
11814 : }
11815 0 : return true;
11816 : }
11817 : default:
11818 : {
11819 0 : FatalError("unknown union type");
11820 0 : return false;
11821 : }
11822 : }
11823 : }
11824 :
11825 0 : auto PContentParent::Write(
11826 : const PParentToChildStreamParent* v__,
11827 : Message* msg__,
11828 : bool nullable__) -> void
11829 : {
11830 : int32_t id;
11831 0 : if ((!(v__))) {
11832 0 : if ((!(nullable__))) {
11833 0 : FatalError("NULL actor value passed to non-nullable param");
11834 : }
11835 0 : id = 0;
11836 : }
11837 : else {
11838 0 : id = (v__)->Id();
11839 0 : if ((1) == (id)) {
11840 0 : FatalError("actor has been |delete|d");
11841 : }
11842 : }
11843 :
11844 0 : Write(id, msg__);
11845 0 : }
11846 :
11847 0 : auto PContentParent::Read(
11848 : PParentToChildStreamParent** v__,
11849 : const Message* msg__,
11850 : PickleIterator* iter__,
11851 : bool nullable__) -> bool
11852 : {
11853 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PParentToChildStream", PParentToChildStreamMsgStart);
11854 0 : if ((actor).isNothing()) {
11855 0 : return false;
11856 : }
11857 :
11858 0 : (*(v__)) = static_cast<PParentToChildStreamParent*>((actor).value());
11859 0 : return true;
11860 : }
11861 :
11862 0 : auto PContentParent::Write(
11863 : const UnsafeIPCTabContext& v__,
11864 : Message* msg__) -> void
11865 : {
11866 0 : }
11867 :
11868 0 : auto PContentParent::Read(
11869 : UnsafeIPCTabContext* v__,
11870 : const Message* msg__,
11871 : PickleIterator* iter__) -> bool
11872 : {
11873 0 : return true;
11874 : }
11875 :
11876 0 : auto PContentParent::Write(
11877 : const nsTArray<FontListEntry>& v__,
11878 : Message* msg__) -> void
11879 : {
11880 0 : uint32_t length = (v__).Length();
11881 0 : Write(length, msg__);
11882 : // Sentinel = ('length', 'FontListEntry[]')
11883 0 : (msg__)->WriteSentinel(1702417123);
11884 :
11885 0 : for (auto& elem : v__) {
11886 0 : Write(elem, msg__);
11887 : // Sentinel = 'FontListEntry[]'
11888 0 : (msg__)->WriteSentinel(2898082070);
11889 : }
11890 0 : }
11891 :
11892 0 : auto PContentParent::Read(
11893 : nsTArray<FontListEntry>* v__,
11894 : const Message* msg__,
11895 : PickleIterator* iter__) -> bool
11896 : {
11897 0 : nsTArray<FontListEntry> fa;
11898 : uint32_t length;
11899 0 : if ((!(Read((&(length)), msg__, iter__)))) {
11900 0 : mozilla::ipc::ArrayLengthReadError("FontListEntry[]");
11901 0 : return false;
11902 : }
11903 : // Sentinel = ('length', 'FontListEntry[]')
11904 0 : if ((!((msg__)->ReadSentinel(iter__, 1702417123)))) {
11905 0 : mozilla::ipc::SentinelReadError("FontListEntry[]");
11906 0 : return false;
11907 : }
11908 :
11909 0 : FontListEntry* elems = (fa).AppendElements(length);
11910 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
11911 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
11912 0 : FatalError("Error deserializing 'FontListEntry[i]'");
11913 0 : return false;
11914 : }
11915 : // Sentinel = 'FontListEntry[]'
11916 0 : if ((!((msg__)->ReadSentinel(iter__, 2898082070)))) {
11917 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FontListEntry[i]'");
11918 0 : return false;
11919 : }
11920 : }
11921 0 : (v__)->SwapElements(fa);
11922 0 : return true;
11923 : }
11924 :
11925 0 : auto PContentParent::Write(
11926 : const PHandlerServiceParent* v__,
11927 : Message* msg__,
11928 : bool nullable__) -> void
11929 : {
11930 : int32_t id;
11931 0 : if ((!(v__))) {
11932 0 : if ((!(nullable__))) {
11933 0 : FatalError("NULL actor value passed to non-nullable param");
11934 : }
11935 0 : id = 0;
11936 : }
11937 : else {
11938 0 : id = (v__)->Id();
11939 0 : if ((1) == (id)) {
11940 0 : FatalError("actor has been |delete|d");
11941 : }
11942 : }
11943 :
11944 0 : Write(id, msg__);
11945 0 : }
11946 :
11947 0 : auto PContentParent::Read(
11948 : PHandlerServiceParent** v__,
11949 : const Message* msg__,
11950 : PickleIterator* iter__,
11951 : bool nullable__) -> bool
11952 : {
11953 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PHandlerService", PHandlerServiceMsgStart);
11954 0 : if ((actor).isNothing()) {
11955 0 : return false;
11956 : }
11957 :
11958 0 : (*(v__)) = static_cast<PHandlerServiceParent*>((actor).value());
11959 0 : return true;
11960 : }
11961 :
11962 0 : auto PContentParent::Write(
11963 : const SimpleNestedURIParams& v__,
11964 : Message* msg__) -> void
11965 : {
11966 0 : Write((v__).simpleParams(), msg__);
11967 : // Sentinel = 'simpleParams'
11968 0 : (msg__)->WriteSentinel(3404291700);
11969 0 : Write((v__).innerURI(), msg__);
11970 : // Sentinel = 'innerURI'
11971 0 : (msg__)->WriteSentinel(2573245334);
11972 0 : }
11973 :
11974 0 : auto PContentParent::Read(
11975 : SimpleNestedURIParams* v__,
11976 : const Message* msg__,
11977 : PickleIterator* iter__) -> bool
11978 : {
11979 0 : if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
11980 0 : FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'SimpleNestedURIParams'");
11981 0 : return false;
11982 : }
11983 : // Sentinel = 'simpleParams'
11984 0 : if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
11985 0 : mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'SimpleNestedURIParams'");
11986 0 : return false;
11987 : }
11988 0 : if ((!(Read((&((v__)->innerURI())), msg__, iter__)))) {
11989 0 : FatalError("Error deserializing 'innerURI' (URIParams) member of 'SimpleNestedURIParams'");
11990 0 : return false;
11991 : }
11992 : // Sentinel = 'innerURI'
11993 0 : if ((!((msg__)->ReadSentinel(iter__, 2573245334)))) {
11994 0 : mozilla::ipc::SentinelReadError("Error deserializing 'innerURI' (URIParams) member of 'SimpleNestedURIParams'");
11995 0 : return false;
11996 : }
11997 0 : return true;
11998 : }
11999 :
12000 6273 : auto PContentParent::Write(
12001 : const PrefValue& v__,
12002 : Message* msg__) -> void
12003 : {
12004 : typedef PrefValue type__;
12005 6273 : Write(int((v__).type()), msg__);
12006 : // Sentinel = 'PrefValue'
12007 6273 : (msg__)->WriteSentinel(4174929935);
12008 :
12009 6273 : switch ((v__).type()) {
12010 : case type__::TnsCString:
12011 : {
12012 1650 : Write((v__).get_nsCString(), msg__);
12013 : // Sentinel = 'TnsCString'
12014 1650 : (msg__)->WriteSentinel(2427411293);
12015 1650 : return;
12016 : }
12017 : case type__::Tint32_t:
12018 : {
12019 1613 : Write((v__).get_int32_t(), msg__);
12020 : // Sentinel = 'Tint32_t'
12021 1613 : (msg__)->WriteSentinel(4219052577);
12022 1613 : return;
12023 : }
12024 : case type__::Tbool:
12025 : {
12026 3010 : Write((v__).get_bool(), msg__);
12027 : // Sentinel = 'Tbool'
12028 3010 : (msg__)->WriteSentinel(1958350201);
12029 3010 : return;
12030 : }
12031 : default:
12032 : {
12033 0 : FatalError("unknown union type");
12034 0 : return;
12035 : }
12036 : }
12037 : }
12038 :
12039 0 : auto PContentParent::Read(
12040 : PrefValue* v__,
12041 : const Message* msg__,
12042 : PickleIterator* iter__) -> bool
12043 : {
12044 : typedef PrefValue type__;
12045 : int type;
12046 0 : if ((!(Read((&(type)), msg__, iter__)))) {
12047 0 : mozilla::ipc::UnionTypeReadError("PrefValue");
12048 0 : return false;
12049 : }
12050 : // Sentinel = 'PrefValue'
12051 0 : if ((!((msg__)->ReadSentinel(iter__, 4174929935)))) {
12052 0 : mozilla::ipc::SentinelReadError("PrefValue");
12053 0 : return false;
12054 : }
12055 :
12056 0 : switch (type) {
12057 : case type__::TnsCString:
12058 : {
12059 0 : nsCString tmp = nsCString();
12060 0 : (*(v__)) = tmp;
12061 0 : if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
12062 0 : FatalError("Error deserializing Union type");
12063 0 : return false;
12064 : }
12065 : // Sentinel = 'TnsCString'
12066 0 : if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
12067 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
12068 0 : return false;
12069 : }
12070 0 : return true;
12071 : }
12072 : case type__::Tint32_t:
12073 : {
12074 0 : int32_t tmp = int32_t();
12075 0 : (*(v__)) = tmp;
12076 0 : if ((!(Read((&((v__)->get_int32_t())), msg__, iter__)))) {
12077 0 : FatalError("Error deserializing Union type");
12078 0 : return false;
12079 : }
12080 : // Sentinel = 'Tint32_t'
12081 0 : if ((!((msg__)->ReadSentinel(iter__, 4219052577)))) {
12082 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
12083 0 : return false;
12084 : }
12085 0 : return true;
12086 : }
12087 : case type__::Tbool:
12088 : {
12089 0 : bool tmp = bool();
12090 0 : (*(v__)) = tmp;
12091 0 : if ((!(Read((&((v__)->get_bool())), msg__, iter__)))) {
12092 0 : FatalError("Error deserializing Union type");
12093 0 : return false;
12094 : }
12095 : // Sentinel = 'Tbool'
12096 0 : if ((!((msg__)->ReadSentinel(iter__, 1958350201)))) {
12097 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
12098 0 : return false;
12099 : }
12100 0 : return true;
12101 : }
12102 : default:
12103 : {
12104 0 : FatalError("unknown union type");
12105 0 : return false;
12106 : }
12107 : }
12108 : }
12109 :
12110 0 : auto PContentParent::Write(
12111 : const IPCDataTransfer& v__,
12112 : Message* msg__) -> void
12113 : {
12114 0 : Write((v__).items(), msg__);
12115 : // Sentinel = 'items'
12116 0 : (msg__)->WriteSentinel(3618840809);
12117 0 : }
12118 :
12119 0 : auto PContentParent::Read(
12120 : IPCDataTransfer* v__,
12121 : const Message* msg__,
12122 : PickleIterator* iter__) -> bool
12123 : {
12124 0 : if ((!(Read((&((v__)->items())), msg__, iter__)))) {
12125 0 : FatalError("Error deserializing 'items' (IPCDataTransferItem[]) member of 'IPCDataTransfer'");
12126 0 : return false;
12127 : }
12128 : // Sentinel = 'items'
12129 0 : if ((!((msg__)->ReadSentinel(iter__, 3618840809)))) {
12130 0 : mozilla::ipc::SentinelReadError("Error deserializing 'items' (IPCDataTransferItem[]) member of 'IPCDataTransfer'");
12131 0 : return false;
12132 : }
12133 0 : return true;
12134 : }
12135 :
12136 0 : auto PContentParent::Write(
12137 : const IPCBlobInputStreamParams& v__,
12138 : Message* msg__) -> void
12139 : {
12140 0 : Write((v__).id(), msg__);
12141 : // Sentinel = 'id'
12142 0 : (msg__)->WriteSentinel(2794505629);
12143 0 : }
12144 :
12145 0 : auto PContentParent::Read(
12146 : IPCBlobInputStreamParams* v__,
12147 : const Message* msg__,
12148 : PickleIterator* iter__) -> bool
12149 : {
12150 0 : if ((!(Read((&((v__)->id())), msg__, iter__)))) {
12151 0 : FatalError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
12152 0 : return false;
12153 : }
12154 : // Sentinel = 'id'
12155 0 : if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
12156 0 : mozilla::ipc::SentinelReadError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
12157 0 : return false;
12158 : }
12159 0 : return true;
12160 : }
12161 :
12162 0 : auto PContentParent::Write(
12163 : const IPCFile& v__,
12164 : Message* msg__) -> void
12165 : {
12166 0 : Write((v__).name(), msg__);
12167 : // Sentinel = 'name'
12168 0 : (msg__)->WriteSentinel(15034981);
12169 0 : Write((v__).lastModified(), msg__);
12170 : // Sentinel = 'lastModified'
12171 0 : (msg__)->WriteSentinel(3456113257);
12172 0 : Write((v__).DOMPath(), msg__);
12173 : // Sentinel = 'DOMPath'
12174 0 : (msg__)->WriteSentinel(1724352494);
12175 0 : Write((v__).fullPath(), msg__);
12176 : // Sentinel = 'fullPath'
12177 0 : (msg__)->WriteSentinel(385652698);
12178 0 : Write((v__).isDirectory(), msg__);
12179 : // Sentinel = 'isDirectory'
12180 0 : (msg__)->WriteSentinel(2309743506);
12181 0 : }
12182 :
12183 0 : auto PContentParent::Read(
12184 : IPCFile* v__,
12185 : const Message* msg__,
12186 : PickleIterator* iter__) -> bool
12187 : {
12188 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
12189 0 : FatalError("Error deserializing 'name' (nsString) member of 'IPCFile'");
12190 0 : return false;
12191 : }
12192 : // Sentinel = 'name'
12193 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
12194 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsString) member of 'IPCFile'");
12195 0 : return false;
12196 : }
12197 0 : if ((!(Read((&((v__)->lastModified())), msg__, iter__)))) {
12198 0 : FatalError("Error deserializing 'lastModified' (int64_t) member of 'IPCFile'");
12199 0 : return false;
12200 : }
12201 : // Sentinel = 'lastModified'
12202 0 : if ((!((msg__)->ReadSentinel(iter__, 3456113257)))) {
12203 0 : mozilla::ipc::SentinelReadError("Error deserializing 'lastModified' (int64_t) member of 'IPCFile'");
12204 0 : return false;
12205 : }
12206 0 : if ((!(Read((&((v__)->DOMPath())), msg__, iter__)))) {
12207 0 : FatalError("Error deserializing 'DOMPath' (nsString) member of 'IPCFile'");
12208 0 : return false;
12209 : }
12210 : // Sentinel = 'DOMPath'
12211 0 : if ((!((msg__)->ReadSentinel(iter__, 1724352494)))) {
12212 0 : mozilla::ipc::SentinelReadError("Error deserializing 'DOMPath' (nsString) member of 'IPCFile'");
12213 0 : return false;
12214 : }
12215 0 : if ((!(Read((&((v__)->fullPath())), msg__, iter__)))) {
12216 0 : FatalError("Error deserializing 'fullPath' (nsString) member of 'IPCFile'");
12217 0 : return false;
12218 : }
12219 : // Sentinel = 'fullPath'
12220 0 : if ((!((msg__)->ReadSentinel(iter__, 385652698)))) {
12221 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fullPath' (nsString) member of 'IPCFile'");
12222 0 : return false;
12223 : }
12224 0 : if ((!(Read((&((v__)->isDirectory())), msg__, iter__)))) {
12225 0 : FatalError("Error deserializing 'isDirectory' (bool) member of 'IPCFile'");
12226 0 : return false;
12227 : }
12228 : // Sentinel = 'isDirectory'
12229 0 : if ((!((msg__)->ReadSentinel(iter__, 2309743506)))) {
12230 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isDirectory' (bool) member of 'IPCFile'");
12231 0 : return false;
12232 : }
12233 0 : return true;
12234 : }
12235 :
12236 14 : auto PContentParent::Write(
12237 : const GfxVarUpdate& v__,
12238 : Message* msg__) -> void
12239 : {
12240 14 : Write((v__).index(), msg__);
12241 : // Sentinel = 'index'
12242 14 : (msg__)->WriteSentinel(2111871137);
12243 14 : Write((v__).value(), msg__);
12244 : // Sentinel = 'value'
12245 14 : (msg__)->WriteSentinel(3456818542);
12246 14 : }
12247 :
12248 0 : auto PContentParent::Read(
12249 : GfxVarUpdate* v__,
12250 : const Message* msg__,
12251 : PickleIterator* iter__) -> bool
12252 : {
12253 0 : if ((!(Read((&((v__)->index())), msg__, iter__)))) {
12254 0 : FatalError("Error deserializing 'index' (size_t) member of 'GfxVarUpdate'");
12255 0 : return false;
12256 : }
12257 : // Sentinel = 'index'
12258 0 : if ((!((msg__)->ReadSentinel(iter__, 2111871137)))) {
12259 0 : mozilla::ipc::SentinelReadError("Error deserializing 'index' (size_t) member of 'GfxVarUpdate'");
12260 0 : return false;
12261 : }
12262 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
12263 0 : FatalError("Error deserializing 'value' (GfxVarValue) member of 'GfxVarUpdate'");
12264 0 : return false;
12265 : }
12266 : // Sentinel = 'value'
12267 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
12268 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (GfxVarValue) member of 'GfxVarUpdate'");
12269 0 : return false;
12270 : }
12271 0 : return true;
12272 : }
12273 :
12274 0 : auto PContentParent::Write(
12275 : const JSIID& v__,
12276 : Message* msg__) -> void
12277 : {
12278 0 : Write((v__).m0(), msg__);
12279 : // Sentinel = 'm0'
12280 0 : (msg__)->WriteSentinel(2819154229);
12281 0 : Write((v__).m1(), msg__);
12282 : // Sentinel = 'm1'
12283 0 : (msg__)->WriteSentinel(2819154228);
12284 0 : Write((v__).m2(), msg__);
12285 : // Sentinel = 'm2'
12286 0 : (msg__)->WriteSentinel(2819154231);
12287 0 : Write((v__).m3_0(), msg__);
12288 : // Sentinel = 'm3_0'
12289 0 : (msg__)->WriteSentinel(2771419453);
12290 0 : Write((v__).m3_1(), msg__);
12291 : // Sentinel = 'm3_1'
12292 0 : (msg__)->WriteSentinel(2771419452);
12293 0 : Write((v__).m3_2(), msg__);
12294 : // Sentinel = 'm3_2'
12295 0 : (msg__)->WriteSentinel(2771419455);
12296 0 : Write((v__).m3_3(), msg__);
12297 : // Sentinel = 'm3_3'
12298 0 : (msg__)->WriteSentinel(2771419454);
12299 0 : Write((v__).m3_4(), msg__);
12300 : // Sentinel = 'm3_4'
12301 0 : (msg__)->WriteSentinel(2771419449);
12302 0 : Write((v__).m3_5(), msg__);
12303 : // Sentinel = 'm3_5'
12304 0 : (msg__)->WriteSentinel(2771419448);
12305 0 : Write((v__).m3_6(), msg__);
12306 : // Sentinel = 'm3_6'
12307 0 : (msg__)->WriteSentinel(2771419451);
12308 0 : Write((v__).m3_7(), msg__);
12309 : // Sentinel = 'm3_7'
12310 0 : (msg__)->WriteSentinel(2771419450);
12311 0 : }
12312 :
12313 0 : auto PContentParent::Read(
12314 : JSIID* v__,
12315 : const Message* msg__,
12316 : PickleIterator* iter__) -> bool
12317 : {
12318 0 : if ((!(Read((&((v__)->m0())), msg__, iter__)))) {
12319 0 : FatalError("Error deserializing 'm0' (uint32_t) member of 'JSIID'");
12320 0 : return false;
12321 : }
12322 : // Sentinel = 'm0'
12323 0 : if ((!((msg__)->ReadSentinel(iter__, 2819154229)))) {
12324 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm0' (uint32_t) member of 'JSIID'");
12325 0 : return false;
12326 : }
12327 0 : if ((!(Read((&((v__)->m1())), msg__, iter__)))) {
12328 0 : FatalError("Error deserializing 'm1' (uint16_t) member of 'JSIID'");
12329 0 : return false;
12330 : }
12331 : // Sentinel = 'm1'
12332 0 : if ((!((msg__)->ReadSentinel(iter__, 2819154228)))) {
12333 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm1' (uint16_t) member of 'JSIID'");
12334 0 : return false;
12335 : }
12336 0 : if ((!(Read((&((v__)->m2())), msg__, iter__)))) {
12337 0 : FatalError("Error deserializing 'm2' (uint16_t) member of 'JSIID'");
12338 0 : return false;
12339 : }
12340 : // Sentinel = 'm2'
12341 0 : if ((!((msg__)->ReadSentinel(iter__, 2819154231)))) {
12342 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm2' (uint16_t) member of 'JSIID'");
12343 0 : return false;
12344 : }
12345 0 : if ((!(Read((&((v__)->m3_0())), msg__, iter__)))) {
12346 0 : FatalError("Error deserializing 'm3_0' (uint8_t) member of 'JSIID'");
12347 0 : return false;
12348 : }
12349 : // Sentinel = 'm3_0'
12350 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419453)))) {
12351 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_0' (uint8_t) member of 'JSIID'");
12352 0 : return false;
12353 : }
12354 0 : if ((!(Read((&((v__)->m3_1())), msg__, iter__)))) {
12355 0 : FatalError("Error deserializing 'm3_1' (uint8_t) member of 'JSIID'");
12356 0 : return false;
12357 : }
12358 : // Sentinel = 'm3_1'
12359 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419452)))) {
12360 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_1' (uint8_t) member of 'JSIID'");
12361 0 : return false;
12362 : }
12363 0 : if ((!(Read((&((v__)->m3_2())), msg__, iter__)))) {
12364 0 : FatalError("Error deserializing 'm3_2' (uint8_t) member of 'JSIID'");
12365 0 : return false;
12366 : }
12367 : // Sentinel = 'm3_2'
12368 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419455)))) {
12369 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_2' (uint8_t) member of 'JSIID'");
12370 0 : return false;
12371 : }
12372 0 : if ((!(Read((&((v__)->m3_3())), msg__, iter__)))) {
12373 0 : FatalError("Error deserializing 'm3_3' (uint8_t) member of 'JSIID'");
12374 0 : return false;
12375 : }
12376 : // Sentinel = 'm3_3'
12377 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419454)))) {
12378 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_3' (uint8_t) member of 'JSIID'");
12379 0 : return false;
12380 : }
12381 0 : if ((!(Read((&((v__)->m3_4())), msg__, iter__)))) {
12382 0 : FatalError("Error deserializing 'm3_4' (uint8_t) member of 'JSIID'");
12383 0 : return false;
12384 : }
12385 : // Sentinel = 'm3_4'
12386 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419449)))) {
12387 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_4' (uint8_t) member of 'JSIID'");
12388 0 : return false;
12389 : }
12390 0 : if ((!(Read((&((v__)->m3_5())), msg__, iter__)))) {
12391 0 : FatalError("Error deserializing 'm3_5' (uint8_t) member of 'JSIID'");
12392 0 : return false;
12393 : }
12394 : // Sentinel = 'm3_5'
12395 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419448)))) {
12396 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_5' (uint8_t) member of 'JSIID'");
12397 0 : return false;
12398 : }
12399 0 : if ((!(Read((&((v__)->m3_6())), msg__, iter__)))) {
12400 0 : FatalError("Error deserializing 'm3_6' (uint8_t) member of 'JSIID'");
12401 0 : return false;
12402 : }
12403 : // Sentinel = 'm3_6'
12404 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419451)))) {
12405 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_6' (uint8_t) member of 'JSIID'");
12406 0 : return false;
12407 : }
12408 0 : if ((!(Read((&((v__)->m3_7())), msg__, iter__)))) {
12409 0 : FatalError("Error deserializing 'm3_7' (uint8_t) member of 'JSIID'");
12410 0 : return false;
12411 : }
12412 : // Sentinel = 'm3_7'
12413 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419450)))) {
12414 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_7' (uint8_t) member of 'JSIID'");
12415 0 : return false;
12416 : }
12417 0 : return true;
12418 : }
12419 :
12420 3 : auto PContentParent::Write(
12421 : const GMPCapabilityData& v__,
12422 : Message* msg__) -> void
12423 : {
12424 3 : Write((v__).name(), msg__);
12425 : // Sentinel = 'name'
12426 3 : (msg__)->WriteSentinel(15034981);
12427 3 : Write((v__).version(), msg__);
12428 : // Sentinel = 'version'
12429 3 : (msg__)->WriteSentinel(4003360947);
12430 3 : Write((v__).capabilities(), msg__);
12431 : // Sentinel = 'capabilities'
12432 3 : (msg__)->WriteSentinel(4197121582);
12433 3 : }
12434 :
12435 0 : auto PContentParent::Read(
12436 : GMPCapabilityData* v__,
12437 : const Message* msg__,
12438 : PickleIterator* iter__) -> bool
12439 : {
12440 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
12441 0 : FatalError("Error deserializing 'name' (nsCString) member of 'GMPCapabilityData'");
12442 0 : return false;
12443 : }
12444 : // Sentinel = 'name'
12445 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
12446 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'GMPCapabilityData'");
12447 0 : return false;
12448 : }
12449 0 : if ((!(Read((&((v__)->version())), msg__, iter__)))) {
12450 0 : FatalError("Error deserializing 'version' (nsCString) member of 'GMPCapabilityData'");
12451 0 : return false;
12452 : }
12453 : // Sentinel = 'version'
12454 0 : if ((!((msg__)->ReadSentinel(iter__, 4003360947)))) {
12455 0 : mozilla::ipc::SentinelReadError("Error deserializing 'version' (nsCString) member of 'GMPCapabilityData'");
12456 0 : return false;
12457 : }
12458 0 : if ((!(Read((&((v__)->capabilities())), msg__, iter__)))) {
12459 0 : FatalError("Error deserializing 'capabilities' (GMPAPITags[]) member of 'GMPCapabilityData'");
12460 0 : return false;
12461 : }
12462 : // Sentinel = 'capabilities'
12463 0 : if ((!((msg__)->ReadSentinel(iter__, 4197121582)))) {
12464 0 : mozilla::ipc::SentinelReadError("Error deserializing 'capabilities' (GMPAPITags[]) member of 'GMPCapabilityData'");
12465 0 : return false;
12466 : }
12467 0 : return true;
12468 : }
12469 :
12470 3 : auto PContentParent::Write(
12471 : const nsTArray<PluginTag>& v__,
12472 : Message* msg__) -> void
12473 : {
12474 3 : uint32_t length = (v__).Length();
12475 3 : Write(length, msg__);
12476 : // Sentinel = ('length', 'PluginTag[]')
12477 3 : (msg__)->WriteSentinel(2924994953);
12478 :
12479 3 : for (auto& elem : v__) {
12480 0 : Write(elem, msg__);
12481 : // Sentinel = 'PluginTag[]'
12482 0 : (msg__)->WriteSentinel(483981944);
12483 : }
12484 3 : }
12485 :
12486 0 : auto PContentParent::Read(
12487 : nsTArray<PluginTag>* v__,
12488 : const Message* msg__,
12489 : PickleIterator* iter__) -> bool
12490 : {
12491 0 : nsTArray<PluginTag> fa;
12492 : uint32_t length;
12493 0 : if ((!(Read((&(length)), msg__, iter__)))) {
12494 0 : mozilla::ipc::ArrayLengthReadError("PluginTag[]");
12495 0 : return false;
12496 : }
12497 : // Sentinel = ('length', 'PluginTag[]')
12498 0 : if ((!((msg__)->ReadSentinel(iter__, 2924994953)))) {
12499 0 : mozilla::ipc::SentinelReadError("PluginTag[]");
12500 0 : return false;
12501 : }
12502 :
12503 0 : PluginTag* elems = (fa).AppendElements(length);
12504 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
12505 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
12506 0 : FatalError("Error deserializing 'PluginTag[i]'");
12507 0 : return false;
12508 : }
12509 : // Sentinel = 'PluginTag[]'
12510 0 : if ((!((msg__)->ReadSentinel(iter__, 483981944)))) {
12511 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PluginTag[i]'");
12512 0 : return false;
12513 : }
12514 : }
12515 0 : (v__)->SwapElements(fa);
12516 0 : return true;
12517 : }
12518 :
12519 3 : auto PContentParent::Write(
12520 : const DataStorageEntry& v__,
12521 : Message* msg__) -> void
12522 : {
12523 3 : Write((v__).items(), msg__);
12524 : // Sentinel = 'items'
12525 3 : (msg__)->WriteSentinel(3618840809);
12526 3 : Write((v__).filename(), msg__);
12527 : // Sentinel = 'filename'
12528 3 : (msg__)->WriteSentinel(1198638255);
12529 3 : }
12530 :
12531 0 : auto PContentParent::Read(
12532 : DataStorageEntry* v__,
12533 : const Message* msg__,
12534 : PickleIterator* iter__) -> bool
12535 : {
12536 0 : if ((!(Read((&((v__)->items())), msg__, iter__)))) {
12537 0 : FatalError("Error deserializing 'items' (DataStorageItem[]) member of 'DataStorageEntry'");
12538 0 : return false;
12539 : }
12540 : // Sentinel = 'items'
12541 0 : if ((!((msg__)->ReadSentinel(iter__, 3618840809)))) {
12542 0 : mozilla::ipc::SentinelReadError("Error deserializing 'items' (DataStorageItem[]) member of 'DataStorageEntry'");
12543 0 : return false;
12544 : }
12545 0 : if ((!(Read((&((v__)->filename())), msg__, iter__)))) {
12546 0 : FatalError("Error deserializing 'filename' (nsString) member of 'DataStorageEntry'");
12547 0 : return false;
12548 : }
12549 : // Sentinel = 'filename'
12550 0 : if ((!((msg__)->ReadSentinel(iter__, 1198638255)))) {
12551 0 : mozilla::ipc::SentinelReadError("Error deserializing 'filename' (nsString) member of 'DataStorageEntry'");
12552 0 : return false;
12553 : }
12554 0 : return true;
12555 : }
12556 :
12557 0 : auto PContentParent::Write(
12558 : const DataStorageItem& v__,
12559 : Message* msg__) -> void
12560 : {
12561 0 : Write((v__).key(), msg__);
12562 : // Sentinel = 'key'
12563 0 : (msg__)->WriteSentinel(35142870);
12564 0 : Write((v__).value(), msg__);
12565 : // Sentinel = 'value'
12566 0 : (msg__)->WriteSentinel(3456818542);
12567 0 : Write((v__).type(), msg__);
12568 : // Sentinel = 'type'
12569 0 : (msg__)->WriteSentinel(2982068540);
12570 0 : }
12571 :
12572 0 : auto PContentParent::Read(
12573 : DataStorageItem* v__,
12574 : const Message* msg__,
12575 : PickleIterator* iter__) -> bool
12576 : {
12577 0 : if ((!(Read((&((v__)->key())), msg__, iter__)))) {
12578 0 : FatalError("Error deserializing 'key' (nsCString) member of 'DataStorageItem'");
12579 0 : return false;
12580 : }
12581 : // Sentinel = 'key'
12582 0 : if ((!((msg__)->ReadSentinel(iter__, 35142870)))) {
12583 0 : mozilla::ipc::SentinelReadError("Error deserializing 'key' (nsCString) member of 'DataStorageItem'");
12584 0 : return false;
12585 : }
12586 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
12587 0 : FatalError("Error deserializing 'value' (nsCString) member of 'DataStorageItem'");
12588 0 : return false;
12589 : }
12590 : // Sentinel = 'value'
12591 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
12592 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'DataStorageItem'");
12593 0 : return false;
12594 : }
12595 0 : if ((!(Read((&((v__)->type())), msg__, iter__)))) {
12596 0 : FatalError("Error deserializing 'type' (DataStorageType) member of 'DataStorageItem'");
12597 0 : return false;
12598 : }
12599 : // Sentinel = 'type'
12600 0 : if ((!((msg__)->ReadSentinel(iter__, 2982068540)))) {
12601 0 : mozilla::ipc::SentinelReadError("Error deserializing 'type' (DataStorageType) member of 'DataStorageItem'");
12602 0 : return false;
12603 : }
12604 0 : return true;
12605 : }
12606 :
12607 0 : auto PContentParent::Write(
12608 : Shmem& v__,
12609 : Message* msg__) -> void
12610 : {
12611 0 : IPC::WriteParam(msg__, v__);
12612 0 : (v__).RevokeRights(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
12613 0 : (v__).forget(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
12614 0 : }
12615 :
12616 1 : auto PContentParent::Read(
12617 : Shmem* v__,
12618 : const Message* msg__,
12619 : PickleIterator* iter__) -> bool
12620 : {
12621 2 : Shmem tmp;
12622 1 : if ((!(IPC::ReadParam(msg__, iter__, (&(tmp)))))) {
12623 0 : return false;
12624 : }
12625 :
12626 1 : Shmem::id_t shmemid = (tmp).Id(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
12627 1 : Shmem::SharedMemory* rawmem = LookupSharedMemory(shmemid);
12628 1 : if (rawmem) {
12629 1 : (*(v__)) = Shmem(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead(), rawmem, shmemid);
12630 1 : return true;
12631 : }
12632 0 : (*(v__)) = Shmem();
12633 0 : return true;
12634 : }
12635 :
12636 2 : auto PContentParent::Write(
12637 : const nsTArray<DataStorageEntry>& v__,
12638 : Message* msg__) -> void
12639 : {
12640 2 : uint32_t length = (v__).Length();
12641 2 : Write(length, msg__);
12642 : // Sentinel = ('length', 'DataStorageEntry[]')
12643 2 : (msg__)->WriteSentinel(1863373564);
12644 :
12645 5 : for (auto& elem : v__) {
12646 3 : Write(elem, msg__);
12647 : // Sentinel = 'DataStorageEntry[]'
12648 3 : (msg__)->WriteSentinel(1242592171);
12649 : }
12650 2 : }
12651 :
12652 0 : auto PContentParent::Read(
12653 : nsTArray<DataStorageEntry>* v__,
12654 : const Message* msg__,
12655 : PickleIterator* iter__) -> bool
12656 : {
12657 0 : nsTArray<DataStorageEntry> fa;
12658 : uint32_t length;
12659 0 : if ((!(Read((&(length)), msg__, iter__)))) {
12660 0 : mozilla::ipc::ArrayLengthReadError("DataStorageEntry[]");
12661 0 : return false;
12662 : }
12663 : // Sentinel = ('length', 'DataStorageEntry[]')
12664 0 : if ((!((msg__)->ReadSentinel(iter__, 1863373564)))) {
12665 0 : mozilla::ipc::SentinelReadError("DataStorageEntry[]");
12666 0 : return false;
12667 : }
12668 :
12669 0 : DataStorageEntry* elems = (fa).AppendElements(length);
12670 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
12671 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
12672 0 : FatalError("Error deserializing 'DataStorageEntry[i]'");
12673 0 : return false;
12674 : }
12675 : // Sentinel = 'DataStorageEntry[]'
12676 0 : if ((!((msg__)->ReadSentinel(iter__, 1242592171)))) {
12677 0 : mozilla::ipc::SentinelReadError("Error deserializing 'DataStorageEntry[i]'");
12678 0 : return false;
12679 : }
12680 : }
12681 0 : (v__)->SwapElements(fa);
12682 0 : return true;
12683 : }
12684 :
12685 0 : auto PContentParent::Write(
12686 : const TemporaryFileInputStreamParams& v__,
12687 : Message* msg__) -> void
12688 : {
12689 0 : Write((v__).fileDescriptorIndex(), msg__);
12690 : // Sentinel = 'fileDescriptorIndex'
12691 0 : (msg__)->WriteSentinel(587329112);
12692 0 : Write((v__).startPos(), msg__);
12693 : // Sentinel = 'startPos'
12694 0 : (msg__)->WriteSentinel(557207962);
12695 0 : Write((v__).endPos(), msg__);
12696 : // Sentinel = 'endPos'
12697 0 : (msg__)->WriteSentinel(881536245);
12698 0 : }
12699 :
12700 0 : auto PContentParent::Read(
12701 : TemporaryFileInputStreamParams* v__,
12702 : const Message* msg__,
12703 : PickleIterator* iter__) -> bool
12704 : {
12705 0 : if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
12706 0 : FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
12707 0 : return false;
12708 : }
12709 : // Sentinel = 'fileDescriptorIndex'
12710 0 : if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
12711 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
12712 0 : return false;
12713 : }
12714 0 : if ((!(Read((&((v__)->startPos())), msg__, iter__)))) {
12715 0 : FatalError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
12716 0 : return false;
12717 : }
12718 : // Sentinel = 'startPos'
12719 0 : if ((!((msg__)->ReadSentinel(iter__, 557207962)))) {
12720 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
12721 0 : return false;
12722 : }
12723 0 : if ((!(Read((&((v__)->endPos())), msg__, iter__)))) {
12724 0 : FatalError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
12725 0 : return false;
12726 : }
12727 : // Sentinel = 'endPos'
12728 0 : if ((!((msg__)->ReadSentinel(iter__, 881536245)))) {
12729 0 : mozilla::ipc::SentinelReadError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
12730 0 : return false;
12731 : }
12732 0 : return true;
12733 : }
12734 :
12735 0 : auto PContentParent::Write(
12736 : const GetFilesResponseSuccess& v__,
12737 : Message* msg__) -> void
12738 : {
12739 0 : Write((v__).blobs(), msg__);
12740 : // Sentinel = 'blobs'
12741 0 : (msg__)->WriteSentinel(635500709);
12742 0 : }
12743 :
12744 0 : auto PContentParent::Read(
12745 : GetFilesResponseSuccess* v__,
12746 : const Message* msg__,
12747 : PickleIterator* iter__) -> bool
12748 : {
12749 0 : if ((!(Read((&((v__)->blobs())), msg__, iter__)))) {
12750 0 : FatalError("Error deserializing 'blobs' (IPCBlob[]) member of 'GetFilesResponseSuccess'");
12751 0 : return false;
12752 : }
12753 : // Sentinel = 'blobs'
12754 0 : if ((!((msg__)->ReadSentinel(iter__, 635500709)))) {
12755 0 : mozilla::ipc::SentinelReadError("Error deserializing 'blobs' (IPCBlob[]) member of 'GetFilesResponseSuccess'");
12756 0 : return false;
12757 : }
12758 0 : return true;
12759 : }
12760 :
12761 0 : auto PContentParent::Write(
12762 : const PContentPermissionRequestParent* v__,
12763 : Message* msg__,
12764 : bool nullable__) -> void
12765 : {
12766 : int32_t id;
12767 0 : if ((!(v__))) {
12768 0 : if ((!(nullable__))) {
12769 0 : FatalError("NULL actor value passed to non-nullable param");
12770 : }
12771 0 : id = 0;
12772 : }
12773 : else {
12774 0 : id = (v__)->Id();
12775 0 : if ((1) == (id)) {
12776 0 : FatalError("actor has been |delete|d");
12777 : }
12778 : }
12779 :
12780 0 : Write(id, msg__);
12781 0 : }
12782 :
12783 0 : auto PContentParent::Read(
12784 : PContentPermissionRequestParent** v__,
12785 : const Message* msg__,
12786 : PickleIterator* iter__,
12787 : bool nullable__) -> bool
12788 : {
12789 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PContentPermissionRequest", PContentPermissionRequestMsgStart);
12790 0 : if ((actor).isNothing()) {
12791 0 : return false;
12792 : }
12793 :
12794 0 : (*(v__)) = static_cast<PContentPermissionRequestParent*>((actor).value());
12795 0 : return true;
12796 : }
12797 :
12798 0 : auto PContentParent::Write(
12799 : const MIMEInputStreamParams& v__,
12800 : Message* msg__) -> void
12801 : {
12802 0 : Write((v__).optionalStream(), msg__);
12803 : // Sentinel = 'optionalStream'
12804 0 : (msg__)->WriteSentinel(1003718562);
12805 0 : Write((v__).headers(), msg__);
12806 : // Sentinel = 'headers'
12807 0 : (msg__)->WriteSentinel(4284175217);
12808 0 : Write((v__).startedReading(), msg__);
12809 : // Sentinel = 'startedReading'
12810 0 : (msg__)->WriteSentinel(1906875903);
12811 0 : }
12812 :
12813 0 : auto PContentParent::Read(
12814 : MIMEInputStreamParams* v__,
12815 : const Message* msg__,
12816 : PickleIterator* iter__) -> bool
12817 : {
12818 0 : if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
12819 0 : FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
12820 0 : return false;
12821 : }
12822 : // Sentinel = 'optionalStream'
12823 0 : if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
12824 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
12825 0 : return false;
12826 : }
12827 0 : if ((!(Read((&((v__)->headers())), msg__, iter__)))) {
12828 0 : FatalError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
12829 0 : return false;
12830 : }
12831 : // Sentinel = 'headers'
12832 0 : if ((!((msg__)->ReadSentinel(iter__, 4284175217)))) {
12833 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
12834 0 : return false;
12835 : }
12836 0 : if ((!(Read((&((v__)->startedReading())), msg__, iter__)))) {
12837 0 : FatalError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
12838 0 : return false;
12839 : }
12840 : // Sentinel = 'startedReading'
12841 0 : if ((!((msg__)->ReadSentinel(iter__, 1906875903)))) {
12842 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
12843 0 : return false;
12844 : }
12845 0 : return true;
12846 : }
12847 :
12848 0 : auto PContentParent::Write(
12849 : const SimpleURIParams& v__,
12850 : Message* msg__) -> void
12851 : {
12852 0 : Write((v__).scheme(), msg__);
12853 : // Sentinel = 'scheme'
12854 0 : (msg__)->WriteSentinel(3619238715);
12855 0 : Write((v__).path(), msg__);
12856 : // Sentinel = 'path'
12857 0 : (msg__)->WriteSentinel(913629401);
12858 0 : Write((v__).ref(), msg__);
12859 : // Sentinel = 'ref'
12860 0 : (msg__)->WriteSentinel(2626476732);
12861 0 : Write((v__).query(), msg__);
12862 : // Sentinel = 'query'
12863 0 : (msg__)->WriteSentinel(4249802777);
12864 0 : Write((v__).isMutable(), msg__);
12865 : // Sentinel = 'isMutable'
12866 0 : (msg__)->WriteSentinel(3552466783);
12867 0 : }
12868 :
12869 0 : auto PContentParent::Read(
12870 : SimpleURIParams* v__,
12871 : const Message* msg__,
12872 : PickleIterator* iter__) -> bool
12873 : {
12874 0 : if ((!(Read((&((v__)->scheme())), msg__, iter__)))) {
12875 0 : FatalError("Error deserializing 'scheme' (nsCString) member of 'SimpleURIParams'");
12876 0 : return false;
12877 : }
12878 : // Sentinel = 'scheme'
12879 0 : if ((!((msg__)->ReadSentinel(iter__, 3619238715)))) {
12880 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scheme' (nsCString) member of 'SimpleURIParams'");
12881 0 : return false;
12882 : }
12883 0 : if ((!(Read((&((v__)->path())), msg__, iter__)))) {
12884 0 : FatalError("Error deserializing 'path' (nsCString) member of 'SimpleURIParams'");
12885 0 : return false;
12886 : }
12887 : // Sentinel = 'path'
12888 0 : if ((!((msg__)->ReadSentinel(iter__, 913629401)))) {
12889 0 : mozilla::ipc::SentinelReadError("Error deserializing 'path' (nsCString) member of 'SimpleURIParams'");
12890 0 : return false;
12891 : }
12892 0 : if ((!(Read((&((v__)->ref())), msg__, iter__)))) {
12893 0 : FatalError("Error deserializing 'ref' (nsCString) member of 'SimpleURIParams'");
12894 0 : return false;
12895 : }
12896 : // Sentinel = 'ref'
12897 0 : if ((!((msg__)->ReadSentinel(iter__, 2626476732)))) {
12898 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ref' (nsCString) member of 'SimpleURIParams'");
12899 0 : return false;
12900 : }
12901 0 : if ((!(Read((&((v__)->query())), msg__, iter__)))) {
12902 0 : FatalError("Error deserializing 'query' (nsCString) member of 'SimpleURIParams'");
12903 0 : return false;
12904 : }
12905 : // Sentinel = 'query'
12906 0 : if ((!((msg__)->ReadSentinel(iter__, 4249802777)))) {
12907 0 : mozilla::ipc::SentinelReadError("Error deserializing 'query' (nsCString) member of 'SimpleURIParams'");
12908 0 : return false;
12909 : }
12910 0 : if ((!(Read((&((v__)->isMutable())), msg__, iter__)))) {
12911 0 : FatalError("Error deserializing 'isMutable' (bool) member of 'SimpleURIParams'");
12912 0 : return false;
12913 : }
12914 : // Sentinel = 'isMutable'
12915 0 : if ((!((msg__)->ReadSentinel(iter__, 3552466783)))) {
12916 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isMutable' (bool) member of 'SimpleURIParams'");
12917 0 : return false;
12918 : }
12919 0 : return true;
12920 : }
12921 :
12922 0 : auto PContentParent::Write(
12923 : const IconURIParams& v__,
12924 : Message* msg__) -> void
12925 : {
12926 0 : Write((v__).uri(), msg__);
12927 : // Sentinel = 'uri'
12928 0 : (msg__)->WriteSentinel(1453210605);
12929 0 : Write((v__).size(), msg__);
12930 : // Sentinel = 'size'
12931 0 : (msg__)->WriteSentinel(931048223);
12932 0 : Write((v__).contentType(), msg__);
12933 : // Sentinel = 'contentType'
12934 0 : (msg__)->WriteSentinel(2092571716);
12935 0 : Write((v__).fileName(), msg__);
12936 : // Sentinel = 'fileName'
12937 0 : (msg__)->WriteSentinel(3833449039);
12938 0 : Write((v__).stockIcon(), msg__);
12939 : // Sentinel = 'stockIcon'
12940 0 : (msg__)->WriteSentinel(3601770784);
12941 0 : Write((v__).iconSize(), msg__);
12942 : // Sentinel = 'iconSize'
12943 0 : (msg__)->WriteSentinel(2585310920);
12944 0 : Write((v__).iconState(), msg__);
12945 : // Sentinel = 'iconState'
12946 0 : (msg__)->WriteSentinel(3444306207);
12947 0 : }
12948 :
12949 0 : auto PContentParent::Read(
12950 : IconURIParams* v__,
12951 : const Message* msg__,
12952 : PickleIterator* iter__) -> bool
12953 : {
12954 0 : if ((!(Read((&((v__)->uri())), msg__, iter__)))) {
12955 0 : FatalError("Error deserializing 'uri' (OptionalURIParams) member of 'IconURIParams'");
12956 0 : return false;
12957 : }
12958 : // Sentinel = 'uri'
12959 0 : if ((!((msg__)->ReadSentinel(iter__, 1453210605)))) {
12960 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uri' (OptionalURIParams) member of 'IconURIParams'");
12961 0 : return false;
12962 : }
12963 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
12964 0 : FatalError("Error deserializing 'size' (uint32_t) member of 'IconURIParams'");
12965 0 : return false;
12966 : }
12967 : // Sentinel = 'size'
12968 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
12969 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (uint32_t) member of 'IconURIParams'");
12970 0 : return false;
12971 : }
12972 0 : if ((!(Read((&((v__)->contentType())), msg__, iter__)))) {
12973 0 : FatalError("Error deserializing 'contentType' (nsCString) member of 'IconURIParams'");
12974 0 : return false;
12975 : }
12976 : // Sentinel = 'contentType'
12977 0 : if ((!((msg__)->ReadSentinel(iter__, 2092571716)))) {
12978 0 : mozilla::ipc::SentinelReadError("Error deserializing 'contentType' (nsCString) member of 'IconURIParams'");
12979 0 : return false;
12980 : }
12981 0 : if ((!(Read((&((v__)->fileName())), msg__, iter__)))) {
12982 0 : FatalError("Error deserializing 'fileName' (nsCString) member of 'IconURIParams'");
12983 0 : return false;
12984 : }
12985 : // Sentinel = 'fileName'
12986 0 : if ((!((msg__)->ReadSentinel(iter__, 3833449039)))) {
12987 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileName' (nsCString) member of 'IconURIParams'");
12988 0 : return false;
12989 : }
12990 0 : if ((!(Read((&((v__)->stockIcon())), msg__, iter__)))) {
12991 0 : FatalError("Error deserializing 'stockIcon' (nsCString) member of 'IconURIParams'");
12992 0 : return false;
12993 : }
12994 : // Sentinel = 'stockIcon'
12995 0 : if ((!((msg__)->ReadSentinel(iter__, 3601770784)))) {
12996 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stockIcon' (nsCString) member of 'IconURIParams'");
12997 0 : return false;
12998 : }
12999 0 : if ((!(Read((&((v__)->iconSize())), msg__, iter__)))) {
13000 0 : FatalError("Error deserializing 'iconSize' (int32_t) member of 'IconURIParams'");
13001 0 : return false;
13002 : }
13003 : // Sentinel = 'iconSize'
13004 0 : if ((!((msg__)->ReadSentinel(iter__, 2585310920)))) {
13005 0 : mozilla::ipc::SentinelReadError("Error deserializing 'iconSize' (int32_t) member of 'IconURIParams'");
13006 0 : return false;
13007 : }
13008 0 : if ((!(Read((&((v__)->iconState())), msg__, iter__)))) {
13009 0 : FatalError("Error deserializing 'iconState' (int32_t) member of 'IconURIParams'");
13010 0 : return false;
13011 : }
13012 : // Sentinel = 'iconState'
13013 0 : if ((!((msg__)->ReadSentinel(iter__, 3444306207)))) {
13014 0 : mozilla::ipc::SentinelReadError("Error deserializing 'iconState' (int32_t) member of 'IconURIParams'");
13015 0 : return false;
13016 : }
13017 0 : return true;
13018 : }
13019 :
13020 2 : auto PContentParent::Write(
13021 : const nsTArray<ServiceWorkerRegistrationData>& v__,
13022 : Message* msg__) -> void
13023 : {
13024 2 : uint32_t length = (v__).Length();
13025 2 : Write(length, msg__);
13026 : // Sentinel = ('length', 'ServiceWorkerRegistrationData[]')
13027 2 : (msg__)->WriteSentinel(1178369384);
13028 :
13029 2 : for (auto& elem : v__) {
13030 0 : Write(elem, msg__);
13031 : // Sentinel = 'ServiceWorkerRegistrationData[]'
13032 0 : (msg__)->WriteSentinel(442549775);
13033 : }
13034 2 : }
13035 :
13036 0 : auto PContentParent::Read(
13037 : nsTArray<ServiceWorkerRegistrationData>* v__,
13038 : const Message* msg__,
13039 : PickleIterator* iter__) -> bool
13040 : {
13041 0 : nsTArray<ServiceWorkerRegistrationData> fa;
13042 : uint32_t length;
13043 0 : if ((!(Read((&(length)), msg__, iter__)))) {
13044 0 : mozilla::ipc::ArrayLengthReadError("ServiceWorkerRegistrationData[]");
13045 0 : return false;
13046 : }
13047 : // Sentinel = ('length', 'ServiceWorkerRegistrationData[]')
13048 0 : if ((!((msg__)->ReadSentinel(iter__, 1178369384)))) {
13049 0 : mozilla::ipc::SentinelReadError("ServiceWorkerRegistrationData[]");
13050 0 : return false;
13051 : }
13052 :
13053 0 : ServiceWorkerRegistrationData* elems = (fa).AppendElements(length);
13054 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
13055 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
13056 0 : FatalError("Error deserializing 'ServiceWorkerRegistrationData[i]'");
13057 0 : return false;
13058 : }
13059 : // Sentinel = 'ServiceWorkerRegistrationData[]'
13060 0 : if ((!((msg__)->ReadSentinel(iter__, 442549775)))) {
13061 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ServiceWorkerRegistrationData[i]'");
13062 0 : return false;
13063 : }
13064 : }
13065 0 : (v__)->SwapElements(fa);
13066 0 : return true;
13067 : }
13068 :
13069 2 : auto PContentParent::Write(
13070 : const DomainPolicyClone& v__,
13071 : Message* msg__) -> void
13072 : {
13073 2 : Write((v__).active(), msg__);
13074 : // Sentinel = 'active'
13075 2 : (msg__)->WriteSentinel(984072408);
13076 2 : Write((v__).blacklist(), msg__);
13077 : // Sentinel = 'blacklist'
13078 2 : (msg__)->WriteSentinel(2995637072);
13079 2 : Write((v__).whitelist(), msg__);
13080 : // Sentinel = 'whitelist'
13081 2 : (msg__)->WriteSentinel(3731637258);
13082 2 : Write((v__).superBlacklist(), msg__);
13083 : // Sentinel = 'superBlacklist'
13084 2 : (msg__)->WriteSentinel(2338774596);
13085 2 : Write((v__).superWhitelist(), msg__);
13086 : // Sentinel = 'superWhitelist'
13087 2 : (msg__)->WriteSentinel(1572700762);
13088 2 : }
13089 :
13090 0 : auto PContentParent::Read(
13091 : DomainPolicyClone* v__,
13092 : const Message* msg__,
13093 : PickleIterator* iter__) -> bool
13094 : {
13095 0 : if ((!(Read((&((v__)->active())), msg__, iter__)))) {
13096 0 : FatalError("Error deserializing 'active' (bool) member of 'DomainPolicyClone'");
13097 0 : return false;
13098 : }
13099 : // Sentinel = 'active'
13100 0 : if ((!((msg__)->ReadSentinel(iter__, 984072408)))) {
13101 0 : mozilla::ipc::SentinelReadError("Error deserializing 'active' (bool) member of 'DomainPolicyClone'");
13102 0 : return false;
13103 : }
13104 0 : if ((!(Read((&((v__)->blacklist())), msg__, iter__)))) {
13105 0 : FatalError("Error deserializing 'blacklist' (URIParams[]) member of 'DomainPolicyClone'");
13106 0 : return false;
13107 : }
13108 : // Sentinel = 'blacklist'
13109 0 : if ((!((msg__)->ReadSentinel(iter__, 2995637072)))) {
13110 0 : mozilla::ipc::SentinelReadError("Error deserializing 'blacklist' (URIParams[]) member of 'DomainPolicyClone'");
13111 0 : return false;
13112 : }
13113 0 : if ((!(Read((&((v__)->whitelist())), msg__, iter__)))) {
13114 0 : FatalError("Error deserializing 'whitelist' (URIParams[]) member of 'DomainPolicyClone'");
13115 0 : return false;
13116 : }
13117 : // Sentinel = 'whitelist'
13118 0 : if ((!((msg__)->ReadSentinel(iter__, 3731637258)))) {
13119 0 : mozilla::ipc::SentinelReadError("Error deserializing 'whitelist' (URIParams[]) member of 'DomainPolicyClone'");
13120 0 : return false;
13121 : }
13122 0 : if ((!(Read((&((v__)->superBlacklist())), msg__, iter__)))) {
13123 0 : FatalError("Error deserializing 'superBlacklist' (URIParams[]) member of 'DomainPolicyClone'");
13124 0 : return false;
13125 : }
13126 : // Sentinel = 'superBlacklist'
13127 0 : if ((!((msg__)->ReadSentinel(iter__, 2338774596)))) {
13128 0 : mozilla::ipc::SentinelReadError("Error deserializing 'superBlacklist' (URIParams[]) member of 'DomainPolicyClone'");
13129 0 : return false;
13130 : }
13131 0 : if ((!(Read((&((v__)->superWhitelist())), msg__, iter__)))) {
13132 0 : FatalError("Error deserializing 'superWhitelist' (URIParams[]) member of 'DomainPolicyClone'");
13133 0 : return false;
13134 : }
13135 : // Sentinel = 'superWhitelist'
13136 0 : if ((!((msg__)->ReadSentinel(iter__, 1572700762)))) {
13137 0 : mozilla::ipc::SentinelReadError("Error deserializing 'superWhitelist' (URIParams[]) member of 'DomainPolicyClone'");
13138 0 : return false;
13139 : }
13140 0 : return true;
13141 : }
13142 :
13143 0 : auto PContentParent::Write(
13144 : const PPSMContentDownloaderParent* v__,
13145 : Message* msg__,
13146 : bool nullable__) -> void
13147 : {
13148 : int32_t id;
13149 0 : if ((!(v__))) {
13150 0 : if ((!(nullable__))) {
13151 0 : FatalError("NULL actor value passed to non-nullable param");
13152 : }
13153 0 : id = 0;
13154 : }
13155 : else {
13156 0 : id = (v__)->Id();
13157 0 : if ((1) == (id)) {
13158 0 : FatalError("actor has been |delete|d");
13159 : }
13160 : }
13161 :
13162 0 : Write(id, msg__);
13163 0 : }
13164 :
13165 0 : auto PContentParent::Read(
13166 : PPSMContentDownloaderParent** v__,
13167 : const Message* msg__,
13168 : PickleIterator* iter__,
13169 : bool nullable__) -> bool
13170 : {
13171 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPSMContentDownloader", PPSMContentDownloaderMsgStart);
13172 0 : if ((actor).isNothing()) {
13173 0 : return false;
13174 : }
13175 :
13176 0 : (*(v__)) = static_cast<PPSMContentDownloaderParent*>((actor).value());
13177 0 : return true;
13178 : }
13179 :
13180 0 : auto PContentParent::Write(
13181 : const CpowEntry& v__,
13182 : Message* msg__) -> void
13183 : {
13184 0 : Write((v__).name(), msg__);
13185 : // Sentinel = 'name'
13186 0 : (msg__)->WriteSentinel(15034981);
13187 0 : Write((v__).value(), msg__);
13188 : // Sentinel = 'value'
13189 0 : (msg__)->WriteSentinel(3456818542);
13190 0 : }
13191 :
13192 0 : auto PContentParent::Read(
13193 : CpowEntry* v__,
13194 : const Message* msg__,
13195 : PickleIterator* iter__) -> bool
13196 : {
13197 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
13198 0 : FatalError("Error deserializing 'name' (nsString) member of 'CpowEntry'");
13199 0 : return false;
13200 : }
13201 : // Sentinel = 'name'
13202 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
13203 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsString) member of 'CpowEntry'");
13204 0 : return false;
13205 : }
13206 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
13207 0 : FatalError("Error deserializing 'value' (JSVariant) member of 'CpowEntry'");
13208 0 : return false;
13209 : }
13210 : // Sentinel = 'value'
13211 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
13212 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (JSVariant) member of 'CpowEntry'");
13213 0 : return false;
13214 : }
13215 0 : return true;
13216 : }
13217 :
13218 0 : auto PContentParent::Write(
13219 : const BufferedInputStreamParams& v__,
13220 : Message* msg__) -> void
13221 : {
13222 0 : Write((v__).optionalStream(), msg__);
13223 : // Sentinel = 'optionalStream'
13224 0 : (msg__)->WriteSentinel(1003718562);
13225 0 : Write((v__).bufferSize(), msg__);
13226 : // Sentinel = 'bufferSize'
13227 0 : (msg__)->WriteSentinel(3444538779);
13228 0 : }
13229 :
13230 0 : auto PContentParent::Read(
13231 : BufferedInputStreamParams* v__,
13232 : const Message* msg__,
13233 : PickleIterator* iter__) -> bool
13234 : {
13235 0 : if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
13236 0 : FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
13237 0 : return false;
13238 : }
13239 : // Sentinel = 'optionalStream'
13240 0 : if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
13241 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
13242 0 : return false;
13243 : }
13244 0 : if ((!(Read((&((v__)->bufferSize())), msg__, iter__)))) {
13245 0 : FatalError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
13246 0 : return false;
13247 : }
13248 : // Sentinel = 'bufferSize'
13249 0 : if ((!((msg__)->ReadSentinel(iter__, 3444538779)))) {
13250 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
13251 0 : return false;
13252 : }
13253 0 : return true;
13254 : }
13255 :
13256 14 : auto PContentParent::Write(
13257 : const GfxVarValue& v__,
13258 : Message* msg__) -> void
13259 : {
13260 : typedef GfxVarValue type__;
13261 14 : Write(int((v__).type()), msg__);
13262 : // Sentinel = 'GfxVarValue'
13263 14 : (msg__)->WriteSentinel(3909046808);
13264 :
13265 14 : switch ((v__).type()) {
13266 : case type__::TBackendType:
13267 : {
13268 4 : Write((v__).get_BackendType(), msg__);
13269 : // Sentinel = 'TBackendType'
13270 4 : (msg__)->WriteSentinel(1181965224);
13271 4 : return;
13272 : }
13273 : case type__::Tbool:
13274 : {
13275 4 : Write((v__).get_bool(), msg__);
13276 : // Sentinel = 'Tbool'
13277 4 : (msg__)->WriteSentinel(1958350201);
13278 4 : return;
13279 : }
13280 : case type__::TgfxImageFormat:
13281 : {
13282 0 : Write((v__).get_gfxImageFormat(), msg__);
13283 : // Sentinel = 'TgfxImageFormat'
13284 0 : (msg__)->WriteSentinel(1633523770);
13285 0 : return;
13286 : }
13287 : case type__::TIntSize:
13288 : {
13289 2 : Write((v__).get_IntSize(), msg__);
13290 : // Sentinel = 'TIntSize'
13291 2 : (msg__)->WriteSentinel(1631526060);
13292 2 : return;
13293 : }
13294 : case type__::TnsCString:
13295 : {
13296 2 : Write((v__).get_nsCString(), msg__);
13297 : // Sentinel = 'TnsCString'
13298 2 : (msg__)->WriteSentinel(2427411293);
13299 2 : return;
13300 : }
13301 : case type__::Tint32_t:
13302 : {
13303 2 : Write((v__).get_int32_t(), msg__);
13304 : // Sentinel = 'Tint32_t'
13305 2 : (msg__)->WriteSentinel(4219052577);
13306 2 : return;
13307 : }
13308 : default:
13309 : {
13310 0 : FatalError("unknown union type");
13311 0 : return;
13312 : }
13313 : }
13314 : }
13315 :
13316 0 : auto PContentParent::Read(
13317 : GfxVarValue* v__,
13318 : const Message* msg__,
13319 : PickleIterator* iter__) -> bool
13320 : {
13321 : typedef GfxVarValue type__;
13322 : int type;
13323 0 : if ((!(Read((&(type)), msg__, iter__)))) {
13324 0 : mozilla::ipc::UnionTypeReadError("GfxVarValue");
13325 0 : return false;
13326 : }
13327 : // Sentinel = 'GfxVarValue'
13328 0 : if ((!((msg__)->ReadSentinel(iter__, 3909046808)))) {
13329 0 : mozilla::ipc::SentinelReadError("GfxVarValue");
13330 0 : return false;
13331 : }
13332 :
13333 0 : switch (type) {
13334 : case type__::TBackendType:
13335 : {
13336 0 : BackendType tmp = BackendType();
13337 0 : (*(v__)) = tmp;
13338 0 : if ((!(Read((&((v__)->get_BackendType())), msg__, iter__)))) {
13339 0 : FatalError("Error deserializing Union type");
13340 0 : return false;
13341 : }
13342 : // Sentinel = 'TBackendType'
13343 0 : if ((!((msg__)->ReadSentinel(iter__, 1181965224)))) {
13344 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
13345 0 : return false;
13346 : }
13347 0 : return true;
13348 : }
13349 : case type__::Tbool:
13350 : {
13351 0 : bool tmp = bool();
13352 0 : (*(v__)) = tmp;
13353 0 : if ((!(Read((&((v__)->get_bool())), msg__, iter__)))) {
13354 0 : FatalError("Error deserializing Union type");
13355 0 : return false;
13356 : }
13357 : // Sentinel = 'Tbool'
13358 0 : if ((!((msg__)->ReadSentinel(iter__, 1958350201)))) {
13359 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
13360 0 : return false;
13361 : }
13362 0 : return true;
13363 : }
13364 : case type__::TgfxImageFormat:
13365 : {
13366 0 : gfxImageFormat tmp = gfxImageFormat();
13367 0 : (*(v__)) = tmp;
13368 0 : if ((!(Read((&((v__)->get_gfxImageFormat())), msg__, iter__)))) {
13369 0 : FatalError("Error deserializing Union type");
13370 0 : return false;
13371 : }
13372 : // Sentinel = 'TgfxImageFormat'
13373 0 : if ((!((msg__)->ReadSentinel(iter__, 1633523770)))) {
13374 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
13375 0 : return false;
13376 : }
13377 0 : return true;
13378 : }
13379 : case type__::TIntSize:
13380 : {
13381 0 : IntSize tmp = IntSize();
13382 0 : (*(v__)) = tmp;
13383 0 : if ((!(Read((&((v__)->get_IntSize())), msg__, iter__)))) {
13384 0 : FatalError("Error deserializing Union type");
13385 0 : return false;
13386 : }
13387 : // Sentinel = 'TIntSize'
13388 0 : if ((!((msg__)->ReadSentinel(iter__, 1631526060)))) {
13389 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
13390 0 : return false;
13391 : }
13392 0 : return true;
13393 : }
13394 : case type__::TnsCString:
13395 : {
13396 0 : nsCString tmp = nsCString();
13397 0 : (*(v__)) = tmp;
13398 0 : if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
13399 0 : FatalError("Error deserializing Union type");
13400 0 : return false;
13401 : }
13402 : // Sentinel = 'TnsCString'
13403 0 : if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
13404 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
13405 0 : return false;
13406 : }
13407 0 : return true;
13408 : }
13409 : case type__::Tint32_t:
13410 : {
13411 0 : int32_t tmp = int32_t();
13412 0 : (*(v__)) = tmp;
13413 0 : if ((!(Read((&((v__)->get_int32_t())), msg__, iter__)))) {
13414 0 : FatalError("Error deserializing Union type");
13415 0 : return false;
13416 : }
13417 : // Sentinel = 'Tint32_t'
13418 0 : if ((!((msg__)->ReadSentinel(iter__, 4219052577)))) {
13419 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
13420 0 : return false;
13421 : }
13422 0 : return true;
13423 : }
13424 : default:
13425 : {
13426 0 : FatalError("unknown union type");
13427 0 : return false;
13428 : }
13429 : }
13430 : }
13431 :
13432 0 : auto PContentParent::Write(
13433 : const HeaderEntry& v__,
13434 : Message* msg__) -> void
13435 : {
13436 0 : Write((v__).name(), msg__);
13437 : // Sentinel = 'name'
13438 0 : (msg__)->WriteSentinel(15034981);
13439 0 : Write((v__).value(), msg__);
13440 : // Sentinel = 'value'
13441 0 : (msg__)->WriteSentinel(3456818542);
13442 0 : }
13443 :
13444 0 : auto PContentParent::Read(
13445 : HeaderEntry* v__,
13446 : const Message* msg__,
13447 : PickleIterator* iter__) -> bool
13448 : {
13449 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
13450 0 : FatalError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
13451 0 : return false;
13452 : }
13453 : // Sentinel = 'name'
13454 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
13455 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
13456 0 : return false;
13457 : }
13458 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
13459 0 : FatalError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
13460 0 : return false;
13461 : }
13462 : // Sentinel = 'value'
13463 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
13464 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
13465 0 : return false;
13466 : }
13467 0 : return true;
13468 : }
13469 :
13470 0 : auto PContentParent::Write(
13471 : const nsTArray<IPCDataTransfer>& v__,
13472 : Message* msg__) -> void
13473 : {
13474 0 : uint32_t length = (v__).Length();
13475 0 : Write(length, msg__);
13476 : // Sentinel = ('length', 'IPCDataTransfer[]')
13477 0 : (msg__)->WriteSentinel(343982219);
13478 :
13479 0 : for (auto& elem : v__) {
13480 0 : Write(elem, msg__);
13481 : // Sentinel = 'IPCDataTransfer[]'
13482 0 : (msg__)->WriteSentinel(992987342);
13483 : }
13484 0 : }
13485 :
13486 0 : auto PContentParent::Read(
13487 : nsTArray<IPCDataTransfer>* v__,
13488 : const Message* msg__,
13489 : PickleIterator* iter__) -> bool
13490 : {
13491 0 : nsTArray<IPCDataTransfer> fa;
13492 : uint32_t length;
13493 0 : if ((!(Read((&(length)), msg__, iter__)))) {
13494 0 : mozilla::ipc::ArrayLengthReadError("IPCDataTransfer[]");
13495 0 : return false;
13496 : }
13497 : // Sentinel = ('length', 'IPCDataTransfer[]')
13498 0 : if ((!((msg__)->ReadSentinel(iter__, 343982219)))) {
13499 0 : mozilla::ipc::SentinelReadError("IPCDataTransfer[]");
13500 0 : return false;
13501 : }
13502 :
13503 0 : IPCDataTransfer* elems = (fa).AppendElements(length);
13504 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
13505 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
13506 0 : FatalError("Error deserializing 'IPCDataTransfer[i]'");
13507 0 : return false;
13508 : }
13509 : // Sentinel = 'IPCDataTransfer[]'
13510 0 : if ((!((msg__)->ReadSentinel(iter__, 992987342)))) {
13511 0 : mozilla::ipc::SentinelReadError("Error deserializing 'IPCDataTransfer[i]'");
13512 0 : return false;
13513 : }
13514 : }
13515 0 : (v__)->SwapElements(fa);
13516 0 : return true;
13517 : }
13518 :
13519 0 : auto PContentParent::Write(
13520 : const PChildToParentStreamParent* v__,
13521 : Message* msg__,
13522 : bool nullable__) -> void
13523 : {
13524 : int32_t id;
13525 0 : if ((!(v__))) {
13526 0 : if ((!(nullable__))) {
13527 0 : FatalError("NULL actor value passed to non-nullable param");
13528 : }
13529 0 : id = 0;
13530 : }
13531 : else {
13532 0 : id = (v__)->Id();
13533 0 : if ((1) == (id)) {
13534 0 : FatalError("actor has been |delete|d");
13535 : }
13536 : }
13537 :
13538 0 : Write(id, msg__);
13539 0 : }
13540 :
13541 0 : auto PContentParent::Read(
13542 : PChildToParentStreamParent** v__,
13543 : const Message* msg__,
13544 : PickleIterator* iter__,
13545 : bool nullable__) -> bool
13546 : {
13547 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PChildToParentStream", PChildToParentStreamMsgStart);
13548 0 : if ((actor).isNothing()) {
13549 0 : return false;
13550 : }
13551 :
13552 0 : (*(v__)) = static_cast<PChildToParentStreamParent*>((actor).value());
13553 0 : return true;
13554 : }
13555 :
13556 2 : auto PContentParent::Write(
13557 : const ScreenDetails& v__,
13558 : Message* msg__) -> void
13559 : {
13560 2 : Write((v__).rect(), msg__);
13561 : // Sentinel = 'rect'
13562 2 : (msg__)->WriteSentinel(438776542);
13563 2 : Write((v__).rectDisplayPix(), msg__);
13564 : // Sentinel = 'rectDisplayPix'
13565 2 : (msg__)->WriteSentinel(1164175153);
13566 2 : Write((v__).availRect(), msg__);
13567 : // Sentinel = 'availRect'
13568 2 : (msg__)->WriteSentinel(196888594);
13569 2 : Write((v__).availRectDisplayPix(), msg__);
13570 : // Sentinel = 'availRectDisplayPix'
13571 2 : (msg__)->WriteSentinel(1293515837);
13572 2 : Write((v__).pixelDepth(), msg__);
13573 : // Sentinel = 'pixelDepth'
13574 2 : (msg__)->WriteSentinel(4055642053);
13575 2 : Write((v__).colorDepth(), msg__);
13576 : // Sentinel = 'colorDepth'
13577 2 : (msg__)->WriteSentinel(4107545146);
13578 2 : Write((v__).contentsScaleFactor(), msg__);
13579 : // Sentinel = 'contentsScaleFactor'
13580 2 : (msg__)->WriteSentinel(1302021034);
13581 2 : Write((v__).defaultCSSScaleFactor(), msg__);
13582 : // Sentinel = 'defaultCSSScaleFactor'
13583 2 : (msg__)->WriteSentinel(2534063914);
13584 2 : }
13585 :
13586 0 : auto PContentParent::Read(
13587 : ScreenDetails* v__,
13588 : const Message* msg__,
13589 : PickleIterator* iter__) -> bool
13590 : {
13591 0 : if ((!(Read((&((v__)->rect())), msg__, iter__)))) {
13592 0 : FatalError("Error deserializing 'rect' (LayoutDeviceIntRect) member of 'ScreenDetails'");
13593 0 : return false;
13594 : }
13595 : // Sentinel = 'rect'
13596 0 : if ((!((msg__)->ReadSentinel(iter__, 438776542)))) {
13597 0 : mozilla::ipc::SentinelReadError("Error deserializing 'rect' (LayoutDeviceIntRect) member of 'ScreenDetails'");
13598 0 : return false;
13599 : }
13600 0 : if ((!(Read((&((v__)->rectDisplayPix())), msg__, iter__)))) {
13601 0 : FatalError("Error deserializing 'rectDisplayPix' (DesktopIntRect) member of 'ScreenDetails'");
13602 0 : return false;
13603 : }
13604 : // Sentinel = 'rectDisplayPix'
13605 0 : if ((!((msg__)->ReadSentinel(iter__, 1164175153)))) {
13606 0 : mozilla::ipc::SentinelReadError("Error deserializing 'rectDisplayPix' (DesktopIntRect) member of 'ScreenDetails'");
13607 0 : return false;
13608 : }
13609 0 : if ((!(Read((&((v__)->availRect())), msg__, iter__)))) {
13610 0 : FatalError("Error deserializing 'availRect' (LayoutDeviceIntRect) member of 'ScreenDetails'");
13611 0 : return false;
13612 : }
13613 : // Sentinel = 'availRect'
13614 0 : if ((!((msg__)->ReadSentinel(iter__, 196888594)))) {
13615 0 : mozilla::ipc::SentinelReadError("Error deserializing 'availRect' (LayoutDeviceIntRect) member of 'ScreenDetails'");
13616 0 : return false;
13617 : }
13618 0 : if ((!(Read((&((v__)->availRectDisplayPix())), msg__, iter__)))) {
13619 0 : FatalError("Error deserializing 'availRectDisplayPix' (DesktopIntRect) member of 'ScreenDetails'");
13620 0 : return false;
13621 : }
13622 : // Sentinel = 'availRectDisplayPix'
13623 0 : if ((!((msg__)->ReadSentinel(iter__, 1293515837)))) {
13624 0 : mozilla::ipc::SentinelReadError("Error deserializing 'availRectDisplayPix' (DesktopIntRect) member of 'ScreenDetails'");
13625 0 : return false;
13626 : }
13627 0 : if ((!(Read((&((v__)->pixelDepth())), msg__, iter__)))) {
13628 0 : FatalError("Error deserializing 'pixelDepth' (int32_t) member of 'ScreenDetails'");
13629 0 : return false;
13630 : }
13631 : // Sentinel = 'pixelDepth'
13632 0 : if ((!((msg__)->ReadSentinel(iter__, 4055642053)))) {
13633 0 : mozilla::ipc::SentinelReadError("Error deserializing 'pixelDepth' (int32_t) member of 'ScreenDetails'");
13634 0 : return false;
13635 : }
13636 0 : if ((!(Read((&((v__)->colorDepth())), msg__, iter__)))) {
13637 0 : FatalError("Error deserializing 'colorDepth' (int32_t) member of 'ScreenDetails'");
13638 0 : return false;
13639 : }
13640 : // Sentinel = 'colorDepth'
13641 0 : if ((!((msg__)->ReadSentinel(iter__, 4107545146)))) {
13642 0 : mozilla::ipc::SentinelReadError("Error deserializing 'colorDepth' (int32_t) member of 'ScreenDetails'");
13643 0 : return false;
13644 : }
13645 0 : if ((!(Read((&((v__)->contentsScaleFactor())), msg__, iter__)))) {
13646 0 : FatalError("Error deserializing 'contentsScaleFactor' (DesktopToLayoutDeviceScale) member of 'ScreenDetails'");
13647 0 : return false;
13648 : }
13649 : // Sentinel = 'contentsScaleFactor'
13650 0 : if ((!((msg__)->ReadSentinel(iter__, 1302021034)))) {
13651 0 : mozilla::ipc::SentinelReadError("Error deserializing 'contentsScaleFactor' (DesktopToLayoutDeviceScale) member of 'ScreenDetails'");
13652 0 : return false;
13653 : }
13654 0 : if ((!(Read((&((v__)->defaultCSSScaleFactor())), msg__, iter__)))) {
13655 0 : FatalError("Error deserializing 'defaultCSSScaleFactor' (CSSToLayoutDeviceScale) member of 'ScreenDetails'");
13656 0 : return false;
13657 : }
13658 : // Sentinel = 'defaultCSSScaleFactor'
13659 0 : if ((!((msg__)->ReadSentinel(iter__, 2534063914)))) {
13660 0 : mozilla::ipc::SentinelReadError("Error deserializing 'defaultCSSScaleFactor' (CSSToLayoutDeviceScale) member of 'ScreenDetails'");
13661 0 : return false;
13662 : }
13663 0 : return true;
13664 : }
13665 :
13666 2 : auto PContentParent::Write(
13667 : const OptionalURIParams& v__,
13668 : Message* msg__) -> void
13669 : {
13670 : typedef OptionalURIParams type__;
13671 2 : Write(int((v__).type()), msg__);
13672 : // Sentinel = 'OptionalURIParams'
13673 2 : (msg__)->WriteSentinel(1977079525);
13674 :
13675 2 : switch ((v__).type()) {
13676 : case type__::Tvoid_t:
13677 : {
13678 2 : Write((v__).get_void_t(), msg__);
13679 : // Sentinel = 'Tvoid_t'
13680 2 : (msg__)->WriteSentinel(3041273328);
13681 2 : return;
13682 : }
13683 : case type__::TURIParams:
13684 : {
13685 0 : Write((v__).get_URIParams(), msg__);
13686 : // Sentinel = 'TURIParams'
13687 0 : (msg__)->WriteSentinel(1132652062);
13688 0 : return;
13689 : }
13690 : default:
13691 : {
13692 0 : FatalError("unknown union type");
13693 0 : return;
13694 : }
13695 : }
13696 : }
13697 :
13698 1 : auto PContentParent::Read(
13699 : OptionalURIParams* v__,
13700 : const Message* msg__,
13701 : PickleIterator* iter__) -> bool
13702 : {
13703 : typedef OptionalURIParams type__;
13704 : int type;
13705 1 : if ((!(Read((&(type)), msg__, iter__)))) {
13706 0 : mozilla::ipc::UnionTypeReadError("OptionalURIParams");
13707 0 : return false;
13708 : }
13709 : // Sentinel = 'OptionalURIParams'
13710 1 : if ((!((msg__)->ReadSentinel(iter__, 1977079525)))) {
13711 0 : mozilla::ipc::SentinelReadError("OptionalURIParams");
13712 0 : return false;
13713 : }
13714 :
13715 1 : switch (type) {
13716 : case type__::Tvoid_t:
13717 : {
13718 : void_t tmp = void_t();
13719 1 : (*(v__)) = tmp;
13720 1 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
13721 0 : FatalError("Error deserializing Union type");
13722 0 : return false;
13723 : }
13724 : // Sentinel = 'Tvoid_t'
13725 1 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
13726 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
13727 0 : return false;
13728 : }
13729 1 : return true;
13730 : }
13731 : case type__::TURIParams:
13732 : {
13733 0 : URIParams tmp = URIParams();
13734 0 : (*(v__)) = tmp;
13735 0 : if ((!(Read((&((v__)->get_URIParams())), msg__, iter__)))) {
13736 0 : FatalError("Error deserializing Union type");
13737 0 : return false;
13738 : }
13739 : // Sentinel = 'TURIParams'
13740 0 : if ((!((msg__)->ReadSentinel(iter__, 1132652062)))) {
13741 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
13742 0 : return false;
13743 : }
13744 0 : return true;
13745 : }
13746 : default:
13747 : {
13748 0 : FatalError("unknown union type");
13749 0 : return false;
13750 : }
13751 : }
13752 : }
13753 :
13754 2 : auto PContentParent::Write(
13755 : const DevicePrefs& v__,
13756 : Message* msg__) -> void
13757 : {
13758 2 : Write((v__).hwCompositing(), msg__);
13759 : // Sentinel = 'hwCompositing'
13760 2 : (msg__)->WriteSentinel(3916929800);
13761 2 : Write((v__).d3d11Compositing(), msg__);
13762 : // Sentinel = 'd3d11Compositing'
13763 2 : (msg__)->WriteSentinel(2460470117);
13764 2 : Write((v__).oglCompositing(), msg__);
13765 : // Sentinel = 'oglCompositing'
13766 2 : (msg__)->WriteSentinel(2769823004);
13767 2 : Write((v__).advancedLayers(), msg__);
13768 : // Sentinel = 'advancedLayers'
13769 2 : (msg__)->WriteSentinel(2376436002);
13770 2 : Write((v__).useD2D1(), msg__);
13771 : // Sentinel = 'useD2D1'
13772 2 : (msg__)->WriteSentinel(3693357445);
13773 2 : }
13774 :
13775 0 : auto PContentParent::Read(
13776 : DevicePrefs* v__,
13777 : const Message* msg__,
13778 : PickleIterator* iter__) -> bool
13779 : {
13780 0 : if ((!(Read((&((v__)->hwCompositing())), msg__, iter__)))) {
13781 0 : FatalError("Error deserializing 'hwCompositing' (FeatureStatus) member of 'DevicePrefs'");
13782 0 : return false;
13783 : }
13784 : // Sentinel = 'hwCompositing'
13785 0 : if ((!((msg__)->ReadSentinel(iter__, 3916929800)))) {
13786 0 : mozilla::ipc::SentinelReadError("Error deserializing 'hwCompositing' (FeatureStatus) member of 'DevicePrefs'");
13787 0 : return false;
13788 : }
13789 0 : if ((!(Read((&((v__)->d3d11Compositing())), msg__, iter__)))) {
13790 0 : FatalError("Error deserializing 'd3d11Compositing' (FeatureStatus) member of 'DevicePrefs'");
13791 0 : return false;
13792 : }
13793 : // Sentinel = 'd3d11Compositing'
13794 0 : if ((!((msg__)->ReadSentinel(iter__, 2460470117)))) {
13795 0 : mozilla::ipc::SentinelReadError("Error deserializing 'd3d11Compositing' (FeatureStatus) member of 'DevicePrefs'");
13796 0 : return false;
13797 : }
13798 0 : if ((!(Read((&((v__)->oglCompositing())), msg__, iter__)))) {
13799 0 : FatalError("Error deserializing 'oglCompositing' (FeatureStatus) member of 'DevicePrefs'");
13800 0 : return false;
13801 : }
13802 : // Sentinel = 'oglCompositing'
13803 0 : if ((!((msg__)->ReadSentinel(iter__, 2769823004)))) {
13804 0 : mozilla::ipc::SentinelReadError("Error deserializing 'oglCompositing' (FeatureStatus) member of 'DevicePrefs'");
13805 0 : return false;
13806 : }
13807 0 : if ((!(Read((&((v__)->advancedLayers())), msg__, iter__)))) {
13808 0 : FatalError("Error deserializing 'advancedLayers' (FeatureStatus) member of 'DevicePrefs'");
13809 0 : return false;
13810 : }
13811 : // Sentinel = 'advancedLayers'
13812 0 : if ((!((msg__)->ReadSentinel(iter__, 2376436002)))) {
13813 0 : mozilla::ipc::SentinelReadError("Error deserializing 'advancedLayers' (FeatureStatus) member of 'DevicePrefs'");
13814 0 : return false;
13815 : }
13816 0 : if ((!(Read((&((v__)->useD2D1())), msg__, iter__)))) {
13817 0 : FatalError("Error deserializing 'useD2D1' (FeatureStatus) member of 'DevicePrefs'");
13818 0 : return false;
13819 : }
13820 : // Sentinel = 'useD2D1'
13821 0 : if ((!((msg__)->ReadSentinel(iter__, 3693357445)))) {
13822 0 : mozilla::ipc::SentinelReadError("Error deserializing 'useD2D1' (FeatureStatus) member of 'DevicePrefs'");
13823 0 : return false;
13824 : }
13825 0 : return true;
13826 : }
13827 :
13828 0 : auto PContentParent::Write(
13829 : const OptionalInputStreamParams& v__,
13830 : Message* msg__) -> void
13831 : {
13832 : typedef OptionalInputStreamParams type__;
13833 0 : Write(int((v__).type()), msg__);
13834 : // Sentinel = 'OptionalInputStreamParams'
13835 0 : (msg__)->WriteSentinel(1355174443);
13836 :
13837 0 : switch ((v__).type()) {
13838 : case type__::Tvoid_t:
13839 : {
13840 0 : Write((v__).get_void_t(), msg__);
13841 : // Sentinel = 'Tvoid_t'
13842 0 : (msg__)->WriteSentinel(3041273328);
13843 0 : return;
13844 : }
13845 : case type__::TInputStreamParams:
13846 : {
13847 0 : Write((v__).get_InputStreamParams(), msg__);
13848 : // Sentinel = 'TInputStreamParams'
13849 0 : (msg__)->WriteSentinel(55652096);
13850 0 : return;
13851 : }
13852 : default:
13853 : {
13854 0 : FatalError("unknown union type");
13855 0 : return;
13856 : }
13857 : }
13858 : }
13859 :
13860 0 : auto PContentParent::Read(
13861 : OptionalInputStreamParams* v__,
13862 : const Message* msg__,
13863 : PickleIterator* iter__) -> bool
13864 : {
13865 : typedef OptionalInputStreamParams type__;
13866 : int type;
13867 0 : if ((!(Read((&(type)), msg__, iter__)))) {
13868 0 : mozilla::ipc::UnionTypeReadError("OptionalInputStreamParams");
13869 0 : return false;
13870 : }
13871 : // Sentinel = 'OptionalInputStreamParams'
13872 0 : if ((!((msg__)->ReadSentinel(iter__, 1355174443)))) {
13873 0 : mozilla::ipc::SentinelReadError("OptionalInputStreamParams");
13874 0 : return false;
13875 : }
13876 :
13877 0 : switch (type) {
13878 : case type__::Tvoid_t:
13879 : {
13880 : void_t tmp = void_t();
13881 0 : (*(v__)) = tmp;
13882 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
13883 0 : FatalError("Error deserializing Union type");
13884 0 : return false;
13885 : }
13886 : // Sentinel = 'Tvoid_t'
13887 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
13888 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
13889 0 : return false;
13890 : }
13891 0 : return true;
13892 : }
13893 : case type__::TInputStreamParams:
13894 : {
13895 0 : InputStreamParams tmp = InputStreamParams();
13896 0 : (*(v__)) = tmp;
13897 0 : if ((!(Read((&((v__)->get_InputStreamParams())), msg__, iter__)))) {
13898 0 : FatalError("Error deserializing Union type");
13899 0 : return false;
13900 : }
13901 : // Sentinel = 'TInputStreamParams'
13902 0 : if ((!((msg__)->ReadSentinel(iter__, 55652096)))) {
13903 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
13904 0 : return false;
13905 : }
13906 0 : return true;
13907 : }
13908 : default:
13909 : {
13910 0 : FatalError("unknown union type");
13911 0 : return false;
13912 : }
13913 : }
13914 : }
13915 :
13916 0 : auto PContentParent::Write(
13917 : const JSVariant& v__,
13918 : Message* msg__) -> void
13919 : {
13920 : typedef JSVariant type__;
13921 0 : Write(int((v__).type()), msg__);
13922 : // Sentinel = 'JSVariant'
13923 0 : (msg__)->WriteSentinel(4205756945);
13924 :
13925 0 : switch ((v__).type()) {
13926 : case type__::TUndefinedVariant:
13927 : {
13928 0 : Write((v__).get_UndefinedVariant(), msg__);
13929 : // Sentinel = 'TUndefinedVariant'
13930 0 : (msg__)->WriteSentinel(309349602);
13931 0 : return;
13932 : }
13933 : case type__::TNullVariant:
13934 : {
13935 0 : Write((v__).get_NullVariant(), msg__);
13936 : // Sentinel = 'TNullVariant'
13937 0 : (msg__)->WriteSentinel(3606183426);
13938 0 : return;
13939 : }
13940 : case type__::TObjectVariant:
13941 : {
13942 0 : Write((v__).get_ObjectVariant(), msg__);
13943 : // Sentinel = 'TObjectVariant'
13944 0 : (msg__)->WriteSentinel(78811130);
13945 0 : return;
13946 : }
13947 : case type__::TSymbolVariant:
13948 : {
13949 0 : Write((v__).get_SymbolVariant(), msg__);
13950 : // Sentinel = 'TSymbolVariant'
13951 0 : (msg__)->WriteSentinel(549729725);
13952 0 : return;
13953 : }
13954 : case type__::TnsString:
13955 : {
13956 0 : Write((v__).get_nsString(), msg__);
13957 : // Sentinel = 'TnsString'
13958 0 : (msg__)->WriteSentinel(2161603959);
13959 0 : return;
13960 : }
13961 : case type__::Tdouble:
13962 : {
13963 0 : Write((v__).get_double(), msg__);
13964 : // Sentinel = 'Tdouble'
13965 0 : (msg__)->WriteSentinel(3456933244);
13966 0 : return;
13967 : }
13968 : case type__::Tbool:
13969 : {
13970 0 : Write((v__).get_bool(), msg__);
13971 : // Sentinel = 'Tbool'
13972 0 : (msg__)->WriteSentinel(1958350201);
13973 0 : return;
13974 : }
13975 : case type__::TJSIID:
13976 : {
13977 0 : Write((v__).get_JSIID(), msg__);
13978 : // Sentinel = 'TJSIID'
13979 0 : (msg__)->WriteSentinel(3312553047);
13980 0 : return;
13981 : }
13982 : default:
13983 : {
13984 0 : FatalError("unknown union type");
13985 0 : return;
13986 : }
13987 : }
13988 : }
13989 :
13990 0 : auto PContentParent::Read(
13991 : JSVariant* v__,
13992 : const Message* msg__,
13993 : PickleIterator* iter__) -> bool
13994 : {
13995 : typedef JSVariant type__;
13996 : int type;
13997 0 : if ((!(Read((&(type)), msg__, iter__)))) {
13998 0 : mozilla::ipc::UnionTypeReadError("JSVariant");
13999 0 : return false;
14000 : }
14001 : // Sentinel = 'JSVariant'
14002 0 : if ((!((msg__)->ReadSentinel(iter__, 4205756945)))) {
14003 0 : mozilla::ipc::SentinelReadError("JSVariant");
14004 0 : return false;
14005 : }
14006 :
14007 0 : switch (type) {
14008 : case type__::TUndefinedVariant:
14009 : {
14010 0 : UndefinedVariant tmp = UndefinedVariant();
14011 0 : (*(v__)) = tmp;
14012 0 : if ((!(Read((&((v__)->get_UndefinedVariant())), msg__, iter__)))) {
14013 0 : FatalError("Error deserializing Union type");
14014 0 : return false;
14015 : }
14016 : // Sentinel = 'TUndefinedVariant'
14017 0 : if ((!((msg__)->ReadSentinel(iter__, 309349602)))) {
14018 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14019 0 : return false;
14020 : }
14021 0 : return true;
14022 : }
14023 : case type__::TNullVariant:
14024 : {
14025 0 : NullVariant tmp = NullVariant();
14026 0 : (*(v__)) = tmp;
14027 0 : if ((!(Read((&((v__)->get_NullVariant())), msg__, iter__)))) {
14028 0 : FatalError("Error deserializing Union type");
14029 0 : return false;
14030 : }
14031 : // Sentinel = 'TNullVariant'
14032 0 : if ((!((msg__)->ReadSentinel(iter__, 3606183426)))) {
14033 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14034 0 : return false;
14035 : }
14036 0 : return true;
14037 : }
14038 : case type__::TObjectVariant:
14039 : {
14040 0 : ObjectVariant tmp = ObjectVariant();
14041 0 : (*(v__)) = tmp;
14042 0 : if ((!(Read((&((v__)->get_ObjectVariant())), msg__, iter__)))) {
14043 0 : FatalError("Error deserializing Union type");
14044 0 : return false;
14045 : }
14046 : // Sentinel = 'TObjectVariant'
14047 0 : if ((!((msg__)->ReadSentinel(iter__, 78811130)))) {
14048 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14049 0 : return false;
14050 : }
14051 0 : return true;
14052 : }
14053 : case type__::TSymbolVariant:
14054 : {
14055 0 : SymbolVariant tmp = SymbolVariant();
14056 0 : (*(v__)) = tmp;
14057 0 : if ((!(Read((&((v__)->get_SymbolVariant())), msg__, iter__)))) {
14058 0 : FatalError("Error deserializing Union type");
14059 0 : return false;
14060 : }
14061 : // Sentinel = 'TSymbolVariant'
14062 0 : if ((!((msg__)->ReadSentinel(iter__, 549729725)))) {
14063 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14064 0 : return false;
14065 : }
14066 0 : return true;
14067 : }
14068 : case type__::TnsString:
14069 : {
14070 0 : nsString tmp = nsString();
14071 0 : (*(v__)) = tmp;
14072 0 : if ((!(Read((&((v__)->get_nsString())), msg__, iter__)))) {
14073 0 : FatalError("Error deserializing Union type");
14074 0 : return false;
14075 : }
14076 : // Sentinel = 'TnsString'
14077 0 : if ((!((msg__)->ReadSentinel(iter__, 2161603959)))) {
14078 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14079 0 : return false;
14080 : }
14081 0 : return true;
14082 : }
14083 : case type__::Tdouble:
14084 : {
14085 0 : double tmp = double();
14086 0 : (*(v__)) = tmp;
14087 0 : if ((!(Read((&((v__)->get_double())), msg__, iter__)))) {
14088 0 : FatalError("Error deserializing Union type");
14089 0 : return false;
14090 : }
14091 : // Sentinel = 'Tdouble'
14092 0 : if ((!((msg__)->ReadSentinel(iter__, 3456933244)))) {
14093 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14094 0 : return false;
14095 : }
14096 0 : return true;
14097 : }
14098 : case type__::Tbool:
14099 : {
14100 0 : bool tmp = bool();
14101 0 : (*(v__)) = tmp;
14102 0 : if ((!(Read((&((v__)->get_bool())), msg__, iter__)))) {
14103 0 : FatalError("Error deserializing Union type");
14104 0 : return false;
14105 : }
14106 : // Sentinel = 'Tbool'
14107 0 : if ((!((msg__)->ReadSentinel(iter__, 1958350201)))) {
14108 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14109 0 : return false;
14110 : }
14111 0 : return true;
14112 : }
14113 : case type__::TJSIID:
14114 : {
14115 0 : JSIID tmp = JSIID();
14116 0 : (*(v__)) = tmp;
14117 0 : if ((!(Read((&((v__)->get_JSIID())), msg__, iter__)))) {
14118 0 : FatalError("Error deserializing Union type");
14119 0 : return false;
14120 : }
14121 : // Sentinel = 'TJSIID'
14122 0 : if ((!((msg__)->ReadSentinel(iter__, 3312553047)))) {
14123 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14124 0 : return false;
14125 : }
14126 0 : return true;
14127 : }
14128 : default:
14129 : {
14130 0 : FatalError("unknown union type");
14131 0 : return false;
14132 : }
14133 : }
14134 : }
14135 :
14136 0 : auto PContentParent::Write(
14137 : const IPCRemoteStream& v__,
14138 : Message* msg__) -> void
14139 : {
14140 0 : Write((v__).delayedStart(), msg__);
14141 : // Sentinel = 'delayedStart'
14142 0 : (msg__)->WriteSentinel(1491822294);
14143 0 : Write((v__).stream(), msg__);
14144 : // Sentinel = 'stream'
14145 0 : (msg__)->WriteSentinel(4152748422);
14146 0 : }
14147 :
14148 0 : auto PContentParent::Read(
14149 : IPCRemoteStream* v__,
14150 : const Message* msg__,
14151 : PickleIterator* iter__) -> bool
14152 : {
14153 0 : if ((!(Read((&((v__)->delayedStart())), msg__, iter__)))) {
14154 0 : FatalError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
14155 0 : return false;
14156 : }
14157 : // Sentinel = 'delayedStart'
14158 0 : if ((!((msg__)->ReadSentinel(iter__, 1491822294)))) {
14159 0 : mozilla::ipc::SentinelReadError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
14160 0 : return false;
14161 : }
14162 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
14163 0 : FatalError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
14164 0 : return false;
14165 : }
14166 : // Sentinel = 'stream'
14167 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
14168 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
14169 0 : return false;
14170 : }
14171 0 : return true;
14172 : }
14173 :
14174 3 : auto PContentParent::Write(
14175 : const URIParams& v__,
14176 : Message* msg__) -> void
14177 : {
14178 : typedef URIParams type__;
14179 3 : Write(int((v__).type()), msg__);
14180 : // Sentinel = 'URIParams'
14181 3 : (msg__)->WriteSentinel(1039516337);
14182 :
14183 3 : switch ((v__).type()) {
14184 : case type__::TSimpleURIParams:
14185 : {
14186 0 : Write((v__).get_SimpleURIParams(), msg__);
14187 : // Sentinel = 'TSimpleURIParams'
14188 0 : (msg__)->WriteSentinel(4028607586);
14189 0 : return;
14190 : }
14191 : case type__::TStandardURLParams:
14192 : {
14193 3 : Write((v__).get_StandardURLParams(), msg__);
14194 : // Sentinel = 'TStandardURLParams'
14195 3 : (msg__)->WriteSentinel(248174578);
14196 3 : return;
14197 : }
14198 : case type__::TJARURIParams:
14199 : {
14200 0 : Write((v__).get_JARURIParams(), msg__);
14201 : // Sentinel = 'TJARURIParams'
14202 0 : (msg__)->WriteSentinel(3404434792);
14203 0 : return;
14204 : }
14205 : case type__::TIconURIParams:
14206 : {
14207 0 : Write((v__).get_IconURIParams(), msg__);
14208 : // Sentinel = 'TIconURIParams'
14209 0 : (msg__)->WriteSentinel(1824279023);
14210 0 : return;
14211 : }
14212 : case type__::TNullPrincipalURIParams:
14213 : {
14214 0 : Write((v__).get_NullPrincipalURIParams(), msg__);
14215 : // Sentinel = 'TNullPrincipalURIParams'
14216 0 : (msg__)->WriteSentinel(216801182);
14217 0 : return;
14218 : }
14219 : case type__::TJSURIParams:
14220 : {
14221 0 : Write((v__).get_JSURIParams(), msg__);
14222 : // Sentinel = 'TJSURIParams'
14223 0 : (msg__)->WriteSentinel(32222119);
14224 0 : return;
14225 : }
14226 : case type__::TSimpleNestedURIParams:
14227 : {
14228 0 : Write((v__).get_SimpleNestedURIParams(), msg__);
14229 : // Sentinel = 'TSimpleNestedURIParams'
14230 0 : (msg__)->WriteSentinel(3192238307);
14231 0 : return;
14232 : }
14233 : case type__::THostObjectURIParams:
14234 : {
14235 0 : Write((v__).get_HostObjectURIParams(), msg__);
14236 : // Sentinel = 'THostObjectURIParams'
14237 0 : (msg__)->WriteSentinel(1307971301);
14238 0 : return;
14239 : }
14240 : default:
14241 : {
14242 0 : FatalError("unknown union type");
14243 0 : return;
14244 : }
14245 : }
14246 : }
14247 :
14248 2 : auto PContentParent::Read(
14249 : URIParams* v__,
14250 : const Message* msg__,
14251 : PickleIterator* iter__) -> bool
14252 : {
14253 : typedef URIParams type__;
14254 : int type;
14255 2 : if ((!(Read((&(type)), msg__, iter__)))) {
14256 0 : mozilla::ipc::UnionTypeReadError("URIParams");
14257 0 : return false;
14258 : }
14259 : // Sentinel = 'URIParams'
14260 2 : if ((!((msg__)->ReadSentinel(iter__, 1039516337)))) {
14261 0 : mozilla::ipc::SentinelReadError("URIParams");
14262 0 : return false;
14263 : }
14264 :
14265 2 : switch (type) {
14266 : case type__::TSimpleURIParams:
14267 : {
14268 0 : SimpleURIParams tmp = SimpleURIParams();
14269 0 : (*(v__)) = tmp;
14270 0 : if ((!(Read((&((v__)->get_SimpleURIParams())), msg__, iter__)))) {
14271 0 : FatalError("Error deserializing Union type");
14272 0 : return false;
14273 : }
14274 : // Sentinel = 'TSimpleURIParams'
14275 0 : if ((!((msg__)->ReadSentinel(iter__, 4028607586)))) {
14276 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14277 0 : return false;
14278 : }
14279 0 : return true;
14280 : }
14281 : case type__::TStandardURLParams:
14282 : {
14283 4 : StandardURLParams tmp = StandardURLParams();
14284 2 : (*(v__)) = tmp;
14285 2 : if ((!(Read((&((v__)->get_StandardURLParams())), msg__, iter__)))) {
14286 0 : FatalError("Error deserializing Union type");
14287 0 : return false;
14288 : }
14289 : // Sentinel = 'TStandardURLParams'
14290 2 : if ((!((msg__)->ReadSentinel(iter__, 248174578)))) {
14291 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14292 0 : return false;
14293 : }
14294 2 : return true;
14295 : }
14296 : case type__::TJARURIParams:
14297 : {
14298 0 : JARURIParams tmp = JARURIParams();
14299 0 : (*(v__)) = tmp;
14300 0 : if ((!(Read((&((v__)->get_JARURIParams())), msg__, iter__)))) {
14301 0 : FatalError("Error deserializing Union type");
14302 0 : return false;
14303 : }
14304 : // Sentinel = 'TJARURIParams'
14305 0 : if ((!((msg__)->ReadSentinel(iter__, 3404434792)))) {
14306 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14307 0 : return false;
14308 : }
14309 0 : return true;
14310 : }
14311 : case type__::TIconURIParams:
14312 : {
14313 0 : IconURIParams tmp = IconURIParams();
14314 0 : (*(v__)) = tmp;
14315 0 : if ((!(Read((&((v__)->get_IconURIParams())), msg__, iter__)))) {
14316 0 : FatalError("Error deserializing Union type");
14317 0 : return false;
14318 : }
14319 : // Sentinel = 'TIconURIParams'
14320 0 : if ((!((msg__)->ReadSentinel(iter__, 1824279023)))) {
14321 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14322 0 : return false;
14323 : }
14324 0 : return true;
14325 : }
14326 : case type__::TNullPrincipalURIParams:
14327 : {
14328 0 : NullPrincipalURIParams tmp = NullPrincipalURIParams();
14329 0 : (*(v__)) = tmp;
14330 0 : if ((!(Read((&((v__)->get_NullPrincipalURIParams())), msg__, iter__)))) {
14331 0 : FatalError("Error deserializing Union type");
14332 0 : return false;
14333 : }
14334 : // Sentinel = 'TNullPrincipalURIParams'
14335 0 : if ((!((msg__)->ReadSentinel(iter__, 216801182)))) {
14336 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14337 0 : return false;
14338 : }
14339 0 : return true;
14340 : }
14341 : case type__::TJSURIParams:
14342 : {
14343 0 : JSURIParams tmp = JSURIParams();
14344 0 : (*(v__)) = tmp;
14345 0 : if ((!(Read((&((v__)->get_JSURIParams())), msg__, iter__)))) {
14346 0 : FatalError("Error deserializing Union type");
14347 0 : return false;
14348 : }
14349 : // Sentinel = 'TJSURIParams'
14350 0 : if ((!((msg__)->ReadSentinel(iter__, 32222119)))) {
14351 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14352 0 : return false;
14353 : }
14354 0 : return true;
14355 : }
14356 : case type__::TSimpleNestedURIParams:
14357 : {
14358 0 : SimpleNestedURIParams tmp = SimpleNestedURIParams();
14359 0 : (*(v__)) = tmp;
14360 0 : if ((!(Read((&((v__)->get_SimpleNestedURIParams())), msg__, iter__)))) {
14361 0 : FatalError("Error deserializing Union type");
14362 0 : return false;
14363 : }
14364 : // Sentinel = 'TSimpleNestedURIParams'
14365 0 : if ((!((msg__)->ReadSentinel(iter__, 3192238307)))) {
14366 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14367 0 : return false;
14368 : }
14369 0 : return true;
14370 : }
14371 : case type__::THostObjectURIParams:
14372 : {
14373 0 : HostObjectURIParams tmp = HostObjectURIParams();
14374 0 : (*(v__)) = tmp;
14375 0 : if ((!(Read((&((v__)->get_HostObjectURIParams())), msg__, iter__)))) {
14376 0 : FatalError("Error deserializing Union type");
14377 0 : return false;
14378 : }
14379 : // Sentinel = 'THostObjectURIParams'
14380 0 : if ((!((msg__)->ReadSentinel(iter__, 1307971301)))) {
14381 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14382 0 : return false;
14383 : }
14384 0 : return true;
14385 : }
14386 : default:
14387 : {
14388 0 : FatalError("unknown union type");
14389 0 : return false;
14390 : }
14391 : }
14392 : }
14393 :
14394 0 : auto PContentParent::Write(
14395 : const PRenderFrameParent* v__,
14396 : Message* msg__,
14397 : bool nullable__) -> void
14398 : {
14399 : int32_t id;
14400 0 : if ((!(v__))) {
14401 0 : if ((!(nullable__))) {
14402 0 : FatalError("NULL actor value passed to non-nullable param");
14403 : }
14404 0 : id = 0;
14405 : }
14406 : else {
14407 0 : id = (v__)->Id();
14408 0 : if ((1) == (id)) {
14409 0 : FatalError("actor has been |delete|d");
14410 : }
14411 : }
14412 :
14413 0 : Write(id, msg__);
14414 0 : }
14415 :
14416 0 : auto PContentParent::Read(
14417 : PRenderFrameParent** v__,
14418 : const Message* msg__,
14419 : PickleIterator* iter__,
14420 : bool nullable__) -> bool
14421 : {
14422 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PRenderFrame", PRenderFrameMsgStart);
14423 0 : if ((actor).isNothing()) {
14424 0 : return false;
14425 : }
14426 :
14427 0 : (*(v__)) = static_cast<PRenderFrameParent*>((actor).value());
14428 0 : return true;
14429 : }
14430 :
14431 0 : auto PContentParent::Write(
14432 : const FileInputStreamParams& v__,
14433 : Message* msg__) -> void
14434 : {
14435 0 : Write((v__).fileDescriptorIndex(), msg__);
14436 : // Sentinel = 'fileDescriptorIndex'
14437 0 : (msg__)->WriteSentinel(587329112);
14438 0 : Write((v__).behaviorFlags(), msg__);
14439 : // Sentinel = 'behaviorFlags'
14440 0 : (msg__)->WriteSentinel(2404401962);
14441 0 : Write((v__).ioFlags(), msg__);
14442 : // Sentinel = 'ioFlags'
14443 0 : (msg__)->WriteSentinel(1483009730);
14444 0 : }
14445 :
14446 0 : auto PContentParent::Read(
14447 : FileInputStreamParams* v__,
14448 : const Message* msg__,
14449 : PickleIterator* iter__) -> bool
14450 : {
14451 0 : if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
14452 0 : FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
14453 0 : return false;
14454 : }
14455 : // Sentinel = 'fileDescriptorIndex'
14456 0 : if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
14457 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
14458 0 : return false;
14459 : }
14460 0 : if ((!(Read((&((v__)->behaviorFlags())), msg__, iter__)))) {
14461 0 : FatalError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
14462 0 : return false;
14463 : }
14464 : // Sentinel = 'behaviorFlags'
14465 0 : if ((!((msg__)->ReadSentinel(iter__, 2404401962)))) {
14466 0 : mozilla::ipc::SentinelReadError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
14467 0 : return false;
14468 : }
14469 0 : if ((!(Read((&((v__)->ioFlags())), msg__, iter__)))) {
14470 0 : FatalError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
14471 0 : return false;
14472 : }
14473 : // Sentinel = 'ioFlags'
14474 0 : if ((!((msg__)->ReadSentinel(iter__, 1483009730)))) {
14475 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
14476 0 : return false;
14477 : }
14478 0 : return true;
14479 : }
14480 :
14481 2 : auto PContentParent::Write(
14482 : const nsTArray<PrefSetting>& v__,
14483 : Message* msg__) -> void
14484 : {
14485 2 : uint32_t length = (v__).Length();
14486 2 : Write(length, msg__);
14487 : // Sentinel = ('length', 'PrefSetting[]')
14488 2 : (msg__)->WriteSentinel(1352260649);
14489 :
14490 6067 : for (auto& elem : v__) {
14491 6065 : Write(elem, msg__);
14492 : // Sentinel = 'PrefSetting[]'
14493 6065 : (msg__)->WriteSentinel(2913183128);
14494 : }
14495 2 : }
14496 :
14497 0 : auto PContentParent::Read(
14498 : nsTArray<PrefSetting>* v__,
14499 : const Message* msg__,
14500 : PickleIterator* iter__) -> bool
14501 : {
14502 0 : nsTArray<PrefSetting> fa;
14503 : uint32_t length;
14504 0 : if ((!(Read((&(length)), msg__, iter__)))) {
14505 0 : mozilla::ipc::ArrayLengthReadError("PrefSetting[]");
14506 0 : return false;
14507 : }
14508 : // Sentinel = ('length', 'PrefSetting[]')
14509 0 : if ((!((msg__)->ReadSentinel(iter__, 1352260649)))) {
14510 0 : mozilla::ipc::SentinelReadError("PrefSetting[]");
14511 0 : return false;
14512 : }
14513 :
14514 0 : PrefSetting* elems = (fa).AppendElements(length);
14515 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
14516 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
14517 0 : FatalError("Error deserializing 'PrefSetting[i]'");
14518 0 : return false;
14519 : }
14520 : // Sentinel = 'PrefSetting[]'
14521 0 : if ((!((msg__)->ReadSentinel(iter__, 2913183128)))) {
14522 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PrefSetting[i]'");
14523 0 : return false;
14524 : }
14525 : }
14526 0 : (v__)->SwapElements(fa);
14527 0 : return true;
14528 : }
14529 :
14530 0 : auto PContentParent::Write(
14531 : const RegisteredSymbol& v__,
14532 : Message* msg__) -> void
14533 : {
14534 0 : Write((v__).key(), msg__);
14535 : // Sentinel = 'key'
14536 0 : (msg__)->WriteSentinel(35142870);
14537 0 : }
14538 :
14539 0 : auto PContentParent::Read(
14540 : RegisteredSymbol* v__,
14541 : const Message* msg__,
14542 : PickleIterator* iter__) -> bool
14543 : {
14544 0 : if ((!(Read((&((v__)->key())), msg__, iter__)))) {
14545 0 : FatalError("Error deserializing 'key' (nsString) member of 'RegisteredSymbol'");
14546 0 : return false;
14547 : }
14548 : // Sentinel = 'key'
14549 0 : if ((!((msg__)->ReadSentinel(iter__, 35142870)))) {
14550 0 : mozilla::ipc::SentinelReadError("Error deserializing 'key' (nsString) member of 'RegisteredSymbol'");
14551 0 : return false;
14552 : }
14553 0 : return true;
14554 : }
14555 :
14556 2 : auto PContentParent::Write(
14557 : const ServiceWorkerConfiguration& v__,
14558 : Message* msg__) -> void
14559 : {
14560 2 : Write((v__).serviceWorkerRegistrations(), msg__);
14561 : // Sentinel = 'serviceWorkerRegistrations'
14562 2 : (msg__)->WriteSentinel(1037133701);
14563 2 : }
14564 :
14565 0 : auto PContentParent::Read(
14566 : ServiceWorkerConfiguration* v__,
14567 : const Message* msg__,
14568 : PickleIterator* iter__) -> bool
14569 : {
14570 0 : if ((!(Read((&((v__)->serviceWorkerRegistrations())), msg__, iter__)))) {
14571 0 : FatalError("Error deserializing 'serviceWorkerRegistrations' (ServiceWorkerRegistrationData[]) member of 'ServiceWorkerConfiguration'");
14572 0 : return false;
14573 : }
14574 : // Sentinel = 'serviceWorkerRegistrations'
14575 0 : if ((!((msg__)->ReadSentinel(iter__, 1037133701)))) {
14576 0 : mozilla::ipc::SentinelReadError("Error deserializing 'serviceWorkerRegistrations' (ServiceWorkerRegistrationData[]) member of 'ServiceWorkerConfiguration'");
14577 0 : return false;
14578 : }
14579 0 : return true;
14580 : }
14581 :
14582 0 : auto PContentParent::Write(
14583 : const PBrowserOrId& v__,
14584 : Message* msg__) -> void
14585 : {
14586 : typedef PBrowserOrId type__;
14587 0 : Write(int((v__).type()), msg__);
14588 : // Sentinel = 'PBrowserOrId'
14589 0 : (msg__)->WriteSentinel(1715137324);
14590 :
14591 0 : switch ((v__).type()) {
14592 : case type__::TPBrowserParent:
14593 : {
14594 0 : Write((v__).get_PBrowserParent(), msg__, true);
14595 : // Sentinel = 'TPBrowserParent'
14596 0 : (msg__)->WriteSentinel(3996262243);
14597 0 : return;
14598 : }
14599 : case type__::TPBrowserChild:
14600 : {
14601 0 : FatalError("wrong side!");
14602 0 : return;
14603 : }
14604 : case type__::TTabId:
14605 : {
14606 0 : Write((v__).get_TabId(), msg__);
14607 : // Sentinel = 'TTabId'
14608 0 : (msg__)->WriteSentinel(1071104628);
14609 0 : return;
14610 : }
14611 : default:
14612 : {
14613 0 : FatalError("unknown union type");
14614 0 : return;
14615 : }
14616 : }
14617 : }
14618 :
14619 0 : auto PContentParent::Read(
14620 : PBrowserOrId* v__,
14621 : const Message* msg__,
14622 : PickleIterator* iter__) -> bool
14623 : {
14624 : typedef PBrowserOrId type__;
14625 : int type;
14626 0 : if ((!(Read((&(type)), msg__, iter__)))) {
14627 0 : mozilla::ipc::UnionTypeReadError("PBrowserOrId");
14628 0 : return false;
14629 : }
14630 : // Sentinel = 'PBrowserOrId'
14631 0 : if ((!((msg__)->ReadSentinel(iter__, 1715137324)))) {
14632 0 : mozilla::ipc::SentinelReadError("PBrowserOrId");
14633 0 : return false;
14634 : }
14635 :
14636 0 : switch (type) {
14637 : case type__::TPBrowserParent:
14638 : {
14639 0 : return false;
14640 : }
14641 : case type__::TPBrowserChild:
14642 : {
14643 0 : PBrowserParent* tmp = nullptr;
14644 0 : (*(v__)) = tmp;
14645 0 : if ((!(Read((&((v__)->get_PBrowserParent())), msg__, iter__, true)))) {
14646 0 : FatalError("Error deserializing Union type");
14647 0 : return false;
14648 : }
14649 : // Sentinel = 'TPBrowserChild'
14650 0 : if ((!((msg__)->ReadSentinel(iter__, 2417584432)))) {
14651 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14652 0 : return false;
14653 : }
14654 0 : return true;
14655 : }
14656 : case type__::TTabId:
14657 : {
14658 0 : TabId tmp = TabId();
14659 0 : (*(v__)) = tmp;
14660 0 : if ((!(Read((&((v__)->get_TabId())), msg__, iter__)))) {
14661 0 : FatalError("Error deserializing Union type");
14662 0 : return false;
14663 : }
14664 : // Sentinel = 'TTabId'
14665 0 : if ((!((msg__)->ReadSentinel(iter__, 1071104628)))) {
14666 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14667 0 : return false;
14668 : }
14669 0 : return true;
14670 : }
14671 : default:
14672 : {
14673 0 : FatalError("unknown union type");
14674 0 : return false;
14675 : }
14676 : }
14677 : }
14678 :
14679 2 : auto PContentParent::Write(
14680 : const PScriptCacheParent* v__,
14681 : Message* msg__,
14682 : bool nullable__) -> void
14683 : {
14684 : int32_t id;
14685 2 : if ((!(v__))) {
14686 0 : if ((!(nullable__))) {
14687 0 : FatalError("NULL actor value passed to non-nullable param");
14688 : }
14689 0 : id = 0;
14690 : }
14691 : else {
14692 2 : id = (v__)->Id();
14693 2 : if ((1) == (id)) {
14694 0 : FatalError("actor has been |delete|d");
14695 : }
14696 : }
14697 :
14698 2 : Write(id, msg__);
14699 2 : }
14700 :
14701 0 : auto PContentParent::Read(
14702 : PScriptCacheParent** v__,
14703 : const Message* msg__,
14704 : PickleIterator* iter__,
14705 : bool nullable__) -> bool
14706 : {
14707 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PScriptCache", PScriptCacheMsgStart);
14708 0 : if ((actor).isNothing()) {
14709 0 : return false;
14710 : }
14711 :
14712 0 : (*(v__)) = static_cast<PScriptCacheParent*>((actor).value());
14713 0 : return true;
14714 : }
14715 :
14716 0 : auto PContentParent::Write(
14717 : const ObjectVariant& v__,
14718 : Message* msg__) -> void
14719 : {
14720 : typedef ObjectVariant type__;
14721 0 : Write(int((v__).type()), msg__);
14722 : // Sentinel = 'ObjectVariant'
14723 0 : (msg__)->WriteSentinel(3403328885);
14724 :
14725 0 : switch ((v__).type()) {
14726 : case type__::TLocalObject:
14727 : {
14728 0 : Write((v__).get_LocalObject(), msg__);
14729 : // Sentinel = 'TLocalObject'
14730 0 : (msg__)->WriteSentinel(2788453632);
14731 0 : return;
14732 : }
14733 : case type__::TRemoteObject:
14734 : {
14735 0 : Write((v__).get_RemoteObject(), msg__);
14736 : // Sentinel = 'TRemoteObject'
14737 0 : (msg__)->WriteSentinel(807590902);
14738 0 : return;
14739 : }
14740 : default:
14741 : {
14742 0 : FatalError("unknown union type");
14743 0 : return;
14744 : }
14745 : }
14746 : }
14747 :
14748 0 : auto PContentParent::Read(
14749 : ObjectVariant* v__,
14750 : const Message* msg__,
14751 : PickleIterator* iter__) -> bool
14752 : {
14753 : typedef ObjectVariant type__;
14754 : int type;
14755 0 : if ((!(Read((&(type)), msg__, iter__)))) {
14756 0 : mozilla::ipc::UnionTypeReadError("ObjectVariant");
14757 0 : return false;
14758 : }
14759 : // Sentinel = 'ObjectVariant'
14760 0 : if ((!((msg__)->ReadSentinel(iter__, 3403328885)))) {
14761 0 : mozilla::ipc::SentinelReadError("ObjectVariant");
14762 0 : return false;
14763 : }
14764 :
14765 0 : switch (type) {
14766 : case type__::TLocalObject:
14767 : {
14768 0 : LocalObject tmp = LocalObject();
14769 0 : (*(v__)) = tmp;
14770 0 : if ((!(Read((&((v__)->get_LocalObject())), msg__, iter__)))) {
14771 0 : FatalError("Error deserializing Union type");
14772 0 : return false;
14773 : }
14774 : // Sentinel = 'TLocalObject'
14775 0 : if ((!((msg__)->ReadSentinel(iter__, 2788453632)))) {
14776 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14777 0 : return false;
14778 : }
14779 0 : return true;
14780 : }
14781 : case type__::TRemoteObject:
14782 : {
14783 0 : RemoteObject tmp = RemoteObject();
14784 0 : (*(v__)) = tmp;
14785 0 : if ((!(Read((&((v__)->get_RemoteObject())), msg__, iter__)))) {
14786 0 : FatalError("Error deserializing Union type");
14787 0 : return false;
14788 : }
14789 : // Sentinel = 'TRemoteObject'
14790 0 : if ((!((msg__)->ReadSentinel(iter__, 807590902)))) {
14791 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14792 0 : return false;
14793 : }
14794 0 : return true;
14795 : }
14796 : default:
14797 : {
14798 0 : FatalError("unknown union type");
14799 0 : return false;
14800 : }
14801 : }
14802 : }
14803 :
14804 0 : auto PContentParent::Write(
14805 : const IPCBlobStream& v__,
14806 : Message* msg__) -> void
14807 : {
14808 : typedef IPCBlobStream type__;
14809 0 : Write(int((v__).type()), msg__);
14810 : // Sentinel = 'IPCBlobStream'
14811 0 : (msg__)->WriteSentinel(2926762354);
14812 :
14813 0 : switch ((v__).type()) {
14814 : case type__::TPIPCBlobInputStreamParent:
14815 : {
14816 0 : Write((v__).get_PIPCBlobInputStreamParent(), msg__, false);
14817 : // Sentinel = 'TPIPCBlobInputStreamParent'
14818 0 : (msg__)->WriteSentinel(2944059743);
14819 0 : return;
14820 : }
14821 : case type__::TPIPCBlobInputStreamChild:
14822 : {
14823 0 : FatalError("wrong side!");
14824 0 : return;
14825 : }
14826 : case type__::TIPCStream:
14827 : {
14828 0 : Write((v__).get_IPCStream(), msg__);
14829 : // Sentinel = 'TIPCStream'
14830 0 : (msg__)->WriteSentinel(40701900);
14831 0 : return;
14832 : }
14833 : default:
14834 : {
14835 0 : FatalError("unknown union type");
14836 0 : return;
14837 : }
14838 : }
14839 : }
14840 :
14841 0 : auto PContentParent::Read(
14842 : IPCBlobStream* v__,
14843 : const Message* msg__,
14844 : PickleIterator* iter__) -> bool
14845 : {
14846 : typedef IPCBlobStream type__;
14847 : int type;
14848 0 : if ((!(Read((&(type)), msg__, iter__)))) {
14849 0 : mozilla::ipc::UnionTypeReadError("IPCBlobStream");
14850 0 : return false;
14851 : }
14852 : // Sentinel = 'IPCBlobStream'
14853 0 : if ((!((msg__)->ReadSentinel(iter__, 2926762354)))) {
14854 0 : mozilla::ipc::SentinelReadError("IPCBlobStream");
14855 0 : return false;
14856 : }
14857 :
14858 0 : switch (type) {
14859 : case type__::TPIPCBlobInputStreamParent:
14860 : {
14861 0 : return false;
14862 : }
14863 : case type__::TPIPCBlobInputStreamChild:
14864 : {
14865 0 : PIPCBlobInputStreamParent* tmp = nullptr;
14866 0 : (*(v__)) = tmp;
14867 0 : if ((!(Read((&((v__)->get_PIPCBlobInputStreamParent())), msg__, iter__, false)))) {
14868 0 : FatalError("Error deserializing Union type");
14869 0 : return false;
14870 : }
14871 : // Sentinel = 'TPIPCBlobInputStreamChild'
14872 0 : if ((!((msg__)->ReadSentinel(iter__, 3349556844)))) {
14873 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14874 0 : return false;
14875 : }
14876 0 : return true;
14877 : }
14878 : case type__::TIPCStream:
14879 : {
14880 0 : IPCStream tmp = IPCStream();
14881 0 : (*(v__)) = tmp;
14882 0 : if ((!(Read((&((v__)->get_IPCStream())), msg__, iter__)))) {
14883 0 : FatalError("Error deserializing Union type");
14884 0 : return false;
14885 : }
14886 : // Sentinel = 'TIPCStream'
14887 0 : if ((!((msg__)->ReadSentinel(iter__, 40701900)))) {
14888 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14889 0 : return false;
14890 : }
14891 0 : return true;
14892 : }
14893 : default:
14894 : {
14895 0 : FatalError("unknown union type");
14896 0 : return false;
14897 : }
14898 : }
14899 : }
14900 :
14901 12176 : auto PContentParent::Write(
14902 : const MaybePrefValue& v__,
14903 : Message* msg__) -> void
14904 : {
14905 : typedef MaybePrefValue type__;
14906 12176 : Write(int((v__).type()), msg__);
14907 : // Sentinel = 'MaybePrefValue'
14908 12176 : (msg__)->WriteSentinel(1713533748);
14909 :
14910 12176 : switch ((v__).type()) {
14911 : case type__::TPrefValue:
14912 : {
14913 6273 : Write((v__).get_PrefValue(), msg__);
14914 : // Sentinel = 'TPrefValue'
14915 6273 : (msg__)->WriteSentinel(1238906536);
14916 6273 : return;
14917 : }
14918 : case type__::Tnull_t:
14919 : {
14920 5903 : Write((v__).get_null_t(), msg__);
14921 : // Sentinel = 'Tnull_t'
14922 5903 : (msg__)->WriteSentinel(3731137201);
14923 5903 : return;
14924 : }
14925 : default:
14926 : {
14927 0 : FatalError("unknown union type");
14928 0 : return;
14929 : }
14930 : }
14931 : }
14932 :
14933 0 : auto PContentParent::Read(
14934 : MaybePrefValue* v__,
14935 : const Message* msg__,
14936 : PickleIterator* iter__) -> bool
14937 : {
14938 : typedef MaybePrefValue type__;
14939 : int type;
14940 0 : if ((!(Read((&(type)), msg__, iter__)))) {
14941 0 : mozilla::ipc::UnionTypeReadError("MaybePrefValue");
14942 0 : return false;
14943 : }
14944 : // Sentinel = 'MaybePrefValue'
14945 0 : if ((!((msg__)->ReadSentinel(iter__, 1713533748)))) {
14946 0 : mozilla::ipc::SentinelReadError("MaybePrefValue");
14947 0 : return false;
14948 : }
14949 :
14950 0 : switch (type) {
14951 : case type__::TPrefValue:
14952 : {
14953 0 : PrefValue tmp = PrefValue();
14954 0 : (*(v__)) = tmp;
14955 0 : if ((!(Read((&((v__)->get_PrefValue())), msg__, iter__)))) {
14956 0 : FatalError("Error deserializing Union type");
14957 0 : return false;
14958 : }
14959 : // Sentinel = 'TPrefValue'
14960 0 : if ((!((msg__)->ReadSentinel(iter__, 1238906536)))) {
14961 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14962 0 : return false;
14963 : }
14964 0 : return true;
14965 : }
14966 : case type__::Tnull_t:
14967 : {
14968 : null_t tmp = null_t();
14969 0 : (*(v__)) = tmp;
14970 0 : if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
14971 0 : FatalError("Error deserializing Union type");
14972 0 : return false;
14973 : }
14974 : // Sentinel = 'Tnull_t'
14975 0 : if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
14976 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
14977 0 : return false;
14978 : }
14979 0 : return true;
14980 : }
14981 : default:
14982 : {
14983 0 : FatalError("unknown union type");
14984 0 : return false;
14985 : }
14986 : }
14987 : }
14988 :
14989 0 : auto PContentParent::Write(
14990 : const nsTArray<FileDescriptor>& v__,
14991 : Message* msg__) -> void
14992 : {
14993 0 : uint32_t length = (v__).Length();
14994 0 : Write(length, msg__);
14995 : // Sentinel = ('length', 'FileDescriptor[]')
14996 0 : (msg__)->WriteSentinel(1697726450);
14997 :
14998 0 : for (auto& elem : v__) {
14999 0 : Write(elem, msg__);
15000 : // Sentinel = 'FileDescriptor[]'
15001 0 : (msg__)->WriteSentinel(1630221245);
15002 : }
15003 0 : }
15004 :
15005 0 : auto PContentParent::Read(
15006 : nsTArray<FileDescriptor>* v__,
15007 : const Message* msg__,
15008 : PickleIterator* iter__) -> bool
15009 : {
15010 0 : nsTArray<FileDescriptor> fa;
15011 : uint32_t length;
15012 0 : if ((!(Read((&(length)), msg__, iter__)))) {
15013 0 : mozilla::ipc::ArrayLengthReadError("FileDescriptor[]");
15014 0 : return false;
15015 : }
15016 : // Sentinel = ('length', 'FileDescriptor[]')
15017 0 : if ((!((msg__)->ReadSentinel(iter__, 1697726450)))) {
15018 0 : mozilla::ipc::SentinelReadError("FileDescriptor[]");
15019 0 : return false;
15020 : }
15021 :
15022 0 : FileDescriptor* elems = (fa).AppendElements(length);
15023 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
15024 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
15025 0 : FatalError("Error deserializing 'FileDescriptor[i]'");
15026 0 : return false;
15027 : }
15028 : // Sentinel = 'FileDescriptor[]'
15029 0 : if ((!((msg__)->ReadSentinel(iter__, 1630221245)))) {
15030 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor[i]'");
15031 0 : return false;
15032 : }
15033 : }
15034 0 : (v__)->SwapElements(fa);
15035 0 : return true;
15036 : }
15037 :
15038 0 : auto PContentParent::Write(
15039 : const GetFilesResponseFailure& v__,
15040 : Message* msg__) -> void
15041 : {
15042 0 : Write((v__).errorCode(), msg__);
15043 : // Sentinel = 'errorCode'
15044 0 : (msg__)->WriteSentinel(262143504);
15045 0 : }
15046 :
15047 0 : auto PContentParent::Read(
15048 : GetFilesResponseFailure* v__,
15049 : const Message* msg__,
15050 : PickleIterator* iter__) -> bool
15051 : {
15052 0 : if ((!(Read((&((v__)->errorCode())), msg__, iter__)))) {
15053 0 : FatalError("Error deserializing 'errorCode' (nsresult) member of 'GetFilesResponseFailure'");
15054 0 : return false;
15055 : }
15056 : // Sentinel = 'errorCode'
15057 0 : if ((!((msg__)->ReadSentinel(iter__, 262143504)))) {
15058 0 : mozilla::ipc::SentinelReadError("Error deserializing 'errorCode' (nsresult) member of 'GetFilesResponseFailure'");
15059 0 : return false;
15060 : }
15061 0 : return true;
15062 : }
15063 :
15064 2 : auto PContentParent::Write(
15065 : const nsTArray<CpowEntry>& v__,
15066 : Message* msg__) -> void
15067 : {
15068 2 : uint32_t length = (v__).Length();
15069 2 : Write(length, msg__);
15070 : // Sentinel = ('length', 'CpowEntry[]')
15071 2 : (msg__)->WriteSentinel(2290776287);
15072 :
15073 2 : for (auto& elem : v__) {
15074 0 : Write(elem, msg__);
15075 : // Sentinel = 'CpowEntry[]'
15076 0 : (msg__)->WriteSentinel(2263212074);
15077 : }
15078 2 : }
15079 :
15080 3 : auto PContentParent::Read(
15081 : nsTArray<CpowEntry>* v__,
15082 : const Message* msg__,
15083 : PickleIterator* iter__) -> bool
15084 : {
15085 6 : nsTArray<CpowEntry> fa;
15086 : uint32_t length;
15087 3 : if ((!(Read((&(length)), msg__, iter__)))) {
15088 0 : mozilla::ipc::ArrayLengthReadError("CpowEntry[]");
15089 0 : return false;
15090 : }
15091 : // Sentinel = ('length', 'CpowEntry[]')
15092 3 : if ((!((msg__)->ReadSentinel(iter__, 2290776287)))) {
15093 0 : mozilla::ipc::SentinelReadError("CpowEntry[]");
15094 0 : return false;
15095 : }
15096 :
15097 3 : CpowEntry* elems = (fa).AppendElements(length);
15098 3 : for (uint32_t i = 0; (i) < (length); (++(i))) {
15099 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
15100 0 : FatalError("Error deserializing 'CpowEntry[i]'");
15101 0 : return false;
15102 : }
15103 : // Sentinel = 'CpowEntry[]'
15104 0 : if ((!((msg__)->ReadSentinel(iter__, 2263212074)))) {
15105 0 : mozilla::ipc::SentinelReadError("Error deserializing 'CpowEntry[i]'");
15106 0 : return false;
15107 : }
15108 : }
15109 3 : (v__)->SwapElements(fa);
15110 3 : return true;
15111 : }
15112 :
15113 0 : auto PContentParent::Write(
15114 : const PrincipalInfo& v__,
15115 : Message* msg__) -> void
15116 : {
15117 : typedef PrincipalInfo type__;
15118 0 : Write(int((v__).type()), msg__);
15119 : // Sentinel = 'PrincipalInfo'
15120 0 : (msg__)->WriteSentinel(4194518819);
15121 :
15122 0 : switch ((v__).type()) {
15123 : case type__::TContentPrincipalInfo:
15124 : {
15125 0 : Write((v__).get_ContentPrincipalInfo(), msg__);
15126 : // Sentinel = 'TContentPrincipalInfo'
15127 0 : (msg__)->WriteSentinel(3677342258);
15128 0 : return;
15129 : }
15130 : case type__::TSystemPrincipalInfo:
15131 : {
15132 0 : Write((v__).get_SystemPrincipalInfo(), msg__);
15133 : // Sentinel = 'TSystemPrincipalInfo'
15134 0 : (msg__)->WriteSentinel(3590603679);
15135 0 : return;
15136 : }
15137 : case type__::TNullPrincipalInfo:
15138 : {
15139 0 : Write((v__).get_NullPrincipalInfo(), msg__);
15140 : // Sentinel = 'TNullPrincipalInfo'
15141 0 : (msg__)->WriteSentinel(3477774965);
15142 0 : return;
15143 : }
15144 : case type__::TExpandedPrincipalInfo:
15145 : {
15146 0 : Write((v__).get_ExpandedPrincipalInfo(), msg__);
15147 : // Sentinel = 'TExpandedPrincipalInfo'
15148 0 : (msg__)->WriteSentinel(589324917);
15149 0 : return;
15150 : }
15151 : default:
15152 : {
15153 0 : FatalError("unknown union type");
15154 0 : return;
15155 : }
15156 : }
15157 : }
15158 :
15159 0 : auto PContentParent::Read(
15160 : PrincipalInfo* v__,
15161 : const Message* msg__,
15162 : PickleIterator* iter__) -> bool
15163 : {
15164 : typedef PrincipalInfo type__;
15165 : int type;
15166 0 : if ((!(Read((&(type)), msg__, iter__)))) {
15167 0 : mozilla::ipc::UnionTypeReadError("PrincipalInfo");
15168 0 : return false;
15169 : }
15170 : // Sentinel = 'PrincipalInfo'
15171 0 : if ((!((msg__)->ReadSentinel(iter__, 4194518819)))) {
15172 0 : mozilla::ipc::SentinelReadError("PrincipalInfo");
15173 0 : return false;
15174 : }
15175 :
15176 0 : switch (type) {
15177 : case type__::TContentPrincipalInfo:
15178 : {
15179 0 : ContentPrincipalInfo tmp = ContentPrincipalInfo();
15180 0 : (*(v__)) = tmp;
15181 0 : if ((!(Read((&((v__)->get_ContentPrincipalInfo())), msg__, iter__)))) {
15182 0 : FatalError("Error deserializing Union type");
15183 0 : return false;
15184 : }
15185 : // Sentinel = 'TContentPrincipalInfo'
15186 0 : if ((!((msg__)->ReadSentinel(iter__, 3677342258)))) {
15187 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
15188 0 : return false;
15189 : }
15190 0 : return true;
15191 : }
15192 : case type__::TSystemPrincipalInfo:
15193 : {
15194 0 : SystemPrincipalInfo tmp = SystemPrincipalInfo();
15195 0 : (*(v__)) = tmp;
15196 0 : if ((!(Read((&((v__)->get_SystemPrincipalInfo())), msg__, iter__)))) {
15197 0 : FatalError("Error deserializing Union type");
15198 0 : return false;
15199 : }
15200 : // Sentinel = 'TSystemPrincipalInfo'
15201 0 : if ((!((msg__)->ReadSentinel(iter__, 3590603679)))) {
15202 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
15203 0 : return false;
15204 : }
15205 0 : return true;
15206 : }
15207 : case type__::TNullPrincipalInfo:
15208 : {
15209 0 : NullPrincipalInfo tmp = NullPrincipalInfo();
15210 0 : (*(v__)) = tmp;
15211 0 : if ((!(Read((&((v__)->get_NullPrincipalInfo())), msg__, iter__)))) {
15212 0 : FatalError("Error deserializing Union type");
15213 0 : return false;
15214 : }
15215 : // Sentinel = 'TNullPrincipalInfo'
15216 0 : if ((!((msg__)->ReadSentinel(iter__, 3477774965)))) {
15217 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
15218 0 : return false;
15219 : }
15220 0 : return true;
15221 : }
15222 : case type__::TExpandedPrincipalInfo:
15223 : {
15224 0 : ExpandedPrincipalInfo tmp = ExpandedPrincipalInfo();
15225 0 : (*(v__)) = tmp;
15226 0 : if ((!(Read((&((v__)->get_ExpandedPrincipalInfo())), msg__, iter__)))) {
15227 0 : FatalError("Error deserializing Union type");
15228 0 : return false;
15229 : }
15230 : // Sentinel = 'TExpandedPrincipalInfo'
15231 0 : if ((!((msg__)->ReadSentinel(iter__, 589324917)))) {
15232 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
15233 0 : return false;
15234 : }
15235 0 : return true;
15236 : }
15237 : default:
15238 : {
15239 0 : FatalError("unknown union type");
15240 0 : return false;
15241 : }
15242 : }
15243 : }
15244 :
15245 0 : auto PContentParent::Write(
15246 : const ChromeRegistryItem& v__,
15247 : Message* msg__) -> void
15248 : {
15249 : typedef ChromeRegistryItem type__;
15250 0 : Write(int((v__).type()), msg__);
15251 : // Sentinel = 'ChromeRegistryItem'
15252 0 : (msg__)->WriteSentinel(3067203916);
15253 :
15254 0 : switch ((v__).type()) {
15255 : case type__::TChromePackage:
15256 : {
15257 0 : Write((v__).get_ChromePackage(), msg__);
15258 : // Sentinel = 'TChromePackage'
15259 0 : (msg__)->WriteSentinel(1814060292);
15260 0 : return;
15261 : }
15262 : case type__::TOverrideMapping:
15263 : {
15264 0 : Write((v__).get_OverrideMapping(), msg__);
15265 : // Sentinel = 'TOverrideMapping'
15266 0 : (msg__)->WriteSentinel(842771158);
15267 0 : return;
15268 : }
15269 : case type__::TSubstitutionMapping:
15270 : {
15271 0 : Write((v__).get_SubstitutionMapping(), msg__);
15272 : // Sentinel = 'TSubstitutionMapping'
15273 0 : (msg__)->WriteSentinel(163450211);
15274 0 : return;
15275 : }
15276 : default:
15277 : {
15278 0 : FatalError("unknown union type");
15279 0 : return;
15280 : }
15281 : }
15282 : }
15283 :
15284 0 : auto PContentParent::Read(
15285 : ChromeRegistryItem* v__,
15286 : const Message* msg__,
15287 : PickleIterator* iter__) -> bool
15288 : {
15289 : typedef ChromeRegistryItem type__;
15290 : int type;
15291 0 : if ((!(Read((&(type)), msg__, iter__)))) {
15292 0 : mozilla::ipc::UnionTypeReadError("ChromeRegistryItem");
15293 0 : return false;
15294 : }
15295 : // Sentinel = 'ChromeRegistryItem'
15296 0 : if ((!((msg__)->ReadSentinel(iter__, 3067203916)))) {
15297 0 : mozilla::ipc::SentinelReadError("ChromeRegistryItem");
15298 0 : return false;
15299 : }
15300 :
15301 0 : switch (type) {
15302 : case type__::TChromePackage:
15303 : {
15304 0 : ChromePackage tmp = ChromePackage();
15305 0 : (*(v__)) = tmp;
15306 0 : if ((!(Read((&((v__)->get_ChromePackage())), msg__, iter__)))) {
15307 0 : FatalError("Error deserializing Union type");
15308 0 : return false;
15309 : }
15310 : // Sentinel = 'TChromePackage'
15311 0 : if ((!((msg__)->ReadSentinel(iter__, 1814060292)))) {
15312 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
15313 0 : return false;
15314 : }
15315 0 : return true;
15316 : }
15317 : case type__::TOverrideMapping:
15318 : {
15319 0 : OverrideMapping tmp = OverrideMapping();
15320 0 : (*(v__)) = tmp;
15321 0 : if ((!(Read((&((v__)->get_OverrideMapping())), msg__, iter__)))) {
15322 0 : FatalError("Error deserializing Union type");
15323 0 : return false;
15324 : }
15325 : // Sentinel = 'TOverrideMapping'
15326 0 : if ((!((msg__)->ReadSentinel(iter__, 842771158)))) {
15327 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
15328 0 : return false;
15329 : }
15330 0 : return true;
15331 : }
15332 : case type__::TSubstitutionMapping:
15333 : {
15334 0 : SubstitutionMapping tmp = SubstitutionMapping();
15335 0 : (*(v__)) = tmp;
15336 0 : if ((!(Read((&((v__)->get_SubstitutionMapping())), msg__, iter__)))) {
15337 0 : FatalError("Error deserializing Union type");
15338 0 : return false;
15339 : }
15340 : // Sentinel = 'TSubstitutionMapping'
15341 0 : if ((!((msg__)->ReadSentinel(iter__, 163450211)))) {
15342 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
15343 0 : return false;
15344 : }
15345 0 : return true;
15346 : }
15347 : default:
15348 : {
15349 0 : FatalError("unknown union type");
15350 0 : return false;
15351 : }
15352 : }
15353 : }
15354 :
15355 0 : auto PContentParent::Write(
15356 : const PFlyWebPublishedServerParent* v__,
15357 : Message* msg__,
15358 : bool nullable__) -> void
15359 : {
15360 : int32_t id;
15361 0 : if ((!(v__))) {
15362 0 : if ((!(nullable__))) {
15363 0 : FatalError("NULL actor value passed to non-nullable param");
15364 : }
15365 0 : id = 0;
15366 : }
15367 : else {
15368 0 : id = (v__)->Id();
15369 0 : if ((1) == (id)) {
15370 0 : FatalError("actor has been |delete|d");
15371 : }
15372 : }
15373 :
15374 0 : Write(id, msg__);
15375 0 : }
15376 :
15377 0 : auto PContentParent::Read(
15378 : PFlyWebPublishedServerParent** v__,
15379 : const Message* msg__,
15380 : PickleIterator* iter__,
15381 : bool nullable__) -> bool
15382 : {
15383 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PFlyWebPublishedServer", PFlyWebPublishedServerMsgStart);
15384 0 : if ((actor).isNothing()) {
15385 0 : return false;
15386 : }
15387 :
15388 0 : (*(v__)) = static_cast<PFlyWebPublishedServerParent*>((actor).value());
15389 0 : return true;
15390 : }
15391 :
15392 0 : auto PContentParent::Write(
15393 : const MessagePortIdentifier& v__,
15394 : Message* msg__) -> void
15395 : {
15396 0 : Write((v__).uuid(), msg__);
15397 : // Sentinel = 'uuid'
15398 0 : (msg__)->WriteSentinel(1982267941);
15399 0 : Write((v__).destinationUuid(), msg__);
15400 : // Sentinel = 'destinationUuid'
15401 0 : (msg__)->WriteSentinel(372087918);
15402 0 : Write((v__).sequenceId(), msg__);
15403 : // Sentinel = 'sequenceId'
15404 0 : (msg__)->WriteSentinel(2743535618);
15405 0 : Write((v__).neutered(), msg__);
15406 : // Sentinel = 'neutered'
15407 0 : (msg__)->WriteSentinel(520678014);
15408 0 : }
15409 :
15410 0 : auto PContentParent::Read(
15411 : MessagePortIdentifier* v__,
15412 : const Message* msg__,
15413 : PickleIterator* iter__) -> bool
15414 : {
15415 0 : if ((!(Read((&((v__)->uuid())), msg__, iter__)))) {
15416 0 : FatalError("Error deserializing 'uuid' (nsID) member of 'MessagePortIdentifier'");
15417 0 : return false;
15418 : }
15419 : // Sentinel = 'uuid'
15420 0 : if ((!((msg__)->ReadSentinel(iter__, 1982267941)))) {
15421 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uuid' (nsID) member of 'MessagePortIdentifier'");
15422 0 : return false;
15423 : }
15424 0 : if ((!(Read((&((v__)->destinationUuid())), msg__, iter__)))) {
15425 0 : FatalError("Error deserializing 'destinationUuid' (nsID) member of 'MessagePortIdentifier'");
15426 0 : return false;
15427 : }
15428 : // Sentinel = 'destinationUuid'
15429 0 : if ((!((msg__)->ReadSentinel(iter__, 372087918)))) {
15430 0 : mozilla::ipc::SentinelReadError("Error deserializing 'destinationUuid' (nsID) member of 'MessagePortIdentifier'");
15431 0 : return false;
15432 : }
15433 0 : if ((!(Read((&((v__)->sequenceId())), msg__, iter__)))) {
15434 0 : FatalError("Error deserializing 'sequenceId' (uint32_t) member of 'MessagePortIdentifier'");
15435 0 : return false;
15436 : }
15437 : // Sentinel = 'sequenceId'
15438 0 : if ((!((msg__)->ReadSentinel(iter__, 2743535618)))) {
15439 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sequenceId' (uint32_t) member of 'MessagePortIdentifier'");
15440 0 : return false;
15441 : }
15442 0 : if ((!(Read((&((v__)->neutered())), msg__, iter__)))) {
15443 0 : FatalError("Error deserializing 'neutered' (bool) member of 'MessagePortIdentifier'");
15444 0 : return false;
15445 : }
15446 : // Sentinel = 'neutered'
15447 0 : if ((!((msg__)->ReadSentinel(iter__, 520678014)))) {
15448 0 : mozilla::ipc::SentinelReadError("Error deserializing 'neutered' (bool) member of 'MessagePortIdentifier'");
15449 0 : return false;
15450 : }
15451 0 : return true;
15452 : }
15453 :
15454 0 : auto PContentParent::Write(
15455 : const ContentPrincipalInfo& v__,
15456 : Message* msg__) -> void
15457 : {
15458 0 : Write((v__).attrs(), msg__);
15459 : // Sentinel = 'attrs'
15460 0 : (msg__)->WriteSentinel(3014987797);
15461 0 : Write((v__).originNoSuffix(), msg__);
15462 : // Sentinel = 'originNoSuffix'
15463 0 : (msg__)->WriteSentinel(2833071422);
15464 0 : Write((v__).spec(), msg__);
15465 : // Sentinel = 'spec'
15466 0 : (msg__)->WriteSentinel(1630740541);
15467 0 : }
15468 :
15469 0 : auto PContentParent::Read(
15470 : ContentPrincipalInfo* v__,
15471 : const Message* msg__,
15472 : PickleIterator* iter__) -> bool
15473 : {
15474 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
15475 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
15476 0 : return false;
15477 : }
15478 : // Sentinel = 'attrs'
15479 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
15480 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
15481 0 : return false;
15482 : }
15483 0 : if ((!(Read((&((v__)->originNoSuffix())), msg__, iter__)))) {
15484 0 : FatalError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
15485 0 : return false;
15486 : }
15487 : // Sentinel = 'originNoSuffix'
15488 0 : if ((!((msg__)->ReadSentinel(iter__, 2833071422)))) {
15489 0 : mozilla::ipc::SentinelReadError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
15490 0 : return false;
15491 : }
15492 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
15493 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
15494 0 : return false;
15495 : }
15496 : // Sentinel = 'spec'
15497 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
15498 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
15499 0 : return false;
15500 : }
15501 0 : return true;
15502 : }
15503 :
15504 0 : auto PContentParent::Write(
15505 : const IPCDataTransferData& v__,
15506 : Message* msg__) -> void
15507 : {
15508 : typedef IPCDataTransferData type__;
15509 0 : Write(int((v__).type()), msg__);
15510 : // Sentinel = 'IPCDataTransferData'
15511 0 : (msg__)->WriteSentinel(1716688956);
15512 :
15513 0 : switch ((v__).type()) {
15514 : case type__::TnsString:
15515 : {
15516 0 : Write((v__).get_nsString(), msg__);
15517 : // Sentinel = 'TnsString'
15518 0 : (msg__)->WriteSentinel(2161603959);
15519 0 : return;
15520 : }
15521 : case type__::TShmem:
15522 : {
15523 0 : Write((v__).get_Shmem(), msg__);
15524 : // Sentinel = 'TShmem'
15525 0 : (msg__)->WriteSentinel(3517971266);
15526 0 : return;
15527 : }
15528 : case type__::TIPCBlob:
15529 : {
15530 0 : Write((v__).get_IPCBlob(), msg__);
15531 : // Sentinel = 'TIPCBlob'
15532 0 : (msg__)->WriteSentinel(3270420211);
15533 0 : return;
15534 : }
15535 : default:
15536 : {
15537 0 : FatalError("unknown union type");
15538 0 : return;
15539 : }
15540 : }
15541 : }
15542 :
15543 0 : auto PContentParent::Read(
15544 : IPCDataTransferData* v__,
15545 : const Message* msg__,
15546 : PickleIterator* iter__) -> bool
15547 : {
15548 : typedef IPCDataTransferData type__;
15549 : int type;
15550 0 : if ((!(Read((&(type)), msg__, iter__)))) {
15551 0 : mozilla::ipc::UnionTypeReadError("IPCDataTransferData");
15552 0 : return false;
15553 : }
15554 : // Sentinel = 'IPCDataTransferData'
15555 0 : if ((!((msg__)->ReadSentinel(iter__, 1716688956)))) {
15556 0 : mozilla::ipc::SentinelReadError("IPCDataTransferData");
15557 0 : return false;
15558 : }
15559 :
15560 0 : switch (type) {
15561 : case type__::TnsString:
15562 : {
15563 0 : nsString tmp = nsString();
15564 0 : (*(v__)) = tmp;
15565 0 : if ((!(Read((&((v__)->get_nsString())), msg__, iter__)))) {
15566 0 : FatalError("Error deserializing Union type");
15567 0 : return false;
15568 : }
15569 : // Sentinel = 'TnsString'
15570 0 : if ((!((msg__)->ReadSentinel(iter__, 2161603959)))) {
15571 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
15572 0 : return false;
15573 : }
15574 0 : return true;
15575 : }
15576 : case type__::TShmem:
15577 : {
15578 0 : Shmem tmp = Shmem();
15579 0 : (*(v__)) = tmp;
15580 0 : if ((!(Read((&((v__)->get_Shmem())), msg__, iter__)))) {
15581 0 : FatalError("Error deserializing Union type");
15582 0 : return false;
15583 : }
15584 : // Sentinel = 'TShmem'
15585 0 : if ((!((msg__)->ReadSentinel(iter__, 3517971266)))) {
15586 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
15587 0 : return false;
15588 : }
15589 0 : return true;
15590 : }
15591 : case type__::TIPCBlob:
15592 : {
15593 0 : IPCBlob tmp = IPCBlob();
15594 0 : (*(v__)) = tmp;
15595 0 : if ((!(Read((&((v__)->get_IPCBlob())), msg__, iter__)))) {
15596 0 : FatalError("Error deserializing Union type");
15597 0 : return false;
15598 : }
15599 : // Sentinel = 'TIPCBlob'
15600 0 : if ((!((msg__)->ReadSentinel(iter__, 3270420211)))) {
15601 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
15602 0 : return false;
15603 : }
15604 0 : return true;
15605 : }
15606 : default:
15607 : {
15608 0 : FatalError("unknown union type");
15609 0 : return false;
15610 : }
15611 : }
15612 : }
15613 :
15614 8 : auto PContentParent::Write(
15615 : const nsTArray<URIParams>& v__,
15616 : Message* msg__) -> void
15617 : {
15618 8 : uint32_t length = (v__).Length();
15619 8 : Write(length, msg__);
15620 : // Sentinel = ('length', 'URIParams[]')
15621 8 : (msg__)->WriteSentinel(3104699560);
15622 :
15623 8 : for (auto& elem : v__) {
15624 0 : Write(elem, msg__);
15625 : // Sentinel = 'URIParams[]'
15626 0 : (msg__)->WriteSentinel(4251481679);
15627 : }
15628 8 : }
15629 :
15630 0 : auto PContentParent::Read(
15631 : nsTArray<URIParams>* v__,
15632 : const Message* msg__,
15633 : PickleIterator* iter__) -> bool
15634 : {
15635 0 : nsTArray<URIParams> fa;
15636 : uint32_t length;
15637 0 : if ((!(Read((&(length)), msg__, iter__)))) {
15638 0 : mozilla::ipc::ArrayLengthReadError("URIParams[]");
15639 0 : return false;
15640 : }
15641 : // Sentinel = ('length', 'URIParams[]')
15642 0 : if ((!((msg__)->ReadSentinel(iter__, 3104699560)))) {
15643 0 : mozilla::ipc::SentinelReadError("URIParams[]");
15644 0 : return false;
15645 : }
15646 :
15647 0 : URIParams* elems = (fa).AppendElements(length);
15648 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
15649 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
15650 0 : FatalError("Error deserializing 'URIParams[i]'");
15651 0 : return false;
15652 : }
15653 : // Sentinel = 'URIParams[]'
15654 0 : if ((!((msg__)->ReadSentinel(iter__, 4251481679)))) {
15655 0 : mozilla::ipc::SentinelReadError("Error deserializing 'URIParams[i]'");
15656 0 : return false;
15657 : }
15658 : }
15659 0 : (v__)->SwapElements(fa);
15660 0 : return true;
15661 : }
15662 :
15663 0 : auto PContentParent::Write(
15664 : const PFileDescriptorSetParent* v__,
15665 : Message* msg__,
15666 : bool nullable__) -> void
15667 : {
15668 : int32_t id;
15669 0 : if ((!(v__))) {
15670 0 : if ((!(nullable__))) {
15671 0 : FatalError("NULL actor value passed to non-nullable param");
15672 : }
15673 0 : id = 0;
15674 : }
15675 : else {
15676 0 : id = (v__)->Id();
15677 0 : if ((1) == (id)) {
15678 0 : FatalError("actor has been |delete|d");
15679 : }
15680 : }
15681 :
15682 0 : Write(id, msg__);
15683 0 : }
15684 :
15685 0 : auto PContentParent::Read(
15686 : PFileDescriptorSetParent** v__,
15687 : const Message* msg__,
15688 : PickleIterator* iter__,
15689 : bool nullable__) -> bool
15690 : {
15691 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PFileDescriptorSet", PFileDescriptorSetMsgStart);
15692 0 : if ((actor).isNothing()) {
15693 0 : return false;
15694 : }
15695 :
15696 0 : (*(v__)) = static_cast<PFileDescriptorSetParent*>((actor).value());
15697 0 : return true;
15698 : }
15699 :
15700 2 : auto PContentParent::Write(
15701 : const nsTArray<FontFamilyListEntry>& v__,
15702 : Message* msg__) -> void
15703 : {
15704 2 : uint32_t length = (v__).Length();
15705 2 : Write(length, msg__);
15706 : // Sentinel = ('length', 'FontFamilyListEntry[]')
15707 2 : (msg__)->WriteSentinel(1146781945);
15708 :
15709 2 : for (auto& elem : v__) {
15710 0 : Write(elem, msg__);
15711 : // Sentinel = 'FontFamilyListEntry[]'
15712 0 : (msg__)->WriteSentinel(2274364552);
15713 : }
15714 2 : }
15715 :
15716 0 : auto PContentParent::Read(
15717 : nsTArray<FontFamilyListEntry>* v__,
15718 : const Message* msg__,
15719 : PickleIterator* iter__) -> bool
15720 : {
15721 0 : nsTArray<FontFamilyListEntry> fa;
15722 : uint32_t length;
15723 0 : if ((!(Read((&(length)), msg__, iter__)))) {
15724 0 : mozilla::ipc::ArrayLengthReadError("FontFamilyListEntry[]");
15725 0 : return false;
15726 : }
15727 : // Sentinel = ('length', 'FontFamilyListEntry[]')
15728 0 : if ((!((msg__)->ReadSentinel(iter__, 1146781945)))) {
15729 0 : mozilla::ipc::SentinelReadError("FontFamilyListEntry[]");
15730 0 : return false;
15731 : }
15732 :
15733 0 : FontFamilyListEntry* elems = (fa).AppendElements(length);
15734 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
15735 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
15736 0 : FatalError("Error deserializing 'FontFamilyListEntry[i]'");
15737 0 : return false;
15738 : }
15739 : // Sentinel = 'FontFamilyListEntry[]'
15740 0 : if ((!((msg__)->ReadSentinel(iter__, 2274364552)))) {
15741 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FontFamilyListEntry[i]'");
15742 0 : return false;
15743 : }
15744 : }
15745 0 : (v__)->SwapElements(fa);
15746 0 : return true;
15747 : }
15748 :
15749 0 : auto PContentParent::Write(
15750 : const GetFilesResponseResult& v__,
15751 : Message* msg__) -> void
15752 : {
15753 : typedef GetFilesResponseResult type__;
15754 0 : Write(int((v__).type()), msg__);
15755 : // Sentinel = 'GetFilesResponseResult'
15756 0 : (msg__)->WriteSentinel(1743450989);
15757 :
15758 0 : switch ((v__).type()) {
15759 : case type__::TGetFilesResponseSuccess:
15760 : {
15761 0 : Write((v__).get_GetFilesResponseSuccess(), msg__);
15762 : // Sentinel = 'TGetFilesResponseSuccess'
15763 0 : (msg__)->WriteSentinel(3501814365);
15764 0 : return;
15765 : }
15766 : case type__::TGetFilesResponseFailure:
15767 : {
15768 0 : Write((v__).get_GetFilesResponseFailure(), msg__);
15769 : // Sentinel = 'TGetFilesResponseFailure'
15770 0 : (msg__)->WriteSentinel(2500235538);
15771 0 : return;
15772 : }
15773 : default:
15774 : {
15775 0 : FatalError("unknown union type");
15776 0 : return;
15777 : }
15778 : }
15779 : }
15780 :
15781 0 : auto PContentParent::Read(
15782 : GetFilesResponseResult* v__,
15783 : const Message* msg__,
15784 : PickleIterator* iter__) -> bool
15785 : {
15786 : typedef GetFilesResponseResult type__;
15787 : int type;
15788 0 : if ((!(Read((&(type)), msg__, iter__)))) {
15789 0 : mozilla::ipc::UnionTypeReadError("GetFilesResponseResult");
15790 0 : return false;
15791 : }
15792 : // Sentinel = 'GetFilesResponseResult'
15793 0 : if ((!((msg__)->ReadSentinel(iter__, 1743450989)))) {
15794 0 : mozilla::ipc::SentinelReadError("GetFilesResponseResult");
15795 0 : return false;
15796 : }
15797 :
15798 0 : switch (type) {
15799 : case type__::TGetFilesResponseSuccess:
15800 : {
15801 0 : GetFilesResponseSuccess tmp = GetFilesResponseSuccess();
15802 0 : (*(v__)) = tmp;
15803 0 : if ((!(Read((&((v__)->get_GetFilesResponseSuccess())), msg__, iter__)))) {
15804 0 : FatalError("Error deserializing Union type");
15805 0 : return false;
15806 : }
15807 : // Sentinel = 'TGetFilesResponseSuccess'
15808 0 : if ((!((msg__)->ReadSentinel(iter__, 3501814365)))) {
15809 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
15810 0 : return false;
15811 : }
15812 0 : return true;
15813 : }
15814 : case type__::TGetFilesResponseFailure:
15815 : {
15816 0 : GetFilesResponseFailure tmp = GetFilesResponseFailure();
15817 0 : (*(v__)) = tmp;
15818 0 : if ((!(Read((&((v__)->get_GetFilesResponseFailure())), msg__, iter__)))) {
15819 0 : FatalError("Error deserializing Union type");
15820 0 : return false;
15821 : }
15822 : // Sentinel = 'TGetFilesResponseFailure'
15823 0 : if ((!((msg__)->ReadSentinel(iter__, 2500235538)))) {
15824 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
15825 0 : return false;
15826 : }
15827 0 : return true;
15828 : }
15829 : default:
15830 : {
15831 0 : FatalError("unknown union type");
15832 0 : return false;
15833 : }
15834 : }
15835 : }
15836 :
15837 0 : auto PContentParent::Write(
15838 : const OptionalFileDescriptorSet& v__,
15839 : Message* msg__) -> void
15840 : {
15841 : typedef OptionalFileDescriptorSet type__;
15842 0 : Write(int((v__).type()), msg__);
15843 : // Sentinel = 'OptionalFileDescriptorSet'
15844 0 : (msg__)->WriteSentinel(955222862);
15845 :
15846 0 : switch ((v__).type()) {
15847 : case type__::TPFileDescriptorSetParent:
15848 : {
15849 0 : Write((v__).get_PFileDescriptorSetParent(), msg__, false);
15850 : // Sentinel = 'TPFileDescriptorSetParent'
15851 0 : (msg__)->WriteSentinel(143041934);
15852 0 : return;
15853 : }
15854 : case type__::TPFileDescriptorSetChild:
15855 : {
15856 0 : FatalError("wrong side!");
15857 0 : return;
15858 : }
15859 : case type__::TArrayOfFileDescriptor:
15860 : {
15861 0 : Write((v__).get_ArrayOfFileDescriptor(), msg__);
15862 : // Sentinel = 'TArrayOfFileDescriptor'
15863 0 : (msg__)->WriteSentinel(2366096715);
15864 0 : return;
15865 : }
15866 : case type__::Tvoid_t:
15867 : {
15868 0 : Write((v__).get_void_t(), msg__);
15869 : // Sentinel = 'Tvoid_t'
15870 0 : (msg__)->WriteSentinel(3041273328);
15871 0 : return;
15872 : }
15873 : default:
15874 : {
15875 0 : FatalError("unknown union type");
15876 0 : return;
15877 : }
15878 : }
15879 : }
15880 :
15881 0 : auto PContentParent::Read(
15882 : OptionalFileDescriptorSet* v__,
15883 : const Message* msg__,
15884 : PickleIterator* iter__) -> bool
15885 : {
15886 : typedef OptionalFileDescriptorSet type__;
15887 : int type;
15888 0 : if ((!(Read((&(type)), msg__, iter__)))) {
15889 0 : mozilla::ipc::UnionTypeReadError("OptionalFileDescriptorSet");
15890 0 : return false;
15891 : }
15892 : // Sentinel = 'OptionalFileDescriptorSet'
15893 0 : if ((!((msg__)->ReadSentinel(iter__, 955222862)))) {
15894 0 : mozilla::ipc::SentinelReadError("OptionalFileDescriptorSet");
15895 0 : return false;
15896 : }
15897 :
15898 0 : switch (type) {
15899 : case type__::TPFileDescriptorSetParent:
15900 : {
15901 0 : return false;
15902 : }
15903 : case type__::TPFileDescriptorSetChild:
15904 : {
15905 0 : PFileDescriptorSetParent* tmp = nullptr;
15906 0 : (*(v__)) = tmp;
15907 0 : if ((!(Read((&((v__)->get_PFileDescriptorSetParent())), msg__, iter__, false)))) {
15908 0 : FatalError("Error deserializing Union type");
15909 0 : return false;
15910 : }
15911 : // Sentinel = 'TPFileDescriptorSetChild'
15912 0 : if ((!((msg__)->ReadSentinel(iter__, 3477929935)))) {
15913 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
15914 0 : return false;
15915 : }
15916 0 : return true;
15917 : }
15918 : case type__::TArrayOfFileDescriptor:
15919 : {
15920 0 : nsTArray<FileDescriptor> tmp;
15921 0 : (*(v__)) = tmp;
15922 0 : if ((!(Read((&((v__)->get_ArrayOfFileDescriptor())), msg__, iter__)))) {
15923 0 : FatalError("Error deserializing Union type");
15924 0 : return false;
15925 : }
15926 : // Sentinel = 'TArrayOfFileDescriptor'
15927 0 : if ((!((msg__)->ReadSentinel(iter__, 2366096715)))) {
15928 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
15929 0 : return false;
15930 : }
15931 0 : return true;
15932 : }
15933 : case type__::Tvoid_t:
15934 : {
15935 : void_t tmp = void_t();
15936 0 : (*(v__)) = tmp;
15937 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
15938 0 : FatalError("Error deserializing Union type");
15939 0 : return false;
15940 : }
15941 : // Sentinel = 'Tvoid_t'
15942 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
15943 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
15944 0 : return false;
15945 : }
15946 0 : return true;
15947 : }
15948 : default:
15949 : {
15950 0 : FatalError("unknown union type");
15951 0 : return false;
15952 : }
15953 : }
15954 : }
15955 :
15956 0 : auto PContentParent::Write(
15957 : const PluginTag& v__,
15958 : Message* msg__) -> void
15959 : {
15960 0 : Write((v__).id(), msg__);
15961 : // Sentinel = 'id'
15962 0 : (msg__)->WriteSentinel(2794505629);
15963 0 : Write((v__).name(), msg__);
15964 : // Sentinel = 'name'
15965 0 : (msg__)->WriteSentinel(15034981);
15966 0 : Write((v__).description(), msg__);
15967 : // Sentinel = 'description'
15968 0 : (msg__)->WriteSentinel(962879941);
15969 0 : Write((v__).mimeTypes(), msg__);
15970 : // Sentinel = 'mimeTypes'
15971 0 : (msg__)->WriteSentinel(3323493602);
15972 0 : Write((v__).mimeDescriptions(), msg__);
15973 : // Sentinel = 'mimeDescriptions'
15974 0 : (msg__)->WriteSentinel(3649655353);
15975 0 : Write((v__).extensions(), msg__);
15976 : // Sentinel = 'extensions'
15977 0 : (msg__)->WriteSentinel(743266036);
15978 0 : Write((v__).isJavaPlugin(), msg__);
15979 : // Sentinel = 'isJavaPlugin'
15980 0 : (msg__)->WriteSentinel(2836654149);
15981 0 : Write((v__).isFlashPlugin(), msg__);
15982 : // Sentinel = 'isFlashPlugin'
15983 0 : (msg__)->WriteSentinel(3201818258);
15984 0 : Write((v__).supportsAsyncRender(), msg__);
15985 : // Sentinel = 'supportsAsyncRender'
15986 0 : (msg__)->WriteSentinel(1877072675);
15987 0 : Write((v__).filename(), msg__);
15988 : // Sentinel = 'filename'
15989 0 : (msg__)->WriteSentinel(1198638255);
15990 0 : Write((v__).version(), msg__);
15991 : // Sentinel = 'version'
15992 0 : (msg__)->WriteSentinel(4003360947);
15993 0 : Write((v__).lastModifiedTime(), msg__);
15994 : // Sentinel = 'lastModifiedTime'
15995 0 : (msg__)->WriteSentinel(1889446106);
15996 0 : Write((v__).isFromExtension(), msg__);
15997 : // Sentinel = 'isFromExtension'
15998 0 : (msg__)->WriteSentinel(2216658104);
15999 0 : Write((v__).sandboxLevel(), msg__);
16000 : // Sentinel = 'sandboxLevel'
16001 0 : (msg__)->WriteSentinel(906501097);
16002 0 : }
16003 :
16004 0 : auto PContentParent::Read(
16005 : PluginTag* v__,
16006 : const Message* msg__,
16007 : PickleIterator* iter__) -> bool
16008 : {
16009 0 : if ((!(Read((&((v__)->id())), msg__, iter__)))) {
16010 0 : FatalError("Error deserializing 'id' (uint32_t) member of 'PluginTag'");
16011 0 : return false;
16012 : }
16013 : // Sentinel = 'id'
16014 0 : if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
16015 0 : mozilla::ipc::SentinelReadError("Error deserializing 'id' (uint32_t) member of 'PluginTag'");
16016 0 : return false;
16017 : }
16018 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
16019 0 : FatalError("Error deserializing 'name' (nsCString) member of 'PluginTag'");
16020 0 : return false;
16021 : }
16022 : // Sentinel = 'name'
16023 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
16024 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'PluginTag'");
16025 0 : return false;
16026 : }
16027 0 : if ((!(Read((&((v__)->description())), msg__, iter__)))) {
16028 0 : FatalError("Error deserializing 'description' (nsCString) member of 'PluginTag'");
16029 0 : return false;
16030 : }
16031 : // Sentinel = 'description'
16032 0 : if ((!((msg__)->ReadSentinel(iter__, 962879941)))) {
16033 0 : mozilla::ipc::SentinelReadError("Error deserializing 'description' (nsCString) member of 'PluginTag'");
16034 0 : return false;
16035 : }
16036 0 : if ((!(Read((&((v__)->mimeTypes())), msg__, iter__)))) {
16037 0 : FatalError("Error deserializing 'mimeTypes' (nsCString[]) member of 'PluginTag'");
16038 0 : return false;
16039 : }
16040 : // Sentinel = 'mimeTypes'
16041 0 : if ((!((msg__)->ReadSentinel(iter__, 3323493602)))) {
16042 0 : mozilla::ipc::SentinelReadError("Error deserializing 'mimeTypes' (nsCString[]) member of 'PluginTag'");
16043 0 : return false;
16044 : }
16045 0 : if ((!(Read((&((v__)->mimeDescriptions())), msg__, iter__)))) {
16046 0 : FatalError("Error deserializing 'mimeDescriptions' (nsCString[]) member of 'PluginTag'");
16047 0 : return false;
16048 : }
16049 : // Sentinel = 'mimeDescriptions'
16050 0 : if ((!((msg__)->ReadSentinel(iter__, 3649655353)))) {
16051 0 : mozilla::ipc::SentinelReadError("Error deserializing 'mimeDescriptions' (nsCString[]) member of 'PluginTag'");
16052 0 : return false;
16053 : }
16054 0 : if ((!(Read((&((v__)->extensions())), msg__, iter__)))) {
16055 0 : FatalError("Error deserializing 'extensions' (nsCString[]) member of 'PluginTag'");
16056 0 : return false;
16057 : }
16058 : // Sentinel = 'extensions'
16059 0 : if ((!((msg__)->ReadSentinel(iter__, 743266036)))) {
16060 0 : mozilla::ipc::SentinelReadError("Error deserializing 'extensions' (nsCString[]) member of 'PluginTag'");
16061 0 : return false;
16062 : }
16063 0 : if ((!(Read((&((v__)->isJavaPlugin())), msg__, iter__)))) {
16064 0 : FatalError("Error deserializing 'isJavaPlugin' (bool) member of 'PluginTag'");
16065 0 : return false;
16066 : }
16067 : // Sentinel = 'isJavaPlugin'
16068 0 : if ((!((msg__)->ReadSentinel(iter__, 2836654149)))) {
16069 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isJavaPlugin' (bool) member of 'PluginTag'");
16070 0 : return false;
16071 : }
16072 0 : if ((!(Read((&((v__)->isFlashPlugin())), msg__, iter__)))) {
16073 0 : FatalError("Error deserializing 'isFlashPlugin' (bool) member of 'PluginTag'");
16074 0 : return false;
16075 : }
16076 : // Sentinel = 'isFlashPlugin'
16077 0 : if ((!((msg__)->ReadSentinel(iter__, 3201818258)))) {
16078 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isFlashPlugin' (bool) member of 'PluginTag'");
16079 0 : return false;
16080 : }
16081 0 : if ((!(Read((&((v__)->supportsAsyncRender())), msg__, iter__)))) {
16082 0 : FatalError("Error deserializing 'supportsAsyncRender' (bool) member of 'PluginTag'");
16083 0 : return false;
16084 : }
16085 : // Sentinel = 'supportsAsyncRender'
16086 0 : if ((!((msg__)->ReadSentinel(iter__, 1877072675)))) {
16087 0 : mozilla::ipc::SentinelReadError("Error deserializing 'supportsAsyncRender' (bool) member of 'PluginTag'");
16088 0 : return false;
16089 : }
16090 0 : if ((!(Read((&((v__)->filename())), msg__, iter__)))) {
16091 0 : FatalError("Error deserializing 'filename' (nsCString) member of 'PluginTag'");
16092 0 : return false;
16093 : }
16094 : // Sentinel = 'filename'
16095 0 : if ((!((msg__)->ReadSentinel(iter__, 1198638255)))) {
16096 0 : mozilla::ipc::SentinelReadError("Error deserializing 'filename' (nsCString) member of 'PluginTag'");
16097 0 : return false;
16098 : }
16099 0 : if ((!(Read((&((v__)->version())), msg__, iter__)))) {
16100 0 : FatalError("Error deserializing 'version' (nsCString) member of 'PluginTag'");
16101 0 : return false;
16102 : }
16103 : // Sentinel = 'version'
16104 0 : if ((!((msg__)->ReadSentinel(iter__, 4003360947)))) {
16105 0 : mozilla::ipc::SentinelReadError("Error deserializing 'version' (nsCString) member of 'PluginTag'");
16106 0 : return false;
16107 : }
16108 0 : if ((!(Read((&((v__)->lastModifiedTime())), msg__, iter__)))) {
16109 0 : FatalError("Error deserializing 'lastModifiedTime' (int64_t) member of 'PluginTag'");
16110 0 : return false;
16111 : }
16112 : // Sentinel = 'lastModifiedTime'
16113 0 : if ((!((msg__)->ReadSentinel(iter__, 1889446106)))) {
16114 0 : mozilla::ipc::SentinelReadError("Error deserializing 'lastModifiedTime' (int64_t) member of 'PluginTag'");
16115 0 : return false;
16116 : }
16117 0 : if ((!(Read((&((v__)->isFromExtension())), msg__, iter__)))) {
16118 0 : FatalError("Error deserializing 'isFromExtension' (bool) member of 'PluginTag'");
16119 0 : return false;
16120 : }
16121 : // Sentinel = 'isFromExtension'
16122 0 : if ((!((msg__)->ReadSentinel(iter__, 2216658104)))) {
16123 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isFromExtension' (bool) member of 'PluginTag'");
16124 0 : return false;
16125 : }
16126 0 : if ((!(Read((&((v__)->sandboxLevel())), msg__, iter__)))) {
16127 0 : FatalError("Error deserializing 'sandboxLevel' (int32_t) member of 'PluginTag'");
16128 0 : return false;
16129 : }
16130 : // Sentinel = 'sandboxLevel'
16131 0 : if ((!((msg__)->ReadSentinel(iter__, 906501097)))) {
16132 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sandboxLevel' (int32_t) member of 'PluginTag'");
16133 0 : return false;
16134 : }
16135 0 : return true;
16136 : }
16137 :
16138 0 : auto PContentParent::Write(
16139 : const RemoteObject& v__,
16140 : Message* msg__) -> void
16141 : {
16142 0 : Write((v__).serializedId(), msg__);
16143 : // Sentinel = 'serializedId'
16144 0 : (msg__)->WriteSentinel(517551973);
16145 0 : Write((v__).isCallable(), msg__);
16146 : // Sentinel = 'isCallable'
16147 0 : (msg__)->WriteSentinel(581027930);
16148 0 : Write((v__).isConstructor(), msg__);
16149 : // Sentinel = 'isConstructor'
16150 0 : (msg__)->WriteSentinel(2453797865);
16151 0 : Write((v__).isDOMObject(), msg__);
16152 : // Sentinel = 'isDOMObject'
16153 0 : (msg__)->WriteSentinel(4083735162);
16154 0 : Write((v__).objectTag(), msg__);
16155 : // Sentinel = 'objectTag'
16156 0 : (msg__)->WriteSentinel(4009834374);
16157 0 : }
16158 :
16159 0 : auto PContentParent::Read(
16160 : RemoteObject* v__,
16161 : const Message* msg__,
16162 : PickleIterator* iter__) -> bool
16163 : {
16164 0 : if ((!(Read((&((v__)->serializedId())), msg__, iter__)))) {
16165 0 : FatalError("Error deserializing 'serializedId' (uint64_t) member of 'RemoteObject'");
16166 0 : return false;
16167 : }
16168 : // Sentinel = 'serializedId'
16169 0 : if ((!((msg__)->ReadSentinel(iter__, 517551973)))) {
16170 0 : mozilla::ipc::SentinelReadError("Error deserializing 'serializedId' (uint64_t) member of 'RemoteObject'");
16171 0 : return false;
16172 : }
16173 0 : if ((!(Read((&((v__)->isCallable())), msg__, iter__)))) {
16174 0 : FatalError("Error deserializing 'isCallable' (bool) member of 'RemoteObject'");
16175 0 : return false;
16176 : }
16177 : // Sentinel = 'isCallable'
16178 0 : if ((!((msg__)->ReadSentinel(iter__, 581027930)))) {
16179 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isCallable' (bool) member of 'RemoteObject'");
16180 0 : return false;
16181 : }
16182 0 : if ((!(Read((&((v__)->isConstructor())), msg__, iter__)))) {
16183 0 : FatalError("Error deserializing 'isConstructor' (bool) member of 'RemoteObject'");
16184 0 : return false;
16185 : }
16186 : // Sentinel = 'isConstructor'
16187 0 : if ((!((msg__)->ReadSentinel(iter__, 2453797865)))) {
16188 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isConstructor' (bool) member of 'RemoteObject'");
16189 0 : return false;
16190 : }
16191 0 : if ((!(Read((&((v__)->isDOMObject())), msg__, iter__)))) {
16192 0 : FatalError("Error deserializing 'isDOMObject' (bool) member of 'RemoteObject'");
16193 0 : return false;
16194 : }
16195 : // Sentinel = 'isDOMObject'
16196 0 : if ((!((msg__)->ReadSentinel(iter__, 4083735162)))) {
16197 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isDOMObject' (bool) member of 'RemoteObject'");
16198 0 : return false;
16199 : }
16200 0 : if ((!(Read((&((v__)->objectTag())), msg__, iter__)))) {
16201 0 : FatalError("Error deserializing 'objectTag' (nsCString) member of 'RemoteObject'");
16202 0 : return false;
16203 : }
16204 : // Sentinel = 'objectTag'
16205 0 : if ((!((msg__)->ReadSentinel(iter__, 4009834374)))) {
16206 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectTag' (nsCString) member of 'RemoteObject'");
16207 0 : return false;
16208 : }
16209 0 : return true;
16210 : }
16211 :
16212 0 : auto PContentParent::Write(
16213 : const IPCDataTransferItem& v__,
16214 : Message* msg__) -> void
16215 : {
16216 0 : Write((v__).flavor(), msg__);
16217 : // Sentinel = 'flavor'
16218 0 : (msg__)->WriteSentinel(1479298586);
16219 0 : Write((v__).imageDetails(), msg__);
16220 : // Sentinel = 'imageDetails'
16221 0 : (msg__)->WriteSentinel(372092483);
16222 0 : Write((v__).data(), msg__);
16223 : // Sentinel = 'data'
16224 0 : (msg__)->WriteSentinel(843352540);
16225 0 : }
16226 :
16227 0 : auto PContentParent::Read(
16228 : IPCDataTransferItem* v__,
16229 : const Message* msg__,
16230 : PickleIterator* iter__) -> bool
16231 : {
16232 0 : if ((!(Read((&((v__)->flavor())), msg__, iter__)))) {
16233 0 : FatalError("Error deserializing 'flavor' (nsCString) member of 'IPCDataTransferItem'");
16234 0 : return false;
16235 : }
16236 : // Sentinel = 'flavor'
16237 0 : if ((!((msg__)->ReadSentinel(iter__, 1479298586)))) {
16238 0 : mozilla::ipc::SentinelReadError("Error deserializing 'flavor' (nsCString) member of 'IPCDataTransferItem'");
16239 0 : return false;
16240 : }
16241 0 : if ((!(Read((&((v__)->imageDetails())), msg__, iter__)))) {
16242 0 : FatalError("Error deserializing 'imageDetails' (IPCDataTransferImage) member of 'IPCDataTransferItem'");
16243 0 : return false;
16244 : }
16245 : // Sentinel = 'imageDetails'
16246 0 : if ((!((msg__)->ReadSentinel(iter__, 372092483)))) {
16247 0 : mozilla::ipc::SentinelReadError("Error deserializing 'imageDetails' (IPCDataTransferImage) member of 'IPCDataTransferItem'");
16248 0 : return false;
16249 : }
16250 0 : if ((!(Read((&((v__)->data())), msg__, iter__)))) {
16251 0 : FatalError("Error deserializing 'data' (IPCDataTransferData) member of 'IPCDataTransferItem'");
16252 0 : return false;
16253 : }
16254 : // Sentinel = 'data'
16255 0 : if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
16256 0 : mozilla::ipc::SentinelReadError("Error deserializing 'data' (IPCDataTransferData) member of 'IPCDataTransferItem'");
16257 0 : return false;
16258 : }
16259 0 : return true;
16260 : }
16261 :
16262 0 : auto PContentParent::Write(
16263 : const PHeapSnapshotTempFileHelperParent* v__,
16264 : Message* msg__,
16265 : bool nullable__) -> void
16266 : {
16267 : int32_t id;
16268 0 : if ((!(v__))) {
16269 0 : if ((!(nullable__))) {
16270 0 : FatalError("NULL actor value passed to non-nullable param");
16271 : }
16272 0 : id = 0;
16273 : }
16274 : else {
16275 0 : id = (v__)->Id();
16276 0 : if ((1) == (id)) {
16277 0 : FatalError("actor has been |delete|d");
16278 : }
16279 : }
16280 :
16281 0 : Write(id, msg__);
16282 0 : }
16283 :
16284 0 : auto PContentParent::Read(
16285 : PHeapSnapshotTempFileHelperParent** v__,
16286 : const Message* msg__,
16287 : PickleIterator* iter__,
16288 : bool nullable__) -> bool
16289 : {
16290 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PHeapSnapshotTempFileHelper", PHeapSnapshotTempFileHelperMsgStart);
16291 0 : if ((actor).isNothing()) {
16292 0 : return false;
16293 : }
16294 :
16295 0 : (*(v__)) = static_cast<PHeapSnapshotTempFileHelperParent*>((actor).value());
16296 0 : return true;
16297 : }
16298 :
16299 36 : auto PContentParent::Write(
16300 : const StandardURLSegment& v__,
16301 : Message* msg__) -> void
16302 : {
16303 36 : Write((v__).position(), msg__);
16304 : // Sentinel = 'position'
16305 36 : (msg__)->WriteSentinel(50847225);
16306 36 : Write((v__).length(), msg__);
16307 : // Sentinel = 'length'
16308 36 : (msg__)->WriteSentinel(1726618354);
16309 36 : }
16310 :
16311 24 : auto PContentParent::Read(
16312 : StandardURLSegment* v__,
16313 : const Message* msg__,
16314 : PickleIterator* iter__) -> bool
16315 : {
16316 24 : if ((!(Read((&((v__)->position())), msg__, iter__)))) {
16317 0 : FatalError("Error deserializing 'position' (uint32_t) member of 'StandardURLSegment'");
16318 0 : return false;
16319 : }
16320 : // Sentinel = 'position'
16321 24 : if ((!((msg__)->ReadSentinel(iter__, 50847225)))) {
16322 0 : mozilla::ipc::SentinelReadError("Error deserializing 'position' (uint32_t) member of 'StandardURLSegment'");
16323 0 : return false;
16324 : }
16325 24 : if ((!(Read((&((v__)->length())), msg__, iter__)))) {
16326 0 : FatalError("Error deserializing 'length' (int32_t) member of 'StandardURLSegment'");
16327 0 : return false;
16328 : }
16329 : // Sentinel = 'length'
16330 24 : if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
16331 0 : mozilla::ipc::SentinelReadError("Error deserializing 'length' (int32_t) member of 'StandardURLSegment'");
16332 0 : return false;
16333 : }
16334 24 : return true;
16335 : }
16336 :
16337 0 : auto PContentParent::Write(
16338 : const IPCDataTransferImage& v__,
16339 : Message* msg__) -> void
16340 : {
16341 0 : Write((v__).width(), msg__);
16342 : // Sentinel = 'width'
16343 0 : (msg__)->WriteSentinel(1444841265);
16344 0 : Write((v__).height(), msg__);
16345 : // Sentinel = 'height'
16346 0 : (msg__)->WriteSentinel(440091919);
16347 0 : Write((v__).stride(), msg__);
16348 : // Sentinel = 'stride'
16349 0 : (msg__)->WriteSentinel(2746301169);
16350 0 : Write((v__).format(), msg__);
16351 : // Sentinel = 'format'
16352 0 : (msg__)->WriteSentinel(2052265543);
16353 0 : }
16354 :
16355 0 : auto PContentParent::Read(
16356 : IPCDataTransferImage* v__,
16357 : const Message* msg__,
16358 : PickleIterator* iter__) -> bool
16359 : {
16360 0 : if ((!(Read((&((v__)->width())), msg__, iter__)))) {
16361 0 : FatalError("Error deserializing 'width' (uint32_t) member of 'IPCDataTransferImage'");
16362 0 : return false;
16363 : }
16364 : // Sentinel = 'width'
16365 0 : if ((!((msg__)->ReadSentinel(iter__, 1444841265)))) {
16366 0 : mozilla::ipc::SentinelReadError("Error deserializing 'width' (uint32_t) member of 'IPCDataTransferImage'");
16367 0 : return false;
16368 : }
16369 0 : if ((!(Read((&((v__)->height())), msg__, iter__)))) {
16370 0 : FatalError("Error deserializing 'height' (uint32_t) member of 'IPCDataTransferImage'");
16371 0 : return false;
16372 : }
16373 : // Sentinel = 'height'
16374 0 : if ((!((msg__)->ReadSentinel(iter__, 440091919)))) {
16375 0 : mozilla::ipc::SentinelReadError("Error deserializing 'height' (uint32_t) member of 'IPCDataTransferImage'");
16376 0 : return false;
16377 : }
16378 0 : if ((!(Read((&((v__)->stride())), msg__, iter__)))) {
16379 0 : FatalError("Error deserializing 'stride' (uint32_t) member of 'IPCDataTransferImage'");
16380 0 : return false;
16381 : }
16382 : // Sentinel = 'stride'
16383 0 : if ((!((msg__)->ReadSentinel(iter__, 2746301169)))) {
16384 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stride' (uint32_t) member of 'IPCDataTransferImage'");
16385 0 : return false;
16386 : }
16387 0 : if ((!(Read((&((v__)->format())), msg__, iter__)))) {
16388 0 : FatalError("Error deserializing 'format' (uint8_t) member of 'IPCDataTransferImage'");
16389 0 : return false;
16390 : }
16391 : // Sentinel = 'format'
16392 0 : if ((!((msg__)->ReadSentinel(iter__, 2052265543)))) {
16393 0 : mozilla::ipc::SentinelReadError("Error deserializing 'format' (uint8_t) member of 'IPCDataTransferImage'");
16394 0 : return false;
16395 : }
16396 0 : return true;
16397 : }
16398 :
16399 0 : auto PContentParent::Write(
16400 : const PJavaScriptParent* v__,
16401 : Message* msg__,
16402 : bool nullable__) -> void
16403 : {
16404 : int32_t id;
16405 0 : if ((!(v__))) {
16406 0 : if ((!(nullable__))) {
16407 0 : FatalError("NULL actor value passed to non-nullable param");
16408 : }
16409 0 : id = 0;
16410 : }
16411 : else {
16412 0 : id = (v__)->Id();
16413 0 : if ((1) == (id)) {
16414 0 : FatalError("actor has been |delete|d");
16415 : }
16416 : }
16417 :
16418 0 : Write(id, msg__);
16419 0 : }
16420 :
16421 0 : auto PContentParent::Read(
16422 : PJavaScriptParent** v__,
16423 : const Message* msg__,
16424 : PickleIterator* iter__,
16425 : bool nullable__) -> bool
16426 : {
16427 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PJavaScript", PJavaScriptMsgStart);
16428 0 : if ((actor).isNothing()) {
16429 0 : return false;
16430 : }
16431 :
16432 0 : (*(v__)) = static_cast<PJavaScriptParent*>((actor).value());
16433 0 : return true;
16434 : }
16435 :
16436 0 : auto PContentParent::Write(
16437 : const nsTArray<PrincipalInfo>& v__,
16438 : Message* msg__) -> void
16439 : {
16440 0 : uint32_t length = (v__).Length();
16441 0 : Write(length, msg__);
16442 : // Sentinel = ('length', 'PrincipalInfo[]')
16443 0 : (msg__)->WriteSentinel(1032188126);
16444 :
16445 0 : for (auto& elem : v__) {
16446 0 : Write(elem, msg__);
16447 : // Sentinel = 'PrincipalInfo[]'
16448 0 : (msg__)->WriteSentinel(413380193);
16449 : }
16450 0 : }
16451 :
16452 0 : auto PContentParent::Read(
16453 : nsTArray<PrincipalInfo>* v__,
16454 : const Message* msg__,
16455 : PickleIterator* iter__) -> bool
16456 : {
16457 0 : nsTArray<PrincipalInfo> fa;
16458 : uint32_t length;
16459 0 : if ((!(Read((&(length)), msg__, iter__)))) {
16460 0 : mozilla::ipc::ArrayLengthReadError("PrincipalInfo[]");
16461 0 : return false;
16462 : }
16463 : // Sentinel = ('length', 'PrincipalInfo[]')
16464 0 : if ((!((msg__)->ReadSentinel(iter__, 1032188126)))) {
16465 0 : mozilla::ipc::SentinelReadError("PrincipalInfo[]");
16466 0 : return false;
16467 : }
16468 :
16469 0 : PrincipalInfo* elems = (fa).AppendElements(length);
16470 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
16471 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
16472 0 : FatalError("Error deserializing 'PrincipalInfo[i]'");
16473 0 : return false;
16474 : }
16475 : // Sentinel = 'PrincipalInfo[]'
16476 0 : if ((!((msg__)->ReadSentinel(iter__, 413380193)))) {
16477 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo[i]'");
16478 0 : return false;
16479 : }
16480 : }
16481 0 : (v__)->SwapElements(fa);
16482 0 : return true;
16483 : }
16484 :
16485 0 : auto PContentParent::Write(
16486 : const MaybeFileDesc& v__,
16487 : Message* msg__) -> void
16488 : {
16489 : typedef MaybeFileDesc type__;
16490 0 : Write(int((v__).type()), msg__);
16491 : // Sentinel = 'MaybeFileDesc'
16492 0 : (msg__)->WriteSentinel(241283548);
16493 :
16494 0 : switch ((v__).type()) {
16495 : case type__::TFileDescriptor:
16496 : {
16497 0 : Write((v__).get_FileDescriptor(), msg__);
16498 : // Sentinel = 'TFileDescriptor'
16499 0 : (msg__)->WriteSentinel(3431583866);
16500 0 : return;
16501 : }
16502 : case type__::Tvoid_t:
16503 : {
16504 0 : Write((v__).get_void_t(), msg__);
16505 : // Sentinel = 'Tvoid_t'
16506 0 : (msg__)->WriteSentinel(3041273328);
16507 0 : return;
16508 : }
16509 : default:
16510 : {
16511 0 : FatalError("unknown union type");
16512 0 : return;
16513 : }
16514 : }
16515 : }
16516 :
16517 0 : auto PContentParent::Read(
16518 : MaybeFileDesc* v__,
16519 : const Message* msg__,
16520 : PickleIterator* iter__) -> bool
16521 : {
16522 : typedef MaybeFileDesc type__;
16523 : int type;
16524 0 : if ((!(Read((&(type)), msg__, iter__)))) {
16525 0 : mozilla::ipc::UnionTypeReadError("MaybeFileDesc");
16526 0 : return false;
16527 : }
16528 : // Sentinel = 'MaybeFileDesc'
16529 0 : if ((!((msg__)->ReadSentinel(iter__, 241283548)))) {
16530 0 : mozilla::ipc::SentinelReadError("MaybeFileDesc");
16531 0 : return false;
16532 : }
16533 :
16534 0 : switch (type) {
16535 : case type__::TFileDescriptor:
16536 : {
16537 0 : FileDescriptor tmp = FileDescriptor();
16538 0 : (*(v__)) = tmp;
16539 0 : if ((!(Read((&((v__)->get_FileDescriptor())), msg__, iter__)))) {
16540 0 : FatalError("Error deserializing Union type");
16541 0 : return false;
16542 : }
16543 : // Sentinel = 'TFileDescriptor'
16544 0 : if ((!((msg__)->ReadSentinel(iter__, 3431583866)))) {
16545 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
16546 0 : return false;
16547 : }
16548 0 : return true;
16549 : }
16550 : case type__::Tvoid_t:
16551 : {
16552 : void_t tmp = void_t();
16553 0 : (*(v__)) = tmp;
16554 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
16555 0 : FatalError("Error deserializing Union type");
16556 0 : return false;
16557 : }
16558 : // Sentinel = 'Tvoid_t'
16559 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
16560 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
16561 0 : return false;
16562 : }
16563 0 : return true;
16564 : }
16565 : default:
16566 : {
16567 0 : FatalError("unknown union type");
16568 0 : return false;
16569 : }
16570 : }
16571 : }
16572 :
16573 2 : auto PContentParent::Write(
16574 : const nsTArray<ScreenDetails>& v__,
16575 : Message* msg__) -> void
16576 : {
16577 2 : uint32_t length = (v__).Length();
16578 2 : Write(length, msg__);
16579 : // Sentinel = ('length', 'ScreenDetails[]')
16580 2 : (msg__)->WriteSentinel(2450401974);
16581 :
16582 4 : for (auto& elem : v__) {
16583 2 : Write(elem, msg__);
16584 : // Sentinel = 'ScreenDetails[]'
16585 2 : (msg__)->WriteSentinel(288255017);
16586 : }
16587 2 : }
16588 :
16589 0 : auto PContentParent::Read(
16590 : nsTArray<ScreenDetails>* v__,
16591 : const Message* msg__,
16592 : PickleIterator* iter__) -> bool
16593 : {
16594 0 : nsTArray<ScreenDetails> fa;
16595 : uint32_t length;
16596 0 : if ((!(Read((&(length)), msg__, iter__)))) {
16597 0 : mozilla::ipc::ArrayLengthReadError("ScreenDetails[]");
16598 0 : return false;
16599 : }
16600 : // Sentinel = ('length', 'ScreenDetails[]')
16601 0 : if ((!((msg__)->ReadSentinel(iter__, 2450401974)))) {
16602 0 : mozilla::ipc::SentinelReadError("ScreenDetails[]");
16603 0 : return false;
16604 : }
16605 :
16606 0 : ScreenDetails* elems = (fa).AppendElements(length);
16607 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
16608 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
16609 0 : FatalError("Error deserializing 'ScreenDetails[i]'");
16610 0 : return false;
16611 : }
16612 : // Sentinel = 'ScreenDetails[]'
16613 0 : if ((!((msg__)->ReadSentinel(iter__, 288255017)))) {
16614 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ScreenDetails[i]'");
16615 0 : return false;
16616 : }
16617 : }
16618 0 : (v__)->SwapElements(fa);
16619 0 : return true;
16620 : }
16621 :
16622 3 : auto PContentParent::Write(
16623 : const nsTArray<DataStorageItem>& v__,
16624 : Message* msg__) -> void
16625 : {
16626 3 : uint32_t length = (v__).Length();
16627 3 : Write(length, msg__);
16628 : // Sentinel = ('length', 'DataStorageItem[]')
16629 3 : (msg__)->WriteSentinel(3420598400);
16630 :
16631 3 : for (auto& elem : v__) {
16632 0 : Write(elem, msg__);
16633 : // Sentinel = 'DataStorageItem[]'
16634 0 : (msg__)->WriteSentinel(703761943);
16635 : }
16636 3 : }
16637 :
16638 0 : auto PContentParent::Read(
16639 : nsTArray<DataStorageItem>* v__,
16640 : const Message* msg__,
16641 : PickleIterator* iter__) -> bool
16642 : {
16643 0 : nsTArray<DataStorageItem> fa;
16644 : uint32_t length;
16645 0 : if ((!(Read((&(length)), msg__, iter__)))) {
16646 0 : mozilla::ipc::ArrayLengthReadError("DataStorageItem[]");
16647 0 : return false;
16648 : }
16649 : // Sentinel = ('length', 'DataStorageItem[]')
16650 0 : if ((!((msg__)->ReadSentinel(iter__, 3420598400)))) {
16651 0 : mozilla::ipc::SentinelReadError("DataStorageItem[]");
16652 0 : return false;
16653 : }
16654 :
16655 0 : DataStorageItem* elems = (fa).AppendElements(length);
16656 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
16657 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
16658 0 : FatalError("Error deserializing 'DataStorageItem[i]'");
16659 0 : return false;
16660 : }
16661 : // Sentinel = 'DataStorageItem[]'
16662 0 : if ((!((msg__)->ReadSentinel(iter__, 703761943)))) {
16663 0 : mozilla::ipc::SentinelReadError("Error deserializing 'DataStorageItem[i]'");
16664 0 : return false;
16665 : }
16666 : }
16667 0 : (v__)->SwapElements(fa);
16668 0 : return true;
16669 : }
16670 :
16671 2 : auto PContentParent::Write(
16672 : const nsTArray<MessagePortIdentifier>& v__,
16673 : Message* msg__) -> void
16674 : {
16675 2 : uint32_t length = (v__).Length();
16676 2 : Write(length, msg__);
16677 : // Sentinel = ('length', 'MessagePortIdentifier[]')
16678 2 : (msg__)->WriteSentinel(680130807);
16679 :
16680 2 : for (auto& elem : v__) {
16681 0 : Write(elem, msg__);
16682 : // Sentinel = 'MessagePortIdentifier[]'
16683 0 : (msg__)->WriteSentinel(1200404786);
16684 : }
16685 2 : }
16686 :
16687 3 : auto PContentParent::Read(
16688 : nsTArray<MessagePortIdentifier>* v__,
16689 : const Message* msg__,
16690 : PickleIterator* iter__) -> bool
16691 : {
16692 6 : nsTArray<MessagePortIdentifier> fa;
16693 : uint32_t length;
16694 3 : if ((!(Read((&(length)), msg__, iter__)))) {
16695 0 : mozilla::ipc::ArrayLengthReadError("MessagePortIdentifier[]");
16696 0 : return false;
16697 : }
16698 : // Sentinel = ('length', 'MessagePortIdentifier[]')
16699 3 : if ((!((msg__)->ReadSentinel(iter__, 680130807)))) {
16700 0 : mozilla::ipc::SentinelReadError("MessagePortIdentifier[]");
16701 0 : return false;
16702 : }
16703 :
16704 3 : MessagePortIdentifier* elems = (fa).AppendElements(length);
16705 3 : for (uint32_t i = 0; (i) < (length); (++(i))) {
16706 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
16707 0 : FatalError("Error deserializing 'MessagePortIdentifier[i]'");
16708 0 : return false;
16709 : }
16710 : // Sentinel = 'MessagePortIdentifier[]'
16711 0 : if ((!((msg__)->ReadSentinel(iter__, 1200404786)))) {
16712 0 : mozilla::ipc::SentinelReadError("Error deserializing 'MessagePortIdentifier[i]'");
16713 0 : return false;
16714 : }
16715 : }
16716 3 : (v__)->SwapElements(fa);
16717 3 : return true;
16718 : }
16719 :
16720 0 : auto PContentParent::Write(
16721 : const PMediaParent* v__,
16722 : Message* msg__,
16723 : bool nullable__) -> void
16724 : {
16725 : int32_t id;
16726 0 : if ((!(v__))) {
16727 0 : if ((!(nullable__))) {
16728 0 : FatalError("NULL actor value passed to non-nullable param");
16729 : }
16730 0 : id = 0;
16731 : }
16732 : else {
16733 0 : id = (v__)->Id();
16734 0 : if ((1) == (id)) {
16735 0 : FatalError("actor has been |delete|d");
16736 : }
16737 : }
16738 :
16739 0 : Write(id, msg__);
16740 0 : }
16741 :
16742 0 : auto PContentParent::Read(
16743 : PMediaParent** v__,
16744 : const Message* msg__,
16745 : PickleIterator* iter__,
16746 : bool nullable__) -> bool
16747 : {
16748 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PMedia", PMediaMsgStart);
16749 0 : if ((actor).isNothing()) {
16750 0 : return false;
16751 : }
16752 :
16753 0 : (*(v__)) = static_cast<PMediaParent*>((actor).value());
16754 0 : return true;
16755 : }
16756 :
16757 0 : auto PContentParent::Write(
16758 : const PermissionRequest& v__,
16759 : Message* msg__) -> void
16760 : {
16761 0 : Write((v__).type(), msg__);
16762 : // Sentinel = 'type'
16763 0 : (msg__)->WriteSentinel(2982068540);
16764 0 : Write((v__).access(), msg__);
16765 : // Sentinel = 'access'
16766 0 : (msg__)->WriteSentinel(52582576);
16767 0 : Write((v__).options(), msg__);
16768 : // Sentinel = 'options'
16769 0 : (msg__)->WriteSentinel(33222909);
16770 0 : }
16771 :
16772 0 : auto PContentParent::Read(
16773 : PermissionRequest* v__,
16774 : const Message* msg__,
16775 : PickleIterator* iter__) -> bool
16776 : {
16777 0 : if ((!(Read((&((v__)->type())), msg__, iter__)))) {
16778 0 : FatalError("Error deserializing 'type' (nsCString) member of 'PermissionRequest'");
16779 0 : return false;
16780 : }
16781 : // Sentinel = 'type'
16782 0 : if ((!((msg__)->ReadSentinel(iter__, 2982068540)))) {
16783 0 : mozilla::ipc::SentinelReadError("Error deserializing 'type' (nsCString) member of 'PermissionRequest'");
16784 0 : return false;
16785 : }
16786 0 : if ((!(Read((&((v__)->access())), msg__, iter__)))) {
16787 0 : FatalError("Error deserializing 'access' (nsCString) member of 'PermissionRequest'");
16788 0 : return false;
16789 : }
16790 : // Sentinel = 'access'
16791 0 : if ((!((msg__)->ReadSentinel(iter__, 52582576)))) {
16792 0 : mozilla::ipc::SentinelReadError("Error deserializing 'access' (nsCString) member of 'PermissionRequest'");
16793 0 : return false;
16794 : }
16795 0 : if ((!(Read((&((v__)->options())), msg__, iter__)))) {
16796 0 : FatalError("Error deserializing 'options' (nsString[]) member of 'PermissionRequest'");
16797 0 : return false;
16798 : }
16799 : // Sentinel = 'options'
16800 0 : if ((!((msg__)->ReadSentinel(iter__, 33222909)))) {
16801 0 : mozilla::ipc::SentinelReadError("Error deserializing 'options' (nsString[]) member of 'PermissionRequest'");
16802 0 : return false;
16803 : }
16804 0 : return true;
16805 : }
16806 :
16807 0 : auto PContentParent::Write(
16808 : const FontFamilyListEntry& v__,
16809 : Message* msg__) -> void
16810 : {
16811 0 : Write((v__).familyName(), msg__);
16812 : // Sentinel = 'familyName'
16813 0 : (msg__)->WriteSentinel(2706306507);
16814 0 : Write((v__).entryType(), msg__);
16815 : // Sentinel = 'entryType'
16816 0 : (msg__)->WriteSentinel(2383838557);
16817 0 : }
16818 :
16819 0 : auto PContentParent::Read(
16820 : FontFamilyListEntry* v__,
16821 : const Message* msg__,
16822 : PickleIterator* iter__) -> bool
16823 : {
16824 0 : if ((!(Read((&((v__)->familyName())), msg__, iter__)))) {
16825 0 : FatalError("Error deserializing 'familyName' (nsString) member of 'FontFamilyListEntry'");
16826 0 : return false;
16827 : }
16828 : // Sentinel = 'familyName'
16829 0 : if ((!((msg__)->ReadSentinel(iter__, 2706306507)))) {
16830 0 : mozilla::ipc::SentinelReadError("Error deserializing 'familyName' (nsString) member of 'FontFamilyListEntry'");
16831 0 : return false;
16832 : }
16833 0 : if ((!(Read((&((v__)->entryType())), msg__, iter__)))) {
16834 0 : FatalError("Error deserializing 'entryType' (uint8_t) member of 'FontFamilyListEntry'");
16835 0 : return false;
16836 : }
16837 : // Sentinel = 'entryType'
16838 0 : if ((!((msg__)->ReadSentinel(iter__, 2383838557)))) {
16839 0 : mozilla::ipc::SentinelReadError("Error deserializing 'entryType' (uint8_t) member of 'FontFamilyListEntry'");
16840 0 : return false;
16841 : }
16842 0 : return true;
16843 : }
16844 :
16845 0 : auto PContentParent::Write(
16846 : const AndroidSystemInfo& v__,
16847 : Message* msg__) -> void
16848 : {
16849 0 : Write((v__).device(), msg__);
16850 : // Sentinel = 'device'
16851 0 : (msg__)->WriteSentinel(1277795288);
16852 0 : Write((v__).manufacturer(), msg__);
16853 : // Sentinel = 'manufacturer'
16854 0 : (msg__)->WriteSentinel(1200082655);
16855 0 : Write((v__).release_version(), msg__);
16856 : // Sentinel = 'release_version'
16857 0 : (msg__)->WriteSentinel(833734545);
16858 0 : Write((v__).hardware(), msg__);
16859 : // Sentinel = 'hardware'
16860 0 : (msg__)->WriteSentinel(2165251472);
16861 0 : Write((v__).sdk_version(), msg__);
16862 : // Sentinel = 'sdk_version'
16863 0 : (msg__)->WriteSentinel(626870578);
16864 0 : Write((v__).isTablet(), msg__);
16865 : // Sentinel = 'isTablet'
16866 0 : (msg__)->WriteSentinel(1113371024);
16867 0 : }
16868 :
16869 0 : auto PContentParent::Read(
16870 : AndroidSystemInfo* v__,
16871 : const Message* msg__,
16872 : PickleIterator* iter__) -> bool
16873 : {
16874 0 : if ((!(Read((&((v__)->device())), msg__, iter__)))) {
16875 0 : FatalError("Error deserializing 'device' (nsString) member of 'AndroidSystemInfo'");
16876 0 : return false;
16877 : }
16878 : // Sentinel = 'device'
16879 0 : if ((!((msg__)->ReadSentinel(iter__, 1277795288)))) {
16880 0 : mozilla::ipc::SentinelReadError("Error deserializing 'device' (nsString) member of 'AndroidSystemInfo'");
16881 0 : return false;
16882 : }
16883 0 : if ((!(Read((&((v__)->manufacturer())), msg__, iter__)))) {
16884 0 : FatalError("Error deserializing 'manufacturer' (nsString) member of 'AndroidSystemInfo'");
16885 0 : return false;
16886 : }
16887 : // Sentinel = 'manufacturer'
16888 0 : if ((!((msg__)->ReadSentinel(iter__, 1200082655)))) {
16889 0 : mozilla::ipc::SentinelReadError("Error deserializing 'manufacturer' (nsString) member of 'AndroidSystemInfo'");
16890 0 : return false;
16891 : }
16892 0 : if ((!(Read((&((v__)->release_version())), msg__, iter__)))) {
16893 0 : FatalError("Error deserializing 'release_version' (nsString) member of 'AndroidSystemInfo'");
16894 0 : return false;
16895 : }
16896 : // Sentinel = 'release_version'
16897 0 : if ((!((msg__)->ReadSentinel(iter__, 833734545)))) {
16898 0 : mozilla::ipc::SentinelReadError("Error deserializing 'release_version' (nsString) member of 'AndroidSystemInfo'");
16899 0 : return false;
16900 : }
16901 0 : if ((!(Read((&((v__)->hardware())), msg__, iter__)))) {
16902 0 : FatalError("Error deserializing 'hardware' (nsString) member of 'AndroidSystemInfo'");
16903 0 : return false;
16904 : }
16905 : // Sentinel = 'hardware'
16906 0 : if ((!((msg__)->ReadSentinel(iter__, 2165251472)))) {
16907 0 : mozilla::ipc::SentinelReadError("Error deserializing 'hardware' (nsString) member of 'AndroidSystemInfo'");
16908 0 : return false;
16909 : }
16910 0 : if ((!(Read((&((v__)->sdk_version())), msg__, iter__)))) {
16911 0 : FatalError("Error deserializing 'sdk_version' (uint32_t) member of 'AndroidSystemInfo'");
16912 0 : return false;
16913 : }
16914 : // Sentinel = 'sdk_version'
16915 0 : if ((!((msg__)->ReadSentinel(iter__, 626870578)))) {
16916 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sdk_version' (uint32_t) member of 'AndroidSystemInfo'");
16917 0 : return false;
16918 : }
16919 0 : if ((!(Read((&((v__)->isTablet())), msg__, iter__)))) {
16920 0 : FatalError("Error deserializing 'isTablet' (bool) member of 'AndroidSystemInfo'");
16921 0 : return false;
16922 : }
16923 : // Sentinel = 'isTablet'
16924 0 : if ((!((msg__)->ReadSentinel(iter__, 1113371024)))) {
16925 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isTablet' (bool) member of 'AndroidSystemInfo'");
16926 0 : return false;
16927 : }
16928 0 : return true;
16929 : }
16930 :
16931 0 : auto PContentParent::Write(
16932 : const FileCreationSuccessResult& v__,
16933 : Message* msg__) -> void
16934 : {
16935 0 : Write((v__).blob(), msg__);
16936 : // Sentinel = 'blob'
16937 0 : (msg__)->WriteSentinel(1963585077);
16938 0 : }
16939 :
16940 0 : auto PContentParent::Read(
16941 : FileCreationSuccessResult* v__,
16942 : const Message* msg__,
16943 : PickleIterator* iter__) -> bool
16944 : {
16945 0 : if ((!(Read((&((v__)->blob())), msg__, iter__)))) {
16946 0 : FatalError("Error deserializing 'blob' (IPCBlob) member of 'FileCreationSuccessResult'");
16947 0 : return false;
16948 : }
16949 : // Sentinel = 'blob'
16950 0 : if ((!((msg__)->ReadSentinel(iter__, 1963585077)))) {
16951 0 : mozilla::ipc::SentinelReadError("Error deserializing 'blob' (IPCBlob) member of 'FileCreationSuccessResult'");
16952 0 : return false;
16953 : }
16954 0 : return true;
16955 : }
16956 :
16957 2 : auto PContentParent::Write(
16958 : const nsTArray<BlobURLRegistrationData>& v__,
16959 : Message* msg__) -> void
16960 : {
16961 2 : uint32_t length = (v__).Length();
16962 2 : Write(length, msg__);
16963 : // Sentinel = ('length', 'BlobURLRegistrationData[]')
16964 2 : (msg__)->WriteSentinel(3766311259);
16965 :
16966 2 : for (auto& elem : v__) {
16967 0 : Write(elem, msg__);
16968 : // Sentinel = 'BlobURLRegistrationData[]'
16969 0 : (msg__)->WriteSentinel(2420421630);
16970 : }
16971 2 : }
16972 :
16973 0 : auto PContentParent::Read(
16974 : nsTArray<BlobURLRegistrationData>* v__,
16975 : const Message* msg__,
16976 : PickleIterator* iter__) -> bool
16977 : {
16978 0 : nsTArray<BlobURLRegistrationData> fa;
16979 : uint32_t length;
16980 0 : if ((!(Read((&(length)), msg__, iter__)))) {
16981 0 : mozilla::ipc::ArrayLengthReadError("BlobURLRegistrationData[]");
16982 0 : return false;
16983 : }
16984 : // Sentinel = ('length', 'BlobURLRegistrationData[]')
16985 0 : if ((!((msg__)->ReadSentinel(iter__, 3766311259)))) {
16986 0 : mozilla::ipc::SentinelReadError("BlobURLRegistrationData[]");
16987 0 : return false;
16988 : }
16989 :
16990 0 : BlobURLRegistrationData* elems = (fa).AppendElements(length);
16991 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
16992 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
16993 0 : FatalError("Error deserializing 'BlobURLRegistrationData[i]'");
16994 0 : return false;
16995 : }
16996 : // Sentinel = 'BlobURLRegistrationData[]'
16997 0 : if ((!((msg__)->ReadSentinel(iter__, 2420421630)))) {
16998 0 : mozilla::ipc::SentinelReadError("Error deserializing 'BlobURLRegistrationData[i]'");
16999 0 : return false;
17000 : }
17001 : }
17002 0 : (v__)->SwapElements(fa);
17003 0 : return true;
17004 : }
17005 :
17006 0 : auto PContentParent::Write(
17007 : const FakePluginTag& v__,
17008 : Message* msg__) -> void
17009 : {
17010 0 : Write((v__).id(), msg__);
17011 : // Sentinel = 'id'
17012 0 : (msg__)->WriteSentinel(2794505629);
17013 0 : Write((v__).handlerURI(), msg__);
17014 : // Sentinel = 'handlerURI'
17015 0 : (msg__)->WriteSentinel(1165560024);
17016 0 : Write((v__).name(), msg__);
17017 : // Sentinel = 'name'
17018 0 : (msg__)->WriteSentinel(15034981);
17019 0 : Write((v__).description(), msg__);
17020 : // Sentinel = 'description'
17021 0 : (msg__)->WriteSentinel(962879941);
17022 0 : Write((v__).mimeTypes(), msg__);
17023 : // Sentinel = 'mimeTypes'
17024 0 : (msg__)->WriteSentinel(3323493602);
17025 0 : Write((v__).mimeDescriptions(), msg__);
17026 : // Sentinel = 'mimeDescriptions'
17027 0 : (msg__)->WriteSentinel(3649655353);
17028 0 : Write((v__).extensions(), msg__);
17029 : // Sentinel = 'extensions'
17030 0 : (msg__)->WriteSentinel(743266036);
17031 0 : Write((v__).niceName(), msg__);
17032 : // Sentinel = 'niceName'
17033 0 : (msg__)->WriteSentinel(77419014);
17034 0 : Write((v__).sandboxScript(), msg__);
17035 : // Sentinel = 'sandboxScript'
17036 0 : (msg__)->WriteSentinel(2384310101);
17037 0 : }
17038 :
17039 0 : auto PContentParent::Read(
17040 : FakePluginTag* v__,
17041 : const Message* msg__,
17042 : PickleIterator* iter__) -> bool
17043 : {
17044 0 : if ((!(Read((&((v__)->id())), msg__, iter__)))) {
17045 0 : FatalError("Error deserializing 'id' (uint32_t) member of 'FakePluginTag'");
17046 0 : return false;
17047 : }
17048 : // Sentinel = 'id'
17049 0 : if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
17050 0 : mozilla::ipc::SentinelReadError("Error deserializing 'id' (uint32_t) member of 'FakePluginTag'");
17051 0 : return false;
17052 : }
17053 0 : if ((!(Read((&((v__)->handlerURI())), msg__, iter__)))) {
17054 0 : FatalError("Error deserializing 'handlerURI' (URIParams) member of 'FakePluginTag'");
17055 0 : return false;
17056 : }
17057 : // Sentinel = 'handlerURI'
17058 0 : if ((!((msg__)->ReadSentinel(iter__, 1165560024)))) {
17059 0 : mozilla::ipc::SentinelReadError("Error deserializing 'handlerURI' (URIParams) member of 'FakePluginTag'");
17060 0 : return false;
17061 : }
17062 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
17063 0 : FatalError("Error deserializing 'name' (nsCString) member of 'FakePluginTag'");
17064 0 : return false;
17065 : }
17066 : // Sentinel = 'name'
17067 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
17068 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'FakePluginTag'");
17069 0 : return false;
17070 : }
17071 0 : if ((!(Read((&((v__)->description())), msg__, iter__)))) {
17072 0 : FatalError("Error deserializing 'description' (nsCString) member of 'FakePluginTag'");
17073 0 : return false;
17074 : }
17075 : // Sentinel = 'description'
17076 0 : if ((!((msg__)->ReadSentinel(iter__, 962879941)))) {
17077 0 : mozilla::ipc::SentinelReadError("Error deserializing 'description' (nsCString) member of 'FakePluginTag'");
17078 0 : return false;
17079 : }
17080 0 : if ((!(Read((&((v__)->mimeTypes())), msg__, iter__)))) {
17081 0 : FatalError("Error deserializing 'mimeTypes' (nsCString[]) member of 'FakePluginTag'");
17082 0 : return false;
17083 : }
17084 : // Sentinel = 'mimeTypes'
17085 0 : if ((!((msg__)->ReadSentinel(iter__, 3323493602)))) {
17086 0 : mozilla::ipc::SentinelReadError("Error deserializing 'mimeTypes' (nsCString[]) member of 'FakePluginTag'");
17087 0 : return false;
17088 : }
17089 0 : if ((!(Read((&((v__)->mimeDescriptions())), msg__, iter__)))) {
17090 0 : FatalError("Error deserializing 'mimeDescriptions' (nsCString[]) member of 'FakePluginTag'");
17091 0 : return false;
17092 : }
17093 : // Sentinel = 'mimeDescriptions'
17094 0 : if ((!((msg__)->ReadSentinel(iter__, 3649655353)))) {
17095 0 : mozilla::ipc::SentinelReadError("Error deserializing 'mimeDescriptions' (nsCString[]) member of 'FakePluginTag'");
17096 0 : return false;
17097 : }
17098 0 : if ((!(Read((&((v__)->extensions())), msg__, iter__)))) {
17099 0 : FatalError("Error deserializing 'extensions' (nsCString[]) member of 'FakePluginTag'");
17100 0 : return false;
17101 : }
17102 : // Sentinel = 'extensions'
17103 0 : if ((!((msg__)->ReadSentinel(iter__, 743266036)))) {
17104 0 : mozilla::ipc::SentinelReadError("Error deserializing 'extensions' (nsCString[]) member of 'FakePluginTag'");
17105 0 : return false;
17106 : }
17107 0 : if ((!(Read((&((v__)->niceName())), msg__, iter__)))) {
17108 0 : FatalError("Error deserializing 'niceName' (nsCString) member of 'FakePluginTag'");
17109 0 : return false;
17110 : }
17111 : // Sentinel = 'niceName'
17112 0 : if ((!((msg__)->ReadSentinel(iter__, 77419014)))) {
17113 0 : mozilla::ipc::SentinelReadError("Error deserializing 'niceName' (nsCString) member of 'FakePluginTag'");
17114 0 : return false;
17115 : }
17116 0 : if ((!(Read((&((v__)->sandboxScript())), msg__, iter__)))) {
17117 0 : FatalError("Error deserializing 'sandboxScript' (nsString) member of 'FakePluginTag'");
17118 0 : return false;
17119 : }
17120 : // Sentinel = 'sandboxScript'
17121 0 : if ((!((msg__)->ReadSentinel(iter__, 2384310101)))) {
17122 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sandboxScript' (nsString) member of 'FakePluginTag'");
17123 0 : return false;
17124 : }
17125 0 : return true;
17126 : }
17127 :
17128 3 : auto PContentParent::Write(
17129 : const GMPAPITags& v__,
17130 : Message* msg__) -> void
17131 : {
17132 3 : Write((v__).api(), msg__);
17133 : // Sentinel = 'api'
17134 3 : (msg__)->WriteSentinel(2712041747);
17135 3 : Write((v__).tags(), msg__);
17136 : // Sentinel = 'tags'
17137 3 : (msg__)->WriteSentinel(2697818311);
17138 3 : }
17139 :
17140 0 : auto PContentParent::Read(
17141 : GMPAPITags* v__,
17142 : const Message* msg__,
17143 : PickleIterator* iter__) -> bool
17144 : {
17145 0 : if ((!(Read((&((v__)->api())), msg__, iter__)))) {
17146 0 : FatalError("Error deserializing 'api' (nsCString) member of 'GMPAPITags'");
17147 0 : return false;
17148 : }
17149 : // Sentinel = 'api'
17150 0 : if ((!((msg__)->ReadSentinel(iter__, 2712041747)))) {
17151 0 : mozilla::ipc::SentinelReadError("Error deserializing 'api' (nsCString) member of 'GMPAPITags'");
17152 0 : return false;
17153 : }
17154 0 : if ((!(Read((&((v__)->tags())), msg__, iter__)))) {
17155 0 : FatalError("Error deserializing 'tags' (nsCString[]) member of 'GMPAPITags'");
17156 0 : return false;
17157 : }
17158 : // Sentinel = 'tags'
17159 0 : if ((!((msg__)->ReadSentinel(iter__, 2697818311)))) {
17160 0 : mozilla::ipc::SentinelReadError("Error deserializing 'tags' (nsCString[]) member of 'GMPAPITags'");
17161 0 : return false;
17162 : }
17163 0 : return true;
17164 : }
17165 :
17166 0 : auto PContentParent::Write(
17167 : const ServiceWorkerRegistrationData& v__,
17168 : Message* msg__) -> void
17169 : {
17170 0 : Write((v__).scope(), msg__);
17171 : // Sentinel = 'scope'
17172 0 : (msg__)->WriteSentinel(2191984953);
17173 0 : Write((v__).currentWorkerURL(), msg__);
17174 : // Sentinel = 'currentWorkerURL'
17175 0 : (msg__)->WriteSentinel(3796591296);
17176 0 : Write((v__).currentWorkerHandlesFetch(), msg__);
17177 : // Sentinel = 'currentWorkerHandlesFetch'
17178 0 : (msg__)->WriteSentinel(2963825215);
17179 0 : Write((v__).cacheName(), msg__);
17180 : // Sentinel = 'cacheName'
17181 0 : (msg__)->WriteSentinel(3398830226);
17182 0 : Write((v__).principal(), msg__);
17183 : // Sentinel = 'principal'
17184 0 : (msg__)->WriteSentinel(732240927);
17185 0 : Write((v__).loadFlags(), msg__);
17186 : // Sentinel = 'loadFlags'
17187 0 : (msg__)->WriteSentinel(2391120444);
17188 0 : Write((v__).currentWorkerInstalledTime(), msg__);
17189 : // Sentinel = 'currentWorkerInstalledTime'
17190 0 : (msg__)->WriteSentinel(1742163856);
17191 0 : Write((v__).currentWorkerActivatedTime(), msg__);
17192 : // Sentinel = 'currentWorkerActivatedTime'
17193 0 : (msg__)->WriteSentinel(812310635);
17194 0 : Write((v__).lastUpdateTime(), msg__);
17195 : // Sentinel = 'lastUpdateTime'
17196 0 : (msg__)->WriteSentinel(1207452294);
17197 0 : }
17198 :
17199 0 : auto PContentParent::Read(
17200 : ServiceWorkerRegistrationData* v__,
17201 : const Message* msg__,
17202 : PickleIterator* iter__) -> bool
17203 : {
17204 0 : if ((!(Read((&((v__)->scope())), msg__, iter__)))) {
17205 0 : FatalError("Error deserializing 'scope' (nsCString) member of 'ServiceWorkerRegistrationData'");
17206 0 : return false;
17207 : }
17208 : // Sentinel = 'scope'
17209 0 : if ((!((msg__)->ReadSentinel(iter__, 2191984953)))) {
17210 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scope' (nsCString) member of 'ServiceWorkerRegistrationData'");
17211 0 : return false;
17212 : }
17213 0 : if ((!(Read((&((v__)->currentWorkerURL())), msg__, iter__)))) {
17214 0 : FatalError("Error deserializing 'currentWorkerURL' (nsCString) member of 'ServiceWorkerRegistrationData'");
17215 0 : return false;
17216 : }
17217 : // Sentinel = 'currentWorkerURL'
17218 0 : if ((!((msg__)->ReadSentinel(iter__, 3796591296)))) {
17219 0 : mozilla::ipc::SentinelReadError("Error deserializing 'currentWorkerURL' (nsCString) member of 'ServiceWorkerRegistrationData'");
17220 0 : return false;
17221 : }
17222 0 : if ((!(Read((&((v__)->currentWorkerHandlesFetch())), msg__, iter__)))) {
17223 0 : FatalError("Error deserializing 'currentWorkerHandlesFetch' (bool) member of 'ServiceWorkerRegistrationData'");
17224 0 : return false;
17225 : }
17226 : // Sentinel = 'currentWorkerHandlesFetch'
17227 0 : if ((!((msg__)->ReadSentinel(iter__, 2963825215)))) {
17228 0 : mozilla::ipc::SentinelReadError("Error deserializing 'currentWorkerHandlesFetch' (bool) member of 'ServiceWorkerRegistrationData'");
17229 0 : return false;
17230 : }
17231 0 : if ((!(Read((&((v__)->cacheName())), msg__, iter__)))) {
17232 0 : FatalError("Error deserializing 'cacheName' (nsString) member of 'ServiceWorkerRegistrationData'");
17233 0 : return false;
17234 : }
17235 : // Sentinel = 'cacheName'
17236 0 : if ((!((msg__)->ReadSentinel(iter__, 3398830226)))) {
17237 0 : mozilla::ipc::SentinelReadError("Error deserializing 'cacheName' (nsString) member of 'ServiceWorkerRegistrationData'");
17238 0 : return false;
17239 : }
17240 0 : if ((!(Read((&((v__)->principal())), msg__, iter__)))) {
17241 0 : FatalError("Error deserializing 'principal' (PrincipalInfo) member of 'ServiceWorkerRegistrationData'");
17242 0 : return false;
17243 : }
17244 : // Sentinel = 'principal'
17245 0 : if ((!((msg__)->ReadSentinel(iter__, 732240927)))) {
17246 0 : mozilla::ipc::SentinelReadError("Error deserializing 'principal' (PrincipalInfo) member of 'ServiceWorkerRegistrationData'");
17247 0 : return false;
17248 : }
17249 0 : if ((!(Read((&((v__)->loadFlags())), msg__, iter__)))) {
17250 0 : FatalError("Error deserializing 'loadFlags' (uint32_t) member of 'ServiceWorkerRegistrationData'");
17251 0 : return false;
17252 : }
17253 : // Sentinel = 'loadFlags'
17254 0 : if ((!((msg__)->ReadSentinel(iter__, 2391120444)))) {
17255 0 : mozilla::ipc::SentinelReadError("Error deserializing 'loadFlags' (uint32_t) member of 'ServiceWorkerRegistrationData'");
17256 0 : return false;
17257 : }
17258 0 : if ((!(Read((&((v__)->currentWorkerInstalledTime())), msg__, iter__)))) {
17259 0 : FatalError("Error deserializing 'currentWorkerInstalledTime' (int64_t) member of 'ServiceWorkerRegistrationData'");
17260 0 : return false;
17261 : }
17262 : // Sentinel = 'currentWorkerInstalledTime'
17263 0 : if ((!((msg__)->ReadSentinel(iter__, 1742163856)))) {
17264 0 : mozilla::ipc::SentinelReadError("Error deserializing 'currentWorkerInstalledTime' (int64_t) member of 'ServiceWorkerRegistrationData'");
17265 0 : return false;
17266 : }
17267 0 : if ((!(Read((&((v__)->currentWorkerActivatedTime())), msg__, iter__)))) {
17268 0 : FatalError("Error deserializing 'currentWorkerActivatedTime' (int64_t) member of 'ServiceWorkerRegistrationData'");
17269 0 : return false;
17270 : }
17271 : // Sentinel = 'currentWorkerActivatedTime'
17272 0 : if ((!((msg__)->ReadSentinel(iter__, 812310635)))) {
17273 0 : mozilla::ipc::SentinelReadError("Error deserializing 'currentWorkerActivatedTime' (int64_t) member of 'ServiceWorkerRegistrationData'");
17274 0 : return false;
17275 : }
17276 0 : if ((!(Read((&((v__)->lastUpdateTime())), msg__, iter__)))) {
17277 0 : FatalError("Error deserializing 'lastUpdateTime' (int64_t) member of 'ServiceWorkerRegistrationData'");
17278 0 : return false;
17279 : }
17280 : // Sentinel = 'lastUpdateTime'
17281 0 : if ((!((msg__)->ReadSentinel(iter__, 1207452294)))) {
17282 0 : mozilla::ipc::SentinelReadError("Error deserializing 'lastUpdateTime' (int64_t) member of 'ServiceWorkerRegistrationData'");
17283 0 : return false;
17284 : }
17285 0 : return true;
17286 : }
17287 :
17288 0 : auto PContentParent::Write(
17289 : const PCycleCollectWithLogsParent* v__,
17290 : Message* msg__,
17291 : bool nullable__) -> void
17292 : {
17293 : int32_t id;
17294 0 : if ((!(v__))) {
17295 0 : if ((!(nullable__))) {
17296 0 : FatalError("NULL actor value passed to non-nullable param");
17297 : }
17298 0 : id = 0;
17299 : }
17300 : else {
17301 0 : id = (v__)->Id();
17302 0 : if ((1) == (id)) {
17303 0 : FatalError("actor has been |delete|d");
17304 : }
17305 : }
17306 :
17307 0 : Write(id, msg__);
17308 0 : }
17309 :
17310 0 : auto PContentParent::Read(
17311 : PCycleCollectWithLogsParent** v__,
17312 : const Message* msg__,
17313 : PickleIterator* iter__,
17314 : bool nullable__) -> bool
17315 : {
17316 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PCycleCollectWithLogs", PCycleCollectWithLogsMsgStart);
17317 0 : if ((actor).isNothing()) {
17318 0 : return false;
17319 : }
17320 :
17321 0 : (*(v__)) = static_cast<PCycleCollectWithLogsParent*>((actor).value());
17322 0 : return true;
17323 : }
17324 :
17325 0 : auto PContentParent::Write(
17326 : const PWebBrowserPersistDocumentParent* v__,
17327 : Message* msg__,
17328 : bool nullable__) -> void
17329 : {
17330 : int32_t id;
17331 0 : if ((!(v__))) {
17332 0 : if ((!(nullable__))) {
17333 0 : FatalError("NULL actor value passed to non-nullable param");
17334 : }
17335 0 : id = 0;
17336 : }
17337 : else {
17338 0 : id = (v__)->Id();
17339 0 : if ((1) == (id)) {
17340 0 : FatalError("actor has been |delete|d");
17341 : }
17342 : }
17343 :
17344 0 : Write(id, msg__);
17345 0 : }
17346 :
17347 0 : auto PContentParent::Read(
17348 : PWebBrowserPersistDocumentParent** v__,
17349 : const Message* msg__,
17350 : PickleIterator* iter__,
17351 : bool nullable__) -> bool
17352 : {
17353 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PWebBrowserPersistDocument", PWebBrowserPersistDocumentMsgStart);
17354 0 : if ((actor).isNothing()) {
17355 0 : return false;
17356 : }
17357 :
17358 0 : (*(v__)) = static_cast<PWebBrowserPersistDocumentParent*>((actor).value());
17359 0 : return true;
17360 : }
17361 :
17362 0 : auto PContentParent::Write(
17363 : const PURLClassifierLocalParent* v__,
17364 : Message* msg__,
17365 : bool nullable__) -> void
17366 : {
17367 : int32_t id;
17368 0 : if ((!(v__))) {
17369 0 : if ((!(nullable__))) {
17370 0 : FatalError("NULL actor value passed to non-nullable param");
17371 : }
17372 0 : id = 0;
17373 : }
17374 : else {
17375 0 : id = (v__)->Id();
17376 0 : if ((1) == (id)) {
17377 0 : FatalError("actor has been |delete|d");
17378 : }
17379 : }
17380 :
17381 0 : Write(id, msg__);
17382 0 : }
17383 :
17384 0 : auto PContentParent::Read(
17385 : PURLClassifierLocalParent** v__,
17386 : const Message* msg__,
17387 : PickleIterator* iter__,
17388 : bool nullable__) -> bool
17389 : {
17390 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PURLClassifierLocal", PURLClassifierLocalMsgStart);
17391 0 : if ((actor).isNothing()) {
17392 0 : return false;
17393 : }
17394 :
17395 0 : (*(v__)) = static_cast<PURLClassifierLocalParent*>((actor).value());
17396 0 : return true;
17397 : }
17398 :
17399 0 : auto PContentParent::Write(
17400 : const PExternalHelperAppParent* v__,
17401 : Message* msg__,
17402 : bool nullable__) -> void
17403 : {
17404 : int32_t id;
17405 0 : if ((!(v__))) {
17406 0 : if ((!(nullable__))) {
17407 0 : FatalError("NULL actor value passed to non-nullable param");
17408 : }
17409 0 : id = 0;
17410 : }
17411 : else {
17412 0 : id = (v__)->Id();
17413 0 : if ((1) == (id)) {
17414 0 : FatalError("actor has been |delete|d");
17415 : }
17416 : }
17417 :
17418 0 : Write(id, msg__);
17419 0 : }
17420 :
17421 0 : auto PContentParent::Read(
17422 : PExternalHelperAppParent** v__,
17423 : const Message* msg__,
17424 : PickleIterator* iter__,
17425 : bool nullable__) -> bool
17426 : {
17427 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PExternalHelperApp", PExternalHelperAppMsgStart);
17428 0 : if ((actor).isNothing()) {
17429 0 : return false;
17430 : }
17431 :
17432 0 : (*(v__)) = static_cast<PExternalHelperAppParent*>((actor).value());
17433 0 : return true;
17434 : }
17435 :
17436 0 : auto PContentParent::Write(
17437 : const OptionalPrincipalInfo& v__,
17438 : Message* msg__) -> void
17439 : {
17440 : typedef OptionalPrincipalInfo type__;
17441 0 : Write(int((v__).type()), msg__);
17442 : // Sentinel = 'OptionalPrincipalInfo'
17443 0 : (msg__)->WriteSentinel(3041452007);
17444 :
17445 0 : switch ((v__).type()) {
17446 : case type__::Tvoid_t:
17447 : {
17448 0 : Write((v__).get_void_t(), msg__);
17449 : // Sentinel = 'Tvoid_t'
17450 0 : (msg__)->WriteSentinel(3041273328);
17451 0 : return;
17452 : }
17453 : case type__::TPrincipalInfo:
17454 : {
17455 0 : Write((v__).get_PrincipalInfo(), msg__);
17456 : // Sentinel = 'TPrincipalInfo'
17457 0 : (msg__)->WriteSentinel(1396743580);
17458 0 : return;
17459 : }
17460 : default:
17461 : {
17462 0 : FatalError("unknown union type");
17463 0 : return;
17464 : }
17465 : }
17466 : }
17467 :
17468 0 : auto PContentParent::Read(
17469 : OptionalPrincipalInfo* v__,
17470 : const Message* msg__,
17471 : PickleIterator* iter__) -> bool
17472 : {
17473 : typedef OptionalPrincipalInfo type__;
17474 : int type;
17475 0 : if ((!(Read((&(type)), msg__, iter__)))) {
17476 0 : mozilla::ipc::UnionTypeReadError("OptionalPrincipalInfo");
17477 0 : return false;
17478 : }
17479 : // Sentinel = 'OptionalPrincipalInfo'
17480 0 : if ((!((msg__)->ReadSentinel(iter__, 3041452007)))) {
17481 0 : mozilla::ipc::SentinelReadError("OptionalPrincipalInfo");
17482 0 : return false;
17483 : }
17484 :
17485 0 : switch (type) {
17486 : case type__::Tvoid_t:
17487 : {
17488 : void_t tmp = void_t();
17489 0 : (*(v__)) = tmp;
17490 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
17491 0 : FatalError("Error deserializing Union type");
17492 0 : return false;
17493 : }
17494 : // Sentinel = 'Tvoid_t'
17495 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
17496 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
17497 0 : return false;
17498 : }
17499 0 : return true;
17500 : }
17501 : case type__::TPrincipalInfo:
17502 : {
17503 0 : PrincipalInfo tmp = PrincipalInfo();
17504 0 : (*(v__)) = tmp;
17505 0 : if ((!(Read((&((v__)->get_PrincipalInfo())), msg__, iter__)))) {
17506 0 : FatalError("Error deserializing Union type");
17507 0 : return false;
17508 : }
17509 : // Sentinel = 'TPrincipalInfo'
17510 0 : if ((!((msg__)->ReadSentinel(iter__, 1396743580)))) {
17511 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
17512 0 : return false;
17513 : }
17514 0 : return true;
17515 : }
17516 : default:
17517 : {
17518 0 : FatalError("unknown union type");
17519 0 : return false;
17520 : }
17521 : }
17522 : }
17523 :
17524 0 : auto PContentParent::Write(
17525 : const POfflineCacheUpdateParent* v__,
17526 : Message* msg__,
17527 : bool nullable__) -> void
17528 : {
17529 : int32_t id;
17530 0 : if ((!(v__))) {
17531 0 : if ((!(nullable__))) {
17532 0 : FatalError("NULL actor value passed to non-nullable param");
17533 : }
17534 0 : id = 0;
17535 : }
17536 : else {
17537 0 : id = (v__)->Id();
17538 0 : if ((1) == (id)) {
17539 0 : FatalError("actor has been |delete|d");
17540 : }
17541 : }
17542 :
17543 0 : Write(id, msg__);
17544 0 : }
17545 :
17546 0 : auto PContentParent::Read(
17547 : POfflineCacheUpdateParent** v__,
17548 : const Message* msg__,
17549 : PickleIterator* iter__,
17550 : bool nullable__) -> bool
17551 : {
17552 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "POfflineCacheUpdate", POfflineCacheUpdateMsgStart);
17553 0 : if ((actor).isNothing()) {
17554 0 : return false;
17555 : }
17556 :
17557 0 : (*(v__)) = static_cast<POfflineCacheUpdateParent*>((actor).value());
17558 0 : return true;
17559 : }
17560 :
17561 0 : auto PContentParent::Write(
17562 : const ExpandedPrincipalInfo& v__,
17563 : Message* msg__) -> void
17564 : {
17565 0 : Write((v__).attrs(), msg__);
17566 : // Sentinel = 'attrs'
17567 0 : (msg__)->WriteSentinel(3014987797);
17568 0 : Write((v__).whitelist(), msg__);
17569 : // Sentinel = 'whitelist'
17570 0 : (msg__)->WriteSentinel(3731637258);
17571 0 : }
17572 :
17573 0 : auto PContentParent::Read(
17574 : ExpandedPrincipalInfo* v__,
17575 : const Message* msg__,
17576 : PickleIterator* iter__) -> bool
17577 : {
17578 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
17579 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
17580 0 : return false;
17581 : }
17582 : // Sentinel = 'attrs'
17583 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
17584 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
17585 0 : return false;
17586 : }
17587 0 : if ((!(Read((&((v__)->whitelist())), msg__, iter__)))) {
17588 0 : FatalError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
17589 0 : return false;
17590 : }
17591 : // Sentinel = 'whitelist'
17592 0 : if ((!((msg__)->ReadSentinel(iter__, 3731637258)))) {
17593 0 : mozilla::ipc::SentinelReadError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
17594 0 : return false;
17595 : }
17596 0 : return true;
17597 : }
17598 :
17599 0 : auto PContentParent::Write(
17600 : const HostObjectURIParams& v__,
17601 : Message* msg__) -> void
17602 : {
17603 0 : Write((v__).simpleParams(), msg__);
17604 : // Sentinel = 'simpleParams'
17605 0 : (msg__)->WriteSentinel(3404291700);
17606 0 : Write((v__).principal(), msg__);
17607 : // Sentinel = 'principal'
17608 0 : (msg__)->WriteSentinel(732240927);
17609 0 : }
17610 :
17611 0 : auto PContentParent::Read(
17612 : HostObjectURIParams* v__,
17613 : const Message* msg__,
17614 : PickleIterator* iter__) -> bool
17615 : {
17616 0 : if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
17617 0 : FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'HostObjectURIParams'");
17618 0 : return false;
17619 : }
17620 : // Sentinel = 'simpleParams'
17621 0 : if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
17622 0 : mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'HostObjectURIParams'");
17623 0 : return false;
17624 : }
17625 0 : if ((!(Read((&((v__)->principal())), msg__, iter__)))) {
17626 0 : FatalError("Error deserializing 'principal' (OptionalPrincipalInfo) member of 'HostObjectURIParams'");
17627 0 : return false;
17628 : }
17629 : // Sentinel = 'principal'
17630 0 : if ((!((msg__)->ReadSentinel(iter__, 732240927)))) {
17631 0 : mozilla::ipc::SentinelReadError("Error deserializing 'principal' (OptionalPrincipalInfo) member of 'HostObjectURIParams'");
17632 0 : return false;
17633 : }
17634 0 : return true;
17635 : }
17636 :
17637 0 : auto PContentParent::Write(
17638 : const InputStreamParamsWithFds& v__,
17639 : Message* msg__) -> void
17640 : {
17641 0 : Write((v__).stream(), msg__);
17642 : // Sentinel = 'stream'
17643 0 : (msg__)->WriteSentinel(4152748422);
17644 0 : Write((v__).optionalFds(), msg__);
17645 : // Sentinel = 'optionalFds'
17646 0 : (msg__)->WriteSentinel(1021803302);
17647 0 : }
17648 :
17649 0 : auto PContentParent::Read(
17650 : InputStreamParamsWithFds* v__,
17651 : const Message* msg__,
17652 : PickleIterator* iter__) -> bool
17653 : {
17654 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
17655 0 : FatalError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
17656 0 : return false;
17657 : }
17658 : // Sentinel = 'stream'
17659 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
17660 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
17661 0 : return false;
17662 : }
17663 0 : if ((!(Read((&((v__)->optionalFds())), msg__, iter__)))) {
17664 0 : FatalError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
17665 0 : return false;
17666 : }
17667 : // Sentinel = 'optionalFds'
17668 0 : if ((!((msg__)->ReadSentinel(iter__, 1021803302)))) {
17669 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
17670 0 : return false;
17671 : }
17672 0 : return true;
17673 : }
17674 :
17675 0 : auto PContentParent::Write(
17676 : const PStorageParent* v__,
17677 : Message* msg__,
17678 : bool nullable__) -> void
17679 : {
17680 : int32_t id;
17681 0 : if ((!(v__))) {
17682 0 : if ((!(nullable__))) {
17683 0 : FatalError("NULL actor value passed to non-nullable param");
17684 : }
17685 0 : id = 0;
17686 : }
17687 : else {
17688 0 : id = (v__)->Id();
17689 0 : if ((1) == (id)) {
17690 0 : FatalError("actor has been |delete|d");
17691 : }
17692 : }
17693 :
17694 0 : Write(id, msg__);
17695 0 : }
17696 :
17697 0 : auto PContentParent::Read(
17698 : PStorageParent** v__,
17699 : const Message* msg__,
17700 : PickleIterator* iter__,
17701 : bool nullable__) -> bool
17702 : {
17703 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PStorage", PStorageMsgStart);
17704 0 : if ((actor).isNothing()) {
17705 0 : return false;
17706 : }
17707 :
17708 0 : (*(v__)) = static_cast<PStorageParent*>((actor).value());
17709 0 : return true;
17710 : }
17711 :
17712 2 : auto PContentParent::Write(
17713 : const nsTArray<IPCBlob>& v__,
17714 : Message* msg__) -> void
17715 : {
17716 2 : uint32_t length = (v__).Length();
17717 2 : Write(length, msg__);
17718 : // Sentinel = ('length', 'IPCBlob[]')
17719 2 : (msg__)->WriteSentinel(894413667);
17720 :
17721 2 : for (auto& elem : v__) {
17722 0 : Write(elem, msg__);
17723 : // Sentinel = 'IPCBlob[]'
17724 0 : (msg__)->WriteSentinel(3337464726);
17725 : }
17726 2 : }
17727 :
17728 3 : auto PContentParent::Read(
17729 : nsTArray<IPCBlob>* v__,
17730 : const Message* msg__,
17731 : PickleIterator* iter__) -> bool
17732 : {
17733 6 : nsTArray<IPCBlob> fa;
17734 : uint32_t length;
17735 3 : if ((!(Read((&(length)), msg__, iter__)))) {
17736 0 : mozilla::ipc::ArrayLengthReadError("IPCBlob[]");
17737 0 : return false;
17738 : }
17739 : // Sentinel = ('length', 'IPCBlob[]')
17740 3 : if ((!((msg__)->ReadSentinel(iter__, 894413667)))) {
17741 0 : mozilla::ipc::SentinelReadError("IPCBlob[]");
17742 0 : return false;
17743 : }
17744 :
17745 3 : IPCBlob* elems = (fa).AppendElements(length);
17746 3 : for (uint32_t i = 0; (i) < (length); (++(i))) {
17747 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
17748 0 : FatalError("Error deserializing 'IPCBlob[i]'");
17749 0 : return false;
17750 : }
17751 : // Sentinel = 'IPCBlob[]'
17752 0 : if ((!((msg__)->ReadSentinel(iter__, 3337464726)))) {
17753 0 : mozilla::ipc::SentinelReadError("Error deserializing 'IPCBlob[i]'");
17754 0 : return false;
17755 : }
17756 : }
17757 3 : (v__)->SwapElements(fa);
17758 3 : return true;
17759 : }
17760 :
17761 0 : auto PContentParent::Write(
17762 : const CreatedWindowInfo& v__,
17763 : Message* msg__) -> void
17764 : {
17765 0 : Write((v__).rv(), msg__);
17766 : // Sentinel = 'rv'
17767 0 : (msg__)->WriteSentinel(702481058);
17768 0 : Write((v__).windowOpened(), msg__);
17769 : // Sentinel = 'windowOpened'
17770 0 : (msg__)->WriteSentinel(2204175779);
17771 0 : Write((v__).frameScripts(), msg__);
17772 : // Sentinel = 'frameScripts'
17773 0 : (msg__)->WriteSentinel(1873969981);
17774 0 : Write((v__).urlToLoad(), msg__);
17775 : // Sentinel = 'urlToLoad'
17776 0 : (msg__)->WriteSentinel(3143862269);
17777 0 : Write((v__).textureFactoryIdentifier(), msg__);
17778 : // Sentinel = 'textureFactoryIdentifier'
17779 0 : (msg__)->WriteSentinel(1630882508);
17780 0 : Write((v__).layersId(), msg__);
17781 : // Sentinel = 'layersId'
17782 0 : (msg__)->WriteSentinel(2382073245);
17783 0 : Write((v__).compositorOptions(), msg__);
17784 : // Sentinel = 'compositorOptions'
17785 0 : (msg__)->WriteSentinel(1905928698);
17786 0 : Write((v__).maxTouchPoints(), msg__);
17787 : // Sentinel = 'maxTouchPoints'
17788 0 : (msg__)->WriteSentinel(1106566416);
17789 0 : Write((v__).dimensions(), msg__);
17790 : // Sentinel = 'dimensions'
17791 0 : (msg__)->WriteSentinel(1613663909);
17792 0 : }
17793 :
17794 0 : auto PContentParent::Read(
17795 : CreatedWindowInfo* v__,
17796 : const Message* msg__,
17797 : PickleIterator* iter__) -> bool
17798 : {
17799 0 : if ((!(Read((&((v__)->rv())), msg__, iter__)))) {
17800 0 : FatalError("Error deserializing 'rv' (nsresult) member of 'CreatedWindowInfo'");
17801 0 : return false;
17802 : }
17803 : // Sentinel = 'rv'
17804 0 : if ((!((msg__)->ReadSentinel(iter__, 702481058)))) {
17805 0 : mozilla::ipc::SentinelReadError("Error deserializing 'rv' (nsresult) member of 'CreatedWindowInfo'");
17806 0 : return false;
17807 : }
17808 0 : if ((!(Read((&((v__)->windowOpened())), msg__, iter__)))) {
17809 0 : FatalError("Error deserializing 'windowOpened' (bool) member of 'CreatedWindowInfo'");
17810 0 : return false;
17811 : }
17812 : // Sentinel = 'windowOpened'
17813 0 : if ((!((msg__)->ReadSentinel(iter__, 2204175779)))) {
17814 0 : mozilla::ipc::SentinelReadError("Error deserializing 'windowOpened' (bool) member of 'CreatedWindowInfo'");
17815 0 : return false;
17816 : }
17817 0 : if ((!(Read((&((v__)->frameScripts())), msg__, iter__)))) {
17818 0 : FatalError("Error deserializing 'frameScripts' (FrameScriptInfo[]) member of 'CreatedWindowInfo'");
17819 0 : return false;
17820 : }
17821 : // Sentinel = 'frameScripts'
17822 0 : if ((!((msg__)->ReadSentinel(iter__, 1873969981)))) {
17823 0 : mozilla::ipc::SentinelReadError("Error deserializing 'frameScripts' (FrameScriptInfo[]) member of 'CreatedWindowInfo'");
17824 0 : return false;
17825 : }
17826 0 : if ((!(Read((&((v__)->urlToLoad())), msg__, iter__)))) {
17827 0 : FatalError("Error deserializing 'urlToLoad' (nsCString) member of 'CreatedWindowInfo'");
17828 0 : return false;
17829 : }
17830 : // Sentinel = 'urlToLoad'
17831 0 : if ((!((msg__)->ReadSentinel(iter__, 3143862269)))) {
17832 0 : mozilla::ipc::SentinelReadError("Error deserializing 'urlToLoad' (nsCString) member of 'CreatedWindowInfo'");
17833 0 : return false;
17834 : }
17835 0 : if ((!(Read((&((v__)->textureFactoryIdentifier())), msg__, iter__)))) {
17836 0 : FatalError("Error deserializing 'textureFactoryIdentifier' (TextureFactoryIdentifier) member of 'CreatedWindowInfo'");
17837 0 : return false;
17838 : }
17839 : // Sentinel = 'textureFactoryIdentifier'
17840 0 : if ((!((msg__)->ReadSentinel(iter__, 1630882508)))) {
17841 0 : mozilla::ipc::SentinelReadError("Error deserializing 'textureFactoryIdentifier' (TextureFactoryIdentifier) member of 'CreatedWindowInfo'");
17842 0 : return false;
17843 : }
17844 0 : if ((!(Read((&((v__)->layersId())), msg__, iter__)))) {
17845 0 : FatalError("Error deserializing 'layersId' (uint64_t) member of 'CreatedWindowInfo'");
17846 0 : return false;
17847 : }
17848 : // Sentinel = 'layersId'
17849 0 : if ((!((msg__)->ReadSentinel(iter__, 2382073245)))) {
17850 0 : mozilla::ipc::SentinelReadError("Error deserializing 'layersId' (uint64_t) member of 'CreatedWindowInfo'");
17851 0 : return false;
17852 : }
17853 0 : if ((!(Read((&((v__)->compositorOptions())), msg__, iter__)))) {
17854 0 : FatalError("Error deserializing 'compositorOptions' (CompositorOptions) member of 'CreatedWindowInfo'");
17855 0 : return false;
17856 : }
17857 : // Sentinel = 'compositorOptions'
17858 0 : if ((!((msg__)->ReadSentinel(iter__, 1905928698)))) {
17859 0 : mozilla::ipc::SentinelReadError("Error deserializing 'compositorOptions' (CompositorOptions) member of 'CreatedWindowInfo'");
17860 0 : return false;
17861 : }
17862 0 : if ((!(Read((&((v__)->maxTouchPoints())), msg__, iter__)))) {
17863 0 : FatalError("Error deserializing 'maxTouchPoints' (uint32_t) member of 'CreatedWindowInfo'");
17864 0 : return false;
17865 : }
17866 : // Sentinel = 'maxTouchPoints'
17867 0 : if ((!((msg__)->ReadSentinel(iter__, 1106566416)))) {
17868 0 : mozilla::ipc::SentinelReadError("Error deserializing 'maxTouchPoints' (uint32_t) member of 'CreatedWindowInfo'");
17869 0 : return false;
17870 : }
17871 0 : if ((!(Read((&((v__)->dimensions())), msg__, iter__)))) {
17872 0 : FatalError("Error deserializing 'dimensions' (DimensionInfo) member of 'CreatedWindowInfo'");
17873 0 : return false;
17874 : }
17875 : // Sentinel = 'dimensions'
17876 0 : if ((!((msg__)->ReadSentinel(iter__, 1613663909)))) {
17877 0 : mozilla::ipc::SentinelReadError("Error deserializing 'dimensions' (DimensionInfo) member of 'CreatedWindowInfo'");
17878 0 : return false;
17879 : }
17880 0 : return true;
17881 : }
17882 :
17883 0 : auto PContentParent::Write(
17884 : const SlicedInputStreamParams& v__,
17885 : Message* msg__) -> void
17886 : {
17887 0 : Write((v__).stream(), msg__);
17888 : // Sentinel = 'stream'
17889 0 : (msg__)->WriteSentinel(4152748422);
17890 0 : Write((v__).start(), msg__);
17891 : // Sentinel = 'start'
17892 0 : (msg__)->WriteSentinel(2088644401);
17893 0 : Write((v__).length(), msg__);
17894 : // Sentinel = 'length'
17895 0 : (msg__)->WriteSentinel(1726618354);
17896 0 : Write((v__).curPos(), msg__);
17897 : // Sentinel = 'curPos'
17898 0 : (msg__)->WriteSentinel(4042140974);
17899 0 : Write((v__).closed(), msg__);
17900 : // Sentinel = 'closed'
17901 0 : (msg__)->WriteSentinel(561249462);
17902 0 : }
17903 :
17904 0 : auto PContentParent::Read(
17905 : SlicedInputStreamParams* v__,
17906 : const Message* msg__,
17907 : PickleIterator* iter__) -> bool
17908 : {
17909 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
17910 0 : FatalError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
17911 0 : return false;
17912 : }
17913 : // Sentinel = 'stream'
17914 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
17915 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
17916 0 : return false;
17917 : }
17918 0 : if ((!(Read((&((v__)->start())), msg__, iter__)))) {
17919 0 : FatalError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
17920 0 : return false;
17921 : }
17922 : // Sentinel = 'start'
17923 0 : if ((!((msg__)->ReadSentinel(iter__, 2088644401)))) {
17924 0 : mozilla::ipc::SentinelReadError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
17925 0 : return false;
17926 : }
17927 0 : if ((!(Read((&((v__)->length())), msg__, iter__)))) {
17928 0 : FatalError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
17929 0 : return false;
17930 : }
17931 : // Sentinel = 'length'
17932 0 : if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
17933 0 : mozilla::ipc::SentinelReadError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
17934 0 : return false;
17935 : }
17936 0 : if ((!(Read((&((v__)->curPos())), msg__, iter__)))) {
17937 0 : FatalError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
17938 0 : return false;
17939 : }
17940 : // Sentinel = 'curPos'
17941 0 : if ((!((msg__)->ReadSentinel(iter__, 4042140974)))) {
17942 0 : mozilla::ipc::SentinelReadError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
17943 0 : return false;
17944 : }
17945 0 : if ((!(Read((&((v__)->closed())), msg__, iter__)))) {
17946 0 : FatalError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
17947 0 : return false;
17948 : }
17949 : // Sentinel = 'closed'
17950 0 : if ((!((msg__)->ReadSentinel(iter__, 561249462)))) {
17951 0 : mozilla::ipc::SentinelReadError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
17952 0 : return false;
17953 : }
17954 0 : return true;
17955 : }
17956 :
17957 0 : auto PContentParent::Write(
17958 : const IPCRemoteStreamType& v__,
17959 : Message* msg__) -> void
17960 : {
17961 : typedef IPCRemoteStreamType type__;
17962 0 : Write(int((v__).type()), msg__);
17963 : // Sentinel = 'IPCRemoteStreamType'
17964 0 : (msg__)->WriteSentinel(391674895);
17965 :
17966 0 : switch ((v__).type()) {
17967 : case type__::TPChildToParentStreamParent:
17968 : {
17969 0 : Write((v__).get_PChildToParentStreamParent(), msg__, false);
17970 : // Sentinel = 'TPChildToParentStreamParent'
17971 0 : (msg__)->WriteSentinel(2724777622);
17972 0 : return;
17973 : }
17974 : case type__::TPChildToParentStreamChild:
17975 : {
17976 0 : FatalError("wrong side!");
17977 0 : return;
17978 : }
17979 : case type__::TPParentToChildStreamParent:
17980 : {
17981 0 : Write((v__).get_PParentToChildStreamParent(), msg__, false);
17982 : // Sentinel = 'TPParentToChildStreamParent'
17983 0 : (msg__)->WriteSentinel(3335986876);
17984 0 : return;
17985 : }
17986 : case type__::TPParentToChildStreamChild:
17987 : {
17988 0 : FatalError("wrong side!");
17989 0 : return;
17990 : }
17991 : default:
17992 : {
17993 0 : FatalError("unknown union type");
17994 0 : return;
17995 : }
17996 : }
17997 : }
17998 :
17999 0 : auto PContentParent::Read(
18000 : IPCRemoteStreamType* v__,
18001 : const Message* msg__,
18002 : PickleIterator* iter__) -> bool
18003 : {
18004 : typedef IPCRemoteStreamType type__;
18005 : int type;
18006 0 : if ((!(Read((&(type)), msg__, iter__)))) {
18007 0 : mozilla::ipc::UnionTypeReadError("IPCRemoteStreamType");
18008 0 : return false;
18009 : }
18010 : // Sentinel = 'IPCRemoteStreamType'
18011 0 : if ((!((msg__)->ReadSentinel(iter__, 391674895)))) {
18012 0 : mozilla::ipc::SentinelReadError("IPCRemoteStreamType");
18013 0 : return false;
18014 : }
18015 :
18016 0 : switch (type) {
18017 : case type__::TPChildToParentStreamParent:
18018 : {
18019 0 : return false;
18020 : }
18021 : case type__::TPChildToParentStreamChild:
18022 : {
18023 0 : PChildToParentStreamParent* tmp = nullptr;
18024 0 : (*(v__)) = tmp;
18025 0 : if ((!(Read((&((v__)->get_PChildToParentStreamParent())), msg__, iter__, false)))) {
18026 0 : FatalError("Error deserializing Union type");
18027 0 : return false;
18028 : }
18029 : // Sentinel = 'TPChildToParentStreamChild'
18030 0 : if ((!((msg__)->ReadSentinel(iter__, 1882094295)))) {
18031 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
18032 0 : return false;
18033 : }
18034 0 : return true;
18035 : }
18036 : case type__::TPParentToChildStreamParent:
18037 : {
18038 0 : return false;
18039 : }
18040 : case type__::TPParentToChildStreamChild:
18041 : {
18042 0 : PParentToChildStreamParent* tmp = nullptr;
18043 0 : (*(v__)) = tmp;
18044 0 : if ((!(Read((&((v__)->get_PParentToChildStreamParent())), msg__, iter__, false)))) {
18045 0 : FatalError("Error deserializing Union type");
18046 0 : return false;
18047 : }
18048 : // Sentinel = 'TPParentToChildStreamChild'
18049 0 : if ((!((msg__)->ReadSentinel(iter__, 190098493)))) {
18050 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
18051 0 : return false;
18052 : }
18053 0 : return true;
18054 : }
18055 : default:
18056 : {
18057 0 : FatalError("unknown union type");
18058 0 : return false;
18059 : }
18060 : }
18061 : }
18062 :
18063 0 : auto PContentParent::Write(
18064 : const IPCStream& v__,
18065 : Message* msg__) -> void
18066 : {
18067 : typedef IPCStream type__;
18068 0 : Write(int((v__).type()), msg__);
18069 : // Sentinel = 'IPCStream'
18070 0 : (msg__)->WriteSentinel(442610715);
18071 :
18072 0 : switch ((v__).type()) {
18073 : case type__::TInputStreamParamsWithFds:
18074 : {
18075 0 : Write((v__).get_InputStreamParamsWithFds(), msg__);
18076 : // Sentinel = 'TInputStreamParamsWithFds'
18077 0 : (msg__)->WriteSentinel(2170706066);
18078 0 : return;
18079 : }
18080 : case type__::TIPCRemoteStream:
18081 : {
18082 0 : Write((v__).get_IPCRemoteStream(), msg__);
18083 : // Sentinel = 'TIPCRemoteStream'
18084 0 : (msg__)->WriteSentinel(2978132448);
18085 0 : return;
18086 : }
18087 : default:
18088 : {
18089 0 : FatalError("unknown union type");
18090 0 : return;
18091 : }
18092 : }
18093 : }
18094 :
18095 0 : auto PContentParent::Read(
18096 : IPCStream* v__,
18097 : const Message* msg__,
18098 : PickleIterator* iter__) -> bool
18099 : {
18100 : typedef IPCStream type__;
18101 : int type;
18102 0 : if ((!(Read((&(type)), msg__, iter__)))) {
18103 0 : mozilla::ipc::UnionTypeReadError("IPCStream");
18104 0 : return false;
18105 : }
18106 : // Sentinel = 'IPCStream'
18107 0 : if ((!((msg__)->ReadSentinel(iter__, 442610715)))) {
18108 0 : mozilla::ipc::SentinelReadError("IPCStream");
18109 0 : return false;
18110 : }
18111 :
18112 0 : switch (type) {
18113 : case type__::TInputStreamParamsWithFds:
18114 : {
18115 0 : InputStreamParamsWithFds tmp = InputStreamParamsWithFds();
18116 0 : (*(v__)) = tmp;
18117 0 : if ((!(Read((&((v__)->get_InputStreamParamsWithFds())), msg__, iter__)))) {
18118 0 : FatalError("Error deserializing Union type");
18119 0 : return false;
18120 : }
18121 : // Sentinel = 'TInputStreamParamsWithFds'
18122 0 : if ((!((msg__)->ReadSentinel(iter__, 2170706066)))) {
18123 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
18124 0 : return false;
18125 : }
18126 0 : return true;
18127 : }
18128 : case type__::TIPCRemoteStream:
18129 : {
18130 0 : IPCRemoteStream tmp = IPCRemoteStream();
18131 0 : (*(v__)) = tmp;
18132 0 : if ((!(Read((&((v__)->get_IPCRemoteStream())), msg__, iter__)))) {
18133 0 : FatalError("Error deserializing Union type");
18134 0 : return false;
18135 : }
18136 : // Sentinel = 'TIPCRemoteStream'
18137 0 : if ((!((msg__)->ReadSentinel(iter__, 2978132448)))) {
18138 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
18139 0 : return false;
18140 : }
18141 0 : return true;
18142 : }
18143 : default:
18144 : {
18145 0 : FatalError("unknown union type");
18146 0 : return false;
18147 : }
18148 : }
18149 : }
18150 :
18151 3 : auto PContentParent::Write(
18152 : const nsTArray<GMPCapabilityData>& v__,
18153 : Message* msg__) -> void
18154 : {
18155 3 : uint32_t length = (v__).Length();
18156 3 : Write(length, msg__);
18157 : // Sentinel = ('length', 'GMPCapabilityData[]')
18158 3 : (msg__)->WriteSentinel(726964886);
18159 :
18160 6 : for (auto& elem : v__) {
18161 3 : Write(elem, msg__);
18162 : // Sentinel = 'GMPCapabilityData[]'
18163 3 : (msg__)->WriteSentinel(238384521);
18164 : }
18165 3 : }
18166 :
18167 0 : auto PContentParent::Read(
18168 : nsTArray<GMPCapabilityData>* v__,
18169 : const Message* msg__,
18170 : PickleIterator* iter__) -> bool
18171 : {
18172 0 : nsTArray<GMPCapabilityData> fa;
18173 : uint32_t length;
18174 0 : if ((!(Read((&(length)), msg__, iter__)))) {
18175 0 : mozilla::ipc::ArrayLengthReadError("GMPCapabilityData[]");
18176 0 : return false;
18177 : }
18178 : // Sentinel = ('length', 'GMPCapabilityData[]')
18179 0 : if ((!((msg__)->ReadSentinel(iter__, 726964886)))) {
18180 0 : mozilla::ipc::SentinelReadError("GMPCapabilityData[]");
18181 0 : return false;
18182 : }
18183 :
18184 0 : GMPCapabilityData* elems = (fa).AppendElements(length);
18185 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
18186 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
18187 0 : FatalError("Error deserializing 'GMPCapabilityData[i]'");
18188 0 : return false;
18189 : }
18190 : // Sentinel = 'GMPCapabilityData[]'
18191 0 : if ((!((msg__)->ReadSentinel(iter__, 238384521)))) {
18192 0 : mozilla::ipc::SentinelReadError("Error deserializing 'GMPCapabilityData[i]'");
18193 0 : return false;
18194 : }
18195 : }
18196 0 : (v__)->SwapElements(fa);
18197 0 : return true;
18198 : }
18199 :
18200 0 : auto PContentParent::Write(
18201 : const nsTArray<IPCDataTransferItem>& v__,
18202 : Message* msg__) -> void
18203 : {
18204 0 : uint32_t length = (v__).Length();
18205 0 : Write(length, msg__);
18206 : // Sentinel = ('length', 'IPCDataTransferItem[]')
18207 0 : (msg__)->WriteSentinel(3287014736);
18208 :
18209 0 : for (auto& elem : v__) {
18210 0 : Write(elem, msg__);
18211 : // Sentinel = 'IPCDataTransferItem[]'
18212 0 : (msg__)->WriteSentinel(2184482055);
18213 : }
18214 0 : }
18215 :
18216 0 : auto PContentParent::Read(
18217 : nsTArray<IPCDataTransferItem>* v__,
18218 : const Message* msg__,
18219 : PickleIterator* iter__) -> bool
18220 : {
18221 0 : nsTArray<IPCDataTransferItem> fa;
18222 : uint32_t length;
18223 0 : if ((!(Read((&(length)), msg__, iter__)))) {
18224 0 : mozilla::ipc::ArrayLengthReadError("IPCDataTransferItem[]");
18225 0 : return false;
18226 : }
18227 : // Sentinel = ('length', 'IPCDataTransferItem[]')
18228 0 : if ((!((msg__)->ReadSentinel(iter__, 3287014736)))) {
18229 0 : mozilla::ipc::SentinelReadError("IPCDataTransferItem[]");
18230 0 : return false;
18231 : }
18232 :
18233 0 : IPCDataTransferItem* elems = (fa).AppendElements(length);
18234 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
18235 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
18236 0 : FatalError("Error deserializing 'IPCDataTransferItem[i]'");
18237 0 : return false;
18238 : }
18239 : // Sentinel = 'IPCDataTransferItem[]'
18240 0 : if ((!((msg__)->ReadSentinel(iter__, 2184482055)))) {
18241 0 : mozilla::ipc::SentinelReadError("Error deserializing 'IPCDataTransferItem[i]'");
18242 0 : return false;
18243 : }
18244 : }
18245 0 : (v__)->SwapElements(fa);
18246 0 : return true;
18247 : }
18248 :
18249 0 : auto PContentParent::Write(
18250 : const LocalObject& v__,
18251 : Message* msg__) -> void
18252 : {
18253 0 : Write((v__).serializedId(), msg__);
18254 : // Sentinel = 'serializedId'
18255 0 : (msg__)->WriteSentinel(517551973);
18256 0 : }
18257 :
18258 0 : auto PContentParent::Read(
18259 : LocalObject* v__,
18260 : const Message* msg__,
18261 : PickleIterator* iter__) -> bool
18262 : {
18263 0 : if ((!(Read((&((v__)->serializedId())), msg__, iter__)))) {
18264 0 : FatalError("Error deserializing 'serializedId' (uint64_t) member of 'LocalObject'");
18265 0 : return false;
18266 : }
18267 : // Sentinel = 'serializedId'
18268 0 : if ((!((msg__)->ReadSentinel(iter__, 517551973)))) {
18269 0 : mozilla::ipc::SentinelReadError("Error deserializing 'serializedId' (uint64_t) member of 'LocalObject'");
18270 0 : return false;
18271 : }
18272 0 : return true;
18273 : }
18274 :
18275 0 : auto PContentParent::Write(
18276 : const SymbolVariant& v__,
18277 : Message* msg__) -> void
18278 : {
18279 : typedef SymbolVariant type__;
18280 0 : Write(int((v__).type()), msg__);
18281 : // Sentinel = 'SymbolVariant'
18282 0 : (msg__)->WriteSentinel(2359697882);
18283 :
18284 0 : switch ((v__).type()) {
18285 : case type__::TWellKnownSymbol:
18286 : {
18287 0 : Write((v__).get_WellKnownSymbol(), msg__);
18288 : // Sentinel = 'TWellKnownSymbol'
18289 0 : (msg__)->WriteSentinel(3625871441);
18290 0 : return;
18291 : }
18292 : case type__::TRegisteredSymbol:
18293 : {
18294 0 : Write((v__).get_RegisteredSymbol(), msg__);
18295 : // Sentinel = 'TRegisteredSymbol'
18296 0 : (msg__)->WriteSentinel(3546540137);
18297 0 : return;
18298 : }
18299 : default:
18300 : {
18301 0 : FatalError("unknown union type");
18302 0 : return;
18303 : }
18304 : }
18305 : }
18306 :
18307 0 : auto PContentParent::Read(
18308 : SymbolVariant* v__,
18309 : const Message* msg__,
18310 : PickleIterator* iter__) -> bool
18311 : {
18312 : typedef SymbolVariant type__;
18313 : int type;
18314 0 : if ((!(Read((&(type)), msg__, iter__)))) {
18315 0 : mozilla::ipc::UnionTypeReadError("SymbolVariant");
18316 0 : return false;
18317 : }
18318 : // Sentinel = 'SymbolVariant'
18319 0 : if ((!((msg__)->ReadSentinel(iter__, 2359697882)))) {
18320 0 : mozilla::ipc::SentinelReadError("SymbolVariant");
18321 0 : return false;
18322 : }
18323 :
18324 0 : switch (type) {
18325 : case type__::TWellKnownSymbol:
18326 : {
18327 0 : WellKnownSymbol tmp = WellKnownSymbol();
18328 0 : (*(v__)) = tmp;
18329 0 : if ((!(Read((&((v__)->get_WellKnownSymbol())), msg__, iter__)))) {
18330 0 : FatalError("Error deserializing Union type");
18331 0 : return false;
18332 : }
18333 : // Sentinel = 'TWellKnownSymbol'
18334 0 : if ((!((msg__)->ReadSentinel(iter__, 3625871441)))) {
18335 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
18336 0 : return false;
18337 : }
18338 0 : return true;
18339 : }
18340 : case type__::TRegisteredSymbol:
18341 : {
18342 0 : RegisteredSymbol tmp = RegisteredSymbol();
18343 0 : (*(v__)) = tmp;
18344 0 : if ((!(Read((&((v__)->get_RegisteredSymbol())), msg__, iter__)))) {
18345 0 : FatalError("Error deserializing Union type");
18346 0 : return false;
18347 : }
18348 : // Sentinel = 'TRegisteredSymbol'
18349 0 : if ((!((msg__)->ReadSentinel(iter__, 3546540137)))) {
18350 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
18351 0 : return false;
18352 : }
18353 0 : return true;
18354 : }
18355 : default:
18356 : {
18357 0 : FatalError("unknown union type");
18358 0 : return false;
18359 : }
18360 : }
18361 : }
18362 :
18363 0 : auto PContentParent::Write(
18364 : const OptionalIPCStream& v__,
18365 : Message* msg__) -> void
18366 : {
18367 : typedef OptionalIPCStream type__;
18368 0 : Write(int((v__).type()), msg__);
18369 : // Sentinel = 'OptionalIPCStream'
18370 0 : (msg__)->WriteSentinel(3815982647);
18371 :
18372 0 : switch ((v__).type()) {
18373 : case type__::TIPCStream:
18374 : {
18375 0 : Write((v__).get_IPCStream(), msg__);
18376 : // Sentinel = 'TIPCStream'
18377 0 : (msg__)->WriteSentinel(40701900);
18378 0 : return;
18379 : }
18380 : case type__::Tvoid_t:
18381 : {
18382 0 : Write((v__).get_void_t(), msg__);
18383 : // Sentinel = 'Tvoid_t'
18384 0 : (msg__)->WriteSentinel(3041273328);
18385 0 : return;
18386 : }
18387 : default:
18388 : {
18389 0 : FatalError("unknown union type");
18390 0 : return;
18391 : }
18392 : }
18393 : }
18394 :
18395 0 : auto PContentParent::Read(
18396 : OptionalIPCStream* v__,
18397 : const Message* msg__,
18398 : PickleIterator* iter__) -> bool
18399 : {
18400 : typedef OptionalIPCStream type__;
18401 : int type;
18402 0 : if ((!(Read((&(type)), msg__, iter__)))) {
18403 0 : mozilla::ipc::UnionTypeReadError("OptionalIPCStream");
18404 0 : return false;
18405 : }
18406 : // Sentinel = 'OptionalIPCStream'
18407 0 : if ((!((msg__)->ReadSentinel(iter__, 3815982647)))) {
18408 0 : mozilla::ipc::SentinelReadError("OptionalIPCStream");
18409 0 : return false;
18410 : }
18411 :
18412 0 : switch (type) {
18413 : case type__::TIPCStream:
18414 : {
18415 0 : IPCStream tmp = IPCStream();
18416 0 : (*(v__)) = tmp;
18417 0 : if ((!(Read((&((v__)->get_IPCStream())), msg__, iter__)))) {
18418 0 : FatalError("Error deserializing Union type");
18419 0 : return false;
18420 : }
18421 : // Sentinel = 'TIPCStream'
18422 0 : if ((!((msg__)->ReadSentinel(iter__, 40701900)))) {
18423 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
18424 0 : return false;
18425 : }
18426 0 : return true;
18427 : }
18428 : case type__::Tvoid_t:
18429 : {
18430 : void_t tmp = void_t();
18431 0 : (*(v__)) = tmp;
18432 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
18433 0 : FatalError("Error deserializing Union type");
18434 0 : return false;
18435 : }
18436 : // Sentinel = 'Tvoid_t'
18437 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
18438 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
18439 0 : return false;
18440 : }
18441 0 : return true;
18442 : }
18443 : default:
18444 : {
18445 0 : FatalError("unknown union type");
18446 0 : return false;
18447 : }
18448 : }
18449 : }
18450 :
18451 0 : auto PContentParent::Write(
18452 : const NullPrincipalURIParams& v__,
18453 : Message* msg__) -> void
18454 : {
18455 0 : }
18456 :
18457 0 : auto PContentParent::Read(
18458 : NullPrincipalURIParams* v__,
18459 : const Message* msg__,
18460 : PickleIterator* iter__) -> bool
18461 : {
18462 0 : return true;
18463 : }
18464 :
18465 3 : auto PContentParent::Write(
18466 : const PBrowserParent* v__,
18467 : Message* msg__,
18468 : bool nullable__) -> void
18469 : {
18470 : int32_t id;
18471 3 : if ((!(v__))) {
18472 0 : if ((!(nullable__))) {
18473 0 : FatalError("NULL actor value passed to non-nullable param");
18474 : }
18475 0 : id = 0;
18476 : }
18477 : else {
18478 3 : id = (v__)->Id();
18479 3 : if ((1) == (id)) {
18480 0 : FatalError("actor has been |delete|d");
18481 : }
18482 : }
18483 :
18484 3 : Write(id, msg__);
18485 3 : }
18486 :
18487 0 : auto PContentParent::Read(
18488 : PBrowserParent** v__,
18489 : const Message* msg__,
18490 : PickleIterator* iter__,
18491 : bool nullable__) -> bool
18492 : {
18493 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBrowser", PBrowserMsgStart);
18494 0 : if ((actor).isNothing()) {
18495 0 : return false;
18496 : }
18497 :
18498 0 : (*(v__)) = static_cast<PBrowserParent*>((actor).value());
18499 0 : return true;
18500 : }
18501 :
18502 0 : auto PContentParent::Write(
18503 : const FontListEntry& v__,
18504 : Message* msg__) -> void
18505 : {
18506 0 : Write((v__).familyName(), msg__);
18507 : // Sentinel = 'familyName'
18508 0 : (msg__)->WriteSentinel(2706306507);
18509 0 : Write((v__).faceName(), msg__);
18510 : // Sentinel = 'faceName'
18511 0 : (msg__)->WriteSentinel(1955821238);
18512 0 : Write((v__).filepath(), msg__);
18513 : // Sentinel = 'filepath'
18514 0 : (msg__)->WriteSentinel(1477761447);
18515 0 : Write((v__).weight(), msg__);
18516 : // Sentinel = 'weight'
18517 0 : (msg__)->WriteSentinel(2194305670);
18518 0 : Write((v__).stretch(), msg__);
18519 : // Sentinel = 'stretch'
18520 0 : (msg__)->WriteSentinel(676171048);
18521 0 : Write((v__).italic(), msg__);
18522 : // Sentinel = 'italic'
18523 0 : (msg__)->WriteSentinel(2807795510);
18524 0 : Write((v__).index(), msg__);
18525 : // Sentinel = 'index'
18526 0 : (msg__)->WriteSentinel(2111871137);
18527 0 : }
18528 :
18529 0 : auto PContentParent::Read(
18530 : FontListEntry* v__,
18531 : const Message* msg__,
18532 : PickleIterator* iter__) -> bool
18533 : {
18534 0 : if ((!(Read((&((v__)->familyName())), msg__, iter__)))) {
18535 0 : FatalError("Error deserializing 'familyName' (nsString) member of 'FontListEntry'");
18536 0 : return false;
18537 : }
18538 : // Sentinel = 'familyName'
18539 0 : if ((!((msg__)->ReadSentinel(iter__, 2706306507)))) {
18540 0 : mozilla::ipc::SentinelReadError("Error deserializing 'familyName' (nsString) member of 'FontListEntry'");
18541 0 : return false;
18542 : }
18543 0 : if ((!(Read((&((v__)->faceName())), msg__, iter__)))) {
18544 0 : FatalError("Error deserializing 'faceName' (nsString) member of 'FontListEntry'");
18545 0 : return false;
18546 : }
18547 : // Sentinel = 'faceName'
18548 0 : if ((!((msg__)->ReadSentinel(iter__, 1955821238)))) {
18549 0 : mozilla::ipc::SentinelReadError("Error deserializing 'faceName' (nsString) member of 'FontListEntry'");
18550 0 : return false;
18551 : }
18552 0 : if ((!(Read((&((v__)->filepath())), msg__, iter__)))) {
18553 0 : FatalError("Error deserializing 'filepath' (nsCString) member of 'FontListEntry'");
18554 0 : return false;
18555 : }
18556 : // Sentinel = 'filepath'
18557 0 : if ((!((msg__)->ReadSentinel(iter__, 1477761447)))) {
18558 0 : mozilla::ipc::SentinelReadError("Error deserializing 'filepath' (nsCString) member of 'FontListEntry'");
18559 0 : return false;
18560 : }
18561 0 : if ((!(Read((&((v__)->weight())), msg__, iter__)))) {
18562 0 : FatalError("Error deserializing 'weight' (uint16_t) member of 'FontListEntry'");
18563 0 : return false;
18564 : }
18565 : // Sentinel = 'weight'
18566 0 : if ((!((msg__)->ReadSentinel(iter__, 2194305670)))) {
18567 0 : mozilla::ipc::SentinelReadError("Error deserializing 'weight' (uint16_t) member of 'FontListEntry'");
18568 0 : return false;
18569 : }
18570 0 : if ((!(Read((&((v__)->stretch())), msg__, iter__)))) {
18571 0 : FatalError("Error deserializing 'stretch' (int16_t) member of 'FontListEntry'");
18572 0 : return false;
18573 : }
18574 : // Sentinel = 'stretch'
18575 0 : if ((!((msg__)->ReadSentinel(iter__, 676171048)))) {
18576 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stretch' (int16_t) member of 'FontListEntry'");
18577 0 : return false;
18578 : }
18579 0 : if ((!(Read((&((v__)->italic())), msg__, iter__)))) {
18580 0 : FatalError("Error deserializing 'italic' (uint8_t) member of 'FontListEntry'");
18581 0 : return false;
18582 : }
18583 : // Sentinel = 'italic'
18584 0 : if ((!((msg__)->ReadSentinel(iter__, 2807795510)))) {
18585 0 : mozilla::ipc::SentinelReadError("Error deserializing 'italic' (uint8_t) member of 'FontListEntry'");
18586 0 : return false;
18587 : }
18588 0 : if ((!(Read((&((v__)->index())), msg__, iter__)))) {
18589 0 : FatalError("Error deserializing 'index' (uint8_t) member of 'FontListEntry'");
18590 0 : return false;
18591 : }
18592 : // Sentinel = 'index'
18593 0 : if ((!((msg__)->ReadSentinel(iter__, 2111871137)))) {
18594 0 : mozilla::ipc::SentinelReadError("Error deserializing 'index' (uint8_t) member of 'FontListEntry'");
18595 0 : return false;
18596 : }
18597 0 : return true;
18598 : }
18599 :
18600 0 : auto PContentParent::Write(
18601 : const BlobURLRegistrationData& v__,
18602 : Message* msg__) -> void
18603 : {
18604 0 : Write((v__).url(), msg__);
18605 : // Sentinel = 'url'
18606 0 : (msg__)->WriteSentinel(1453210600);
18607 0 : Write((v__).blob(), msg__);
18608 : // Sentinel = 'blob'
18609 0 : (msg__)->WriteSentinel(1963585077);
18610 0 : Write((v__).principal(), msg__);
18611 : // Sentinel = 'principal'
18612 0 : (msg__)->WriteSentinel(732240927);
18613 0 : }
18614 :
18615 0 : auto PContentParent::Read(
18616 : BlobURLRegistrationData* v__,
18617 : const Message* msg__,
18618 : PickleIterator* iter__) -> bool
18619 : {
18620 0 : if ((!(Read((&((v__)->url())), msg__, iter__)))) {
18621 0 : FatalError("Error deserializing 'url' (nsCString) member of 'BlobURLRegistrationData'");
18622 0 : return false;
18623 : }
18624 : // Sentinel = 'url'
18625 0 : if ((!((msg__)->ReadSentinel(iter__, 1453210600)))) {
18626 0 : mozilla::ipc::SentinelReadError("Error deserializing 'url' (nsCString) member of 'BlobURLRegistrationData'");
18627 0 : return false;
18628 : }
18629 0 : if ((!(Read((&((v__)->blob())), msg__, iter__)))) {
18630 0 : FatalError("Error deserializing 'blob' (IPCBlob) member of 'BlobURLRegistrationData'");
18631 0 : return false;
18632 : }
18633 : // Sentinel = 'blob'
18634 0 : if ((!((msg__)->ReadSentinel(iter__, 1963585077)))) {
18635 0 : mozilla::ipc::SentinelReadError("Error deserializing 'blob' (IPCBlob) member of 'BlobURLRegistrationData'");
18636 0 : return false;
18637 : }
18638 0 : if ((!(Read((&((v__)->principal())), msg__, iter__)))) {
18639 0 : FatalError("Error deserializing 'principal' (Principal) member of 'BlobURLRegistrationData'");
18640 0 : return false;
18641 : }
18642 : // Sentinel = 'principal'
18643 0 : if ((!((msg__)->ReadSentinel(iter__, 732240927)))) {
18644 0 : mozilla::ipc::SentinelReadError("Error deserializing 'principal' (Principal) member of 'BlobURLRegistrationData'");
18645 0 : return false;
18646 : }
18647 0 : return true;
18648 : }
18649 :
18650 2 : auto PContentParent::Write(
18651 : const nsTArray<GfxVarUpdate>& v__,
18652 : Message* msg__) -> void
18653 : {
18654 2 : uint32_t length = (v__).Length();
18655 2 : Write(length, msg__);
18656 : // Sentinel = ('length', 'GfxVarUpdate[]')
18657 2 : (msg__)->WriteSentinel(4125246074);
18658 :
18659 16 : for (auto& elem : v__) {
18660 14 : Write(elem, msg__);
18661 : // Sentinel = 'GfxVarUpdate[]'
18662 14 : (msg__)->WriteSentinel(1033936341);
18663 : }
18664 2 : }
18665 :
18666 0 : auto PContentParent::Read(
18667 : nsTArray<GfxVarUpdate>* v__,
18668 : const Message* msg__,
18669 : PickleIterator* iter__) -> bool
18670 : {
18671 0 : nsTArray<GfxVarUpdate> fa;
18672 : uint32_t length;
18673 0 : if ((!(Read((&(length)), msg__, iter__)))) {
18674 0 : mozilla::ipc::ArrayLengthReadError("GfxVarUpdate[]");
18675 0 : return false;
18676 : }
18677 : // Sentinel = ('length', 'GfxVarUpdate[]')
18678 0 : if ((!((msg__)->ReadSentinel(iter__, 4125246074)))) {
18679 0 : mozilla::ipc::SentinelReadError("GfxVarUpdate[]");
18680 0 : return false;
18681 : }
18682 :
18683 0 : GfxVarUpdate* elems = (fa).AppendElements(length);
18684 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
18685 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
18686 0 : FatalError("Error deserializing 'GfxVarUpdate[i]'");
18687 0 : return false;
18688 : }
18689 : // Sentinel = 'GfxVarUpdate[]'
18690 0 : if ((!((msg__)->ReadSentinel(iter__, 1033936341)))) {
18691 0 : mozilla::ipc::SentinelReadError("Error deserializing 'GfxVarUpdate[i]'");
18692 0 : return false;
18693 : }
18694 : }
18695 0 : (v__)->SwapElements(fa);
18696 0 : return true;
18697 : }
18698 :
18699 0 : auto PContentParent::Write(
18700 : const PWebrtcGlobalParent* v__,
18701 : Message* msg__,
18702 : bool nullable__) -> void
18703 : {
18704 : int32_t id;
18705 0 : if ((!(v__))) {
18706 0 : if ((!(nullable__))) {
18707 0 : FatalError("NULL actor value passed to non-nullable param");
18708 : }
18709 0 : id = 0;
18710 : }
18711 : else {
18712 0 : id = (v__)->Id();
18713 0 : if ((1) == (id)) {
18714 0 : FatalError("actor has been |delete|d");
18715 : }
18716 : }
18717 :
18718 0 : Write(id, msg__);
18719 0 : }
18720 :
18721 0 : auto PContentParent::Read(
18722 : PWebrtcGlobalParent** v__,
18723 : const Message* msg__,
18724 : PickleIterator* iter__,
18725 : bool nullable__) -> bool
18726 : {
18727 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PWebrtcGlobal", PWebrtcGlobalMsgStart);
18728 0 : if ((actor).isNothing()) {
18729 0 : return false;
18730 : }
18731 :
18732 0 : (*(v__)) = static_cast<PWebrtcGlobalParent*>((actor).value());
18733 0 : return true;
18734 : }
18735 :
18736 3 : auto PContentParent::Write(
18737 : const nsTArray<GMPAPITags>& v__,
18738 : Message* msg__) -> void
18739 : {
18740 3 : uint32_t length = (v__).Length();
18741 3 : Write(length, msg__);
18742 : // Sentinel = ('length', 'GMPAPITags[]')
18743 3 : (msg__)->WriteSentinel(85411224);
18744 :
18745 6 : for (auto& elem : v__) {
18746 3 : Write(elem, msg__);
18747 : // Sentinel = 'GMPAPITags[]'
18748 3 : (msg__)->WriteSentinel(1971488799);
18749 : }
18750 3 : }
18751 :
18752 0 : auto PContentParent::Read(
18753 : nsTArray<GMPAPITags>* v__,
18754 : const Message* msg__,
18755 : PickleIterator* iter__) -> bool
18756 : {
18757 0 : nsTArray<GMPAPITags> fa;
18758 : uint32_t length;
18759 0 : if ((!(Read((&(length)), msg__, iter__)))) {
18760 0 : mozilla::ipc::ArrayLengthReadError("GMPAPITags[]");
18761 0 : return false;
18762 : }
18763 : // Sentinel = ('length', 'GMPAPITags[]')
18764 0 : if ((!((msg__)->ReadSentinel(iter__, 85411224)))) {
18765 0 : mozilla::ipc::SentinelReadError("GMPAPITags[]");
18766 0 : return false;
18767 : }
18768 :
18769 0 : GMPAPITags* elems = (fa).AppendElements(length);
18770 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
18771 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
18772 0 : FatalError("Error deserializing 'GMPAPITags[i]'");
18773 0 : return false;
18774 : }
18775 : // Sentinel = 'GMPAPITags[]'
18776 0 : if ((!((msg__)->ReadSentinel(iter__, 1971488799)))) {
18777 0 : mozilla::ipc::SentinelReadError("Error deserializing 'GMPAPITags[i]'");
18778 0 : return false;
18779 : }
18780 : }
18781 0 : (v__)->SwapElements(fa);
18782 0 : return true;
18783 : }
18784 :
18785 2 : auto PContentParent::Write(
18786 : const FileDescriptor& v__,
18787 : Message* msg__) -> void
18788 : {
18789 2 : FileDescriptor::PickleType pfd = (v__).ShareTo(FileDescriptor::IPDLPrivate(), OtherPid());
18790 2 : IPC::WriteParam(msg__, pfd);
18791 2 : }
18792 :
18793 1 : auto PContentParent::Read(
18794 : FileDescriptor* v__,
18795 : const Message* msg__,
18796 : PickleIterator* iter__) -> bool
18797 : {
18798 1 : FileDescriptor::PickleType pfd;
18799 1 : if ((!(IPC::ReadParam(msg__, iter__, (&(pfd)))))) {
18800 0 : return false;
18801 : }
18802 :
18803 2 : FileDescriptor fd = FileDescriptor(FileDescriptor::IPDLPrivate(), pfd);
18804 1 : if ((!((fd).IsValid()))) {
18805 0 : mozilla::ipc::ProtocolErrorBreakpoint("[PContentParent] Received an invalid file descriptor!");
18806 : }
18807 :
18808 1 : (*(v__)) = fd;
18809 1 : return true;
18810 : }
18811 :
18812 0 : auto PContentParent::Write(
18813 : const JSURIParams& v__,
18814 : Message* msg__) -> void
18815 : {
18816 0 : Write((v__).simpleParams(), msg__);
18817 : // Sentinel = 'simpleParams'
18818 0 : (msg__)->WriteSentinel(3404291700);
18819 0 : Write((v__).baseURI(), msg__);
18820 : // Sentinel = 'baseURI'
18821 0 : (msg__)->WriteSentinel(1836705256);
18822 0 : }
18823 :
18824 0 : auto PContentParent::Read(
18825 : JSURIParams* v__,
18826 : const Message* msg__,
18827 : PickleIterator* iter__) -> bool
18828 : {
18829 0 : if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
18830 0 : FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'JSURIParams'");
18831 0 : return false;
18832 : }
18833 : // Sentinel = 'simpleParams'
18834 0 : if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
18835 0 : mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'JSURIParams'");
18836 0 : return false;
18837 : }
18838 0 : if ((!(Read((&((v__)->baseURI())), msg__, iter__)))) {
18839 0 : FatalError("Error deserializing 'baseURI' (OptionalURIParams) member of 'JSURIParams'");
18840 0 : return false;
18841 : }
18842 : // Sentinel = 'baseURI'
18843 0 : if ((!((msg__)->ReadSentinel(iter__, 1836705256)))) {
18844 0 : mozilla::ipc::SentinelReadError("Error deserializing 'baseURI' (OptionalURIParams) member of 'JSURIParams'");
18845 0 : return false;
18846 : }
18847 0 : return true;
18848 : }
18849 :
18850 2 : auto PContentParent::Write(
18851 : const ContentDeviceData& v__,
18852 : Message* msg__) -> void
18853 : {
18854 2 : Write((v__).prefs(), msg__);
18855 : // Sentinel = 'prefs'
18856 2 : (msg__)->WriteSentinel(3194398011);
18857 2 : Write((v__).d3d11(), msg__);
18858 : // Sentinel = 'd3d11'
18859 2 : (msg__)->WriteSentinel(2473824634);
18860 2 : }
18861 :
18862 0 : auto PContentParent::Read(
18863 : ContentDeviceData* v__,
18864 : const Message* msg__,
18865 : PickleIterator* iter__) -> bool
18866 : {
18867 0 : if ((!(Read((&((v__)->prefs())), msg__, iter__)))) {
18868 0 : FatalError("Error deserializing 'prefs' (DevicePrefs) member of 'ContentDeviceData'");
18869 0 : return false;
18870 : }
18871 : // Sentinel = 'prefs'
18872 0 : if ((!((msg__)->ReadSentinel(iter__, 3194398011)))) {
18873 0 : mozilla::ipc::SentinelReadError("Error deserializing 'prefs' (DevicePrefs) member of 'ContentDeviceData'");
18874 0 : return false;
18875 : }
18876 0 : if ((!(Read((&((v__)->d3d11())), msg__, iter__)))) {
18877 0 : FatalError("Error deserializing 'd3d11' (D3D11DeviceStatus) member of 'ContentDeviceData'");
18878 0 : return false;
18879 : }
18880 : // Sentinel = 'd3d11'
18881 0 : if ((!((msg__)->ReadSentinel(iter__, 2473824634)))) {
18882 0 : mozilla::ipc::SentinelReadError("Error deserializing 'd3d11' (D3D11DeviceStatus) member of 'ContentDeviceData'");
18883 0 : return false;
18884 : }
18885 0 : return true;
18886 : }
18887 :
18888 2 : auto PContentParent::Write(
18889 : const XPCOMInitData& v__,
18890 : Message* msg__) -> void
18891 : {
18892 2 : Write((v__).isOffline(), msg__);
18893 : // Sentinel = 'isOffline'
18894 2 : (msg__)->WriteSentinel(955516060);
18895 2 : Write((v__).isConnected(), msg__);
18896 : // Sentinel = 'isConnected'
18897 2 : (msg__)->WriteSentinel(3042772238);
18898 2 : Write((v__).captivePortalState(), msg__);
18899 : // Sentinel = 'captivePortalState'
18900 2 : (msg__)->WriteSentinel(3158015853);
18901 2 : Write((v__).isLangRTL(), msg__);
18902 : // Sentinel = 'isLangRTL'
18903 2 : (msg__)->WriteSentinel(1112035623);
18904 2 : Write((v__).haveBidiKeyboards(), msg__);
18905 : // Sentinel = 'haveBidiKeyboards'
18906 2 : (msg__)->WriteSentinel(4121278935);
18907 2 : Write((v__).dictionaries(), msg__);
18908 : // Sentinel = 'dictionaries'
18909 2 : (msg__)->WriteSentinel(3810082412);
18910 2 : Write((v__).clipboardCaps(), msg__);
18911 : // Sentinel = 'clipboardCaps'
18912 2 : (msg__)->WriteSentinel(1888724152);
18913 2 : Write((v__).domainPolicy(), msg__);
18914 : // Sentinel = 'domainPolicy'
18915 2 : (msg__)->WriteSentinel(995607230);
18916 2 : Write((v__).fontFamilies(), msg__);
18917 : // Sentinel = 'fontFamilies'
18918 2 : (msg__)->WriteSentinel(3752739443);
18919 2 : Write((v__).userContentSheetURL(), msg__);
18920 : // Sentinel = 'userContentSheetURL'
18921 2 : (msg__)->WriteSentinel(2010809315);
18922 2 : Write((v__).prefs(), msg__);
18923 : // Sentinel = 'prefs'
18924 2 : (msg__)->WriteSentinel(3194398011);
18925 2 : Write((v__).gfxNonDefaultVarUpdates(), msg__);
18926 : // Sentinel = 'gfxNonDefaultVarUpdates'
18927 2 : (msg__)->WriteSentinel(1323016817);
18928 2 : Write((v__).contentDeviceData(), msg__);
18929 : // Sentinel = 'contentDeviceData'
18930 2 : (msg__)->WriteSentinel(4270682216);
18931 2 : Write((v__).gfxFeatureStatus(), msg__);
18932 : // Sentinel = 'gfxFeatureStatus'
18933 2 : (msg__)->WriteSentinel(3984590747);
18934 2 : Write((v__).dataStorage(), msg__);
18935 : // Sentinel = 'dataStorage'
18936 2 : (msg__)->WriteSentinel(2429691432);
18937 2 : Write((v__).appLocales(), msg__);
18938 : // Sentinel = 'appLocales'
18939 2 : (msg__)->WriteSentinel(2758913044);
18940 2 : Write((v__).requestedLocales(), msg__);
18941 : // Sentinel = 'requestedLocales'
18942 2 : (msg__)->WriteSentinel(2758015985);
18943 2 : }
18944 :
18945 0 : auto PContentParent::Read(
18946 : XPCOMInitData* v__,
18947 : const Message* msg__,
18948 : PickleIterator* iter__) -> bool
18949 : {
18950 0 : if ((!(Read((&((v__)->isOffline())), msg__, iter__)))) {
18951 0 : FatalError("Error deserializing 'isOffline' (bool) member of 'XPCOMInitData'");
18952 0 : return false;
18953 : }
18954 : // Sentinel = 'isOffline'
18955 0 : if ((!((msg__)->ReadSentinel(iter__, 955516060)))) {
18956 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isOffline' (bool) member of 'XPCOMInitData'");
18957 0 : return false;
18958 : }
18959 0 : if ((!(Read((&((v__)->isConnected())), msg__, iter__)))) {
18960 0 : FatalError("Error deserializing 'isConnected' (bool) member of 'XPCOMInitData'");
18961 0 : return false;
18962 : }
18963 : // Sentinel = 'isConnected'
18964 0 : if ((!((msg__)->ReadSentinel(iter__, 3042772238)))) {
18965 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isConnected' (bool) member of 'XPCOMInitData'");
18966 0 : return false;
18967 : }
18968 0 : if ((!(Read((&((v__)->captivePortalState())), msg__, iter__)))) {
18969 0 : FatalError("Error deserializing 'captivePortalState' (int32_t) member of 'XPCOMInitData'");
18970 0 : return false;
18971 : }
18972 : // Sentinel = 'captivePortalState'
18973 0 : if ((!((msg__)->ReadSentinel(iter__, 3158015853)))) {
18974 0 : mozilla::ipc::SentinelReadError("Error deserializing 'captivePortalState' (int32_t) member of 'XPCOMInitData'");
18975 0 : return false;
18976 : }
18977 0 : if ((!(Read((&((v__)->isLangRTL())), msg__, iter__)))) {
18978 0 : FatalError("Error deserializing 'isLangRTL' (bool) member of 'XPCOMInitData'");
18979 0 : return false;
18980 : }
18981 : // Sentinel = 'isLangRTL'
18982 0 : if ((!((msg__)->ReadSentinel(iter__, 1112035623)))) {
18983 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isLangRTL' (bool) member of 'XPCOMInitData'");
18984 0 : return false;
18985 : }
18986 0 : if ((!(Read((&((v__)->haveBidiKeyboards())), msg__, iter__)))) {
18987 0 : FatalError("Error deserializing 'haveBidiKeyboards' (bool) member of 'XPCOMInitData'");
18988 0 : return false;
18989 : }
18990 : // Sentinel = 'haveBidiKeyboards'
18991 0 : if ((!((msg__)->ReadSentinel(iter__, 4121278935)))) {
18992 0 : mozilla::ipc::SentinelReadError("Error deserializing 'haveBidiKeyboards' (bool) member of 'XPCOMInitData'");
18993 0 : return false;
18994 : }
18995 0 : if ((!(Read((&((v__)->dictionaries())), msg__, iter__)))) {
18996 0 : FatalError("Error deserializing 'dictionaries' (nsString[]) member of 'XPCOMInitData'");
18997 0 : return false;
18998 : }
18999 : // Sentinel = 'dictionaries'
19000 0 : if ((!((msg__)->ReadSentinel(iter__, 3810082412)))) {
19001 0 : mozilla::ipc::SentinelReadError("Error deserializing 'dictionaries' (nsString[]) member of 'XPCOMInitData'");
19002 0 : return false;
19003 : }
19004 0 : if ((!(Read((&((v__)->clipboardCaps())), msg__, iter__)))) {
19005 0 : FatalError("Error deserializing 'clipboardCaps' (ClipboardCapabilities) member of 'XPCOMInitData'");
19006 0 : return false;
19007 : }
19008 : // Sentinel = 'clipboardCaps'
19009 0 : if ((!((msg__)->ReadSentinel(iter__, 1888724152)))) {
19010 0 : mozilla::ipc::SentinelReadError("Error deserializing 'clipboardCaps' (ClipboardCapabilities) member of 'XPCOMInitData'");
19011 0 : return false;
19012 : }
19013 0 : if ((!(Read((&((v__)->domainPolicy())), msg__, iter__)))) {
19014 0 : FatalError("Error deserializing 'domainPolicy' (DomainPolicyClone) member of 'XPCOMInitData'");
19015 0 : return false;
19016 : }
19017 : // Sentinel = 'domainPolicy'
19018 0 : if ((!((msg__)->ReadSentinel(iter__, 995607230)))) {
19019 0 : mozilla::ipc::SentinelReadError("Error deserializing 'domainPolicy' (DomainPolicyClone) member of 'XPCOMInitData'");
19020 0 : return false;
19021 : }
19022 0 : if ((!(Read((&((v__)->fontFamilies())), msg__, iter__)))) {
19023 0 : FatalError("Error deserializing 'fontFamilies' (FontFamilyListEntry[]) member of 'XPCOMInitData'");
19024 0 : return false;
19025 : }
19026 : // Sentinel = 'fontFamilies'
19027 0 : if ((!((msg__)->ReadSentinel(iter__, 3752739443)))) {
19028 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fontFamilies' (FontFamilyListEntry[]) member of 'XPCOMInitData'");
19029 0 : return false;
19030 : }
19031 0 : if ((!(Read((&((v__)->userContentSheetURL())), msg__, iter__)))) {
19032 0 : FatalError("Error deserializing 'userContentSheetURL' (OptionalURIParams) member of 'XPCOMInitData'");
19033 0 : return false;
19034 : }
19035 : // Sentinel = 'userContentSheetURL'
19036 0 : if ((!((msg__)->ReadSentinel(iter__, 2010809315)))) {
19037 0 : mozilla::ipc::SentinelReadError("Error deserializing 'userContentSheetURL' (OptionalURIParams) member of 'XPCOMInitData'");
19038 0 : return false;
19039 : }
19040 0 : if ((!(Read((&((v__)->prefs())), msg__, iter__)))) {
19041 0 : FatalError("Error deserializing 'prefs' (PrefSetting[]) member of 'XPCOMInitData'");
19042 0 : return false;
19043 : }
19044 : // Sentinel = 'prefs'
19045 0 : if ((!((msg__)->ReadSentinel(iter__, 3194398011)))) {
19046 0 : mozilla::ipc::SentinelReadError("Error deserializing 'prefs' (PrefSetting[]) member of 'XPCOMInitData'");
19047 0 : return false;
19048 : }
19049 0 : if ((!(Read((&((v__)->gfxNonDefaultVarUpdates())), msg__, iter__)))) {
19050 0 : FatalError("Error deserializing 'gfxNonDefaultVarUpdates' (GfxVarUpdate[]) member of 'XPCOMInitData'");
19051 0 : return false;
19052 : }
19053 : // Sentinel = 'gfxNonDefaultVarUpdates'
19054 0 : if ((!((msg__)->ReadSentinel(iter__, 1323016817)))) {
19055 0 : mozilla::ipc::SentinelReadError("Error deserializing 'gfxNonDefaultVarUpdates' (GfxVarUpdate[]) member of 'XPCOMInitData'");
19056 0 : return false;
19057 : }
19058 0 : if ((!(Read((&((v__)->contentDeviceData())), msg__, iter__)))) {
19059 0 : FatalError("Error deserializing 'contentDeviceData' (ContentDeviceData) member of 'XPCOMInitData'");
19060 0 : return false;
19061 : }
19062 : // Sentinel = 'contentDeviceData'
19063 0 : if ((!((msg__)->ReadSentinel(iter__, 4270682216)))) {
19064 0 : mozilla::ipc::SentinelReadError("Error deserializing 'contentDeviceData' (ContentDeviceData) member of 'XPCOMInitData'");
19065 0 : return false;
19066 : }
19067 0 : if ((!(Read((&((v__)->gfxFeatureStatus())), msg__, iter__)))) {
19068 0 : FatalError("Error deserializing 'gfxFeatureStatus' (GfxInfoFeatureStatus[]) member of 'XPCOMInitData'");
19069 0 : return false;
19070 : }
19071 : // Sentinel = 'gfxFeatureStatus'
19072 0 : if ((!((msg__)->ReadSentinel(iter__, 3984590747)))) {
19073 0 : mozilla::ipc::SentinelReadError("Error deserializing 'gfxFeatureStatus' (GfxInfoFeatureStatus[]) member of 'XPCOMInitData'");
19074 0 : return false;
19075 : }
19076 0 : if ((!(Read((&((v__)->dataStorage())), msg__, iter__)))) {
19077 0 : FatalError("Error deserializing 'dataStorage' (DataStorageEntry[]) member of 'XPCOMInitData'");
19078 0 : return false;
19079 : }
19080 : // Sentinel = 'dataStorage'
19081 0 : if ((!((msg__)->ReadSentinel(iter__, 2429691432)))) {
19082 0 : mozilla::ipc::SentinelReadError("Error deserializing 'dataStorage' (DataStorageEntry[]) member of 'XPCOMInitData'");
19083 0 : return false;
19084 : }
19085 0 : if ((!(Read((&((v__)->appLocales())), msg__, iter__)))) {
19086 0 : FatalError("Error deserializing 'appLocales' (nsCString[]) member of 'XPCOMInitData'");
19087 0 : return false;
19088 : }
19089 : // Sentinel = 'appLocales'
19090 0 : if ((!((msg__)->ReadSentinel(iter__, 2758913044)))) {
19091 0 : mozilla::ipc::SentinelReadError("Error deserializing 'appLocales' (nsCString[]) member of 'XPCOMInitData'");
19092 0 : return false;
19093 : }
19094 0 : if ((!(Read((&((v__)->requestedLocales())), msg__, iter__)))) {
19095 0 : FatalError("Error deserializing 'requestedLocales' (nsCString[]) member of 'XPCOMInitData'");
19096 0 : return false;
19097 : }
19098 : // Sentinel = 'requestedLocales'
19099 0 : if ((!((msg__)->ReadSentinel(iter__, 2758015985)))) {
19100 0 : mozilla::ipc::SentinelReadError("Error deserializing 'requestedLocales' (nsCString[]) member of 'XPCOMInitData'");
19101 0 : return false;
19102 : }
19103 0 : return true;
19104 : }
19105 :
19106 2 : auto PContentParent::Write(
19107 : const ClipboardCapabilities& v__,
19108 : Message* msg__) -> void
19109 : {
19110 2 : Write((v__).supportsSelectionClipboard(), msg__);
19111 : // Sentinel = 'supportsSelectionClipboard'
19112 2 : (msg__)->WriteSentinel(345073246);
19113 2 : Write((v__).supportsFindClipboard(), msg__);
19114 : // Sentinel = 'supportsFindClipboard'
19115 2 : (msg__)->WriteSentinel(4065686456);
19116 2 : }
19117 :
19118 0 : auto PContentParent::Read(
19119 : ClipboardCapabilities* v__,
19120 : const Message* msg__,
19121 : PickleIterator* iter__) -> bool
19122 : {
19123 0 : if ((!(Read((&((v__)->supportsSelectionClipboard())), msg__, iter__)))) {
19124 0 : FatalError("Error deserializing 'supportsSelectionClipboard' (bool) member of 'ClipboardCapabilities'");
19125 0 : return false;
19126 : }
19127 : // Sentinel = 'supportsSelectionClipboard'
19128 0 : if ((!((msg__)->ReadSentinel(iter__, 345073246)))) {
19129 0 : mozilla::ipc::SentinelReadError("Error deserializing 'supportsSelectionClipboard' (bool) member of 'ClipboardCapabilities'");
19130 0 : return false;
19131 : }
19132 0 : if ((!(Read((&((v__)->supportsFindClipboard())), msg__, iter__)))) {
19133 0 : FatalError("Error deserializing 'supportsFindClipboard' (bool) member of 'ClipboardCapabilities'");
19134 0 : return false;
19135 : }
19136 : // Sentinel = 'supportsFindClipboard'
19137 0 : if ((!((msg__)->ReadSentinel(iter__, 4065686456)))) {
19138 0 : mozilla::ipc::SentinelReadError("Error deserializing 'supportsFindClipboard' (bool) member of 'ClipboardCapabilities'");
19139 0 : return false;
19140 : }
19141 0 : return true;
19142 : }
19143 :
19144 0 : auto PContentParent::Write(
19145 : const nsTArray<PermissionRequest>& v__,
19146 : Message* msg__) -> void
19147 : {
19148 0 : uint32_t length = (v__).Length();
19149 0 : Write(length, msg__);
19150 : // Sentinel = ('length', 'PermissionRequest[]')
19151 0 : (msg__)->WriteSentinel(2457488064);
19152 :
19153 0 : for (auto& elem : v__) {
19154 0 : Write(elem, msg__);
19155 : // Sentinel = 'PermissionRequest[]'
19156 0 : (msg__)->WriteSentinel(3766910295);
19157 : }
19158 0 : }
19159 :
19160 0 : auto PContentParent::Read(
19161 : nsTArray<PermissionRequest>* v__,
19162 : const Message* msg__,
19163 : PickleIterator* iter__) -> bool
19164 : {
19165 0 : nsTArray<PermissionRequest> fa;
19166 : uint32_t length;
19167 0 : if ((!(Read((&(length)), msg__, iter__)))) {
19168 0 : mozilla::ipc::ArrayLengthReadError("PermissionRequest[]");
19169 0 : return false;
19170 : }
19171 : // Sentinel = ('length', 'PermissionRequest[]')
19172 0 : if ((!((msg__)->ReadSentinel(iter__, 2457488064)))) {
19173 0 : mozilla::ipc::SentinelReadError("PermissionRequest[]");
19174 0 : return false;
19175 : }
19176 :
19177 0 : PermissionRequest* elems = (fa).AppendElements(length);
19178 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
19179 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
19180 0 : FatalError("Error deserializing 'PermissionRequest[i]'");
19181 0 : return false;
19182 : }
19183 : // Sentinel = 'PermissionRequest[]'
19184 0 : if ((!((msg__)->ReadSentinel(iter__, 3766910295)))) {
19185 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PermissionRequest[i]'");
19186 0 : return false;
19187 : }
19188 : }
19189 0 : (v__)->SwapElements(fa);
19190 0 : return true;
19191 : }
19192 :
19193 :
19194 :
19195 : } // namespace dom
19196 : } // namespace mozilla
|