Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/PContentParent.cpp
Line
Count
Source (jump to first uncovered line)
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/AlertNotificationIPCSerializer.h"
10
#include "mozilla/chrome/RegistryMessageUtils.h"
11
#include "mozilla/dom/MessagePort.h"
12
#include "mozilla/dom/PermissionMessageUtils.h"
13
#include "mozilla/dom/ipc/StructuredCloneData.h"
14
#include "mozilla/ipc/IPCStreamUtils.h"
15
#include "mozilla/layers/CompositorTypes.h"
16
#include "mozilla/net/NeckoMessageUtils.h"
17
#include "mozilla/widget/WidgetMessageUtils.h"
18
#include "nsGeoPositionIPCSerialiser.h"
19
20
#include "mozilla/ipc/PBackgroundParent.h"
21
#include "mozilla/dom/PBrowserParent.h"
22
#include "mozilla/dom/PClientOpenWindowOpParent.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/dom/PLoginReputationParent.h"
37
#include "mozilla/media/PMediaParent.h"
38
#include "mozilla/net/PNeckoParent.h"
39
#include "mozilla/extensions/PStreamFilterParent.h"
40
#include "mozilla/gmp/PGMPContentParent.h"
41
#include "mozilla/gmp/PGMPServiceParent.h"
42
#include "mozilla/plugins/PPluginModuleParent.h"
43
#include "mozilla/gmp/PGMPParent.h"
44
#include "mozilla/embedding/PPrintingParent.h"
45
#include "mozilla/ipc/PChildToParentStreamParent.h"
46
#include "mozilla/ipc/PParentToChildStreamParent.h"
47
#include "mozilla/docshell/POfflineCacheUpdateParent.h"
48
#include "mozilla/layout/PRenderFrameParent.h"
49
#include "mozilla/dom/PSpeechSynthesisParent.h"
50
#include "mozilla/ipc/PTestShellParent.h"
51
#include "mozilla/jsipc/PJavaScriptParent.h"
52
#include "mozilla/PRemoteSpellcheckEngineParent.h"
53
#include "mozilla/PWebBrowserPersistDocumentParent.h"
54
#include "mozilla/dom/PWebrtcGlobalParent.h"
55
#include "mozilla/dom/PPresentationParent.h"
56
#include "mozilla/dom/PURLClassifierParent.h"
57
#include "mozilla/dom/PURLClassifierLocalParent.h"
58
#include "mozilla/gfx/PVRManagerParent.h"
59
#include "mozilla/dom/PVideoDecoderManagerParent.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
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
0
{
79
0
    return IPC_OK();
80
0
}
81
82
auto PContentParent::RecvPFileDescriptorSetConstructor(
83
        PFileDescriptorSetParent* actor,
84
        const FileDescriptor& fd) -> mozilla::ipc::IPCResult
85
0
{
86
0
    return IPC_OK();
87
0
}
88
89
auto PContentParent::RecvPWebBrowserPersistDocumentConstructor(
90
        PWebBrowserPersistDocumentParent* actor,
91
        PBrowserParent* aBrowser,
92
        const uint64_t& aOuterWindowID) -> mozilla::ipc::IPCResult
93
0
{
94
0
    return IPC_OK();
95
0
}
96
97
auto PContentParent::RecvPJavaScriptConstructor(PJavaScriptParent* actor) -> mozilla::ipc::IPCResult
98
0
{
99
0
    return IPC_OK();
100
0
}
101
102
auto PContentParent::RecvPRemoteSpellcheckEngineConstructor(PRemoteSpellcheckEngineParent* actor) -> mozilla::ipc::IPCResult
103
0
{
104
0
    return IPC_OK();
105
0
}
106
107
auto PContentParent::RecvPHalConstructor(PHalParent* actor) -> mozilla::ipc::IPCResult
108
0
{
109
0
    return IPC_OK();
110
0
}
111
112
auto PContentParent::RecvPHeapSnapshotTempFileHelperConstructor(PHeapSnapshotTempFileHelperParent* actor) -> mozilla::ipc::IPCResult
113
0
{
114
0
    return IPC_OK();
115
0
}
116
117
auto PContentParent::RecvPNeckoConstructor(PNeckoParent* actor) -> mozilla::ipc::IPCResult
118
0
{
119
0
    return IPC_OK();
120
0
}
121
122
auto PContentParent::RecvPPrintingConstructor(PPrintingParent* actor) -> mozilla::ipc::IPCResult
123
0
{
124
0
    return IPC_OK();
125
0
}
126
127
auto PContentParent::RecvPChildToParentStreamConstructor(PChildToParentStreamParent* actor) -> mozilla::ipc::IPCResult
128
0
{
129
0
    return IPC_OK();
130
0
}
131
132
auto PContentParent::RecvPSpeechSynthesisConstructor(PSpeechSynthesisParent* actor) -> mozilla::ipc::IPCResult
133
0
{
134
0
    return IPC_OK();
135
0
}
136
137
auto PContentParent::RecvPMediaConstructor(PMediaParent* actor) -> mozilla::ipc::IPCResult
138
0
{
139
0
    return IPC_OK();
140
0
}
141
142
auto PContentParent::RecvPWebrtcGlobalConstructor(PWebrtcGlobalParent* actor) -> mozilla::ipc::IPCResult
143
0
{
144
0
    return IPC_OK();
145
0
}
146
147
auto PContentParent::RecvPPresentationConstructor(PPresentationParent* actor) -> mozilla::ipc::IPCResult
148
0
{
149
0
    return IPC_OK();
150
0
}
151
152
auto PContentParent::RecvPURLClassifierConstructor(
153
        PURLClassifierParent* actor,
154
        const Principal& principal,
155
        const bool& useTrackingProtection,
156
        bool* success) -> mozilla::ipc::IPCResult
157
0
{
158
0
    return IPC_OK();
159
0
}
160
161
auto PContentParent::RecvPURLClassifierLocalConstructor(
162
        PURLClassifierLocalParent* actor,
163
        const URIParams& uri,
164
        const nsCString& tables) -> mozilla::ipc::IPCResult
165
0
{
166
0
    return IPC_OK();
167
0
}
168
169
auto PContentParent::RecvPLoginReputationConstructor(
170
        PLoginReputationParent* actor,
171
        const URIParams& formURI) -> mozilla::ipc::IPCResult
172
0
{
173
0
    return IPC_OK();
174
0
}
175
176
auto PContentParent::RecvPPSMContentDownloaderConstructor(
177
        PPSMContentDownloaderParent* actor,
178
        const uint32_t& aCertType) -> mozilla::ipc::IPCResult
179
0
{
180
0
    return IPC_OK();
181
0
}
182
183
auto PContentParent::RecvPExternalHelperAppConstructor(
184
        PExternalHelperAppParent* actor,
185
        const OptionalURIParams& uri,
186
        const nsCString& aMimeContentType,
187
        const nsCString& aContentDisposition,
188
        const uint32_t& aContentDispositionHint,
189
        const nsString& aContentDispositionFilename,
190
        const bool& aForceSave,
191
        const int64_t& aContentLength,
192
        const bool& aWasFileChannel,
193
        const OptionalURIParams& aReferrer,
194
        PBrowserParent* aBrowser) -> mozilla::ipc::IPCResult
195
0
{
196
0
    return IPC_OK();
197
0
}
198
199
auto PContentParent::RecvPHandlerServiceConstructor(PHandlerServiceParent* actor) -> mozilla::ipc::IPCResult
200
0
{
201
0
    return IPC_OK();
202
0
}
203
204
auto PContentParent::RecvPOfflineCacheUpdateConstructor(
205
        POfflineCacheUpdateParent* actor,
206
        const URIParams& manifestURI,
207
        const URIParams& documentURI,
208
        const PrincipalInfo& loadingPrincipal,
209
        const bool& stickDocument) -> mozilla::ipc::IPCResult
210
0
{
211
0
    return IPC_OK();
212
0
}
213
214
auto PContentParent::RecvPContentPermissionRequestConstructor(
215
        PContentPermissionRequestParent* actor,
216
        nsTArray<PermissionRequest>&& aRequests,
217
        const Principal& aPrincipal,
218
        const bool& aIsHandlingUserInput,
219
        const TabId& tabId) -> mozilla::ipc::IPCResult
220
0
{
221
0
    return IPC_OK();
222
0
}
223
224
auto PContentParent::ActorDestroy(ActorDestroyReason aWhy) -> void
225
0
{
226
0
}
227
228
auto PContentParent::ProcessingError(
229
        Result aCode,
230
        const char* aReason) -> void
231
0
{
232
0
}
233
234
auto PContentParent::ShouldContinueFromReplyTimeout() -> bool
235
0
{
236
0
    return true;
237
0
}
238
239
auto PContentParent::EnteredCxxStack() -> void
240
0
{
241
0
}
242
243
auto PContentParent::ExitedCxxStack() -> void
244
0
{
245
0
}
246
247
auto PContentParent::EnteredCall() -> void
248
0
{
249
0
}
250
251
auto PContentParent::ExitedCall() -> void
252
0
{
253
0
}
254
255
MOZ_IMPLICIT PContentParent::PContentParent() :
256
    mozilla::ipc::IToplevelProtocol("PContentParent", PContentMsgStart, mozilla::ipc::ParentSide),
257
    mLivenessState(mozilla::ipc::LivenessState::Start)
258
0
{
259
0
    MOZ_COUNT_CTOR(PContentParent);
260
0
}
261
262
PContentParent::~PContentParent()
263
0
{
264
0
    MOZ_COUNT_DTOR(PContentParent);
265
0
}
266
267
auto PContentParent::ManagedPBrowserParent(nsTArray<PBrowserParent*>& aArr) const -> void
268
0
{
269
0
    (mManagedPBrowserParent).ToArray(aArr);
270
0
}
271
272
auto PContentParent::ManagedPBrowserParent() const -> const ManagedContainer<PBrowserParent>&
273
0
{
274
0
    return mManagedPBrowserParent;
275
0
}
276
277
auto PContentParent::ManagedPClientOpenWindowOpParent(nsTArray<PClientOpenWindowOpParent*>& aArr) const -> void
278
0
{
279
0
    (mManagedPClientOpenWindowOpParent).ToArray(aArr);
280
0
}
281
282
auto PContentParent::ManagedPClientOpenWindowOpParent() const -> const ManagedContainer<PClientOpenWindowOpParent>&
283
0
{
284
0
    return mManagedPClientOpenWindowOpParent;
285
0
}
286
287
auto PContentParent::ManagedPContentPermissionRequestParent(nsTArray<PContentPermissionRequestParent*>& aArr) const -> void
288
0
{
289
0
    (mManagedPContentPermissionRequestParent).ToArray(aArr);
290
0
}
291
292
auto PContentParent::ManagedPContentPermissionRequestParent() const -> const ManagedContainer<PContentPermissionRequestParent>&
293
0
{
294
0
    return mManagedPContentPermissionRequestParent;
295
0
}
296
297
auto PContentParent::ManagedPCycleCollectWithLogsParent(nsTArray<PCycleCollectWithLogsParent*>& aArr) const -> void
298
0
{
299
0
    (mManagedPCycleCollectWithLogsParent).ToArray(aArr);
300
0
}
301
302
auto PContentParent::ManagedPCycleCollectWithLogsParent() const -> const ManagedContainer<PCycleCollectWithLogsParent>&
303
0
{
304
0
    return mManagedPCycleCollectWithLogsParent;
305
0
}
306
307
auto PContentParent::ManagedPPSMContentDownloaderParent(nsTArray<PPSMContentDownloaderParent*>& aArr) const -> void
308
0
{
309
0
    (mManagedPPSMContentDownloaderParent).ToArray(aArr);
310
0
}
311
312
auto PContentParent::ManagedPPSMContentDownloaderParent() const -> const ManagedContainer<PPSMContentDownloaderParent>&
313
0
{
314
0
    return mManagedPPSMContentDownloaderParent;
315
0
}
316
317
auto PContentParent::ManagedPExternalHelperAppParent(nsTArray<PExternalHelperAppParent*>& aArr) const -> void
318
0
{
319
0
    (mManagedPExternalHelperAppParent).ToArray(aArr);
320
0
}
321
322
auto PContentParent::ManagedPExternalHelperAppParent() const -> const ManagedContainer<PExternalHelperAppParent>&
323
0
{
324
0
    return mManagedPExternalHelperAppParent;
325
0
}
326
327
auto PContentParent::ManagedPFileDescriptorSetParent(nsTArray<PFileDescriptorSetParent*>& aArr) const -> void
328
0
{
329
0
    (mManagedPFileDescriptorSetParent).ToArray(aArr);
330
0
}
331
332
auto PContentParent::ManagedPFileDescriptorSetParent() const -> const ManagedContainer<PFileDescriptorSetParent>&
333
0
{
334
0
    return mManagedPFileDescriptorSetParent;
335
0
}
336
337
auto PContentParent::ManagedPHalParent(nsTArray<PHalParent*>& aArr) const -> void
338
0
{
339
0
    (mManagedPHalParent).ToArray(aArr);
340
0
}
341
342
auto PContentParent::ManagedPHalParent() const -> const ManagedContainer<PHalParent>&
343
0
{
344
0
    return mManagedPHalParent;
345
0
}
346
347
auto PContentParent::ManagedPHandlerServiceParent(nsTArray<PHandlerServiceParent*>& aArr) const -> void
348
0
{
349
0
    (mManagedPHandlerServiceParent).ToArray(aArr);
350
0
}
351
352
auto PContentParent::ManagedPHandlerServiceParent() const -> const ManagedContainer<PHandlerServiceParent>&
353
0
{
354
0
    return mManagedPHandlerServiceParent;
355
0
}
356
357
auto PContentParent::ManagedPHeapSnapshotTempFileHelperParent(nsTArray<PHeapSnapshotTempFileHelperParent*>& aArr) const -> void
358
0
{
359
0
    (mManagedPHeapSnapshotTempFileHelperParent).ToArray(aArr);
360
0
}
361
362
auto PContentParent::ManagedPHeapSnapshotTempFileHelperParent() const -> const ManagedContainer<PHeapSnapshotTempFileHelperParent>&
363
0
{
364
0
    return mManagedPHeapSnapshotTempFileHelperParent;
365
0
}
366
367
auto PContentParent::ManagedPIPCBlobInputStreamParent(nsTArray<PIPCBlobInputStreamParent*>& aArr) const -> void
368
0
{
369
0
    (mManagedPIPCBlobInputStreamParent).ToArray(aArr);
370
0
}
371
372
auto PContentParent::ManagedPIPCBlobInputStreamParent() const -> const ManagedContainer<PIPCBlobInputStreamParent>&
373
0
{
374
0
    return mManagedPIPCBlobInputStreamParent;
375
0
}
376
377
auto PContentParent::ManagedPMediaParent(nsTArray<PMediaParent*>& aArr) const -> void
378
0
{
379
0
    (mManagedPMediaParent).ToArray(aArr);
380
0
}
381
382
auto PContentParent::ManagedPMediaParent() const -> const ManagedContainer<PMediaParent>&
383
0
{
384
0
    return mManagedPMediaParent;
385
0
}
386
387
auto PContentParent::ManagedPNeckoParent(nsTArray<PNeckoParent*>& aArr) const -> void
388
0
{
389
0
    (mManagedPNeckoParent).ToArray(aArr);
390
0
}
391
392
auto PContentParent::ManagedPNeckoParent() const -> const ManagedContainer<PNeckoParent>&
393
0
{
394
0
    return mManagedPNeckoParent;
395
0
}
396
397
auto PContentParent::ManagedPOfflineCacheUpdateParent(nsTArray<POfflineCacheUpdateParent*>& aArr) const -> void
398
0
{
399
0
    (mManagedPOfflineCacheUpdateParent).ToArray(aArr);
400
0
}
401
402
auto PContentParent::ManagedPOfflineCacheUpdateParent() const -> const ManagedContainer<POfflineCacheUpdateParent>&
403
0
{
404
0
    return mManagedPOfflineCacheUpdateParent;
405
0
}
406
407
auto PContentParent::ManagedPPrintingParent(nsTArray<PPrintingParent*>& aArr) const -> void
408
0
{
409
0
    (mManagedPPrintingParent).ToArray(aArr);
410
0
}
411
412
auto PContentParent::ManagedPPrintingParent() const -> const ManagedContainer<PPrintingParent>&
413
0
{
414
0
    return mManagedPPrintingParent;
415
0
}
416
417
auto PContentParent::ManagedPChildToParentStreamParent(nsTArray<PChildToParentStreamParent*>& aArr) const -> void
418
0
{
419
0
    (mManagedPChildToParentStreamParent).ToArray(aArr);
420
0
}
421
422
auto PContentParent::ManagedPChildToParentStreamParent() const -> const ManagedContainer<PChildToParentStreamParent>&
423
0
{
424
0
    return mManagedPChildToParentStreamParent;
425
0
}
426
427
auto PContentParent::ManagedPParentToChildStreamParent(nsTArray<PParentToChildStreamParent*>& aArr) const -> void
428
0
{
429
0
    (mManagedPParentToChildStreamParent).ToArray(aArr);
430
0
}
431
432
auto PContentParent::ManagedPParentToChildStreamParent() const -> const ManagedContainer<PParentToChildStreamParent>&
433
0
{
434
0
    return mManagedPParentToChildStreamParent;
435
0
}
436
437
auto PContentParent::ManagedPSpeechSynthesisParent(nsTArray<PSpeechSynthesisParent*>& aArr) const -> void
438
0
{
439
0
    (mManagedPSpeechSynthesisParent).ToArray(aArr);
440
0
}
441
442
auto PContentParent::ManagedPSpeechSynthesisParent() const -> const ManagedContainer<PSpeechSynthesisParent>&
443
0
{
444
0
    return mManagedPSpeechSynthesisParent;
445
0
}
446
447
auto PContentParent::ManagedPTestShellParent(nsTArray<PTestShellParent*>& aArr) const -> void
448
0
{
449
0
    (mManagedPTestShellParent).ToArray(aArr);
450
0
}
451
452
auto PContentParent::ManagedPTestShellParent() const -> const ManagedContainer<PTestShellParent>&
453
0
{
454
0
    return mManagedPTestShellParent;
455
0
}
456
457
auto PContentParent::ManagedPJavaScriptParent(nsTArray<PJavaScriptParent*>& aArr) const -> void
458
0
{
459
0
    (mManagedPJavaScriptParent).ToArray(aArr);
460
0
}
461
462
auto PContentParent::ManagedPJavaScriptParent() const -> const ManagedContainer<PJavaScriptParent>&
463
0
{
464
0
    return mManagedPJavaScriptParent;
465
0
}
466
467
auto PContentParent::ManagedPRemoteSpellcheckEngineParent(nsTArray<PRemoteSpellcheckEngineParent*>& aArr) const -> void
468
0
{
469
0
    (mManagedPRemoteSpellcheckEngineParent).ToArray(aArr);
470
0
}
471
472
auto PContentParent::ManagedPRemoteSpellcheckEngineParent() const -> const ManagedContainer<PRemoteSpellcheckEngineParent>&
473
0
{
474
0
    return mManagedPRemoteSpellcheckEngineParent;
475
0
}
476
477
auto PContentParent::ManagedPWebBrowserPersistDocumentParent(nsTArray<PWebBrowserPersistDocumentParent*>& aArr) const -> void
478
0
{
479
0
    (mManagedPWebBrowserPersistDocumentParent).ToArray(aArr);
480
0
}
481
482
auto PContentParent::ManagedPWebBrowserPersistDocumentParent() const -> const ManagedContainer<PWebBrowserPersistDocumentParent>&
483
0
{
484
0
    return mManagedPWebBrowserPersistDocumentParent;
485
0
}
486
487
auto PContentParent::ManagedPWebrtcGlobalParent(nsTArray<PWebrtcGlobalParent*>& aArr) const -> void
488
0
{
489
0
    (mManagedPWebrtcGlobalParent).ToArray(aArr);
490
0
}
491
492
auto PContentParent::ManagedPWebrtcGlobalParent() const -> const ManagedContainer<PWebrtcGlobalParent>&
493
0
{
494
0
    return mManagedPWebrtcGlobalParent;
495
0
}
496
497
auto PContentParent::ManagedPPresentationParent(nsTArray<PPresentationParent*>& aArr) const -> void
498
0
{
499
0
    (mManagedPPresentationParent).ToArray(aArr);
500
0
}
501
502
auto PContentParent::ManagedPPresentationParent() const -> const ManagedContainer<PPresentationParent>&
503
0
{
504
0
    return mManagedPPresentationParent;
505
0
}
506
507
auto PContentParent::ManagedPURLClassifierParent(nsTArray<PURLClassifierParent*>& aArr) const -> void
508
0
{
509
0
    (mManagedPURLClassifierParent).ToArray(aArr);
510
0
}
511
512
auto PContentParent::ManagedPURLClassifierParent() const -> const ManagedContainer<PURLClassifierParent>&
513
0
{
514
0
    return mManagedPURLClassifierParent;
515
0
}
516
517
auto PContentParent::ManagedPURLClassifierLocalParent(nsTArray<PURLClassifierLocalParent*>& aArr) const -> void
518
0
{
519
0
    (mManagedPURLClassifierLocalParent).ToArray(aArr);
520
0
}
521
522
auto PContentParent::ManagedPURLClassifierLocalParent() const -> const ManagedContainer<PURLClassifierLocalParent>&
523
0
{
524
0
    return mManagedPURLClassifierLocalParent;
525
0
}
526
527
auto PContentParent::ManagedPScriptCacheParent(nsTArray<PScriptCacheParent*>& aArr) const -> void
528
0
{
529
0
    (mManagedPScriptCacheParent).ToArray(aArr);
530
0
}
531
532
auto PContentParent::ManagedPScriptCacheParent() const -> const ManagedContainer<PScriptCacheParent>&
533
0
{
534
0
    return mManagedPScriptCacheParent;
535
0
}
536
537
auto PContentParent::ManagedPLoginReputationParent(nsTArray<PLoginReputationParent*>& aArr) const -> void
538
0
{
539
0
    (mManagedPLoginReputationParent).ToArray(aArr);
540
0
}
541
542
auto PContentParent::ManagedPLoginReputationParent() const -> const ManagedContainer<PLoginReputationParent>&
543
0
{
544
0
    return mManagedPLoginReputationParent;
545
0
}
546
547
auto PContentParent::SendPBrowserConstructor(
548
        const TabId& tabId,
549
        const TabId& sameTabGroupAs,
550
        const IPCTabContext& context,
551
        const uint32_t& chromeFlags,
552
        const ContentParentId& cpId,
553
        const bool& isForBrowser) -> PBrowserParent*
554
0
{
555
0
    return SendPBrowserConstructor(AllocPBrowserParent(tabId, sameTabGroupAs, context, chromeFlags, cpId, isForBrowser), tabId, sameTabGroupAs, context, chromeFlags, cpId, isForBrowser);
556
0
}
557
558
auto PContentParent::SendPBrowserConstructor(
559
        PBrowserParent* actor,
560
        const TabId& tabId,
561
        const TabId& sameTabGroupAs,
562
        const IPCTabContext& context,
563
        const uint32_t& chromeFlags,
564
        const ContentParentId& cpId,
565
        const bool& isForBrowser) -> PBrowserParent*
566
0
{
567
0
    if ((!(actor))) {
568
0
        NS_WARNING("Error constructing actor PBrowserParent");
569
0
        return nullptr;
570
0
    }
571
0
    (actor)->SetManagerAndRegister(this);
572
0
    (mManagedPBrowserParent).PutEntry(actor);
573
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
574
0
575
0
    IPC::Message* msg__ = PContent::Msg_PBrowserConstructor(MSG_ROUTING_CONTROL);
576
0
577
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
578
0
    WriteIPDLParam(msg__, this, actor);
579
0
    // Sentinel = 'actor'
580
0
    (msg__)->WriteSentinel(875202478);
581
0
    WriteIPDLParam(msg__, this, tabId);
582
0
    // Sentinel = 'tabId'
583
0
    (msg__)->WriteSentinel(3419081923);
584
0
    WriteIPDLParam(msg__, this, sameTabGroupAs);
585
0
    // Sentinel = 'sameTabGroupAs'
586
0
    (msg__)->WriteSentinel(3969365410);
587
0
    WriteIPDLParam(msg__, this, context);
588
0
    // Sentinel = 'context'
589
0
    (msg__)->WriteSentinel(3514529014);
590
0
    WriteIPDLParam(msg__, this, chromeFlags);
591
0
    // Sentinel = 'chromeFlags'
592
0
    (msg__)->WriteSentinel(299515804);
593
0
    WriteIPDLParam(msg__, this, cpId);
594
0
    // Sentinel = 'cpId'
595
0
    (msg__)->WriteSentinel(2452595622);
596
0
    WriteIPDLParam(msg__, this, isForBrowser);
597
0
    // Sentinel = 'isForBrowser'
598
0
    (msg__)->WriteSentinel(2051565587);
599
0
600
0
601
0
602
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
603
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
604
0
    }
605
0
    AUTO_PROFILER_LABEL("PContent::Msg_PBrowserConstructor", OTHER);
606
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
607
0
        mozilla::ipc::LogicError("Transition error");
608
0
    }
609
0
610
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
611
0
    if ((!(sendok__))) {
612
0
        IProtocol* mgr = (actor)->Manager();
613
0
        (actor)->DestroySubtree(FailedConstructor);
614
0
        (actor)->DeallocSubtree();
615
0
        (mgr)->RemoveManagee(PBrowserMsgStart, actor);
616
0
        return nullptr;
617
0
    }
618
0
    return actor;
619
0
}
620
621
auto PContentParent::SendPFileDescriptorSetConstructor(const FileDescriptor& fd) -> PFileDescriptorSetParent*
622
0
{
623
0
    return SendPFileDescriptorSetConstructor(AllocPFileDescriptorSetParent(fd), fd);
624
0
}
625
626
auto PContentParent::SendPFileDescriptorSetConstructor(
627
        PFileDescriptorSetParent* actor,
628
        const FileDescriptor& fd) -> PFileDescriptorSetParent*
629
0
{
630
0
    if ((!(actor))) {
631
0
        NS_WARNING("Error constructing actor PFileDescriptorSetParent");
632
0
        return nullptr;
633
0
    }
634
0
    (actor)->SetManagerAndRegister(this);
635
0
    (mManagedPFileDescriptorSetParent).PutEntry(actor);
636
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
637
0
638
0
    IPC::Message* msg__ = PContent::Msg_PFileDescriptorSetConstructor(MSG_ROUTING_CONTROL);
639
0
640
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
641
0
    WriteIPDLParam(msg__, this, actor);
642
0
    // Sentinel = 'actor'
643
0
    (msg__)->WriteSentinel(875202478);
644
0
    WriteIPDLParam(msg__, this, fd);
645
0
    // Sentinel = 'fd'
646
0
    (msg__)->WriteSentinel(628535764);
647
0
648
0
649
0
650
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
651
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
652
0
    }
653
0
    AUTO_PROFILER_LABEL("PContent::Msg_PFileDescriptorSetConstructor", OTHER);
654
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
655
0
        mozilla::ipc::LogicError("Transition error");
656
0
    }
657
0
658
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
659
0
    if ((!(sendok__))) {
660
0
        IProtocol* mgr = (actor)->Manager();
661
0
        (actor)->DestroySubtree(FailedConstructor);
662
0
        (actor)->DeallocSubtree();
663
0
        (mgr)->RemoveManagee(PFileDescriptorSetMsgStart, actor);
664
0
        return nullptr;
665
0
    }
666
0
    return actor;
667
0
}
668
669
auto PContentParent::SendPWebBrowserPersistDocumentConstructor(
670
        PBrowserParent* aBrowser,
671
        const uint64_t& aOuterWindowID) -> PWebBrowserPersistDocumentParent*
672
0
{
673
0
    return SendPWebBrowserPersistDocumentConstructor(AllocPWebBrowserPersistDocumentParent(aBrowser, aOuterWindowID), aBrowser, aOuterWindowID);
674
0
}
675
676
auto PContentParent::SendPWebBrowserPersistDocumentConstructor(
677
        PWebBrowserPersistDocumentParent* actor,
678
        PBrowserParent* aBrowser,
679
        const uint64_t& aOuterWindowID) -> PWebBrowserPersistDocumentParent*
680
0
{
681
0
    if ((!(actor))) {
682
0
        NS_WARNING("Error constructing actor PWebBrowserPersistDocumentParent");
683
0
        return nullptr;
684
0
    }
685
0
    (actor)->SetManagerAndRegister(this);
686
0
    (mManagedPWebBrowserPersistDocumentParent).PutEntry(actor);
687
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
688
0
689
0
    IPC::Message* msg__ = PContent::Msg_PWebBrowserPersistDocumentConstructor(MSG_ROUTING_CONTROL);
690
0
691
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
692
0
    WriteIPDLParam(msg__, this, actor);
693
0
    // Sentinel = 'actor'
694
0
    (msg__)->WriteSentinel(875202478);
695
0
    WriteIPDLParam(msg__, this, aBrowser);
696
0
    // Sentinel = 'aBrowser'
697
0
    (msg__)->WriteSentinel(3086016059);
698
0
    WriteIPDLParam(msg__, this, aOuterWindowID);
699
0
    // Sentinel = 'aOuterWindowID'
700
0
    (msg__)->WriteSentinel(3438169907);
701
0
702
0
703
0
704
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
705
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
706
0
    }
707
0
    AUTO_PROFILER_LABEL("PContent::Msg_PWebBrowserPersistDocumentConstructor", OTHER);
708
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
709
0
        mozilla::ipc::LogicError("Transition error");
710
0
    }
711
0
712
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
713
0
    if ((!(sendok__))) {
714
0
        IProtocol* mgr = (actor)->Manager();
715
0
        (actor)->DestroySubtree(FailedConstructor);
716
0
        (actor)->DeallocSubtree();
717
0
        (mgr)->RemoveManagee(PWebBrowserPersistDocumentMsgStart, actor);
718
0
        return nullptr;
719
0
    }
720
0
    return actor;
721
0
}
722
723
auto PContentParent::SendInitGMPService(const Endpoint<mozilla::gmp::PGMPServiceChild>& service) -> bool
724
0
{
725
0
    IPC::Message* msg__ = PContent::Msg_InitGMPService(MSG_ROUTING_CONTROL);
726
0
727
0
    WriteIPDLParam(msg__, this, service);
728
0
    // Sentinel = 'service'
729
0
    (msg__)->WriteSentinel(4064038);
730
0
731
0
732
0
733
0
734
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
735
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
736
0
    }
737
0
    AUTO_PROFILER_LABEL("PContent::Msg_InitGMPService", OTHER);
738
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
739
0
        mozilla::ipc::LogicError("Transition error");
740
0
    }
741
0
742
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
743
0
    return sendok__;
744
0
}
745
746
auto PContentParent::SendInitProcessHangMonitor(const Endpoint<mozilla::PProcessHangMonitorChild>& hangMonitor) -> bool
747
0
{
748
0
    IPC::Message* msg__ = PContent::Msg_InitProcessHangMonitor(MSG_ROUTING_CONTROL);
749
0
750
0
    WriteIPDLParam(msg__, this, hangMonitor);
751
0
    // Sentinel = 'hangMonitor'
752
0
    (msg__)->WriteSentinel(1135728705);
753
0
754
0
755
0
756
0
757
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
758
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
759
0
    }
760
0
    AUTO_PROFILER_LABEL("PContent::Msg_InitProcessHangMonitor", OTHER);
761
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
762
0
        mozilla::ipc::LogicError("Transition error");
763
0
    }
764
0
765
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
766
0
    return sendok__;
767
0
}
768
769
auto PContentParent::SendInitContentBridgeChild(const Endpoint<mozilla::dom::PContentBridgeChild>& endpoint) -> bool
770
0
{
771
0
    IPC::Message* msg__ = PContent::Msg_InitContentBridgeChild(MSG_ROUTING_CONTROL);
772
0
773
0
    WriteIPDLParam(msg__, this, endpoint);
774
0
    // Sentinel = 'endpoint'
775
0
    (msg__)->WriteSentinel(3610972515);
776
0
777
0
778
0
779
0
780
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
781
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
782
0
    }
783
0
    AUTO_PROFILER_LABEL("PContent::Msg_InitContentBridgeChild", OTHER);
784
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
785
0
        mozilla::ipc::LogicError("Transition error");
786
0
    }
787
0
788
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
789
0
    return sendok__;
790
0
}
791
792
auto PContentParent::SendInitProfiler(const Endpoint<mozilla::PProfilerChild>& aEndpoint) -> bool
793
0
{
794
0
    IPC::Message* msg__ = PContent::Msg_InitProfiler(MSG_ROUTING_CONTROL);
795
0
796
0
    WriteIPDLParam(msg__, this, aEndpoint);
797
0
    // Sentinel = 'aEndpoint'
798
0
    (msg__)->WriteSentinel(2457438235);
799
0
800
0
801
0
802
0
803
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
804
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
805
0
    }
806
0
    AUTO_PROFILER_LABEL("PContent::Msg_InitProfiler", OTHER);
807
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
808
0
        mozilla::ipc::LogicError("Transition error");
809
0
    }
810
0
811
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
812
0
    return sendok__;
813
0
}
814
815
auto PContentParent::SendInitRendering(
816
        const Endpoint<mozilla::layers::PCompositorManagerChild>& compositor,
817
        const Endpoint<mozilla::layers::PImageBridgeChild>& imageBridge,
818
        const Endpoint<mozilla::gfx::PVRManagerChild>& vr,
819
        const Endpoint<mozilla::dom::PVideoDecoderManagerChild>& video,
820
        const nsTArray<uint32_t>& namespaces) -> bool
821
0
{
822
0
    IPC::Message* msg__ = PContent::Msg_InitRendering(MSG_ROUTING_CONTROL);
823
0
824
0
    WriteIPDLParam(msg__, this, compositor);
825
0
    // Sentinel = 'compositor'
826
0
    (msg__)->WriteSentinel(2766138585);
827
0
    WriteIPDLParam(msg__, this, imageBridge);
828
0
    // Sentinel = 'imageBridge'
829
0
    (msg__)->WriteSentinel(390565091);
830
0
    WriteIPDLParam(msg__, this, vr);
831
0
    // Sentinel = 'vr'
832
0
    (msg__)->WriteSentinel(727129490);
833
0
    WriteIPDLParam(msg__, this, video);
834
0
    // Sentinel = 'video'
835
0
    (msg__)->WriteSentinel(1200625812);
836
0
    WriteIPDLParam(msg__, this, namespaces);
837
0
    // Sentinel = 'namespaces'
838
0
    (msg__)->WriteSentinel(331300950);
839
0
840
0
841
0
842
0
843
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
844
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
845
0
    }
846
0
    AUTO_PROFILER_LABEL("PContent::Msg_InitRendering", OTHER);
847
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
848
0
        mozilla::ipc::LogicError("Transition error");
849
0
    }
850
0
851
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
852
0
    return sendok__;
853
0
}
854
855
auto PContentParent::SendReinitRendering(
856
        const Endpoint<mozilla::layers::PCompositorManagerChild>& compositor,
857
        const Endpoint<mozilla::layers::PImageBridgeChild>& bridge,
858
        const Endpoint<mozilla::gfx::PVRManagerChild>& vr,
859
        const Endpoint<mozilla::dom::PVideoDecoderManagerChild>& video,
860
        const nsTArray<uint32_t>& namespaces) -> bool
861
0
{
862
0
    IPC::Message* msg__ = PContent::Msg_ReinitRendering(MSG_ROUTING_CONTROL);
863
0
864
0
    WriteIPDLParam(msg__, this, compositor);
865
0
    // Sentinel = 'compositor'
866
0
    (msg__)->WriteSentinel(2766138585);
867
0
    WriteIPDLParam(msg__, this, bridge);
868
0
    // Sentinel = 'bridge'
869
0
    (msg__)->WriteSentinel(1159488385);
870
0
    WriteIPDLParam(msg__, this, vr);
871
0
    // Sentinel = 'vr'
872
0
    (msg__)->WriteSentinel(727129490);
873
0
    WriteIPDLParam(msg__, this, video);
874
0
    // Sentinel = 'video'
875
0
    (msg__)->WriteSentinel(1200625812);
876
0
    WriteIPDLParam(msg__, this, namespaces);
877
0
    // Sentinel = 'namespaces'
878
0
    (msg__)->WriteSentinel(331300950);
879
0
880
0
881
0
882
0
883
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
884
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
885
0
    }
886
0
    AUTO_PROFILER_LABEL("PContent::Msg_ReinitRendering", OTHER);
887
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
888
0
        mozilla::ipc::LogicError("Transition error");
889
0
    }
890
0
891
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
892
0
    return sendok__;
893
0
}
894
895
auto PContentParent::SendAudioDefaultDeviceChange() -> bool
896
0
{
897
0
    IPC::Message* msg__ = PContent::Msg_AudioDefaultDeviceChange(MSG_ROUTING_CONTROL);
898
0
899
0
900
0
901
0
902
0
903
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
904
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
905
0
    }
906
0
    AUTO_PROFILER_LABEL("PContent::Msg_AudioDefaultDeviceChange", OTHER);
907
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
908
0
        mozilla::ipc::LogicError("Transition error");
909
0
    }
910
0
911
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
912
0
    return sendok__;
913
0
}
914
915
auto PContentParent::SendReinitRenderingForDeviceReset() -> bool
916
0
{
917
0
    IPC::Message* msg__ = PContent::Msg_ReinitRenderingForDeviceReset(MSG_ROUTING_CONTROL);
918
0
919
0
920
0
921
0
922
0
923
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
924
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
925
0
    }
926
0
    AUTO_PROFILER_LABEL("PContent::Msg_ReinitRenderingForDeviceReset", OTHER);
927
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
928
0
        mozilla::ipc::LogicError("Transition error");
929
0
    }
930
0
931
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
932
0
    return sendok__;
933
0
}
934
935
auto PContentParent::SendSetProcessSandbox(const MaybeFileDesc& aBroker) -> bool
936
0
{
937
0
    IPC::Message* msg__ = PContent::Msg_SetProcessSandbox(MSG_ROUTING_CONTROL);
938
0
939
0
    WriteIPDLParam(msg__, this, aBroker);
940
0
    // Sentinel = 'aBroker'
941
0
    (msg__)->WriteSentinel(2424547965);
942
0
943
0
944
0
945
0
946
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
947
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
948
0
    }
949
0
    AUTO_PROFILER_LABEL("PContent::Msg_SetProcessSandbox", OTHER);
950
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
951
0
        mozilla::ipc::LogicError("Transition error");
952
0
    }
953
0
954
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
955
0
    return sendok__;
956
0
}
957
958
auto PContentParent::SendRequestMemoryReport(
959
        const uint32_t& generation,
960
        const bool& anonymize,
961
        const bool& minimizeMemoryUsage,
962
        const MaybeFileDesc& DMDFile) -> bool
963
0
{
964
0
    IPC::Message* msg__ = PContent::Msg_RequestMemoryReport(MSG_ROUTING_CONTROL);
965
0
966
0
    WriteIPDLParam(msg__, this, generation);
967
0
    // Sentinel = 'generation'
968
0
    (msg__)->WriteSentinel(1396961928);
969
0
    WriteIPDLParam(msg__, this, anonymize);
970
0
    // Sentinel = 'anonymize'
971
0
    (msg__)->WriteSentinel(3334711915);
972
0
    WriteIPDLParam(msg__, this, minimizeMemoryUsage);
973
0
    // Sentinel = 'minimizeMemoryUsage'
974
0
    (msg__)->WriteSentinel(3442464661);
975
0
    WriteIPDLParam(msg__, this, DMDFile);
976
0
    // Sentinel = 'DMDFile'
977
0
    (msg__)->WriteSentinel(3739167222);
978
0
979
0
980
0
981
0
982
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
983
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
984
0
    }
985
0
    AUTO_PROFILER_LABEL("PContent::Msg_RequestMemoryReport", OTHER);
986
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
987
0
        mozilla::ipc::LogicError("Transition error");
988
0
    }
989
0
990
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
991
0
    return sendok__;
992
0
}
993
994
auto PContentParent::SendRequestPerformanceMetrics(const nsID& aID) -> bool
995
0
{
996
0
    IPC::Message* msg__ = PContent::Msg_RequestPerformanceMetrics(MSG_ROUTING_CONTROL);
997
0
998
0
    WriteIPDLParam(msg__, this, aID);
999
0
    // Sentinel = 'aID'
1000
0
    (msg__)->WriteSentinel(2735041849);
1001
0
1002
0
1003
0
1004
0
1005
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1006
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1007
0
    }
1008
0
    AUTO_PROFILER_LABEL("PContent::Msg_RequestPerformanceMetrics", OTHER);
1009
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1010
0
        mozilla::ipc::LogicError("Transition error");
1011
0
    }
1012
0
1013
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1014
0
    return sendok__;
1015
0
}
1016
1017
auto PContentParent::SendBidiKeyboardNotify(
1018
        const bool& isLangRTL,
1019
        const bool& haveBidiKeyboards) -> bool
1020
0
{
1021
0
    IPC::Message* msg__ = PContent::Msg_BidiKeyboardNotify(MSG_ROUTING_CONTROL);
1022
0
1023
0
    WriteIPDLParam(msg__, this, isLangRTL);
1024
0
    // Sentinel = 'isLangRTL'
1025
0
    (msg__)->WriteSentinel(1112035623);
1026
0
    WriteIPDLParam(msg__, this, haveBidiKeyboards);
1027
0
    // Sentinel = 'haveBidiKeyboards'
1028
0
    (msg__)->WriteSentinel(4121278935);
1029
0
1030
0
1031
0
1032
0
1033
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1034
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1035
0
    }
1036
0
    AUTO_PROFILER_LABEL("PContent::Msg_BidiKeyboardNotify", OTHER);
1037
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1038
0
        mozilla::ipc::LogicError("Transition error");
1039
0
    }
1040
0
1041
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1042
0
    return sendok__;
1043
0
}
1044
1045
auto PContentParent::SendPCycleCollectWithLogsConstructor(
1046
        const bool& dumpAllTraces,
1047
        const FileDescriptor& gcLog,
1048
        const FileDescriptor& ccLog) -> PCycleCollectWithLogsParent*
1049
0
{
1050
0
    return SendPCycleCollectWithLogsConstructor(AllocPCycleCollectWithLogsParent(dumpAllTraces, gcLog, ccLog), dumpAllTraces, gcLog, ccLog);
1051
0
}
1052
1053
auto PContentParent::SendPCycleCollectWithLogsConstructor(
1054
        PCycleCollectWithLogsParent* actor,
1055
        const bool& dumpAllTraces,
1056
        const FileDescriptor& gcLog,
1057
        const FileDescriptor& ccLog) -> PCycleCollectWithLogsParent*
1058
0
{
1059
0
    if ((!(actor))) {
1060
0
        NS_WARNING("Error constructing actor PCycleCollectWithLogsParent");
1061
0
        return nullptr;
1062
0
    }
1063
0
    (actor)->SetManagerAndRegister(this);
1064
0
    (mManagedPCycleCollectWithLogsParent).PutEntry(actor);
1065
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1066
0
1067
0
    IPC::Message* msg__ = PContent::Msg_PCycleCollectWithLogsConstructor(MSG_ROUTING_CONTROL);
1068
0
1069
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
1070
0
    WriteIPDLParam(msg__, this, actor);
1071
0
    // Sentinel = 'actor'
1072
0
    (msg__)->WriteSentinel(875202478);
1073
0
    WriteIPDLParam(msg__, this, dumpAllTraces);
1074
0
    // Sentinel = 'dumpAllTraces'
1075
0
    (msg__)->WriteSentinel(1185678160);
1076
0
    WriteIPDLParam(msg__, this, gcLog);
1077
0
    // Sentinel = 'gcLog'
1078
0
    (msg__)->WriteSentinel(1153400941);
1079
0
    WriteIPDLParam(msg__, this, ccLog);
1080
0
    // Sentinel = 'ccLog'
1081
0
    (msg__)->WriteSentinel(2494741865);
1082
0
1083
0
1084
0
1085
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1086
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1087
0
    }
1088
0
    AUTO_PROFILER_LABEL("PContent::Msg_PCycleCollectWithLogsConstructor", OTHER);
1089
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1090
0
        mozilla::ipc::LogicError("Transition error");
1091
0
    }
1092
0
1093
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1094
0
    if ((!(sendok__))) {
1095
0
        IProtocol* mgr = (actor)->Manager();
1096
0
        (actor)->DestroySubtree(FailedConstructor);
1097
0
        (actor)->DeallocSubtree();
1098
0
        (mgr)->RemoveManagee(PCycleCollectWithLogsMsgStart, actor);
1099
0
        return nullptr;
1100
0
    }
1101
0
    return actor;
1102
0
}
1103
1104
auto PContentParent::SendPTestShellConstructor() -> PTestShellParent*
1105
0
{
1106
0
    return SendPTestShellConstructor(AllocPTestShellParent());
1107
0
}
1108
1109
auto PContentParent::SendPTestShellConstructor(PTestShellParent* actor) -> PTestShellParent*
1110
0
{
1111
0
    if ((!(actor))) {
1112
0
        NS_WARNING("Error constructing actor PTestShellParent");
1113
0
        return nullptr;
1114
0
    }
1115
0
    (actor)->SetManagerAndRegister(this);
1116
0
    (mManagedPTestShellParent).PutEntry(actor);
1117
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1118
0
1119
0
    IPC::Message* msg__ = PContent::Msg_PTestShellConstructor(MSG_ROUTING_CONTROL);
1120
0
1121
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
1122
0
    WriteIPDLParam(msg__, this, actor);
1123
0
    // Sentinel = 'actor'
1124
0
    (msg__)->WriteSentinel(875202478);
1125
0
1126
0
1127
0
1128
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1129
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1130
0
    }
1131
0
    AUTO_PROFILER_LABEL("PContent::Msg_PTestShellConstructor", OTHER);
1132
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1133
0
        mozilla::ipc::LogicError("Transition error");
1134
0
    }
1135
0
1136
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1137
0
    if ((!(sendok__))) {
1138
0
        IProtocol* mgr = (actor)->Manager();
1139
0
        (actor)->DestroySubtree(FailedConstructor);
1140
0
        (actor)->DeallocSubtree();
1141
0
        (mgr)->RemoveManagee(PTestShellMsgStart, actor);
1142
0
        return nullptr;
1143
0
    }
1144
0
    return actor;
1145
0
}
1146
1147
auto PContentParent::SendPScriptCacheConstructor(
1148
        const FileDescOrError& cacheFile,
1149
        const bool& wantCacheData) -> PScriptCacheParent*
1150
0
{
1151
0
    return SendPScriptCacheConstructor(AllocPScriptCacheParent(cacheFile, wantCacheData), cacheFile, wantCacheData);
1152
0
}
1153
1154
auto PContentParent::SendPScriptCacheConstructor(
1155
        PScriptCacheParent* actor,
1156
        const FileDescOrError& cacheFile,
1157
        const bool& wantCacheData) -> PScriptCacheParent*
1158
0
{
1159
0
    if ((!(actor))) {
1160
0
        NS_WARNING("Error constructing actor PScriptCacheParent");
1161
0
        return nullptr;
1162
0
    }
1163
0
    (actor)->SetManagerAndRegister(this);
1164
0
    (mManagedPScriptCacheParent).PutEntry(actor);
1165
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1166
0
1167
0
    IPC::Message* msg__ = PContent::Msg_PScriptCacheConstructor(MSG_ROUTING_CONTROL);
1168
0
1169
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
1170
0
    WriteIPDLParam(msg__, this, actor);
1171
0
    // Sentinel = 'actor'
1172
0
    (msg__)->WriteSentinel(875202478);
1173
0
    WriteIPDLParam(msg__, this, cacheFile);
1174
0
    // Sentinel = 'cacheFile'
1175
0
    (msg__)->WriteSentinel(1159637773);
1176
0
    WriteIPDLParam(msg__, this, wantCacheData);
1177
0
    // Sentinel = 'wantCacheData'
1178
0
    (msg__)->WriteSentinel(2349173833);
1179
0
1180
0
1181
0
1182
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1183
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1184
0
    }
1185
0
    AUTO_PROFILER_LABEL("PContent::Msg_PScriptCacheConstructor", OTHER);
1186
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1187
0
        mozilla::ipc::LogicError("Transition error");
1188
0
    }
1189
0
1190
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1191
0
    if ((!(sendok__))) {
1192
0
        IProtocol* mgr = (actor)->Manager();
1193
0
        (actor)->DestroySubtree(FailedConstructor);
1194
0
        (actor)->DeallocSubtree();
1195
0
        (mgr)->RemoveManagee(PScriptCacheMsgStart, actor);
1196
0
        return nullptr;
1197
0
    }
1198
0
    return actor;
1199
0
}
1200
1201
auto PContentParent::SendRegisterChrome(
1202
        const nsTArray<ChromePackage>& packages,
1203
        const nsTArray<SubstitutionMapping>& substitutions,
1204
        const nsTArray<OverrideMapping>& overrides,
1205
        const nsCString& locale,
1206
        const bool& reset) -> bool
1207
0
{
1208
0
    IPC::Message* msg__ = PContent::Msg_RegisterChrome(MSG_ROUTING_CONTROL);
1209
0
1210
0
    WriteIPDLParam(msg__, this, packages);
1211
0
    // Sentinel = 'packages'
1212
0
    (msg__)->WriteSentinel(2544542939);
1213
0
    WriteIPDLParam(msg__, this, substitutions);
1214
0
    // Sentinel = 'substitutions'
1215
0
    (msg__)->WriteSentinel(1650827567);
1216
0
    WriteIPDLParam(msg__, this, overrides);
1217
0
    // Sentinel = 'overrides'
1218
0
    (msg__)->WriteSentinel(3491981546);
1219
0
    WriteIPDLParam(msg__, this, locale);
1220
0
    // Sentinel = 'locale'
1221
0
    (msg__)->WriteSentinel(779891848);
1222
0
    WriteIPDLParam(msg__, this, reset);
1223
0
    // Sentinel = 'reset'
1224
0
    (msg__)->WriteSentinel(2509547360);
1225
0
1226
0
1227
0
1228
0
1229
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1230
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1231
0
    }
1232
0
    AUTO_PROFILER_LABEL("PContent::Msg_RegisterChrome", OTHER);
1233
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1234
0
        mozilla::ipc::LogicError("Transition error");
1235
0
    }
1236
0
1237
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1238
0
    return sendok__;
1239
0
}
1240
1241
auto PContentParent::SendRegisterChromeItem(const ChromeRegistryItem& item) -> bool
1242
0
{
1243
0
    IPC::Message* msg__ = PContent::Msg_RegisterChromeItem(MSG_ROUTING_CONTROL);
1244
0
1245
0
    WriteIPDLParam(msg__, this, item);
1246
0
    // Sentinel = 'item'
1247
0
    (msg__)->WriteSentinel(3785181297);
1248
0
1249
0
1250
0
1251
0
1252
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1253
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1254
0
    }
1255
0
    AUTO_PROFILER_LABEL("PContent::Msg_RegisterChromeItem", OTHER);
1256
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1257
0
        mozilla::ipc::LogicError("Transition error");
1258
0
    }
1259
0
1260
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1261
0
    return sendok__;
1262
0
}
1263
1264
auto PContentParent::SendClearImageCache(
1265
        const bool& privateLoader,
1266
        const bool& chrome) -> bool
1267
0
{
1268
0
    IPC::Message* msg__ = PContent::Msg_ClearImageCache(MSG_ROUTING_CONTROL);
1269
0
1270
0
    WriteIPDLParam(msg__, this, privateLoader);
1271
0
    // Sentinel = 'privateLoader'
1272
0
    (msg__)->WriteSentinel(3222654805);
1273
0
    WriteIPDLParam(msg__, this, chrome);
1274
0
    // Sentinel = 'chrome'
1275
0
    (msg__)->WriteSentinel(2631435560);
1276
0
1277
0
1278
0
1279
0
1280
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1281
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1282
0
    }
1283
0
    AUTO_PROFILER_LABEL("PContent::Msg_ClearImageCache", OTHER);
1284
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1285
0
        mozilla::ipc::LogicError("Transition error");
1286
0
    }
1287
0
1288
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1289
0
    return sendok__;
1290
0
}
1291
1292
auto PContentParent::SendSetOffline(const bool& offline) -> bool
1293
0
{
1294
0
    IPC::Message* msg__ = PContent::Msg_SetOffline(MSG_ROUTING_CONTROL);
1295
0
1296
0
    WriteIPDLParam(msg__, this, offline);
1297
0
    // Sentinel = 'offline'
1298
0
    (msg__)->WriteSentinel(3136819898);
1299
0
1300
0
1301
0
1302
0
1303
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1304
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1305
0
    }
1306
0
    AUTO_PROFILER_LABEL("PContent::Msg_SetOffline", OTHER);
1307
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1308
0
        mozilla::ipc::LogicError("Transition error");
1309
0
    }
1310
0
1311
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1312
0
    return sendok__;
1313
0
}
1314
1315
auto PContentParent::SendSetConnectivity(const bool& connectivity) -> bool
1316
0
{
1317
0
    IPC::Message* msg__ = PContent::Msg_SetConnectivity(MSG_ROUTING_CONTROL);
1318
0
1319
0
    WriteIPDLParam(msg__, this, connectivity);
1320
0
    // Sentinel = 'connectivity'
1321
0
    (msg__)->WriteSentinel(3733639633);
1322
0
1323
0
1324
0
1325
0
1326
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1327
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1328
0
    }
1329
0
    AUTO_PROFILER_LABEL("PContent::Msg_SetConnectivity", OTHER);
1330
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1331
0
        mozilla::ipc::LogicError("Transition error");
1332
0
    }
1333
0
1334
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1335
0
    return sendok__;
1336
0
}
1337
1338
auto PContentParent::SendSetCaptivePortalState(const int32_t& aState) -> bool
1339
0
{
1340
0
    IPC::Message* msg__ = PContent::Msg_SetCaptivePortalState(MSG_ROUTING_CONTROL);
1341
0
1342
0
    WriteIPDLParam(msg__, this, aState);
1343
0
    // Sentinel = 'aState'
1344
0
    (msg__)->WriteSentinel(3694751962);
1345
0
1346
0
1347
0
1348
0
1349
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1350
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1351
0
    }
1352
0
    AUTO_PROFILER_LABEL("PContent::Msg_SetCaptivePortalState", OTHER);
1353
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1354
0
        mozilla::ipc::LogicError("Transition error");
1355
0
    }
1356
0
1357
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1358
0
    return sendok__;
1359
0
}
1360
1361
auto PContentParent::SendNotifyVisited(const nsTArray<URIParams>& uri) -> bool
1362
0
{
1363
0
    IPC::Message* msg__ = PContent::Msg_NotifyVisited(MSG_ROUTING_CONTROL);
1364
0
1365
0
    WriteIPDLParam(msg__, this, uri);
1366
0
    // Sentinel = 'uri'
1367
0
    (msg__)->WriteSentinel(1453210605);
1368
0
1369
0
1370
0
1371
0
1372
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1373
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1374
0
    }
1375
0
    AUTO_PROFILER_LABEL("PContent::Msg_NotifyVisited", OTHER);
1376
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1377
0
        mozilla::ipc::LogicError("Transition error");
1378
0
    }
1379
0
1380
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1381
0
    return sendok__;
1382
0
}
1383
1384
auto PContentParent::SendPreferenceUpdate(const Pref& pref) -> bool
1385
0
{
1386
0
    IPC::Message* msg__ = PContent::Msg_PreferenceUpdate(MSG_ROUTING_CONTROL);
1387
0
1388
0
    WriteIPDLParam(msg__, this, pref);
1389
0
    // Sentinel = 'pref'
1390
0
    (msg__)->WriteSentinel(3089393963);
1391
0
1392
0
1393
0
1394
0
1395
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1396
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1397
0
    }
1398
0
    AUTO_PROFILER_LABEL("PContent::Msg_PreferenceUpdate", OTHER);
1399
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1400
0
        mozilla::ipc::LogicError("Transition error");
1401
0
    }
1402
0
1403
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1404
0
    return sendok__;
1405
0
}
1406
1407
auto PContentParent::SendVarUpdate(const GfxVarUpdate& var) -> bool
1408
0
{
1409
0
    IPC::Message* msg__ = PContent::Msg_VarUpdate(MSG_ROUTING_CONTROL);
1410
0
1411
0
    WriteIPDLParam(msg__, this, var);
1412
0
    // Sentinel = 'var'
1413
0
    (msg__)->WriteSentinel(2283110200);
1414
0
1415
0
1416
0
1417
0
1418
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1419
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1420
0
    }
1421
0
    AUTO_PROFILER_LABEL("PContent::Msg_VarUpdate", OTHER);
1422
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1423
0
        mozilla::ipc::LogicError("Transition error");
1424
0
    }
1425
0
1426
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1427
0
    return sendok__;
1428
0
}
1429
1430
auto PContentParent::SendDataStoragePut(
1431
        const nsString& aFilename,
1432
        const DataStorageItem& aItem) -> bool
1433
0
{
1434
0
    IPC::Message* msg__ = PContent::Msg_DataStoragePut(MSG_ROUTING_CONTROL);
1435
0
1436
0
    WriteIPDLParam(msg__, this, aFilename);
1437
0
    // Sentinel = 'aFilename'
1438
0
    (msg__)->WriteSentinel(2942409315);
1439
0
    WriteIPDLParam(msg__, this, aItem);
1440
0
    // Sentinel = 'aItem'
1441
0
    (msg__)->WriteSentinel(3914436313);
1442
0
1443
0
1444
0
1445
0
1446
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1447
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1448
0
    }
1449
0
    AUTO_PROFILER_LABEL("PContent::Msg_DataStoragePut", OTHER);
1450
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1451
0
        mozilla::ipc::LogicError("Transition error");
1452
0
    }
1453
0
1454
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1455
0
    return sendok__;
1456
0
}
1457
1458
auto PContentParent::SendDataStorageRemove(
1459
        const nsString& aFilename,
1460
        const nsCString& aKey,
1461
        const DataStorageType& aType) -> bool
1462
0
{
1463
0
    IPC::Message* msg__ = PContent::Msg_DataStorageRemove(MSG_ROUTING_CONTROL);
1464
0
1465
0
    WriteIPDLParam(msg__, this, aFilename);
1466
0
    // Sentinel = 'aFilename'
1467
0
    (msg__)->WriteSentinel(2942409315);
1468
0
    WriteIPDLParam(msg__, this, aKey);
1469
0
    // Sentinel = 'aKey'
1470
0
    (msg__)->WriteSentinel(3415890794);
1471
0
    WriteIPDLParam(msg__, this, aType);
1472
0
    // Sentinel = 'aType'
1473
0
    (msg__)->WriteSentinel(1819585676);
1474
0
1475
0
1476
0
1477
0
1478
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1479
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1480
0
    }
1481
0
    AUTO_PROFILER_LABEL("PContent::Msg_DataStorageRemove", OTHER);
1482
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1483
0
        mozilla::ipc::LogicError("Transition error");
1484
0
    }
1485
0
1486
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1487
0
    return sendok__;
1488
0
}
1489
1490
auto PContentParent::SendDataStorageClear(const nsString& aFilename) -> bool
1491
0
{
1492
0
    IPC::Message* msg__ = PContent::Msg_DataStorageClear(MSG_ROUTING_CONTROL);
1493
0
1494
0
    WriteIPDLParam(msg__, this, aFilename);
1495
0
    // Sentinel = 'aFilename'
1496
0
    (msg__)->WriteSentinel(2942409315);
1497
0
1498
0
1499
0
1500
0
1501
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1502
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1503
0
    }
1504
0
    AUTO_PROFILER_LABEL("PContent::Msg_DataStorageClear", OTHER);
1505
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1506
0
        mozilla::ipc::LogicError("Transition error");
1507
0
    }
1508
0
1509
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1510
0
    return sendok__;
1511
0
}
1512
1513
auto PContentParent::SendNotifyAlertsObserver(
1514
        const nsCString& topic,
1515
        const nsString& data) -> bool
1516
0
{
1517
0
    IPC::Message* msg__ = PContent::Msg_NotifyAlertsObserver(MSG_ROUTING_CONTROL);
1518
0
1519
0
    WriteIPDLParam(msg__, this, topic);
1520
0
    // Sentinel = 'topic'
1521
0
    (msg__)->WriteSentinel(261826960);
1522
0
    WriteIPDLParam(msg__, this, data);
1523
0
    // Sentinel = 'data'
1524
0
    (msg__)->WriteSentinel(843352540);
1525
0
1526
0
1527
0
1528
0
1529
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1530
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1531
0
    }
1532
0
    AUTO_PROFILER_LABEL("PContent::Msg_NotifyAlertsObserver", OTHER);
1533
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1534
0
        mozilla::ipc::LogicError("Transition error");
1535
0
    }
1536
0
1537
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1538
0
    return sendok__;
1539
0
}
1540
1541
auto PContentParent::SendGeolocationUpdate(nsIDOMGeoPosition* aPosition) -> bool
1542
0
{
1543
0
    IPC::Message* msg__ = PContent::Msg_GeolocationUpdate(MSG_ROUTING_CONTROL);
1544
0
1545
0
    WriteIPDLParam(msg__, this, aPosition);
1546
0
    // Sentinel = 'aPosition'
1547
0
    (msg__)->WriteSentinel(2753958473);
1548
0
1549
0
1550
0
1551
0
1552
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1553
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1554
0
    }
1555
0
    AUTO_PROFILER_LABEL("PContent::Msg_GeolocationUpdate", OTHER);
1556
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1557
0
        mozilla::ipc::LogicError("Transition error");
1558
0
    }
1559
0
1560
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1561
0
    return sendok__;
1562
0
}
1563
1564
auto PContentParent::SendGeolocationError(const uint16_t& errorCode) -> bool
1565
0
{
1566
0
    IPC::Message* msg__ = PContent::Msg_GeolocationError(MSG_ROUTING_CONTROL);
1567
0
1568
0
    WriteIPDLParam(msg__, this, errorCode);
1569
0
    // Sentinel = 'errorCode'
1570
0
    (msg__)->WriteSentinel(262143504);
1571
0
1572
0
1573
0
1574
0
1575
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1576
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1577
0
    }
1578
0
    AUTO_PROFILER_LABEL("PContent::Msg_GeolocationError", OTHER);
1579
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1580
0
        mozilla::ipc::LogicError("Transition error");
1581
0
    }
1582
0
1583
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1584
0
    return sendok__;
1585
0
}
1586
1587
auto PContentParent::SendUpdateDictionaryList(const nsTArray<nsString>& dictionaries) -> bool
1588
0
{
1589
0
    IPC::Message* msg__ = PContent::Msg_UpdateDictionaryList(MSG_ROUTING_CONTROL);
1590
0
1591
0
    WriteIPDLParam(msg__, this, dictionaries);
1592
0
    // Sentinel = 'dictionaries'
1593
0
    (msg__)->WriteSentinel(3810082412);
1594
0
1595
0
1596
0
1597
0
1598
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1599
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1600
0
    }
1601
0
    AUTO_PROFILER_LABEL("PContent::Msg_UpdateDictionaryList", OTHER);
1602
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1603
0
        mozilla::ipc::LogicError("Transition error");
1604
0
    }
1605
0
1606
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1607
0
    return sendok__;
1608
0
}
1609
1610
auto PContentParent::SendUpdateFontList(const nsTArray<SystemFontListEntry>& fontList) -> bool
1611
0
{
1612
0
    IPC::Message* msg__ = PContent::Msg_UpdateFontList(MSG_ROUTING_CONTROL);
1613
0
1614
0
    WriteIPDLParam(msg__, this, fontList);
1615
0
    // Sentinel = 'fontList'
1616
0
    (msg__)->WriteSentinel(2258084427);
1617
0
1618
0
1619
0
1620
0
1621
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1622
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1623
0
    }
1624
0
    AUTO_PROFILER_LABEL("PContent::Msg_UpdateFontList", OTHER);
1625
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1626
0
        mozilla::ipc::LogicError("Transition error");
1627
0
    }
1628
0
1629
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1630
0
    return sendok__;
1631
0
}
1632
1633
auto PContentParent::SendUpdateAppLocales(const nsTArray<nsCString>& appLocales) -> bool
1634
0
{
1635
0
    IPC::Message* msg__ = PContent::Msg_UpdateAppLocales(MSG_ROUTING_CONTROL);
1636
0
1637
0
    WriteIPDLParam(msg__, this, appLocales);
1638
0
    // Sentinel = 'appLocales'
1639
0
    (msg__)->WriteSentinel(2758913044);
1640
0
1641
0
1642
0
1643
0
1644
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1645
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1646
0
    }
1647
0
    AUTO_PROFILER_LABEL("PContent::Msg_UpdateAppLocales", OTHER);
1648
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1649
0
        mozilla::ipc::LogicError("Transition error");
1650
0
    }
1651
0
1652
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1653
0
    return sendok__;
1654
0
}
1655
1656
auto PContentParent::SendUpdateRequestedLocales(const nsTArray<nsCString>& requestedLocales) -> bool
1657
0
{
1658
0
    IPC::Message* msg__ = PContent::Msg_UpdateRequestedLocales(MSG_ROUTING_CONTROL);
1659
0
1660
0
    WriteIPDLParam(msg__, this, requestedLocales);
1661
0
    // Sentinel = 'requestedLocales'
1662
0
    (msg__)->WriteSentinel(2758015985);
1663
0
1664
0
1665
0
1666
0
1667
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1668
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1669
0
    }
1670
0
    AUTO_PROFILER_LABEL("PContent::Msg_UpdateRequestedLocales", OTHER);
1671
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1672
0
        mozilla::ipc::LogicError("Transition error");
1673
0
    }
1674
0
1675
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1676
0
    return sendok__;
1677
0
}
1678
1679
auto PContentParent::SendClearSiteDataReloadNeeded(const nsString& origin) -> bool
1680
0
{
1681
0
    IPC::Message* msg__ = PContent::Msg_ClearSiteDataReloadNeeded(MSG_ROUTING_CONTROL);
1682
0
1683
0
    WriteIPDLParam(msg__, this, origin);
1684
0
    // Sentinel = 'origin'
1685
0
    (msg__)->WriteSentinel(1429924608);
1686
0
1687
0
1688
0
1689
0
1690
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1691
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1692
0
    }
1693
0
    AUTO_PROFILER_LABEL("PContent::Msg_ClearSiteDataReloadNeeded", OTHER);
1694
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1695
0
        mozilla::ipc::LogicError("Transition error");
1696
0
    }
1697
0
1698
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1699
0
    return sendok__;
1700
0
}
1701
1702
auto PContentParent::SendRegisterStringBundles(const nsTArray<StringBundleDescriptor>& stringBundles) -> bool
1703
0
{
1704
0
    IPC::Message* msg__ = PContent::Msg_RegisterStringBundles(MSG_ROUTING_CONTROL);
1705
0
1706
0
    WriteIPDLParam(msg__, this, stringBundles);
1707
0
    // Sentinel = 'stringBundles'
1708
0
    (msg__)->WriteSentinel(4148729023);
1709
0
1710
0
1711
0
1712
0
1713
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1714
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1715
0
    }
1716
0
    AUTO_PROFILER_LABEL("PContent::Msg_RegisterStringBundles", OTHER);
1717
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1718
0
        mozilla::ipc::LogicError("Transition error");
1719
0
    }
1720
0
1721
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1722
0
    return sendok__;
1723
0
}
1724
1725
auto PContentParent::SendUpdateSharedData(
1726
        const FileDescriptor& mapFile,
1727
        const uint32_t& aSize,
1728
        const nsTArray<IPCBlob>& blobs,
1729
        const nsTArray<nsCString>& changedKeys) -> bool
1730
0
{
1731
0
    IPC::Message* msg__ = PContent::Msg_UpdateSharedData(MSG_ROUTING_CONTROL);
1732
0
1733
0
    WriteIPDLParam(msg__, this, mapFile);
1734
0
    // Sentinel = 'mapFile'
1735
0
    (msg__)->WriteSentinel(66221031);
1736
0
    WriteIPDLParam(msg__, this, aSize);
1737
0
    // Sentinel = 'aSize'
1738
0
    (msg__)->WriteSentinel(2556665555);
1739
0
    WriteIPDLParam(msg__, this, blobs);
1740
0
    // Sentinel = 'blobs'
1741
0
    (msg__)->WriteSentinel(635500709);
1742
0
    WriteIPDLParam(msg__, this, changedKeys);
1743
0
    // Sentinel = 'changedKeys'
1744
0
    (msg__)->WriteSentinel(2842182427);
1745
0
1746
0
1747
0
1748
0
1749
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1750
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1751
0
    }
1752
0
    AUTO_PROFILER_LABEL("PContent::Msg_UpdateSharedData", OTHER);
1753
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1754
0
        mozilla::ipc::LogicError("Transition error");
1755
0
    }
1756
0
1757
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1758
0
    return sendok__;
1759
0
}
1760
1761
auto PContentParent::SendAddPermission(const Permission& permission) -> bool
1762
0
{
1763
0
    IPC::Message* msg__ = PContent::Msg_AddPermission(MSG_ROUTING_CONTROL);
1764
0
1765
0
    WriteIPDLParam(msg__, this, permission);
1766
0
    // Sentinel = 'permission'
1767
0
    (msg__)->WriteSentinel(22860871);
1768
0
1769
0
1770
0
1771
0
1772
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1773
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1774
0
    }
1775
0
    AUTO_PROFILER_LABEL("PContent::Msg_AddPermission", OTHER);
1776
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1777
0
        mozilla::ipc::LogicError("Transition error");
1778
0
    }
1779
0
1780
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1781
0
    return sendok__;
1782
0
}
1783
1784
auto PContentParent::SendRemoveAllPermissions() -> bool
1785
0
{
1786
0
    IPC::Message* msg__ = PContent::Msg_RemoveAllPermissions(MSG_ROUTING_CONTROL);
1787
0
1788
0
1789
0
1790
0
1791
0
1792
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1793
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1794
0
    }
1795
0
    AUTO_PROFILER_LABEL("PContent::Msg_RemoveAllPermissions", OTHER);
1796
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1797
0
        mozilla::ipc::LogicError("Transition error");
1798
0
    }
1799
0
1800
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1801
0
    return sendok__;
1802
0
}
1803
1804
auto PContentParent::SendFlushMemory(const nsString& reason) -> bool
1805
0
{
1806
0
    IPC::Message* msg__ = PContent::Msg_FlushMemory(MSG_ROUTING_CONTROL);
1807
0
1808
0
    WriteIPDLParam(msg__, this, reason);
1809
0
    // Sentinel = 'reason'
1810
0
    (msg__)->WriteSentinel(4151390930);
1811
0
1812
0
1813
0
1814
0
1815
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1816
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1817
0
    }
1818
0
    AUTO_PROFILER_LABEL("PContent::Msg_FlushMemory", OTHER);
1819
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1820
0
        mozilla::ipc::LogicError("Transition error");
1821
0
    }
1822
0
1823
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1824
0
    return sendok__;
1825
0
}
1826
1827
auto PContentParent::SendGarbageCollect() -> bool
1828
0
{
1829
0
    IPC::Message* msg__ = PContent::Msg_GarbageCollect(MSG_ROUTING_CONTROL);
1830
0
1831
0
1832
0
1833
0
1834
0
1835
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1836
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1837
0
    }
1838
0
    AUTO_PROFILER_LABEL("PContent::Msg_GarbageCollect", OTHER);
1839
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1840
0
        mozilla::ipc::LogicError("Transition error");
1841
0
    }
1842
0
1843
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1844
0
    return sendok__;
1845
0
}
1846
1847
auto PContentParent::SendCycleCollect() -> bool
1848
0
{
1849
0
    IPC::Message* msg__ = PContent::Msg_CycleCollect(MSG_ROUTING_CONTROL);
1850
0
1851
0
1852
0
1853
0
1854
0
1855
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1856
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1857
0
    }
1858
0
    AUTO_PROFILER_LABEL("PContent::Msg_CycleCollect", OTHER);
1859
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1860
0
        mozilla::ipc::LogicError("Transition error");
1861
0
    }
1862
0
1863
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1864
0
    return sendok__;
1865
0
}
1866
1867
auto PContentParent::SendUnlinkGhosts() -> bool
1868
0
{
1869
0
    IPC::Message* msg__ = PContent::Msg_UnlinkGhosts(MSG_ROUTING_CONTROL);
1870
0
1871
0
1872
0
1873
0
1874
0
1875
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1876
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1877
0
    }
1878
0
    AUTO_PROFILER_LABEL("PContent::Msg_UnlinkGhosts", OTHER);
1879
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1880
0
        mozilla::ipc::LogicError("Transition error");
1881
0
    }
1882
0
1883
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1884
0
    return sendok__;
1885
0
}
1886
1887
auto PContentParent::SendActivateA11y(
1888
        const uint32_t& aMainChromeTid,
1889
        const uint32_t& aMsaaID) -> bool
1890
0
{
1891
0
    IPC::Message* msg__ = PContent::Msg_ActivateA11y(MSG_ROUTING_CONTROL);
1892
0
1893
0
    WriteIPDLParam(msg__, this, aMainChromeTid);
1894
0
    // Sentinel = 'aMainChromeTid'
1895
0
    (msg__)->WriteSentinel(3575603341);
1896
0
    WriteIPDLParam(msg__, this, aMsaaID);
1897
0
    // Sentinel = 'aMsaaID'
1898
0
    (msg__)->WriteSentinel(645559775);
1899
0
1900
0
1901
0
1902
0
1903
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1904
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1905
0
    }
1906
0
    AUTO_PROFILER_LABEL("PContent::Msg_ActivateA11y", OTHER);
1907
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1908
0
        mozilla::ipc::LogicError("Transition error");
1909
0
    }
1910
0
1911
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1912
0
    return sendok__;
1913
0
}
1914
1915
auto PContentParent::SendShutdownA11y() -> bool
1916
0
{
1917
0
    IPC::Message* msg__ = PContent::Msg_ShutdownA11y(MSG_ROUTING_CONTROL);
1918
0
1919
0
1920
0
1921
0
1922
0
1923
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1924
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1925
0
    }
1926
0
    AUTO_PROFILER_LABEL("PContent::Msg_ShutdownA11y", OTHER);
1927
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1928
0
        mozilla::ipc::LogicError("Transition error");
1929
0
    }
1930
0
1931
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1932
0
    return sendok__;
1933
0
}
1934
1935
auto PContentParent::SendAppInfo(
1936
        const nsCString& version,
1937
        const nsCString& buildID,
1938
        const nsCString& name,
1939
        const nsCString& UAName,
1940
        const nsCString& ID,
1941
        const nsCString& vendor,
1942
        const nsCString& sourceURL) -> bool
1943
0
{
1944
0
    IPC::Message* msg__ = PContent::Msg_AppInfo(MSG_ROUTING_CONTROL);
1945
0
1946
0
    WriteIPDLParam(msg__, this, version);
1947
0
    // Sentinel = 'version'
1948
0
    (msg__)->WriteSentinel(4003360947);
1949
0
    WriteIPDLParam(msg__, this, buildID);
1950
0
    // Sentinel = 'buildID'
1951
0
    (msg__)->WriteSentinel(1387208200);
1952
0
    WriteIPDLParam(msg__, this, name);
1953
0
    // Sentinel = 'name'
1954
0
    (msg__)->WriteSentinel(15034981);
1955
0
    WriteIPDLParam(msg__, this, UAName);
1956
0
    // Sentinel = 'UAName'
1957
0
    (msg__)->WriteSentinel(1769178349);
1958
0
    WriteIPDLParam(msg__, this, ID);
1959
0
    // Sentinel = 'ID'
1960
0
    (msg__)->WriteSentinel(2597318109);
1961
0
    WriteIPDLParam(msg__, this, vendor);
1962
0
    // Sentinel = 'vendor'
1963
0
    (msg__)->WriteSentinel(461600324);
1964
0
    WriteIPDLParam(msg__, this, sourceURL);
1965
0
    // Sentinel = 'sourceURL'
1966
0
    (msg__)->WriteSentinel(3017222275);
1967
0
1968
0
1969
0
1970
0
1971
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1972
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1973
0
    }
1974
0
    AUTO_PROFILER_LABEL("PContent::Msg_AppInfo", OTHER);
1975
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1976
0
        mozilla::ipc::LogicError("Transition error");
1977
0
    }
1978
0
1979
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1980
0
    return sendok__;
1981
0
}
1982
1983
auto PContentParent::SendRemoteType(const nsString& aRemoteType) -> bool
1984
0
{
1985
0
    IPC::Message* msg__ = PContent::Msg_RemoteType(MSG_ROUTING_CONTROL);
1986
0
1987
0
    WriteIPDLParam(msg__, this, aRemoteType);
1988
0
    // Sentinel = 'aRemoteType'
1989
0
    (msg__)->WriteSentinel(4113166544);
1990
0
1991
0
1992
0
1993
0
1994
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
1995
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1996
0
    }
1997
0
    AUTO_PROFILER_LABEL("PContent::Msg_RemoteType", OTHER);
1998
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
1999
0
        mozilla::ipc::LogicError("Transition error");
2000
0
    }
2001
0
2002
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2003
0
    return sendok__;
2004
0
}
2005
2006
auto PContentParent::SendInitServiceWorkers(const ServiceWorkerConfiguration& aConfig) -> bool
2007
0
{
2008
0
    IPC::Message* msg__ = PContent::Msg_InitServiceWorkers(MSG_ROUTING_CONTROL);
2009
0
2010
0
    WriteIPDLParam(msg__, this, aConfig);
2011
0
    // Sentinel = 'aConfig'
2012
0
    (msg__)->WriteSentinel(3808514188);
2013
0
2014
0
2015
0
2016
0
2017
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2018
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2019
0
    }
2020
0
    AUTO_PROFILER_LABEL("PContent::Msg_InitServiceWorkers", OTHER);
2021
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2022
0
        mozilla::ipc::LogicError("Transition error");
2023
0
    }
2024
0
2025
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2026
0
    return sendok__;
2027
0
}
2028
2029
auto PContentParent::SendInitBlobURLs(const nsTArray<BlobURLRegistrationData>& registrations) -> bool
2030
0
{
2031
0
    IPC::Message* msg__ = PContent::Msg_InitBlobURLs(MSG_ROUTING_CONTROL);
2032
0
2033
0
    WriteIPDLParam(msg__, this, registrations);
2034
0
    // Sentinel = 'registrations'
2035
0
    (msg__)->WriteSentinel(2559949423);
2036
0
2037
0
2038
0
2039
0
2040
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2041
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2042
0
    }
2043
0
    AUTO_PROFILER_LABEL("PContent::Msg_InitBlobURLs", OTHER);
2044
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2045
0
        mozilla::ipc::LogicError("Transition error");
2046
0
    }
2047
0
2048
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2049
0
    return sendok__;
2050
0
}
2051
2052
auto PContentParent::SendSetXPCOMProcessAttributes(
2053
        const XPCOMInitData& xpcomInit,
2054
        const StructuredCloneData& initialData,
2055
        const nsTArray<LookAndFeelInt>& lookAndFeelIntCache,
2056
        const nsTArray<SystemFontListEntry>& systemFontList) -> bool
2057
0
{
2058
0
    IPC::Message* msg__ = PContent::Msg_SetXPCOMProcessAttributes(MSG_ROUTING_CONTROL);
2059
0
2060
0
    WriteIPDLParam(msg__, this, xpcomInit);
2061
0
    // Sentinel = 'xpcomInit'
2062
0
    (msg__)->WriteSentinel(1191505416);
2063
0
    WriteIPDLParam(msg__, this, initialData);
2064
0
    // Sentinel = 'initialData'
2065
0
    (msg__)->WriteSentinel(3214224943);
2066
0
    WriteIPDLParam(msg__, this, lookAndFeelIntCache);
2067
0
    // Sentinel = 'lookAndFeelIntCache'
2068
0
    (msg__)->WriteSentinel(4279224656);
2069
0
    WriteIPDLParam(msg__, this, systemFontList);
2070
0
    // Sentinel = 'systemFontList'
2071
0
    (msg__)->WriteSentinel(3715584146);
2072
0
2073
0
2074
0
2075
0
2076
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2077
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2078
0
    }
2079
0
    AUTO_PROFILER_LABEL("PContent::Msg_SetXPCOMProcessAttributes", OTHER);
2080
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2081
0
        mozilla::ipc::LogicError("Transition error");
2082
0
    }
2083
0
2084
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2085
0
    return sendok__;
2086
0
}
2087
2088
auto PContentParent::SendLastPrivateDocShellDestroyed() -> bool
2089
0
{
2090
0
    IPC::Message* msg__ = PContent::Msg_LastPrivateDocShellDestroyed(MSG_ROUTING_CONTROL);
2091
0
2092
0
2093
0
2094
0
2095
0
2096
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2097
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2098
0
    }
2099
0
    AUTO_PROFILER_LABEL("PContent::Msg_LastPrivateDocShellDestroyed", OTHER);
2100
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2101
0
        mozilla::ipc::LogicError("Transition error");
2102
0
    }
2103
0
2104
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2105
0
    return sendok__;
2106
0
}
2107
2108
auto PContentParent::SendNotifyProcessPriorityChanged(const ProcessPriority& priority) -> bool
2109
0
{
2110
0
    IPC::Message* msg__ = PContent::Msg_NotifyProcessPriorityChanged(MSG_ROUTING_CONTROL);
2111
0
2112
0
    WriteIPDLParam(msg__, this, priority);
2113
0
    // Sentinel = 'priority'
2114
0
    (msg__)->WriteSentinel(558136112);
2115
0
2116
0
2117
0
2118
0
2119
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2120
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2121
0
    }
2122
0
    AUTO_PROFILER_LABEL("PContent::Msg_NotifyProcessPriorityChanged", OTHER);
2123
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2124
0
        mozilla::ipc::LogicError("Transition error");
2125
0
    }
2126
0
2127
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2128
0
    return sendok__;
2129
0
}
2130
2131
auto PContentParent::SendMinimizeMemoryUsage() -> bool
2132
0
{
2133
0
    IPC::Message* msg__ = PContent::Msg_MinimizeMemoryUsage(MSG_ROUTING_CONTROL);
2134
0
2135
0
2136
0
2137
0
2138
0
2139
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2140
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2141
0
    }
2142
0
    AUTO_PROFILER_LABEL("PContent::Msg_MinimizeMemoryUsage", OTHER);
2143
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2144
0
        mozilla::ipc::LogicError("Transition error");
2145
0
    }
2146
0
2147
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2148
0
    return sendok__;
2149
0
}
2150
2151
auto PContentParent::SendLoadAndRegisterSheet(
2152
        const URIParams& uri,
2153
        const uint32_t& type) -> bool
2154
0
{
2155
0
    IPC::Message* msg__ = PContent::Msg_LoadAndRegisterSheet(MSG_ROUTING_CONTROL);
2156
0
2157
0
    WriteIPDLParam(msg__, this, uri);
2158
0
    // Sentinel = 'uri'
2159
0
    (msg__)->WriteSentinel(1453210605);
2160
0
    WriteIPDLParam(msg__, this, type);
2161
0
    // Sentinel = 'type'
2162
0
    (msg__)->WriteSentinel(2982068540);
2163
0
2164
0
2165
0
2166
0
2167
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2168
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2169
0
    }
2170
0
    AUTO_PROFILER_LABEL("PContent::Msg_LoadAndRegisterSheet", OTHER);
2171
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2172
0
        mozilla::ipc::LogicError("Transition error");
2173
0
    }
2174
0
2175
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2176
0
    return sendok__;
2177
0
}
2178
2179
auto PContentParent::SendUnregisterSheet(
2180
        const URIParams& uri,
2181
        const uint32_t& type) -> bool
2182
0
{
2183
0
    IPC::Message* msg__ = PContent::Msg_UnregisterSheet(MSG_ROUTING_CONTROL);
2184
0
2185
0
    WriteIPDLParam(msg__, this, uri);
2186
0
    // Sentinel = 'uri'
2187
0
    (msg__)->WriteSentinel(1453210605);
2188
0
    WriteIPDLParam(msg__, this, type);
2189
0
    // Sentinel = 'type'
2190
0
    (msg__)->WriteSentinel(2982068540);
2191
0
2192
0
2193
0
2194
0
2195
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2196
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2197
0
    }
2198
0
    AUTO_PROFILER_LABEL("PContent::Msg_UnregisterSheet", OTHER);
2199
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2200
0
        mozilla::ipc::LogicError("Transition error");
2201
0
    }
2202
0
2203
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2204
0
    return sendok__;
2205
0
}
2206
2207
auto PContentParent::SendNotifyIdleObserver(
2208
        const uint64_t& observerId,
2209
        const nsCString& topic,
2210
        const nsString& str) -> bool
2211
0
{
2212
0
    IPC::Message* msg__ = PContent::Msg_NotifyIdleObserver(MSG_ROUTING_CONTROL);
2213
0
2214
0
    WriteIPDLParam(msg__, this, observerId);
2215
0
    // Sentinel = 'observerId'
2216
0
    (msg__)->WriteSentinel(2815026823);
2217
0
    WriteIPDLParam(msg__, this, topic);
2218
0
    // Sentinel = 'topic'
2219
0
    (msg__)->WriteSentinel(261826960);
2220
0
    WriteIPDLParam(msg__, this, str);
2221
0
    // Sentinel = 'str'
2222
0
    (msg__)->WriteSentinel(3748377462);
2223
0
2224
0
2225
0
2226
0
2227
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2228
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2229
0
    }
2230
0
    AUTO_PROFILER_LABEL("PContent::Msg_NotifyIdleObserver", OTHER);
2231
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2232
0
        mozilla::ipc::LogicError("Transition error");
2233
0
    }
2234
0
2235
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2236
0
    return sendok__;
2237
0
}
2238
2239
auto PContentParent::SendInvokeDragSession(
2240
        const nsTArray<IPCDataTransfer>& transfers,
2241
        const uint32_t& action) -> bool
2242
0
{
2243
0
    IPC::Message* msg__ = PContent::Msg_InvokeDragSession(MSG_ROUTING_CONTROL);
2244
0
2245
0
    WriteIPDLParam(msg__, this, transfers);
2246
0
    // Sentinel = 'transfers'
2247
0
    (msg__)->WriteSentinel(3048523737);
2248
0
    WriteIPDLParam(msg__, this, action);
2249
0
    // Sentinel = 'action'
2250
0
    (msg__)->WriteSentinel(991072504);
2251
0
2252
0
2253
0
2254
0
2255
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2256
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2257
0
    }
2258
0
    AUTO_PROFILER_LABEL("PContent::Msg_InvokeDragSession", OTHER);
2259
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2260
0
        mozilla::ipc::LogicError("Transition error");
2261
0
    }
2262
0
2263
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2264
0
    return sendok__;
2265
0
}
2266
2267
auto PContentParent::SendEndDragSession(
2268
        const bool& aDoneDrag,
2269
        const bool& aUserCancelled,
2270
        const LayoutDeviceIntPoint& aDragEndPoint,
2271
        const uint32_t& aKeyModifiers) -> bool
2272
0
{
2273
0
    IPC::Message* msg__ = PContent::Msg_EndDragSession(MSG_ROUTING_CONTROL);
2274
0
2275
0
    WriteIPDLParam(msg__, this, aDoneDrag);
2276
0
    // Sentinel = 'aDoneDrag'
2277
0
    (msg__)->WriteSentinel(3406977382);
2278
0
    WriteIPDLParam(msg__, this, aUserCancelled);
2279
0
    // Sentinel = 'aUserCancelled'
2280
0
    (msg__)->WriteSentinel(3762723247);
2281
0
    WriteIPDLParam(msg__, this, aDragEndPoint);
2282
0
    // Sentinel = 'aDragEndPoint'
2283
0
    (msg__)->WriteSentinel(2254135269);
2284
0
    WriteIPDLParam(msg__, this, aKeyModifiers);
2285
0
    // Sentinel = 'aKeyModifiers'
2286
0
    (msg__)->WriteSentinel(838210057);
2287
0
2288
0
2289
0
2290
0
2291
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2292
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2293
0
    }
2294
0
    AUTO_PROFILER_LABEL("PContent::Msg_EndDragSession", OTHER);
2295
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2296
0
        mozilla::ipc::LogicError("Transition error");
2297
0
    }
2298
0
2299
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2300
0
    return sendok__;
2301
0
}
2302
2303
auto PContentParent::SendDomainSetChanged(
2304
        const uint32_t& aSetType,
2305
        const uint32_t& aChangeType,
2306
        const OptionalURIParams& aDomain) -> bool
2307
0
{
2308
0
    IPC::Message* msg__ = PContent::Msg_DomainSetChanged(MSG_ROUTING_CONTROL);
2309
0
2310
0
    WriteIPDLParam(msg__, this, aSetType);
2311
0
    // Sentinel = 'aSetType'
2312
0
    (msg__)->WriteSentinel(3577437707);
2313
0
    WriteIPDLParam(msg__, this, aChangeType);
2314
0
    // Sentinel = 'aChangeType'
2315
0
    (msg__)->WriteSentinel(3383103566);
2316
0
    WriteIPDLParam(msg__, this, aDomain);
2317
0
    // Sentinel = 'aDomain'
2318
0
    (msg__)->WriteSentinel(115381882);
2319
0
2320
0
2321
0
2322
0
2323
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2324
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2325
0
    }
2326
0
    AUTO_PROFILER_LABEL("PContent::Msg_DomainSetChanged", OTHER);
2327
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2328
0
        mozilla::ipc::LogicError("Transition error");
2329
0
    }
2330
0
2331
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2332
0
    return sendok__;
2333
0
}
2334
2335
auto PContentParent::SendShutdown() -> bool
2336
0
{
2337
0
    IPC::Message* msg__ = PContent::Msg_Shutdown(MSG_ROUTING_CONTROL);
2338
0
2339
0
2340
0
2341
0
2342
0
2343
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2344
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2345
0
    }
2346
0
    AUTO_PROFILER_LABEL("PContent::Msg_Shutdown", OTHER);
2347
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2348
0
        mozilla::ipc::LogicError("Transition error");
2349
0
    }
2350
0
2351
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2352
0
    return sendok__;
2353
0
}
2354
2355
auto PContentParent::SendLoadProcessScript(const nsString& url) -> bool
2356
0
{
2357
0
    IPC::Message* msg__ = PContent::Msg_LoadProcessScript(MSG_ROUTING_CONTROL);
2358
0
2359
0
    WriteIPDLParam(msg__, this, url);
2360
0
    // Sentinel = 'url'
2361
0
    (msg__)->WriteSentinel(1453210600);
2362
0
2363
0
2364
0
2365
0
2366
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2367
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2368
0
    }
2369
0
    AUTO_PROFILER_LABEL("PContent::Msg_LoadProcessScript", OTHER);
2370
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2371
0
        mozilla::ipc::LogicError("Transition error");
2372
0
    }
2373
0
2374
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2375
0
    return sendok__;
2376
0
}
2377
2378
auto PContentParent::SendUpdateWindow(const uintptr_t& aChildId) -> bool
2379
0
{
2380
0
    IPC::Message* msg__ = PContent::Msg_UpdateWindow(MSG_ROUTING_CONTROL);
2381
0
2382
0
    WriteIPDLParam(msg__, this, aChildId);
2383
0
    // Sentinel = 'aChildId'
2384
0
    (msg__)->WriteSentinel(328267498);
2385
0
2386
0
2387
0
2388
0
2389
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2390
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2391
0
    }
2392
0
    AUTO_PROFILER_LABEL("PContent::Msg_UpdateWindow", OTHER);
2393
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2394
0
        mozilla::ipc::LogicError("Transition error");
2395
0
    }
2396
0
2397
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2398
0
    return sendok__;
2399
0
}
2400
2401
auto PContentParent::SendNotifyPresentationReceiverLaunched(
2402
        PBrowserParent* aIframe,
2403
        const nsString& aSessionId) -> bool
2404
0
{
2405
0
    IPC::Message* msg__ = PContent::Msg_NotifyPresentationReceiverLaunched(MSG_ROUTING_CONTROL);
2406
0
2407
0
    MOZ_RELEASE_ASSERT(aIframe, "NULL actor value passed to non-nullable param");
2408
0
    WriteIPDLParam(msg__, this, aIframe);
2409
0
    // Sentinel = 'aIframe'
2410
0
    (msg__)->WriteSentinel(161927714);
2411
0
    WriteIPDLParam(msg__, this, aSessionId);
2412
0
    // Sentinel = 'aSessionId'
2413
0
    (msg__)->WriteSentinel(725794242);
2414
0
2415
0
2416
0
2417
0
2418
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2419
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2420
0
    }
2421
0
    AUTO_PROFILER_LABEL("PContent::Msg_NotifyPresentationReceiverLaunched", OTHER);
2422
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2423
0
        mozilla::ipc::LogicError("Transition error");
2424
0
    }
2425
0
2426
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2427
0
    return sendok__;
2428
0
}
2429
2430
auto PContentParent::SendNotifyPresentationReceiverCleanUp(const nsString& aSessionId) -> bool
2431
0
{
2432
0
    IPC::Message* msg__ = PContent::Msg_NotifyPresentationReceiverCleanUp(MSG_ROUTING_CONTROL);
2433
0
2434
0
    WriteIPDLParam(msg__, this, aSessionId);
2435
0
    // Sentinel = 'aSessionId'
2436
0
    (msg__)->WriteSentinel(725794242);
2437
0
2438
0
2439
0
2440
0
2441
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2442
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2443
0
    }
2444
0
    AUTO_PROFILER_LABEL("PContent::Msg_NotifyPresentationReceiverCleanUp", OTHER);
2445
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2446
0
        mozilla::ipc::LogicError("Transition error");
2447
0
    }
2448
0
2449
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2450
0
    return sendok__;
2451
0
}
2452
2453
auto PContentParent::SendNotifyEmptyHTTPCache() -> bool
2454
0
{
2455
0
    IPC::Message* msg__ = PContent::Msg_NotifyEmptyHTTPCache(MSG_ROUTING_CONTROL);
2456
0
2457
0
2458
0
2459
0
2460
0
2461
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2462
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2463
0
    }
2464
0
    AUTO_PROFILER_LABEL("PContent::Msg_NotifyEmptyHTTPCache", OTHER);
2465
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2466
0
        mozilla::ipc::LogicError("Transition error");
2467
0
    }
2468
0
2469
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2470
0
    return sendok__;
2471
0
}
2472
2473
auto PContentParent::SendPush(
2474
        const nsCString& scope,
2475
        const Principal& principal,
2476
        const nsString& messageId) -> bool
2477
0
{
2478
0
    IPC::Message* msg__ = PContent::Msg_Push(MSG_ROUTING_CONTROL);
2479
0
2480
0
    WriteIPDLParam(msg__, this, scope);
2481
0
    // Sentinel = 'scope'
2482
0
    (msg__)->WriteSentinel(2191984953);
2483
0
    WriteIPDLParam(msg__, this, principal);
2484
0
    // Sentinel = 'principal'
2485
0
    (msg__)->WriteSentinel(732240927);
2486
0
    WriteIPDLParam(msg__, this, messageId);
2487
0
    // Sentinel = 'messageId'
2488
0
    (msg__)->WriteSentinel(2887269495);
2489
0
2490
0
2491
0
2492
0
2493
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2494
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2495
0
    }
2496
0
    AUTO_PROFILER_LABEL("PContent::Msg_Push", OTHER);
2497
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2498
0
        mozilla::ipc::LogicError("Transition error");
2499
0
    }
2500
0
2501
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2502
0
    return sendok__;
2503
0
}
2504
2505
auto PContentParent::SendPushWithData(
2506
        const nsCString& scope,
2507
        const Principal& principal,
2508
        const nsString& messageId,
2509
        const nsTArray<uint8_t>& data) -> bool
2510
0
{
2511
0
    IPC::Message* msg__ = PContent::Msg_PushWithData(MSG_ROUTING_CONTROL);
2512
0
2513
0
    WriteIPDLParam(msg__, this, scope);
2514
0
    // Sentinel = 'scope'
2515
0
    (msg__)->WriteSentinel(2191984953);
2516
0
    WriteIPDLParam(msg__, this, principal);
2517
0
    // Sentinel = 'principal'
2518
0
    (msg__)->WriteSentinel(732240927);
2519
0
    WriteIPDLParam(msg__, this, messageId);
2520
0
    // Sentinel = 'messageId'
2521
0
    (msg__)->WriteSentinel(2887269495);
2522
0
    WriteIPDLParam(msg__, this, data);
2523
0
    // Sentinel = 'data'
2524
0
    (msg__)->WriteSentinel(843352540);
2525
0
2526
0
2527
0
2528
0
2529
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2530
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2531
0
    }
2532
0
    AUTO_PROFILER_LABEL("PContent::Msg_PushWithData", OTHER);
2533
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2534
0
        mozilla::ipc::LogicError("Transition error");
2535
0
    }
2536
0
2537
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2538
0
    return sendok__;
2539
0
}
2540
2541
auto PContentParent::SendPushSubscriptionChange(
2542
        const nsCString& scope,
2543
        const Principal& principal) -> bool
2544
0
{
2545
0
    IPC::Message* msg__ = PContent::Msg_PushSubscriptionChange(MSG_ROUTING_CONTROL);
2546
0
2547
0
    WriteIPDLParam(msg__, this, scope);
2548
0
    // Sentinel = 'scope'
2549
0
    (msg__)->WriteSentinel(2191984953);
2550
0
    WriteIPDLParam(msg__, this, principal);
2551
0
    // Sentinel = 'principal'
2552
0
    (msg__)->WriteSentinel(732240927);
2553
0
2554
0
2555
0
2556
0
2557
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2558
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2559
0
    }
2560
0
    AUTO_PROFILER_LABEL("PContent::Msg_PushSubscriptionChange", OTHER);
2561
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2562
0
        mozilla::ipc::LogicError("Transition error");
2563
0
    }
2564
0
2565
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2566
0
    return sendok__;
2567
0
}
2568
2569
auto PContentParent::SendPushError(
2570
        const nsCString& scope,
2571
        const Principal& principal,
2572
        const nsString& message,
2573
        const uint32_t& flags) -> bool
2574
0
{
2575
0
    IPC::Message* msg__ = PContent::Msg_PushError(MSG_ROUTING_CONTROL);
2576
0
2577
0
    WriteIPDLParam(msg__, this, scope);
2578
0
    // Sentinel = 'scope'
2579
0
    (msg__)->WriteSentinel(2191984953);
2580
0
    WriteIPDLParam(msg__, this, principal);
2581
0
    // Sentinel = 'principal'
2582
0
    (msg__)->WriteSentinel(732240927);
2583
0
    WriteIPDLParam(msg__, this, message);
2584
0
    // Sentinel = 'message'
2585
0
    (msg__)->WriteSentinel(1366108954);
2586
0
    WriteIPDLParam(msg__, this, flags);
2587
0
    // Sentinel = 'flags'
2588
0
    (msg__)->WriteSentinel(2550519284);
2589
0
2590
0
2591
0
2592
0
2593
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2594
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2595
0
    }
2596
0
    AUTO_PROFILER_LABEL("PContent::Msg_PushError", OTHER);
2597
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2598
0
        mozilla::ipc::LogicError("Transition error");
2599
0
    }
2600
0
2601
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2602
0
    return sendok__;
2603
0
}
2604
2605
auto PContentParent::SendSetAudioSessionData(
2606
        const nsID& aID,
2607
        const nsString& aDisplayName,
2608
        const nsString& aIconPath) -> bool
2609
0
{
2610
0
    IPC::Message* msg__ = PContent::Msg_SetAudioSessionData(MSG_ROUTING_CONTROL);
2611
0
2612
0
    WriteIPDLParam(msg__, this, aID);
2613
0
    // Sentinel = 'aID'
2614
0
    (msg__)->WriteSentinel(2735041849);
2615
0
    WriteIPDLParam(msg__, this, aDisplayName);
2616
0
    // Sentinel = 'aDisplayName'
2617
0
    (msg__)->WriteSentinel(531102644);
2618
0
    WriteIPDLParam(msg__, this, aIconPath);
2619
0
    // Sentinel = 'aIconPath'
2620
0
    (msg__)->WriteSentinel(2359874914);
2621
0
2622
0
2623
0
2624
0
2625
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2626
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2627
0
    }
2628
0
    AUTO_PROFILER_LABEL("PContent::Msg_SetAudioSessionData", OTHER);
2629
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2630
0
        mozilla::ipc::LogicError("Transition error");
2631
0
    }
2632
0
2633
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2634
0
    return sendok__;
2635
0
}
2636
2637
auto PContentParent::SendGetFilesResponse(
2638
        const nsID& aID,
2639
        const GetFilesResponseResult& aResult) -> bool
2640
0
{
2641
0
    IPC::Message* msg__ = PContent::Msg_GetFilesResponse(MSG_ROUTING_CONTROL);
2642
0
2643
0
    WriteIPDLParam(msg__, this, aID);
2644
0
    // Sentinel = 'aID'
2645
0
    (msg__)->WriteSentinel(2735041849);
2646
0
    WriteIPDLParam(msg__, this, aResult);
2647
0
    // Sentinel = 'aResult'
2648
0
    (msg__)->WriteSentinel(3888726089);
2649
0
2650
0
2651
0
2652
0
2653
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2654
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2655
0
    }
2656
0
    AUTO_PROFILER_LABEL("PContent::Msg_GetFilesResponse", OTHER);
2657
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2658
0
        mozilla::ipc::LogicError("Transition error");
2659
0
    }
2660
0
2661
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2662
0
    return sendok__;
2663
0
}
2664
2665
auto PContentParent::SendBlobURLRegistration(
2666
        const nsCString& aURI,
2667
        const IPCBlob& aBlob,
2668
        const Principal& aPrincipal) -> bool
2669
0
{
2670
0
    IPC::Message* msg__ = PContent::Msg_BlobURLRegistration(MSG_ROUTING_CONTROL);
2671
0
2672
0
    WriteIPDLParam(msg__, this, aURI);
2673
0
    // Sentinel = 'aURI'
2674
0
    (msg__)->WriteSentinel(2075506333);
2675
0
    WriteIPDLParam(msg__, this, aBlob);
2676
0
    // Sentinel = 'aBlob'
2677
0
    (msg__)->WriteSentinel(3425660321);
2678
0
    WriteIPDLParam(msg__, this, aPrincipal);
2679
0
    // Sentinel = 'aPrincipal'
2680
0
    (msg__)->WriteSentinel(4097511);
2681
0
2682
0
2683
0
2684
0
2685
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2686
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2687
0
    }
2688
0
    AUTO_PROFILER_LABEL("PContent::Msg_BlobURLRegistration", OTHER);
2689
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2690
0
        mozilla::ipc::LogicError("Transition error");
2691
0
    }
2692
0
2693
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2694
0
    return sendok__;
2695
0
}
2696
2697
auto PContentParent::SendBlobURLUnregistration(const nsCString& aURI) -> bool
2698
0
{
2699
0
    IPC::Message* msg__ = PContent::Msg_BlobURLUnregistration(MSG_ROUTING_CONTROL);
2700
0
2701
0
    WriteIPDLParam(msg__, this, aURI);
2702
0
    // Sentinel = 'aURI'
2703
0
    (msg__)->WriteSentinel(2075506333);
2704
0
2705
0
2706
0
2707
0
2708
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2709
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2710
0
    }
2711
0
    AUTO_PROFILER_LABEL("PContent::Msg_BlobURLUnregistration", OTHER);
2712
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2713
0
        mozilla::ipc::LogicError("Transition error");
2714
0
    }
2715
0
2716
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2717
0
    return sendok__;
2718
0
}
2719
2720
auto PContentParent::SendGMPsChanged(const nsTArray<GMPCapabilityData>& capabilities) -> bool
2721
0
{
2722
0
    IPC::Message* msg__ = PContent::Msg_GMPsChanged(MSG_ROUTING_CONTROL);
2723
0
2724
0
    WriteIPDLParam(msg__, this, capabilities);
2725
0
    // Sentinel = 'capabilities'
2726
0
    (msg__)->WriteSentinel(4197121582);
2727
0
2728
0
2729
0
2730
0
2731
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2732
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2733
0
    }
2734
0
    AUTO_PROFILER_LABEL("PContent::Msg_GMPsChanged", OTHER);
2735
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2736
0
        mozilla::ipc::LogicError("Transition error");
2737
0
    }
2738
0
2739
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2740
0
    return sendok__;
2741
0
}
2742
2743
auto PContentParent::SendFileCreationResponse(
2744
        const nsID& aID,
2745
        const FileCreationResult& aResult) -> bool
2746
0
{
2747
0
    IPC::Message* msg__ = PContent::Msg_FileCreationResponse(MSG_ROUTING_CONTROL);
2748
0
2749
0
    WriteIPDLParam(msg__, this, aID);
2750
0
    // Sentinel = 'aID'
2751
0
    (msg__)->WriteSentinel(2735041849);
2752
0
    WriteIPDLParam(msg__, this, aResult);
2753
0
    // Sentinel = 'aResult'
2754
0
    (msg__)->WriteSentinel(3888726089);
2755
0
2756
0
2757
0
2758
0
2759
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2760
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2761
0
    }
2762
0
    AUTO_PROFILER_LABEL("PContent::Msg_FileCreationResponse", OTHER);
2763
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2764
0
        mozilla::ipc::LogicError("Transition error");
2765
0
    }
2766
0
2767
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2768
0
    return sendok__;
2769
0
}
2770
2771
auto PContentParent::SendActivate(PBrowserParent* aTab) -> bool
2772
0
{
2773
0
    IPC::Message* msg__ = PContent::Msg_Activate(MSG_ROUTING_CONTROL);
2774
0
2775
0
    MOZ_RELEASE_ASSERT(aTab, "NULL actor value passed to non-nullable param");
2776
0
    WriteIPDLParam(msg__, this, aTab);
2777
0
    // Sentinel = 'aTab'
2778
0
    (msg__)->WriteSentinel(1179125994);
2779
0
2780
0
2781
0
2782
0
2783
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2784
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2785
0
    }
2786
0
    AUTO_PROFILER_LABEL("PContent::Msg_Activate", OTHER);
2787
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2788
0
        mozilla::ipc::LogicError("Transition error");
2789
0
    }
2790
0
2791
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2792
0
    return sendok__;
2793
0
}
2794
2795
auto PContentParent::SendDeactivate(PBrowserParent* aTab) -> bool
2796
0
{
2797
0
    IPC::Message* msg__ = PContent::Msg_Deactivate(MSG_ROUTING_CONTROL);
2798
0
2799
0
    MOZ_RELEASE_ASSERT(aTab, "NULL actor value passed to non-nullable param");
2800
0
    WriteIPDLParam(msg__, this, aTab);
2801
0
    // Sentinel = 'aTab'
2802
0
    (msg__)->WriteSentinel(1179125994);
2803
0
2804
0
2805
0
2806
0
2807
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2808
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2809
0
    }
2810
0
    AUTO_PROFILER_LABEL("PContent::Msg_Deactivate", OTHER);
2811
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2812
0
        mozilla::ipc::LogicError("Transition error");
2813
0
    }
2814
0
2815
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2816
0
    return sendok__;
2817
0
}
2818
2819
auto PContentParent::SendPParentToChildStreamConstructor() -> PParentToChildStreamParent*
2820
0
{
2821
0
    return SendPParentToChildStreamConstructor(AllocPParentToChildStreamParent());
2822
0
}
2823
2824
auto PContentParent::SendPParentToChildStreamConstructor(PParentToChildStreamParent* actor) -> PParentToChildStreamParent*
2825
0
{
2826
0
    if ((!(actor))) {
2827
0
        NS_WARNING("Error constructing actor PParentToChildStreamParent");
2828
0
        return nullptr;
2829
0
    }
2830
0
    (actor)->SetManagerAndRegister(this);
2831
0
    (mManagedPParentToChildStreamParent).PutEntry(actor);
2832
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2833
0
2834
0
    IPC::Message* msg__ = PContent::Msg_PParentToChildStreamConstructor(MSG_ROUTING_CONTROL);
2835
0
2836
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
2837
0
    WriteIPDLParam(msg__, this, actor);
2838
0
    // Sentinel = 'actor'
2839
0
    (msg__)->WriteSentinel(875202478);
2840
0
2841
0
2842
0
2843
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2844
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2845
0
    }
2846
0
    AUTO_PROFILER_LABEL("PContent::Msg_PParentToChildStreamConstructor", OTHER);
2847
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2848
0
        mozilla::ipc::LogicError("Transition error");
2849
0
    }
2850
0
2851
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2852
0
    if ((!(sendok__))) {
2853
0
        IProtocol* mgr = (actor)->Manager();
2854
0
        (actor)->DestroySubtree(FailedConstructor);
2855
0
        (actor)->DeallocSubtree();
2856
0
        (mgr)->RemoveManagee(PParentToChildStreamMsgStart, actor);
2857
0
        return nullptr;
2858
0
    }
2859
0
    return actor;
2860
0
}
2861
2862
auto PContentParent::SendProvideAnonymousTemporaryFile(
2863
        const uint64_t& aID,
2864
        const FileDescOrError& aFD) -> bool
2865
0
{
2866
0
    IPC::Message* msg__ = PContent::Msg_ProvideAnonymousTemporaryFile(MSG_ROUTING_CONTROL);
2867
0
2868
0
    WriteIPDLParam(msg__, this, aID);
2869
0
    // Sentinel = 'aID'
2870
0
    (msg__)->WriteSentinel(2735041849);
2871
0
    WriteIPDLParam(msg__, this, aFD);
2872
0
    // Sentinel = 'aFD'
2873
0
    (msg__)->WriteSentinel(2730041960);
2874
0
2875
0
2876
0
2877
0
2878
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2879
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2880
0
    }
2881
0
    AUTO_PROFILER_LABEL("PContent::Msg_ProvideAnonymousTemporaryFile", OTHER);
2882
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2883
0
        mozilla::ipc::LogicError("Transition error");
2884
0
    }
2885
0
2886
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2887
0
    return sendok__;
2888
0
}
2889
2890
auto PContentParent::SendSetPermissionsWithKey(
2891
        const nsCString& aPermissionKey,
2892
        const nsTArray<Permission>& aPermissions) -> bool
2893
0
{
2894
0
    IPC::Message* msg__ = PContent::Msg_SetPermissionsWithKey(MSG_ROUTING_CONTROL);
2895
0
2896
0
    WriteIPDLParam(msg__, this, aPermissionKey);
2897
0
    // Sentinel = 'aPermissionKey'
2898
0
    (msg__)->WriteSentinel(1655133647);
2899
0
    WriteIPDLParam(msg__, this, aPermissions);
2900
0
    // Sentinel = 'aPermissions'
2901
0
    (msg__)->WriteSentinel(1882836443);
2902
0
2903
0
2904
0
2905
0
2906
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2907
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2908
0
    }
2909
0
    AUTO_PROFILER_LABEL("PContent::Msg_SetPermissionsWithKey", OTHER);
2910
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2911
0
        mozilla::ipc::LogicError("Transition error");
2912
0
    }
2913
0
2914
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2915
0
    return sendok__;
2916
0
}
2917
2918
auto PContentParent::SendRefreshScreens(const nsTArray<ScreenDetails>& aScreens) -> bool
2919
0
{
2920
0
    IPC::Message* msg__ = PContent::Msg_RefreshScreens(MSG_ROUTING_CONTROL);
2921
0
2922
0
    WriteIPDLParam(msg__, this, aScreens);
2923
0
    // Sentinel = 'aScreens'
2924
0
    (msg__)->WriteSentinel(2322625764);
2925
0
2926
0
2927
0
2928
0
2929
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2930
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2931
0
    }
2932
0
    AUTO_PROFILER_LABEL("PContent::Msg_RefreshScreens", OTHER);
2933
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2934
0
        mozilla::ipc::LogicError("Transition error");
2935
0
    }
2936
0
2937
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2938
0
    return sendok__;
2939
0
}
2940
2941
auto PContentParent::SendPIPCBlobInputStreamConstructor(
2942
        const nsID& aID,
2943
        const uint64_t& aSize) -> PIPCBlobInputStreamParent*
2944
0
{
2945
0
    return SendPIPCBlobInputStreamConstructor(AllocPIPCBlobInputStreamParent(aID, aSize), aID, aSize);
2946
0
}
2947
2948
auto PContentParent::SendPIPCBlobInputStreamConstructor(
2949
        PIPCBlobInputStreamParent* actor,
2950
        const nsID& aID,
2951
        const uint64_t& aSize) -> PIPCBlobInputStreamParent*
2952
0
{
2953
0
    if ((!(actor))) {
2954
0
        NS_WARNING("Error constructing actor PIPCBlobInputStreamParent");
2955
0
        return nullptr;
2956
0
    }
2957
0
    (actor)->SetManagerAndRegister(this);
2958
0
    (mManagedPIPCBlobInputStreamParent).PutEntry(actor);
2959
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2960
0
2961
0
    IPC::Message* msg__ = PContent::Msg_PIPCBlobInputStreamConstructor(MSG_ROUTING_CONTROL);
2962
0
2963
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
2964
0
    WriteIPDLParam(msg__, this, actor);
2965
0
    // Sentinel = 'actor'
2966
0
    (msg__)->WriteSentinel(875202478);
2967
0
    WriteIPDLParam(msg__, this, aID);
2968
0
    // Sentinel = 'aID'
2969
0
    (msg__)->WriteSentinel(2735041849);
2970
0
    WriteIPDLParam(msg__, this, aSize);
2971
0
    // Sentinel = 'aSize'
2972
0
    (msg__)->WriteSentinel(2556665555);
2973
0
2974
0
2975
0
2976
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
2977
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
2978
0
    }
2979
0
    AUTO_PROFILER_LABEL("PContent::Msg_PIPCBlobInputStreamConstructor", OTHER);
2980
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
2981
0
        mozilla::ipc::LogicError("Transition error");
2982
0
    }
2983
0
2984
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
2985
0
    if ((!(sendok__))) {
2986
0
        IProtocol* mgr = (actor)->Manager();
2987
0
        (actor)->DestroySubtree(FailedConstructor);
2988
0
        (actor)->DeallocSubtree();
2989
0
        (mgr)->RemoveManagee(PIPCBlobInputStreamMsgStart, actor);
2990
0
        return nullptr;
2991
0
    }
2992
0
    return actor;
2993
0
}
2994
2995
auto PContentParent::SendSetPluginList(
2996
        const uint32_t& pluginEpoch,
2997
        const nsTArray<PluginTag>& plugins,
2998
        const nsTArray<FakePluginTag>& fakePlugins) -> bool
2999
0
{
3000
0
    IPC::Message* msg__ = PContent::Msg_SetPluginList(MSG_ROUTING_CONTROL);
3001
0
3002
0
    WriteIPDLParam(msg__, this, pluginEpoch);
3003
0
    // Sentinel = 'pluginEpoch'
3004
0
    (msg__)->WriteSentinel(2162950827);
3005
0
    WriteIPDLParam(msg__, this, plugins);
3006
0
    // Sentinel = 'plugins'
3007
0
    (msg__)->WriteSentinel(2745061527);
3008
0
    WriteIPDLParam(msg__, this, fakePlugins);
3009
0
    // Sentinel = 'fakePlugins'
3010
0
    (msg__)->WriteSentinel(3769647974);
3011
0
3012
0
3013
0
3014
0
3015
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3016
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
3017
0
    }
3018
0
    AUTO_PROFILER_LABEL("PContent::Msg_SetPluginList", OTHER);
3019
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
3020
0
        mozilla::ipc::LogicError("Transition error");
3021
0
    }
3022
0
3023
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
3024
0
    return sendok__;
3025
0
}
3026
3027
auto PContentParent::SendShareCodeCoverageMutex(const CrossProcessMutexHandle& handle) -> bool
3028
0
{
3029
0
    IPC::Message* msg__ = PContent::Msg_ShareCodeCoverageMutex(MSG_ROUTING_CONTROL);
3030
0
3031
0
    WriteIPDLParam(msg__, this, handle);
3032
0
    // Sentinel = 'handle'
3033
0
    (msg__)->WriteSentinel(453975108);
3034
0
3035
0
3036
0
3037
0
3038
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3039
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
3040
0
    }
3041
0
    AUTO_PROFILER_LABEL("PContent::Msg_ShareCodeCoverageMutex", OTHER);
3042
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
3043
0
        mozilla::ipc::LogicError("Transition error");
3044
0
    }
3045
0
3046
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
3047
0
    return sendok__;
3048
0
}
3049
3050
auto PContentParent::SendDumpCodeCoverageCounters(
3051
        mozilla::ipc::ResolveCallback<bool>&& aResolve,
3052
        mozilla::ipc::RejectCallback&& aReject) -> void
3053
0
{
3054
0
    IPC::Message* msg__ = PContent::Msg_DumpCodeCoverageCounters(MSG_ROUTING_CONTROL);
3055
0
3056
0
3057
0
3058
0
3059
0
3060
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3061
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
3062
0
    }
3063
0
    AUTO_PROFILER_LABEL("PContent::Msg_DumpCodeCoverageCounters", OTHER);
3064
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
3065
0
        mozilla::ipc::LogicError("Transition error");
3066
0
    }
3067
0
3068
0
    (GetIPCChannel())->Send(msg__, this, std::move(aResolve), std::move(aReject));
3069
0
    return;
3070
0
}
3071
3072
auto PContentParent::SendDumpCodeCoverageCounters() -> RefPtr<DumpCodeCoverageCountersPromise>
3073
0
{
3074
0
3075
0
    RefPtr<MozPromise<bool, ResponseRejectReason, false>::Private> promise__ = new MozPromise<bool, ResponseRejectReason, false>::Private(__func__);
3076
0
3077
0
    SendDumpCodeCoverageCounters([promise__](bool&& aValue) {
3078
0
        (promise__)->Resolve(std::move(aValue), __func__);
3079
0
    }, [promise__](ResponseRejectReason aReason) {
3080
0
        (promise__)->Reject(aReason, __func__);
3081
0
    });
3082
0
    return promise__;
3083
0
}
3084
3085
auto PContentParent::SendResetCodeCoverageCounters(
3086
        mozilla::ipc::ResolveCallback<bool>&& aResolve,
3087
        mozilla::ipc::RejectCallback&& aReject) -> void
3088
0
{
3089
0
    IPC::Message* msg__ = PContent::Msg_ResetCodeCoverageCounters(MSG_ROUTING_CONTROL);
3090
0
3091
0
3092
0
3093
0
3094
0
3095
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3096
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
3097
0
    }
3098
0
    AUTO_PROFILER_LABEL("PContent::Msg_ResetCodeCoverageCounters", OTHER);
3099
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
3100
0
        mozilla::ipc::LogicError("Transition error");
3101
0
    }
3102
0
3103
0
    (GetIPCChannel())->Send(msg__, this, std::move(aResolve), std::move(aReject));
3104
0
    return;
3105
0
}
3106
3107
auto PContentParent::SendResetCodeCoverageCounters() -> RefPtr<ResetCodeCoverageCountersPromise>
3108
0
{
3109
0
3110
0
    RefPtr<MozPromise<bool, ResponseRejectReason, false>::Private> promise__ = new MozPromise<bool, ResponseRejectReason, false>::Private(__func__);
3111
0
3112
0
    SendResetCodeCoverageCounters([promise__](bool&& aValue) {
3113
0
        (promise__)->Resolve(std::move(aValue), __func__);
3114
0
    }, [promise__](ResponseRejectReason aReason) {
3115
0
        (promise__)->Reject(aReason, __func__);
3116
0
    });
3117
0
    return promise__;
3118
0
}
3119
3120
auto PContentParent::SendSetInputEventQueueEnabled() -> bool
3121
0
{
3122
0
    IPC::Message* msg__ = PContent::Msg_SetInputEventQueueEnabled(MSG_ROUTING_CONTROL);
3123
0
3124
0
3125
0
3126
0
3127
0
3128
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3129
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
3130
0
    }
3131
0
    AUTO_PROFILER_LABEL("PContent::Msg_SetInputEventQueueEnabled", OTHER);
3132
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
3133
0
        mozilla::ipc::LogicError("Transition error");
3134
0
    }
3135
0
3136
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
3137
0
    return sendok__;
3138
0
}
3139
3140
auto PContentParent::SendFlushInputEventQueue() -> bool
3141
0
{
3142
0
    IPC::Message* msg__ = PContent::Msg_FlushInputEventQueue(MSG_ROUTING_CONTROL);
3143
0
3144
0
3145
0
3146
0
3147
0
3148
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3149
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
3150
0
    }
3151
0
    AUTO_PROFILER_LABEL("PContent::Msg_FlushInputEventQueue", OTHER);
3152
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
3153
0
        mozilla::ipc::LogicError("Transition error");
3154
0
    }
3155
0
3156
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
3157
0
    return sendok__;
3158
0
}
3159
3160
auto PContentParent::SendResumeInputEventQueue() -> bool
3161
0
{
3162
0
    IPC::Message* msg__ = PContent::Msg_ResumeInputEventQueue(MSG_ROUTING_CONTROL);
3163
0
3164
0
3165
0
3166
0
3167
0
3168
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3169
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
3170
0
    }
3171
0
    AUTO_PROFILER_LABEL("PContent::Msg_ResumeInputEventQueue", OTHER);
3172
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
3173
0
        mozilla::ipc::LogicError("Transition error");
3174
0
    }
3175
0
3176
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
3177
0
    return sendok__;
3178
0
}
3179
3180
auto PContentParent::SendSuspendInputEventQueue() -> bool
3181
0
{
3182
0
    IPC::Message* msg__ = PContent::Msg_SuspendInputEventQueue(MSG_ROUTING_CONTROL);
3183
0
3184
0
3185
0
3186
0
3187
0
3188
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3189
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
3190
0
    }
3191
0
    AUTO_PROFILER_LABEL("PContent::Msg_SuspendInputEventQueue", OTHER);
3192
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
3193
0
        mozilla::ipc::LogicError("Transition error");
3194
0
    }
3195
0
3196
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
3197
0
    return sendok__;
3198
0
}
3199
3200
auto PContentParent::SendAddDynamicScalars(const nsTArray<DynamicScalarDefinition>& definitions) -> bool
3201
0
{
3202
0
    IPC::Message* msg__ = PContent::Msg_AddDynamicScalars(MSG_ROUTING_CONTROL);
3203
0
3204
0
    WriteIPDLParam(msg__, this, definitions);
3205
0
    // Sentinel = 'definitions'
3206
0
    (msg__)->WriteSentinel(1873316345);
3207
0
3208
0
3209
0
3210
0
3211
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3212
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
3213
0
    }
3214
0
    AUTO_PROFILER_LABEL("PContent::Msg_AddDynamicScalars", OTHER);
3215
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
3216
0
        mozilla::ipc::LogicError("Transition error");
3217
0
    }
3218
0
3219
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
3220
0
    return sendok__;
3221
0
}
3222
3223
auto PContentParent::SendPClientOpenWindowOpConstructor(const ClientOpenWindowArgs& aArgs) -> PClientOpenWindowOpParent*
3224
0
{
3225
0
    return SendPClientOpenWindowOpConstructor(AllocPClientOpenWindowOpParent(aArgs), aArgs);
3226
0
}
3227
3228
auto PContentParent::SendPClientOpenWindowOpConstructor(
3229
        PClientOpenWindowOpParent* actor,
3230
        const ClientOpenWindowArgs& aArgs) -> PClientOpenWindowOpParent*
3231
0
{
3232
0
    if ((!(actor))) {
3233
0
        NS_WARNING("Error constructing actor PClientOpenWindowOpParent");
3234
0
        return nullptr;
3235
0
    }
3236
0
    (actor)->SetManagerAndRegister(this);
3237
0
    (mManagedPClientOpenWindowOpParent).PutEntry(actor);
3238
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
3239
0
3240
0
    IPC::Message* msg__ = PContent::Msg_PClientOpenWindowOpConstructor(MSG_ROUTING_CONTROL);
3241
0
3242
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
3243
0
    WriteIPDLParam(msg__, this, actor);
3244
0
    // Sentinel = 'actor'
3245
0
    (msg__)->WriteSentinel(875202478);
3246
0
    WriteIPDLParam(msg__, this, aArgs);
3247
0
    // Sentinel = 'aArgs'
3248
0
    (msg__)->WriteSentinel(424150951);
3249
0
3250
0
3251
0
3252
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3253
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
3254
0
    }
3255
0
    AUTO_PROFILER_LABEL("PContent::Msg_PClientOpenWindowOpConstructor", OTHER);
3256
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
3257
0
        mozilla::ipc::LogicError("Transition error");
3258
0
    }
3259
0
3260
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
3261
0
    if ((!(sendok__))) {
3262
0
        IProtocol* mgr = (actor)->Manager();
3263
0
        (actor)->DestroySubtree(FailedConstructor);
3264
0
        (actor)->DeallocSubtree();
3265
0
        (mgr)->RemoveManagee(PClientOpenWindowOpMsgStart, actor);
3266
0
        return nullptr;
3267
0
    }
3268
0
    return actor;
3269
0
}
3270
3271
auto PContentParent::SendSaveRecording(const FileDescriptor& file) -> bool
3272
0
{
3273
0
    IPC::Message* msg__ = PContent::Msg_SaveRecording(MSG_ROUTING_CONTROL);
3274
0
3275
0
    WriteIPDLParam(msg__, this, file);
3276
0
    // Sentinel = 'file'
3277
0
    (msg__)->WriteSentinel(224874390);
3278
0
3279
0
3280
0
3281
0
3282
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3283
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
3284
0
    }
3285
0
    AUTO_PROFILER_LABEL("PContent::Msg_SaveRecording", OTHER);
3286
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
3287
0
        mozilla::ipc::LogicError("Transition error");
3288
0
    }
3289
0
3290
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
3291
0
    return sendok__;
3292
0
}
3293
3294
auto PContentParent::SendAsyncMessage(
3295
        const nsString& aMessage,
3296
        const nsTArray<CpowEntry>& aCpows,
3297
        const Principal& aPrincipal,
3298
        const ClonedMessageData& aData) -> bool
3299
0
{
3300
0
    IPC::Message* msg__ = PContent::Msg_AsyncMessage(MSG_ROUTING_CONTROL);
3301
0
3302
0
    WriteIPDLParam(msg__, this, aMessage);
3303
0
    // Sentinel = 'aMessage'
3304
0
    (msg__)->WriteSentinel(3453110902);
3305
0
    WriteIPDLParam(msg__, this, aCpows);
3306
0
    // Sentinel = 'aCpows'
3307
0
    (msg__)->WriteSentinel(2178221451);
3308
0
    WriteIPDLParam(msg__, this, aPrincipal);
3309
0
    // Sentinel = 'aPrincipal'
3310
0
    (msg__)->WriteSentinel(4097511);
3311
0
    WriteIPDLParam(msg__, this, aData);
3312
0
    // Sentinel = 'aData'
3313
0
    (msg__)->WriteSentinel(3285075324);
3314
0
3315
0
3316
0
3317
0
3318
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3319
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
3320
0
    }
3321
0
    AUTO_PROFILER_LABEL("PContent::Msg_AsyncMessage", OTHER);
3322
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
3323
0
        mozilla::ipc::LogicError("Transition error");
3324
0
    }
3325
0
3326
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
3327
0
    return sendok__;
3328
0
}
3329
3330
auto PContentParent::SendNotifyPushSubscriptionModifiedObservers(
3331
        const nsCString& scope,
3332
        const Principal& principal) -> bool
3333
0
{
3334
0
    IPC::Message* msg__ = PContent::Msg_NotifyPushSubscriptionModifiedObservers(MSG_ROUTING_CONTROL);
3335
0
3336
0
    WriteIPDLParam(msg__, this, scope);
3337
0
    // Sentinel = 'scope'
3338
0
    (msg__)->WriteSentinel(2191984953);
3339
0
    WriteIPDLParam(msg__, this, principal);
3340
0
    // Sentinel = 'principal'
3341
0
    (msg__)->WriteSentinel(732240927);
3342
0
3343
0
3344
0
3345
0
3346
0
    if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3347
0
        mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
3348
0
    }
3349
0
    AUTO_PROFILER_LABEL("PContent::Msg_NotifyPushSubscriptionModifiedObservers", OTHER);
3350
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
3351
0
        mozilla::ipc::LogicError("Transition error");
3352
0
    }
3353
0
3354
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
3355
0
    return sendok__;
3356
0
}
3357
3358
auto PContentParent::RemoveManagee(
3359
        int32_t aProtocolId,
3360
        IProtocol* aListener) -> void
3361
0
{
3362
0
    switch (aProtocolId) {
3363
0
    case PBrowserMsgStart:
3364
0
        {
3365
0
            PBrowserParent* actor = static_cast<PBrowserParent*>(aListener);
3366
0
            auto& container = mManagedPBrowserParent;
3367
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3368
0
3369
0
            (container).RemoveEntry(actor);
3370
0
            DeallocPBrowserParent(actor);
3371
0
            return;
3372
0
        }
3373
0
    case PClientOpenWindowOpMsgStart:
3374
0
        {
3375
0
            PClientOpenWindowOpParent* actor = static_cast<PClientOpenWindowOpParent*>(aListener);
3376
0
            auto& container = mManagedPClientOpenWindowOpParent;
3377
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3378
0
3379
0
            (container).RemoveEntry(actor);
3380
0
            DeallocPClientOpenWindowOpParent(actor);
3381
0
            return;
3382
0
        }
3383
0
    case PContentPermissionRequestMsgStart:
3384
0
        {
3385
0
            PContentPermissionRequestParent* actor = static_cast<PContentPermissionRequestParent*>(aListener);
3386
0
            auto& container = mManagedPContentPermissionRequestParent;
3387
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3388
0
3389
0
            (container).RemoveEntry(actor);
3390
0
            DeallocPContentPermissionRequestParent(actor);
3391
0
            return;
3392
0
        }
3393
0
    case PCycleCollectWithLogsMsgStart:
3394
0
        {
3395
0
            PCycleCollectWithLogsParent* actor = static_cast<PCycleCollectWithLogsParent*>(aListener);
3396
0
            auto& container = mManagedPCycleCollectWithLogsParent;
3397
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3398
0
3399
0
            (container).RemoveEntry(actor);
3400
0
            DeallocPCycleCollectWithLogsParent(actor);
3401
0
            return;
3402
0
        }
3403
0
    case PPSMContentDownloaderMsgStart:
3404
0
        {
3405
0
            PPSMContentDownloaderParent* actor = static_cast<PPSMContentDownloaderParent*>(aListener);
3406
0
            auto& container = mManagedPPSMContentDownloaderParent;
3407
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3408
0
3409
0
            (container).RemoveEntry(actor);
3410
0
            DeallocPPSMContentDownloaderParent(actor);
3411
0
            return;
3412
0
        }
3413
0
    case PExternalHelperAppMsgStart:
3414
0
        {
3415
0
            PExternalHelperAppParent* actor = static_cast<PExternalHelperAppParent*>(aListener);
3416
0
            auto& container = mManagedPExternalHelperAppParent;
3417
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3418
0
3419
0
            (container).RemoveEntry(actor);
3420
0
            DeallocPExternalHelperAppParent(actor);
3421
0
            return;
3422
0
        }
3423
0
    case PFileDescriptorSetMsgStart:
3424
0
        {
3425
0
            PFileDescriptorSetParent* actor = static_cast<PFileDescriptorSetParent*>(aListener);
3426
0
            auto& container = mManagedPFileDescriptorSetParent;
3427
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3428
0
3429
0
            (container).RemoveEntry(actor);
3430
0
            DeallocPFileDescriptorSetParent(actor);
3431
0
            return;
3432
0
        }
3433
0
    case PHalMsgStart:
3434
0
        {
3435
0
            PHalParent* actor = static_cast<PHalParent*>(aListener);
3436
0
            auto& container = mManagedPHalParent;
3437
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3438
0
3439
0
            (container).RemoveEntry(actor);
3440
0
            DeallocPHalParent(actor);
3441
0
            return;
3442
0
        }
3443
0
    case PHandlerServiceMsgStart:
3444
0
        {
3445
0
            PHandlerServiceParent* actor = static_cast<PHandlerServiceParent*>(aListener);
3446
0
            auto& container = mManagedPHandlerServiceParent;
3447
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3448
0
3449
0
            (container).RemoveEntry(actor);
3450
0
            DeallocPHandlerServiceParent(actor);
3451
0
            return;
3452
0
        }
3453
0
    case PHeapSnapshotTempFileHelperMsgStart:
3454
0
        {
3455
0
            PHeapSnapshotTempFileHelperParent* actor = static_cast<PHeapSnapshotTempFileHelperParent*>(aListener);
3456
0
            auto& container = mManagedPHeapSnapshotTempFileHelperParent;
3457
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3458
0
3459
0
            (container).RemoveEntry(actor);
3460
0
            DeallocPHeapSnapshotTempFileHelperParent(actor);
3461
0
            return;
3462
0
        }
3463
0
    case PIPCBlobInputStreamMsgStart:
3464
0
        {
3465
0
            PIPCBlobInputStreamParent* actor = static_cast<PIPCBlobInputStreamParent*>(aListener);
3466
0
            auto& container = mManagedPIPCBlobInputStreamParent;
3467
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3468
0
3469
0
            (container).RemoveEntry(actor);
3470
0
            DeallocPIPCBlobInputStreamParent(actor);
3471
0
            return;
3472
0
        }
3473
0
    case PMediaMsgStart:
3474
0
        {
3475
0
            PMediaParent* actor = static_cast<PMediaParent*>(aListener);
3476
0
            auto& container = mManagedPMediaParent;
3477
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3478
0
3479
0
            (container).RemoveEntry(actor);
3480
0
            DeallocPMediaParent(actor);
3481
0
            return;
3482
0
        }
3483
0
    case PNeckoMsgStart:
3484
0
        {
3485
0
            PNeckoParent* actor = static_cast<PNeckoParent*>(aListener);
3486
0
            auto& container = mManagedPNeckoParent;
3487
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3488
0
3489
0
            (container).RemoveEntry(actor);
3490
0
            DeallocPNeckoParent(actor);
3491
0
            return;
3492
0
        }
3493
0
    case POfflineCacheUpdateMsgStart:
3494
0
        {
3495
0
            POfflineCacheUpdateParent* actor = static_cast<POfflineCacheUpdateParent*>(aListener);
3496
0
            auto& container = mManagedPOfflineCacheUpdateParent;
3497
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3498
0
3499
0
            (container).RemoveEntry(actor);
3500
0
            DeallocPOfflineCacheUpdateParent(actor);
3501
0
            return;
3502
0
        }
3503
0
    case PPrintingMsgStart:
3504
0
        {
3505
0
            PPrintingParent* actor = static_cast<PPrintingParent*>(aListener);
3506
0
            auto& container = mManagedPPrintingParent;
3507
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3508
0
3509
0
            (container).RemoveEntry(actor);
3510
0
            DeallocPPrintingParent(actor);
3511
0
            return;
3512
0
        }
3513
0
    case PChildToParentStreamMsgStart:
3514
0
        {
3515
0
            PChildToParentStreamParent* actor = static_cast<PChildToParentStreamParent*>(aListener);
3516
0
            auto& container = mManagedPChildToParentStreamParent;
3517
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3518
0
3519
0
            (container).RemoveEntry(actor);
3520
0
            DeallocPChildToParentStreamParent(actor);
3521
0
            return;
3522
0
        }
3523
0
    case PParentToChildStreamMsgStart:
3524
0
        {
3525
0
            PParentToChildStreamParent* actor = static_cast<PParentToChildStreamParent*>(aListener);
3526
0
            auto& container = mManagedPParentToChildStreamParent;
3527
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3528
0
3529
0
            (container).RemoveEntry(actor);
3530
0
            DeallocPParentToChildStreamParent(actor);
3531
0
            return;
3532
0
        }
3533
0
    case PSpeechSynthesisMsgStart:
3534
0
        {
3535
0
            PSpeechSynthesisParent* actor = static_cast<PSpeechSynthesisParent*>(aListener);
3536
0
            auto& container = mManagedPSpeechSynthesisParent;
3537
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3538
0
3539
0
            (container).RemoveEntry(actor);
3540
0
            DeallocPSpeechSynthesisParent(actor);
3541
0
            return;
3542
0
        }
3543
0
    case PTestShellMsgStart:
3544
0
        {
3545
0
            PTestShellParent* actor = static_cast<PTestShellParent*>(aListener);
3546
0
            auto& container = mManagedPTestShellParent;
3547
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3548
0
3549
0
            (container).RemoveEntry(actor);
3550
0
            DeallocPTestShellParent(actor);
3551
0
            return;
3552
0
        }
3553
0
    case PJavaScriptMsgStart:
3554
0
        {
3555
0
            PJavaScriptParent* actor = static_cast<PJavaScriptParent*>(aListener);
3556
0
            auto& container = mManagedPJavaScriptParent;
3557
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3558
0
3559
0
            (container).RemoveEntry(actor);
3560
0
            DeallocPJavaScriptParent(actor);
3561
0
            return;
3562
0
        }
3563
0
    case PRemoteSpellcheckEngineMsgStart:
3564
0
        {
3565
0
            PRemoteSpellcheckEngineParent* actor = static_cast<PRemoteSpellcheckEngineParent*>(aListener);
3566
0
            auto& container = mManagedPRemoteSpellcheckEngineParent;
3567
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3568
0
3569
0
            (container).RemoveEntry(actor);
3570
0
            DeallocPRemoteSpellcheckEngineParent(actor);
3571
0
            return;
3572
0
        }
3573
0
    case PWebBrowserPersistDocumentMsgStart:
3574
0
        {
3575
0
            PWebBrowserPersistDocumentParent* actor = static_cast<PWebBrowserPersistDocumentParent*>(aListener);
3576
0
            auto& container = mManagedPWebBrowserPersistDocumentParent;
3577
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3578
0
3579
0
            (container).RemoveEntry(actor);
3580
0
            DeallocPWebBrowserPersistDocumentParent(actor);
3581
0
            return;
3582
0
        }
3583
0
    case PWebrtcGlobalMsgStart:
3584
0
        {
3585
0
            PWebrtcGlobalParent* actor = static_cast<PWebrtcGlobalParent*>(aListener);
3586
0
            auto& container = mManagedPWebrtcGlobalParent;
3587
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3588
0
3589
0
            (container).RemoveEntry(actor);
3590
0
            DeallocPWebrtcGlobalParent(actor);
3591
0
            return;
3592
0
        }
3593
0
    case PPresentationMsgStart:
3594
0
        {
3595
0
            PPresentationParent* actor = static_cast<PPresentationParent*>(aListener);
3596
0
            auto& container = mManagedPPresentationParent;
3597
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3598
0
3599
0
            (container).RemoveEntry(actor);
3600
0
            DeallocPPresentationParent(actor);
3601
0
            return;
3602
0
        }
3603
0
    case PURLClassifierMsgStart:
3604
0
        {
3605
0
            PURLClassifierParent* actor = static_cast<PURLClassifierParent*>(aListener);
3606
0
            auto& container = mManagedPURLClassifierParent;
3607
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3608
0
3609
0
            (container).RemoveEntry(actor);
3610
0
            DeallocPURLClassifierParent(actor);
3611
0
            return;
3612
0
        }
3613
0
    case PURLClassifierLocalMsgStart:
3614
0
        {
3615
0
            PURLClassifierLocalParent* actor = static_cast<PURLClassifierLocalParent*>(aListener);
3616
0
            auto& container = mManagedPURLClassifierLocalParent;
3617
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3618
0
3619
0
            (container).RemoveEntry(actor);
3620
0
            DeallocPURLClassifierLocalParent(actor);
3621
0
            return;
3622
0
        }
3623
0
    case PScriptCacheMsgStart:
3624
0
        {
3625
0
            PScriptCacheParent* actor = static_cast<PScriptCacheParent*>(aListener);
3626
0
            auto& container = mManagedPScriptCacheParent;
3627
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3628
0
3629
0
            (container).RemoveEntry(actor);
3630
0
            DeallocPScriptCacheParent(actor);
3631
0
            return;
3632
0
        }
3633
0
    case PLoginReputationMsgStart:
3634
0
        {
3635
0
            PLoginReputationParent* actor = static_cast<PLoginReputationParent*>(aListener);
3636
0
            auto& container = mManagedPLoginReputationParent;
3637
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
3638
0
3639
0
            (container).RemoveEntry(actor);
3640
0
            DeallocPLoginReputationParent(actor);
3641
0
            return;
3642
0
        }
3643
0
    default:
3644
0
        {
3645
0
            FatalError("unreached");
3646
0
            return;
3647
0
        }
3648
0
    }
3649
0
}
3650
3651
auto PContentParent::OnMessageReceived(const Message& msg__) -> PContentParent::Result
3652
0
{
3653
0
    int32_t route__ = (msg__).routing_id();
3654
0
    if ((MSG_ROUTING_CONTROL) != (route__)) {
3655
0
        IProtocol* routed__ = Lookup(route__);
3656
0
        if ((!(routed__))) {
3657
0
            return MsgRouteError;
3658
0
        }
3659
0
        return (routed__)->OnMessageReceived(msg__);
3660
0
    }
3661
0
3662
0
    switch ((msg__).type()) {
3663
0
    case PContent::Reply_PBrowserConstructor__ID:
3664
0
        {
3665
0
            return MsgProcessed;
3666
0
        }
3667
0
    case PContent::Msg_PBrowserConstructor__ID:
3668
0
        {
3669
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3670
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3671
0
            }
3672
0
            AUTO_PROFILER_LABEL("PContent::Msg_PBrowserConstructor", OTHER);
3673
0
3674
0
            PickleIterator iter__(msg__);
3675
0
            ActorHandle handle__;
3676
0
            PBrowserParent* actor;
3677
0
            TabId tabId;
3678
0
            TabId sameTabGroupAs;
3679
0
            IPCTabContext context;
3680
0
            uint32_t chromeFlags;
3681
0
            ContentParentId cpId;
3682
0
            bool isForBrowser;
3683
0
3684
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
3685
0
                FatalError("Error deserializing 'ActorHandle'");
3686
0
                return MsgValueError;
3687
0
            }
3688
0
            // Sentinel = 'actor'
3689
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
3690
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
3691
0
                return MsgValueError;
3692
0
            }
3693
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(tabId)))))) {
3694
0
                FatalError("Error deserializing 'TabId'");
3695
0
                return MsgValueError;
3696
0
            }
3697
0
            // Sentinel = 'tabId'
3698
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3419081923)))) {
3699
0
                mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
3700
0
                return MsgValueError;
3701
0
            }
3702
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(sameTabGroupAs)))))) {
3703
0
                FatalError("Error deserializing 'TabId'");
3704
0
                return MsgValueError;
3705
0
            }
3706
0
            // Sentinel = 'sameTabGroupAs'
3707
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3969365410)))) {
3708
0
                mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
3709
0
                return MsgValueError;
3710
0
            }
3711
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(context)))))) {
3712
0
                FatalError("Error deserializing 'IPCTabContext'");
3713
0
                return MsgValueError;
3714
0
            }
3715
0
            // Sentinel = 'context'
3716
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3514529014)))) {
3717
0
                mozilla::ipc::SentinelReadError("Error deserializing 'IPCTabContext'");
3718
0
                return MsgValueError;
3719
0
            }
3720
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(chromeFlags)))))) {
3721
0
                FatalError("Error deserializing 'uint32_t'");
3722
0
                return MsgValueError;
3723
0
            }
3724
0
            // Sentinel = 'chromeFlags'
3725
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 299515804)))) {
3726
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
3727
0
                return MsgValueError;
3728
0
            }
3729
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cpId)))))) {
3730
0
                FatalError("Error deserializing 'ContentParentId'");
3731
0
                return MsgValueError;
3732
0
            }
3733
0
            // Sentinel = 'cpId'
3734
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2452595622)))) {
3735
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ContentParentId'");
3736
0
                return MsgValueError;
3737
0
            }
3738
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(isForBrowser)))))) {
3739
0
                FatalError("Error deserializing 'bool'");
3740
0
                return MsgValueError;
3741
0
            }
3742
0
            // Sentinel = 'isForBrowser'
3743
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2051565587)))) {
3744
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
3745
0
                return MsgValueError;
3746
0
            }
3747
0
            (msg__).EndRead(iter__, (msg__).type());
3748
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
3749
0
                FatalError("Transition error");
3750
0
                return MsgValueError;
3751
0
            }
3752
0
            actor = AllocPBrowserParent(tabId, sameTabGroupAs, context, chromeFlags, cpId, isForBrowser);
3753
0
            if ((!(actor))) {
3754
0
                NS_WARNING("Error constructing actor PBrowserParent");
3755
0
                return MsgValueError;
3756
0
            }
3757
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
3758
0
            (mManagedPBrowserParent).PutEntry(actor);
3759
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
3760
0
3761
0
            if ((!(RecvPBrowserConstructor(actor, tabId, sameTabGroupAs, context, chromeFlags, cpId, isForBrowser)))) {
3762
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3763
0
                // Error handled in mozilla::ipc::IPCResult
3764
0
                return MsgProcessingError;
3765
0
            }
3766
0
3767
0
            return MsgProcessed;
3768
0
        }
3769
0
    case PContent::Reply_PFileDescriptorSetConstructor__ID:
3770
0
        {
3771
0
            return MsgProcessed;
3772
0
        }
3773
0
    case PContent::Msg_PFileDescriptorSetConstructor__ID:
3774
0
        {
3775
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3776
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3777
0
            }
3778
0
            AUTO_PROFILER_LABEL("PContent::Msg_PFileDescriptorSetConstructor", OTHER);
3779
0
3780
0
            PickleIterator iter__(msg__);
3781
0
            ActorHandle handle__;
3782
0
            PFileDescriptorSetParent* actor;
3783
0
            FileDescriptor fd;
3784
0
3785
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
3786
0
                FatalError("Error deserializing 'ActorHandle'");
3787
0
                return MsgValueError;
3788
0
            }
3789
0
            // Sentinel = 'actor'
3790
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
3791
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
3792
0
                return MsgValueError;
3793
0
            }
3794
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(fd)))))) {
3795
0
                FatalError("Error deserializing 'FileDescriptor'");
3796
0
                return MsgValueError;
3797
0
            }
3798
0
            // Sentinel = 'fd'
3799
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 628535764)))) {
3800
0
                mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor'");
3801
0
                return MsgValueError;
3802
0
            }
3803
0
            (msg__).EndRead(iter__, (msg__).type());
3804
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
3805
0
                FatalError("Transition error");
3806
0
                return MsgValueError;
3807
0
            }
3808
0
            actor = AllocPFileDescriptorSetParent(fd);
3809
0
            if ((!(actor))) {
3810
0
                NS_WARNING("Error constructing actor PFileDescriptorSetParent");
3811
0
                return MsgValueError;
3812
0
            }
3813
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
3814
0
            (mManagedPFileDescriptorSetParent).PutEntry(actor);
3815
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
3816
0
3817
0
            if ((!(RecvPFileDescriptorSetConstructor(actor, fd)))) {
3818
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3819
0
                // Error handled in mozilla::ipc::IPCResult
3820
0
                return MsgProcessingError;
3821
0
            }
3822
0
3823
0
            return MsgProcessed;
3824
0
        }
3825
0
    case PContent::Reply_PWebBrowserPersistDocumentConstructor__ID:
3826
0
        {
3827
0
            return MsgProcessed;
3828
0
        }
3829
0
    case PContent::Msg_PWebBrowserPersistDocumentConstructor__ID:
3830
0
        {
3831
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3832
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3833
0
            }
3834
0
            AUTO_PROFILER_LABEL("PContent::Msg_PWebBrowserPersistDocumentConstructor", OTHER);
3835
0
3836
0
            PickleIterator iter__(msg__);
3837
0
            ActorHandle handle__;
3838
0
            PWebBrowserPersistDocumentParent* actor;
3839
0
            PBrowserParent* aBrowser;
3840
0
            uint64_t aOuterWindowID;
3841
0
3842
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
3843
0
                FatalError("Error deserializing 'ActorHandle'");
3844
0
                return MsgValueError;
3845
0
            }
3846
0
            // Sentinel = 'actor'
3847
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
3848
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
3849
0
                return MsgValueError;
3850
0
            }
3851
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aBrowser)))))) {
3852
0
                FatalError("Error deserializing 'PBrowserParent'");
3853
0
                return MsgValueError;
3854
0
            }
3855
0
            // Sentinel = 'aBrowser'
3856
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3086016059)))) {
3857
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserParent'");
3858
0
                return MsgValueError;
3859
0
            }
3860
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aOuterWindowID)))))) {
3861
0
                FatalError("Error deserializing 'uint64_t'");
3862
0
                return MsgValueError;
3863
0
            }
3864
0
            // Sentinel = 'aOuterWindowID'
3865
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3438169907)))) {
3866
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
3867
0
                return MsgValueError;
3868
0
            }
3869
0
            (msg__).EndRead(iter__, (msg__).type());
3870
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
3871
0
                FatalError("Transition error");
3872
0
                return MsgValueError;
3873
0
            }
3874
0
            actor = AllocPWebBrowserPersistDocumentParent(aBrowser, aOuterWindowID);
3875
0
            if ((!(actor))) {
3876
0
                NS_WARNING("Error constructing actor PWebBrowserPersistDocumentParent");
3877
0
                return MsgValueError;
3878
0
            }
3879
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
3880
0
            (mManagedPWebBrowserPersistDocumentParent).PutEntry(actor);
3881
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
3882
0
3883
0
            if ((!(RecvPWebBrowserPersistDocumentConstructor(actor, aBrowser, aOuterWindowID)))) {
3884
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3885
0
                // Error handled in mozilla::ipc::IPCResult
3886
0
                return MsgProcessingError;
3887
0
            }
3888
0
3889
0
            return MsgProcessed;
3890
0
        }
3891
0
    case PContent::Reply_PCycleCollectWithLogsConstructor__ID:
3892
0
        {
3893
0
            return MsgProcessed;
3894
0
        }
3895
0
    case PContent::Reply_PTestShellConstructor__ID:
3896
0
        {
3897
0
            return MsgProcessed;
3898
0
        }
3899
0
    case PContent::Reply_PScriptCacheConstructor__ID:
3900
0
        {
3901
0
            return MsgProcessed;
3902
0
        }
3903
0
    case PContent::Reply_PParentToChildStreamConstructor__ID:
3904
0
        {
3905
0
            return MsgProcessed;
3906
0
        }
3907
0
    case PContent::Reply_PIPCBlobInputStreamConstructor__ID:
3908
0
        {
3909
0
            return MsgProcessed;
3910
0
        }
3911
0
    case PContent::Reply_DumpCodeCoverageCounters__ID:
3912
0
        {
3913
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3914
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3915
0
            }
3916
0
            AUTO_PROFILER_LABEL("PContent::Msg_DumpCodeCoverageCounters", OTHER);
3917
0
3918
0
            PickleIterator iter__(msg__);
3919
0
            bool resolve__;
3920
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(resolve__)))))) {
3921
0
                FatalError("Error deserializing 'resolve__'");
3922
0
                return MsgValueError;
3923
0
            }
3924
0
            // Sentinel = 'resolve__'
3925
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3997392463)))) {
3926
0
                mozilla::ipc::SentinelReadError("Error deserializing 'resolve__'");
3927
0
                return MsgValueError;
3928
0
            }
3929
0
3930
0
            UniquePtr<MessageChannel::UntypedCallbackHolder> untypedCallback = (GetIPCChannel())->PopCallback(msg__);
3931
0
            MessageChannel::CallbackHolder<bool>* callback = static_cast<MessageChannel::CallbackHolder<bool>*>((untypedCallback).get());
3932
0
            if ((!(callback))) {
3933
0
                FatalError("Error unknown callback");
3934
0
                return MsgProcessingError;
3935
0
            }
3936
0
            if (resolve__) {
3937
0
                bool unused;
3938
0
3939
0
                if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(unused)))))) {
3940
0
                    FatalError("Error deserializing 'bool'");
3941
0
                    return MsgValueError;
3942
0
                }
3943
0
                // Sentinel = 'unused'
3944
0
                if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1885311952)))) {
3945
0
                    mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
3946
0
                    return MsgValueError;
3947
0
                }
3948
0
                (msg__).EndRead(iter__, (msg__).type());
3949
0
                (callback)->Resolve(std::move(unused));
3950
0
            }
3951
0
            else {
3952
0
                ResponseRejectReason reason__;
3953
0
                if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(reason__)))))) {
3954
0
                    FatalError("Error deserializing 'reason__'");
3955
0
                    return MsgValueError;
3956
0
                }
3957
0
                // Sentinel = 'reason__'
3958
0
                if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 913452670)))) {
3959
0
                    mozilla::ipc::SentinelReadError("Error deserializing 'reason__'");
3960
0
                    return MsgValueError;
3961
0
                }
3962
0
                (msg__).EndRead(iter__, (msg__).type());
3963
0
                (callback)->Reject(reason__);
3964
0
            }
3965
0
            return MsgProcessed;
3966
0
        }
3967
0
    case PContent::Reply_ResetCodeCoverageCounters__ID:
3968
0
        {
3969
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
3970
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3971
0
            }
3972
0
            AUTO_PROFILER_LABEL("PContent::Msg_ResetCodeCoverageCounters", OTHER);
3973
0
3974
0
            PickleIterator iter__(msg__);
3975
0
            bool resolve__;
3976
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(resolve__)))))) {
3977
0
                FatalError("Error deserializing 'resolve__'");
3978
0
                return MsgValueError;
3979
0
            }
3980
0
            // Sentinel = 'resolve__'
3981
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3997392463)))) {
3982
0
                mozilla::ipc::SentinelReadError("Error deserializing 'resolve__'");
3983
0
                return MsgValueError;
3984
0
            }
3985
0
3986
0
            UniquePtr<MessageChannel::UntypedCallbackHolder> untypedCallback = (GetIPCChannel())->PopCallback(msg__);
3987
0
            MessageChannel::CallbackHolder<bool>* callback = static_cast<MessageChannel::CallbackHolder<bool>*>((untypedCallback).get());
3988
0
            if ((!(callback))) {
3989
0
                FatalError("Error unknown callback");
3990
0
                return MsgProcessingError;
3991
0
            }
3992
0
            if (resolve__) {
3993
0
                bool unused;
3994
0
3995
0
                if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(unused)))))) {
3996
0
                    FatalError("Error deserializing 'bool'");
3997
0
                    return MsgValueError;
3998
0
                }
3999
0
                // Sentinel = 'unused'
4000
0
                if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1885311952)))) {
4001
0
                    mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
4002
0
                    return MsgValueError;
4003
0
                }
4004
0
                (msg__).EndRead(iter__, (msg__).type());
4005
0
                (callback)->Resolve(std::move(unused));
4006
0
            }
4007
0
            else {
4008
0
                ResponseRejectReason reason__;
4009
0
                if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(reason__)))))) {
4010
0
                    FatalError("Error deserializing 'reason__'");
4011
0
                    return MsgValueError;
4012
0
                }
4013
0
                // Sentinel = 'reason__'
4014
0
                if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 913452670)))) {
4015
0
                    mozilla::ipc::SentinelReadError("Error deserializing 'reason__'");
4016
0
                    return MsgValueError;
4017
0
                }
4018
0
                (msg__).EndRead(iter__, (msg__).type());
4019
0
                (callback)->Reject(reason__);
4020
0
            }
4021
0
            return MsgProcessed;
4022
0
        }
4023
0
    case PContent::Reply_PClientOpenWindowOpConstructor__ID:
4024
0
        {
4025
0
            return MsgProcessed;
4026
0
        }
4027
0
    case PContent::Msg_InitBackground__ID:
4028
0
        {
4029
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4030
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4031
0
            }
4032
0
            AUTO_PROFILER_LABEL("PContent::Msg_InitBackground", OTHER);
4033
0
4034
0
            PickleIterator iter__(msg__);
4035
0
            Endpoint<mozilla::ipc::PBackgroundParent> aEndpoint;
4036
0
4037
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEndpoint)))))) {
4038
0
                FatalError("Error deserializing 'Endpoint<mozilla::ipc::PBackgroundParent>'");
4039
0
                return MsgValueError;
4040
0
            }
4041
0
            // Sentinel = 'aEndpoint'
4042
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2457438235)))) {
4043
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::ipc::PBackgroundParent>'");
4044
0
                return MsgValueError;
4045
0
            }
4046
0
            (msg__).EndRead(iter__, (msg__).type());
4047
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4048
0
                FatalError("Transition error");
4049
0
                return MsgValueError;
4050
0
            }
4051
0
            if ((!(RecvInitBackground(std::move(aEndpoint))))) {
4052
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4053
0
                // Error handled in mozilla::ipc::IPCResult
4054
0
                return MsgProcessingError;
4055
0
            }
4056
0
4057
0
            return MsgProcessed;
4058
0
        }
4059
0
    case PContent::Msg_CreateReplayingProcess__ID:
4060
0
        {
4061
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4062
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4063
0
            }
4064
0
            AUTO_PROFILER_LABEL("PContent::Msg_CreateReplayingProcess", OTHER);
4065
0
4066
0
            PickleIterator iter__(msg__);
4067
0
            uint32_t channelId;
4068
0
4069
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(channelId)))))) {
4070
0
                FatalError("Error deserializing 'uint32_t'");
4071
0
                return MsgValueError;
4072
0
            }
4073
0
            // Sentinel = 'channelId'
4074
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 6854027)))) {
4075
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
4076
0
                return MsgValueError;
4077
0
            }
4078
0
            (msg__).EndRead(iter__, (msg__).type());
4079
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4080
0
                FatalError("Transition error");
4081
0
                return MsgValueError;
4082
0
            }
4083
0
            if ((!(RecvCreateReplayingProcess(channelId)))) {
4084
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4085
0
                // Error handled in mozilla::ipc::IPCResult
4086
0
                return MsgProcessingError;
4087
0
            }
4088
0
4089
0
            return MsgProcessed;
4090
0
        }
4091
0
    case PContent::Msg_TerminateReplayingProcess__ID:
4092
0
        {
4093
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4094
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4095
0
            }
4096
0
            AUTO_PROFILER_LABEL("PContent::Msg_TerminateReplayingProcess", OTHER);
4097
0
4098
0
            PickleIterator iter__(msg__);
4099
0
            uint32_t channelId;
4100
0
4101
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(channelId)))))) {
4102
0
                FatalError("Error deserializing 'uint32_t'");
4103
0
                return MsgValueError;
4104
0
            }
4105
0
            // Sentinel = 'channelId'
4106
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 6854027)))) {
4107
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
4108
0
                return MsgValueError;
4109
0
            }
4110
0
            (msg__).EndRead(iter__, (msg__).type());
4111
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4112
0
                FatalError("Transition error");
4113
0
                return MsgValueError;
4114
0
            }
4115
0
            if ((!(RecvTerminateReplayingProcess(channelId)))) {
4116
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4117
0
                // Error handled in mozilla::ipc::IPCResult
4118
0
                return MsgProcessingError;
4119
0
            }
4120
0
4121
0
            return MsgProcessed;
4122
0
        }
4123
0
    case PContent::Msg_CreateGMPService__ID:
4124
0
        {
4125
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4126
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4127
0
            }
4128
0
            AUTO_PROFILER_LABEL("PContent::Msg_CreateGMPService", OTHER);
4129
0
4130
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4131
0
                FatalError("Transition error");
4132
0
                return MsgValueError;
4133
0
            }
4134
0
            if ((!(RecvCreateGMPService()))) {
4135
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4136
0
                // Error handled in mozilla::ipc::IPCResult
4137
0
                return MsgProcessingError;
4138
0
            }
4139
0
4140
0
            return MsgProcessed;
4141
0
        }
4142
0
    case PContent::Msg_InitStreamFilter__ID:
4143
0
        {
4144
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4145
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4146
0
            }
4147
0
            AUTO_PROFILER_LABEL("PContent::Msg_InitStreamFilter", OTHER);
4148
0
4149
0
            PickleIterator iter__(msg__);
4150
0
            uint64_t channelId;
4151
0
            nsString addonId;
4152
0
4153
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(channelId)))))) {
4154
0
                FatalError("Error deserializing 'uint64_t'");
4155
0
                return MsgValueError;
4156
0
            }
4157
0
            // Sentinel = 'channelId'
4158
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 6854027)))) {
4159
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
4160
0
                return MsgValueError;
4161
0
            }
4162
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(addonId)))))) {
4163
0
                FatalError("Error deserializing 'nsString'");
4164
0
                return MsgValueError;
4165
0
            }
4166
0
            // Sentinel = 'addonId'
4167
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4000132214)))) {
4168
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
4169
0
                return MsgValueError;
4170
0
            }
4171
0
            (msg__).EndRead(iter__, (msg__).type());
4172
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4173
0
                FatalError("Transition error");
4174
0
                return MsgValueError;
4175
0
            }
4176
0
            int32_t id__ = MSG_ROUTING_CONTROL;
4177
0
4178
0
            int32_t seqno__ = (msg__).seqno();
4179
0
            WeakPtr<PContentParent> self__ = this;
4180
0
            InitStreamFilterResolver resolver = [this, self__, id__, seqno__](Endpoint<mozilla::extensions::PStreamFilterChild>&& aParam) {
4181
0
                if ((!(self__))) {
4182
0
                    NS_WARNING("Not resolving response because actor is dead.");
4183
0
                    return;
4184
0
                }
4185
0
                if ((mLivenessState) == (mozilla::ipc::LivenessState::Dead)) {
4186
0
                    NS_WARNING("Not resolving response because actor is destroyed.");
4187
0
                    return;
4188
0
                }
4189
0
                bool resolve__ = true;
4190
0
                Endpoint<mozilla::extensions::PStreamFilterChild> aEndpoint;
4191
0
                aEndpoint = std::move(aParam);
4192
0
                IPC::Message* reply__ = PContent::Reply_InitStreamFilter(id__);
4193
0
                WriteIPDLParam(reply__, self__, resolve__);
4194
0
                // Sentinel = 'resolve__'
4195
0
                (reply__)->WriteSentinel(3997392463);
4196
0
                WriteIPDLParam(reply__, self__, aEndpoint);
4197
0
                // Sentinel = 'aEndpoint'
4198
0
                (reply__)->WriteSentinel(2457438235);
4199
0
                (reply__)->set_seqno(seqno__);
4200
0
4201
0
                if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4202
0
                    mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
4203
0
                }
4204
0
                bool sendok__ = (GetIPCChannel())->Send(reply__);
4205
0
                if ((!(sendok__))) {
4206
0
                    NS_WARNING("Error sending reply");
4207
0
                }
4208
0
            };
4209
0
            if ((!(RecvInitStreamFilter(channelId, addonId, std::move(resolver))))) {
4210
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4211
0
                // Error handled in mozilla::ipc::IPCResult
4212
0
                return MsgProcessingError;
4213
0
            }
4214
0
4215
0
            return MsgProcessed;
4216
0
        }
4217
0
    case PContent::Msg_PJavaScriptConstructor__ID:
4218
0
        {
4219
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4220
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4221
0
            }
4222
0
            AUTO_PROFILER_LABEL("PContent::Msg_PJavaScriptConstructor", OTHER);
4223
0
4224
0
            PickleIterator iter__(msg__);
4225
0
            ActorHandle handle__;
4226
0
            PJavaScriptParent* actor;
4227
0
4228
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
4229
0
                FatalError("Error deserializing 'ActorHandle'");
4230
0
                return MsgValueError;
4231
0
            }
4232
0
            // Sentinel = 'actor'
4233
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4234
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4235
0
                return MsgValueError;
4236
0
            }
4237
0
            (msg__).EndRead(iter__, (msg__).type());
4238
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4239
0
                FatalError("Transition error");
4240
0
                return MsgValueError;
4241
0
            }
4242
0
            actor = AllocPJavaScriptParent();
4243
0
            if ((!(actor))) {
4244
0
                NS_WARNING("Error constructing actor PJavaScriptParent");
4245
0
                return MsgValueError;
4246
0
            }
4247
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
4248
0
            (mManagedPJavaScriptParent).PutEntry(actor);
4249
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
4250
0
4251
0
            if ((!(RecvPJavaScriptConstructor(actor)))) {
4252
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4253
0
                // Error handled in mozilla::ipc::IPCResult
4254
0
                return MsgProcessingError;
4255
0
            }
4256
0
4257
0
            return MsgProcessed;
4258
0
        }
4259
0
    case PContent::Msg_PRemoteSpellcheckEngineConstructor__ID:
4260
0
        {
4261
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4262
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4263
0
            }
4264
0
            AUTO_PROFILER_LABEL("PContent::Msg_PRemoteSpellcheckEngineConstructor", OTHER);
4265
0
4266
0
            PickleIterator iter__(msg__);
4267
0
            ActorHandle handle__;
4268
0
            PRemoteSpellcheckEngineParent* actor;
4269
0
4270
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
4271
0
                FatalError("Error deserializing 'ActorHandle'");
4272
0
                return MsgValueError;
4273
0
            }
4274
0
            // Sentinel = 'actor'
4275
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4276
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4277
0
                return MsgValueError;
4278
0
            }
4279
0
            (msg__).EndRead(iter__, (msg__).type());
4280
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4281
0
                FatalError("Transition error");
4282
0
                return MsgValueError;
4283
0
            }
4284
0
            actor = AllocPRemoteSpellcheckEngineParent();
4285
0
            if ((!(actor))) {
4286
0
                NS_WARNING("Error constructing actor PRemoteSpellcheckEngineParent");
4287
0
                return MsgValueError;
4288
0
            }
4289
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
4290
0
            (mManagedPRemoteSpellcheckEngineParent).PutEntry(actor);
4291
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
4292
0
4293
0
            if ((!(RecvPRemoteSpellcheckEngineConstructor(actor)))) {
4294
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4295
0
                // Error handled in mozilla::ipc::IPCResult
4296
0
                return MsgProcessingError;
4297
0
            }
4298
0
4299
0
            return MsgProcessed;
4300
0
        }
4301
0
    case PContent::Msg_InitCrashReporter__ID:
4302
0
        {
4303
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4304
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4305
0
            }
4306
0
            AUTO_PROFILER_LABEL("PContent::Msg_InitCrashReporter", OTHER);
4307
0
4308
0
            PickleIterator iter__(msg__);
4309
0
            Shmem shmem;
4310
0
            NativeThreadId tid;
4311
0
4312
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(shmem)))))) {
4313
0
                FatalError("Error deserializing 'Shmem'");
4314
0
                return MsgValueError;
4315
0
            }
4316
0
            // Sentinel = 'shmem'
4317
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4252604405)))) {
4318
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Shmem'");
4319
0
                return MsgValueError;
4320
0
            }
4321
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(tid)))))) {
4322
0
                FatalError("Error deserializing 'NativeThreadId'");
4323
0
                return MsgValueError;
4324
0
            }
4325
0
            // Sentinel = 'tid'
4326
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 333309880)))) {
4327
0
                mozilla::ipc::SentinelReadError("Error deserializing 'NativeThreadId'");
4328
0
                return MsgValueError;
4329
0
            }
4330
0
            (msg__).EndRead(iter__, (msg__).type());
4331
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4332
0
                FatalError("Transition error");
4333
0
                return MsgValueError;
4334
0
            }
4335
0
            if ((!(RecvInitCrashReporter(std::move(shmem), tid)))) {
4336
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4337
0
                // Error handled in mozilla::ipc::IPCResult
4338
0
                return MsgProcessingError;
4339
0
            }
4340
0
4341
0
            return MsgProcessed;
4342
0
        }
4343
0
    case PContent::Msg_AccumulateMixedContentHSTS__ID:
4344
0
        {
4345
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4346
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4347
0
            }
4348
0
            AUTO_PROFILER_LABEL("PContent::Msg_AccumulateMixedContentHSTS", OTHER);
4349
0
4350
0
            PickleIterator iter__(msg__);
4351
0
            URIParams aURI;
4352
0
            bool aActive;
4353
0
            OriginAttributes aOriginAttributes;
4354
0
4355
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aURI)))))) {
4356
0
                FatalError("Error deserializing 'URIParams'");
4357
0
                return MsgValueError;
4358
0
            }
4359
0
            // Sentinel = 'aURI'
4360
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2075506333)))) {
4361
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
4362
0
                return MsgValueError;
4363
0
            }
4364
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aActive)))))) {
4365
0
                FatalError("Error deserializing 'bool'");
4366
0
                return MsgValueError;
4367
0
            }
4368
0
            // Sentinel = 'aActive'
4369
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1215369048)))) {
4370
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
4371
0
                return MsgValueError;
4372
0
            }
4373
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aOriginAttributes)))))) {
4374
0
                FatalError("Error deserializing 'OriginAttributes'");
4375
0
                return MsgValueError;
4376
0
            }
4377
0
            // Sentinel = 'aOriginAttributes'
4378
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2175998517)))) {
4379
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OriginAttributes'");
4380
0
                return MsgValueError;
4381
0
            }
4382
0
            (msg__).EndRead(iter__, (msg__).type());
4383
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4384
0
                FatalError("Transition error");
4385
0
                return MsgValueError;
4386
0
            }
4387
0
            if ((!(RecvAccumulateMixedContentHSTS(aURI, aActive, aOriginAttributes)))) {
4388
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4389
0
                // Error handled in mozilla::ipc::IPCResult
4390
0
                return MsgProcessingError;
4391
0
            }
4392
0
4393
0
            return MsgProcessed;
4394
0
        }
4395
0
    case PContent::Msg_PHalConstructor__ID:
4396
0
        {
4397
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4398
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4399
0
            }
4400
0
            AUTO_PROFILER_LABEL("PContent::Msg_PHalConstructor", OTHER);
4401
0
4402
0
            PickleIterator iter__(msg__);
4403
0
            ActorHandle handle__;
4404
0
            PHalParent* actor;
4405
0
4406
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
4407
0
                FatalError("Error deserializing 'ActorHandle'");
4408
0
                return MsgValueError;
4409
0
            }
4410
0
            // Sentinel = 'actor'
4411
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4412
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4413
0
                return MsgValueError;
4414
0
            }
4415
0
            (msg__).EndRead(iter__, (msg__).type());
4416
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4417
0
                FatalError("Transition error");
4418
0
                return MsgValueError;
4419
0
            }
4420
0
            actor = AllocPHalParent();
4421
0
            if ((!(actor))) {
4422
0
                NS_WARNING("Error constructing actor PHalParent");
4423
0
                return MsgValueError;
4424
0
            }
4425
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
4426
0
            (mManagedPHalParent).PutEntry(actor);
4427
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
4428
0
4429
0
            if ((!(RecvPHalConstructor(actor)))) {
4430
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4431
0
                // Error handled in mozilla::ipc::IPCResult
4432
0
                return MsgProcessingError;
4433
0
            }
4434
0
4435
0
            return MsgProcessed;
4436
0
        }
4437
0
    case PContent::Msg_PHeapSnapshotTempFileHelperConstructor__ID:
4438
0
        {
4439
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4440
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4441
0
            }
4442
0
            AUTO_PROFILER_LABEL("PContent::Msg_PHeapSnapshotTempFileHelperConstructor", OTHER);
4443
0
4444
0
            PickleIterator iter__(msg__);
4445
0
            ActorHandle handle__;
4446
0
            PHeapSnapshotTempFileHelperParent* actor;
4447
0
4448
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
4449
0
                FatalError("Error deserializing 'ActorHandle'");
4450
0
                return MsgValueError;
4451
0
            }
4452
0
            // Sentinel = 'actor'
4453
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4454
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4455
0
                return MsgValueError;
4456
0
            }
4457
0
            (msg__).EndRead(iter__, (msg__).type());
4458
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4459
0
                FatalError("Transition error");
4460
0
                return MsgValueError;
4461
0
            }
4462
0
            actor = AllocPHeapSnapshotTempFileHelperParent();
4463
0
            if ((!(actor))) {
4464
0
                NS_WARNING("Error constructing actor PHeapSnapshotTempFileHelperParent");
4465
0
                return MsgValueError;
4466
0
            }
4467
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
4468
0
            (mManagedPHeapSnapshotTempFileHelperParent).PutEntry(actor);
4469
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
4470
0
4471
0
            if ((!(RecvPHeapSnapshotTempFileHelperConstructor(actor)))) {
4472
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4473
0
                // Error handled in mozilla::ipc::IPCResult
4474
0
                return MsgProcessingError;
4475
0
            }
4476
0
4477
0
            return MsgProcessed;
4478
0
        }
4479
0
    case PContent::Msg_PNeckoConstructor__ID:
4480
0
        {
4481
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4482
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4483
0
            }
4484
0
            AUTO_PROFILER_LABEL("PContent::Msg_PNeckoConstructor", OTHER);
4485
0
4486
0
            PickleIterator iter__(msg__);
4487
0
            ActorHandle handle__;
4488
0
            PNeckoParent* actor;
4489
0
4490
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
4491
0
                FatalError("Error deserializing 'ActorHandle'");
4492
0
                return MsgValueError;
4493
0
            }
4494
0
            // Sentinel = 'actor'
4495
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4496
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4497
0
                return MsgValueError;
4498
0
            }
4499
0
            (msg__).EndRead(iter__, (msg__).type());
4500
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4501
0
                FatalError("Transition error");
4502
0
                return MsgValueError;
4503
0
            }
4504
0
            actor = AllocPNeckoParent();
4505
0
            if ((!(actor))) {
4506
0
                NS_WARNING("Error constructing actor PNeckoParent");
4507
0
                return MsgValueError;
4508
0
            }
4509
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
4510
0
            (mManagedPNeckoParent).PutEntry(actor);
4511
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
4512
0
4513
0
            if ((!(RecvPNeckoConstructor(actor)))) {
4514
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4515
0
                // Error handled in mozilla::ipc::IPCResult
4516
0
                return MsgProcessingError;
4517
0
            }
4518
0
4519
0
            return MsgProcessed;
4520
0
        }
4521
0
    case PContent::Msg_PPrintingConstructor__ID:
4522
0
        {
4523
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4524
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4525
0
            }
4526
0
            AUTO_PROFILER_LABEL("PContent::Msg_PPrintingConstructor", OTHER);
4527
0
4528
0
            PickleIterator iter__(msg__);
4529
0
            ActorHandle handle__;
4530
0
            PPrintingParent* actor;
4531
0
4532
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
4533
0
                FatalError("Error deserializing 'ActorHandle'");
4534
0
                return MsgValueError;
4535
0
            }
4536
0
            // Sentinel = 'actor'
4537
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4538
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4539
0
                return MsgValueError;
4540
0
            }
4541
0
            (msg__).EndRead(iter__, (msg__).type());
4542
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4543
0
                FatalError("Transition error");
4544
0
                return MsgValueError;
4545
0
            }
4546
0
            actor = AllocPPrintingParent();
4547
0
            if ((!(actor))) {
4548
0
                NS_WARNING("Error constructing actor PPrintingParent");
4549
0
                return MsgValueError;
4550
0
            }
4551
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
4552
0
            (mManagedPPrintingParent).PutEntry(actor);
4553
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
4554
0
4555
0
            if ((!(RecvPPrintingConstructor(actor)))) {
4556
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4557
0
                // Error handled in mozilla::ipc::IPCResult
4558
0
                return MsgProcessingError;
4559
0
            }
4560
0
4561
0
            return MsgProcessed;
4562
0
        }
4563
0
    case PContent::Msg_PChildToParentStreamConstructor__ID:
4564
0
        {
4565
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4566
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4567
0
            }
4568
0
            AUTO_PROFILER_LABEL("PContent::Msg_PChildToParentStreamConstructor", OTHER);
4569
0
4570
0
            PickleIterator iter__(msg__);
4571
0
            ActorHandle handle__;
4572
0
            PChildToParentStreamParent* actor;
4573
0
4574
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
4575
0
                FatalError("Error deserializing 'ActorHandle'");
4576
0
                return MsgValueError;
4577
0
            }
4578
0
            // Sentinel = 'actor'
4579
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4580
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4581
0
                return MsgValueError;
4582
0
            }
4583
0
            (msg__).EndRead(iter__, (msg__).type());
4584
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4585
0
                FatalError("Transition error");
4586
0
                return MsgValueError;
4587
0
            }
4588
0
            actor = AllocPChildToParentStreamParent();
4589
0
            if ((!(actor))) {
4590
0
                NS_WARNING("Error constructing actor PChildToParentStreamParent");
4591
0
                return MsgValueError;
4592
0
            }
4593
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
4594
0
            (mManagedPChildToParentStreamParent).PutEntry(actor);
4595
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
4596
0
4597
0
            if ((!(RecvPChildToParentStreamConstructor(actor)))) {
4598
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4599
0
                // Error handled in mozilla::ipc::IPCResult
4600
0
                return MsgProcessingError;
4601
0
            }
4602
0
4603
0
            return MsgProcessed;
4604
0
        }
4605
0
    case PContent::Msg_PSpeechSynthesisConstructor__ID:
4606
0
        {
4607
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4608
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4609
0
            }
4610
0
            AUTO_PROFILER_LABEL("PContent::Msg_PSpeechSynthesisConstructor", OTHER);
4611
0
4612
0
            PickleIterator iter__(msg__);
4613
0
            ActorHandle handle__;
4614
0
            PSpeechSynthesisParent* actor;
4615
0
4616
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
4617
0
                FatalError("Error deserializing 'ActorHandle'");
4618
0
                return MsgValueError;
4619
0
            }
4620
0
            // Sentinel = 'actor'
4621
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4622
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4623
0
                return MsgValueError;
4624
0
            }
4625
0
            (msg__).EndRead(iter__, (msg__).type());
4626
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4627
0
                FatalError("Transition error");
4628
0
                return MsgValueError;
4629
0
            }
4630
0
            actor = AllocPSpeechSynthesisParent();
4631
0
            if ((!(actor))) {
4632
0
                NS_WARNING("Error constructing actor PSpeechSynthesisParent");
4633
0
                return MsgValueError;
4634
0
            }
4635
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
4636
0
            (mManagedPSpeechSynthesisParent).PutEntry(actor);
4637
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
4638
0
4639
0
            if ((!(RecvPSpeechSynthesisConstructor(actor)))) {
4640
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4641
0
                // Error handled in mozilla::ipc::IPCResult
4642
0
                return MsgProcessingError;
4643
0
            }
4644
0
4645
0
            return MsgProcessed;
4646
0
        }
4647
0
    case PContent::Msg_PMediaConstructor__ID:
4648
0
        {
4649
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4650
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4651
0
            }
4652
0
            AUTO_PROFILER_LABEL("PContent::Msg_PMediaConstructor", OTHER);
4653
0
4654
0
            PickleIterator iter__(msg__);
4655
0
            ActorHandle handle__;
4656
0
            PMediaParent* actor;
4657
0
4658
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
4659
0
                FatalError("Error deserializing 'ActorHandle'");
4660
0
                return MsgValueError;
4661
0
            }
4662
0
            // Sentinel = 'actor'
4663
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4664
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4665
0
                return MsgValueError;
4666
0
            }
4667
0
            (msg__).EndRead(iter__, (msg__).type());
4668
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4669
0
                FatalError("Transition error");
4670
0
                return MsgValueError;
4671
0
            }
4672
0
            actor = AllocPMediaParent();
4673
0
            if ((!(actor))) {
4674
0
                NS_WARNING("Error constructing actor PMediaParent");
4675
0
                return MsgValueError;
4676
0
            }
4677
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
4678
0
            (mManagedPMediaParent).PutEntry(actor);
4679
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
4680
0
4681
0
            if ((!(RecvPMediaConstructor(actor)))) {
4682
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4683
0
                // Error handled in mozilla::ipc::IPCResult
4684
0
                return MsgProcessingError;
4685
0
            }
4686
0
4687
0
            return MsgProcessed;
4688
0
        }
4689
0
    case PContent::Msg_PWebrtcGlobalConstructor__ID:
4690
0
        {
4691
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4692
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4693
0
            }
4694
0
            AUTO_PROFILER_LABEL("PContent::Msg_PWebrtcGlobalConstructor", OTHER);
4695
0
4696
0
            PickleIterator iter__(msg__);
4697
0
            ActorHandle handle__;
4698
0
            PWebrtcGlobalParent* actor;
4699
0
4700
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
4701
0
                FatalError("Error deserializing 'ActorHandle'");
4702
0
                return MsgValueError;
4703
0
            }
4704
0
            // Sentinel = 'actor'
4705
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4706
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4707
0
                return MsgValueError;
4708
0
            }
4709
0
            (msg__).EndRead(iter__, (msg__).type());
4710
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4711
0
                FatalError("Transition error");
4712
0
                return MsgValueError;
4713
0
            }
4714
0
            actor = AllocPWebrtcGlobalParent();
4715
0
            if ((!(actor))) {
4716
0
                NS_WARNING("Error constructing actor PWebrtcGlobalParent");
4717
0
                return MsgValueError;
4718
0
            }
4719
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
4720
0
            (mManagedPWebrtcGlobalParent).PutEntry(actor);
4721
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
4722
0
4723
0
            if ((!(RecvPWebrtcGlobalConstructor(actor)))) {
4724
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4725
0
                // Error handled in mozilla::ipc::IPCResult
4726
0
                return MsgProcessingError;
4727
0
            }
4728
0
4729
0
            return MsgProcessed;
4730
0
        }
4731
0
    case PContent::Msg_PPresentationConstructor__ID:
4732
0
        {
4733
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4734
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4735
0
            }
4736
0
            AUTO_PROFILER_LABEL("PContent::Msg_PPresentationConstructor", OTHER);
4737
0
4738
0
            PickleIterator iter__(msg__);
4739
0
            ActorHandle handle__;
4740
0
            PPresentationParent* actor;
4741
0
4742
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
4743
0
                FatalError("Error deserializing 'ActorHandle'");
4744
0
                return MsgValueError;
4745
0
            }
4746
0
            // Sentinel = 'actor'
4747
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4748
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4749
0
                return MsgValueError;
4750
0
            }
4751
0
            (msg__).EndRead(iter__, (msg__).type());
4752
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4753
0
                FatalError("Transition error");
4754
0
                return MsgValueError;
4755
0
            }
4756
0
            actor = AllocPPresentationParent();
4757
0
            if ((!(actor))) {
4758
0
                NS_WARNING("Error constructing actor PPresentationParent");
4759
0
                return MsgValueError;
4760
0
            }
4761
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
4762
0
            (mManagedPPresentationParent).PutEntry(actor);
4763
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
4764
0
4765
0
            if ((!(RecvPPresentationConstructor(actor)))) {
4766
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4767
0
                // Error handled in mozilla::ipc::IPCResult
4768
0
                return MsgProcessingError;
4769
0
            }
4770
0
4771
0
            return MsgProcessed;
4772
0
        }
4773
0
    case PContent::Msg_CreateAudioIPCConnection__ID:
4774
0
        {
4775
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4776
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4777
0
            }
4778
0
            AUTO_PROFILER_LABEL("PContent::Msg_CreateAudioIPCConnection", OTHER);
4779
0
4780
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4781
0
                FatalError("Transition error");
4782
0
                return MsgValueError;
4783
0
            }
4784
0
            int32_t id__ = MSG_ROUTING_CONTROL;
4785
0
4786
0
            int32_t seqno__ = (msg__).seqno();
4787
0
            WeakPtr<PContentParent> self__ = this;
4788
0
            CreateAudioIPCConnectionResolver resolver = [this, self__, id__, seqno__](const FileDescriptor& aParam) {
4789
0
                if ((!(self__))) {
4790
0
                    NS_WARNING("Not resolving response because actor is dead.");
4791
0
                    return;
4792
0
                }
4793
0
                if ((mLivenessState) == (mozilla::ipc::LivenessState::Dead)) {
4794
0
                    NS_WARNING("Not resolving response because actor is destroyed.");
4795
0
                    return;
4796
0
                }
4797
0
                bool resolve__ = true;
4798
0
                FileDescriptor fd;
4799
0
                fd = std::move(aParam);
4800
0
                IPC::Message* reply__ = PContent::Reply_CreateAudioIPCConnection(id__);
4801
0
                WriteIPDLParam(reply__, self__, resolve__);
4802
0
                // Sentinel = 'resolve__'
4803
0
                (reply__)->WriteSentinel(3997392463);
4804
0
                WriteIPDLParam(reply__, self__, fd);
4805
0
                // Sentinel = 'fd'
4806
0
                (reply__)->WriteSentinel(628535764);
4807
0
                (reply__)->set_seqno(seqno__);
4808
0
4809
0
                if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4810
0
                    mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
4811
0
                }
4812
0
                bool sendok__ = (GetIPCChannel())->Send(reply__);
4813
0
                if ((!(sendok__))) {
4814
0
                    NS_WARNING("Error sending reply");
4815
0
                }
4816
0
            };
4817
0
            if ((!(RecvCreateAudioIPCConnection(std::move(resolver))))) {
4818
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4819
0
                // Error handled in mozilla::ipc::IPCResult
4820
0
                return MsgProcessingError;
4821
0
            }
4822
0
4823
0
            return MsgProcessed;
4824
0
        }
4825
0
    case PContent::Msg_PURLClassifierLocalConstructor__ID:
4826
0
        {
4827
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4828
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4829
0
            }
4830
0
            AUTO_PROFILER_LABEL("PContent::Msg_PURLClassifierLocalConstructor", OTHER);
4831
0
4832
0
            PickleIterator iter__(msg__);
4833
0
            ActorHandle handle__;
4834
0
            PURLClassifierLocalParent* actor;
4835
0
            URIParams uri;
4836
0
            nsCString tables;
4837
0
4838
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
4839
0
                FatalError("Error deserializing 'ActorHandle'");
4840
0
                return MsgValueError;
4841
0
            }
4842
0
            // Sentinel = 'actor'
4843
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4844
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4845
0
                return MsgValueError;
4846
0
            }
4847
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(uri)))))) {
4848
0
                FatalError("Error deserializing 'URIParams'");
4849
0
                return MsgValueError;
4850
0
            }
4851
0
            // Sentinel = 'uri'
4852
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
4853
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
4854
0
                return MsgValueError;
4855
0
            }
4856
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(tables)))))) {
4857
0
                FatalError("Error deserializing 'nsCString'");
4858
0
                return MsgValueError;
4859
0
            }
4860
0
            // Sentinel = 'tables'
4861
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1212380705)))) {
4862
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
4863
0
                return MsgValueError;
4864
0
            }
4865
0
            (msg__).EndRead(iter__, (msg__).type());
4866
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4867
0
                FatalError("Transition error");
4868
0
                return MsgValueError;
4869
0
            }
4870
0
            actor = AllocPURLClassifierLocalParent(uri, tables);
4871
0
            if ((!(actor))) {
4872
0
                NS_WARNING("Error constructing actor PURLClassifierLocalParent");
4873
0
                return MsgValueError;
4874
0
            }
4875
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
4876
0
            (mManagedPURLClassifierLocalParent).PutEntry(actor);
4877
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
4878
0
4879
0
            if ((!(RecvPURLClassifierLocalConstructor(actor, uri, tables)))) {
4880
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4881
0
                // Error handled in mozilla::ipc::IPCResult
4882
0
                return MsgProcessingError;
4883
0
            }
4884
0
4885
0
            return MsgProcessed;
4886
0
        }
4887
0
    case PContent::Msg_PLoginReputationConstructor__ID:
4888
0
        {
4889
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4890
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4891
0
            }
4892
0
            AUTO_PROFILER_LABEL("PContent::Msg_PLoginReputationConstructor", OTHER);
4893
0
4894
0
            PickleIterator iter__(msg__);
4895
0
            ActorHandle handle__;
4896
0
            PLoginReputationParent* actor;
4897
0
            URIParams formURI;
4898
0
4899
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
4900
0
                FatalError("Error deserializing 'ActorHandle'");
4901
0
                return MsgValueError;
4902
0
            }
4903
0
            // Sentinel = 'actor'
4904
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
4905
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
4906
0
                return MsgValueError;
4907
0
            }
4908
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(formURI)))))) {
4909
0
                FatalError("Error deserializing 'URIParams'");
4910
0
                return MsgValueError;
4911
0
            }
4912
0
            // Sentinel = 'formURI'
4913
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 333511311)))) {
4914
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
4915
0
                return MsgValueError;
4916
0
            }
4917
0
            (msg__).EndRead(iter__, (msg__).type());
4918
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4919
0
                FatalError("Transition error");
4920
0
                return MsgValueError;
4921
0
            }
4922
0
            actor = AllocPLoginReputationParent(formURI);
4923
0
            if ((!(actor))) {
4924
0
                NS_WARNING("Error constructing actor PLoginReputationParent");
4925
0
                return MsgValueError;
4926
0
            }
4927
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
4928
0
            (mManagedPLoginReputationParent).PutEntry(actor);
4929
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
4930
0
4931
0
            if ((!(RecvPLoginReputationConstructor(actor, formURI)))) {
4932
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4933
0
                // Error handled in mozilla::ipc::IPCResult
4934
0
                return MsgProcessingError;
4935
0
            }
4936
0
4937
0
            return MsgProcessed;
4938
0
        }
4939
0
    case PContent::Msg_StartVisitedQuery__ID:
4940
0
        {
4941
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4942
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4943
0
            }
4944
0
            AUTO_PROFILER_LABEL("PContent::Msg_StartVisitedQuery", OTHER);
4945
0
4946
0
            PickleIterator iter__(msg__);
4947
0
            URIParams uri;
4948
0
4949
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(uri)))))) {
4950
0
                FatalError("Error deserializing 'URIParams'");
4951
0
                return MsgValueError;
4952
0
            }
4953
0
            // Sentinel = 'uri'
4954
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
4955
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
4956
0
                return MsgValueError;
4957
0
            }
4958
0
            (msg__).EndRead(iter__, (msg__).type());
4959
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
4960
0
                FatalError("Transition error");
4961
0
                return MsgValueError;
4962
0
            }
4963
0
            if ((!(RecvStartVisitedQuery(uri)))) {
4964
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
4965
0
                // Error handled in mozilla::ipc::IPCResult
4966
0
                return MsgProcessingError;
4967
0
            }
4968
0
4969
0
            return MsgProcessed;
4970
0
        }
4971
0
    case PContent::Msg_VisitURI__ID:
4972
0
        {
4973
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
4974
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
4975
0
            }
4976
0
            AUTO_PROFILER_LABEL("PContent::Msg_VisitURI", OTHER);
4977
0
4978
0
            PickleIterator iter__(msg__);
4979
0
            URIParams uri;
4980
0
            OptionalURIParams referrer;
4981
0
            uint32_t flags;
4982
0
4983
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(uri)))))) {
4984
0
                FatalError("Error deserializing 'URIParams'");
4985
0
                return MsgValueError;
4986
0
            }
4987
0
            // Sentinel = 'uri'
4988
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
4989
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
4990
0
                return MsgValueError;
4991
0
            }
4992
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(referrer)))))) {
4993
0
                FatalError("Error deserializing 'OptionalURIParams'");
4994
0
                return MsgValueError;
4995
0
            }
4996
0
            // Sentinel = 'referrer'
4997
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3770987113)))) {
4998
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
4999
0
                return MsgValueError;
5000
0
            }
5001
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(flags)))))) {
5002
0
                FatalError("Error deserializing 'uint32_t'");
5003
0
                return MsgValueError;
5004
0
            }
5005
0
            // Sentinel = 'flags'
5006
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2550519284)))) {
5007
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
5008
0
                return MsgValueError;
5009
0
            }
5010
0
            (msg__).EndRead(iter__, (msg__).type());
5011
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5012
0
                FatalError("Transition error");
5013
0
                return MsgValueError;
5014
0
            }
5015
0
            if ((!(RecvVisitURI(uri, referrer, flags)))) {
5016
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5017
0
                // Error handled in mozilla::ipc::IPCResult
5018
0
                return MsgProcessingError;
5019
0
            }
5020
0
5021
0
            return MsgProcessed;
5022
0
        }
5023
0
    case PContent::Msg_SetURITitle__ID:
5024
0
        {
5025
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5026
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5027
0
            }
5028
0
            AUTO_PROFILER_LABEL("PContent::Msg_SetURITitle", OTHER);
5029
0
5030
0
            PickleIterator iter__(msg__);
5031
0
            URIParams uri;
5032
0
            nsString title;
5033
0
5034
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(uri)))))) {
5035
0
                FatalError("Error deserializing 'URIParams'");
5036
0
                return MsgValueError;
5037
0
            }
5038
0
            // Sentinel = 'uri'
5039
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
5040
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
5041
0
                return MsgValueError;
5042
0
            }
5043
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(title)))))) {
5044
0
                FatalError("Error deserializing 'nsString'");
5045
0
                return MsgValueError;
5046
0
            }
5047
0
            // Sentinel = 'title'
5048
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4272139303)))) {
5049
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
5050
0
                return MsgValueError;
5051
0
            }
5052
0
            (msg__).EndRead(iter__, (msg__).type());
5053
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5054
0
                FatalError("Transition error");
5055
0
                return MsgValueError;
5056
0
            }
5057
0
            if ((!(RecvSetURITitle(uri, title)))) {
5058
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5059
0
                // Error handled in mozilla::ipc::IPCResult
5060
0
                return MsgProcessingError;
5061
0
            }
5062
0
5063
0
            return MsgProcessed;
5064
0
        }
5065
0
    case PContent::Msg_LoadURIExternal__ID:
5066
0
        {
5067
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5068
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5069
0
            }
5070
0
            AUTO_PROFILER_LABEL("PContent::Msg_LoadURIExternal", OTHER);
5071
0
5072
0
            PickleIterator iter__(msg__);
5073
0
            URIParams uri;
5074
0
            PBrowserParent* windowContext;
5075
0
5076
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(uri)))))) {
5077
0
                FatalError("Error deserializing 'URIParams'");
5078
0
                return MsgValueError;
5079
0
            }
5080
0
            // Sentinel = 'uri'
5081
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
5082
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
5083
0
                return MsgValueError;
5084
0
            }
5085
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(windowContext)))))) {
5086
0
                FatalError("Error deserializing 'PBrowserParent'");
5087
0
                return MsgValueError;
5088
0
            }
5089
0
            if ((!((*((&(windowContext))))))) {
5090
0
                FatalError("Error deserializing 'PBrowserParent'");
5091
0
                return MsgValueError;
5092
0
            }
5093
0
            // Sentinel = 'windowContext'
5094
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3429612728)))) {
5095
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserParent'");
5096
0
                return MsgValueError;
5097
0
            }
5098
0
            (msg__).EndRead(iter__, (msg__).type());
5099
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5100
0
                FatalError("Transition error");
5101
0
                return MsgValueError;
5102
0
            }
5103
0
            if ((!(RecvLoadURIExternal(uri, windowContext)))) {
5104
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5105
0
                // Error handled in mozilla::ipc::IPCResult
5106
0
                return MsgProcessingError;
5107
0
            }
5108
0
5109
0
            return MsgProcessed;
5110
0
        }
5111
0
    case PContent::Msg_ExtProtocolChannelConnectParent__ID:
5112
0
        {
5113
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5114
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5115
0
            }
5116
0
            AUTO_PROFILER_LABEL("PContent::Msg_ExtProtocolChannelConnectParent", OTHER);
5117
0
5118
0
            PickleIterator iter__(msg__);
5119
0
            uint32_t registrarId;
5120
0
5121
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(registrarId)))))) {
5122
0
                FatalError("Error deserializing 'uint32_t'");
5123
0
                return MsgValueError;
5124
0
            }
5125
0
            // Sentinel = 'registrarId'
5126
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3202787989)))) {
5127
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
5128
0
                return MsgValueError;
5129
0
            }
5130
0
            (msg__).EndRead(iter__, (msg__).type());
5131
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5132
0
                FatalError("Transition error");
5133
0
                return MsgValueError;
5134
0
            }
5135
0
            if ((!(RecvExtProtocolChannelConnectParent(registrarId)))) {
5136
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5137
0
                // Error handled in mozilla::ipc::IPCResult
5138
0
                return MsgProcessingError;
5139
0
            }
5140
0
5141
0
            return MsgProcessed;
5142
0
        }
5143
0
    case PContent::Msg_ShowAlert__ID:
5144
0
        {
5145
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5146
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5147
0
            }
5148
0
            AUTO_PROFILER_LABEL("PContent::Msg_ShowAlert", OTHER);
5149
0
5150
0
            PickleIterator iter__(msg__);
5151
0
            RefPtr<nsIAlertNotification> alert;
5152
0
5153
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(alert)))))) {
5154
0
                FatalError("Error deserializing 'RefPtr'");
5155
0
                return MsgValueError;
5156
0
            }
5157
0
            // Sentinel = 'alert'
5158
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3087341007)))) {
5159
0
                mozilla::ipc::SentinelReadError("Error deserializing 'RefPtr'");
5160
0
                return MsgValueError;
5161
0
            }
5162
0
            (msg__).EndRead(iter__, (msg__).type());
5163
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5164
0
                FatalError("Transition error");
5165
0
                return MsgValueError;
5166
0
            }
5167
0
            if ((!(RecvShowAlert(alert)))) {
5168
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5169
0
                // Error handled in mozilla::ipc::IPCResult
5170
0
                return MsgProcessingError;
5171
0
            }
5172
0
5173
0
            return MsgProcessed;
5174
0
        }
5175
0
    case PContent::Msg_CloseAlert__ID:
5176
0
        {
5177
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5178
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5179
0
            }
5180
0
            AUTO_PROFILER_LABEL("PContent::Msg_CloseAlert", OTHER);
5181
0
5182
0
            PickleIterator iter__(msg__);
5183
0
            nsString name;
5184
0
            Principal principal;
5185
0
5186
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(name)))))) {
5187
0
                FatalError("Error deserializing 'nsString'");
5188
0
                return MsgValueError;
5189
0
            }
5190
0
            // Sentinel = 'name'
5191
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 15034981)))) {
5192
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
5193
0
                return MsgValueError;
5194
0
            }
5195
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) {
5196
0
                FatalError("Error deserializing 'Principal'");
5197
0
                return MsgValueError;
5198
0
            }
5199
0
            // Sentinel = 'principal'
5200
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
5201
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
5202
0
                return MsgValueError;
5203
0
            }
5204
0
            (msg__).EndRead(iter__, (msg__).type());
5205
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5206
0
                FatalError("Transition error");
5207
0
                return MsgValueError;
5208
0
            }
5209
0
            if ((!(RecvCloseAlert(name, principal)))) {
5210
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5211
0
                // Error handled in mozilla::ipc::IPCResult
5212
0
                return MsgProcessingError;
5213
0
            }
5214
0
5215
0
            return MsgProcessed;
5216
0
        }
5217
0
    case PContent::Msg_DisableNotifications__ID:
5218
0
        {
5219
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5220
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5221
0
            }
5222
0
            AUTO_PROFILER_LABEL("PContent::Msg_DisableNotifications", OTHER);
5223
0
5224
0
            PickleIterator iter__(msg__);
5225
0
            Principal principal;
5226
0
5227
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) {
5228
0
                FatalError("Error deserializing 'Principal'");
5229
0
                return MsgValueError;
5230
0
            }
5231
0
            // Sentinel = 'principal'
5232
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
5233
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
5234
0
                return MsgValueError;
5235
0
            }
5236
0
            (msg__).EndRead(iter__, (msg__).type());
5237
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5238
0
                FatalError("Transition error");
5239
0
                return MsgValueError;
5240
0
            }
5241
0
            if ((!(RecvDisableNotifications(principal)))) {
5242
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5243
0
                // Error handled in mozilla::ipc::IPCResult
5244
0
                return MsgProcessingError;
5245
0
            }
5246
0
5247
0
            return MsgProcessed;
5248
0
        }
5249
0
    case PContent::Msg_OpenNotificationSettings__ID:
5250
0
        {
5251
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5252
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5253
0
            }
5254
0
            AUTO_PROFILER_LABEL("PContent::Msg_OpenNotificationSettings", OTHER);
5255
0
5256
0
            PickleIterator iter__(msg__);
5257
0
            Principal principal;
5258
0
5259
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) {
5260
0
                FatalError("Error deserializing 'Principal'");
5261
0
                return MsgValueError;
5262
0
            }
5263
0
            // Sentinel = 'principal'
5264
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
5265
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
5266
0
                return MsgValueError;
5267
0
            }
5268
0
            (msg__).EndRead(iter__, (msg__).type());
5269
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5270
0
                FatalError("Transition error");
5271
0
                return MsgValueError;
5272
0
            }
5273
0
            if ((!(RecvOpenNotificationSettings(principal)))) {
5274
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5275
0
                // Error handled in mozilla::ipc::IPCResult
5276
0
                return MsgProcessingError;
5277
0
            }
5278
0
5279
0
            return MsgProcessed;
5280
0
        }
5281
0
    case PContent::Msg_PPSMContentDownloaderConstructor__ID:
5282
0
        {
5283
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5284
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5285
0
            }
5286
0
            AUTO_PROFILER_LABEL("PContent::Msg_PPSMContentDownloaderConstructor", OTHER);
5287
0
5288
0
            PickleIterator iter__(msg__);
5289
0
            ActorHandle handle__;
5290
0
            PPSMContentDownloaderParent* actor;
5291
0
            uint32_t aCertType;
5292
0
5293
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
5294
0
                FatalError("Error deserializing 'ActorHandle'");
5295
0
                return MsgValueError;
5296
0
            }
5297
0
            // Sentinel = 'actor'
5298
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
5299
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
5300
0
                return MsgValueError;
5301
0
            }
5302
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCertType)))))) {
5303
0
                FatalError("Error deserializing 'uint32_t'");
5304
0
                return MsgValueError;
5305
0
            }
5306
0
            // Sentinel = 'aCertType'
5307
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 919891650)))) {
5308
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
5309
0
                return MsgValueError;
5310
0
            }
5311
0
            (msg__).EndRead(iter__, (msg__).type());
5312
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5313
0
                FatalError("Transition error");
5314
0
                return MsgValueError;
5315
0
            }
5316
0
            actor = AllocPPSMContentDownloaderParent(aCertType);
5317
0
            if ((!(actor))) {
5318
0
                NS_WARNING("Error constructing actor PPSMContentDownloaderParent");
5319
0
                return MsgValueError;
5320
0
            }
5321
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
5322
0
            (mManagedPPSMContentDownloaderParent).PutEntry(actor);
5323
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
5324
0
5325
0
            if ((!(RecvPPSMContentDownloaderConstructor(actor, aCertType)))) {
5326
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5327
0
                // Error handled in mozilla::ipc::IPCResult
5328
0
                return MsgProcessingError;
5329
0
            }
5330
0
5331
0
            return MsgProcessed;
5332
0
        }
5333
0
    case PContent::Msg_PExternalHelperAppConstructor__ID:
5334
0
        {
5335
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5336
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5337
0
            }
5338
0
            AUTO_PROFILER_LABEL("PContent::Msg_PExternalHelperAppConstructor", OTHER);
5339
0
5340
0
            PickleIterator iter__(msg__);
5341
0
            ActorHandle handle__;
5342
0
            PExternalHelperAppParent* actor;
5343
0
            OptionalURIParams uri;
5344
0
            nsCString aMimeContentType;
5345
0
            nsCString aContentDisposition;
5346
0
            uint32_t aContentDispositionHint;
5347
0
            nsString aContentDispositionFilename;
5348
0
            bool aForceSave;
5349
0
            int64_t aContentLength;
5350
0
            bool aWasFileChannel;
5351
0
            OptionalURIParams aReferrer;
5352
0
            PBrowserParent* aBrowser;
5353
0
5354
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
5355
0
                FatalError("Error deserializing 'ActorHandle'");
5356
0
                return MsgValueError;
5357
0
            }
5358
0
            // Sentinel = 'actor'
5359
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
5360
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
5361
0
                return MsgValueError;
5362
0
            }
5363
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(uri)))))) {
5364
0
                FatalError("Error deserializing 'OptionalURIParams'");
5365
0
                return MsgValueError;
5366
0
            }
5367
0
            // Sentinel = 'uri'
5368
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
5369
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
5370
0
                return MsgValueError;
5371
0
            }
5372
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aMimeContentType)))))) {
5373
0
                FatalError("Error deserializing 'nsCString'");
5374
0
                return MsgValueError;
5375
0
            }
5376
0
            // Sentinel = 'aMimeContentType'
5377
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1001170972)))) {
5378
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
5379
0
                return MsgValueError;
5380
0
            }
5381
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aContentDisposition)))))) {
5382
0
                FatalError("Error deserializing 'nsCString'");
5383
0
                return MsgValueError;
5384
0
            }
5385
0
            // Sentinel = 'aContentDisposition'
5386
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2499070154)))) {
5387
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
5388
0
                return MsgValueError;
5389
0
            }
5390
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aContentDispositionHint)))))) {
5391
0
                FatalError("Error deserializing 'uint32_t'");
5392
0
                return MsgValueError;
5393
0
            }
5394
0
            // Sentinel = 'aContentDispositionHint'
5395
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4044281289)))) {
5396
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
5397
0
                return MsgValueError;
5398
0
            }
5399
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aContentDispositionFilename)))))) {
5400
0
                FatalError("Error deserializing 'nsString'");
5401
0
                return MsgValueError;
5402
0
            }
5403
0
            // Sentinel = 'aContentDispositionFilename'
5404
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3976510585)))) {
5405
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
5406
0
                return MsgValueError;
5407
0
            }
5408
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aForceSave)))))) {
5409
0
                FatalError("Error deserializing 'bool'");
5410
0
                return MsgValueError;
5411
0
            }
5412
0
            // Sentinel = 'aForceSave'
5413
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1729926259)))) {
5414
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5415
0
                return MsgValueError;
5416
0
            }
5417
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aContentLength)))))) {
5418
0
                FatalError("Error deserializing 'int64_t'");
5419
0
                return MsgValueError;
5420
0
            }
5421
0
            // Sentinel = 'aContentLength'
5422
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 773059686)))) {
5423
0
                mozilla::ipc::SentinelReadError("Error deserializing 'int64_t'");
5424
0
                return MsgValueError;
5425
0
            }
5426
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aWasFileChannel)))))) {
5427
0
                FatalError("Error deserializing 'bool'");
5428
0
                return MsgValueError;
5429
0
            }
5430
0
            // Sentinel = 'aWasFileChannel'
5431
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2398731776)))) {
5432
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5433
0
                return MsgValueError;
5434
0
            }
5435
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aReferrer)))))) {
5436
0
                FatalError("Error deserializing 'OptionalURIParams'");
5437
0
                return MsgValueError;
5438
0
            }
5439
0
            // Sentinel = 'aReferrer'
5440
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1461587361)))) {
5441
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
5442
0
                return MsgValueError;
5443
0
            }
5444
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aBrowser)))))) {
5445
0
                FatalError("Error deserializing 'PBrowserParent'");
5446
0
                return MsgValueError;
5447
0
            }
5448
0
            // Sentinel = 'aBrowser'
5449
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3086016059)))) {
5450
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserParent'");
5451
0
                return MsgValueError;
5452
0
            }
5453
0
            (msg__).EndRead(iter__, (msg__).type());
5454
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5455
0
                FatalError("Transition error");
5456
0
                return MsgValueError;
5457
0
            }
5458
0
            actor = AllocPExternalHelperAppParent(uri, aMimeContentType, aContentDisposition, aContentDispositionHint, aContentDispositionFilename, aForceSave, aContentLength, aWasFileChannel, aReferrer, aBrowser);
5459
0
            if ((!(actor))) {
5460
0
                NS_WARNING("Error constructing actor PExternalHelperAppParent");
5461
0
                return MsgValueError;
5462
0
            }
5463
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
5464
0
            (mManagedPExternalHelperAppParent).PutEntry(actor);
5465
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
5466
0
5467
0
            if ((!(RecvPExternalHelperAppConstructor(actor, uri, aMimeContentType, aContentDisposition, aContentDispositionHint, aContentDispositionFilename, aForceSave, aContentLength, aWasFileChannel, aReferrer, aBrowser)))) {
5468
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5469
0
                // Error handled in mozilla::ipc::IPCResult
5470
0
                return MsgProcessingError;
5471
0
            }
5472
0
5473
0
            return MsgProcessed;
5474
0
        }
5475
0
    case PContent::Msg_PHandlerServiceConstructor__ID:
5476
0
        {
5477
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5478
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5479
0
            }
5480
0
            AUTO_PROFILER_LABEL("PContent::Msg_PHandlerServiceConstructor", OTHER);
5481
0
5482
0
            PickleIterator iter__(msg__);
5483
0
            ActorHandle handle__;
5484
0
            PHandlerServiceParent* actor;
5485
0
5486
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
5487
0
                FatalError("Error deserializing 'ActorHandle'");
5488
0
                return MsgValueError;
5489
0
            }
5490
0
            // Sentinel = 'actor'
5491
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
5492
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
5493
0
                return MsgValueError;
5494
0
            }
5495
0
            (msg__).EndRead(iter__, (msg__).type());
5496
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5497
0
                FatalError("Transition error");
5498
0
                return MsgValueError;
5499
0
            }
5500
0
            actor = AllocPHandlerServiceParent();
5501
0
            if ((!(actor))) {
5502
0
                NS_WARNING("Error constructing actor PHandlerServiceParent");
5503
0
                return MsgValueError;
5504
0
            }
5505
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
5506
0
            (mManagedPHandlerServiceParent).PutEntry(actor);
5507
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
5508
0
5509
0
            if ((!(RecvPHandlerServiceConstructor(actor)))) {
5510
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5511
0
                // Error handled in mozilla::ipc::IPCResult
5512
0
                return MsgProcessingError;
5513
0
            }
5514
0
5515
0
            return MsgProcessed;
5516
0
        }
5517
0
    case PContent::Msg_AddGeolocationListener__ID:
5518
0
        {
5519
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5520
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5521
0
            }
5522
0
            AUTO_PROFILER_LABEL("PContent::Msg_AddGeolocationListener", OTHER);
5523
0
5524
0
            PickleIterator iter__(msg__);
5525
0
            Principal principal;
5526
0
            bool highAccuracy;
5527
0
5528
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) {
5529
0
                FatalError("Error deserializing 'Principal'");
5530
0
                return MsgValueError;
5531
0
            }
5532
0
            // Sentinel = 'principal'
5533
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
5534
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
5535
0
                return MsgValueError;
5536
0
            }
5537
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(highAccuracy)))))) {
5538
0
                FatalError("Error deserializing 'bool'");
5539
0
                return MsgValueError;
5540
0
            }
5541
0
            // Sentinel = 'highAccuracy'
5542
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 369486639)))) {
5543
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5544
0
                return MsgValueError;
5545
0
            }
5546
0
            (msg__).EndRead(iter__, (msg__).type());
5547
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5548
0
                FatalError("Transition error");
5549
0
                return MsgValueError;
5550
0
            }
5551
0
            if ((!(RecvAddGeolocationListener(principal, highAccuracy)))) {
5552
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5553
0
                // Error handled in mozilla::ipc::IPCResult
5554
0
                return MsgProcessingError;
5555
0
            }
5556
0
5557
0
            return MsgProcessed;
5558
0
        }
5559
0
    case PContent::Msg_RemoveGeolocationListener__ID:
5560
0
        {
5561
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5562
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5563
0
            }
5564
0
            AUTO_PROFILER_LABEL("PContent::Msg_RemoveGeolocationListener", OTHER);
5565
0
5566
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5567
0
                FatalError("Transition error");
5568
0
                return MsgValueError;
5569
0
            }
5570
0
            if ((!(RecvRemoveGeolocationListener()))) {
5571
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5572
0
                // Error handled in mozilla::ipc::IPCResult
5573
0
                return MsgProcessingError;
5574
0
            }
5575
0
5576
0
            return MsgProcessed;
5577
0
        }
5578
0
    case PContent::Msg_SetGeolocationHigherAccuracy__ID:
5579
0
        {
5580
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5581
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5582
0
            }
5583
0
            AUTO_PROFILER_LABEL("PContent::Msg_SetGeolocationHigherAccuracy", OTHER);
5584
0
5585
0
            PickleIterator iter__(msg__);
5586
0
            bool enable;
5587
0
5588
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(enable)))))) {
5589
0
                FatalError("Error deserializing 'bool'");
5590
0
                return MsgValueError;
5591
0
            }
5592
0
            // Sentinel = 'enable'
5593
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 399314243)))) {
5594
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5595
0
                return MsgValueError;
5596
0
            }
5597
0
            (msg__).EndRead(iter__, (msg__).type());
5598
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5599
0
                FatalError("Transition error");
5600
0
                return MsgValueError;
5601
0
            }
5602
0
            if ((!(RecvSetGeolocationHigherAccuracy(enable)))) {
5603
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5604
0
                // Error handled in mozilla::ipc::IPCResult
5605
0
                return MsgProcessingError;
5606
0
            }
5607
0
5608
0
            return MsgProcessed;
5609
0
        }
5610
0
    case PContent::Msg_ConsoleMessage__ID:
5611
0
        {
5612
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5613
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5614
0
            }
5615
0
            AUTO_PROFILER_LABEL("PContent::Msg_ConsoleMessage", OTHER);
5616
0
5617
0
            PickleIterator iter__(msg__);
5618
0
            nsString message;
5619
0
5620
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(message)))))) {
5621
0
                FatalError("Error deserializing 'nsString'");
5622
0
                return MsgValueError;
5623
0
            }
5624
0
            // Sentinel = 'message'
5625
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1366108954)))) {
5626
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
5627
0
                return MsgValueError;
5628
0
            }
5629
0
            (msg__).EndRead(iter__, (msg__).type());
5630
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5631
0
                FatalError("Transition error");
5632
0
                return MsgValueError;
5633
0
            }
5634
0
            if ((!(RecvConsoleMessage(message)))) {
5635
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5636
0
                // Error handled in mozilla::ipc::IPCResult
5637
0
                return MsgProcessingError;
5638
0
            }
5639
0
5640
0
            return MsgProcessed;
5641
0
        }
5642
0
    case PContent::Msg_ScriptError__ID:
5643
0
        {
5644
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5645
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5646
0
            }
5647
0
            AUTO_PROFILER_LABEL("PContent::Msg_ScriptError", OTHER);
5648
0
5649
0
            PickleIterator iter__(msg__);
5650
0
            nsString message;
5651
0
            nsString sourceName;
5652
0
            nsString sourceLine;
5653
0
            uint32_t lineNumber;
5654
0
            uint32_t colNumber;
5655
0
            uint32_t flags;
5656
0
            nsCString category;
5657
0
            bool privateWindow;
5658
0
5659
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(message)))))) {
5660
0
                FatalError("Error deserializing 'nsString'");
5661
0
                return MsgValueError;
5662
0
            }
5663
0
            // Sentinel = 'message'
5664
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1366108954)))) {
5665
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
5666
0
                return MsgValueError;
5667
0
            }
5668
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(sourceName)))))) {
5669
0
                FatalError("Error deserializing 'nsString'");
5670
0
                return MsgValueError;
5671
0
            }
5672
0
            // Sentinel = 'sourceName'
5673
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 725837832)))) {
5674
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
5675
0
                return MsgValueError;
5676
0
            }
5677
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(sourceLine)))))) {
5678
0
                FatalError("Error deserializing 'nsString'");
5679
0
                return MsgValueError;
5680
0
            }
5681
0
            // Sentinel = 'sourceLine'
5682
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2099440551)))) {
5683
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
5684
0
                return MsgValueError;
5685
0
            }
5686
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(lineNumber)))))) {
5687
0
                FatalError("Error deserializing 'uint32_t'");
5688
0
                return MsgValueError;
5689
0
            }
5690
0
            // Sentinel = 'lineNumber'
5691
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1005376855)))) {
5692
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
5693
0
                return MsgValueError;
5694
0
            }
5695
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(colNumber)))))) {
5696
0
                FatalError("Error deserializing 'uint32_t'");
5697
0
                return MsgValueError;
5698
0
            }
5699
0
            // Sentinel = 'colNumber'
5700
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1714268980)))) {
5701
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
5702
0
                return MsgValueError;
5703
0
            }
5704
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(flags)))))) {
5705
0
                FatalError("Error deserializing 'uint32_t'");
5706
0
                return MsgValueError;
5707
0
            }
5708
0
            // Sentinel = 'flags'
5709
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2550519284)))) {
5710
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
5711
0
                return MsgValueError;
5712
0
            }
5713
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(category)))))) {
5714
0
                FatalError("Error deserializing 'nsCString'");
5715
0
                return MsgValueError;
5716
0
            }
5717
0
            // Sentinel = 'category'
5718
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1962932896)))) {
5719
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
5720
0
                return MsgValueError;
5721
0
            }
5722
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(privateWindow)))))) {
5723
0
                FatalError("Error deserializing 'bool'");
5724
0
                return MsgValueError;
5725
0
            }
5726
0
            // Sentinel = 'privateWindow'
5727
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3677713676)))) {
5728
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5729
0
                return MsgValueError;
5730
0
            }
5731
0
            (msg__).EndRead(iter__, (msg__).type());
5732
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5733
0
                FatalError("Transition error");
5734
0
                return MsgValueError;
5735
0
            }
5736
0
            if ((!(RecvScriptError(message, sourceName, sourceLine, lineNumber, colNumber, flags, category, privateWindow)))) {
5737
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5738
0
                // Error handled in mozilla::ipc::IPCResult
5739
0
                return MsgProcessingError;
5740
0
            }
5741
0
5742
0
            return MsgProcessed;
5743
0
        }
5744
0
    case PContent::Msg_ScriptErrorWithStack__ID:
5745
0
        {
5746
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5747
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5748
0
            }
5749
0
            AUTO_PROFILER_LABEL("PContent::Msg_ScriptErrorWithStack", OTHER);
5750
0
5751
0
            PickleIterator iter__(msg__);
5752
0
            nsString message;
5753
0
            nsString sourceName;
5754
0
            nsString sourceLine;
5755
0
            uint32_t lineNumber;
5756
0
            uint32_t colNumber;
5757
0
            uint32_t flags;
5758
0
            nsCString category;
5759
0
            bool privateWindow;
5760
0
            ClonedMessageData stack;
5761
0
5762
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(message)))))) {
5763
0
                FatalError("Error deserializing 'nsString'");
5764
0
                return MsgValueError;
5765
0
            }
5766
0
            // Sentinel = 'message'
5767
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1366108954)))) {
5768
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
5769
0
                return MsgValueError;
5770
0
            }
5771
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(sourceName)))))) {
5772
0
                FatalError("Error deserializing 'nsString'");
5773
0
                return MsgValueError;
5774
0
            }
5775
0
            // Sentinel = 'sourceName'
5776
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 725837832)))) {
5777
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
5778
0
                return MsgValueError;
5779
0
            }
5780
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(sourceLine)))))) {
5781
0
                FatalError("Error deserializing 'nsString'");
5782
0
                return MsgValueError;
5783
0
            }
5784
0
            // Sentinel = 'sourceLine'
5785
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2099440551)))) {
5786
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
5787
0
                return MsgValueError;
5788
0
            }
5789
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(lineNumber)))))) {
5790
0
                FatalError("Error deserializing 'uint32_t'");
5791
0
                return MsgValueError;
5792
0
            }
5793
0
            // Sentinel = 'lineNumber'
5794
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1005376855)))) {
5795
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
5796
0
                return MsgValueError;
5797
0
            }
5798
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(colNumber)))))) {
5799
0
                FatalError("Error deserializing 'uint32_t'");
5800
0
                return MsgValueError;
5801
0
            }
5802
0
            // Sentinel = 'colNumber'
5803
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1714268980)))) {
5804
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
5805
0
                return MsgValueError;
5806
0
            }
5807
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(flags)))))) {
5808
0
                FatalError("Error deserializing 'uint32_t'");
5809
0
                return MsgValueError;
5810
0
            }
5811
0
            // Sentinel = 'flags'
5812
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2550519284)))) {
5813
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
5814
0
                return MsgValueError;
5815
0
            }
5816
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(category)))))) {
5817
0
                FatalError("Error deserializing 'nsCString'");
5818
0
                return MsgValueError;
5819
0
            }
5820
0
            // Sentinel = 'category'
5821
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1962932896)))) {
5822
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
5823
0
                return MsgValueError;
5824
0
            }
5825
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(privateWindow)))))) {
5826
0
                FatalError("Error deserializing 'bool'");
5827
0
                return MsgValueError;
5828
0
            }
5829
0
            // Sentinel = 'privateWindow'
5830
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3677713676)))) {
5831
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5832
0
                return MsgValueError;
5833
0
            }
5834
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(stack)))))) {
5835
0
                FatalError("Error deserializing 'ClonedMessageData'");
5836
0
                return MsgValueError;
5837
0
            }
5838
0
            // Sentinel = 'stack'
5839
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2105644509)))) {
5840
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ClonedMessageData'");
5841
0
                return MsgValueError;
5842
0
            }
5843
0
            (msg__).EndRead(iter__, (msg__).type());
5844
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5845
0
                FatalError("Transition error");
5846
0
                return MsgValueError;
5847
0
            }
5848
0
            if ((!(RecvScriptErrorWithStack(message, sourceName, sourceLine, lineNumber, colNumber, flags, category, privateWindow, stack)))) {
5849
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5850
0
                // Error handled in mozilla::ipc::IPCResult
5851
0
                return MsgProcessingError;
5852
0
            }
5853
0
5854
0
            return MsgProcessed;
5855
0
        }
5856
0
    case PContent::Msg_SetClipboard__ID:
5857
0
        {
5858
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5859
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5860
0
            }
5861
0
            AUTO_PROFILER_LABEL("PContent::Msg_SetClipboard", OTHER);
5862
0
5863
0
            PickleIterator iter__(msg__);
5864
0
            IPCDataTransfer aDataTransfer;
5865
0
            bool aIsPrivateData;
5866
0
            Principal aRequestingPrincipal;
5867
0
            uint32_t aContentPolicyType;
5868
0
            int32_t aWhichClipboard;
5869
0
5870
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aDataTransfer)))))) {
5871
0
                FatalError("Error deserializing 'IPCDataTransfer'");
5872
0
                return MsgValueError;
5873
0
            }
5874
0
            // Sentinel = 'aDataTransfer'
5875
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 234514541)))) {
5876
0
                mozilla::ipc::SentinelReadError("Error deserializing 'IPCDataTransfer'");
5877
0
                return MsgValueError;
5878
0
            }
5879
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aIsPrivateData)))))) {
5880
0
                FatalError("Error deserializing 'bool'");
5881
0
                return MsgValueError;
5882
0
            }
5883
0
            // Sentinel = 'aIsPrivateData'
5884
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1857969960)))) {
5885
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
5886
0
                return MsgValueError;
5887
0
            }
5888
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aRequestingPrincipal)))))) {
5889
0
                FatalError("Error deserializing 'Principal'");
5890
0
                return MsgValueError;
5891
0
            }
5892
0
            // Sentinel = 'aRequestingPrincipal'
5893
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2772545910)))) {
5894
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
5895
0
                return MsgValueError;
5896
0
            }
5897
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aContentPolicyType)))))) {
5898
0
                FatalError("Error deserializing 'uint32_t'");
5899
0
                return MsgValueError;
5900
0
            }
5901
0
            // Sentinel = 'aContentPolicyType'
5902
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2302108504)))) {
5903
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
5904
0
                return MsgValueError;
5905
0
            }
5906
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aWhichClipboard)))))) {
5907
0
                FatalError("Error deserializing 'int32_t'");
5908
0
                return MsgValueError;
5909
0
            }
5910
0
            // Sentinel = 'aWhichClipboard'
5911
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4216338969)))) {
5912
0
                mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
5913
0
                return MsgValueError;
5914
0
            }
5915
0
            (msg__).EndRead(iter__, (msg__).type());
5916
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5917
0
                FatalError("Transition error");
5918
0
                return MsgValueError;
5919
0
            }
5920
0
            if ((!(RecvSetClipboard(aDataTransfer, aIsPrivateData, aRequestingPrincipal, aContentPolicyType, aWhichClipboard)))) {
5921
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5922
0
                // Error handled in mozilla::ipc::IPCResult
5923
0
                return MsgProcessingError;
5924
0
            }
5925
0
5926
0
            return MsgProcessed;
5927
0
        }
5928
0
    case PContent::Msg_EmptyClipboard__ID:
5929
0
        {
5930
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5931
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5932
0
            }
5933
0
            AUTO_PROFILER_LABEL("PContent::Msg_EmptyClipboard", OTHER);
5934
0
5935
0
            PickleIterator iter__(msg__);
5936
0
            int32_t aWhichClipboard;
5937
0
5938
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aWhichClipboard)))))) {
5939
0
                FatalError("Error deserializing 'int32_t'");
5940
0
                return MsgValueError;
5941
0
            }
5942
0
            // Sentinel = 'aWhichClipboard'
5943
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4216338969)))) {
5944
0
                mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
5945
0
                return MsgValueError;
5946
0
            }
5947
0
            (msg__).EndRead(iter__, (msg__).type());
5948
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5949
0
                FatalError("Transition error");
5950
0
                return MsgValueError;
5951
0
            }
5952
0
            if ((!(RecvEmptyClipboard(aWhichClipboard)))) {
5953
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5954
0
                // Error handled in mozilla::ipc::IPCResult
5955
0
                return MsgProcessingError;
5956
0
            }
5957
0
5958
0
            return MsgProcessed;
5959
0
        }
5960
0
    case PContent::Msg_PlaySound__ID:
5961
0
        {
5962
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5963
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5964
0
            }
5965
0
            AUTO_PROFILER_LABEL("PContent::Msg_PlaySound", OTHER);
5966
0
5967
0
            PickleIterator iter__(msg__);
5968
0
            URIParams aURL;
5969
0
5970
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aURL)))))) {
5971
0
                FatalError("Error deserializing 'URIParams'");
5972
0
                return MsgValueError;
5973
0
            }
5974
0
            // Sentinel = 'aURL'
5975
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2075506328)))) {
5976
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
5977
0
                return MsgValueError;
5978
0
            }
5979
0
            (msg__).EndRead(iter__, (msg__).type());
5980
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
5981
0
                FatalError("Transition error");
5982
0
                return MsgValueError;
5983
0
            }
5984
0
            if ((!(RecvPlaySound(aURL)))) {
5985
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
5986
0
                // Error handled in mozilla::ipc::IPCResult
5987
0
                return MsgProcessingError;
5988
0
            }
5989
0
5990
0
            return MsgProcessed;
5991
0
        }
5992
0
    case PContent::Msg_Beep__ID:
5993
0
        {
5994
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
5995
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
5996
0
            }
5997
0
            AUTO_PROFILER_LABEL("PContent::Msg_Beep", OTHER);
5998
0
5999
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6000
0
                FatalError("Transition error");
6001
0
                return MsgValueError;
6002
0
            }
6003
0
            if ((!(RecvBeep()))) {
6004
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6005
0
                // Error handled in mozilla::ipc::IPCResult
6006
0
                return MsgProcessingError;
6007
0
            }
6008
0
6009
0
            return MsgProcessed;
6010
0
        }
6011
0
    case PContent::Msg_PlayEventSound__ID:
6012
0
        {
6013
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6014
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6015
0
            }
6016
0
            AUTO_PROFILER_LABEL("PContent::Msg_PlayEventSound", OTHER);
6017
0
6018
0
            PickleIterator iter__(msg__);
6019
0
            uint32_t aEventId;
6020
0
6021
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEventId)))))) {
6022
0
                FatalError("Error deserializing 'uint32_t'");
6023
0
                return MsgValueError;
6024
0
            }
6025
0
            // Sentinel = 'aEventId'
6026
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3092164244)))) {
6027
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
6028
0
                return MsgValueError;
6029
0
            }
6030
0
            (msg__).EndRead(iter__, (msg__).type());
6031
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6032
0
                FatalError("Transition error");
6033
0
                return MsgValueError;
6034
0
            }
6035
0
            if ((!(RecvPlayEventSound(aEventId)))) {
6036
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6037
0
                // Error handled in mozilla::ipc::IPCResult
6038
0
                return MsgProcessingError;
6039
0
            }
6040
0
6041
0
            return MsgProcessed;
6042
0
        }
6043
0
    case PContent::Msg_PrivateDocShellsExist__ID:
6044
0
        {
6045
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6046
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6047
0
            }
6048
0
            AUTO_PROFILER_LABEL("PContent::Msg_PrivateDocShellsExist", OTHER);
6049
0
6050
0
            PickleIterator iter__(msg__);
6051
0
            bool aExist;
6052
0
6053
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aExist)))))) {
6054
0
                FatalError("Error deserializing 'bool'");
6055
0
                return MsgValueError;
6056
0
            }
6057
0
            // Sentinel = 'aExist'
6058
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1481080944)))) {
6059
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
6060
0
                return MsgValueError;
6061
0
            }
6062
0
            (msg__).EndRead(iter__, (msg__).type());
6063
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6064
0
                FatalError("Transition error");
6065
0
                return MsgValueError;
6066
0
            }
6067
0
            if ((!(RecvPrivateDocShellsExist(aExist)))) {
6068
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6069
0
                // Error handled in mozilla::ipc::IPCResult
6070
0
                return MsgProcessingError;
6071
0
            }
6072
0
6073
0
            return MsgProcessed;
6074
0
        }
6075
0
    case PContent::Msg_FirstIdle__ID:
6076
0
        {
6077
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6078
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6079
0
            }
6080
0
            AUTO_PROFILER_LABEL("PContent::Msg_FirstIdle", OTHER);
6081
0
6082
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6083
0
                FatalError("Transition error");
6084
0
                return MsgValueError;
6085
0
            }
6086
0
            if ((!(RecvFirstIdle()))) {
6087
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6088
0
                // Error handled in mozilla::ipc::IPCResult
6089
0
                return MsgProcessingError;
6090
0
            }
6091
0
6092
0
            return MsgProcessed;
6093
0
        }
6094
0
    case PContent::Msg_DeviceReset__ID:
6095
0
        {
6096
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6097
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6098
0
            }
6099
0
            AUTO_PROFILER_LABEL("PContent::Msg_DeviceReset", OTHER);
6100
0
6101
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6102
0
                FatalError("Transition error");
6103
0
                return MsgValueError;
6104
0
            }
6105
0
            if ((!(RecvDeviceReset()))) {
6106
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6107
0
                // Error handled in mozilla::ipc::IPCResult
6108
0
                return MsgProcessingError;
6109
0
            }
6110
0
6111
0
            return MsgProcessed;
6112
0
        }
6113
0
    case PContent::Msg_CopyFavicon__ID:
6114
0
        {
6115
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6116
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6117
0
            }
6118
0
            AUTO_PROFILER_LABEL("PContent::Msg_CopyFavicon", OTHER);
6119
0
6120
0
            PickleIterator iter__(msg__);
6121
0
            URIParams oldURI;
6122
0
            URIParams newURI;
6123
0
            Principal aLoadingPrincipal;
6124
0
            bool isPrivate;
6125
0
6126
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(oldURI)))))) {
6127
0
                FatalError("Error deserializing 'URIParams'");
6128
0
                return MsgValueError;
6129
0
            }
6130
0
            // Sentinel = 'oldURI'
6131
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 90428473)))) {
6132
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
6133
0
                return MsgValueError;
6134
0
            }
6135
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(newURI)))))) {
6136
0
                FatalError("Error deserializing 'URIParams'");
6137
0
                return MsgValueError;
6138
0
            }
6139
0
            // Sentinel = 'newURI'
6140
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1179970086)))) {
6141
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
6142
0
                return MsgValueError;
6143
0
            }
6144
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aLoadingPrincipal)))))) {
6145
0
                FatalError("Error deserializing 'Principal'");
6146
0
                return MsgValueError;
6147
0
            }
6148
0
            // Sentinel = 'aLoadingPrincipal'
6149
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4178989650)))) {
6150
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
6151
0
                return MsgValueError;
6152
0
            }
6153
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(isPrivate)))))) {
6154
0
                FatalError("Error deserializing 'bool'");
6155
0
                return MsgValueError;
6156
0
            }
6157
0
            // Sentinel = 'isPrivate'
6158
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4033294520)))) {
6159
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
6160
0
                return MsgValueError;
6161
0
            }
6162
0
            (msg__).EndRead(iter__, (msg__).type());
6163
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6164
0
                FatalError("Transition error");
6165
0
                return MsgValueError;
6166
0
            }
6167
0
            if ((!(RecvCopyFavicon(oldURI, newURI, aLoadingPrincipal, isPrivate)))) {
6168
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6169
0
                // Error handled in mozilla::ipc::IPCResult
6170
0
                return MsgProcessingError;
6171
0
            }
6172
0
6173
0
            return MsgProcessed;
6174
0
        }
6175
0
    case PContent::Msg_DeallocateLayerTreeId__ID:
6176
0
        {
6177
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6178
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6179
0
            }
6180
0
            AUTO_PROFILER_LABEL("PContent::Msg_DeallocateLayerTreeId", OTHER);
6181
0
6182
0
            PickleIterator iter__(msg__);
6183
0
            ContentParentId cpId;
6184
0
            LayersId id;
6185
0
6186
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cpId)))))) {
6187
0
                FatalError("Error deserializing 'ContentParentId'");
6188
0
                return MsgValueError;
6189
0
            }
6190
0
            // Sentinel = 'cpId'
6191
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2452595622)))) {
6192
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ContentParentId'");
6193
0
                return MsgValueError;
6194
0
            }
6195
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(id)))))) {
6196
0
                FatalError("Error deserializing 'LayersId'");
6197
0
                return MsgValueError;
6198
0
            }
6199
0
            // Sentinel = 'id'
6200
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) {
6201
0
                mozilla::ipc::SentinelReadError("Error deserializing 'LayersId'");
6202
0
                return MsgValueError;
6203
0
            }
6204
0
            (msg__).EndRead(iter__, (msg__).type());
6205
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6206
0
                FatalError("Transition error");
6207
0
                return MsgValueError;
6208
0
            }
6209
0
            if ((!(RecvDeallocateLayerTreeId(cpId, id)))) {
6210
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6211
0
                // Error handled in mozilla::ipc::IPCResult
6212
0
                return MsgProcessingError;
6213
0
            }
6214
0
6215
0
            return MsgProcessed;
6216
0
        }
6217
0
    case PContent::Msg_RecordingDeviceEvents__ID:
6218
0
        {
6219
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6220
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6221
0
            }
6222
0
            AUTO_PROFILER_LABEL("PContent::Msg_RecordingDeviceEvents", OTHER);
6223
0
6224
0
            PickleIterator iter__(msg__);
6225
0
            nsString recordingStatus;
6226
0
            nsString pageURL;
6227
0
            bool isAudio;
6228
0
            bool isVideo;
6229
0
6230
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(recordingStatus)))))) {
6231
0
                FatalError("Error deserializing 'nsString'");
6232
0
                return MsgValueError;
6233
0
            }
6234
0
            // Sentinel = 'recordingStatus'
6235
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2504558560)))) {
6236
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
6237
0
                return MsgValueError;
6238
0
            }
6239
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(pageURL)))))) {
6240
0
                FatalError("Error deserializing 'nsString'");
6241
0
                return MsgValueError;
6242
0
            }
6243
0
            // Sentinel = 'pageURL'
6244
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3373102899)))) {
6245
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
6246
0
                return MsgValueError;
6247
0
            }
6248
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(isAudio)))))) {
6249
0
                FatalError("Error deserializing 'bool'");
6250
0
                return MsgValueError;
6251
0
            }
6252
0
            // Sentinel = 'isAudio'
6253
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3505326961)))) {
6254
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
6255
0
                return MsgValueError;
6256
0
            }
6257
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(isVideo)))))) {
6258
0
                FatalError("Error deserializing 'bool'");
6259
0
                return MsgValueError;
6260
0
            }
6261
0
            // Sentinel = 'isVideo'
6262
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1688400398)))) {
6263
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
6264
0
                return MsgValueError;
6265
0
            }
6266
0
            (msg__).EndRead(iter__, (msg__).type());
6267
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6268
0
                FatalError("Transition error");
6269
0
                return MsgValueError;
6270
0
            }
6271
0
            if ((!(RecvRecordingDeviceEvents(recordingStatus, pageURL, isAudio, isVideo)))) {
6272
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6273
0
                // Error handled in mozilla::ipc::IPCResult
6274
0
                return MsgProcessingError;
6275
0
            }
6276
0
6277
0
            return MsgProcessed;
6278
0
        }
6279
0
    case PContent::Msg_GraphicsError__ID:
6280
0
        {
6281
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6282
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6283
0
            }
6284
0
            AUTO_PROFILER_LABEL("PContent::Msg_GraphicsError", OTHER);
6285
0
6286
0
            PickleIterator iter__(msg__);
6287
0
            nsCString aError;
6288
0
6289
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aError)))))) {
6290
0
                FatalError("Error deserializing 'nsCString'");
6291
0
                return MsgValueError;
6292
0
            }
6293
0
            // Sentinel = 'aError'
6294
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3299422495)))) {
6295
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
6296
0
                return MsgValueError;
6297
0
            }
6298
0
            (msg__).EndRead(iter__, (msg__).type());
6299
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6300
0
                FatalError("Transition error");
6301
0
                return MsgValueError;
6302
0
            }
6303
0
            if ((!(RecvGraphicsError(aError)))) {
6304
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6305
0
                // Error handled in mozilla::ipc::IPCResult
6306
0
                return MsgProcessingError;
6307
0
            }
6308
0
6309
0
            return MsgProcessed;
6310
0
        }
6311
0
    case PContent::Msg_AddIdleObserver__ID:
6312
0
        {
6313
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6314
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6315
0
            }
6316
0
            AUTO_PROFILER_LABEL("PContent::Msg_AddIdleObserver", OTHER);
6317
0
6318
0
            PickleIterator iter__(msg__);
6319
0
            uint64_t observerId;
6320
0
            uint32_t idleTimeInS;
6321
0
6322
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(observerId)))))) {
6323
0
                FatalError("Error deserializing 'uint64_t'");
6324
0
                return MsgValueError;
6325
0
            }
6326
0
            // Sentinel = 'observerId'
6327
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2815026823)))) {
6328
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
6329
0
                return MsgValueError;
6330
0
            }
6331
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(idleTimeInS)))))) {
6332
0
                FatalError("Error deserializing 'uint32_t'");
6333
0
                return MsgValueError;
6334
0
            }
6335
0
            // Sentinel = 'idleTimeInS'
6336
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2527371272)))) {
6337
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
6338
0
                return MsgValueError;
6339
0
            }
6340
0
            (msg__).EndRead(iter__, (msg__).type());
6341
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6342
0
                FatalError("Transition error");
6343
0
                return MsgValueError;
6344
0
            }
6345
0
            if ((!(RecvAddIdleObserver(observerId, idleTimeInS)))) {
6346
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6347
0
                // Error handled in mozilla::ipc::IPCResult
6348
0
                return MsgProcessingError;
6349
0
            }
6350
0
6351
0
            return MsgProcessed;
6352
0
        }
6353
0
    case PContent::Msg_RemoveIdleObserver__ID:
6354
0
        {
6355
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6356
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6357
0
            }
6358
0
            AUTO_PROFILER_LABEL("PContent::Msg_RemoveIdleObserver", OTHER);
6359
0
6360
0
            PickleIterator iter__(msg__);
6361
0
            uint64_t observerId;
6362
0
            uint32_t idleTimeInS;
6363
0
6364
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(observerId)))))) {
6365
0
                FatalError("Error deserializing 'uint64_t'");
6366
0
                return MsgValueError;
6367
0
            }
6368
0
            // Sentinel = 'observerId'
6369
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2815026823)))) {
6370
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
6371
0
                return MsgValueError;
6372
0
            }
6373
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(idleTimeInS)))))) {
6374
0
                FatalError("Error deserializing 'uint32_t'");
6375
0
                return MsgValueError;
6376
0
            }
6377
0
            // Sentinel = 'idleTimeInS'
6378
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2527371272)))) {
6379
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
6380
0
                return MsgValueError;
6381
0
            }
6382
0
            (msg__).EndRead(iter__, (msg__).type());
6383
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6384
0
                FatalError("Transition error");
6385
0
                return MsgValueError;
6386
0
            }
6387
0
            if ((!(RecvRemoveIdleObserver(observerId, idleTimeInS)))) {
6388
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6389
0
                // Error handled in mozilla::ipc::IPCResult
6390
0
                return MsgProcessingError;
6391
0
            }
6392
0
6393
0
            return MsgProcessed;
6394
0
        }
6395
0
    case PContent::Msg_BackUpXResources__ID:
6396
0
        {
6397
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6398
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6399
0
            }
6400
0
            AUTO_PROFILER_LABEL("PContent::Msg_BackUpXResources", OTHER);
6401
0
6402
0
            PickleIterator iter__(msg__);
6403
0
            FileDescriptor aXSocketFd;
6404
0
6405
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aXSocketFd)))))) {
6406
0
                FatalError("Error deserializing 'FileDescriptor'");
6407
0
                return MsgValueError;
6408
0
            }
6409
0
            // Sentinel = 'aXSocketFd'
6410
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1448798316)))) {
6411
0
                mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor'");
6412
0
                return MsgValueError;
6413
0
            }
6414
0
            (msg__).EndRead(iter__, (msg__).type());
6415
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6416
0
                FatalError("Transition error");
6417
0
                return MsgValueError;
6418
0
            }
6419
0
            if ((!(RecvBackUpXResources(aXSocketFd)))) {
6420
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6421
0
                // Error handled in mozilla::ipc::IPCResult
6422
0
                return MsgProcessingError;
6423
0
            }
6424
0
6425
0
            return MsgProcessed;
6426
0
        }
6427
0
    case PContent::Msg_RequestAnonymousTemporaryFile__ID:
6428
0
        {
6429
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6430
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6431
0
            }
6432
0
            AUTO_PROFILER_LABEL("PContent::Msg_RequestAnonymousTemporaryFile", OTHER);
6433
0
6434
0
            PickleIterator iter__(msg__);
6435
0
            uint64_t aID;
6436
0
6437
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aID)))))) {
6438
0
                FatalError("Error deserializing 'uint64_t'");
6439
0
                return MsgValueError;
6440
0
            }
6441
0
            // Sentinel = 'aID'
6442
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) {
6443
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
6444
0
                return MsgValueError;
6445
0
            }
6446
0
            (msg__).EndRead(iter__, (msg__).type());
6447
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6448
0
                FatalError("Transition error");
6449
0
                return MsgValueError;
6450
0
            }
6451
0
            if ((!(RecvRequestAnonymousTemporaryFile(aID)))) {
6452
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6453
0
                // Error handled in mozilla::ipc::IPCResult
6454
0
                return MsgProcessingError;
6455
0
            }
6456
0
6457
0
            return MsgProcessed;
6458
0
        }
6459
0
    case PContent::Msg_UnregisterRemoteFrame__ID:
6460
0
        {
6461
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6462
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6463
0
            }
6464
0
            AUTO_PROFILER_LABEL("PContent::Msg_UnregisterRemoteFrame", OTHER);
6465
0
6466
0
            PickleIterator iter__(msg__);
6467
0
            TabId tabId;
6468
0
            ContentParentId cpId;
6469
0
            bool aMarkedDestroying;
6470
0
6471
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(tabId)))))) {
6472
0
                FatalError("Error deserializing 'TabId'");
6473
0
                return MsgValueError;
6474
0
            }
6475
0
            // Sentinel = 'tabId'
6476
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3419081923)))) {
6477
0
                mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
6478
0
                return MsgValueError;
6479
0
            }
6480
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cpId)))))) {
6481
0
                FatalError("Error deserializing 'ContentParentId'");
6482
0
                return MsgValueError;
6483
0
            }
6484
0
            // Sentinel = 'cpId'
6485
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2452595622)))) {
6486
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ContentParentId'");
6487
0
                return MsgValueError;
6488
0
            }
6489
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aMarkedDestroying)))))) {
6490
0
                FatalError("Error deserializing 'bool'");
6491
0
                return MsgValueError;
6492
0
            }
6493
0
            // Sentinel = 'aMarkedDestroying'
6494
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4114437722)))) {
6495
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
6496
0
                return MsgValueError;
6497
0
            }
6498
0
            (msg__).EndRead(iter__, (msg__).type());
6499
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6500
0
                FatalError("Transition error");
6501
0
                return MsgValueError;
6502
0
            }
6503
0
            if ((!(RecvUnregisterRemoteFrame(tabId, cpId, aMarkedDestroying)))) {
6504
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6505
0
                // Error handled in mozilla::ipc::IPCResult
6506
0
                return MsgProcessingError;
6507
0
            }
6508
0
6509
0
            return MsgProcessed;
6510
0
        }
6511
0
    case PContent::Msg_NotifyTabDestroying__ID:
6512
0
        {
6513
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6514
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6515
0
            }
6516
0
            AUTO_PROFILER_LABEL("PContent::Msg_NotifyTabDestroying", OTHER);
6517
0
6518
0
            PickleIterator iter__(msg__);
6519
0
            TabId tabId;
6520
0
            ContentParentId cpId;
6521
0
6522
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(tabId)))))) {
6523
0
                FatalError("Error deserializing 'TabId'");
6524
0
                return MsgValueError;
6525
0
            }
6526
0
            // Sentinel = 'tabId'
6527
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3419081923)))) {
6528
0
                mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
6529
0
                return MsgValueError;
6530
0
            }
6531
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cpId)))))) {
6532
0
                FatalError("Error deserializing 'ContentParentId'");
6533
0
                return MsgValueError;
6534
0
            }
6535
0
            // Sentinel = 'cpId'
6536
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2452595622)))) {
6537
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ContentParentId'");
6538
0
                return MsgValueError;
6539
0
            }
6540
0
            (msg__).EndRead(iter__, (msg__).type());
6541
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6542
0
                FatalError("Transition error");
6543
0
                return MsgValueError;
6544
0
            }
6545
0
            if ((!(RecvNotifyTabDestroying(tabId, cpId)))) {
6546
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6547
0
                // Error handled in mozilla::ipc::IPCResult
6548
0
                return MsgProcessingError;
6549
0
            }
6550
0
6551
0
            return MsgProcessed;
6552
0
        }
6553
0
    case PContent::Msg_POfflineCacheUpdateConstructor__ID:
6554
0
        {
6555
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6556
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6557
0
            }
6558
0
            AUTO_PROFILER_LABEL("PContent::Msg_POfflineCacheUpdateConstructor", OTHER);
6559
0
6560
0
            PickleIterator iter__(msg__);
6561
0
            ActorHandle handle__;
6562
0
            POfflineCacheUpdateParent* actor;
6563
0
            URIParams manifestURI;
6564
0
            URIParams documentURI;
6565
0
            PrincipalInfo loadingPrincipal;
6566
0
            bool stickDocument;
6567
0
6568
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
6569
0
                FatalError("Error deserializing 'ActorHandle'");
6570
0
                return MsgValueError;
6571
0
            }
6572
0
            // Sentinel = 'actor'
6573
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
6574
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
6575
0
                return MsgValueError;
6576
0
            }
6577
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(manifestURI)))))) {
6578
0
                FatalError("Error deserializing 'URIParams'");
6579
0
                return MsgValueError;
6580
0
            }
6581
0
            // Sentinel = 'manifestURI'
6582
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3261212628)))) {
6583
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
6584
0
                return MsgValueError;
6585
0
            }
6586
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(documentURI)))))) {
6587
0
                FatalError("Error deserializing 'URIParams'");
6588
0
                return MsgValueError;
6589
0
            }
6590
0
            // Sentinel = 'documentURI'
6591
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3585823520)))) {
6592
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
6593
0
                return MsgValueError;
6594
0
            }
6595
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(loadingPrincipal)))))) {
6596
0
                FatalError("Error deserializing 'PrincipalInfo'");
6597
0
                return MsgValueError;
6598
0
            }
6599
0
            // Sentinel = 'loadingPrincipal'
6600
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2000304082)))) {
6601
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo'");
6602
0
                return MsgValueError;
6603
0
            }
6604
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(stickDocument)))))) {
6605
0
                FatalError("Error deserializing 'bool'");
6606
0
                return MsgValueError;
6607
0
            }
6608
0
            // Sentinel = 'stickDocument'
6609
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2826141294)))) {
6610
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
6611
0
                return MsgValueError;
6612
0
            }
6613
0
            (msg__).EndRead(iter__, (msg__).type());
6614
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6615
0
                FatalError("Transition error");
6616
0
                return MsgValueError;
6617
0
            }
6618
0
            actor = AllocPOfflineCacheUpdateParent(manifestURI, documentURI, loadingPrincipal, stickDocument);
6619
0
            if ((!(actor))) {
6620
0
                NS_WARNING("Error constructing actor POfflineCacheUpdateParent");
6621
0
                return MsgValueError;
6622
0
            }
6623
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
6624
0
            (mManagedPOfflineCacheUpdateParent).PutEntry(actor);
6625
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
6626
0
6627
0
            if ((!(RecvPOfflineCacheUpdateConstructor(actor, manifestURI, documentURI, loadingPrincipal, stickDocument)))) {
6628
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6629
0
                // Error handled in mozilla::ipc::IPCResult
6630
0
                return MsgProcessingError;
6631
0
            }
6632
0
6633
0
            return MsgProcessed;
6634
0
        }
6635
0
    case PContent::Msg_SetOfflinePermission__ID:
6636
0
        {
6637
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6638
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6639
0
            }
6640
0
            AUTO_PROFILER_LABEL("PContent::Msg_SetOfflinePermission", OTHER);
6641
0
6642
0
            PickleIterator iter__(msg__);
6643
0
            Principal principal;
6644
0
6645
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) {
6646
0
                FatalError("Error deserializing 'Principal'");
6647
0
                return MsgValueError;
6648
0
            }
6649
0
            // Sentinel = 'principal'
6650
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
6651
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
6652
0
                return MsgValueError;
6653
0
            }
6654
0
            (msg__).EndRead(iter__, (msg__).type());
6655
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6656
0
                FatalError("Transition error");
6657
0
                return MsgValueError;
6658
0
            }
6659
0
            if ((!(RecvSetOfflinePermission(principal)))) {
6660
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6661
0
                // Error handled in mozilla::ipc::IPCResult
6662
0
                return MsgProcessingError;
6663
0
            }
6664
0
6665
0
            return MsgProcessed;
6666
0
        }
6667
0
    case PContent::Msg_FinishShutdown__ID:
6668
0
        {
6669
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6670
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6671
0
            }
6672
0
            AUTO_PROFILER_LABEL("PContent::Msg_FinishShutdown", OTHER);
6673
0
6674
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6675
0
                FatalError("Transition error");
6676
0
                return MsgValueError;
6677
0
            }
6678
0
            if ((!(RecvFinishShutdown()))) {
6679
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6680
0
                // Error handled in mozilla::ipc::IPCResult
6681
0
                return MsgProcessingError;
6682
0
            }
6683
0
6684
0
            return MsgProcessed;
6685
0
        }
6686
0
    case PContent::Msg_UpdateDropEffect__ID:
6687
0
        {
6688
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6689
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6690
0
            }
6691
0
            AUTO_PROFILER_LABEL("PContent::Msg_UpdateDropEffect", OTHER);
6692
0
6693
0
            PickleIterator iter__(msg__);
6694
0
            uint32_t aDragAction;
6695
0
            uint32_t aDropEffect;
6696
0
6697
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aDragAction)))))) {
6698
0
                FatalError("Error deserializing 'uint32_t'");
6699
0
                return MsgValueError;
6700
0
            }
6701
0
            // Sentinel = 'aDragAction'
6702
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2407569738)))) {
6703
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
6704
0
                return MsgValueError;
6705
0
            }
6706
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aDropEffect)))))) {
6707
0
                FatalError("Error deserializing 'uint32_t'");
6708
0
                return MsgValueError;
6709
0
            }
6710
0
            // Sentinel = 'aDropEffect'
6711
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4065146166)))) {
6712
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
6713
0
                return MsgValueError;
6714
0
            }
6715
0
            (msg__).EndRead(iter__, (msg__).type());
6716
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6717
0
                FatalError("Transition error");
6718
0
                return MsgValueError;
6719
0
            }
6720
0
            if ((!(RecvUpdateDropEffect(aDragAction, aDropEffect)))) {
6721
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6722
0
                // Error handled in mozilla::ipc::IPCResult
6723
0
                return MsgProcessingError;
6724
0
            }
6725
0
6726
0
            return MsgProcessed;
6727
0
        }
6728
0
    case PContent::Msg_PContentPermissionRequestConstructor__ID:
6729
0
        {
6730
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6731
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6732
0
            }
6733
0
            AUTO_PROFILER_LABEL("PContent::Msg_PContentPermissionRequestConstructor", OTHER);
6734
0
6735
0
            PickleIterator iter__(msg__);
6736
0
            ActorHandle handle__;
6737
0
            PContentPermissionRequestParent* actor;
6738
0
            nsTArray<PermissionRequest> aRequests;
6739
0
            Principal aPrincipal;
6740
0
            bool aIsHandlingUserInput;
6741
0
            TabId tabId;
6742
0
6743
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
6744
0
                FatalError("Error deserializing 'ActorHandle'");
6745
0
                return MsgValueError;
6746
0
            }
6747
0
            // Sentinel = 'actor'
6748
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
6749
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
6750
0
                return MsgValueError;
6751
0
            }
6752
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aRequests)))))) {
6753
0
                FatalError("Error deserializing 'nsTArray'");
6754
0
                return MsgValueError;
6755
0
            }
6756
0
            // Sentinel = 'aRequests'
6757
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4267960022)))) {
6758
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
6759
0
                return MsgValueError;
6760
0
            }
6761
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPrincipal)))))) {
6762
0
                FatalError("Error deserializing 'Principal'");
6763
0
                return MsgValueError;
6764
0
            }
6765
0
            // Sentinel = 'aPrincipal'
6766
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4097511)))) {
6767
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
6768
0
                return MsgValueError;
6769
0
            }
6770
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aIsHandlingUserInput)))))) {
6771
0
                FatalError("Error deserializing 'bool'");
6772
0
                return MsgValueError;
6773
0
            }
6774
0
            // Sentinel = 'aIsHandlingUserInput'
6775
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3966872117)))) {
6776
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
6777
0
                return MsgValueError;
6778
0
            }
6779
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(tabId)))))) {
6780
0
                FatalError("Error deserializing 'TabId'");
6781
0
                return MsgValueError;
6782
0
            }
6783
0
            // Sentinel = 'tabId'
6784
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3419081923)))) {
6785
0
                mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
6786
0
                return MsgValueError;
6787
0
            }
6788
0
            (msg__).EndRead(iter__, (msg__).type());
6789
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6790
0
                FatalError("Transition error");
6791
0
                return MsgValueError;
6792
0
            }
6793
0
            actor = AllocPContentPermissionRequestParent(aRequests, aPrincipal, aIsHandlingUserInput, tabId);
6794
0
            if ((!(actor))) {
6795
0
                NS_WARNING("Error constructing actor PContentPermissionRequestParent");
6796
0
                return MsgValueError;
6797
0
            }
6798
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
6799
0
            (mManagedPContentPermissionRequestParent).PutEntry(actor);
6800
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
6801
0
6802
0
            if ((!(RecvPContentPermissionRequestConstructor(actor, std::move(aRequests), aPrincipal, aIsHandlingUserInput, tabId)))) {
6803
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6804
0
                // Error handled in mozilla::ipc::IPCResult
6805
0
                return MsgProcessingError;
6806
0
            }
6807
0
6808
0
            return MsgProcessed;
6809
0
        }
6810
0
    case PContent::Msg_ShutdownProfile__ID:
6811
0
        {
6812
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6813
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6814
0
            }
6815
0
            AUTO_PROFILER_LABEL("PContent::Msg_ShutdownProfile", OTHER);
6816
0
6817
0
            PickleIterator iter__(msg__);
6818
0
            nsCString aProfile;
6819
0
6820
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aProfile)))))) {
6821
0
                FatalError("Error deserializing 'nsCString'");
6822
0
                return MsgValueError;
6823
0
            }
6824
0
            // Sentinel = 'aProfile'
6825
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3994647340)))) {
6826
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
6827
0
                return MsgValueError;
6828
0
            }
6829
0
            (msg__).EndRead(iter__, (msg__).type());
6830
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6831
0
                FatalError("Transition error");
6832
0
                return MsgValueError;
6833
0
            }
6834
0
            if ((!(RecvShutdownProfile(aProfile)))) {
6835
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
6836
0
                // Error handled in mozilla::ipc::IPCResult
6837
0
                return MsgProcessingError;
6838
0
            }
6839
0
6840
0
            return MsgProcessed;
6841
0
        }
6842
0
    case PContent::Msg_CreateWindow__ID:
6843
0
        {
6844
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
6845
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
6846
0
            }
6847
0
            AUTO_PROFILER_LABEL("PContent::Msg_CreateWindow", OTHER);
6848
0
6849
0
            PickleIterator iter__(msg__);
6850
0
            PBrowserParent* aThisTab;
6851
0
            PBrowserParent* aNewTab;
6852
0
            PRenderFrameParent* aRenderFrame;
6853
0
            uint32_t aChromeFlags;
6854
0
            bool aCalledFromJS;
6855
0
            bool aPositionSpecified;
6856
0
            bool aSizeSpecified;
6857
0
            OptionalURIParams aURIToLoad;
6858
0
            nsCString aFeatures;
6859
0
            nsCString aBaseURI;
6860
0
            float aFullZoom;
6861
0
            Principal aTriggeringPrincipal;
6862
0
            uint32_t aReferrerPolicy;
6863
0
6864
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aThisTab)))))) {
6865
0
                FatalError("Error deserializing 'PBrowserParent'");
6866
0
                return MsgValueError;
6867
0
            }
6868
0
            // Sentinel = 'aThisTab'
6869
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 607760926)))) {
6870
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserParent'");
6871
0
                return MsgValueError;
6872
0
            }
6873
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aNewTab)))))) {
6874
0
                FatalError("Error deserializing 'PBrowserParent'");
6875
0
                return MsgValueError;
6876
0
            }
6877
0
            if ((!((*((&(aNewTab))))))) {
6878
0
                FatalError("Error deserializing 'PBrowserParent'");
6879
0
                return MsgValueError;
6880
0
            }
6881
0
            // Sentinel = 'aNewTab'
6882
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2089222425)))) {
6883
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserParent'");
6884
0
                return MsgValueError;
6885
0
            }
6886
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aRenderFrame)))))) {
6887
0
                FatalError("Error deserializing 'PRenderFrameParent'");
6888
0
                return MsgValueError;
6889
0
            }
6890
0
            if ((!((*((&(aRenderFrame))))))) {
6891
0
                FatalError("Error deserializing 'PRenderFrameParent'");
6892
0
                return MsgValueError;
6893
0
            }
6894
0
            // Sentinel = 'aRenderFrame'
6895
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1469288264)))) {
6896
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PRenderFrameParent'");
6897
0
                return MsgValueError;
6898
0
            }
6899
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aChromeFlags)))))) {
6900
0
                FatalError("Error deserializing 'uint32_t'");
6901
0
                return MsgValueError;
6902
0
            }
6903
0
            // Sentinel = 'aChromeFlags'
6904
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3327922672)))) {
6905
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
6906
0
                return MsgValueError;
6907
0
            }
6908
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCalledFromJS)))))) {
6909
0
                FatalError("Error deserializing 'bool'");
6910
0
                return MsgValueError;
6911
0
            }
6912
0
            // Sentinel = 'aCalledFromJS'
6913
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1499256202)))) {
6914
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
6915
0
                return MsgValueError;
6916
0
            }
6917
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPositionSpecified)))))) {
6918
0
                FatalError("Error deserializing 'bool'");
6919
0
                return MsgValueError;
6920
0
            }
6921
0
            // Sentinel = 'aPositionSpecified'
6922
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2933421868)))) {
6923
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
6924
0
                return MsgValueError;
6925
0
            }
6926
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aSizeSpecified)))))) {
6927
0
                FatalError("Error deserializing 'bool'");
6928
0
                return MsgValueError;
6929
0
            }
6930
0
            // Sentinel = 'aSizeSpecified'
6931
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3086178338)))) {
6932
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
6933
0
                return MsgValueError;
6934
0
            }
6935
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aURIToLoad)))))) {
6936
0
                FatalError("Error deserializing 'OptionalURIParams'");
6937
0
                return MsgValueError;
6938
0
            }
6939
0
            // Sentinel = 'aURIToLoad'
6940
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4091656936)))) {
6941
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
6942
0
                return MsgValueError;
6943
0
            }
6944
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aFeatures)))))) {
6945
0
                FatalError("Error deserializing 'nsCString'");
6946
0
                return MsgValueError;
6947
0
            }
6948
0
            // Sentinel = 'aFeatures'
6949
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1001034525)))) {
6950
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
6951
0
                return MsgValueError;
6952
0
            }
6953
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aBaseURI)))))) {
6954
0
                FatalError("Error deserializing 'nsCString'");
6955
0
                return MsgValueError;
6956
0
            }
6957
0
            // Sentinel = 'aBaseURI'
6958
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2848511784)))) {
6959
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
6960
0
                return MsgValueError;
6961
0
            }
6962
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aFullZoom)))))) {
6963
0
                FatalError("Error deserializing 'float'");
6964
0
                return MsgValueError;
6965
0
            }
6966
0
            // Sentinel = 'aFullZoom'
6967
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2072210550)))) {
6968
0
                mozilla::ipc::SentinelReadError("Error deserializing 'float'");
6969
0
                return MsgValueError;
6970
0
            }
6971
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aTriggeringPrincipal)))))) {
6972
0
                FatalError("Error deserializing 'Principal'");
6973
0
                return MsgValueError;
6974
0
            }
6975
0
            // Sentinel = 'aTriggeringPrincipal'
6976
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1219575273)))) {
6977
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
6978
0
                return MsgValueError;
6979
0
            }
6980
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aReferrerPolicy)))))) {
6981
0
                FatalError("Error deserializing 'uint32_t'");
6982
0
                return MsgValueError;
6983
0
            }
6984
0
            // Sentinel = 'aReferrerPolicy'
6985
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3193013321)))) {
6986
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
6987
0
                return MsgValueError;
6988
0
            }
6989
0
            (msg__).EndRead(iter__, (msg__).type());
6990
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
6991
0
                FatalError("Transition error");
6992
0
                return MsgValueError;
6993
0
            }
6994
0
            int32_t id__ = MSG_ROUTING_CONTROL;
6995
0
6996
0
            int32_t seqno__ = (msg__).seqno();
6997
0
            WeakPtr<PContentParent> self__ = this;
6998
0
            CreateWindowResolver resolver = [this, self__, id__, seqno__](const CreatedWindowInfo& aParam) {
6999
0
                if ((!(self__))) {
7000
0
                    NS_WARNING("Not resolving response because actor is dead.");
7001
0
                    return;
7002
0
                }
7003
0
                if ((mLivenessState) == (mozilla::ipc::LivenessState::Dead)) {
7004
0
                    NS_WARNING("Not resolving response because actor is destroyed.");
7005
0
                    return;
7006
0
                }
7007
0
                bool resolve__ = true;
7008
0
                CreatedWindowInfo window;
7009
0
                window = std::move(aParam);
7010
0
                IPC::Message* reply__ = PContent::Reply_CreateWindow(id__);
7011
0
                WriteIPDLParam(reply__, self__, resolve__);
7012
0
                // Sentinel = 'resolve__'
7013
0
                (reply__)->WriteSentinel(3997392463);
7014
0
                WriteIPDLParam(reply__, self__, window);
7015
0
                // Sentinel = 'window'
7016
0
                (reply__)->WriteSentinel(3032525362);
7017
0
                (reply__)->set_seqno(seqno__);
7018
0
7019
0
                if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7020
0
                    mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
7021
0
                }
7022
0
                bool sendok__ = (GetIPCChannel())->Send(reply__);
7023
0
                if ((!(sendok__))) {
7024
0
                    NS_WARNING("Error sending reply");
7025
0
                }
7026
0
            };
7027
0
            if ((!(RecvCreateWindow(aThisTab, aNewTab, aRenderFrame, aChromeFlags, aCalledFromJS, aPositionSpecified, aSizeSpecified, aURIToLoad, aFeatures, aBaseURI, aFullZoom, aTriggeringPrincipal, aReferrerPolicy, std::move(resolver))))) {
7028
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7029
0
                // Error handled in mozilla::ipc::IPCResult
7030
0
                return MsgProcessingError;
7031
0
            }
7032
0
7033
0
            return MsgProcessed;
7034
0
        }
7035
0
    case PContent::Msg_CreateWindowInDifferentProcess__ID:
7036
0
        {
7037
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7038
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7039
0
            }
7040
0
            AUTO_PROFILER_LABEL("PContent::Msg_CreateWindowInDifferentProcess", OTHER);
7041
0
7042
0
            PickleIterator iter__(msg__);
7043
0
            PBrowserParent* aThisTab;
7044
0
            uint32_t aChromeFlags;
7045
0
            bool aCalledFromJS;
7046
0
            bool aPositionSpecified;
7047
0
            bool aSizeSpecified;
7048
0
            OptionalURIParams aURIToLoad;
7049
0
            nsCString aFeatures;
7050
0
            nsCString aBaseURI;
7051
0
            float aFullZoom;
7052
0
            nsString aName;
7053
0
            Principal aTriggeringPrincipal;
7054
0
            uint32_t aReferrerPolicy;
7055
0
7056
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aThisTab)))))) {
7057
0
                FatalError("Error deserializing 'PBrowserParent'");
7058
0
                return MsgValueError;
7059
0
            }
7060
0
            if ((!((*((&(aThisTab))))))) {
7061
0
                FatalError("Error deserializing 'PBrowserParent'");
7062
0
                return MsgValueError;
7063
0
            }
7064
0
            // Sentinel = 'aThisTab'
7065
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 607760926)))) {
7066
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserParent'");
7067
0
                return MsgValueError;
7068
0
            }
7069
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aChromeFlags)))))) {
7070
0
                FatalError("Error deserializing 'uint32_t'");
7071
0
                return MsgValueError;
7072
0
            }
7073
0
            // Sentinel = 'aChromeFlags'
7074
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3327922672)))) {
7075
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
7076
0
                return MsgValueError;
7077
0
            }
7078
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCalledFromJS)))))) {
7079
0
                FatalError("Error deserializing 'bool'");
7080
0
                return MsgValueError;
7081
0
            }
7082
0
            // Sentinel = 'aCalledFromJS'
7083
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1499256202)))) {
7084
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
7085
0
                return MsgValueError;
7086
0
            }
7087
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPositionSpecified)))))) {
7088
0
                FatalError("Error deserializing 'bool'");
7089
0
                return MsgValueError;
7090
0
            }
7091
0
            // Sentinel = 'aPositionSpecified'
7092
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2933421868)))) {
7093
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
7094
0
                return MsgValueError;
7095
0
            }
7096
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aSizeSpecified)))))) {
7097
0
                FatalError("Error deserializing 'bool'");
7098
0
                return MsgValueError;
7099
0
            }
7100
0
            // Sentinel = 'aSizeSpecified'
7101
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3086178338)))) {
7102
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
7103
0
                return MsgValueError;
7104
0
            }
7105
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aURIToLoad)))))) {
7106
0
                FatalError("Error deserializing 'OptionalURIParams'");
7107
0
                return MsgValueError;
7108
0
            }
7109
0
            // Sentinel = 'aURIToLoad'
7110
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4091656936)))) {
7111
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
7112
0
                return MsgValueError;
7113
0
            }
7114
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aFeatures)))))) {
7115
0
                FatalError("Error deserializing 'nsCString'");
7116
0
                return MsgValueError;
7117
0
            }
7118
0
            // Sentinel = 'aFeatures'
7119
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1001034525)))) {
7120
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
7121
0
                return MsgValueError;
7122
0
            }
7123
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aBaseURI)))))) {
7124
0
                FatalError("Error deserializing 'nsCString'");
7125
0
                return MsgValueError;
7126
0
            }
7127
0
            // Sentinel = 'aBaseURI'
7128
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2848511784)))) {
7129
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
7130
0
                return MsgValueError;
7131
0
            }
7132
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aFullZoom)))))) {
7133
0
                FatalError("Error deserializing 'float'");
7134
0
                return MsgValueError;
7135
0
            }
7136
0
            // Sentinel = 'aFullZoom'
7137
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2072210550)))) {
7138
0
                mozilla::ipc::SentinelReadError("Error deserializing 'float'");
7139
0
                return MsgValueError;
7140
0
            }
7141
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aName)))))) {
7142
0
                FatalError("Error deserializing 'nsString'");
7143
0
                return MsgValueError;
7144
0
            }
7145
0
            // Sentinel = 'aName'
7146
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1450162941)))) {
7147
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
7148
0
                return MsgValueError;
7149
0
            }
7150
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aTriggeringPrincipal)))))) {
7151
0
                FatalError("Error deserializing 'Principal'");
7152
0
                return MsgValueError;
7153
0
            }
7154
0
            // Sentinel = 'aTriggeringPrincipal'
7155
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1219575273)))) {
7156
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
7157
0
                return MsgValueError;
7158
0
            }
7159
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aReferrerPolicy)))))) {
7160
0
                FatalError("Error deserializing 'uint32_t'");
7161
0
                return MsgValueError;
7162
0
            }
7163
0
            // Sentinel = 'aReferrerPolicy'
7164
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3193013321)))) {
7165
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
7166
0
                return MsgValueError;
7167
0
            }
7168
0
            (msg__).EndRead(iter__, (msg__).type());
7169
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7170
0
                FatalError("Transition error");
7171
0
                return MsgValueError;
7172
0
            }
7173
0
            if ((!(RecvCreateWindowInDifferentProcess(aThisTab, aChromeFlags, aCalledFromJS, aPositionSpecified, aSizeSpecified, aURIToLoad, aFeatures, aBaseURI, aFullZoom, aName, aTriggeringPrincipal, aReferrerPolicy)))) {
7174
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7175
0
                // Error handled in mozilla::ipc::IPCResult
7176
0
                return MsgProcessingError;
7177
0
            }
7178
0
7179
0
            return MsgProcessed;
7180
0
        }
7181
0
    case PContent::Msg_NotifyBenchmarkResult__ID:
7182
0
        {
7183
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7184
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7185
0
            }
7186
0
            AUTO_PROFILER_LABEL("PContent::Msg_NotifyBenchmarkResult", OTHER);
7187
0
7188
0
            PickleIterator iter__(msg__);
7189
0
            nsString aCodecName;
7190
0
            uint32_t aDecodeFPS;
7191
0
7192
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCodecName)))))) {
7193
0
                FatalError("Error deserializing 'nsString'");
7194
0
                return MsgValueError;
7195
0
            }
7196
0
            // Sentinel = 'aCodecName'
7197
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1573682074)))) {
7198
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
7199
0
                return MsgValueError;
7200
0
            }
7201
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aDecodeFPS)))))) {
7202
0
                FatalError("Error deserializing 'uint32_t'");
7203
0
                return MsgValueError;
7204
0
            }
7205
0
            // Sentinel = 'aDecodeFPS'
7206
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2083295506)))) {
7207
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
7208
0
                return MsgValueError;
7209
0
            }
7210
0
            (msg__).EndRead(iter__, (msg__).type());
7211
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7212
0
                FatalError("Transition error");
7213
0
                return MsgValueError;
7214
0
            }
7215
0
            if ((!(RecvNotifyBenchmarkResult(aCodecName, aDecodeFPS)))) {
7216
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7217
0
                // Error handled in mozilla::ipc::IPCResult
7218
0
                return MsgProcessingError;
7219
0
            }
7220
0
7221
0
            return MsgProcessed;
7222
0
        }
7223
0
    case PContent::Msg_NotifyPushObservers__ID:
7224
0
        {
7225
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7226
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7227
0
            }
7228
0
            AUTO_PROFILER_LABEL("PContent::Msg_NotifyPushObservers", OTHER);
7229
0
7230
0
            PickleIterator iter__(msg__);
7231
0
            nsCString scope;
7232
0
            Principal principal;
7233
0
            nsString messageId;
7234
0
7235
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(scope)))))) {
7236
0
                FatalError("Error deserializing 'nsCString'");
7237
0
                return MsgValueError;
7238
0
            }
7239
0
            // Sentinel = 'scope'
7240
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2191984953)))) {
7241
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
7242
0
                return MsgValueError;
7243
0
            }
7244
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) {
7245
0
                FatalError("Error deserializing 'Principal'");
7246
0
                return MsgValueError;
7247
0
            }
7248
0
            // Sentinel = 'principal'
7249
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
7250
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
7251
0
                return MsgValueError;
7252
0
            }
7253
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(messageId)))))) {
7254
0
                FatalError("Error deserializing 'nsString'");
7255
0
                return MsgValueError;
7256
0
            }
7257
0
            // Sentinel = 'messageId'
7258
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2887269495)))) {
7259
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
7260
0
                return MsgValueError;
7261
0
            }
7262
0
            (msg__).EndRead(iter__, (msg__).type());
7263
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7264
0
                FatalError("Transition error");
7265
0
                return MsgValueError;
7266
0
            }
7267
0
            if ((!(RecvNotifyPushObservers(scope, principal, messageId)))) {
7268
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7269
0
                // Error handled in mozilla::ipc::IPCResult
7270
0
                return MsgProcessingError;
7271
0
            }
7272
0
7273
0
            return MsgProcessed;
7274
0
        }
7275
0
    case PContent::Msg_NotifyPushObserversWithData__ID:
7276
0
        {
7277
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7278
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7279
0
            }
7280
0
            AUTO_PROFILER_LABEL("PContent::Msg_NotifyPushObserversWithData", OTHER);
7281
0
7282
0
            PickleIterator iter__(msg__);
7283
0
            nsCString scope;
7284
0
            Principal principal;
7285
0
            nsString messageId;
7286
0
            nsTArray<uint8_t> data;
7287
0
7288
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(scope)))))) {
7289
0
                FatalError("Error deserializing 'nsCString'");
7290
0
                return MsgValueError;
7291
0
            }
7292
0
            // Sentinel = 'scope'
7293
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2191984953)))) {
7294
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
7295
0
                return MsgValueError;
7296
0
            }
7297
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) {
7298
0
                FatalError("Error deserializing 'Principal'");
7299
0
                return MsgValueError;
7300
0
            }
7301
0
            // Sentinel = 'principal'
7302
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
7303
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
7304
0
                return MsgValueError;
7305
0
            }
7306
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(messageId)))))) {
7307
0
                FatalError("Error deserializing 'nsString'");
7308
0
                return MsgValueError;
7309
0
            }
7310
0
            // Sentinel = 'messageId'
7311
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2887269495)))) {
7312
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
7313
0
                return MsgValueError;
7314
0
            }
7315
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(data)))))) {
7316
0
                FatalError("Error deserializing 'nsTArray'");
7317
0
                return MsgValueError;
7318
0
            }
7319
0
            // Sentinel = 'data'
7320
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 843352540)))) {
7321
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
7322
0
                return MsgValueError;
7323
0
            }
7324
0
            (msg__).EndRead(iter__, (msg__).type());
7325
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7326
0
                FatalError("Transition error");
7327
0
                return MsgValueError;
7328
0
            }
7329
0
            if ((!(RecvNotifyPushObserversWithData(scope, principal, messageId, std::move(data))))) {
7330
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7331
0
                // Error handled in mozilla::ipc::IPCResult
7332
0
                return MsgProcessingError;
7333
0
            }
7334
0
7335
0
            return MsgProcessed;
7336
0
        }
7337
0
    case PContent::Msg_NotifyPushSubscriptionChangeObservers__ID:
7338
0
        {
7339
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7340
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7341
0
            }
7342
0
            AUTO_PROFILER_LABEL("PContent::Msg_NotifyPushSubscriptionChangeObservers", OTHER);
7343
0
7344
0
            PickleIterator iter__(msg__);
7345
0
            nsCString scope;
7346
0
            Principal principal;
7347
0
7348
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(scope)))))) {
7349
0
                FatalError("Error deserializing 'nsCString'");
7350
0
                return MsgValueError;
7351
0
            }
7352
0
            // Sentinel = 'scope'
7353
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2191984953)))) {
7354
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
7355
0
                return MsgValueError;
7356
0
            }
7357
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) {
7358
0
                FatalError("Error deserializing 'Principal'");
7359
0
                return MsgValueError;
7360
0
            }
7361
0
            // Sentinel = 'principal'
7362
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
7363
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
7364
0
                return MsgValueError;
7365
0
            }
7366
0
            (msg__).EndRead(iter__, (msg__).type());
7367
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7368
0
                FatalError("Transition error");
7369
0
                return MsgValueError;
7370
0
            }
7371
0
            if ((!(RecvNotifyPushSubscriptionChangeObservers(scope, principal)))) {
7372
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7373
0
                // Error handled in mozilla::ipc::IPCResult
7374
0
                return MsgProcessingError;
7375
0
            }
7376
0
7377
0
            return MsgProcessed;
7378
0
        }
7379
0
    case PContent::Msg_GetFilesRequest__ID:
7380
0
        {
7381
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7382
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7383
0
            }
7384
0
            AUTO_PROFILER_LABEL("PContent::Msg_GetFilesRequest", OTHER);
7385
0
7386
0
            PickleIterator iter__(msg__);
7387
0
            nsID aID;
7388
0
            nsString aDirectory;
7389
0
            bool aRecursiveFlag;
7390
0
7391
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aID)))))) {
7392
0
                FatalError("Error deserializing 'nsID'");
7393
0
                return MsgValueError;
7394
0
            }
7395
0
            // Sentinel = 'aID'
7396
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) {
7397
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsID'");
7398
0
                return MsgValueError;
7399
0
            }
7400
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aDirectory)))))) {
7401
0
                FatalError("Error deserializing 'nsString'");
7402
0
                return MsgValueError;
7403
0
            }
7404
0
            // Sentinel = 'aDirectory'
7405
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 106387836)))) {
7406
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
7407
0
                return MsgValueError;
7408
0
            }
7409
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aRecursiveFlag)))))) {
7410
0
                FatalError("Error deserializing 'bool'");
7411
0
                return MsgValueError;
7412
0
            }
7413
0
            // Sentinel = 'aRecursiveFlag'
7414
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3322465491)))) {
7415
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
7416
0
                return MsgValueError;
7417
0
            }
7418
0
            (msg__).EndRead(iter__, (msg__).type());
7419
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7420
0
                FatalError("Transition error");
7421
0
                return MsgValueError;
7422
0
            }
7423
0
            if ((!(RecvGetFilesRequest(aID, aDirectory, aRecursiveFlag)))) {
7424
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7425
0
                // Error handled in mozilla::ipc::IPCResult
7426
0
                return MsgProcessingError;
7427
0
            }
7428
0
7429
0
            return MsgProcessed;
7430
0
        }
7431
0
    case PContent::Msg_DeleteGetFilesRequest__ID:
7432
0
        {
7433
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7434
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7435
0
            }
7436
0
            AUTO_PROFILER_LABEL("PContent::Msg_DeleteGetFilesRequest", OTHER);
7437
0
7438
0
            PickleIterator iter__(msg__);
7439
0
            nsID aID;
7440
0
7441
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aID)))))) {
7442
0
                FatalError("Error deserializing 'nsID'");
7443
0
                return MsgValueError;
7444
0
            }
7445
0
            // Sentinel = 'aID'
7446
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) {
7447
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsID'");
7448
0
                return MsgValueError;
7449
0
            }
7450
0
            (msg__).EndRead(iter__, (msg__).type());
7451
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7452
0
                FatalError("Transition error");
7453
0
                return MsgValueError;
7454
0
            }
7455
0
            if ((!(RecvDeleteGetFilesRequest(aID)))) {
7456
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7457
0
                // Error handled in mozilla::ipc::IPCResult
7458
0
                return MsgProcessingError;
7459
0
            }
7460
0
7461
0
            return MsgProcessed;
7462
0
        }
7463
0
    case PContent::Msg_FileCreationRequest__ID:
7464
0
        {
7465
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7466
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7467
0
            }
7468
0
            AUTO_PROFILER_LABEL("PContent::Msg_FileCreationRequest", OTHER);
7469
0
7470
0
            PickleIterator iter__(msg__);
7471
0
            nsID aID;
7472
0
            nsString aFullPath;
7473
0
            nsString aType;
7474
0
            nsString aName;
7475
0
            bool lastModifiedPassed;
7476
0
            int64_t lastModified;
7477
0
            bool aExistenceCheck;
7478
0
            bool aIsFromNsIFile;
7479
0
7480
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aID)))))) {
7481
0
                FatalError("Error deserializing 'nsID'");
7482
0
                return MsgValueError;
7483
0
            }
7484
0
            // Sentinel = 'aID'
7485
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) {
7486
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsID'");
7487
0
                return MsgValueError;
7488
0
            }
7489
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aFullPath)))))) {
7490
0
                FatalError("Error deserializing 'nsString'");
7491
0
                return MsgValueError;
7492
0
            }
7493
0
            // Sentinel = 'aFullPath'
7494
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4067018590)))) {
7495
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
7496
0
                return MsgValueError;
7497
0
            }
7498
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aType)))))) {
7499
0
                FatalError("Error deserializing 'nsString'");
7500
0
                return MsgValueError;
7501
0
            }
7502
0
            // Sentinel = 'aType'
7503
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1819585676)))) {
7504
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
7505
0
                return MsgValueError;
7506
0
            }
7507
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aName)))))) {
7508
0
                FatalError("Error deserializing 'nsString'");
7509
0
                return MsgValueError;
7510
0
            }
7511
0
            // Sentinel = 'aName'
7512
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1450162941)))) {
7513
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
7514
0
                return MsgValueError;
7515
0
            }
7516
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(lastModifiedPassed)))))) {
7517
0
                FatalError("Error deserializing 'bool'");
7518
0
                return MsgValueError;
7519
0
            }
7520
0
            // Sentinel = 'lastModifiedPassed'
7521
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3066214163)))) {
7522
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
7523
0
                return MsgValueError;
7524
0
            }
7525
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(lastModified)))))) {
7526
0
                FatalError("Error deserializing 'int64_t'");
7527
0
                return MsgValueError;
7528
0
            }
7529
0
            // Sentinel = 'lastModified'
7530
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3456113257)))) {
7531
0
                mozilla::ipc::SentinelReadError("Error deserializing 'int64_t'");
7532
0
                return MsgValueError;
7533
0
            }
7534
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aExistenceCheck)))))) {
7535
0
                FatalError("Error deserializing 'bool'");
7536
0
                return MsgValueError;
7537
0
            }
7538
0
            // Sentinel = 'aExistenceCheck'
7539
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1222718518)))) {
7540
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
7541
0
                return MsgValueError;
7542
0
            }
7543
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aIsFromNsIFile)))))) {
7544
0
                FatalError("Error deserializing 'bool'");
7545
0
                return MsgValueError;
7546
0
            }
7547
0
            // Sentinel = 'aIsFromNsIFile'
7548
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3315483341)))) {
7549
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
7550
0
                return MsgValueError;
7551
0
            }
7552
0
            (msg__).EndRead(iter__, (msg__).type());
7553
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7554
0
                FatalError("Transition error");
7555
0
                return MsgValueError;
7556
0
            }
7557
0
            if ((!(RecvFileCreationRequest(aID, aFullPath, aType, aName, lastModifiedPassed, lastModified, aExistenceCheck, aIsFromNsIFile)))) {
7558
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7559
0
                // Error handled in mozilla::ipc::IPCResult
7560
0
                return MsgProcessingError;
7561
0
            }
7562
0
7563
0
            return MsgProcessed;
7564
0
        }
7565
0
    case PContent::Msg_StoreAndBroadcastBlobURLRegistration__ID:
7566
0
        {
7567
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7568
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7569
0
            }
7570
0
            AUTO_PROFILER_LABEL("PContent::Msg_StoreAndBroadcastBlobURLRegistration", OTHER);
7571
0
7572
0
            PickleIterator iter__(msg__);
7573
0
            nsCString url;
7574
0
            IPCBlob blob;
7575
0
            Principal principal;
7576
0
7577
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(url)))))) {
7578
0
                FatalError("Error deserializing 'nsCString'");
7579
0
                return MsgValueError;
7580
0
            }
7581
0
            // Sentinel = 'url'
7582
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210600)))) {
7583
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
7584
0
                return MsgValueError;
7585
0
            }
7586
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(blob)))))) {
7587
0
                FatalError("Error deserializing 'IPCBlob'");
7588
0
                return MsgValueError;
7589
0
            }
7590
0
            // Sentinel = 'blob'
7591
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1963585077)))) {
7592
0
                mozilla::ipc::SentinelReadError("Error deserializing 'IPCBlob'");
7593
0
                return MsgValueError;
7594
0
            }
7595
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) {
7596
0
                FatalError("Error deserializing 'Principal'");
7597
0
                return MsgValueError;
7598
0
            }
7599
0
            // Sentinel = 'principal'
7600
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
7601
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
7602
0
                return MsgValueError;
7603
0
            }
7604
0
            (msg__).EndRead(iter__, (msg__).type());
7605
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7606
0
                FatalError("Transition error");
7607
0
                return MsgValueError;
7608
0
            }
7609
0
            if ((!(RecvStoreAndBroadcastBlobURLRegistration(url, blob, principal)))) {
7610
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7611
0
                // Error handled in mozilla::ipc::IPCResult
7612
0
                return MsgProcessingError;
7613
0
            }
7614
0
7615
0
            return MsgProcessed;
7616
0
        }
7617
0
    case PContent::Msg_UnstoreAndBroadcastBlobURLUnregistration__ID:
7618
0
        {
7619
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7620
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7621
0
            }
7622
0
            AUTO_PROFILER_LABEL("PContent::Msg_UnstoreAndBroadcastBlobURLUnregistration", OTHER);
7623
0
7624
0
            PickleIterator iter__(msg__);
7625
0
            nsCString url;
7626
0
7627
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(url)))))) {
7628
0
                FatalError("Error deserializing 'nsCString'");
7629
0
                return MsgValueError;
7630
0
            }
7631
0
            // Sentinel = 'url'
7632
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210600)))) {
7633
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
7634
0
                return MsgValueError;
7635
0
            }
7636
0
            (msg__).EndRead(iter__, (msg__).type());
7637
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7638
0
                FatalError("Transition error");
7639
0
                return MsgValueError;
7640
0
            }
7641
0
            if ((!(RecvUnstoreAndBroadcastBlobURLUnregistration(url)))) {
7642
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7643
0
                // Error handled in mozilla::ipc::IPCResult
7644
0
                return MsgProcessingError;
7645
0
            }
7646
0
7647
0
            return MsgProcessed;
7648
0
        }
7649
0
    case PContent::Msg_AccumulateChildHistograms__ID:
7650
0
        {
7651
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7652
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7653
0
            }
7654
0
            AUTO_PROFILER_LABEL("PContent::Msg_AccumulateChildHistograms", OTHER);
7655
0
7656
0
            PickleIterator iter__(msg__);
7657
0
            nsTArray<HistogramAccumulation> accumulations;
7658
0
7659
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(accumulations)))))) {
7660
0
                FatalError("Error deserializing 'nsTArray'");
7661
0
                return MsgValueError;
7662
0
            }
7663
0
            // Sentinel = 'accumulations'
7664
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2180708333)))) {
7665
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
7666
0
                return MsgValueError;
7667
0
            }
7668
0
            (msg__).EndRead(iter__, (msg__).type());
7669
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7670
0
                FatalError("Transition error");
7671
0
                return MsgValueError;
7672
0
            }
7673
0
            if ((!(RecvAccumulateChildHistograms(std::move(accumulations))))) {
7674
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7675
0
                // Error handled in mozilla::ipc::IPCResult
7676
0
                return MsgProcessingError;
7677
0
            }
7678
0
7679
0
            return MsgProcessed;
7680
0
        }
7681
0
    case PContent::Msg_AccumulateChildKeyedHistograms__ID:
7682
0
        {
7683
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7684
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7685
0
            }
7686
0
            AUTO_PROFILER_LABEL("PContent::Msg_AccumulateChildKeyedHistograms", OTHER);
7687
0
7688
0
            PickleIterator iter__(msg__);
7689
0
            nsTArray<KeyedHistogramAccumulation> accumulations;
7690
0
7691
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(accumulations)))))) {
7692
0
                FatalError("Error deserializing 'nsTArray'");
7693
0
                return MsgValueError;
7694
0
            }
7695
0
            // Sentinel = 'accumulations'
7696
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2180708333)))) {
7697
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
7698
0
                return MsgValueError;
7699
0
            }
7700
0
            (msg__).EndRead(iter__, (msg__).type());
7701
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7702
0
                FatalError("Transition error");
7703
0
                return MsgValueError;
7704
0
            }
7705
0
            if ((!(RecvAccumulateChildKeyedHistograms(std::move(accumulations))))) {
7706
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7707
0
                // Error handled in mozilla::ipc::IPCResult
7708
0
                return MsgProcessingError;
7709
0
            }
7710
0
7711
0
            return MsgProcessed;
7712
0
        }
7713
0
    case PContent::Msg_UpdateChildScalars__ID:
7714
0
        {
7715
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7716
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7717
0
            }
7718
0
            AUTO_PROFILER_LABEL("PContent::Msg_UpdateChildScalars", OTHER);
7719
0
7720
0
            PickleIterator iter__(msg__);
7721
0
            nsTArray<ScalarAction> updates;
7722
0
7723
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(updates)))))) {
7724
0
                FatalError("Error deserializing 'nsTArray'");
7725
0
                return MsgValueError;
7726
0
            }
7727
0
            // Sentinel = 'updates'
7728
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3737108565)))) {
7729
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
7730
0
                return MsgValueError;
7731
0
            }
7732
0
            (msg__).EndRead(iter__, (msg__).type());
7733
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7734
0
                FatalError("Transition error");
7735
0
                return MsgValueError;
7736
0
            }
7737
0
            if ((!(RecvUpdateChildScalars(std::move(updates))))) {
7738
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7739
0
                // Error handled in mozilla::ipc::IPCResult
7740
0
                return MsgProcessingError;
7741
0
            }
7742
0
7743
0
            return MsgProcessed;
7744
0
        }
7745
0
    case PContent::Msg_UpdateChildKeyedScalars__ID:
7746
0
        {
7747
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7748
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7749
0
            }
7750
0
            AUTO_PROFILER_LABEL("PContent::Msg_UpdateChildKeyedScalars", OTHER);
7751
0
7752
0
            PickleIterator iter__(msg__);
7753
0
            nsTArray<KeyedScalarAction> updates;
7754
0
7755
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(updates)))))) {
7756
0
                FatalError("Error deserializing 'nsTArray'");
7757
0
                return MsgValueError;
7758
0
            }
7759
0
            // Sentinel = 'updates'
7760
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3737108565)))) {
7761
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
7762
0
                return MsgValueError;
7763
0
            }
7764
0
            (msg__).EndRead(iter__, (msg__).type());
7765
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7766
0
                FatalError("Transition error");
7767
0
                return MsgValueError;
7768
0
            }
7769
0
            if ((!(RecvUpdateChildKeyedScalars(std::move(updates))))) {
7770
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7771
0
                // Error handled in mozilla::ipc::IPCResult
7772
0
                return MsgProcessingError;
7773
0
            }
7774
0
7775
0
            return MsgProcessed;
7776
0
        }
7777
0
    case PContent::Msg_RecordChildEvents__ID:
7778
0
        {
7779
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7780
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7781
0
            }
7782
0
            AUTO_PROFILER_LABEL("PContent::Msg_RecordChildEvents", OTHER);
7783
0
7784
0
            PickleIterator iter__(msg__);
7785
0
            nsTArray<ChildEventData> events;
7786
0
7787
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(events)))))) {
7788
0
                FatalError("Error deserializing 'nsTArray'");
7789
0
                return MsgValueError;
7790
0
            }
7791
0
            // Sentinel = 'events'
7792
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1921707453)))) {
7793
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
7794
0
                return MsgValueError;
7795
0
            }
7796
0
            (msg__).EndRead(iter__, (msg__).type());
7797
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7798
0
                FatalError("Transition error");
7799
0
                return MsgValueError;
7800
0
            }
7801
0
            if ((!(RecvRecordChildEvents(std::move(events))))) {
7802
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7803
0
                // Error handled in mozilla::ipc::IPCResult
7804
0
                return MsgProcessingError;
7805
0
            }
7806
0
7807
0
            return MsgProcessed;
7808
0
        }
7809
0
    case PContent::Msg_RecordDiscardedData__ID:
7810
0
        {
7811
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7812
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7813
0
            }
7814
0
            AUTO_PROFILER_LABEL("PContent::Msg_RecordDiscardedData", OTHER);
7815
0
7816
0
            PickleIterator iter__(msg__);
7817
0
            DiscardedData data;
7818
0
7819
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(data)))))) {
7820
0
                FatalError("Error deserializing 'DiscardedData'");
7821
0
                return MsgValueError;
7822
0
            }
7823
0
            // Sentinel = 'data'
7824
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 843352540)))) {
7825
0
                mozilla::ipc::SentinelReadError("Error deserializing 'DiscardedData'");
7826
0
                return MsgValueError;
7827
0
            }
7828
0
            (msg__).EndRead(iter__, (msg__).type());
7829
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7830
0
                FatalError("Transition error");
7831
0
                return MsgValueError;
7832
0
            }
7833
0
            if ((!(RecvRecordDiscardedData(data)))) {
7834
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7835
0
                // Error handled in mozilla::ipc::IPCResult
7836
0
                return MsgProcessingError;
7837
0
            }
7838
0
7839
0
            return MsgProcessed;
7840
0
        }
7841
0
    case PContent::Msg_A11yHandlerControl__ID:
7842
0
        {
7843
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7844
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7845
0
            }
7846
0
            AUTO_PROFILER_LABEL("PContent::Msg_A11yHandlerControl", OTHER);
7847
0
7848
0
            PickleIterator iter__(msg__);
7849
0
            uint32_t aPid;
7850
0
            IHandlerControlHolder aHandlerControl;
7851
0
7852
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPid)))))) {
7853
0
                FatalError("Error deserializing 'uint32_t'");
7854
0
                return MsgValueError;
7855
0
            }
7856
0
            // Sentinel = 'aPid'
7857
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4120646000)))) {
7858
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
7859
0
                return MsgValueError;
7860
0
            }
7861
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aHandlerControl)))))) {
7862
0
                FatalError("Error deserializing 'IHandlerControlHolder'");
7863
0
                return MsgValueError;
7864
0
            }
7865
0
            // Sentinel = 'aHandlerControl'
7866
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3719124325)))) {
7867
0
                mozilla::ipc::SentinelReadError("Error deserializing 'IHandlerControlHolder'");
7868
0
                return MsgValueError;
7869
0
            }
7870
0
            (msg__).EndRead(iter__, (msg__).type());
7871
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7872
0
                FatalError("Transition error");
7873
0
                return MsgValueError;
7874
0
            }
7875
0
            if ((!(RecvA11yHandlerControl(aPid, aHandlerControl)))) {
7876
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7877
0
                // Error handled in mozilla::ipc::IPCResult
7878
0
                return MsgProcessingError;
7879
0
            }
7880
0
7881
0
            return MsgProcessed;
7882
0
        }
7883
0
    case PContent::Msg_AddMemoryReport__ID:
7884
0
        {
7885
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7886
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7887
0
            }
7888
0
            AUTO_PROFILER_LABEL("PContent::Msg_AddMemoryReport", OTHER);
7889
0
7890
0
            PickleIterator iter__(msg__);
7891
0
            MemoryReport aReport;
7892
0
7893
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aReport)))))) {
7894
0
                FatalError("Error deserializing 'MemoryReport'");
7895
0
                return MsgValueError;
7896
0
            }
7897
0
            // Sentinel = 'aReport'
7898
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3792799576)))) {
7899
0
                mozilla::ipc::SentinelReadError("Error deserializing 'MemoryReport'");
7900
0
                return MsgValueError;
7901
0
            }
7902
0
            (msg__).EndRead(iter__, (msg__).type());
7903
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7904
0
                FatalError("Transition error");
7905
0
                return MsgValueError;
7906
0
            }
7907
0
            if ((!(RecvAddMemoryReport(aReport)))) {
7908
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7909
0
                // Error handled in mozilla::ipc::IPCResult
7910
0
                return MsgProcessingError;
7911
0
            }
7912
0
7913
0
            return MsgProcessed;
7914
0
        }
7915
0
    case PContent::Msg_FinishMemoryReport__ID:
7916
0
        {
7917
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7918
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7919
0
            }
7920
0
            AUTO_PROFILER_LABEL("PContent::Msg_FinishMemoryReport", OTHER);
7921
0
7922
0
            PickleIterator iter__(msg__);
7923
0
            uint32_t aGeneration;
7924
0
7925
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aGeneration)))))) {
7926
0
                FatalError("Error deserializing 'uint32_t'");
7927
0
                return MsgValueError;
7928
0
            }
7929
0
            // Sentinel = 'aGeneration'
7930
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2329783584)))) {
7931
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
7932
0
                return MsgValueError;
7933
0
            }
7934
0
            (msg__).EndRead(iter__, (msg__).type());
7935
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7936
0
                FatalError("Transition error");
7937
0
                return MsgValueError;
7938
0
            }
7939
0
            if ((!(RecvFinishMemoryReport(aGeneration)))) {
7940
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7941
0
                // Error handled in mozilla::ipc::IPCResult
7942
0
                return MsgProcessingError;
7943
0
            }
7944
0
7945
0
            return MsgProcessed;
7946
0
        }
7947
0
    case PContent::Msg_MaybeReloadPlugins__ID:
7948
0
        {
7949
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7950
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7951
0
            }
7952
0
            AUTO_PROFILER_LABEL("PContent::Msg_MaybeReloadPlugins", OTHER);
7953
0
7954
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7955
0
                FatalError("Transition error");
7956
0
                return MsgValueError;
7957
0
            }
7958
0
            if ((!(RecvMaybeReloadPlugins()))) {
7959
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7960
0
                // Error handled in mozilla::ipc::IPCResult
7961
0
                return MsgProcessingError;
7962
0
            }
7963
0
7964
0
            return MsgProcessed;
7965
0
        }
7966
0
    case PContent::Msg_BHRThreadHang__ID:
7967
0
        {
7968
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
7969
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
7970
0
            }
7971
0
            AUTO_PROFILER_LABEL("PContent::Msg_BHRThreadHang", OTHER);
7972
0
7973
0
            PickleIterator iter__(msg__);
7974
0
            HangDetails aHangDetails;
7975
0
7976
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aHangDetails)))))) {
7977
0
                FatalError("Error deserializing 'HangDetails'");
7978
0
                return MsgValueError;
7979
0
            }
7980
0
            // Sentinel = 'aHangDetails'
7981
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2710776857)))) {
7982
0
                mozilla::ipc::SentinelReadError("Error deserializing 'HangDetails'");
7983
0
                return MsgValueError;
7984
0
            }
7985
0
            (msg__).EndRead(iter__, (msg__).type());
7986
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
7987
0
                FatalError("Transition error");
7988
0
                return MsgValueError;
7989
0
            }
7990
0
            if ((!(RecvBHRThreadHang(aHangDetails)))) {
7991
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
7992
0
                // Error handled in mozilla::ipc::IPCResult
7993
0
                return MsgProcessingError;
7994
0
            }
7995
0
7996
0
            return MsgProcessed;
7997
0
        }
7998
0
    case PContent::Msg_AddPerformanceMetrics__ID:
7999
0
        {
8000
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8001
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8002
0
            }
8003
0
            AUTO_PROFILER_LABEL("PContent::Msg_AddPerformanceMetrics", OTHER);
8004
0
8005
0
            PickleIterator iter__(msg__);
8006
0
            nsID aID;
8007
0
            nsTArray<PerformanceInfo> aMetrics;
8008
0
8009
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aID)))))) {
8010
0
                FatalError("Error deserializing 'nsID'");
8011
0
                return MsgValueError;
8012
0
            }
8013
0
            // Sentinel = 'aID'
8014
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) {
8015
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsID'");
8016
0
                return MsgValueError;
8017
0
            }
8018
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aMetrics)))))) {
8019
0
                FatalError("Error deserializing 'nsTArray'");
8020
0
                return MsgValueError;
8021
0
            }
8022
0
            // Sentinel = 'aMetrics'
8023
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4116521140)))) {
8024
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
8025
0
                return MsgValueError;
8026
0
            }
8027
0
            (msg__).EndRead(iter__, (msg__).type());
8028
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
8029
0
                FatalError("Transition error");
8030
0
                return MsgValueError;
8031
0
            }
8032
0
            if ((!(RecvAddPerformanceMetrics(aID, std::move(aMetrics))))) {
8033
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8034
0
                // Error handled in mozilla::ipc::IPCResult
8035
0
                return MsgProcessingError;
8036
0
            }
8037
0
8038
0
            return MsgProcessed;
8039
0
        }
8040
0
    case PContent::Msg_FirstPartyStorageAccessGrantedForOrigin__ID:
8041
0
        {
8042
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8043
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8044
0
            }
8045
0
            AUTO_PROFILER_LABEL("PContent::Msg_FirstPartyStorageAccessGrantedForOrigin", OTHER);
8046
0
8047
0
            PickleIterator iter__(msg__);
8048
0
            Principal aParentPrincipal;
8049
0
            nsCString aTrackingOrigin;
8050
0
            nsCString aGrantedOrigin;
8051
0
8052
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aParentPrincipal)))))) {
8053
0
                FatalError("Error deserializing 'Principal'");
8054
0
                return MsgValueError;
8055
0
            }
8056
0
            // Sentinel = 'aParentPrincipal'
8057
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3187350213)))) {
8058
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
8059
0
                return MsgValueError;
8060
0
            }
8061
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aTrackingOrigin)))))) {
8062
0
                FatalError("Error deserializing 'nsCString'");
8063
0
                return MsgValueError;
8064
0
            }
8065
0
            // Sentinel = 'aTrackingOrigin'
8066
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3446324311)))) {
8067
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
8068
0
                return MsgValueError;
8069
0
            }
8070
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aGrantedOrigin)))))) {
8071
0
                FatalError("Error deserializing 'nsCString'");
8072
0
                return MsgValueError;
8073
0
            }
8074
0
            // Sentinel = 'aGrantedOrigin'
8075
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4223735530)))) {
8076
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
8077
0
                return MsgValueError;
8078
0
            }
8079
0
            (msg__).EndRead(iter__, (msg__).type());
8080
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
8081
0
                FatalError("Transition error");
8082
0
                return MsgValueError;
8083
0
            }
8084
0
            int32_t id__ = MSG_ROUTING_CONTROL;
8085
0
8086
0
            int32_t seqno__ = (msg__).seqno();
8087
0
            WeakPtr<PContentParent> self__ = this;
8088
0
            FirstPartyStorageAccessGrantedForOriginResolver resolver = [this, self__, id__, seqno__](const bool& aParam) {
8089
0
                if ((!(self__))) {
8090
0
                    NS_WARNING("Not resolving response because actor is dead.");
8091
0
                    return;
8092
0
                }
8093
0
                if ((mLivenessState) == (mozilla::ipc::LivenessState::Dead)) {
8094
0
                    NS_WARNING("Not resolving response because actor is destroyed.");
8095
0
                    return;
8096
0
                }
8097
0
                bool resolve__ = true;
8098
0
                bool unused;
8099
0
                unused = std::move(aParam);
8100
0
                IPC::Message* reply__ = PContent::Reply_FirstPartyStorageAccessGrantedForOrigin(id__);
8101
0
                WriteIPDLParam(reply__, self__, resolve__);
8102
0
                // Sentinel = 'resolve__'
8103
0
                (reply__)->WriteSentinel(3997392463);
8104
0
                WriteIPDLParam(reply__, self__, unused);
8105
0
                // Sentinel = 'unused'
8106
0
                (reply__)->WriteSentinel(1885311952);
8107
0
                (reply__)->set_seqno(seqno__);
8108
0
8109
0
                if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8110
0
                    mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8111
0
                }
8112
0
                bool sendok__ = (GetIPCChannel())->Send(reply__);
8113
0
                if ((!(sendok__))) {
8114
0
                    NS_WARNING("Error sending reply");
8115
0
                }
8116
0
            };
8117
0
            if ((!(RecvFirstPartyStorageAccessGrantedForOrigin(aParentPrincipal, aTrackingOrigin, aGrantedOrigin, std::move(resolver))))) {
8118
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8119
0
                // Error handled in mozilla::ipc::IPCResult
8120
0
                return MsgProcessingError;
8121
0
            }
8122
0
8123
0
            return MsgProcessed;
8124
0
        }
8125
0
    case PContent::Msg_StoreUserInteractionAsPermission__ID:
8126
0
        {
8127
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8128
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8129
0
            }
8130
0
            AUTO_PROFILER_LABEL("PContent::Msg_StoreUserInteractionAsPermission", OTHER);
8131
0
8132
0
            PickleIterator iter__(msg__);
8133
0
            Principal aPrincipal;
8134
0
8135
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPrincipal)))))) {
8136
0
                FatalError("Error deserializing 'Principal'");
8137
0
                return MsgValueError;
8138
0
            }
8139
0
            // Sentinel = 'aPrincipal'
8140
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4097511)))) {
8141
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
8142
0
                return MsgValueError;
8143
0
            }
8144
0
            (msg__).EndRead(iter__, (msg__).type());
8145
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
8146
0
                FatalError("Transition error");
8147
0
                return MsgValueError;
8148
0
            }
8149
0
            if ((!(RecvStoreUserInteractionAsPermission(aPrincipal)))) {
8150
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8151
0
                // Error handled in mozilla::ipc::IPCResult
8152
0
                return MsgProcessingError;
8153
0
            }
8154
0
8155
0
            return MsgProcessed;
8156
0
        }
8157
0
    case PContent::Msg_AttachBrowsingContext__ID:
8158
0
        {
8159
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8160
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8161
0
            }
8162
0
            AUTO_PROFILER_LABEL("PContent::Msg_AttachBrowsingContext", OTHER);
8163
0
8164
0
            PickleIterator iter__(msg__);
8165
0
            BrowsingContextId aParentContextId;
8166
0
            BrowsingContextId aContextId;
8167
0
            nsString aName;
8168
0
8169
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aParentContextId)))))) {
8170
0
                FatalError("Error deserializing 'BrowsingContextId'");
8171
0
                return MsgValueError;
8172
0
            }
8173
0
            // Sentinel = 'aParentContextId'
8174
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1041596981)))) {
8175
0
                mozilla::ipc::SentinelReadError("Error deserializing 'BrowsingContextId'");
8176
0
                return MsgValueError;
8177
0
            }
8178
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aContextId)))))) {
8179
0
                FatalError("Error deserializing 'BrowsingContextId'");
8180
0
                return MsgValueError;
8181
0
            }
8182
0
            // Sentinel = 'aContextId'
8183
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1527674007)))) {
8184
0
                mozilla::ipc::SentinelReadError("Error deserializing 'BrowsingContextId'");
8185
0
                return MsgValueError;
8186
0
            }
8187
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aName)))))) {
8188
0
                FatalError("Error deserializing 'nsString'");
8189
0
                return MsgValueError;
8190
0
            }
8191
0
            // Sentinel = 'aName'
8192
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1450162941)))) {
8193
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
8194
0
                return MsgValueError;
8195
0
            }
8196
0
            (msg__).EndRead(iter__, (msg__).type());
8197
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
8198
0
                FatalError("Transition error");
8199
0
                return MsgValueError;
8200
0
            }
8201
0
            if ((!(RecvAttachBrowsingContext(aParentContextId, aContextId, aName)))) {
8202
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8203
0
                // Error handled in mozilla::ipc::IPCResult
8204
0
                return MsgProcessingError;
8205
0
            }
8206
0
8207
0
            return MsgProcessed;
8208
0
        }
8209
0
    case PContent::Msg_DetachBrowsingContext__ID:
8210
0
        {
8211
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8212
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8213
0
            }
8214
0
            AUTO_PROFILER_LABEL("PContent::Msg_DetachBrowsingContext", OTHER);
8215
0
8216
0
            PickleIterator iter__(msg__);
8217
0
            BrowsingContextId aContextId;
8218
0
            bool aMoveToBFCache;
8219
0
8220
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aContextId)))))) {
8221
0
                FatalError("Error deserializing 'BrowsingContextId'");
8222
0
                return MsgValueError;
8223
0
            }
8224
0
            // Sentinel = 'aContextId'
8225
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1527674007)))) {
8226
0
                mozilla::ipc::SentinelReadError("Error deserializing 'BrowsingContextId'");
8227
0
                return MsgValueError;
8228
0
            }
8229
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aMoveToBFCache)))))) {
8230
0
                FatalError("Error deserializing 'bool'");
8231
0
                return MsgValueError;
8232
0
            }
8233
0
            // Sentinel = 'aMoveToBFCache'
8234
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3958563075)))) {
8235
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
8236
0
                return MsgValueError;
8237
0
            }
8238
0
            (msg__).EndRead(iter__, (msg__).type());
8239
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
8240
0
                FatalError("Transition error");
8241
0
                return MsgValueError;
8242
0
            }
8243
0
            if ((!(RecvDetachBrowsingContext(aContextId, aMoveToBFCache)))) {
8244
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8245
0
                // Error handled in mozilla::ipc::IPCResult
8246
0
                return MsgProcessingError;
8247
0
            }
8248
0
8249
0
            return MsgProcessed;
8250
0
        }
8251
0
    case PContent::Msg_AsyncMessage__ID:
8252
0
        {
8253
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8254
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8255
0
            }
8256
0
            AUTO_PROFILER_LABEL("PContent::Msg_AsyncMessage", OTHER);
8257
0
8258
0
            PickleIterator iter__(msg__);
8259
0
            nsString aMessage;
8260
0
            nsTArray<CpowEntry> aCpows;
8261
0
            Principal aPrincipal;
8262
0
            ClonedMessageData aData;
8263
0
8264
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aMessage)))))) {
8265
0
                FatalError("Error deserializing 'nsString'");
8266
0
                return MsgValueError;
8267
0
            }
8268
0
            // Sentinel = 'aMessage'
8269
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3453110902)))) {
8270
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
8271
0
                return MsgValueError;
8272
0
            }
8273
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCpows)))))) {
8274
0
                FatalError("Error deserializing 'nsTArray'");
8275
0
                return MsgValueError;
8276
0
            }
8277
0
            // Sentinel = 'aCpows'
8278
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2178221451)))) {
8279
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
8280
0
                return MsgValueError;
8281
0
            }
8282
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPrincipal)))))) {
8283
0
                FatalError("Error deserializing 'Principal'");
8284
0
                return MsgValueError;
8285
0
            }
8286
0
            // Sentinel = 'aPrincipal'
8287
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4097511)))) {
8288
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
8289
0
                return MsgValueError;
8290
0
            }
8291
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aData)))))) {
8292
0
                FatalError("Error deserializing 'ClonedMessageData'");
8293
0
                return MsgValueError;
8294
0
            }
8295
0
            // Sentinel = 'aData'
8296
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3285075324)))) {
8297
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ClonedMessageData'");
8298
0
                return MsgValueError;
8299
0
            }
8300
0
            (msg__).EndRead(iter__, (msg__).type());
8301
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
8302
0
                FatalError("Transition error");
8303
0
                return MsgValueError;
8304
0
            }
8305
0
            if ((!(RecvAsyncMessage(aMessage, std::move(aCpows), aPrincipal, aData)))) {
8306
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8307
0
                // Error handled in mozilla::ipc::IPCResult
8308
0
                return MsgProcessingError;
8309
0
            }
8310
0
8311
0
            return MsgProcessed;
8312
0
        }
8313
0
    case PContent::Msg_NotifyPushSubscriptionModifiedObservers__ID:
8314
0
        {
8315
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8316
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8317
0
            }
8318
0
            AUTO_PROFILER_LABEL("PContent::Msg_NotifyPushSubscriptionModifiedObservers", OTHER);
8319
0
8320
0
            PickleIterator iter__(msg__);
8321
0
            nsCString scope;
8322
0
            Principal principal;
8323
0
8324
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(scope)))))) {
8325
0
                FatalError("Error deserializing 'nsCString'");
8326
0
                return MsgValueError;
8327
0
            }
8328
0
            // Sentinel = 'scope'
8329
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2191984953)))) {
8330
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
8331
0
                return MsgValueError;
8332
0
            }
8333
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) {
8334
0
                FatalError("Error deserializing 'Principal'");
8335
0
                return MsgValueError;
8336
0
            }
8337
0
            // Sentinel = 'principal'
8338
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
8339
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
8340
0
                return MsgValueError;
8341
0
            }
8342
0
            (msg__).EndRead(iter__, (msg__).type());
8343
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
8344
0
                FatalError("Transition error");
8345
0
                return MsgValueError;
8346
0
            }
8347
0
            if ((!(RecvNotifyPushSubscriptionModifiedObservers(scope, principal)))) {
8348
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8349
0
                // Error handled in mozilla::ipc::IPCResult
8350
0
                return MsgProcessingError;
8351
0
            }
8352
0
8353
0
            return MsgProcessed;
8354
0
        }
8355
0
    default:
8356
0
        {
8357
0
            return MsgNotKnown;
8358
0
        }
8359
0
    case SHMEM_CREATED_MESSAGE_TYPE:
8360
0
        {
8361
0
            if ((!(ShmemCreated(msg__)))) {
8362
0
                return MsgPayloadError;
8363
0
            }
8364
0
            return MsgProcessed;
8365
0
        }
8366
0
    case SHMEM_DESTROYED_MESSAGE_TYPE:
8367
0
        {
8368
0
            if ((!(ShmemDestroyed(msg__)))) {
8369
0
                return MsgPayloadError;
8370
0
            }
8371
0
            return MsgProcessed;
8372
0
        }
8373
0
    }
8374
0
}
8375
8376
auto PContentParent::OnMessageReceived(
8377
        const Message& msg__,
8378
        Message*& reply__) -> PContentParent::Result
8379
0
{
8380
0
    int32_t route__ = (msg__).routing_id();
8381
0
    if ((MSG_ROUTING_CONTROL) != (route__)) {
8382
0
        IProtocol* routed__ = Lookup(route__);
8383
0
        if ((!(routed__))) {
8384
0
            return MsgRouteError;
8385
0
        }
8386
0
        return (routed__)->OnMessageReceived(msg__, reply__);
8387
0
    }
8388
0
8389
0
    switch ((msg__).type()) {
8390
0
    case PContent::Msg_CreateChildProcess__ID:
8391
0
        {
8392
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8393
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8394
0
            }
8395
0
            AUTO_PROFILER_LABEL("PContent::Msg_CreateChildProcess", OTHER);
8396
0
8397
0
            PickleIterator iter__(msg__);
8398
0
            IPCTabContext context;
8399
0
            ProcessPriority priority;
8400
0
            TabId openerTabId;
8401
0
            TabId tabId;
8402
0
8403
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(context)))))) {
8404
0
                FatalError("Error deserializing 'IPCTabContext'");
8405
0
                return MsgValueError;
8406
0
            }
8407
0
            // Sentinel = 'context'
8408
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3514529014)))) {
8409
0
                mozilla::ipc::SentinelReadError("Error deserializing 'IPCTabContext'");
8410
0
                return MsgValueError;
8411
0
            }
8412
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(priority)))))) {
8413
0
                FatalError("Error deserializing 'ProcessPriority'");
8414
0
                return MsgValueError;
8415
0
            }
8416
0
            // Sentinel = 'priority'
8417
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 558136112)))) {
8418
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ProcessPriority'");
8419
0
                return MsgValueError;
8420
0
            }
8421
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(openerTabId)))))) {
8422
0
                FatalError("Error deserializing 'TabId'");
8423
0
                return MsgValueError;
8424
0
            }
8425
0
            // Sentinel = 'openerTabId'
8426
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 817688674)))) {
8427
0
                mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
8428
0
                return MsgValueError;
8429
0
            }
8430
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(tabId)))))) {
8431
0
                FatalError("Error deserializing 'TabId'");
8432
0
                return MsgValueError;
8433
0
            }
8434
0
            // Sentinel = 'tabId'
8435
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3419081923)))) {
8436
0
                mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
8437
0
                return MsgValueError;
8438
0
            }
8439
0
            (msg__).EndRead(iter__, (msg__).type());
8440
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
8441
0
                FatalError("Transition error");
8442
0
                return MsgValueError;
8443
0
            }
8444
0
            int32_t id__ = MSG_ROUTING_CONTROL;
8445
0
            ContentParentId cpId;
8446
0
            bool isForBrowser;
8447
0
            if ((!(RecvCreateChildProcess(context, priority, openerTabId, tabId, (&(cpId)), (&(isForBrowser)))))) {
8448
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8449
0
                // Error handled in mozilla::ipc::IPCResult
8450
0
                return MsgProcessingError;
8451
0
            }
8452
0
8453
0
            reply__ = PContent::Reply_CreateChildProcess(id__);
8454
0
8455
0
            WriteIPDLParam(reply__, this, cpId);
8456
0
            // Sentinel = 'cpId'
8457
0
            (reply__)->WriteSentinel(2452595622);
8458
0
            WriteIPDLParam(reply__, this, isForBrowser);
8459
0
            // Sentinel = 'isForBrowser'
8460
0
            (reply__)->WriteSentinel(2051565587);
8461
0
8462
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8463
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8464
0
            }
8465
0
            return MsgProcessed;
8466
0
        }
8467
0
    case PContent::Msg_BridgeToChildProcess__ID:
8468
0
        {
8469
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8470
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8471
0
            }
8472
0
            AUTO_PROFILER_LABEL("PContent::Msg_BridgeToChildProcess", OTHER);
8473
0
8474
0
            PickleIterator iter__(msg__);
8475
0
            ContentParentId cpId;
8476
0
8477
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cpId)))))) {
8478
0
                FatalError("Error deserializing 'ContentParentId'");
8479
0
                return MsgValueError;
8480
0
            }
8481
0
            // Sentinel = 'cpId'
8482
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2452595622)))) {
8483
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ContentParentId'");
8484
0
                return MsgValueError;
8485
0
            }
8486
0
            (msg__).EndRead(iter__, (msg__).type());
8487
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
8488
0
                FatalError("Transition error");
8489
0
                return MsgValueError;
8490
0
            }
8491
0
            int32_t id__ = MSG_ROUTING_CONTROL;
8492
0
            Endpoint<mozilla::dom::PContentBridgeParent> endpoint;
8493
0
            if ((!(RecvBridgeToChildProcess(cpId, (&(endpoint)))))) {
8494
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8495
0
                // Error handled in mozilla::ipc::IPCResult
8496
0
                return MsgProcessingError;
8497
0
            }
8498
0
8499
0
            reply__ = PContent::Reply_BridgeToChildProcess(id__);
8500
0
8501
0
            WriteIPDLParam(reply__, this, endpoint);
8502
0
            // Sentinel = 'endpoint'
8503
0
            (reply__)->WriteSentinel(3610972515);
8504
0
8505
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8506
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8507
0
            }
8508
0
            return MsgProcessed;
8509
0
        }
8510
0
    case PContent::Msg_OpenRecordReplayChannel__ID:
8511
0
        {
8512
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8513
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8514
0
            }
8515
0
            AUTO_PROFILER_LABEL("PContent::Msg_OpenRecordReplayChannel", OTHER);
8516
0
8517
0
            PickleIterator iter__(msg__);
8518
0
            uint32_t channelId;
8519
0
8520
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(channelId)))))) {
8521
0
                FatalError("Error deserializing 'uint32_t'");
8522
0
                return MsgValueError;
8523
0
            }
8524
0
            // Sentinel = 'channelId'
8525
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 6854027)))) {
8526
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
8527
0
                return MsgValueError;
8528
0
            }
8529
0
            (msg__).EndRead(iter__, (msg__).type());
8530
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
8531
0
                FatalError("Transition error");
8532
0
                return MsgValueError;
8533
0
            }
8534
0
            int32_t id__ = MSG_ROUTING_CONTROL;
8535
0
            FileDescriptor connection;
8536
0
            if ((!(RecvOpenRecordReplayChannel(channelId, (&(connection)))))) {
8537
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8538
0
                // Error handled in mozilla::ipc::IPCResult
8539
0
                return MsgProcessingError;
8540
0
            }
8541
0
8542
0
            reply__ = PContent::Reply_OpenRecordReplayChannel(id__);
8543
0
8544
0
            WriteIPDLParam(reply__, this, connection);
8545
0
            // Sentinel = 'connection'
8546
0
            (reply__)->WriteSentinel(3784185074);
8547
0
8548
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8549
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8550
0
            }
8551
0
            return MsgProcessed;
8552
0
        }
8553
0
    case PContent::Msg_LoadPlugin__ID:
8554
0
        {
8555
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8556
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8557
0
            }
8558
0
            AUTO_PROFILER_LABEL("PContent::Msg_LoadPlugin", OTHER);
8559
0
8560
0
            PickleIterator iter__(msg__);
8561
0
            uint32_t aPluginId;
8562
0
8563
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPluginId)))))) {
8564
0
                FatalError("Error deserializing 'uint32_t'");
8565
0
                return MsgValueError;
8566
0
            }
8567
0
            // Sentinel = 'aPluginId'
8568
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4181313310)))) {
8569
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
8570
0
                return MsgValueError;
8571
0
            }
8572
0
            (msg__).EndRead(iter__, (msg__).type());
8573
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
8574
0
                FatalError("Transition error");
8575
0
                return MsgValueError;
8576
0
            }
8577
0
            int32_t id__ = MSG_ROUTING_CONTROL;
8578
0
            nsresult aResult;
8579
0
            uint32_t aRunID;
8580
0
            Endpoint<mozilla::plugins::PPluginModuleParent> aEndpoint;
8581
0
            if ((!(RecvLoadPlugin(aPluginId, (&(aResult)), (&(aRunID)), (&(aEndpoint)))))) {
8582
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8583
0
                // Error handled in mozilla::ipc::IPCResult
8584
0
                return MsgProcessingError;
8585
0
            }
8586
0
8587
0
            reply__ = PContent::Reply_LoadPlugin(id__);
8588
0
8589
0
            WriteIPDLParam(reply__, this, aResult);
8590
0
            // Sentinel = 'aResult'
8591
0
            (reply__)->WriteSentinel(3888726089);
8592
0
            WriteIPDLParam(reply__, this, aRunID);
8593
0
            // Sentinel = 'aRunID'
8594
0
            (reply__)->WriteSentinel(2758209365);
8595
0
            WriteIPDLParam(reply__, this, aEndpoint);
8596
0
            // Sentinel = 'aEndpoint'
8597
0
            (reply__)->WriteSentinel(2457438235);
8598
0
8599
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8600
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8601
0
            }
8602
0
            return MsgProcessed;
8603
0
        }
8604
0
    case PContent::Msg_ConnectPluginBridge__ID:
8605
0
        {
8606
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8607
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8608
0
            }
8609
0
            AUTO_PROFILER_LABEL("PContent::Msg_ConnectPluginBridge", OTHER);
8610
0
8611
0
            PickleIterator iter__(msg__);
8612
0
            uint32_t aPluginId;
8613
0
8614
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPluginId)))))) {
8615
0
                FatalError("Error deserializing 'uint32_t'");
8616
0
                return MsgValueError;
8617
0
            }
8618
0
            // Sentinel = 'aPluginId'
8619
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4181313310)))) {
8620
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
8621
0
                return MsgValueError;
8622
0
            }
8623
0
            (msg__).EndRead(iter__, (msg__).type());
8624
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
8625
0
                FatalError("Transition error");
8626
0
                return MsgValueError;
8627
0
            }
8628
0
            int32_t id__ = MSG_ROUTING_CONTROL;
8629
0
            nsresult rv;
8630
0
            Endpoint<mozilla::plugins::PPluginModuleParent> aEndpoint;
8631
0
            if ((!(RecvConnectPluginBridge(aPluginId, (&(rv)), (&(aEndpoint)))))) {
8632
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8633
0
                // Error handled in mozilla::ipc::IPCResult
8634
0
                return MsgProcessingError;
8635
0
            }
8636
0
8637
0
            reply__ = PContent::Reply_ConnectPluginBridge(id__);
8638
0
8639
0
            WriteIPDLParam(reply__, this, rv);
8640
0
            // Sentinel = 'rv'
8641
0
            (reply__)->WriteSentinel(702481058);
8642
0
            WriteIPDLParam(reply__, this, aEndpoint);
8643
0
            // Sentinel = 'aEndpoint'
8644
0
            (reply__)->WriteSentinel(2457438235);
8645
0
8646
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8647
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8648
0
            }
8649
0
            return MsgProcessed;
8650
0
        }
8651
0
    case PContent::Msg_IsSecureURI__ID:
8652
0
        {
8653
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8654
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8655
0
            }
8656
0
            AUTO_PROFILER_LABEL("PContent::Msg_IsSecureURI", OTHER);
8657
0
8658
0
            PickleIterator iter__(msg__);
8659
0
            uint32_t aType;
8660
0
            URIParams aURI;
8661
0
            uint32_t aFlags;
8662
0
            OriginAttributes aOriginAttributes;
8663
0
8664
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aType)))))) {
8665
0
                FatalError("Error deserializing 'uint32_t'");
8666
0
                return MsgValueError;
8667
0
            }
8668
0
            // Sentinel = 'aType'
8669
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1819585676)))) {
8670
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
8671
0
                return MsgValueError;
8672
0
            }
8673
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aURI)))))) {
8674
0
                FatalError("Error deserializing 'URIParams'");
8675
0
                return MsgValueError;
8676
0
            }
8677
0
            // Sentinel = 'aURI'
8678
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2075506333)))) {
8679
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
8680
0
                return MsgValueError;
8681
0
            }
8682
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aFlags)))))) {
8683
0
                FatalError("Error deserializing 'uint32_t'");
8684
0
                return MsgValueError;
8685
0
            }
8686
0
            // Sentinel = 'aFlags'
8687
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3595665704)))) {
8688
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
8689
0
                return MsgValueError;
8690
0
            }
8691
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aOriginAttributes)))))) {
8692
0
                FatalError("Error deserializing 'OriginAttributes'");
8693
0
                return MsgValueError;
8694
0
            }
8695
0
            // Sentinel = 'aOriginAttributes'
8696
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2175998517)))) {
8697
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OriginAttributes'");
8698
0
                return MsgValueError;
8699
0
            }
8700
0
            (msg__).EndRead(iter__, (msg__).type());
8701
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
8702
0
                FatalError("Transition error");
8703
0
                return MsgValueError;
8704
0
            }
8705
0
            int32_t id__ = MSG_ROUTING_CONTROL;
8706
0
            bool isSecureURI;
8707
0
            if ((!(RecvIsSecureURI(aType, aURI, aFlags, aOriginAttributes, (&(isSecureURI)))))) {
8708
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8709
0
                // Error handled in mozilla::ipc::IPCResult
8710
0
                return MsgProcessingError;
8711
0
            }
8712
0
8713
0
            reply__ = PContent::Reply_IsSecureURI(id__);
8714
0
8715
0
            WriteIPDLParam(reply__, this, isSecureURI);
8716
0
            // Sentinel = 'isSecureURI'
8717
0
            (reply__)->WriteSentinel(672781896);
8718
0
8719
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8720
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8721
0
            }
8722
0
            return MsgProcessed;
8723
0
        }
8724
0
    case PContent::Msg_PURLClassifierConstructor__ID:
8725
0
        {
8726
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8727
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8728
0
            }
8729
0
            AUTO_PROFILER_LABEL("PContent::Msg_PURLClassifierConstructor", OTHER);
8730
0
8731
0
            PickleIterator iter__(msg__);
8732
0
            ActorHandle handle__;
8733
0
            PURLClassifierParent* actor;
8734
0
            Principal principal;
8735
0
            bool useTrackingProtection;
8736
0
8737
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
8738
0
                FatalError("Error deserializing 'ActorHandle'");
8739
0
                return MsgValueError;
8740
0
            }
8741
0
            // Sentinel = 'actor'
8742
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
8743
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
8744
0
                return MsgValueError;
8745
0
            }
8746
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) {
8747
0
                FatalError("Error deserializing 'Principal'");
8748
0
                return MsgValueError;
8749
0
            }
8750
0
            // Sentinel = 'principal'
8751
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
8752
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
8753
0
                return MsgValueError;
8754
0
            }
8755
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(useTrackingProtection)))))) {
8756
0
                FatalError("Error deserializing 'bool'");
8757
0
                return MsgValueError;
8758
0
            }
8759
0
            // Sentinel = 'useTrackingProtection'
8760
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3366740154)))) {
8761
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
8762
0
                return MsgValueError;
8763
0
            }
8764
0
            (msg__).EndRead(iter__, (msg__).type());
8765
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
8766
0
                FatalError("Transition error");
8767
0
                return MsgValueError;
8768
0
            }
8769
0
            bool success;
8770
0
            actor = AllocPURLClassifierParent(principal, useTrackingProtection, (&(success)));
8771
0
            if ((!(actor))) {
8772
0
                NS_WARNING("Error constructing actor PURLClassifierParent");
8773
0
                return MsgValueError;
8774
0
            }
8775
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
8776
0
            (mManagedPURLClassifierParent).PutEntry(actor);
8777
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
8778
0
8779
0
            int32_t id__ = MSG_ROUTING_CONTROL;
8780
0
            if ((!(RecvPURLClassifierConstructor(actor, principal, useTrackingProtection, (&(success)))))) {
8781
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8782
0
                // Error handled in mozilla::ipc::IPCResult
8783
0
                return MsgProcessingError;
8784
0
            }
8785
0
            reply__ = PContent::Reply_PURLClassifierConstructor(id__);
8786
0
8787
0
            WriteIPDLParam(reply__, this, success);
8788
0
            // Sentinel = 'success'
8789
0
            (reply__)->WriteSentinel(3877396070);
8790
0
8791
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8792
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8793
0
            }
8794
0
8795
0
            return MsgProcessed;
8796
0
        }
8797
0
    case PContent::Msg_ClassifyLocal__ID:
8798
0
        {
8799
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8800
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8801
0
            }
8802
0
            AUTO_PROFILER_LABEL("PContent::Msg_ClassifyLocal", OTHER);
8803
0
8804
0
            PickleIterator iter__(msg__);
8805
0
            URIParams uri;
8806
0
            nsCString tables;
8807
0
8808
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(uri)))))) {
8809
0
                FatalError("Error deserializing 'URIParams'");
8810
0
                return MsgValueError;
8811
0
            }
8812
0
            // Sentinel = 'uri'
8813
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
8814
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
8815
0
                return MsgValueError;
8816
0
            }
8817
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(tables)))))) {
8818
0
                FatalError("Error deserializing 'nsCString'");
8819
0
                return MsgValueError;
8820
0
            }
8821
0
            // Sentinel = 'tables'
8822
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1212380705)))) {
8823
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
8824
0
                return MsgValueError;
8825
0
            }
8826
0
            (msg__).EndRead(iter__, (msg__).type());
8827
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
8828
0
                FatalError("Transition error");
8829
0
                return MsgValueError;
8830
0
            }
8831
0
            int32_t id__ = MSG_ROUTING_CONTROL;
8832
0
            nsresult rv;
8833
0
            nsTArray<nsCString> results;
8834
0
            if ((!(RecvClassifyLocal(uri, tables, (&(rv)), (&(results)))))) {
8835
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8836
0
                // Error handled in mozilla::ipc::IPCResult
8837
0
                return MsgProcessingError;
8838
0
            }
8839
0
8840
0
            reply__ = PContent::Reply_ClassifyLocal(id__);
8841
0
8842
0
            WriteIPDLParam(reply__, this, rv);
8843
0
            // Sentinel = 'rv'
8844
0
            (reply__)->WriteSentinel(702481058);
8845
0
            WriteIPDLParam(reply__, this, results);
8846
0
            // Sentinel = 'results'
8847
0
            (reply__)->WriteSentinel(1173657613);
8848
0
8849
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8850
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8851
0
            }
8852
0
            return MsgProcessed;
8853
0
        }
8854
0
    case PContent::Msg_GetGfxVars__ID:
8855
0
        {
8856
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8857
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8858
0
            }
8859
0
            AUTO_PROFILER_LABEL("PContent::Msg_GetGfxVars", OTHER);
8860
0
8861
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
8862
0
                FatalError("Transition error");
8863
0
                return MsgValueError;
8864
0
            }
8865
0
            int32_t id__ = MSG_ROUTING_CONTROL;
8866
0
            nsTArray<GfxVarUpdate> vars;
8867
0
            if ((!(RecvGetGfxVars((&(vars)))))) {
8868
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8869
0
                // Error handled in mozilla::ipc::IPCResult
8870
0
                return MsgProcessingError;
8871
0
            }
8872
0
8873
0
            reply__ = PContent::Reply_GetGfxVars(id__);
8874
0
8875
0
            WriteIPDLParam(reply__, this, vars);
8876
0
            // Sentinel = 'vars'
8877
0
            (reply__)->WriteSentinel(2632090118);
8878
0
8879
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8880
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8881
0
            }
8882
0
            return MsgProcessed;
8883
0
        }
8884
0
    case PContent::Msg_ReadFontList__ID:
8885
0
        {
8886
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8887
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8888
0
            }
8889
0
            AUTO_PROFILER_LABEL("PContent::Msg_ReadFontList", OTHER);
8890
0
8891
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
8892
0
                FatalError("Transition error");
8893
0
                return MsgValueError;
8894
0
            }
8895
0
            int32_t id__ = MSG_ROUTING_CONTROL;
8896
0
            nsTArray<FontListEntry> retValue;
8897
0
            if ((!(RecvReadFontList((&(retValue)))))) {
8898
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8899
0
                // Error handled in mozilla::ipc::IPCResult
8900
0
                return MsgProcessingError;
8901
0
            }
8902
0
8903
0
            reply__ = PContent::Reply_ReadFontList(id__);
8904
0
8905
0
            WriteIPDLParam(reply__, this, retValue);
8906
0
            // Sentinel = 'retValue'
8907
0
            (reply__)->WriteSentinel(3328961628);
8908
0
8909
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8910
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8911
0
            }
8912
0
            return MsgProcessed;
8913
0
        }
8914
0
    case PContent::Msg_SyncMessage__ID:
8915
0
        {
8916
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8917
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8918
0
            }
8919
0
            AUTO_PROFILER_LABEL("PContent::Msg_SyncMessage", OTHER);
8920
0
8921
0
            PickleIterator iter__(msg__);
8922
0
            nsString aMessage;
8923
0
            ClonedMessageData aData;
8924
0
            nsTArray<CpowEntry> aCpows;
8925
0
            Principal aPrincipal;
8926
0
8927
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aMessage)))))) {
8928
0
                FatalError("Error deserializing 'nsString'");
8929
0
                return MsgValueError;
8930
0
            }
8931
0
            // Sentinel = 'aMessage'
8932
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3453110902)))) {
8933
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
8934
0
                return MsgValueError;
8935
0
            }
8936
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aData)))))) {
8937
0
                FatalError("Error deserializing 'ClonedMessageData'");
8938
0
                return MsgValueError;
8939
0
            }
8940
0
            // Sentinel = 'aData'
8941
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3285075324)))) {
8942
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ClonedMessageData'");
8943
0
                return MsgValueError;
8944
0
            }
8945
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCpows)))))) {
8946
0
                FatalError("Error deserializing 'nsTArray'");
8947
0
                return MsgValueError;
8948
0
            }
8949
0
            // Sentinel = 'aCpows'
8950
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2178221451)))) {
8951
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
8952
0
                return MsgValueError;
8953
0
            }
8954
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPrincipal)))))) {
8955
0
                FatalError("Error deserializing 'Principal'");
8956
0
                return MsgValueError;
8957
0
            }
8958
0
            // Sentinel = 'aPrincipal'
8959
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4097511)))) {
8960
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
8961
0
                return MsgValueError;
8962
0
            }
8963
0
            (msg__).EndRead(iter__, (msg__).type());
8964
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
8965
0
                FatalError("Transition error");
8966
0
                return MsgValueError;
8967
0
            }
8968
0
            int32_t id__ = MSG_ROUTING_CONTROL;
8969
0
            nsTArray<StructuredCloneData> retval;
8970
0
            if ((!(RecvSyncMessage(aMessage, aData, std::move(aCpows), aPrincipal, (&(retval)))))) {
8971
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
8972
0
                // Error handled in mozilla::ipc::IPCResult
8973
0
                return MsgProcessingError;
8974
0
            }
8975
0
8976
0
            reply__ = PContent::Reply_SyncMessage(id__);
8977
0
8978
0
            WriteIPDLParam(reply__, this, retval);
8979
0
            // Sentinel = 'retval'
8980
0
            (reply__)->WriteSentinel(3130628604);
8981
0
8982
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8983
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
8984
0
            }
8985
0
            return MsgProcessed;
8986
0
        }
8987
0
    case PContent::Msg_RpcMessage__ID:
8988
0
        {
8989
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
8990
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
8991
0
            }
8992
0
            AUTO_PROFILER_LABEL("PContent::Msg_RpcMessage", OTHER);
8993
0
8994
0
            PickleIterator iter__(msg__);
8995
0
            nsString aMessage;
8996
0
            ClonedMessageData aData;
8997
0
            nsTArray<CpowEntry> aCpows;
8998
0
            Principal aPrincipal;
8999
0
9000
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aMessage)))))) {
9001
0
                FatalError("Error deserializing 'nsString'");
9002
0
                return MsgValueError;
9003
0
            }
9004
0
            // Sentinel = 'aMessage'
9005
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3453110902)))) {
9006
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
9007
0
                return MsgValueError;
9008
0
            }
9009
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aData)))))) {
9010
0
                FatalError("Error deserializing 'ClonedMessageData'");
9011
0
                return MsgValueError;
9012
0
            }
9013
0
            // Sentinel = 'aData'
9014
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3285075324)))) {
9015
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ClonedMessageData'");
9016
0
                return MsgValueError;
9017
0
            }
9018
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCpows)))))) {
9019
0
                FatalError("Error deserializing 'nsTArray'");
9020
0
                return MsgValueError;
9021
0
            }
9022
0
            // Sentinel = 'aCpows'
9023
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2178221451)))) {
9024
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
9025
0
                return MsgValueError;
9026
0
            }
9027
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPrincipal)))))) {
9028
0
                FatalError("Error deserializing 'Principal'");
9029
0
                return MsgValueError;
9030
0
            }
9031
0
            // Sentinel = 'aPrincipal'
9032
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4097511)))) {
9033
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
9034
0
                return MsgValueError;
9035
0
            }
9036
0
            (msg__).EndRead(iter__, (msg__).type());
9037
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9038
0
                FatalError("Transition error");
9039
0
                return MsgValueError;
9040
0
            }
9041
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9042
0
            nsTArray<StructuredCloneData> retval;
9043
0
            if ((!(RecvRpcMessage(aMessage, aData, std::move(aCpows), aPrincipal, (&(retval)))))) {
9044
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9045
0
                // Error handled in mozilla::ipc::IPCResult
9046
0
                return MsgProcessingError;
9047
0
            }
9048
0
9049
0
            reply__ = PContent::Reply_RpcMessage(id__);
9050
0
9051
0
            WriteIPDLParam(reply__, this, retval);
9052
0
            // Sentinel = 'retval'
9053
0
            (reply__)->WriteSentinel(3130628604);
9054
0
9055
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9056
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9057
0
            }
9058
0
            return MsgProcessed;
9059
0
        }
9060
0
    case PContent::Msg_GetClipboard__ID:
9061
0
        {
9062
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9063
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
9064
0
            }
9065
0
            AUTO_PROFILER_LABEL("PContent::Msg_GetClipboard", OTHER);
9066
0
9067
0
            PickleIterator iter__(msg__);
9068
0
            nsTArray<nsCString> aTypes;
9069
0
            int32_t aWhichClipboard;
9070
0
9071
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aTypes)))))) {
9072
0
                FatalError("Error deserializing 'nsTArray'");
9073
0
                return MsgValueError;
9074
0
            }
9075
0
            // Sentinel = 'aTypes'
9076
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2467002798)))) {
9077
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
9078
0
                return MsgValueError;
9079
0
            }
9080
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aWhichClipboard)))))) {
9081
0
                FatalError("Error deserializing 'int32_t'");
9082
0
                return MsgValueError;
9083
0
            }
9084
0
            // Sentinel = 'aWhichClipboard'
9085
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4216338969)))) {
9086
0
                mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
9087
0
                return MsgValueError;
9088
0
            }
9089
0
            (msg__).EndRead(iter__, (msg__).type());
9090
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9091
0
                FatalError("Transition error");
9092
0
                return MsgValueError;
9093
0
            }
9094
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9095
0
            IPCDataTransfer dataTransfer;
9096
0
            if ((!(RecvGetClipboard(std::move(aTypes), aWhichClipboard, (&(dataTransfer)))))) {
9097
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9098
0
                // Error handled in mozilla::ipc::IPCResult
9099
0
                return MsgProcessingError;
9100
0
            }
9101
0
9102
0
            reply__ = PContent::Reply_GetClipboard(id__);
9103
0
9104
0
            WriteIPDLParam(reply__, this, dataTransfer);
9105
0
            // Sentinel = 'dataTransfer'
9106
0
            (reply__)->WriteSentinel(2250342981);
9107
0
9108
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9109
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9110
0
            }
9111
0
            return MsgProcessed;
9112
0
        }
9113
0
    case PContent::Msg_GetExternalClipboardFormats__ID:
9114
0
        {
9115
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9116
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
9117
0
            }
9118
0
            AUTO_PROFILER_LABEL("PContent::Msg_GetExternalClipboardFormats", OTHER);
9119
0
9120
0
            PickleIterator iter__(msg__);
9121
0
            int32_t aWhichClipboard;
9122
0
            bool aPlainTextOnly;
9123
0
9124
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aWhichClipboard)))))) {
9125
0
                FatalError("Error deserializing 'int32_t'");
9126
0
                return MsgValueError;
9127
0
            }
9128
0
            // Sentinel = 'aWhichClipboard'
9129
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4216338969)))) {
9130
0
                mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
9131
0
                return MsgValueError;
9132
0
            }
9133
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPlainTextOnly)))))) {
9134
0
                FatalError("Error deserializing 'bool'");
9135
0
                return MsgValueError;
9136
0
            }
9137
0
            // Sentinel = 'aPlainTextOnly'
9138
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4270627318)))) {
9139
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
9140
0
                return MsgValueError;
9141
0
            }
9142
0
            (msg__).EndRead(iter__, (msg__).type());
9143
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9144
0
                FatalError("Transition error");
9145
0
                return MsgValueError;
9146
0
            }
9147
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9148
0
            nsTArray<nsCString> aTypes;
9149
0
            if ((!(RecvGetExternalClipboardFormats(aWhichClipboard, aPlainTextOnly, (&(aTypes)))))) {
9150
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9151
0
                // Error handled in mozilla::ipc::IPCResult
9152
0
                return MsgProcessingError;
9153
0
            }
9154
0
9155
0
            reply__ = PContent::Reply_GetExternalClipboardFormats(id__);
9156
0
9157
0
            WriteIPDLParam(reply__, this, aTypes);
9158
0
            // Sentinel = 'aTypes'
9159
0
            (reply__)->WriteSentinel(2467002798);
9160
0
9161
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9162
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9163
0
            }
9164
0
            return MsgProcessed;
9165
0
        }
9166
0
    case PContent::Msg_ClipboardHasType__ID:
9167
0
        {
9168
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9169
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
9170
0
            }
9171
0
            AUTO_PROFILER_LABEL("PContent::Msg_ClipboardHasType", OTHER);
9172
0
9173
0
            PickleIterator iter__(msg__);
9174
0
            nsTArray<nsCString> aTypes;
9175
0
            int32_t aWhichClipboard;
9176
0
9177
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aTypes)))))) {
9178
0
                FatalError("Error deserializing 'nsTArray'");
9179
0
                return MsgValueError;
9180
0
            }
9181
0
            // Sentinel = 'aTypes'
9182
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2467002798)))) {
9183
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
9184
0
                return MsgValueError;
9185
0
            }
9186
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aWhichClipboard)))))) {
9187
0
                FatalError("Error deserializing 'int32_t'");
9188
0
                return MsgValueError;
9189
0
            }
9190
0
            // Sentinel = 'aWhichClipboard'
9191
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4216338969)))) {
9192
0
                mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
9193
0
                return MsgValueError;
9194
0
            }
9195
0
            (msg__).EndRead(iter__, (msg__).type());
9196
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9197
0
                FatalError("Transition error");
9198
0
                return MsgValueError;
9199
0
            }
9200
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9201
0
            bool hasType;
9202
0
            if ((!(RecvClipboardHasType(std::move(aTypes), aWhichClipboard, (&(hasType)))))) {
9203
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9204
0
                // Error handled in mozilla::ipc::IPCResult
9205
0
                return MsgProcessingError;
9206
0
            }
9207
0
9208
0
            reply__ = PContent::Reply_ClipboardHasType(id__);
9209
0
9210
0
            WriteIPDLParam(reply__, this, hasType);
9211
0
            // Sentinel = 'hasType'
9212
0
            (reply__)->WriteSentinel(2839560423);
9213
0
9214
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9215
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9216
0
            }
9217
0
            return MsgProcessed;
9218
0
        }
9219
0
    case PContent::Msg_GetSystemColors__ID:
9220
0
        {
9221
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9222
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
9223
0
            }
9224
0
            AUTO_PROFILER_LABEL("PContent::Msg_GetSystemColors", OTHER);
9225
0
9226
0
            PickleIterator iter__(msg__);
9227
0
            uint32_t colorsCount;
9228
0
9229
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(colorsCount)))))) {
9230
0
                FatalError("Error deserializing 'uint32_t'");
9231
0
                return MsgValueError;
9232
0
            }
9233
0
            // Sentinel = 'colorsCount'
9234
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 767523530)))) {
9235
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
9236
0
                return MsgValueError;
9237
0
            }
9238
0
            (msg__).EndRead(iter__, (msg__).type());
9239
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9240
0
                FatalError("Transition error");
9241
0
                return MsgValueError;
9242
0
            }
9243
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9244
0
            nsTArray<uint32_t> colors;
9245
0
            if ((!(RecvGetSystemColors(colorsCount, (&(colors)))))) {
9246
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9247
0
                // Error handled in mozilla::ipc::IPCResult
9248
0
                return MsgProcessingError;
9249
0
            }
9250
0
9251
0
            reply__ = PContent::Reply_GetSystemColors(id__);
9252
0
9253
0
            WriteIPDLParam(reply__, this, colors);
9254
0
            // Sentinel = 'colors'
9255
0
            (reply__)->WriteSentinel(2508874770);
9256
0
9257
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9258
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9259
0
            }
9260
0
            return MsgProcessed;
9261
0
        }
9262
0
    case PContent::Msg_GetIconForExtension__ID:
9263
0
        {
9264
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9265
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
9266
0
            }
9267
0
            AUTO_PROFILER_LABEL("PContent::Msg_GetIconForExtension", OTHER);
9268
0
9269
0
            PickleIterator iter__(msg__);
9270
0
            nsCString aFileExt;
9271
0
            uint32_t aIconSize;
9272
0
9273
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aFileExt)))))) {
9274
0
                FatalError("Error deserializing 'nsCString'");
9275
0
                return MsgValueError;
9276
0
            }
9277
0
            // Sentinel = 'aFileExt'
9278
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 931144044)))) {
9279
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
9280
0
                return MsgValueError;
9281
0
            }
9282
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aIconSize)))))) {
9283
0
                FatalError("Error deserializing 'uint32_t'");
9284
0
                return MsgValueError;
9285
0
            }
9286
0
            // Sentinel = 'aIconSize'
9287
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3889311776)))) {
9288
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
9289
0
                return MsgValueError;
9290
0
            }
9291
0
            (msg__).EndRead(iter__, (msg__).type());
9292
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9293
0
                FatalError("Transition error");
9294
0
                return MsgValueError;
9295
0
            }
9296
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9297
0
            nsTArray<uint8_t> bits;
9298
0
            if ((!(RecvGetIconForExtension(aFileExt, aIconSize, (&(bits)))))) {
9299
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9300
0
                // Error handled in mozilla::ipc::IPCResult
9301
0
                return MsgProcessingError;
9302
0
            }
9303
0
9304
0
            reply__ = PContent::Reply_GetIconForExtension(id__);
9305
0
9306
0
            WriteIPDLParam(reply__, this, bits);
9307
0
            // Sentinel = 'bits'
9308
0
            (reply__)->WriteSentinel(2740652860);
9309
0
9310
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9311
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9312
0
            }
9313
0
            return MsgProcessed;
9314
0
        }
9315
0
    case PContent::Msg_GetShowPasswordSetting__ID:
9316
0
        {
9317
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9318
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
9319
0
            }
9320
0
            AUTO_PROFILER_LABEL("PContent::Msg_GetShowPasswordSetting", OTHER);
9321
0
9322
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9323
0
                FatalError("Transition error");
9324
0
                return MsgValueError;
9325
0
            }
9326
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9327
0
            bool showPassword;
9328
0
            if ((!(RecvGetShowPasswordSetting((&(showPassword)))))) {
9329
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9330
0
                // Error handled in mozilla::ipc::IPCResult
9331
0
                return MsgProcessingError;
9332
0
            }
9333
0
9334
0
            reply__ = PContent::Reply_GetShowPasswordSetting(id__);
9335
0
9336
0
            WriteIPDLParam(reply__, this, showPassword);
9337
0
            // Sentinel = 'showPassword'
9338
0
            (reply__)->WriteSentinel(2677726048);
9339
0
9340
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9341
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9342
0
            }
9343
0
            return MsgProcessed;
9344
0
        }
9345
0
    case PContent::Msg_KeywordToURI__ID:
9346
0
        {
9347
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9348
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
9349
0
            }
9350
0
            AUTO_PROFILER_LABEL("PContent::Msg_KeywordToURI", OTHER);
9351
0
9352
0
            PickleIterator iter__(msg__);
9353
0
            nsCString keyword;
9354
0
9355
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(keyword)))))) {
9356
0
                FatalError("Error deserializing 'nsCString'");
9357
0
                return MsgValueError;
9358
0
            }
9359
0
            // Sentinel = 'keyword'
9360
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1802027878)))) {
9361
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
9362
0
                return MsgValueError;
9363
0
            }
9364
0
            (msg__).EndRead(iter__, (msg__).type());
9365
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9366
0
                FatalError("Transition error");
9367
0
                return MsgValueError;
9368
0
            }
9369
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9370
0
            nsString providerName;
9371
0
            RefPtr<nsIInputStream> postData;
9372
0
            OptionalURIParams uri;
9373
0
            if ((!(RecvKeywordToURI(keyword, (&(providerName)), (&(postData)), (&(uri)))))) {
9374
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9375
0
                // Error handled in mozilla::ipc::IPCResult
9376
0
                return MsgProcessingError;
9377
0
            }
9378
0
9379
0
            reply__ = PContent::Reply_KeywordToURI(id__);
9380
0
9381
0
            WriteIPDLParam(reply__, this, providerName);
9382
0
            // Sentinel = 'providerName'
9383
0
            (reply__)->WriteSentinel(876606310);
9384
0
            WriteIPDLParam(reply__, this, postData);
9385
0
            // Sentinel = 'postData'
9386
0
            (reply__)->WriteSentinel(1373212390);
9387
0
            WriteIPDLParam(reply__, this, uri);
9388
0
            // Sentinel = 'uri'
9389
0
            (reply__)->WriteSentinel(1453210605);
9390
0
9391
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9392
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9393
0
            }
9394
0
            return MsgProcessed;
9395
0
        }
9396
0
    case PContent::Msg_NotifyKeywordSearchLoading__ID:
9397
0
        {
9398
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9399
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
9400
0
            }
9401
0
            AUTO_PROFILER_LABEL("PContent::Msg_NotifyKeywordSearchLoading", OTHER);
9402
0
9403
0
            PickleIterator iter__(msg__);
9404
0
            nsString providerName;
9405
0
            nsString keyword;
9406
0
9407
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(providerName)))))) {
9408
0
                FatalError("Error deserializing 'nsString'");
9409
0
                return MsgValueError;
9410
0
            }
9411
0
            // Sentinel = 'providerName'
9412
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 876606310)))) {
9413
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
9414
0
                return MsgValueError;
9415
0
            }
9416
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(keyword)))))) {
9417
0
                FatalError("Error deserializing 'nsString'");
9418
0
                return MsgValueError;
9419
0
            }
9420
0
            // Sentinel = 'keyword'
9421
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1802027878)))) {
9422
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
9423
0
                return MsgValueError;
9424
0
            }
9425
0
            (msg__).EndRead(iter__, (msg__).type());
9426
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9427
0
                FatalError("Transition error");
9428
0
                return MsgValueError;
9429
0
            }
9430
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9431
0
            if ((!(RecvNotifyKeywordSearchLoading(providerName, keyword)))) {
9432
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9433
0
                // Error handled in mozilla::ipc::IPCResult
9434
0
                return MsgProcessingError;
9435
0
            }
9436
0
9437
0
            reply__ = PContent::Reply_NotifyKeywordSearchLoading(id__);
9438
0
9439
0
9440
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9441
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9442
0
            }
9443
0
            return MsgProcessed;
9444
0
        }
9445
0
    case PContent::Msg_AllocateLayerTreeId__ID:
9446
0
        {
9447
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9448
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
9449
0
            }
9450
0
            AUTO_PROFILER_LABEL("PContent::Msg_AllocateLayerTreeId", OTHER);
9451
0
9452
0
            PickleIterator iter__(msg__);
9453
0
            ContentParentId cpId;
9454
0
            TabId tabId;
9455
0
9456
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cpId)))))) {
9457
0
                FatalError("Error deserializing 'ContentParentId'");
9458
0
                return MsgValueError;
9459
0
            }
9460
0
            // Sentinel = 'cpId'
9461
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2452595622)))) {
9462
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ContentParentId'");
9463
0
                return MsgValueError;
9464
0
            }
9465
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(tabId)))))) {
9466
0
                FatalError("Error deserializing 'TabId'");
9467
0
                return MsgValueError;
9468
0
            }
9469
0
            // Sentinel = 'tabId'
9470
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3419081923)))) {
9471
0
                mozilla::ipc::SentinelReadError("Error deserializing 'TabId'");
9472
0
                return MsgValueError;
9473
0
            }
9474
0
            (msg__).EndRead(iter__, (msg__).type());
9475
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9476
0
                FatalError("Transition error");
9477
0
                return MsgValueError;
9478
0
            }
9479
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9480
0
            LayersId id;
9481
0
            if ((!(RecvAllocateLayerTreeId(cpId, tabId, (&(id)))))) {
9482
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9483
0
                // Error handled in mozilla::ipc::IPCResult
9484
0
                return MsgProcessingError;
9485
0
            }
9486
0
9487
0
            reply__ = PContent::Reply_AllocateLayerTreeId(id__);
9488
0
9489
0
            WriteIPDLParam(reply__, this, id);
9490
0
            // Sentinel = 'id'
9491
0
            (reply__)->WriteSentinel(2794505629);
9492
0
9493
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9494
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9495
0
            }
9496
0
            return MsgProcessed;
9497
0
        }
9498
0
    case PContent::Msg_BeginDriverCrashGuard__ID:
9499
0
        {
9500
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9501
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
9502
0
            }
9503
0
            AUTO_PROFILER_LABEL("PContent::Msg_BeginDriverCrashGuard", OTHER);
9504
0
9505
0
            PickleIterator iter__(msg__);
9506
0
            uint32_t aGuardType;
9507
0
9508
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aGuardType)))))) {
9509
0
                FatalError("Error deserializing 'uint32_t'");
9510
0
                return MsgValueError;
9511
0
            }
9512
0
            // Sentinel = 'aGuardType'
9513
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2013376914)))) {
9514
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
9515
0
                return MsgValueError;
9516
0
            }
9517
0
            (msg__).EndRead(iter__, (msg__).type());
9518
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9519
0
                FatalError("Transition error");
9520
0
                return MsgValueError;
9521
0
            }
9522
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9523
0
            bool crashDetected;
9524
0
            if ((!(RecvBeginDriverCrashGuard(aGuardType, (&(crashDetected)))))) {
9525
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9526
0
                // Error handled in mozilla::ipc::IPCResult
9527
0
                return MsgProcessingError;
9528
0
            }
9529
0
9530
0
            reply__ = PContent::Reply_BeginDriverCrashGuard(id__);
9531
0
9532
0
            WriteIPDLParam(reply__, this, crashDetected);
9533
0
            // Sentinel = 'crashDetected'
9534
0
            (reply__)->WriteSentinel(1759895034);
9535
0
9536
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9537
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9538
0
            }
9539
0
            return MsgProcessed;
9540
0
        }
9541
0
    case PContent::Msg_EndDriverCrashGuard__ID:
9542
0
        {
9543
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9544
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
9545
0
            }
9546
0
            AUTO_PROFILER_LABEL("PContent::Msg_EndDriverCrashGuard", OTHER);
9547
0
9548
0
            PickleIterator iter__(msg__);
9549
0
            uint32_t aGuardType;
9550
0
9551
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aGuardType)))))) {
9552
0
                FatalError("Error deserializing 'uint32_t'");
9553
0
                return MsgValueError;
9554
0
            }
9555
0
            // Sentinel = 'aGuardType'
9556
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2013376914)))) {
9557
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
9558
0
                return MsgValueError;
9559
0
            }
9560
0
            (msg__).EndRead(iter__, (msg__).type());
9561
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9562
0
                FatalError("Transition error");
9563
0
                return MsgValueError;
9564
0
            }
9565
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9566
0
            if ((!(RecvEndDriverCrashGuard(aGuardType)))) {
9567
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9568
0
                // Error handled in mozilla::ipc::IPCResult
9569
0
                return MsgProcessingError;
9570
0
            }
9571
0
9572
0
            reply__ = PContent::Reply_EndDriverCrashGuard(id__);
9573
0
9574
0
9575
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9576
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9577
0
            }
9578
0
            return MsgProcessed;
9579
0
        }
9580
0
    case PContent::Msg_KeygenProcessValue__ID:
9581
0
        {
9582
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9583
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
9584
0
            }
9585
0
            AUTO_PROFILER_LABEL("PContent::Msg_KeygenProcessValue", OTHER);
9586
0
9587
0
            PickleIterator iter__(msg__);
9588
0
            nsString oldValue;
9589
0
            nsString challenge;
9590
0
            nsString keytype;
9591
0
            nsString keyparams;
9592
0
9593
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(oldValue)))))) {
9594
0
                FatalError("Error deserializing 'nsString'");
9595
0
                return MsgValueError;
9596
0
            }
9597
0
            // Sentinel = 'oldValue'
9598
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2227149046)))) {
9599
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
9600
0
                return MsgValueError;
9601
0
            }
9602
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(challenge)))))) {
9603
0
                FatalError("Error deserializing 'nsString'");
9604
0
                return MsgValueError;
9605
0
            }
9606
0
            // Sentinel = 'challenge'
9607
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3710327146)))) {
9608
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
9609
0
                return MsgValueError;
9610
0
            }
9611
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(keytype)))))) {
9612
0
                FatalError("Error deserializing 'nsString'");
9613
0
                return MsgValueError;
9614
0
            }
9615
0
            // Sentinel = 'keytype'
9616
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 391822858)))) {
9617
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
9618
0
                return MsgValueError;
9619
0
            }
9620
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(keyparams)))))) {
9621
0
                FatalError("Error deserializing 'nsString'");
9622
0
                return MsgValueError;
9623
0
            }
9624
0
            // Sentinel = 'keyparams'
9625
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 591068598)))) {
9626
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
9627
0
                return MsgValueError;
9628
0
            }
9629
0
            (msg__).EndRead(iter__, (msg__).type());
9630
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9631
0
                FatalError("Transition error");
9632
0
                return MsgValueError;
9633
0
            }
9634
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9635
0
            nsString newValue;
9636
0
            if ((!(RecvKeygenProcessValue(oldValue, challenge, keytype, keyparams, (&(newValue)))))) {
9637
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9638
0
                // Error handled in mozilla::ipc::IPCResult
9639
0
                return MsgProcessingError;
9640
0
            }
9641
0
9642
0
            reply__ = PContent::Reply_KeygenProcessValue(id__);
9643
0
9644
0
            WriteIPDLParam(reply__, this, newValue);
9645
0
            // Sentinel = 'newValue'
9646
0
            (reply__)->WriteSentinel(1405873629);
9647
0
9648
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9649
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9650
0
            }
9651
0
            return MsgProcessed;
9652
0
        }
9653
0
    case PContent::Msg_KeygenProvideContent__ID:
9654
0
        {
9655
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9656
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
9657
0
            }
9658
0
            AUTO_PROFILER_LABEL("PContent::Msg_KeygenProvideContent", OTHER);
9659
0
9660
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9661
0
                FatalError("Transition error");
9662
0
                return MsgValueError;
9663
0
            }
9664
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9665
0
            nsString aAttribute;
9666
0
            nsTArray<nsString> aContent;
9667
0
            if ((!(RecvKeygenProvideContent((&(aAttribute)), (&(aContent)))))) {
9668
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9669
0
                // Error handled in mozilla::ipc::IPCResult
9670
0
                return MsgProcessingError;
9671
0
            }
9672
0
9673
0
            reply__ = PContent::Reply_KeygenProvideContent(id__);
9674
0
9675
0
            WriteIPDLParam(reply__, this, aAttribute);
9676
0
            // Sentinel = 'aAttribute'
9677
0
            (reply__)->WriteSentinel(4137811577);
9678
0
            WriteIPDLParam(reply__, this, aContent);
9679
0
            // Sentinel = 'aContent'
9680
0
            (reply__)->WriteSentinel(2066258676);
9681
0
9682
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9683
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9684
0
            }
9685
0
            return MsgProcessed;
9686
0
        }
9687
0
    case PContent::Msg_GetGraphicsDeviceInitData__ID:
9688
0
        {
9689
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9690
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
9691
0
            }
9692
0
            AUTO_PROFILER_LABEL("PContent::Msg_GetGraphicsDeviceInitData", OTHER);
9693
0
9694
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9695
0
                FatalError("Transition error");
9696
0
                return MsgValueError;
9697
0
            }
9698
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9699
0
            ContentDeviceData aData;
9700
0
            if ((!(RecvGetGraphicsDeviceInitData((&(aData)))))) {
9701
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9702
0
                // Error handled in mozilla::ipc::IPCResult
9703
0
                return MsgProcessingError;
9704
0
            }
9705
0
9706
0
            reply__ = PContent::Reply_GetGraphicsDeviceInitData(id__);
9707
0
9708
0
            WriteIPDLParam(reply__, this, aData);
9709
0
            // Sentinel = 'aData'
9710
0
            (reply__)->WriteSentinel(3285075324);
9711
0
9712
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9713
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9714
0
            }
9715
0
            return MsgProcessed;
9716
0
        }
9717
0
    case PContent::Msg_GetAndroidSystemInfo__ID:
9718
0
        {
9719
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9720
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
9721
0
            }
9722
0
            AUTO_PROFILER_LABEL("PContent::Msg_GetAndroidSystemInfo", OTHER);
9723
0
9724
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9725
0
                FatalError("Transition error");
9726
0
                return MsgValueError;
9727
0
            }
9728
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9729
0
            AndroidSystemInfo info;
9730
0
            if ((!(RecvGetAndroidSystemInfo((&(info)))))) {
9731
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9732
0
                // Error handled in mozilla::ipc::IPCResult
9733
0
                return MsgProcessingError;
9734
0
            }
9735
0
9736
0
            reply__ = PContent::Reply_GetAndroidSystemInfo(id__);
9737
0
9738
0
            WriteIPDLParam(reply__, this, info);
9739
0
            // Sentinel = 'info'
9740
0
            (reply__)->WriteSentinel(3750868832);
9741
0
9742
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9743
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9744
0
            }
9745
0
            return MsgProcessed;
9746
0
        }
9747
0
    case PContent::Msg_UngrabPointer__ID:
9748
0
        {
9749
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9750
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
9751
0
            }
9752
0
            AUTO_PROFILER_LABEL("PContent::Msg_UngrabPointer", OTHER);
9753
0
9754
0
            PickleIterator iter__(msg__);
9755
0
            uint32_t time;
9756
0
9757
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(time)))))) {
9758
0
                FatalError("Error deserializing 'uint32_t'");
9759
0
                return MsgValueError;
9760
0
            }
9761
0
            // Sentinel = 'time'
9762
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4231890935)))) {
9763
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
9764
0
                return MsgValueError;
9765
0
            }
9766
0
            (msg__).EndRead(iter__, (msg__).type());
9767
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9768
0
                FatalError("Transition error");
9769
0
                return MsgValueError;
9770
0
            }
9771
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9772
0
            if ((!(RecvUngrabPointer(time)))) {
9773
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9774
0
                // Error handled in mozilla::ipc::IPCResult
9775
0
                return MsgProcessingError;
9776
0
            }
9777
0
9778
0
            reply__ = PContent::Reply_UngrabPointer(id__);
9779
0
9780
0
9781
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9782
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9783
0
            }
9784
0
            return MsgProcessed;
9785
0
        }
9786
0
    case PContent::Msg_RemovePermission__ID:
9787
0
        {
9788
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9789
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
9790
0
            }
9791
0
            AUTO_PROFILER_LABEL("PContent::Msg_RemovePermission", OTHER);
9792
0
9793
0
            PickleIterator iter__(msg__);
9794
0
            Principal principal;
9795
0
            nsCString permissionType;
9796
0
9797
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) {
9798
0
                FatalError("Error deserializing 'Principal'");
9799
0
                return MsgValueError;
9800
0
            }
9801
0
            // Sentinel = 'principal'
9802
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
9803
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
9804
0
                return MsgValueError;
9805
0
            }
9806
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(permissionType)))))) {
9807
0
                FatalError("Error deserializing 'nsCString'");
9808
0
                return MsgValueError;
9809
0
            }
9810
0
            // Sentinel = 'permissionType'
9811
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3770618267)))) {
9812
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
9813
0
                return MsgValueError;
9814
0
            }
9815
0
            (msg__).EndRead(iter__, (msg__).type());
9816
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9817
0
                FatalError("Transition error");
9818
0
                return MsgValueError;
9819
0
            }
9820
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9821
0
            nsresult rv;
9822
0
            if ((!(RecvRemovePermission(principal, permissionType, (&(rv)))))) {
9823
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9824
0
                // Error handled in mozilla::ipc::IPCResult
9825
0
                return MsgProcessingError;
9826
0
            }
9827
0
9828
0
            reply__ = PContent::Reply_RemovePermission(id__);
9829
0
9830
0
            WriteIPDLParam(reply__, this, rv);
9831
0
            // Sentinel = 'rv'
9832
0
            (reply__)->WriteSentinel(702481058);
9833
0
9834
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9835
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9836
0
            }
9837
0
            return MsgProcessed;
9838
0
        }
9839
0
    case PContent::Msg_GetA11yContentId__ID:
9840
0
        {
9841
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9842
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
9843
0
            }
9844
0
            AUTO_PROFILER_LABEL("PContent::Msg_GetA11yContentId", OTHER);
9845
0
9846
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
9847
0
                FatalError("Transition error");
9848
0
                return MsgValueError;
9849
0
            }
9850
0
            int32_t id__ = MSG_ROUTING_CONTROL;
9851
0
            uint32_t aContentId;
9852
0
            if ((!(RecvGetA11yContentId((&(aContentId)))))) {
9853
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
9854
0
                // Error handled in mozilla::ipc::IPCResult
9855
0
                return MsgProcessingError;
9856
0
            }
9857
0
9858
0
            reply__ = PContent::Reply_GetA11yContentId(id__);
9859
0
9860
0
            WriteIPDLParam(reply__, this, aContentId);
9861
0
            // Sentinel = 'aContentId'
9862
0
            (reply__)->WriteSentinel(2021670937);
9863
0
9864
0
            if (mozilla::ipc::LoggingEnabledFor("PContentParent")) {
9865
0
                mozilla::ipc::LogMessageForProtocol("PContentParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
9866
0
            }
9867
0
            return MsgProcessed;
9868
0
        }
9869
0
    default:
9870
0
        {
9871
0
            return MsgNotKnown;
9872
0
        }
9873
0
    }
9874
0
}
9875
9876
auto PContentParent::OnCallReceived(
9877
        const Message& msg__,
9878
        Message*& reply__) -> PContentParent::Result
9879
0
{
9880
0
    MOZ_ASSERT_UNREACHABLE("message protocol not supported");
9881
0
    return MsgNotKnown;
9882
0
}
9883
9884
auto PContentParent::GetProtocolTypeId() -> int32_t
9885
0
{
9886
0
    return PContentMsgStart;
9887
0
}
9888
9889
auto PContentParent::OnChannelClose() -> void
9890
0
{
9891
0
    DestroySubtree(NormalShutdown);
9892
0
    DeallocSubtree();
9893
0
    DeallocShmems();
9894
0
    DeallocPContentParent();
9895
0
}
9896
9897
auto PContentParent::OnChannelError() -> void
9898
0
{
9899
0
    DestroySubtree(AbnormalShutdown);
9900
0
    DeallocSubtree();
9901
0
    DeallocShmems();
9902
0
    DeallocPContentParent();
9903
0
}
9904
9905
auto PContentParent::DestroySubtree(ActorDestroyReason why) -> void
9906
0
{
9907
0
    ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
9908
0
9909
0
    {
9910
0
        // Recursively shutting down PBrowser kids
9911
0
        nsTArray<PBrowserParent*> kids;
9912
0
        // Accumulate kids into a stable structure to iterate over
9913
0
        ManagedPBrowserParent(kids);
9914
0
        for (auto& kid : kids) {
9915
0
            // Guarding against a child removing a sibling from the list during the iteration.
9916
0
            if ((mManagedPBrowserParent).Contains(kid)) {
9917
0
                (kid)->DestroySubtree(subtreewhy);
9918
0
            }
9919
0
        }
9920
0
    }
9921
0
    {
9922
0
        // Recursively shutting down PClientOpenWindowOp kids
9923
0
        nsTArray<PClientOpenWindowOpParent*> kids;
9924
0
        // Accumulate kids into a stable structure to iterate over
9925
0
        ManagedPClientOpenWindowOpParent(kids);
9926
0
        for (auto& kid : kids) {
9927
0
            // Guarding against a child removing a sibling from the list during the iteration.
9928
0
            if ((mManagedPClientOpenWindowOpParent).Contains(kid)) {
9929
0
                (kid)->DestroySubtree(subtreewhy);
9930
0
            }
9931
0
        }
9932
0
    }
9933
0
    {
9934
0
        // Recursively shutting down PContentPermissionRequest kids
9935
0
        nsTArray<PContentPermissionRequestParent*> kids;
9936
0
        // Accumulate kids into a stable structure to iterate over
9937
0
        ManagedPContentPermissionRequestParent(kids);
9938
0
        for (auto& kid : kids) {
9939
0
            // Guarding against a child removing a sibling from the list during the iteration.
9940
0
            if ((mManagedPContentPermissionRequestParent).Contains(kid)) {
9941
0
                (kid)->DestroySubtree(subtreewhy);
9942
0
            }
9943
0
        }
9944
0
    }
9945
0
    {
9946
0
        // Recursively shutting down PCycleCollectWithLogs kids
9947
0
        nsTArray<PCycleCollectWithLogsParent*> kids;
9948
0
        // Accumulate kids into a stable structure to iterate over
9949
0
        ManagedPCycleCollectWithLogsParent(kids);
9950
0
        for (auto& kid : kids) {
9951
0
            // Guarding against a child removing a sibling from the list during the iteration.
9952
0
            if ((mManagedPCycleCollectWithLogsParent).Contains(kid)) {
9953
0
                (kid)->DestroySubtree(subtreewhy);
9954
0
            }
9955
0
        }
9956
0
    }
9957
0
    {
9958
0
        // Recursively shutting down PPSMContentDownloader kids
9959
0
        nsTArray<PPSMContentDownloaderParent*> kids;
9960
0
        // Accumulate kids into a stable structure to iterate over
9961
0
        ManagedPPSMContentDownloaderParent(kids);
9962
0
        for (auto& kid : kids) {
9963
0
            // Guarding against a child removing a sibling from the list during the iteration.
9964
0
            if ((mManagedPPSMContentDownloaderParent).Contains(kid)) {
9965
0
                (kid)->DestroySubtree(subtreewhy);
9966
0
            }
9967
0
        }
9968
0
    }
9969
0
    {
9970
0
        // Recursively shutting down PExternalHelperApp kids
9971
0
        nsTArray<PExternalHelperAppParent*> kids;
9972
0
        // Accumulate kids into a stable structure to iterate over
9973
0
        ManagedPExternalHelperAppParent(kids);
9974
0
        for (auto& kid : kids) {
9975
0
            // Guarding against a child removing a sibling from the list during the iteration.
9976
0
            if ((mManagedPExternalHelperAppParent).Contains(kid)) {
9977
0
                (kid)->DestroySubtree(subtreewhy);
9978
0
            }
9979
0
        }
9980
0
    }
9981
0
    {
9982
0
        // Recursively shutting down PFileDescriptorSet kids
9983
0
        nsTArray<PFileDescriptorSetParent*> kids;
9984
0
        // Accumulate kids into a stable structure to iterate over
9985
0
        ManagedPFileDescriptorSetParent(kids);
9986
0
        for (auto& kid : kids) {
9987
0
            // Guarding against a child removing a sibling from the list during the iteration.
9988
0
            if ((mManagedPFileDescriptorSetParent).Contains(kid)) {
9989
0
                (kid)->DestroySubtree(subtreewhy);
9990
0
            }
9991
0
        }
9992
0
    }
9993
0
    {
9994
0
        // Recursively shutting down PHal kids
9995
0
        nsTArray<PHalParent*> kids;
9996
0
        // Accumulate kids into a stable structure to iterate over
9997
0
        ManagedPHalParent(kids);
9998
0
        for (auto& kid : kids) {
9999
0
            // Guarding against a child removing a sibling from the list during the iteration.
10000
0
            if ((mManagedPHalParent).Contains(kid)) {
10001
0
                (kid)->DestroySubtree(subtreewhy);
10002
0
            }
10003
0
        }
10004
0
    }
10005
0
    {
10006
0
        // Recursively shutting down PHandlerService kids
10007
0
        nsTArray<PHandlerServiceParent*> kids;
10008
0
        // Accumulate kids into a stable structure to iterate over
10009
0
        ManagedPHandlerServiceParent(kids);
10010
0
        for (auto& kid : kids) {
10011
0
            // Guarding against a child removing a sibling from the list during the iteration.
10012
0
            if ((mManagedPHandlerServiceParent).Contains(kid)) {
10013
0
                (kid)->DestroySubtree(subtreewhy);
10014
0
            }
10015
0
        }
10016
0
    }
10017
0
    {
10018
0
        // Recursively shutting down PHeapSnapshotTempFileHelper kids
10019
0
        nsTArray<PHeapSnapshotTempFileHelperParent*> kids;
10020
0
        // Accumulate kids into a stable structure to iterate over
10021
0
        ManagedPHeapSnapshotTempFileHelperParent(kids);
10022
0
        for (auto& kid : kids) {
10023
0
            // Guarding against a child removing a sibling from the list during the iteration.
10024
0
            if ((mManagedPHeapSnapshotTempFileHelperParent).Contains(kid)) {
10025
0
                (kid)->DestroySubtree(subtreewhy);
10026
0
            }
10027
0
        }
10028
0
    }
10029
0
    {
10030
0
        // Recursively shutting down PIPCBlobInputStream kids
10031
0
        nsTArray<PIPCBlobInputStreamParent*> kids;
10032
0
        // Accumulate kids into a stable structure to iterate over
10033
0
        ManagedPIPCBlobInputStreamParent(kids);
10034
0
        for (auto& kid : kids) {
10035
0
            // Guarding against a child removing a sibling from the list during the iteration.
10036
0
            if ((mManagedPIPCBlobInputStreamParent).Contains(kid)) {
10037
0
                (kid)->DestroySubtree(subtreewhy);
10038
0
            }
10039
0
        }
10040
0
    }
10041
0
    {
10042
0
        // Recursively shutting down PMedia kids
10043
0
        nsTArray<PMediaParent*> kids;
10044
0
        // Accumulate kids into a stable structure to iterate over
10045
0
        ManagedPMediaParent(kids);
10046
0
        for (auto& kid : kids) {
10047
0
            // Guarding against a child removing a sibling from the list during the iteration.
10048
0
            if ((mManagedPMediaParent).Contains(kid)) {
10049
0
                (kid)->DestroySubtree(subtreewhy);
10050
0
            }
10051
0
        }
10052
0
    }
10053
0
    {
10054
0
        // Recursively shutting down PNecko kids
10055
0
        nsTArray<PNeckoParent*> kids;
10056
0
        // Accumulate kids into a stable structure to iterate over
10057
0
        ManagedPNeckoParent(kids);
10058
0
        for (auto& kid : kids) {
10059
0
            // Guarding against a child removing a sibling from the list during the iteration.
10060
0
            if ((mManagedPNeckoParent).Contains(kid)) {
10061
0
                (kid)->DestroySubtree(subtreewhy);
10062
0
            }
10063
0
        }
10064
0
    }
10065
0
    {
10066
0
        // Recursively shutting down POfflineCacheUpdate kids
10067
0
        nsTArray<POfflineCacheUpdateParent*> kids;
10068
0
        // Accumulate kids into a stable structure to iterate over
10069
0
        ManagedPOfflineCacheUpdateParent(kids);
10070
0
        for (auto& kid : kids) {
10071
0
            // Guarding against a child removing a sibling from the list during the iteration.
10072
0
            if ((mManagedPOfflineCacheUpdateParent).Contains(kid)) {
10073
0
                (kid)->DestroySubtree(subtreewhy);
10074
0
            }
10075
0
        }
10076
0
    }
10077
0
    {
10078
0
        // Recursively shutting down PPrinting kids
10079
0
        nsTArray<PPrintingParent*> kids;
10080
0
        // Accumulate kids into a stable structure to iterate over
10081
0
        ManagedPPrintingParent(kids);
10082
0
        for (auto& kid : kids) {
10083
0
            // Guarding against a child removing a sibling from the list during the iteration.
10084
0
            if ((mManagedPPrintingParent).Contains(kid)) {
10085
0
                (kid)->DestroySubtree(subtreewhy);
10086
0
            }
10087
0
        }
10088
0
    }
10089
0
    {
10090
0
        // Recursively shutting down PChildToParentStream kids
10091
0
        nsTArray<PChildToParentStreamParent*> kids;
10092
0
        // Accumulate kids into a stable structure to iterate over
10093
0
        ManagedPChildToParentStreamParent(kids);
10094
0
        for (auto& kid : kids) {
10095
0
            // Guarding against a child removing a sibling from the list during the iteration.
10096
0
            if ((mManagedPChildToParentStreamParent).Contains(kid)) {
10097
0
                (kid)->DestroySubtree(subtreewhy);
10098
0
            }
10099
0
        }
10100
0
    }
10101
0
    {
10102
0
        // Recursively shutting down PParentToChildStream kids
10103
0
        nsTArray<PParentToChildStreamParent*> kids;
10104
0
        // Accumulate kids into a stable structure to iterate over
10105
0
        ManagedPParentToChildStreamParent(kids);
10106
0
        for (auto& kid : kids) {
10107
0
            // Guarding against a child removing a sibling from the list during the iteration.
10108
0
            if ((mManagedPParentToChildStreamParent).Contains(kid)) {
10109
0
                (kid)->DestroySubtree(subtreewhy);
10110
0
            }
10111
0
        }
10112
0
    }
10113
0
    {
10114
0
        // Recursively shutting down PSpeechSynthesis kids
10115
0
        nsTArray<PSpeechSynthesisParent*> kids;
10116
0
        // Accumulate kids into a stable structure to iterate over
10117
0
        ManagedPSpeechSynthesisParent(kids);
10118
0
        for (auto& kid : kids) {
10119
0
            // Guarding against a child removing a sibling from the list during the iteration.
10120
0
            if ((mManagedPSpeechSynthesisParent).Contains(kid)) {
10121
0
                (kid)->DestroySubtree(subtreewhy);
10122
0
            }
10123
0
        }
10124
0
    }
10125
0
    {
10126
0
        // Recursively shutting down PTestShell kids
10127
0
        nsTArray<PTestShellParent*> kids;
10128
0
        // Accumulate kids into a stable structure to iterate over
10129
0
        ManagedPTestShellParent(kids);
10130
0
        for (auto& kid : kids) {
10131
0
            // Guarding against a child removing a sibling from the list during the iteration.
10132
0
            if ((mManagedPTestShellParent).Contains(kid)) {
10133
0
                (kid)->DestroySubtree(subtreewhy);
10134
0
            }
10135
0
        }
10136
0
    }
10137
0
    {
10138
0
        // Recursively shutting down PJavaScript kids
10139
0
        nsTArray<PJavaScriptParent*> kids;
10140
0
        // Accumulate kids into a stable structure to iterate over
10141
0
        ManagedPJavaScriptParent(kids);
10142
0
        for (auto& kid : kids) {
10143
0
            // Guarding against a child removing a sibling from the list during the iteration.
10144
0
            if ((mManagedPJavaScriptParent).Contains(kid)) {
10145
0
                (kid)->DestroySubtree(subtreewhy);
10146
0
            }
10147
0
        }
10148
0
    }
10149
0
    {
10150
0
        // Recursively shutting down PRemoteSpellcheckEngine kids
10151
0
        nsTArray<PRemoteSpellcheckEngineParent*> kids;
10152
0
        // Accumulate kids into a stable structure to iterate over
10153
0
        ManagedPRemoteSpellcheckEngineParent(kids);
10154
0
        for (auto& kid : kids) {
10155
0
            // Guarding against a child removing a sibling from the list during the iteration.
10156
0
            if ((mManagedPRemoteSpellcheckEngineParent).Contains(kid)) {
10157
0
                (kid)->DestroySubtree(subtreewhy);
10158
0
            }
10159
0
        }
10160
0
    }
10161
0
    {
10162
0
        // Recursively shutting down PWebBrowserPersistDocument kids
10163
0
        nsTArray<PWebBrowserPersistDocumentParent*> kids;
10164
0
        // Accumulate kids into a stable structure to iterate over
10165
0
        ManagedPWebBrowserPersistDocumentParent(kids);
10166
0
        for (auto& kid : kids) {
10167
0
            // Guarding against a child removing a sibling from the list during the iteration.
10168
0
            if ((mManagedPWebBrowserPersistDocumentParent).Contains(kid)) {
10169
0
                (kid)->DestroySubtree(subtreewhy);
10170
0
            }
10171
0
        }
10172
0
    }
10173
0
    {
10174
0
        // Recursively shutting down PWebrtcGlobal kids
10175
0
        nsTArray<PWebrtcGlobalParent*> kids;
10176
0
        // Accumulate kids into a stable structure to iterate over
10177
0
        ManagedPWebrtcGlobalParent(kids);
10178
0
        for (auto& kid : kids) {
10179
0
            // Guarding against a child removing a sibling from the list during the iteration.
10180
0
            if ((mManagedPWebrtcGlobalParent).Contains(kid)) {
10181
0
                (kid)->DestroySubtree(subtreewhy);
10182
0
            }
10183
0
        }
10184
0
    }
10185
0
    {
10186
0
        // Recursively shutting down PPresentation kids
10187
0
        nsTArray<PPresentationParent*> kids;
10188
0
        // Accumulate kids into a stable structure to iterate over
10189
0
        ManagedPPresentationParent(kids);
10190
0
        for (auto& kid : kids) {
10191
0
            // Guarding against a child removing a sibling from the list during the iteration.
10192
0
            if ((mManagedPPresentationParent).Contains(kid)) {
10193
0
                (kid)->DestroySubtree(subtreewhy);
10194
0
            }
10195
0
        }
10196
0
    }
10197
0
    {
10198
0
        // Recursively shutting down PURLClassifier kids
10199
0
        nsTArray<PURLClassifierParent*> kids;
10200
0
        // Accumulate kids into a stable structure to iterate over
10201
0
        ManagedPURLClassifierParent(kids);
10202
0
        for (auto& kid : kids) {
10203
0
            // Guarding against a child removing a sibling from the list during the iteration.
10204
0
            if ((mManagedPURLClassifierParent).Contains(kid)) {
10205
0
                (kid)->DestroySubtree(subtreewhy);
10206
0
            }
10207
0
        }
10208
0
    }
10209
0
    {
10210
0
        // Recursively shutting down PURLClassifierLocal kids
10211
0
        nsTArray<PURLClassifierLocalParent*> kids;
10212
0
        // Accumulate kids into a stable structure to iterate over
10213
0
        ManagedPURLClassifierLocalParent(kids);
10214
0
        for (auto& kid : kids) {
10215
0
            // Guarding against a child removing a sibling from the list during the iteration.
10216
0
            if ((mManagedPURLClassifierLocalParent).Contains(kid)) {
10217
0
                (kid)->DestroySubtree(subtreewhy);
10218
0
            }
10219
0
        }
10220
0
    }
10221
0
    {
10222
0
        // Recursively shutting down PScriptCache kids
10223
0
        nsTArray<PScriptCacheParent*> kids;
10224
0
        // Accumulate kids into a stable structure to iterate over
10225
0
        ManagedPScriptCacheParent(kids);
10226
0
        for (auto& kid : kids) {
10227
0
            // Guarding against a child removing a sibling from the list during the iteration.
10228
0
            if ((mManagedPScriptCacheParent).Contains(kid)) {
10229
0
                (kid)->DestroySubtree(subtreewhy);
10230
0
            }
10231
0
        }
10232
0
    }
10233
0
    {
10234
0
        // Recursively shutting down PLoginReputation kids
10235
0
        nsTArray<PLoginReputationParent*> kids;
10236
0
        // Accumulate kids into a stable structure to iterate over
10237
0
        ManagedPLoginReputationParent(kids);
10238
0
        for (auto& kid : kids) {
10239
0
            // Guarding against a child removing a sibling from the list during the iteration.
10240
0
            if ((mManagedPLoginReputationParent).Contains(kid)) {
10241
0
                (kid)->DestroySubtree(subtreewhy);
10242
0
            }
10243
0
        }
10244
0
    }
10245
0
10246
0
    // Reject owning pending responses.
10247
0
    (GetIPCChannel())->RejectPendingResponsesForActor(this);
10248
0
10249
0
    // Finally, destroy "us".
10250
0
    ActorDestroy(why);
10251
0
}
10252
10253
auto PContentParent::DeallocSubtree() -> void
10254
0
{
10255
0
    {
10256
0
        // Recursively deleting PBrowser kids
10257
0
        for (auto iter = (mManagedPBrowserParent).Iter(); (!((iter).Done())); (iter).Next()) {
10258
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10259
0
        }
10260
0
10261
0
        for (auto iter = (mManagedPBrowserParent).Iter(); (!((iter).Done())); (iter).Next()) {
10262
0
            DeallocPBrowserParent(((iter).Get())->GetKey());
10263
0
        }
10264
0
        (mManagedPBrowserParent).Clear();
10265
0
    }
10266
0
    {
10267
0
        // Recursively deleting PClientOpenWindowOp kids
10268
0
        for (auto iter = (mManagedPClientOpenWindowOpParent).Iter(); (!((iter).Done())); (iter).Next()) {
10269
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10270
0
        }
10271
0
10272
0
        for (auto iter = (mManagedPClientOpenWindowOpParent).Iter(); (!((iter).Done())); (iter).Next()) {
10273
0
            DeallocPClientOpenWindowOpParent(((iter).Get())->GetKey());
10274
0
        }
10275
0
        (mManagedPClientOpenWindowOpParent).Clear();
10276
0
    }
10277
0
    {
10278
0
        // Recursively deleting PContentPermissionRequest kids
10279
0
        for (auto iter = (mManagedPContentPermissionRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
10280
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10281
0
        }
10282
0
10283
0
        for (auto iter = (mManagedPContentPermissionRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
10284
0
            DeallocPContentPermissionRequestParent(((iter).Get())->GetKey());
10285
0
        }
10286
0
        (mManagedPContentPermissionRequestParent).Clear();
10287
0
    }
10288
0
    {
10289
0
        // Recursively deleting PCycleCollectWithLogs kids
10290
0
        for (auto iter = (mManagedPCycleCollectWithLogsParent).Iter(); (!((iter).Done())); (iter).Next()) {
10291
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10292
0
        }
10293
0
10294
0
        for (auto iter = (mManagedPCycleCollectWithLogsParent).Iter(); (!((iter).Done())); (iter).Next()) {
10295
0
            DeallocPCycleCollectWithLogsParent(((iter).Get())->GetKey());
10296
0
        }
10297
0
        (mManagedPCycleCollectWithLogsParent).Clear();
10298
0
    }
10299
0
    {
10300
0
        // Recursively deleting PPSMContentDownloader kids
10301
0
        for (auto iter = (mManagedPPSMContentDownloaderParent).Iter(); (!((iter).Done())); (iter).Next()) {
10302
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10303
0
        }
10304
0
10305
0
        for (auto iter = (mManagedPPSMContentDownloaderParent).Iter(); (!((iter).Done())); (iter).Next()) {
10306
0
            DeallocPPSMContentDownloaderParent(((iter).Get())->GetKey());
10307
0
        }
10308
0
        (mManagedPPSMContentDownloaderParent).Clear();
10309
0
    }
10310
0
    {
10311
0
        // Recursively deleting PExternalHelperApp kids
10312
0
        for (auto iter = (mManagedPExternalHelperAppParent).Iter(); (!((iter).Done())); (iter).Next()) {
10313
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10314
0
        }
10315
0
10316
0
        for (auto iter = (mManagedPExternalHelperAppParent).Iter(); (!((iter).Done())); (iter).Next()) {
10317
0
            DeallocPExternalHelperAppParent(((iter).Get())->GetKey());
10318
0
        }
10319
0
        (mManagedPExternalHelperAppParent).Clear();
10320
0
    }
10321
0
    {
10322
0
        // Recursively deleting PFileDescriptorSet kids
10323
0
        for (auto iter = (mManagedPFileDescriptorSetParent).Iter(); (!((iter).Done())); (iter).Next()) {
10324
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10325
0
        }
10326
0
10327
0
        for (auto iter = (mManagedPFileDescriptorSetParent).Iter(); (!((iter).Done())); (iter).Next()) {
10328
0
            DeallocPFileDescriptorSetParent(((iter).Get())->GetKey());
10329
0
        }
10330
0
        (mManagedPFileDescriptorSetParent).Clear();
10331
0
    }
10332
0
    {
10333
0
        // Recursively deleting PHal kids
10334
0
        for (auto iter = (mManagedPHalParent).Iter(); (!((iter).Done())); (iter).Next()) {
10335
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10336
0
        }
10337
0
10338
0
        for (auto iter = (mManagedPHalParent).Iter(); (!((iter).Done())); (iter).Next()) {
10339
0
            DeallocPHalParent(((iter).Get())->GetKey());
10340
0
        }
10341
0
        (mManagedPHalParent).Clear();
10342
0
    }
10343
0
    {
10344
0
        // Recursively deleting PHandlerService kids
10345
0
        for (auto iter = (mManagedPHandlerServiceParent).Iter(); (!((iter).Done())); (iter).Next()) {
10346
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10347
0
        }
10348
0
10349
0
        for (auto iter = (mManagedPHandlerServiceParent).Iter(); (!((iter).Done())); (iter).Next()) {
10350
0
            DeallocPHandlerServiceParent(((iter).Get())->GetKey());
10351
0
        }
10352
0
        (mManagedPHandlerServiceParent).Clear();
10353
0
    }
10354
0
    {
10355
0
        // Recursively deleting PHeapSnapshotTempFileHelper kids
10356
0
        for (auto iter = (mManagedPHeapSnapshotTempFileHelperParent).Iter(); (!((iter).Done())); (iter).Next()) {
10357
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10358
0
        }
10359
0
10360
0
        for (auto iter = (mManagedPHeapSnapshotTempFileHelperParent).Iter(); (!((iter).Done())); (iter).Next()) {
10361
0
            DeallocPHeapSnapshotTempFileHelperParent(((iter).Get())->GetKey());
10362
0
        }
10363
0
        (mManagedPHeapSnapshotTempFileHelperParent).Clear();
10364
0
    }
10365
0
    {
10366
0
        // Recursively deleting PIPCBlobInputStream kids
10367
0
        for (auto iter = (mManagedPIPCBlobInputStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
10368
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10369
0
        }
10370
0
10371
0
        for (auto iter = (mManagedPIPCBlobInputStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
10372
0
            DeallocPIPCBlobInputStreamParent(((iter).Get())->GetKey());
10373
0
        }
10374
0
        (mManagedPIPCBlobInputStreamParent).Clear();
10375
0
    }
10376
0
    {
10377
0
        // Recursively deleting PMedia kids
10378
0
        for (auto iter = (mManagedPMediaParent).Iter(); (!((iter).Done())); (iter).Next()) {
10379
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10380
0
        }
10381
0
10382
0
        for (auto iter = (mManagedPMediaParent).Iter(); (!((iter).Done())); (iter).Next()) {
10383
0
            DeallocPMediaParent(((iter).Get())->GetKey());
10384
0
        }
10385
0
        (mManagedPMediaParent).Clear();
10386
0
    }
10387
0
    {
10388
0
        // Recursively deleting PNecko kids
10389
0
        for (auto iter = (mManagedPNeckoParent).Iter(); (!((iter).Done())); (iter).Next()) {
10390
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10391
0
        }
10392
0
10393
0
        for (auto iter = (mManagedPNeckoParent).Iter(); (!((iter).Done())); (iter).Next()) {
10394
0
            DeallocPNeckoParent(((iter).Get())->GetKey());
10395
0
        }
10396
0
        (mManagedPNeckoParent).Clear();
10397
0
    }
10398
0
    {
10399
0
        // Recursively deleting POfflineCacheUpdate kids
10400
0
        for (auto iter = (mManagedPOfflineCacheUpdateParent).Iter(); (!((iter).Done())); (iter).Next()) {
10401
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10402
0
        }
10403
0
10404
0
        for (auto iter = (mManagedPOfflineCacheUpdateParent).Iter(); (!((iter).Done())); (iter).Next()) {
10405
0
            DeallocPOfflineCacheUpdateParent(((iter).Get())->GetKey());
10406
0
        }
10407
0
        (mManagedPOfflineCacheUpdateParent).Clear();
10408
0
    }
10409
0
    {
10410
0
        // Recursively deleting PPrinting kids
10411
0
        for (auto iter = (mManagedPPrintingParent).Iter(); (!((iter).Done())); (iter).Next()) {
10412
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10413
0
        }
10414
0
10415
0
        for (auto iter = (mManagedPPrintingParent).Iter(); (!((iter).Done())); (iter).Next()) {
10416
0
            DeallocPPrintingParent(((iter).Get())->GetKey());
10417
0
        }
10418
0
        (mManagedPPrintingParent).Clear();
10419
0
    }
10420
0
    {
10421
0
        // Recursively deleting PChildToParentStream kids
10422
0
        for (auto iter = (mManagedPChildToParentStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
10423
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10424
0
        }
10425
0
10426
0
        for (auto iter = (mManagedPChildToParentStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
10427
0
            DeallocPChildToParentStreamParent(((iter).Get())->GetKey());
10428
0
        }
10429
0
        (mManagedPChildToParentStreamParent).Clear();
10430
0
    }
10431
0
    {
10432
0
        // Recursively deleting PParentToChildStream kids
10433
0
        for (auto iter = (mManagedPParentToChildStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
10434
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10435
0
        }
10436
0
10437
0
        for (auto iter = (mManagedPParentToChildStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
10438
0
            DeallocPParentToChildStreamParent(((iter).Get())->GetKey());
10439
0
        }
10440
0
        (mManagedPParentToChildStreamParent).Clear();
10441
0
    }
10442
0
    {
10443
0
        // Recursively deleting PSpeechSynthesis kids
10444
0
        for (auto iter = (mManagedPSpeechSynthesisParent).Iter(); (!((iter).Done())); (iter).Next()) {
10445
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10446
0
        }
10447
0
10448
0
        for (auto iter = (mManagedPSpeechSynthesisParent).Iter(); (!((iter).Done())); (iter).Next()) {
10449
0
            DeallocPSpeechSynthesisParent(((iter).Get())->GetKey());
10450
0
        }
10451
0
        (mManagedPSpeechSynthesisParent).Clear();
10452
0
    }
10453
0
    {
10454
0
        // Recursively deleting PTestShell kids
10455
0
        for (auto iter = (mManagedPTestShellParent).Iter(); (!((iter).Done())); (iter).Next()) {
10456
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10457
0
        }
10458
0
10459
0
        for (auto iter = (mManagedPTestShellParent).Iter(); (!((iter).Done())); (iter).Next()) {
10460
0
            DeallocPTestShellParent(((iter).Get())->GetKey());
10461
0
        }
10462
0
        (mManagedPTestShellParent).Clear();
10463
0
    }
10464
0
    {
10465
0
        // Recursively deleting PJavaScript kids
10466
0
        for (auto iter = (mManagedPJavaScriptParent).Iter(); (!((iter).Done())); (iter).Next()) {
10467
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10468
0
        }
10469
0
10470
0
        for (auto iter = (mManagedPJavaScriptParent).Iter(); (!((iter).Done())); (iter).Next()) {
10471
0
            DeallocPJavaScriptParent(((iter).Get())->GetKey());
10472
0
        }
10473
0
        (mManagedPJavaScriptParent).Clear();
10474
0
    }
10475
0
    {
10476
0
        // Recursively deleting PRemoteSpellcheckEngine kids
10477
0
        for (auto iter = (mManagedPRemoteSpellcheckEngineParent).Iter(); (!((iter).Done())); (iter).Next()) {
10478
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10479
0
        }
10480
0
10481
0
        for (auto iter = (mManagedPRemoteSpellcheckEngineParent).Iter(); (!((iter).Done())); (iter).Next()) {
10482
0
            DeallocPRemoteSpellcheckEngineParent(((iter).Get())->GetKey());
10483
0
        }
10484
0
        (mManagedPRemoteSpellcheckEngineParent).Clear();
10485
0
    }
10486
0
    {
10487
0
        // Recursively deleting PWebBrowserPersistDocument kids
10488
0
        for (auto iter = (mManagedPWebBrowserPersistDocumentParent).Iter(); (!((iter).Done())); (iter).Next()) {
10489
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10490
0
        }
10491
0
10492
0
        for (auto iter = (mManagedPWebBrowserPersistDocumentParent).Iter(); (!((iter).Done())); (iter).Next()) {
10493
0
            DeallocPWebBrowserPersistDocumentParent(((iter).Get())->GetKey());
10494
0
        }
10495
0
        (mManagedPWebBrowserPersistDocumentParent).Clear();
10496
0
    }
10497
0
    {
10498
0
        // Recursively deleting PWebrtcGlobal kids
10499
0
        for (auto iter = (mManagedPWebrtcGlobalParent).Iter(); (!((iter).Done())); (iter).Next()) {
10500
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10501
0
        }
10502
0
10503
0
        for (auto iter = (mManagedPWebrtcGlobalParent).Iter(); (!((iter).Done())); (iter).Next()) {
10504
0
            DeallocPWebrtcGlobalParent(((iter).Get())->GetKey());
10505
0
        }
10506
0
        (mManagedPWebrtcGlobalParent).Clear();
10507
0
    }
10508
0
    {
10509
0
        // Recursively deleting PPresentation kids
10510
0
        for (auto iter = (mManagedPPresentationParent).Iter(); (!((iter).Done())); (iter).Next()) {
10511
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10512
0
        }
10513
0
10514
0
        for (auto iter = (mManagedPPresentationParent).Iter(); (!((iter).Done())); (iter).Next()) {
10515
0
            DeallocPPresentationParent(((iter).Get())->GetKey());
10516
0
        }
10517
0
        (mManagedPPresentationParent).Clear();
10518
0
    }
10519
0
    {
10520
0
        // Recursively deleting PURLClassifier kids
10521
0
        for (auto iter = (mManagedPURLClassifierParent).Iter(); (!((iter).Done())); (iter).Next()) {
10522
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10523
0
        }
10524
0
10525
0
        for (auto iter = (mManagedPURLClassifierParent).Iter(); (!((iter).Done())); (iter).Next()) {
10526
0
            DeallocPURLClassifierParent(((iter).Get())->GetKey());
10527
0
        }
10528
0
        (mManagedPURLClassifierParent).Clear();
10529
0
    }
10530
0
    {
10531
0
        // Recursively deleting PURLClassifierLocal kids
10532
0
        for (auto iter = (mManagedPURLClassifierLocalParent).Iter(); (!((iter).Done())); (iter).Next()) {
10533
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10534
0
        }
10535
0
10536
0
        for (auto iter = (mManagedPURLClassifierLocalParent).Iter(); (!((iter).Done())); (iter).Next()) {
10537
0
            DeallocPURLClassifierLocalParent(((iter).Get())->GetKey());
10538
0
        }
10539
0
        (mManagedPURLClassifierLocalParent).Clear();
10540
0
    }
10541
0
    {
10542
0
        // Recursively deleting PScriptCache kids
10543
0
        for (auto iter = (mManagedPScriptCacheParent).Iter(); (!((iter).Done())); (iter).Next()) {
10544
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10545
0
        }
10546
0
10547
0
        for (auto iter = (mManagedPScriptCacheParent).Iter(); (!((iter).Done())); (iter).Next()) {
10548
0
            DeallocPScriptCacheParent(((iter).Get())->GetKey());
10549
0
        }
10550
0
        (mManagedPScriptCacheParent).Clear();
10551
0
    }
10552
0
    {
10553
0
        // Recursively deleting PLoginReputation kids
10554
0
        for (auto iter = (mManagedPLoginReputationParent).Iter(); (!((iter).Done())); (iter).Next()) {
10555
0
            (((iter).Get())->GetKey())->DeallocSubtree();
10556
0
        }
10557
0
10558
0
        for (auto iter = (mManagedPLoginReputationParent).Iter(); (!((iter).Done())); (iter).Next()) {
10559
0
            DeallocPLoginReputationParent(((iter).Get())->GetKey());
10560
0
        }
10561
0
        (mManagedPLoginReputationParent).Clear();
10562
0
    }
10563
0
}
10564
10565
auto PContentParent::DeallocPContentParent() -> void
10566
0
{
10567
0
}
10568
10569
10570
10571
} // namespace dom
10572
} // namespace mozilla
10573
namespace mozilla {
10574
namespace ipc {
10575
auto IPDLParamTraits<mozilla::dom::PContentParent>::Write(
10576
        IPC::Message* aMsg,
10577
        mozilla::ipc::IProtocol* aActor,
10578
        const paramType& aVar) -> void
10579
0
{
10580
0
    int32_t id;
10581
0
    if ((!(aVar))) {
10582
0
        id = 0;
10583
0
    }
10584
0
    else {
10585
0
        id = (aVar)->Id();
10586
0
        if ((1) == (id)) {
10587
0
            (aActor)->FatalError("actor has been |delete|d");
10588
0
        }
10589
0
    }
10590
0
    WriteIPDLParam(aMsg, aActor, id);
10591
0
}
10592
10593
auto IPDLParamTraits<mozilla::dom::PContentParent>::Read(
10594
        const IPC::Message* aMsg,
10595
        PickleIterator* aIter,
10596
        mozilla::ipc::IProtocol* aActor,
10597
        paramType* aVar) -> bool
10598
0
{
10599
0
    mozilla::Maybe<mozilla::ipc::IProtocol*> actor = (aActor)->ReadActor(aMsg, aIter, true, "PContent", PContentMsgStart);
10600
0
    if ((actor).isNothing()) {
10601
0
        return false;
10602
0
    }
10603
0
10604
0
    (*(aVar)) = static_cast<mozilla::dom::PContentParent*>((actor).value());
10605
0
    return true;
10606
0
}
10607
10608
} // namespace ipc
10609
} // namespace mozilla