Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/PBackgroundParent.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/ipc/PBackgroundParent.h"
8
9
#include "mozilla/dom/asmjscache/PAsmJSCacheEntryParent.h"
10
#include "mozilla/dom/indexedDB/PBackgroundIDBFactoryParent.h"
11
#include "mozilla/dom/indexedDB/PBackgroundIndexedDBUtilsParent.h"
12
#include "mozilla/dom/PBackgroundSDBConnectionParent.h"
13
#include "mozilla/dom/PBackgroundLocalStorageCacheParent.h"
14
#include "mozilla/dom/PBackgroundStorageParent.h"
15
#include "mozilla/ipc/PBackgroundTestParent.h"
16
#include "mozilla/dom/PBroadcastChannelParent.h"
17
#include "mozilla/dom/cache/PCacheParent.h"
18
#include "mozilla/dom/cache/PCacheStorageParent.h"
19
#include "mozilla/dom/cache/PCacheStreamControlParent.h"
20
#include "mozilla/dom/PClientManagerParent.h"
21
#include "mozilla/ipc/PFileDescriptorSetParent.h"
22
#include "mozilla/dom/PFileSystemRequestParent.h"
23
#include "mozilla/dom/PGamepadEventChannelParent.h"
24
#include "mozilla/dom/PGamepadTestChannelParent.h"
25
#include "mozilla/net/PHttpBackgroundChannelParent.h"
26
#include "mozilla/ipc/PIPCBlobInputStreamParent.h"
27
#include "mozilla/ipc/PPendingIPCBlobParent.h"
28
#include "mozilla/ipc/PTemporaryIPCBlobParent.h"
29
#include "mozilla/dom/PMessagePortParent.h"
30
#include "mozilla/camera/PCamerasParent.h"
31
#include "mozilla/dom/PMIDIManagerParent.h"
32
#include "mozilla/dom/PMIDIPortParent.h"
33
#include "mozilla/dom/quota/PQuotaParent.h"
34
#include "mozilla/ipc/PChildToParentStreamParent.h"
35
#include "mozilla/ipc/PParentToChildStreamParent.h"
36
#include "mozilla/dom/PServiceWorkerParent.h"
37
#include "mozilla/dom/PServiceWorkerContainerParent.h"
38
#include "mozilla/dom/PServiceWorkerManagerParent.h"
39
#include "mozilla/dom/PServiceWorkerRegistrationParent.h"
40
#include "mozilla/dom/PWebAuthnTransactionParent.h"
41
#include "mozilla/net/PUDPSocketParent.h"
42
#include "mozilla/layout/PVsyncParent.h"
43
44
#include "nsIFile.h"
45
#include "GeckoProfiler.h"
46
47
namespace mozilla {
48
namespace ipc {
49
50
51
auto PBackgroundParent::RecvPBackgroundTestConstructor(
52
        PBackgroundTestParent* actor,
53
        const nsCString& testArg) -> mozilla::ipc::IPCResult
54
0
{
55
0
    return IPC_OK();
56
0
}
57
58
auto PBackgroundParent::RecvPBackgroundIDBFactoryConstructor(
59
        PBackgroundIDBFactoryParent* actor,
60
        const LoggingInfo& loggingInfo) -> mozilla::ipc::IPCResult
61
0
{
62
0
    return IPC_OK();
63
0
}
64
65
auto PBackgroundParent::RecvPBackgroundIndexedDBUtilsConstructor(PBackgroundIndexedDBUtilsParent* actor) -> mozilla::ipc::IPCResult
66
0
{
67
0
    return IPC_OK();
68
0
}
69
70
auto PBackgroundParent::RecvPBackgroundSDBConnectionConstructor(
71
        PBackgroundSDBConnectionParent* actor,
72
        const PrincipalInfo& principalInfo) -> mozilla::ipc::IPCResult
73
0
{
74
0
    return IPC_OK();
75
0
}
76
77
auto PBackgroundParent::RecvPBackgroundLocalStorageCacheConstructor(
78
        PBackgroundLocalStorageCacheParent* actor,
79
        const PrincipalInfo& principalInfo,
80
        const nsCString& originKey,
81
        const uint32_t& privateBrowsingId) -> mozilla::ipc::IPCResult
82
0
{
83
0
    return IPC_OK();
84
0
}
85
86
auto PBackgroundParent::RecvPBackgroundStorageConstructor(
87
        PBackgroundStorageParent* actor,
88
        const nsString& profilePath) -> mozilla::ipc::IPCResult
89
0
{
90
0
    return IPC_OK();
91
0
}
92
93
auto PBackgroundParent::RecvPVsyncConstructor(PVsyncParent* actor) -> mozilla::ipc::IPCResult
94
0
{
95
0
    return IPC_OK();
96
0
}
97
98
auto PBackgroundParent::RecvPCamerasConstructor(PCamerasParent* actor) -> mozilla::ipc::IPCResult
99
0
{
100
0
    return IPC_OK();
101
0
}
102
103
auto PBackgroundParent::RecvPUDPSocketConstructor(
104
        PUDPSocketParent* actor,
105
        const OptionalPrincipalInfo& pInfo,
106
        const nsCString& filter) -> mozilla::ipc::IPCResult
107
0
{
108
0
    return IPC_OK();
109
0
}
110
111
auto PBackgroundParent::RecvPBroadcastChannelConstructor(
112
        PBroadcastChannelParent* actor,
113
        const PrincipalInfo& pInfo,
114
        const nsCString& origin,
115
        const nsString& channel) -> mozilla::ipc::IPCResult
116
0
{
117
0
    return IPC_OK();
118
0
}
119
120
auto PBackgroundParent::RecvPServiceWorkerManagerConstructor(PServiceWorkerManagerParent* actor) -> mozilla::ipc::IPCResult
121
0
{
122
0
    return IPC_OK();
123
0
}
124
125
auto PBackgroundParent::RecvPCacheStorageConstructor(
126
        PCacheStorageParent* actor,
127
        const Namespace& aNamespace,
128
        const PrincipalInfo& aPrincipalInfo) -> mozilla::ipc::IPCResult
129
0
{
130
0
    return IPC_OK();
131
0
}
132
133
auto PBackgroundParent::RecvPMessagePortConstructor(
134
        PMessagePortParent* actor,
135
        const nsID& uuid,
136
        const nsID& destinationUuid,
137
        const uint32_t& sequenceId) -> mozilla::ipc::IPCResult
138
0
{
139
0
    return IPC_OK();
140
0
}
141
142
auto PBackgroundParent::RecvPChildToParentStreamConstructor(PChildToParentStreamParent* actor) -> mozilla::ipc::IPCResult
143
0
{
144
0
    return IPC_OK();
145
0
}
146
147
auto PBackgroundParent::RecvPAsmJSCacheEntryConstructor(
148
        PAsmJSCacheEntryParent* actor,
149
        const OpenMode& openMode,
150
        const WriteParams& write,
151
        const PrincipalInfo& principalInfo) -> mozilla::ipc::IPCResult
152
0
{
153
0
    return IPC_OK();
154
0
}
155
156
auto PBackgroundParent::RecvPQuotaConstructor(PQuotaParent* actor) -> mozilla::ipc::IPCResult
157
0
{
158
0
    return IPC_OK();
159
0
}
160
161
auto PBackgroundParent::RecvPFileSystemRequestConstructor(
162
        PFileSystemRequestParent* actor,
163
        const FileSystemParams& params) -> mozilla::ipc::IPCResult
164
0
{
165
0
    return IPC_OK();
166
0
}
167
168
auto PBackgroundParent::RecvPGamepadEventChannelConstructor(PGamepadEventChannelParent* actor) -> mozilla::ipc::IPCResult
169
0
{
170
0
    return IPC_OK();
171
0
}
172
173
auto PBackgroundParent::RecvPGamepadTestChannelConstructor(PGamepadTestChannelParent* actor) -> mozilla::ipc::IPCResult
174
0
{
175
0
    return IPC_OK();
176
0
}
177
178
auto PBackgroundParent::RecvPHttpBackgroundChannelConstructor(
179
        PHttpBackgroundChannelParent* actor,
180
        const uint64_t& channelId) -> mozilla::ipc::IPCResult
181
0
{
182
0
    return IPC_OK();
183
0
}
184
185
auto PBackgroundParent::RecvPWebAuthnTransactionConstructor(PWebAuthnTransactionParent* actor) -> mozilla::ipc::IPCResult
186
0
{
187
0
    return IPC_OK();
188
0
}
189
190
auto PBackgroundParent::RecvPTemporaryIPCBlobConstructor(PTemporaryIPCBlobParent* actor) -> mozilla::ipc::IPCResult
191
0
{
192
0
    return IPC_OK();
193
0
}
194
195
auto PBackgroundParent::RecvPClientManagerConstructor(PClientManagerParent* actor) -> mozilla::ipc::IPCResult
196
0
{
197
0
    return IPC_OK();
198
0
}
199
200
auto PBackgroundParent::RecvPMIDIManagerConstructor(PMIDIManagerParent* actor) -> mozilla::ipc::IPCResult
201
0
{
202
0
    return IPC_OK();
203
0
}
204
205
auto PBackgroundParent::RecvPMIDIPortConstructor(
206
        PMIDIPortParent* actor,
207
        const MIDIPortInfo& portInfo,
208
        const bool& sysexEnabled) -> mozilla::ipc::IPCResult
209
0
{
210
0
    return IPC_OK();
211
0
}
212
213
auto PBackgroundParent::RecvPServiceWorkerConstructor(
214
        PServiceWorkerParent* actor,
215
        const IPCServiceWorkerDescriptor& aDescriptor) -> mozilla::ipc::IPCResult
216
0
{
217
0
    return IPC_OK();
218
0
}
219
220
auto PBackgroundParent::RecvPServiceWorkerContainerConstructor(PServiceWorkerContainerParent* actor) -> mozilla::ipc::IPCResult
221
0
{
222
0
    return IPC_OK();
223
0
}
224
225
auto PBackgroundParent::RecvPServiceWorkerRegistrationConstructor(
226
        PServiceWorkerRegistrationParent* actor,
227
        const IPCServiceWorkerRegistrationDescriptor& aDescriptor) -> mozilla::ipc::IPCResult
228
0
{
229
0
    return IPC_OK();
230
0
}
231
232
auto PBackgroundParent::RecvPIPCBlobInputStreamConstructor(
233
        PIPCBlobInputStreamParent* actor,
234
        const nsID& aID,
235
        const uint64_t& aSize) -> mozilla::ipc::IPCResult
236
0
{
237
0
    return IPC_OK();
238
0
}
239
240
auto PBackgroundParent::RecvPFileDescriptorSetConstructor(
241
        PFileDescriptorSetParent* actor,
242
        const FileDescriptor& fd) -> mozilla::ipc::IPCResult
243
0
{
244
0
    return IPC_OK();
245
0
}
246
247
auto PBackgroundParent::ActorDestroy(ActorDestroyReason aWhy) -> void
248
0
{
249
0
}
250
251
auto PBackgroundParent::ProcessingError(
252
        Result aCode,
253
        const char* aReason) -> void
254
0
{
255
0
}
256
257
auto PBackgroundParent::ShouldContinueFromReplyTimeout() -> bool
258
0
{
259
0
    return true;
260
0
}
261
262
auto PBackgroundParent::EnteredCxxStack() -> void
263
0
{
264
0
}
265
266
auto PBackgroundParent::ExitedCxxStack() -> void
267
0
{
268
0
}
269
270
auto PBackgroundParent::EnteredCall() -> void
271
0
{
272
0
}
273
274
auto PBackgroundParent::ExitedCall() -> void
275
0
{
276
0
}
277
278
MOZ_IMPLICIT PBackgroundParent::PBackgroundParent() :
279
    mozilla::ipc::IToplevelProtocol("PBackgroundParent", PBackgroundMsgStart, mozilla::ipc::ParentSide),
280
    mLivenessState(mozilla::ipc::LivenessState::Start)
281
0
{
282
0
    MOZ_COUNT_CTOR(PBackgroundParent);
283
0
}
284
285
PBackgroundParent::~PBackgroundParent()
286
0
{
287
0
    MOZ_COUNT_DTOR(PBackgroundParent);
288
0
}
289
290
auto PBackgroundParent::ManagedPAsmJSCacheEntryParent(nsTArray<PAsmJSCacheEntryParent*>& aArr) const -> void
291
0
{
292
0
    (mManagedPAsmJSCacheEntryParent).ToArray(aArr);
293
0
}
294
295
auto PBackgroundParent::ManagedPAsmJSCacheEntryParent() const -> const ManagedContainer<PAsmJSCacheEntryParent>&
296
0
{
297
0
    return mManagedPAsmJSCacheEntryParent;
298
0
}
299
300
auto PBackgroundParent::ManagedPBackgroundIDBFactoryParent(nsTArray<PBackgroundIDBFactoryParent*>& aArr) const -> void
301
0
{
302
0
    (mManagedPBackgroundIDBFactoryParent).ToArray(aArr);
303
0
}
304
305
auto PBackgroundParent::ManagedPBackgroundIDBFactoryParent() const -> const ManagedContainer<PBackgroundIDBFactoryParent>&
306
0
{
307
0
    return mManagedPBackgroundIDBFactoryParent;
308
0
}
309
310
auto PBackgroundParent::ManagedPBackgroundIndexedDBUtilsParent(nsTArray<PBackgroundIndexedDBUtilsParent*>& aArr) const -> void
311
0
{
312
0
    (mManagedPBackgroundIndexedDBUtilsParent).ToArray(aArr);
313
0
}
314
315
auto PBackgroundParent::ManagedPBackgroundIndexedDBUtilsParent() const -> const ManagedContainer<PBackgroundIndexedDBUtilsParent>&
316
0
{
317
0
    return mManagedPBackgroundIndexedDBUtilsParent;
318
0
}
319
320
auto PBackgroundParent::ManagedPBackgroundSDBConnectionParent(nsTArray<PBackgroundSDBConnectionParent*>& aArr) const -> void
321
0
{
322
0
    (mManagedPBackgroundSDBConnectionParent).ToArray(aArr);
323
0
}
324
325
auto PBackgroundParent::ManagedPBackgroundSDBConnectionParent() const -> const ManagedContainer<PBackgroundSDBConnectionParent>&
326
0
{
327
0
    return mManagedPBackgroundSDBConnectionParent;
328
0
}
329
330
auto PBackgroundParent::ManagedPBackgroundLocalStorageCacheParent(nsTArray<PBackgroundLocalStorageCacheParent*>& aArr) const -> void
331
0
{
332
0
    (mManagedPBackgroundLocalStorageCacheParent).ToArray(aArr);
333
0
}
334
335
auto PBackgroundParent::ManagedPBackgroundLocalStorageCacheParent() const -> const ManagedContainer<PBackgroundLocalStorageCacheParent>&
336
0
{
337
0
    return mManagedPBackgroundLocalStorageCacheParent;
338
0
}
339
340
auto PBackgroundParent::ManagedPBackgroundStorageParent(nsTArray<PBackgroundStorageParent*>& aArr) const -> void
341
0
{
342
0
    (mManagedPBackgroundStorageParent).ToArray(aArr);
343
0
}
344
345
auto PBackgroundParent::ManagedPBackgroundStorageParent() const -> const ManagedContainer<PBackgroundStorageParent>&
346
0
{
347
0
    return mManagedPBackgroundStorageParent;
348
0
}
349
350
auto PBackgroundParent::ManagedPBackgroundTestParent(nsTArray<PBackgroundTestParent*>& aArr) const -> void
351
0
{
352
0
    (mManagedPBackgroundTestParent).ToArray(aArr);
353
0
}
354
355
auto PBackgroundParent::ManagedPBackgroundTestParent() const -> const ManagedContainer<PBackgroundTestParent>&
356
0
{
357
0
    return mManagedPBackgroundTestParent;
358
0
}
359
360
auto PBackgroundParent::ManagedPBroadcastChannelParent(nsTArray<PBroadcastChannelParent*>& aArr) const -> void
361
0
{
362
0
    (mManagedPBroadcastChannelParent).ToArray(aArr);
363
0
}
364
365
auto PBackgroundParent::ManagedPBroadcastChannelParent() const -> const ManagedContainer<PBroadcastChannelParent>&
366
0
{
367
0
    return mManagedPBroadcastChannelParent;
368
0
}
369
370
auto PBackgroundParent::ManagedPCacheParent(nsTArray<PCacheParent*>& aArr) const -> void
371
0
{
372
0
    (mManagedPCacheParent).ToArray(aArr);
373
0
}
374
375
auto PBackgroundParent::ManagedPCacheParent() const -> const ManagedContainer<PCacheParent>&
376
0
{
377
0
    return mManagedPCacheParent;
378
0
}
379
380
auto PBackgroundParent::ManagedPCacheStorageParent(nsTArray<PCacheStorageParent*>& aArr) const -> void
381
0
{
382
0
    (mManagedPCacheStorageParent).ToArray(aArr);
383
0
}
384
385
auto PBackgroundParent::ManagedPCacheStorageParent() const -> const ManagedContainer<PCacheStorageParent>&
386
0
{
387
0
    return mManagedPCacheStorageParent;
388
0
}
389
390
auto PBackgroundParent::ManagedPCacheStreamControlParent(nsTArray<PCacheStreamControlParent*>& aArr) const -> void
391
0
{
392
0
    (mManagedPCacheStreamControlParent).ToArray(aArr);
393
0
}
394
395
auto PBackgroundParent::ManagedPCacheStreamControlParent() const -> const ManagedContainer<PCacheStreamControlParent>&
396
0
{
397
0
    return mManagedPCacheStreamControlParent;
398
0
}
399
400
auto PBackgroundParent::ManagedPClientManagerParent(nsTArray<PClientManagerParent*>& aArr) const -> void
401
0
{
402
0
    (mManagedPClientManagerParent).ToArray(aArr);
403
0
}
404
405
auto PBackgroundParent::ManagedPClientManagerParent() const -> const ManagedContainer<PClientManagerParent>&
406
0
{
407
0
    return mManagedPClientManagerParent;
408
0
}
409
410
auto PBackgroundParent::ManagedPFileDescriptorSetParent(nsTArray<PFileDescriptorSetParent*>& aArr) const -> void
411
0
{
412
0
    (mManagedPFileDescriptorSetParent).ToArray(aArr);
413
0
}
414
415
auto PBackgroundParent::ManagedPFileDescriptorSetParent() const -> const ManagedContainer<PFileDescriptorSetParent>&
416
0
{
417
0
    return mManagedPFileDescriptorSetParent;
418
0
}
419
420
auto PBackgroundParent::ManagedPFileSystemRequestParent(nsTArray<PFileSystemRequestParent*>& aArr) const -> void
421
0
{
422
0
    (mManagedPFileSystemRequestParent).ToArray(aArr);
423
0
}
424
425
auto PBackgroundParent::ManagedPFileSystemRequestParent() const -> const ManagedContainer<PFileSystemRequestParent>&
426
0
{
427
0
    return mManagedPFileSystemRequestParent;
428
0
}
429
430
auto PBackgroundParent::ManagedPGamepadEventChannelParent(nsTArray<PGamepadEventChannelParent*>& aArr) const -> void
431
0
{
432
0
    (mManagedPGamepadEventChannelParent).ToArray(aArr);
433
0
}
434
435
auto PBackgroundParent::ManagedPGamepadEventChannelParent() const -> const ManagedContainer<PGamepadEventChannelParent>&
436
0
{
437
0
    return mManagedPGamepadEventChannelParent;
438
0
}
439
440
auto PBackgroundParent::ManagedPGamepadTestChannelParent(nsTArray<PGamepadTestChannelParent*>& aArr) const -> void
441
0
{
442
0
    (mManagedPGamepadTestChannelParent).ToArray(aArr);
443
0
}
444
445
auto PBackgroundParent::ManagedPGamepadTestChannelParent() const -> const ManagedContainer<PGamepadTestChannelParent>&
446
0
{
447
0
    return mManagedPGamepadTestChannelParent;
448
0
}
449
450
auto PBackgroundParent::ManagedPHttpBackgroundChannelParent(nsTArray<PHttpBackgroundChannelParent*>& aArr) const -> void
451
0
{
452
0
    (mManagedPHttpBackgroundChannelParent).ToArray(aArr);
453
0
}
454
455
auto PBackgroundParent::ManagedPHttpBackgroundChannelParent() const -> const ManagedContainer<PHttpBackgroundChannelParent>&
456
0
{
457
0
    return mManagedPHttpBackgroundChannelParent;
458
0
}
459
460
auto PBackgroundParent::ManagedPIPCBlobInputStreamParent(nsTArray<PIPCBlobInputStreamParent*>& aArr) const -> void
461
0
{
462
0
    (mManagedPIPCBlobInputStreamParent).ToArray(aArr);
463
0
}
464
465
auto PBackgroundParent::ManagedPIPCBlobInputStreamParent() const -> const ManagedContainer<PIPCBlobInputStreamParent>&
466
0
{
467
0
    return mManagedPIPCBlobInputStreamParent;
468
0
}
469
470
auto PBackgroundParent::ManagedPPendingIPCBlobParent(nsTArray<PPendingIPCBlobParent*>& aArr) const -> void
471
0
{
472
0
    (mManagedPPendingIPCBlobParent).ToArray(aArr);
473
0
}
474
475
auto PBackgroundParent::ManagedPPendingIPCBlobParent() const -> const ManagedContainer<PPendingIPCBlobParent>&
476
0
{
477
0
    return mManagedPPendingIPCBlobParent;
478
0
}
479
480
auto PBackgroundParent::ManagedPTemporaryIPCBlobParent(nsTArray<PTemporaryIPCBlobParent*>& aArr) const -> void
481
0
{
482
0
    (mManagedPTemporaryIPCBlobParent).ToArray(aArr);
483
0
}
484
485
auto PBackgroundParent::ManagedPTemporaryIPCBlobParent() const -> const ManagedContainer<PTemporaryIPCBlobParent>&
486
0
{
487
0
    return mManagedPTemporaryIPCBlobParent;
488
0
}
489
490
auto PBackgroundParent::ManagedPMessagePortParent(nsTArray<PMessagePortParent*>& aArr) const -> void
491
0
{
492
0
    (mManagedPMessagePortParent).ToArray(aArr);
493
0
}
494
495
auto PBackgroundParent::ManagedPMessagePortParent() const -> const ManagedContainer<PMessagePortParent>&
496
0
{
497
0
    return mManagedPMessagePortParent;
498
0
}
499
500
auto PBackgroundParent::ManagedPCamerasParent(nsTArray<PCamerasParent*>& aArr) const -> void
501
0
{
502
0
    (mManagedPCamerasParent).ToArray(aArr);
503
0
}
504
505
auto PBackgroundParent::ManagedPCamerasParent() const -> const ManagedContainer<PCamerasParent>&
506
0
{
507
0
    return mManagedPCamerasParent;
508
0
}
509
510
auto PBackgroundParent::ManagedPMIDIManagerParent(nsTArray<PMIDIManagerParent*>& aArr) const -> void
511
0
{
512
0
    (mManagedPMIDIManagerParent).ToArray(aArr);
513
0
}
514
515
auto PBackgroundParent::ManagedPMIDIManagerParent() const -> const ManagedContainer<PMIDIManagerParent>&
516
0
{
517
0
    return mManagedPMIDIManagerParent;
518
0
}
519
520
auto PBackgroundParent::ManagedPMIDIPortParent(nsTArray<PMIDIPortParent*>& aArr) const -> void
521
0
{
522
0
    (mManagedPMIDIPortParent).ToArray(aArr);
523
0
}
524
525
auto PBackgroundParent::ManagedPMIDIPortParent() const -> const ManagedContainer<PMIDIPortParent>&
526
0
{
527
0
    return mManagedPMIDIPortParent;
528
0
}
529
530
auto PBackgroundParent::ManagedPQuotaParent(nsTArray<PQuotaParent*>& aArr) const -> void
531
0
{
532
0
    (mManagedPQuotaParent).ToArray(aArr);
533
0
}
534
535
auto PBackgroundParent::ManagedPQuotaParent() const -> const ManagedContainer<PQuotaParent>&
536
0
{
537
0
    return mManagedPQuotaParent;
538
0
}
539
540
auto PBackgroundParent::ManagedPChildToParentStreamParent(nsTArray<PChildToParentStreamParent*>& aArr) const -> void
541
0
{
542
0
    (mManagedPChildToParentStreamParent).ToArray(aArr);
543
0
}
544
545
auto PBackgroundParent::ManagedPChildToParentStreamParent() const -> const ManagedContainer<PChildToParentStreamParent>&
546
0
{
547
0
    return mManagedPChildToParentStreamParent;
548
0
}
549
550
auto PBackgroundParent::ManagedPParentToChildStreamParent(nsTArray<PParentToChildStreamParent*>& aArr) const -> void
551
0
{
552
0
    (mManagedPParentToChildStreamParent).ToArray(aArr);
553
0
}
554
555
auto PBackgroundParent::ManagedPParentToChildStreamParent() const -> const ManagedContainer<PParentToChildStreamParent>&
556
0
{
557
0
    return mManagedPParentToChildStreamParent;
558
0
}
559
560
auto PBackgroundParent::ManagedPServiceWorkerParent(nsTArray<PServiceWorkerParent*>& aArr) const -> void
561
0
{
562
0
    (mManagedPServiceWorkerParent).ToArray(aArr);
563
0
}
564
565
auto PBackgroundParent::ManagedPServiceWorkerParent() const -> const ManagedContainer<PServiceWorkerParent>&
566
0
{
567
0
    return mManagedPServiceWorkerParent;
568
0
}
569
570
auto PBackgroundParent::ManagedPServiceWorkerContainerParent(nsTArray<PServiceWorkerContainerParent*>& aArr) const -> void
571
0
{
572
0
    (mManagedPServiceWorkerContainerParent).ToArray(aArr);
573
0
}
574
575
auto PBackgroundParent::ManagedPServiceWorkerContainerParent() const -> const ManagedContainer<PServiceWorkerContainerParent>&
576
0
{
577
0
    return mManagedPServiceWorkerContainerParent;
578
0
}
579
580
auto PBackgroundParent::ManagedPServiceWorkerManagerParent(nsTArray<PServiceWorkerManagerParent*>& aArr) const -> void
581
0
{
582
0
    (mManagedPServiceWorkerManagerParent).ToArray(aArr);
583
0
}
584
585
auto PBackgroundParent::ManagedPServiceWorkerManagerParent() const -> const ManagedContainer<PServiceWorkerManagerParent>&
586
0
{
587
0
    return mManagedPServiceWorkerManagerParent;
588
0
}
589
590
auto PBackgroundParent::ManagedPServiceWorkerRegistrationParent(nsTArray<PServiceWorkerRegistrationParent*>& aArr) const -> void
591
0
{
592
0
    (mManagedPServiceWorkerRegistrationParent).ToArray(aArr);
593
0
}
594
595
auto PBackgroundParent::ManagedPServiceWorkerRegistrationParent() const -> const ManagedContainer<PServiceWorkerRegistrationParent>&
596
0
{
597
0
    return mManagedPServiceWorkerRegistrationParent;
598
0
}
599
600
auto PBackgroundParent::ManagedPWebAuthnTransactionParent(nsTArray<PWebAuthnTransactionParent*>& aArr) const -> void
601
0
{
602
0
    (mManagedPWebAuthnTransactionParent).ToArray(aArr);
603
0
}
604
605
auto PBackgroundParent::ManagedPWebAuthnTransactionParent() const -> const ManagedContainer<PWebAuthnTransactionParent>&
606
0
{
607
0
    return mManagedPWebAuthnTransactionParent;
608
0
}
609
610
auto PBackgroundParent::ManagedPUDPSocketParent(nsTArray<PUDPSocketParent*>& aArr) const -> void
611
0
{
612
0
    (mManagedPUDPSocketParent).ToArray(aArr);
613
0
}
614
615
auto PBackgroundParent::ManagedPUDPSocketParent() const -> const ManagedContainer<PUDPSocketParent>&
616
0
{
617
0
    return mManagedPUDPSocketParent;
618
0
}
619
620
auto PBackgroundParent::ManagedPVsyncParent(nsTArray<PVsyncParent*>& aArr) const -> void
621
0
{
622
0
    (mManagedPVsyncParent).ToArray(aArr);
623
0
}
624
625
auto PBackgroundParent::ManagedPVsyncParent() const -> const ManagedContainer<PVsyncParent>&
626
0
{
627
0
    return mManagedPVsyncParent;
628
0
}
629
630
auto PBackgroundParent::SendPCacheConstructor() -> PCacheParent*
631
0
{
632
0
    return SendPCacheConstructor(AllocPCacheParent());
633
0
}
634
635
auto PBackgroundParent::SendPCacheConstructor(PCacheParent* actor) -> PCacheParent*
636
0
{
637
0
    if ((!(actor))) {
638
0
        NS_WARNING("Error constructing actor PCacheParent");
639
0
        return nullptr;
640
0
    }
641
0
    (actor)->SetManagerAndRegister(this);
642
0
    (mManagedPCacheParent).PutEntry(actor);
643
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
644
0
645
0
    IPC::Message* msg__ = PBackground::Msg_PCacheConstructor(MSG_ROUTING_CONTROL);
646
0
647
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
648
0
    WriteIPDLParam(msg__, this, actor);
649
0
    // Sentinel = 'actor'
650
0
    (msg__)->WriteSentinel(875202478);
651
0
652
0
653
0
654
0
    if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
655
0
        mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
656
0
    }
657
0
    AUTO_PROFILER_LABEL("PBackground::Msg_PCacheConstructor", OTHER);
658
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
659
0
        mozilla::ipc::LogicError("Transition error");
660
0
    }
661
0
662
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
663
0
    if ((!(sendok__))) {
664
0
        IProtocol* mgr = (actor)->Manager();
665
0
        (actor)->DestroySubtree(FailedConstructor);
666
0
        (actor)->DeallocSubtree();
667
0
        (mgr)->RemoveManagee(PCacheMsgStart, actor);
668
0
        return nullptr;
669
0
    }
670
0
    return actor;
671
0
}
672
673
auto PBackgroundParent::SendPCacheStreamControlConstructor() -> PCacheStreamControlParent*
674
0
{
675
0
    return SendPCacheStreamControlConstructor(AllocPCacheStreamControlParent());
676
0
}
677
678
auto PBackgroundParent::SendPCacheStreamControlConstructor(PCacheStreamControlParent* actor) -> PCacheStreamControlParent*
679
0
{
680
0
    if ((!(actor))) {
681
0
        NS_WARNING("Error constructing actor PCacheStreamControlParent");
682
0
        return nullptr;
683
0
    }
684
0
    (actor)->SetManagerAndRegister(this);
685
0
    (mManagedPCacheStreamControlParent).PutEntry(actor);
686
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
687
0
688
0
    IPC::Message* msg__ = PBackground::Msg_PCacheStreamControlConstructor(MSG_ROUTING_CONTROL);
689
0
690
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
691
0
    WriteIPDLParam(msg__, this, actor);
692
0
    // Sentinel = 'actor'
693
0
    (msg__)->WriteSentinel(875202478);
694
0
695
0
696
0
697
0
    if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
698
0
        mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
699
0
    }
700
0
    AUTO_PROFILER_LABEL("PBackground::Msg_PCacheStreamControlConstructor", OTHER);
701
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
702
0
        mozilla::ipc::LogicError("Transition error");
703
0
    }
704
0
705
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
706
0
    if ((!(sendok__))) {
707
0
        IProtocol* mgr = (actor)->Manager();
708
0
        (actor)->DestroySubtree(FailedConstructor);
709
0
        (actor)->DeallocSubtree();
710
0
        (mgr)->RemoveManagee(PCacheStreamControlMsgStart, actor);
711
0
        return nullptr;
712
0
    }
713
0
    return actor;
714
0
}
715
716
auto PBackgroundParent::SendPParentToChildStreamConstructor() -> PParentToChildStreamParent*
717
0
{
718
0
    return SendPParentToChildStreamConstructor(AllocPParentToChildStreamParent());
719
0
}
720
721
auto PBackgroundParent::SendPParentToChildStreamConstructor(PParentToChildStreamParent* actor) -> PParentToChildStreamParent*
722
0
{
723
0
    if ((!(actor))) {
724
0
        NS_WARNING("Error constructing actor PParentToChildStreamParent");
725
0
        return nullptr;
726
0
    }
727
0
    (actor)->SetManagerAndRegister(this);
728
0
    (mManagedPParentToChildStreamParent).PutEntry(actor);
729
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
730
0
731
0
    IPC::Message* msg__ = PBackground::Msg_PParentToChildStreamConstructor(MSG_ROUTING_CONTROL);
732
0
733
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
734
0
    WriteIPDLParam(msg__, this, actor);
735
0
    // Sentinel = 'actor'
736
0
    (msg__)->WriteSentinel(875202478);
737
0
738
0
739
0
740
0
    if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
741
0
        mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
742
0
    }
743
0
    AUTO_PROFILER_LABEL("PBackground::Msg_PParentToChildStreamConstructor", OTHER);
744
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
745
0
        mozilla::ipc::LogicError("Transition error");
746
0
    }
747
0
748
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
749
0
    if ((!(sendok__))) {
750
0
        IProtocol* mgr = (actor)->Manager();
751
0
        (actor)->DestroySubtree(FailedConstructor);
752
0
        (actor)->DeallocSubtree();
753
0
        (mgr)->RemoveManagee(PParentToChildStreamMsgStart, actor);
754
0
        return nullptr;
755
0
    }
756
0
    return actor;
757
0
}
758
759
auto PBackgroundParent::SendPPendingIPCBlobConstructor(const IPCBlob& blob) -> PPendingIPCBlobParent*
760
0
{
761
0
    return SendPPendingIPCBlobConstructor(AllocPPendingIPCBlobParent(blob), blob);
762
0
}
763
764
auto PBackgroundParent::SendPPendingIPCBlobConstructor(
765
        PPendingIPCBlobParent* actor,
766
        const IPCBlob& blob) -> PPendingIPCBlobParent*
767
0
{
768
0
    if ((!(actor))) {
769
0
        NS_WARNING("Error constructing actor PPendingIPCBlobParent");
770
0
        return nullptr;
771
0
    }
772
0
    (actor)->SetManagerAndRegister(this);
773
0
    (mManagedPPendingIPCBlobParent).PutEntry(actor);
774
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
775
0
776
0
    IPC::Message* msg__ = PBackground::Msg_PPendingIPCBlobConstructor(MSG_ROUTING_CONTROL);
777
0
778
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
779
0
    WriteIPDLParam(msg__, this, actor);
780
0
    // Sentinel = 'actor'
781
0
    (msg__)->WriteSentinel(875202478);
782
0
    WriteIPDLParam(msg__, this, blob);
783
0
    // Sentinel = 'blob'
784
0
    (msg__)->WriteSentinel(1963585077);
785
0
786
0
787
0
788
0
    if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
789
0
        mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
790
0
    }
791
0
    AUTO_PROFILER_LABEL("PBackground::Msg_PPendingIPCBlobConstructor", OTHER);
792
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
793
0
        mozilla::ipc::LogicError("Transition error");
794
0
    }
795
0
796
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
797
0
    if ((!(sendok__))) {
798
0
        IProtocol* mgr = (actor)->Manager();
799
0
        (actor)->DestroySubtree(FailedConstructor);
800
0
        (actor)->DeallocSubtree();
801
0
        (mgr)->RemoveManagee(PPendingIPCBlobMsgStart, actor);
802
0
        return nullptr;
803
0
    }
804
0
    return actor;
805
0
}
806
807
auto PBackgroundParent::SendPIPCBlobInputStreamConstructor(
808
        const nsID& aID,
809
        const uint64_t& aSize) -> PIPCBlobInputStreamParent*
810
0
{
811
0
    return SendPIPCBlobInputStreamConstructor(AllocPIPCBlobInputStreamParent(aID, aSize), aID, aSize);
812
0
}
813
814
auto PBackgroundParent::SendPIPCBlobInputStreamConstructor(
815
        PIPCBlobInputStreamParent* actor,
816
        const nsID& aID,
817
        const uint64_t& aSize) -> PIPCBlobInputStreamParent*
818
0
{
819
0
    if ((!(actor))) {
820
0
        NS_WARNING("Error constructing actor PIPCBlobInputStreamParent");
821
0
        return nullptr;
822
0
    }
823
0
    (actor)->SetManagerAndRegister(this);
824
0
    (mManagedPIPCBlobInputStreamParent).PutEntry(actor);
825
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
826
0
827
0
    IPC::Message* msg__ = PBackground::Msg_PIPCBlobInputStreamConstructor(MSG_ROUTING_CONTROL);
828
0
829
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
830
0
    WriteIPDLParam(msg__, this, actor);
831
0
    // Sentinel = 'actor'
832
0
    (msg__)->WriteSentinel(875202478);
833
0
    WriteIPDLParam(msg__, this, aID);
834
0
    // Sentinel = 'aID'
835
0
    (msg__)->WriteSentinel(2735041849);
836
0
    WriteIPDLParam(msg__, this, aSize);
837
0
    // Sentinel = 'aSize'
838
0
    (msg__)->WriteSentinel(2556665555);
839
0
840
0
841
0
842
0
    if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
843
0
        mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
844
0
    }
845
0
    AUTO_PROFILER_LABEL("PBackground::Msg_PIPCBlobInputStreamConstructor", OTHER);
846
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
847
0
        mozilla::ipc::LogicError("Transition error");
848
0
    }
849
0
850
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
851
0
    if ((!(sendok__))) {
852
0
        IProtocol* mgr = (actor)->Manager();
853
0
        (actor)->DestroySubtree(FailedConstructor);
854
0
        (actor)->DeallocSubtree();
855
0
        (mgr)->RemoveManagee(PIPCBlobInputStreamMsgStart, actor);
856
0
        return nullptr;
857
0
    }
858
0
    return actor;
859
0
}
860
861
auto PBackgroundParent::SendPFileDescriptorSetConstructor(const FileDescriptor& fd) -> PFileDescriptorSetParent*
862
0
{
863
0
    return SendPFileDescriptorSetConstructor(AllocPFileDescriptorSetParent(fd), fd);
864
0
}
865
866
auto PBackgroundParent::SendPFileDescriptorSetConstructor(
867
        PFileDescriptorSetParent* actor,
868
        const FileDescriptor& fd) -> PFileDescriptorSetParent*
869
0
{
870
0
    if ((!(actor))) {
871
0
        NS_WARNING("Error constructing actor PFileDescriptorSetParent");
872
0
        return nullptr;
873
0
    }
874
0
    (actor)->SetManagerAndRegister(this);
875
0
    (mManagedPFileDescriptorSetParent).PutEntry(actor);
876
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
877
0
878
0
    IPC::Message* msg__ = PBackground::Msg_PFileDescriptorSetConstructor(MSG_ROUTING_CONTROL);
879
0
880
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
881
0
    WriteIPDLParam(msg__, this, actor);
882
0
    // Sentinel = 'actor'
883
0
    (msg__)->WriteSentinel(875202478);
884
0
    WriteIPDLParam(msg__, this, fd);
885
0
    // Sentinel = 'fd'
886
0
    (msg__)->WriteSentinel(628535764);
887
0
888
0
889
0
890
0
    if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
891
0
        mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
892
0
    }
893
0
    AUTO_PROFILER_LABEL("PBackground::Msg_PFileDescriptorSetConstructor", OTHER);
894
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
895
0
        mozilla::ipc::LogicError("Transition error");
896
0
    }
897
0
898
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
899
0
    if ((!(sendok__))) {
900
0
        IProtocol* mgr = (actor)->Manager();
901
0
        (actor)->DestroySubtree(FailedConstructor);
902
0
        (actor)->DeallocSubtree();
903
0
        (mgr)->RemoveManagee(PFileDescriptorSetMsgStart, actor);
904
0
        return nullptr;
905
0
    }
906
0
    return actor;
907
0
}
908
909
auto PBackgroundParent::RemoveManagee(
910
        int32_t aProtocolId,
911
        IProtocol* aListener) -> void
912
0
{
913
0
    switch (aProtocolId) {
914
0
    case PAsmJSCacheEntryMsgStart:
915
0
        {
916
0
            PAsmJSCacheEntryParent* actor = static_cast<PAsmJSCacheEntryParent*>(aListener);
917
0
            auto& container = mManagedPAsmJSCacheEntryParent;
918
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
919
0
920
0
            (container).RemoveEntry(actor);
921
0
            DeallocPAsmJSCacheEntryParent(actor);
922
0
            return;
923
0
        }
924
0
    case PBackgroundIDBFactoryMsgStart:
925
0
        {
926
0
            PBackgroundIDBFactoryParent* actor = static_cast<PBackgroundIDBFactoryParent*>(aListener);
927
0
            auto& container = mManagedPBackgroundIDBFactoryParent;
928
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
929
0
930
0
            (container).RemoveEntry(actor);
931
0
            DeallocPBackgroundIDBFactoryParent(actor);
932
0
            return;
933
0
        }
934
0
    case PBackgroundIndexedDBUtilsMsgStart:
935
0
        {
936
0
            PBackgroundIndexedDBUtilsParent* actor = static_cast<PBackgroundIndexedDBUtilsParent*>(aListener);
937
0
            auto& container = mManagedPBackgroundIndexedDBUtilsParent;
938
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
939
0
940
0
            (container).RemoveEntry(actor);
941
0
            DeallocPBackgroundIndexedDBUtilsParent(actor);
942
0
            return;
943
0
        }
944
0
    case PBackgroundSDBConnectionMsgStart:
945
0
        {
946
0
            PBackgroundSDBConnectionParent* actor = static_cast<PBackgroundSDBConnectionParent*>(aListener);
947
0
            auto& container = mManagedPBackgroundSDBConnectionParent;
948
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
949
0
950
0
            (container).RemoveEntry(actor);
951
0
            DeallocPBackgroundSDBConnectionParent(actor);
952
0
            return;
953
0
        }
954
0
    case PBackgroundLocalStorageCacheMsgStart:
955
0
        {
956
0
            PBackgroundLocalStorageCacheParent* actor = static_cast<PBackgroundLocalStorageCacheParent*>(aListener);
957
0
            auto& container = mManagedPBackgroundLocalStorageCacheParent;
958
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
959
0
960
0
            (container).RemoveEntry(actor);
961
0
            DeallocPBackgroundLocalStorageCacheParent(actor);
962
0
            return;
963
0
        }
964
0
    case PBackgroundStorageMsgStart:
965
0
        {
966
0
            PBackgroundStorageParent* actor = static_cast<PBackgroundStorageParent*>(aListener);
967
0
            auto& container = mManagedPBackgroundStorageParent;
968
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
969
0
970
0
            (container).RemoveEntry(actor);
971
0
            DeallocPBackgroundStorageParent(actor);
972
0
            return;
973
0
        }
974
0
    case PBackgroundTestMsgStart:
975
0
        {
976
0
            PBackgroundTestParent* actor = static_cast<PBackgroundTestParent*>(aListener);
977
0
            auto& container = mManagedPBackgroundTestParent;
978
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
979
0
980
0
            (container).RemoveEntry(actor);
981
0
            DeallocPBackgroundTestParent(actor);
982
0
            return;
983
0
        }
984
0
    case PBroadcastChannelMsgStart:
985
0
        {
986
0
            PBroadcastChannelParent* actor = static_cast<PBroadcastChannelParent*>(aListener);
987
0
            auto& container = mManagedPBroadcastChannelParent;
988
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
989
0
990
0
            (container).RemoveEntry(actor);
991
0
            DeallocPBroadcastChannelParent(actor);
992
0
            return;
993
0
        }
994
0
    case PCacheMsgStart:
995
0
        {
996
0
            PCacheParent* actor = static_cast<PCacheParent*>(aListener);
997
0
            auto& container = mManagedPCacheParent;
998
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
999
0
1000
0
            (container).RemoveEntry(actor);
1001
0
            DeallocPCacheParent(actor);
1002
0
            return;
1003
0
        }
1004
0
    case PCacheStorageMsgStart:
1005
0
        {
1006
0
            PCacheStorageParent* actor = static_cast<PCacheStorageParent*>(aListener);
1007
0
            auto& container = mManagedPCacheStorageParent;
1008
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1009
0
1010
0
            (container).RemoveEntry(actor);
1011
0
            DeallocPCacheStorageParent(actor);
1012
0
            return;
1013
0
        }
1014
0
    case PCacheStreamControlMsgStart:
1015
0
        {
1016
0
            PCacheStreamControlParent* actor = static_cast<PCacheStreamControlParent*>(aListener);
1017
0
            auto& container = mManagedPCacheStreamControlParent;
1018
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1019
0
1020
0
            (container).RemoveEntry(actor);
1021
0
            DeallocPCacheStreamControlParent(actor);
1022
0
            return;
1023
0
        }
1024
0
    case PClientManagerMsgStart:
1025
0
        {
1026
0
            PClientManagerParent* actor = static_cast<PClientManagerParent*>(aListener);
1027
0
            auto& container = mManagedPClientManagerParent;
1028
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1029
0
1030
0
            (container).RemoveEntry(actor);
1031
0
            DeallocPClientManagerParent(actor);
1032
0
            return;
1033
0
        }
1034
0
    case PFileDescriptorSetMsgStart:
1035
0
        {
1036
0
            PFileDescriptorSetParent* actor = static_cast<PFileDescriptorSetParent*>(aListener);
1037
0
            auto& container = mManagedPFileDescriptorSetParent;
1038
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1039
0
1040
0
            (container).RemoveEntry(actor);
1041
0
            DeallocPFileDescriptorSetParent(actor);
1042
0
            return;
1043
0
        }
1044
0
    case PFileSystemRequestMsgStart:
1045
0
        {
1046
0
            PFileSystemRequestParent* actor = static_cast<PFileSystemRequestParent*>(aListener);
1047
0
            auto& container = mManagedPFileSystemRequestParent;
1048
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1049
0
1050
0
            (container).RemoveEntry(actor);
1051
0
            DeallocPFileSystemRequestParent(actor);
1052
0
            return;
1053
0
        }
1054
0
    case PGamepadEventChannelMsgStart:
1055
0
        {
1056
0
            PGamepadEventChannelParent* actor = static_cast<PGamepadEventChannelParent*>(aListener);
1057
0
            auto& container = mManagedPGamepadEventChannelParent;
1058
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1059
0
1060
0
            (container).RemoveEntry(actor);
1061
0
            DeallocPGamepadEventChannelParent(actor);
1062
0
            return;
1063
0
        }
1064
0
    case PGamepadTestChannelMsgStart:
1065
0
        {
1066
0
            PGamepadTestChannelParent* actor = static_cast<PGamepadTestChannelParent*>(aListener);
1067
0
            auto& container = mManagedPGamepadTestChannelParent;
1068
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1069
0
1070
0
            (container).RemoveEntry(actor);
1071
0
            DeallocPGamepadTestChannelParent(actor);
1072
0
            return;
1073
0
        }
1074
0
    case PHttpBackgroundChannelMsgStart:
1075
0
        {
1076
0
            PHttpBackgroundChannelParent* actor = static_cast<PHttpBackgroundChannelParent*>(aListener);
1077
0
            auto& container = mManagedPHttpBackgroundChannelParent;
1078
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1079
0
1080
0
            (container).RemoveEntry(actor);
1081
0
            DeallocPHttpBackgroundChannelParent(actor);
1082
0
            return;
1083
0
        }
1084
0
    case PIPCBlobInputStreamMsgStart:
1085
0
        {
1086
0
            PIPCBlobInputStreamParent* actor = static_cast<PIPCBlobInputStreamParent*>(aListener);
1087
0
            auto& container = mManagedPIPCBlobInputStreamParent;
1088
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1089
0
1090
0
            (container).RemoveEntry(actor);
1091
0
            DeallocPIPCBlobInputStreamParent(actor);
1092
0
            return;
1093
0
        }
1094
0
    case PPendingIPCBlobMsgStart:
1095
0
        {
1096
0
            PPendingIPCBlobParent* actor = static_cast<PPendingIPCBlobParent*>(aListener);
1097
0
            auto& container = mManagedPPendingIPCBlobParent;
1098
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1099
0
1100
0
            (container).RemoveEntry(actor);
1101
0
            DeallocPPendingIPCBlobParent(actor);
1102
0
            return;
1103
0
        }
1104
0
    case PTemporaryIPCBlobMsgStart:
1105
0
        {
1106
0
            PTemporaryIPCBlobParent* actor = static_cast<PTemporaryIPCBlobParent*>(aListener);
1107
0
            auto& container = mManagedPTemporaryIPCBlobParent;
1108
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1109
0
1110
0
            (container).RemoveEntry(actor);
1111
0
            DeallocPTemporaryIPCBlobParent(actor);
1112
0
            return;
1113
0
        }
1114
0
    case PMessagePortMsgStart:
1115
0
        {
1116
0
            PMessagePortParent* actor = static_cast<PMessagePortParent*>(aListener);
1117
0
            auto& container = mManagedPMessagePortParent;
1118
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1119
0
1120
0
            (container).RemoveEntry(actor);
1121
0
            DeallocPMessagePortParent(actor);
1122
0
            return;
1123
0
        }
1124
0
    case PCamerasMsgStart:
1125
0
        {
1126
0
            PCamerasParent* actor = static_cast<PCamerasParent*>(aListener);
1127
0
            auto& container = mManagedPCamerasParent;
1128
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1129
0
1130
0
            (container).RemoveEntry(actor);
1131
0
            DeallocPCamerasParent(actor);
1132
0
            return;
1133
0
        }
1134
0
    case PMIDIManagerMsgStart:
1135
0
        {
1136
0
            PMIDIManagerParent* actor = static_cast<PMIDIManagerParent*>(aListener);
1137
0
            auto& container = mManagedPMIDIManagerParent;
1138
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1139
0
1140
0
            (container).RemoveEntry(actor);
1141
0
            DeallocPMIDIManagerParent(actor);
1142
0
            return;
1143
0
        }
1144
0
    case PMIDIPortMsgStart:
1145
0
        {
1146
0
            PMIDIPortParent* actor = static_cast<PMIDIPortParent*>(aListener);
1147
0
            auto& container = mManagedPMIDIPortParent;
1148
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1149
0
1150
0
            (container).RemoveEntry(actor);
1151
0
            DeallocPMIDIPortParent(actor);
1152
0
            return;
1153
0
        }
1154
0
    case PQuotaMsgStart:
1155
0
        {
1156
0
            PQuotaParent* actor = static_cast<PQuotaParent*>(aListener);
1157
0
            auto& container = mManagedPQuotaParent;
1158
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1159
0
1160
0
            (container).RemoveEntry(actor);
1161
0
            DeallocPQuotaParent(actor);
1162
0
            return;
1163
0
        }
1164
0
    case PChildToParentStreamMsgStart:
1165
0
        {
1166
0
            PChildToParentStreamParent* actor = static_cast<PChildToParentStreamParent*>(aListener);
1167
0
            auto& container = mManagedPChildToParentStreamParent;
1168
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1169
0
1170
0
            (container).RemoveEntry(actor);
1171
0
            DeallocPChildToParentStreamParent(actor);
1172
0
            return;
1173
0
        }
1174
0
    case PParentToChildStreamMsgStart:
1175
0
        {
1176
0
            PParentToChildStreamParent* actor = static_cast<PParentToChildStreamParent*>(aListener);
1177
0
            auto& container = mManagedPParentToChildStreamParent;
1178
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1179
0
1180
0
            (container).RemoveEntry(actor);
1181
0
            DeallocPParentToChildStreamParent(actor);
1182
0
            return;
1183
0
        }
1184
0
    case PServiceWorkerMsgStart:
1185
0
        {
1186
0
            PServiceWorkerParent* actor = static_cast<PServiceWorkerParent*>(aListener);
1187
0
            auto& container = mManagedPServiceWorkerParent;
1188
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1189
0
1190
0
            (container).RemoveEntry(actor);
1191
0
            DeallocPServiceWorkerParent(actor);
1192
0
            return;
1193
0
        }
1194
0
    case PServiceWorkerContainerMsgStart:
1195
0
        {
1196
0
            PServiceWorkerContainerParent* actor = static_cast<PServiceWorkerContainerParent*>(aListener);
1197
0
            auto& container = mManagedPServiceWorkerContainerParent;
1198
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1199
0
1200
0
            (container).RemoveEntry(actor);
1201
0
            DeallocPServiceWorkerContainerParent(actor);
1202
0
            return;
1203
0
        }
1204
0
    case PServiceWorkerManagerMsgStart:
1205
0
        {
1206
0
            PServiceWorkerManagerParent* actor = static_cast<PServiceWorkerManagerParent*>(aListener);
1207
0
            auto& container = mManagedPServiceWorkerManagerParent;
1208
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1209
0
1210
0
            (container).RemoveEntry(actor);
1211
0
            DeallocPServiceWorkerManagerParent(actor);
1212
0
            return;
1213
0
        }
1214
0
    case PServiceWorkerRegistrationMsgStart:
1215
0
        {
1216
0
            PServiceWorkerRegistrationParent* actor = static_cast<PServiceWorkerRegistrationParent*>(aListener);
1217
0
            auto& container = mManagedPServiceWorkerRegistrationParent;
1218
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1219
0
1220
0
            (container).RemoveEntry(actor);
1221
0
            DeallocPServiceWorkerRegistrationParent(actor);
1222
0
            return;
1223
0
        }
1224
0
    case PWebAuthnTransactionMsgStart:
1225
0
        {
1226
0
            PWebAuthnTransactionParent* actor = static_cast<PWebAuthnTransactionParent*>(aListener);
1227
0
            auto& container = mManagedPWebAuthnTransactionParent;
1228
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1229
0
1230
0
            (container).RemoveEntry(actor);
1231
0
            DeallocPWebAuthnTransactionParent(actor);
1232
0
            return;
1233
0
        }
1234
0
    case PUDPSocketMsgStart:
1235
0
        {
1236
0
            PUDPSocketParent* actor = static_cast<PUDPSocketParent*>(aListener);
1237
0
            auto& container = mManagedPUDPSocketParent;
1238
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1239
0
1240
0
            (container).RemoveEntry(actor);
1241
0
            DeallocPUDPSocketParent(actor);
1242
0
            return;
1243
0
        }
1244
0
    case PVsyncMsgStart:
1245
0
        {
1246
0
            PVsyncParent* actor = static_cast<PVsyncParent*>(aListener);
1247
0
            auto& container = mManagedPVsyncParent;
1248
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1249
0
1250
0
            (container).RemoveEntry(actor);
1251
0
            DeallocPVsyncParent(actor);
1252
0
            return;
1253
0
        }
1254
0
    default:
1255
0
        {
1256
0
            FatalError("unreached");
1257
0
            return;
1258
0
        }
1259
0
    }
1260
0
}
1261
1262
auto PBackgroundParent::OnMessageReceived(const Message& msg__) -> PBackgroundParent::Result
1263
0
{
1264
0
    int32_t route__ = (msg__).routing_id();
1265
0
    if ((MSG_ROUTING_CONTROL) != (route__)) {
1266
0
        IProtocol* routed__ = Lookup(route__);
1267
0
        if ((!(routed__))) {
1268
0
            return MsgRouteError;
1269
0
        }
1270
0
        return (routed__)->OnMessageReceived(msg__);
1271
0
    }
1272
0
1273
0
    switch ((msg__).type()) {
1274
0
    case PBackground::Msg_PBackgroundTestConstructor__ID:
1275
0
        {
1276
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
1277
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1278
0
            }
1279
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PBackgroundTestConstructor", OTHER);
1280
0
1281
0
            PickleIterator iter__(msg__);
1282
0
            ActorHandle handle__;
1283
0
            PBackgroundTestParent* actor;
1284
0
            nsCString testArg;
1285
0
1286
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1287
0
                FatalError("Error deserializing 'ActorHandle'");
1288
0
                return MsgValueError;
1289
0
            }
1290
0
            // Sentinel = 'actor'
1291
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1292
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1293
0
                return MsgValueError;
1294
0
            }
1295
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(testArg)))))) {
1296
0
                FatalError("Error deserializing 'nsCString'");
1297
0
                return MsgValueError;
1298
0
            }
1299
0
            // Sentinel = 'testArg'
1300
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2144009831)))) {
1301
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
1302
0
                return MsgValueError;
1303
0
            }
1304
0
            (msg__).EndRead(iter__, (msg__).type());
1305
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1306
0
                FatalError("Transition error");
1307
0
                return MsgValueError;
1308
0
            }
1309
0
            actor = AllocPBackgroundTestParent(testArg);
1310
0
            if ((!(actor))) {
1311
0
                NS_WARNING("Error constructing actor PBackgroundTestParent");
1312
0
                return MsgValueError;
1313
0
            }
1314
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1315
0
            (mManagedPBackgroundTestParent).PutEntry(actor);
1316
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1317
0
1318
0
            if ((!(RecvPBackgroundTestConstructor(actor, testArg)))) {
1319
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1320
0
                // Error handled in mozilla::ipc::IPCResult
1321
0
                return MsgProcessingError;
1322
0
            }
1323
0
1324
0
            return MsgProcessed;
1325
0
        }
1326
0
    case PBackground::Msg_PBackgroundIDBFactoryConstructor__ID:
1327
0
        {
1328
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
1329
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1330
0
            }
1331
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PBackgroundIDBFactoryConstructor", OTHER);
1332
0
1333
0
            PickleIterator iter__(msg__);
1334
0
            ActorHandle handle__;
1335
0
            PBackgroundIDBFactoryParent* actor;
1336
0
            LoggingInfo loggingInfo;
1337
0
1338
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1339
0
                FatalError("Error deserializing 'ActorHandle'");
1340
0
                return MsgValueError;
1341
0
            }
1342
0
            // Sentinel = 'actor'
1343
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1344
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1345
0
                return MsgValueError;
1346
0
            }
1347
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(loggingInfo)))))) {
1348
0
                FatalError("Error deserializing 'LoggingInfo'");
1349
0
                return MsgValueError;
1350
0
            }
1351
0
            // Sentinel = 'loggingInfo'
1352
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 753102592)))) {
1353
0
                mozilla::ipc::SentinelReadError("Error deserializing 'LoggingInfo'");
1354
0
                return MsgValueError;
1355
0
            }
1356
0
            (msg__).EndRead(iter__, (msg__).type());
1357
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1358
0
                FatalError("Transition error");
1359
0
                return MsgValueError;
1360
0
            }
1361
0
            actor = AllocPBackgroundIDBFactoryParent(loggingInfo);
1362
0
            if ((!(actor))) {
1363
0
                NS_WARNING("Error constructing actor PBackgroundIDBFactoryParent");
1364
0
                return MsgValueError;
1365
0
            }
1366
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1367
0
            (mManagedPBackgroundIDBFactoryParent).PutEntry(actor);
1368
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1369
0
1370
0
            if ((!(RecvPBackgroundIDBFactoryConstructor(actor, loggingInfo)))) {
1371
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1372
0
                // Error handled in mozilla::ipc::IPCResult
1373
0
                return MsgProcessingError;
1374
0
            }
1375
0
1376
0
            return MsgProcessed;
1377
0
        }
1378
0
    case PBackground::Msg_PBackgroundIndexedDBUtilsConstructor__ID:
1379
0
        {
1380
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
1381
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1382
0
            }
1383
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PBackgroundIndexedDBUtilsConstructor", OTHER);
1384
0
1385
0
            PickleIterator iter__(msg__);
1386
0
            ActorHandle handle__;
1387
0
            PBackgroundIndexedDBUtilsParent* actor;
1388
0
1389
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1390
0
                FatalError("Error deserializing 'ActorHandle'");
1391
0
                return MsgValueError;
1392
0
            }
1393
0
            // Sentinel = 'actor'
1394
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1395
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1396
0
                return MsgValueError;
1397
0
            }
1398
0
            (msg__).EndRead(iter__, (msg__).type());
1399
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1400
0
                FatalError("Transition error");
1401
0
                return MsgValueError;
1402
0
            }
1403
0
            actor = AllocPBackgroundIndexedDBUtilsParent();
1404
0
            if ((!(actor))) {
1405
0
                NS_WARNING("Error constructing actor PBackgroundIndexedDBUtilsParent");
1406
0
                return MsgValueError;
1407
0
            }
1408
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1409
0
            (mManagedPBackgroundIndexedDBUtilsParent).PutEntry(actor);
1410
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1411
0
1412
0
            if ((!(RecvPBackgroundIndexedDBUtilsConstructor(actor)))) {
1413
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1414
0
                // Error handled in mozilla::ipc::IPCResult
1415
0
                return MsgProcessingError;
1416
0
            }
1417
0
1418
0
            return MsgProcessed;
1419
0
        }
1420
0
    case PBackground::Msg_FlushPendingFileDeletions__ID:
1421
0
        {
1422
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
1423
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1424
0
            }
1425
0
            AUTO_PROFILER_LABEL("PBackground::Msg_FlushPendingFileDeletions", OTHER);
1426
0
1427
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1428
0
                FatalError("Transition error");
1429
0
                return MsgValueError;
1430
0
            }
1431
0
            if ((!(RecvFlushPendingFileDeletions()))) {
1432
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1433
0
                // Error handled in mozilla::ipc::IPCResult
1434
0
                return MsgProcessingError;
1435
0
            }
1436
0
1437
0
            return MsgProcessed;
1438
0
        }
1439
0
    case PBackground::Msg_PBackgroundSDBConnectionConstructor__ID:
1440
0
        {
1441
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
1442
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1443
0
            }
1444
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PBackgroundSDBConnectionConstructor", OTHER);
1445
0
1446
0
            PickleIterator iter__(msg__);
1447
0
            ActorHandle handle__;
1448
0
            PBackgroundSDBConnectionParent* actor;
1449
0
            PrincipalInfo principalInfo;
1450
0
1451
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1452
0
                FatalError("Error deserializing 'ActorHandle'");
1453
0
                return MsgValueError;
1454
0
            }
1455
0
            // Sentinel = 'actor'
1456
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1457
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1458
0
                return MsgValueError;
1459
0
            }
1460
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principalInfo)))))) {
1461
0
                FatalError("Error deserializing 'PrincipalInfo'");
1462
0
                return MsgValueError;
1463
0
            }
1464
0
            // Sentinel = 'principalInfo'
1465
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3386633731)))) {
1466
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo'");
1467
0
                return MsgValueError;
1468
0
            }
1469
0
            (msg__).EndRead(iter__, (msg__).type());
1470
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1471
0
                FatalError("Transition error");
1472
0
                return MsgValueError;
1473
0
            }
1474
0
            actor = AllocPBackgroundSDBConnectionParent(principalInfo);
1475
0
            if ((!(actor))) {
1476
0
                NS_WARNING("Error constructing actor PBackgroundSDBConnectionParent");
1477
0
                return MsgValueError;
1478
0
            }
1479
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1480
0
            (mManagedPBackgroundSDBConnectionParent).PutEntry(actor);
1481
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1482
0
1483
0
            if ((!(RecvPBackgroundSDBConnectionConstructor(actor, principalInfo)))) {
1484
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1485
0
                // Error handled in mozilla::ipc::IPCResult
1486
0
                return MsgProcessingError;
1487
0
            }
1488
0
1489
0
            return MsgProcessed;
1490
0
        }
1491
0
    case PBackground::Msg_PBackgroundLocalStorageCacheConstructor__ID:
1492
0
        {
1493
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
1494
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1495
0
            }
1496
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PBackgroundLocalStorageCacheConstructor", OTHER);
1497
0
1498
0
            PickleIterator iter__(msg__);
1499
0
            ActorHandle handle__;
1500
0
            PBackgroundLocalStorageCacheParent* actor;
1501
0
            PrincipalInfo principalInfo;
1502
0
            nsCString originKey;
1503
0
            uint32_t privateBrowsingId;
1504
0
1505
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1506
0
                FatalError("Error deserializing 'ActorHandle'");
1507
0
                return MsgValueError;
1508
0
            }
1509
0
            // Sentinel = 'actor'
1510
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1511
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1512
0
                return MsgValueError;
1513
0
            }
1514
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principalInfo)))))) {
1515
0
                FatalError("Error deserializing 'PrincipalInfo'");
1516
0
                return MsgValueError;
1517
0
            }
1518
0
            // Sentinel = 'principalInfo'
1519
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3386633731)))) {
1520
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo'");
1521
0
                return MsgValueError;
1522
0
            }
1523
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(originKey)))))) {
1524
0
                FatalError("Error deserializing 'nsCString'");
1525
0
                return MsgValueError;
1526
0
            }
1527
0
            // Sentinel = 'originKey'
1528
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 858621434)))) {
1529
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
1530
0
                return MsgValueError;
1531
0
            }
1532
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(privateBrowsingId)))))) {
1533
0
                FatalError("Error deserializing 'uint32_t'");
1534
0
                return MsgValueError;
1535
0
            }
1536
0
            // Sentinel = 'privateBrowsingId'
1537
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2950341020)))) {
1538
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
1539
0
                return MsgValueError;
1540
0
            }
1541
0
            (msg__).EndRead(iter__, (msg__).type());
1542
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1543
0
                FatalError("Transition error");
1544
0
                return MsgValueError;
1545
0
            }
1546
0
            actor = AllocPBackgroundLocalStorageCacheParent(principalInfo, originKey, privateBrowsingId);
1547
0
            if ((!(actor))) {
1548
0
                NS_WARNING("Error constructing actor PBackgroundLocalStorageCacheParent");
1549
0
                return MsgValueError;
1550
0
            }
1551
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1552
0
            (mManagedPBackgroundLocalStorageCacheParent).PutEntry(actor);
1553
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1554
0
1555
0
            if ((!(RecvPBackgroundLocalStorageCacheConstructor(actor, principalInfo, originKey, privateBrowsingId)))) {
1556
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1557
0
                // Error handled in mozilla::ipc::IPCResult
1558
0
                return MsgProcessingError;
1559
0
            }
1560
0
1561
0
            return MsgProcessed;
1562
0
        }
1563
0
    case PBackground::Msg_PBackgroundStorageConstructor__ID:
1564
0
        {
1565
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
1566
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1567
0
            }
1568
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PBackgroundStorageConstructor", OTHER);
1569
0
1570
0
            PickleIterator iter__(msg__);
1571
0
            ActorHandle handle__;
1572
0
            PBackgroundStorageParent* actor;
1573
0
            nsString profilePath;
1574
0
1575
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1576
0
                FatalError("Error deserializing 'ActorHandle'");
1577
0
                return MsgValueError;
1578
0
            }
1579
0
            // Sentinel = 'actor'
1580
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1581
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1582
0
                return MsgValueError;
1583
0
            }
1584
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(profilePath)))))) {
1585
0
                FatalError("Error deserializing 'nsString'");
1586
0
                return MsgValueError;
1587
0
            }
1588
0
            // Sentinel = 'profilePath'
1589
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 608219353)))) {
1590
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
1591
0
                return MsgValueError;
1592
0
            }
1593
0
            (msg__).EndRead(iter__, (msg__).type());
1594
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1595
0
                FatalError("Transition error");
1596
0
                return MsgValueError;
1597
0
            }
1598
0
            actor = AllocPBackgroundStorageParent(profilePath);
1599
0
            if ((!(actor))) {
1600
0
                NS_WARNING("Error constructing actor PBackgroundStorageParent");
1601
0
                return MsgValueError;
1602
0
            }
1603
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1604
0
            (mManagedPBackgroundStorageParent).PutEntry(actor);
1605
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1606
0
1607
0
            if ((!(RecvPBackgroundStorageConstructor(actor, profilePath)))) {
1608
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1609
0
                // Error handled in mozilla::ipc::IPCResult
1610
0
                return MsgProcessingError;
1611
0
            }
1612
0
1613
0
            return MsgProcessed;
1614
0
        }
1615
0
    case PBackground::Msg_PVsyncConstructor__ID:
1616
0
        {
1617
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
1618
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1619
0
            }
1620
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PVsyncConstructor", OTHER);
1621
0
1622
0
            PickleIterator iter__(msg__);
1623
0
            ActorHandle handle__;
1624
0
            PVsyncParent* actor;
1625
0
1626
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1627
0
                FatalError("Error deserializing 'ActorHandle'");
1628
0
                return MsgValueError;
1629
0
            }
1630
0
            // Sentinel = 'actor'
1631
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1632
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1633
0
                return MsgValueError;
1634
0
            }
1635
0
            (msg__).EndRead(iter__, (msg__).type());
1636
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1637
0
                FatalError("Transition error");
1638
0
                return MsgValueError;
1639
0
            }
1640
0
            actor = AllocPVsyncParent();
1641
0
            if ((!(actor))) {
1642
0
                NS_WARNING("Error constructing actor PVsyncParent");
1643
0
                return MsgValueError;
1644
0
            }
1645
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1646
0
            (mManagedPVsyncParent).PutEntry(actor);
1647
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1648
0
1649
0
            if ((!(RecvPVsyncConstructor(actor)))) {
1650
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1651
0
                // Error handled in mozilla::ipc::IPCResult
1652
0
                return MsgProcessingError;
1653
0
            }
1654
0
1655
0
            return MsgProcessed;
1656
0
        }
1657
0
    case PBackground::Msg_PCamerasConstructor__ID:
1658
0
        {
1659
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
1660
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1661
0
            }
1662
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PCamerasConstructor", OTHER);
1663
0
1664
0
            PickleIterator iter__(msg__);
1665
0
            ActorHandle handle__;
1666
0
            PCamerasParent* actor;
1667
0
1668
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1669
0
                FatalError("Error deserializing 'ActorHandle'");
1670
0
                return MsgValueError;
1671
0
            }
1672
0
            // Sentinel = 'actor'
1673
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1674
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1675
0
                return MsgValueError;
1676
0
            }
1677
0
            (msg__).EndRead(iter__, (msg__).type());
1678
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1679
0
                FatalError("Transition error");
1680
0
                return MsgValueError;
1681
0
            }
1682
0
            actor = AllocPCamerasParent();
1683
0
            if ((!(actor))) {
1684
0
                NS_WARNING("Error constructing actor PCamerasParent");
1685
0
                return MsgValueError;
1686
0
            }
1687
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1688
0
            (mManagedPCamerasParent).PutEntry(actor);
1689
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1690
0
1691
0
            if ((!(RecvPCamerasConstructor(actor)))) {
1692
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1693
0
                // Error handled in mozilla::ipc::IPCResult
1694
0
                return MsgProcessingError;
1695
0
            }
1696
0
1697
0
            return MsgProcessed;
1698
0
        }
1699
0
    case PBackground::Msg_PUDPSocketConstructor__ID:
1700
0
        {
1701
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
1702
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1703
0
            }
1704
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PUDPSocketConstructor", OTHER);
1705
0
1706
0
            PickleIterator iter__(msg__);
1707
0
            ActorHandle handle__;
1708
0
            PUDPSocketParent* actor;
1709
0
            OptionalPrincipalInfo pInfo;
1710
0
            nsCString filter;
1711
0
1712
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1713
0
                FatalError("Error deserializing 'ActorHandle'");
1714
0
                return MsgValueError;
1715
0
            }
1716
0
            // Sentinel = 'actor'
1717
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1718
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1719
0
                return MsgValueError;
1720
0
            }
1721
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(pInfo)))))) {
1722
0
                FatalError("Error deserializing 'OptionalPrincipalInfo'");
1723
0
                return MsgValueError;
1724
0
            }
1725
0
            // Sentinel = 'pInfo'
1726
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3256439729)))) {
1727
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OptionalPrincipalInfo'");
1728
0
                return MsgValueError;
1729
0
            }
1730
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(filter)))))) {
1731
0
                FatalError("Error deserializing 'nsCString'");
1732
0
                return MsgValueError;
1733
0
            }
1734
0
            // Sentinel = 'filter'
1735
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2236769008)))) {
1736
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
1737
0
                return MsgValueError;
1738
0
            }
1739
0
            (msg__).EndRead(iter__, (msg__).type());
1740
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1741
0
                FatalError("Transition error");
1742
0
                return MsgValueError;
1743
0
            }
1744
0
            actor = AllocPUDPSocketParent(pInfo, filter);
1745
0
            if ((!(actor))) {
1746
0
                NS_WARNING("Error constructing actor PUDPSocketParent");
1747
0
                return MsgValueError;
1748
0
            }
1749
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1750
0
            (mManagedPUDPSocketParent).PutEntry(actor);
1751
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1752
0
1753
0
            if ((!(RecvPUDPSocketConstructor(actor, pInfo, filter)))) {
1754
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1755
0
                // Error handled in mozilla::ipc::IPCResult
1756
0
                return MsgProcessingError;
1757
0
            }
1758
0
1759
0
            return MsgProcessed;
1760
0
        }
1761
0
    case PBackground::Msg_PBroadcastChannelConstructor__ID:
1762
0
        {
1763
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
1764
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1765
0
            }
1766
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PBroadcastChannelConstructor", OTHER);
1767
0
1768
0
            PickleIterator iter__(msg__);
1769
0
            ActorHandle handle__;
1770
0
            PBroadcastChannelParent* actor;
1771
0
            PrincipalInfo pInfo;
1772
0
            nsCString origin;
1773
0
            nsString channel;
1774
0
1775
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1776
0
                FatalError("Error deserializing 'ActorHandle'");
1777
0
                return MsgValueError;
1778
0
            }
1779
0
            // Sentinel = 'actor'
1780
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1781
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1782
0
                return MsgValueError;
1783
0
            }
1784
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(pInfo)))))) {
1785
0
                FatalError("Error deserializing 'PrincipalInfo'");
1786
0
                return MsgValueError;
1787
0
            }
1788
0
            // Sentinel = 'pInfo'
1789
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3256439729)))) {
1790
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo'");
1791
0
                return MsgValueError;
1792
0
            }
1793
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(origin)))))) {
1794
0
                FatalError("Error deserializing 'nsCString'");
1795
0
                return MsgValueError;
1796
0
            }
1797
0
            // Sentinel = 'origin'
1798
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1429924608)))) {
1799
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
1800
0
                return MsgValueError;
1801
0
            }
1802
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(channel)))))) {
1803
0
                FatalError("Error deserializing 'nsString'");
1804
0
                return MsgValueError;
1805
0
            }
1806
0
            // Sentinel = 'channel'
1807
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 452840382)))) {
1808
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
1809
0
                return MsgValueError;
1810
0
            }
1811
0
            (msg__).EndRead(iter__, (msg__).type());
1812
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1813
0
                FatalError("Transition error");
1814
0
                return MsgValueError;
1815
0
            }
1816
0
            actor = AllocPBroadcastChannelParent(pInfo, origin, channel);
1817
0
            if ((!(actor))) {
1818
0
                NS_WARNING("Error constructing actor PBroadcastChannelParent");
1819
0
                return MsgValueError;
1820
0
            }
1821
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1822
0
            (mManagedPBroadcastChannelParent).PutEntry(actor);
1823
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1824
0
1825
0
            if ((!(RecvPBroadcastChannelConstructor(actor, pInfo, origin, channel)))) {
1826
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1827
0
                // Error handled in mozilla::ipc::IPCResult
1828
0
                return MsgProcessingError;
1829
0
            }
1830
0
1831
0
            return MsgProcessed;
1832
0
        }
1833
0
    case PBackground::Msg_PServiceWorkerManagerConstructor__ID:
1834
0
        {
1835
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
1836
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1837
0
            }
1838
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PServiceWorkerManagerConstructor", OTHER);
1839
0
1840
0
            PickleIterator iter__(msg__);
1841
0
            ActorHandle handle__;
1842
0
            PServiceWorkerManagerParent* actor;
1843
0
1844
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1845
0
                FatalError("Error deserializing 'ActorHandle'");
1846
0
                return MsgValueError;
1847
0
            }
1848
0
            // Sentinel = 'actor'
1849
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1850
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1851
0
                return MsgValueError;
1852
0
            }
1853
0
            (msg__).EndRead(iter__, (msg__).type());
1854
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1855
0
                FatalError("Transition error");
1856
0
                return MsgValueError;
1857
0
            }
1858
0
            actor = AllocPServiceWorkerManagerParent();
1859
0
            if ((!(actor))) {
1860
0
                NS_WARNING("Error constructing actor PServiceWorkerManagerParent");
1861
0
                return MsgValueError;
1862
0
            }
1863
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1864
0
            (mManagedPServiceWorkerManagerParent).PutEntry(actor);
1865
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1866
0
1867
0
            if ((!(RecvPServiceWorkerManagerConstructor(actor)))) {
1868
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1869
0
                // Error handled in mozilla::ipc::IPCResult
1870
0
                return MsgProcessingError;
1871
0
            }
1872
0
1873
0
            return MsgProcessed;
1874
0
        }
1875
0
    case PBackground::Msg_ShutdownServiceWorkerRegistrar__ID:
1876
0
        {
1877
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
1878
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1879
0
            }
1880
0
            AUTO_PROFILER_LABEL("PBackground::Msg_ShutdownServiceWorkerRegistrar", OTHER);
1881
0
1882
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1883
0
                FatalError("Transition error");
1884
0
                return MsgValueError;
1885
0
            }
1886
0
            if ((!(RecvShutdownServiceWorkerRegistrar()))) {
1887
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1888
0
                // Error handled in mozilla::ipc::IPCResult
1889
0
                return MsgProcessingError;
1890
0
            }
1891
0
1892
0
            return MsgProcessed;
1893
0
        }
1894
0
    case PBackground::Msg_PCacheStorageConstructor__ID:
1895
0
        {
1896
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
1897
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1898
0
            }
1899
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PCacheStorageConstructor", OTHER);
1900
0
1901
0
            PickleIterator iter__(msg__);
1902
0
            ActorHandle handle__;
1903
0
            PCacheStorageParent* actor;
1904
0
            Namespace aNamespace;
1905
0
            PrincipalInfo aPrincipalInfo;
1906
0
1907
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1908
0
                FatalError("Error deserializing 'ActorHandle'");
1909
0
                return MsgValueError;
1910
0
            }
1911
0
            // Sentinel = 'actor'
1912
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1913
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1914
0
                return MsgValueError;
1915
0
            }
1916
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aNamespace)))))) {
1917
0
                FatalError("Error deserializing 'Namespace'");
1918
0
                return MsgValueError;
1919
0
            }
1920
0
            // Sentinel = 'aNamespace'
1921
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1104189952)))) {
1922
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Namespace'");
1923
0
                return MsgValueError;
1924
0
            }
1925
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPrincipalInfo)))))) {
1926
0
                FatalError("Error deserializing 'PrincipalInfo'");
1927
0
                return MsgValueError;
1928
0
            }
1929
0
            // Sentinel = 'aPrincipalInfo'
1930
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2377045983)))) {
1931
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo'");
1932
0
                return MsgValueError;
1933
0
            }
1934
0
            (msg__).EndRead(iter__, (msg__).type());
1935
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1936
0
                FatalError("Transition error");
1937
0
                return MsgValueError;
1938
0
            }
1939
0
            actor = AllocPCacheStorageParent(aNamespace, aPrincipalInfo);
1940
0
            if ((!(actor))) {
1941
0
                NS_WARNING("Error constructing actor PCacheStorageParent");
1942
0
                return MsgValueError;
1943
0
            }
1944
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1945
0
            (mManagedPCacheStorageParent).PutEntry(actor);
1946
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1947
0
1948
0
            if ((!(RecvPCacheStorageConstructor(actor, aNamespace, aPrincipalInfo)))) {
1949
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1950
0
                // Error handled in mozilla::ipc::IPCResult
1951
0
                return MsgProcessingError;
1952
0
            }
1953
0
1954
0
            return MsgProcessed;
1955
0
        }
1956
0
    case PBackground::Msg_PMessagePortConstructor__ID:
1957
0
        {
1958
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
1959
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1960
0
            }
1961
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PMessagePortConstructor", OTHER);
1962
0
1963
0
            PickleIterator iter__(msg__);
1964
0
            ActorHandle handle__;
1965
0
            PMessagePortParent* actor;
1966
0
            nsID uuid;
1967
0
            nsID destinationUuid;
1968
0
            uint32_t sequenceId;
1969
0
1970
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1971
0
                FatalError("Error deserializing 'ActorHandle'");
1972
0
                return MsgValueError;
1973
0
            }
1974
0
            // Sentinel = 'actor'
1975
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1976
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1977
0
                return MsgValueError;
1978
0
            }
1979
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(uuid)))))) {
1980
0
                FatalError("Error deserializing 'nsID'");
1981
0
                return MsgValueError;
1982
0
            }
1983
0
            // Sentinel = 'uuid'
1984
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1982267941)))) {
1985
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsID'");
1986
0
                return MsgValueError;
1987
0
            }
1988
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(destinationUuid)))))) {
1989
0
                FatalError("Error deserializing 'nsID'");
1990
0
                return MsgValueError;
1991
0
            }
1992
0
            // Sentinel = 'destinationUuid'
1993
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 372087918)))) {
1994
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsID'");
1995
0
                return MsgValueError;
1996
0
            }
1997
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(sequenceId)))))) {
1998
0
                FatalError("Error deserializing 'uint32_t'");
1999
0
                return MsgValueError;
2000
0
            }
2001
0
            // Sentinel = 'sequenceId'
2002
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2743535618)))) {
2003
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
2004
0
                return MsgValueError;
2005
0
            }
2006
0
            (msg__).EndRead(iter__, (msg__).type());
2007
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2008
0
                FatalError("Transition error");
2009
0
                return MsgValueError;
2010
0
            }
2011
0
            actor = AllocPMessagePortParent(uuid, destinationUuid, sequenceId);
2012
0
            if ((!(actor))) {
2013
0
                NS_WARNING("Error constructing actor PMessagePortParent");
2014
0
                return MsgValueError;
2015
0
            }
2016
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2017
0
            (mManagedPMessagePortParent).PutEntry(actor);
2018
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2019
0
2020
0
            if ((!(RecvPMessagePortConstructor(actor, uuid, destinationUuid, sequenceId)))) {
2021
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2022
0
                // Error handled in mozilla::ipc::IPCResult
2023
0
                return MsgProcessingError;
2024
0
            }
2025
0
2026
0
            return MsgProcessed;
2027
0
        }
2028
0
    case PBackground::Msg_PChildToParentStreamConstructor__ID:
2029
0
        {
2030
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2031
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2032
0
            }
2033
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PChildToParentStreamConstructor", OTHER);
2034
0
2035
0
            PickleIterator iter__(msg__);
2036
0
            ActorHandle handle__;
2037
0
            PChildToParentStreamParent* actor;
2038
0
2039
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2040
0
                FatalError("Error deserializing 'ActorHandle'");
2041
0
                return MsgValueError;
2042
0
            }
2043
0
            // Sentinel = 'actor'
2044
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2045
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2046
0
                return MsgValueError;
2047
0
            }
2048
0
            (msg__).EndRead(iter__, (msg__).type());
2049
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2050
0
                FatalError("Transition error");
2051
0
                return MsgValueError;
2052
0
            }
2053
0
            actor = AllocPChildToParentStreamParent();
2054
0
            if ((!(actor))) {
2055
0
                NS_WARNING("Error constructing actor PChildToParentStreamParent");
2056
0
                return MsgValueError;
2057
0
            }
2058
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2059
0
            (mManagedPChildToParentStreamParent).PutEntry(actor);
2060
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2061
0
2062
0
            if ((!(RecvPChildToParentStreamConstructor(actor)))) {
2063
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2064
0
                // Error handled in mozilla::ipc::IPCResult
2065
0
                return MsgProcessingError;
2066
0
            }
2067
0
2068
0
            return MsgProcessed;
2069
0
        }
2070
0
    case PBackground::Msg_MessagePortForceClose__ID:
2071
0
        {
2072
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2073
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2074
0
            }
2075
0
            AUTO_PROFILER_LABEL("PBackground::Msg_MessagePortForceClose", OTHER);
2076
0
2077
0
            PickleIterator iter__(msg__);
2078
0
            nsID uuid;
2079
0
            nsID destinationUuid;
2080
0
            uint32_t sequenceId;
2081
0
2082
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(uuid)))))) {
2083
0
                FatalError("Error deserializing 'nsID'");
2084
0
                return MsgValueError;
2085
0
            }
2086
0
            // Sentinel = 'uuid'
2087
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1982267941)))) {
2088
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsID'");
2089
0
                return MsgValueError;
2090
0
            }
2091
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(destinationUuid)))))) {
2092
0
                FatalError("Error deserializing 'nsID'");
2093
0
                return MsgValueError;
2094
0
            }
2095
0
            // Sentinel = 'destinationUuid'
2096
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 372087918)))) {
2097
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsID'");
2098
0
                return MsgValueError;
2099
0
            }
2100
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(sequenceId)))))) {
2101
0
                FatalError("Error deserializing 'uint32_t'");
2102
0
                return MsgValueError;
2103
0
            }
2104
0
            // Sentinel = 'sequenceId'
2105
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2743535618)))) {
2106
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
2107
0
                return MsgValueError;
2108
0
            }
2109
0
            (msg__).EndRead(iter__, (msg__).type());
2110
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2111
0
                FatalError("Transition error");
2112
0
                return MsgValueError;
2113
0
            }
2114
0
            if ((!(RecvMessagePortForceClose(uuid, destinationUuid, sequenceId)))) {
2115
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2116
0
                // Error handled in mozilla::ipc::IPCResult
2117
0
                return MsgProcessingError;
2118
0
            }
2119
0
2120
0
            return MsgProcessed;
2121
0
        }
2122
0
    case PBackground::Msg_PAsmJSCacheEntryConstructor__ID:
2123
0
        {
2124
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2125
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2126
0
            }
2127
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PAsmJSCacheEntryConstructor", OTHER);
2128
0
2129
0
            PickleIterator iter__(msg__);
2130
0
            ActorHandle handle__;
2131
0
            PAsmJSCacheEntryParent* actor;
2132
0
            OpenMode openMode;
2133
0
            WriteParams write;
2134
0
            PrincipalInfo principalInfo;
2135
0
2136
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2137
0
                FatalError("Error deserializing 'ActorHandle'");
2138
0
                return MsgValueError;
2139
0
            }
2140
0
            // Sentinel = 'actor'
2141
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2142
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2143
0
                return MsgValueError;
2144
0
            }
2145
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(openMode)))))) {
2146
0
                FatalError("Error deserializing 'OpenMode'");
2147
0
                return MsgValueError;
2148
0
            }
2149
0
            // Sentinel = 'openMode'
2150
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2477830497)))) {
2151
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OpenMode'");
2152
0
                return MsgValueError;
2153
0
            }
2154
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(write)))))) {
2155
0
                FatalError("Error deserializing 'WriteParams'");
2156
0
                return MsgValueError;
2157
0
            }
2158
0
            // Sentinel = 'write'
2159
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1000843696)))) {
2160
0
                mozilla::ipc::SentinelReadError("Error deserializing 'WriteParams'");
2161
0
                return MsgValueError;
2162
0
            }
2163
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principalInfo)))))) {
2164
0
                FatalError("Error deserializing 'PrincipalInfo'");
2165
0
                return MsgValueError;
2166
0
            }
2167
0
            // Sentinel = 'principalInfo'
2168
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3386633731)))) {
2169
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo'");
2170
0
                return MsgValueError;
2171
0
            }
2172
0
            (msg__).EndRead(iter__, (msg__).type());
2173
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2174
0
                FatalError("Transition error");
2175
0
                return MsgValueError;
2176
0
            }
2177
0
            actor = AllocPAsmJSCacheEntryParent(openMode, write, principalInfo);
2178
0
            if ((!(actor))) {
2179
0
                NS_WARNING("Error constructing actor PAsmJSCacheEntryParent");
2180
0
                return MsgValueError;
2181
0
            }
2182
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2183
0
            (mManagedPAsmJSCacheEntryParent).PutEntry(actor);
2184
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2185
0
2186
0
            if ((!(RecvPAsmJSCacheEntryConstructor(actor, openMode, write, principalInfo)))) {
2187
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2188
0
                // Error handled in mozilla::ipc::IPCResult
2189
0
                return MsgProcessingError;
2190
0
            }
2191
0
2192
0
            return MsgProcessed;
2193
0
        }
2194
0
    case PBackground::Msg_PQuotaConstructor__ID:
2195
0
        {
2196
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2197
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2198
0
            }
2199
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PQuotaConstructor", OTHER);
2200
0
2201
0
            PickleIterator iter__(msg__);
2202
0
            ActorHandle handle__;
2203
0
            PQuotaParent* actor;
2204
0
2205
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2206
0
                FatalError("Error deserializing 'ActorHandle'");
2207
0
                return MsgValueError;
2208
0
            }
2209
0
            // Sentinel = 'actor'
2210
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2211
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2212
0
                return MsgValueError;
2213
0
            }
2214
0
            (msg__).EndRead(iter__, (msg__).type());
2215
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2216
0
                FatalError("Transition error");
2217
0
                return MsgValueError;
2218
0
            }
2219
0
            actor = AllocPQuotaParent();
2220
0
            if ((!(actor))) {
2221
0
                NS_WARNING("Error constructing actor PQuotaParent");
2222
0
                return MsgValueError;
2223
0
            }
2224
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2225
0
            (mManagedPQuotaParent).PutEntry(actor);
2226
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2227
0
2228
0
            if ((!(RecvPQuotaConstructor(actor)))) {
2229
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2230
0
                // Error handled in mozilla::ipc::IPCResult
2231
0
                return MsgProcessingError;
2232
0
            }
2233
0
2234
0
            return MsgProcessed;
2235
0
        }
2236
0
    case PBackground::Msg_PFileSystemRequestConstructor__ID:
2237
0
        {
2238
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2239
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2240
0
            }
2241
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PFileSystemRequestConstructor", OTHER);
2242
0
2243
0
            PickleIterator iter__(msg__);
2244
0
            ActorHandle handle__;
2245
0
            PFileSystemRequestParent* actor;
2246
0
            FileSystemParams params;
2247
0
2248
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2249
0
                FatalError("Error deserializing 'ActorHandle'");
2250
0
                return MsgValueError;
2251
0
            }
2252
0
            // Sentinel = 'actor'
2253
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2254
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2255
0
                return MsgValueError;
2256
0
            }
2257
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(params)))))) {
2258
0
                FatalError("Error deserializing 'FileSystemParams'");
2259
0
                return MsgValueError;
2260
0
            }
2261
0
            // Sentinel = 'params'
2262
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1677790004)))) {
2263
0
                mozilla::ipc::SentinelReadError("Error deserializing 'FileSystemParams'");
2264
0
                return MsgValueError;
2265
0
            }
2266
0
            (msg__).EndRead(iter__, (msg__).type());
2267
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2268
0
                FatalError("Transition error");
2269
0
                return MsgValueError;
2270
0
            }
2271
0
            actor = AllocPFileSystemRequestParent(params);
2272
0
            if ((!(actor))) {
2273
0
                NS_WARNING("Error constructing actor PFileSystemRequestParent");
2274
0
                return MsgValueError;
2275
0
            }
2276
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2277
0
            (mManagedPFileSystemRequestParent).PutEntry(actor);
2278
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2279
0
2280
0
            if ((!(RecvPFileSystemRequestConstructor(actor, params)))) {
2281
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2282
0
                // Error handled in mozilla::ipc::IPCResult
2283
0
                return MsgProcessingError;
2284
0
            }
2285
0
2286
0
            return MsgProcessed;
2287
0
        }
2288
0
    case PBackground::Msg_PGamepadEventChannelConstructor__ID:
2289
0
        {
2290
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2291
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2292
0
            }
2293
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PGamepadEventChannelConstructor", OTHER);
2294
0
2295
0
            PickleIterator iter__(msg__);
2296
0
            ActorHandle handle__;
2297
0
            PGamepadEventChannelParent* actor;
2298
0
2299
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2300
0
                FatalError("Error deserializing 'ActorHandle'");
2301
0
                return MsgValueError;
2302
0
            }
2303
0
            // Sentinel = 'actor'
2304
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2305
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2306
0
                return MsgValueError;
2307
0
            }
2308
0
            (msg__).EndRead(iter__, (msg__).type());
2309
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2310
0
                FatalError("Transition error");
2311
0
                return MsgValueError;
2312
0
            }
2313
0
            actor = AllocPGamepadEventChannelParent();
2314
0
            if ((!(actor))) {
2315
0
                NS_WARNING("Error constructing actor PGamepadEventChannelParent");
2316
0
                return MsgValueError;
2317
0
            }
2318
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2319
0
            (mManagedPGamepadEventChannelParent).PutEntry(actor);
2320
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2321
0
2322
0
            if ((!(RecvPGamepadEventChannelConstructor(actor)))) {
2323
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2324
0
                // Error handled in mozilla::ipc::IPCResult
2325
0
                return MsgProcessingError;
2326
0
            }
2327
0
2328
0
            return MsgProcessed;
2329
0
        }
2330
0
    case PBackground::Msg_PGamepadTestChannelConstructor__ID:
2331
0
        {
2332
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2333
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2334
0
            }
2335
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PGamepadTestChannelConstructor", OTHER);
2336
0
2337
0
            PickleIterator iter__(msg__);
2338
0
            ActorHandle handle__;
2339
0
            PGamepadTestChannelParent* actor;
2340
0
2341
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2342
0
                FatalError("Error deserializing 'ActorHandle'");
2343
0
                return MsgValueError;
2344
0
            }
2345
0
            // Sentinel = 'actor'
2346
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2347
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2348
0
                return MsgValueError;
2349
0
            }
2350
0
            (msg__).EndRead(iter__, (msg__).type());
2351
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2352
0
                FatalError("Transition error");
2353
0
                return MsgValueError;
2354
0
            }
2355
0
            actor = AllocPGamepadTestChannelParent();
2356
0
            if ((!(actor))) {
2357
0
                NS_WARNING("Error constructing actor PGamepadTestChannelParent");
2358
0
                return MsgValueError;
2359
0
            }
2360
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2361
0
            (mManagedPGamepadTestChannelParent).PutEntry(actor);
2362
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2363
0
2364
0
            if ((!(RecvPGamepadTestChannelConstructor(actor)))) {
2365
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2366
0
                // Error handled in mozilla::ipc::IPCResult
2367
0
                return MsgProcessingError;
2368
0
            }
2369
0
2370
0
            return MsgProcessed;
2371
0
        }
2372
0
    case PBackground::Msg_PHttpBackgroundChannelConstructor__ID:
2373
0
        {
2374
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2375
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2376
0
            }
2377
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PHttpBackgroundChannelConstructor", OTHER);
2378
0
2379
0
            PickleIterator iter__(msg__);
2380
0
            ActorHandle handle__;
2381
0
            PHttpBackgroundChannelParent* actor;
2382
0
            uint64_t channelId;
2383
0
2384
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2385
0
                FatalError("Error deserializing 'ActorHandle'");
2386
0
                return MsgValueError;
2387
0
            }
2388
0
            // Sentinel = 'actor'
2389
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2390
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2391
0
                return MsgValueError;
2392
0
            }
2393
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(channelId)))))) {
2394
0
                FatalError("Error deserializing 'uint64_t'");
2395
0
                return MsgValueError;
2396
0
            }
2397
0
            // Sentinel = 'channelId'
2398
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 6854027)))) {
2399
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2400
0
                return MsgValueError;
2401
0
            }
2402
0
            (msg__).EndRead(iter__, (msg__).type());
2403
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2404
0
                FatalError("Transition error");
2405
0
                return MsgValueError;
2406
0
            }
2407
0
            actor = AllocPHttpBackgroundChannelParent(channelId);
2408
0
            if ((!(actor))) {
2409
0
                NS_WARNING("Error constructing actor PHttpBackgroundChannelParent");
2410
0
                return MsgValueError;
2411
0
            }
2412
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2413
0
            (mManagedPHttpBackgroundChannelParent).PutEntry(actor);
2414
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2415
0
2416
0
            if ((!(RecvPHttpBackgroundChannelConstructor(actor, channelId)))) {
2417
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2418
0
                // Error handled in mozilla::ipc::IPCResult
2419
0
                return MsgProcessingError;
2420
0
            }
2421
0
2422
0
            return MsgProcessed;
2423
0
        }
2424
0
    case PBackground::Msg_PWebAuthnTransactionConstructor__ID:
2425
0
        {
2426
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2427
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2428
0
            }
2429
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PWebAuthnTransactionConstructor", OTHER);
2430
0
2431
0
            PickleIterator iter__(msg__);
2432
0
            ActorHandle handle__;
2433
0
            PWebAuthnTransactionParent* actor;
2434
0
2435
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2436
0
                FatalError("Error deserializing 'ActorHandle'");
2437
0
                return MsgValueError;
2438
0
            }
2439
0
            // Sentinel = 'actor'
2440
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2441
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2442
0
                return MsgValueError;
2443
0
            }
2444
0
            (msg__).EndRead(iter__, (msg__).type());
2445
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2446
0
                FatalError("Transition error");
2447
0
                return MsgValueError;
2448
0
            }
2449
0
            actor = AllocPWebAuthnTransactionParent();
2450
0
            if ((!(actor))) {
2451
0
                NS_WARNING("Error constructing actor PWebAuthnTransactionParent");
2452
0
                return MsgValueError;
2453
0
            }
2454
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2455
0
            (mManagedPWebAuthnTransactionParent).PutEntry(actor);
2456
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2457
0
2458
0
            if ((!(RecvPWebAuthnTransactionConstructor(actor)))) {
2459
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2460
0
                // Error handled in mozilla::ipc::IPCResult
2461
0
                return MsgProcessingError;
2462
0
            }
2463
0
2464
0
            return MsgProcessed;
2465
0
        }
2466
0
    case PBackground::Msg_PTemporaryIPCBlobConstructor__ID:
2467
0
        {
2468
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2469
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2470
0
            }
2471
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PTemporaryIPCBlobConstructor", OTHER);
2472
0
2473
0
            PickleIterator iter__(msg__);
2474
0
            ActorHandle handle__;
2475
0
            PTemporaryIPCBlobParent* actor;
2476
0
2477
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2478
0
                FatalError("Error deserializing 'ActorHandle'");
2479
0
                return MsgValueError;
2480
0
            }
2481
0
            // Sentinel = 'actor'
2482
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2483
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2484
0
                return MsgValueError;
2485
0
            }
2486
0
            (msg__).EndRead(iter__, (msg__).type());
2487
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2488
0
                FatalError("Transition error");
2489
0
                return MsgValueError;
2490
0
            }
2491
0
            actor = AllocPTemporaryIPCBlobParent();
2492
0
            if ((!(actor))) {
2493
0
                NS_WARNING("Error constructing actor PTemporaryIPCBlobParent");
2494
0
                return MsgValueError;
2495
0
            }
2496
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2497
0
            (mManagedPTemporaryIPCBlobParent).PutEntry(actor);
2498
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2499
0
2500
0
            if ((!(RecvPTemporaryIPCBlobConstructor(actor)))) {
2501
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2502
0
                // Error handled in mozilla::ipc::IPCResult
2503
0
                return MsgProcessingError;
2504
0
            }
2505
0
2506
0
            return MsgProcessed;
2507
0
        }
2508
0
    case PBackground::Msg_PClientManagerConstructor__ID:
2509
0
        {
2510
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2511
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2512
0
            }
2513
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PClientManagerConstructor", OTHER);
2514
0
2515
0
            PickleIterator iter__(msg__);
2516
0
            ActorHandle handle__;
2517
0
            PClientManagerParent* actor;
2518
0
2519
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2520
0
                FatalError("Error deserializing 'ActorHandle'");
2521
0
                return MsgValueError;
2522
0
            }
2523
0
            // Sentinel = 'actor'
2524
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2525
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2526
0
                return MsgValueError;
2527
0
            }
2528
0
            (msg__).EndRead(iter__, (msg__).type());
2529
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2530
0
                FatalError("Transition error");
2531
0
                return MsgValueError;
2532
0
            }
2533
0
            actor = AllocPClientManagerParent();
2534
0
            if ((!(actor))) {
2535
0
                NS_WARNING("Error constructing actor PClientManagerParent");
2536
0
                return MsgValueError;
2537
0
            }
2538
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2539
0
            (mManagedPClientManagerParent).PutEntry(actor);
2540
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2541
0
2542
0
            if ((!(RecvPClientManagerConstructor(actor)))) {
2543
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2544
0
                // Error handled in mozilla::ipc::IPCResult
2545
0
                return MsgProcessingError;
2546
0
            }
2547
0
2548
0
            return MsgProcessed;
2549
0
        }
2550
0
    case PBackground::Msg_PMIDIManagerConstructor__ID:
2551
0
        {
2552
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2553
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2554
0
            }
2555
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PMIDIManagerConstructor", OTHER);
2556
0
2557
0
            PickleIterator iter__(msg__);
2558
0
            ActorHandle handle__;
2559
0
            PMIDIManagerParent* actor;
2560
0
2561
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2562
0
                FatalError("Error deserializing 'ActorHandle'");
2563
0
                return MsgValueError;
2564
0
            }
2565
0
            // Sentinel = 'actor'
2566
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2567
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2568
0
                return MsgValueError;
2569
0
            }
2570
0
            (msg__).EndRead(iter__, (msg__).type());
2571
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2572
0
                FatalError("Transition error");
2573
0
                return MsgValueError;
2574
0
            }
2575
0
            actor = AllocPMIDIManagerParent();
2576
0
            if ((!(actor))) {
2577
0
                NS_WARNING("Error constructing actor PMIDIManagerParent");
2578
0
                return MsgValueError;
2579
0
            }
2580
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2581
0
            (mManagedPMIDIManagerParent).PutEntry(actor);
2582
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2583
0
2584
0
            if ((!(RecvPMIDIManagerConstructor(actor)))) {
2585
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2586
0
                // Error handled in mozilla::ipc::IPCResult
2587
0
                return MsgProcessingError;
2588
0
            }
2589
0
2590
0
            return MsgProcessed;
2591
0
        }
2592
0
    case PBackground::Msg_PMIDIPortConstructor__ID:
2593
0
        {
2594
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2595
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2596
0
            }
2597
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PMIDIPortConstructor", OTHER);
2598
0
2599
0
            PickleIterator iter__(msg__);
2600
0
            ActorHandle handle__;
2601
0
            PMIDIPortParent* actor;
2602
0
            MIDIPortInfo portInfo;
2603
0
            bool sysexEnabled;
2604
0
2605
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2606
0
                FatalError("Error deserializing 'ActorHandle'");
2607
0
                return MsgValueError;
2608
0
            }
2609
0
            // Sentinel = 'actor'
2610
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2611
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2612
0
                return MsgValueError;
2613
0
            }
2614
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(portInfo)))))) {
2615
0
                FatalError("Error deserializing 'MIDIPortInfo'");
2616
0
                return MsgValueError;
2617
0
            }
2618
0
            // Sentinel = 'portInfo'
2619
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1908094141)))) {
2620
0
                mozilla::ipc::SentinelReadError("Error deserializing 'MIDIPortInfo'");
2621
0
                return MsgValueError;
2622
0
            }
2623
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(sysexEnabled)))))) {
2624
0
                FatalError("Error deserializing 'bool'");
2625
0
                return MsgValueError;
2626
0
            }
2627
0
            // Sentinel = 'sysexEnabled'
2628
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1954266107)))) {
2629
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
2630
0
                return MsgValueError;
2631
0
            }
2632
0
            (msg__).EndRead(iter__, (msg__).type());
2633
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2634
0
                FatalError("Transition error");
2635
0
                return MsgValueError;
2636
0
            }
2637
0
            actor = AllocPMIDIPortParent(portInfo, sysexEnabled);
2638
0
            if ((!(actor))) {
2639
0
                NS_WARNING("Error constructing actor PMIDIPortParent");
2640
0
                return MsgValueError;
2641
0
            }
2642
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2643
0
            (mManagedPMIDIPortParent).PutEntry(actor);
2644
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2645
0
2646
0
            if ((!(RecvPMIDIPortConstructor(actor, portInfo, sysexEnabled)))) {
2647
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2648
0
                // Error handled in mozilla::ipc::IPCResult
2649
0
                return MsgProcessingError;
2650
0
            }
2651
0
2652
0
            return MsgProcessed;
2653
0
        }
2654
0
    case PBackground::Msg_StorageActivity__ID:
2655
0
        {
2656
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2657
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2658
0
            }
2659
0
            AUTO_PROFILER_LABEL("PBackground::Msg_StorageActivity", OTHER);
2660
0
2661
0
            PickleIterator iter__(msg__);
2662
0
            PrincipalInfo principalInfo;
2663
0
2664
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principalInfo)))))) {
2665
0
                FatalError("Error deserializing 'PrincipalInfo'");
2666
0
                return MsgValueError;
2667
0
            }
2668
0
            // Sentinel = 'principalInfo'
2669
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3386633731)))) {
2670
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo'");
2671
0
                return MsgValueError;
2672
0
            }
2673
0
            (msg__).EndRead(iter__, (msg__).type());
2674
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2675
0
                FatalError("Transition error");
2676
0
                return MsgValueError;
2677
0
            }
2678
0
            if ((!(RecvStorageActivity(principalInfo)))) {
2679
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2680
0
                // Error handled in mozilla::ipc::IPCResult
2681
0
                return MsgProcessingError;
2682
0
            }
2683
0
2684
0
            return MsgProcessed;
2685
0
        }
2686
0
    case PBackground::Msg_PServiceWorkerConstructor__ID:
2687
0
        {
2688
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2689
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2690
0
            }
2691
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PServiceWorkerConstructor", OTHER);
2692
0
2693
0
            PickleIterator iter__(msg__);
2694
0
            ActorHandle handle__;
2695
0
            PServiceWorkerParent* actor;
2696
0
            IPCServiceWorkerDescriptor aDescriptor;
2697
0
2698
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2699
0
                FatalError("Error deserializing 'ActorHandle'");
2700
0
                return MsgValueError;
2701
0
            }
2702
0
            // Sentinel = 'actor'
2703
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2704
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2705
0
                return MsgValueError;
2706
0
            }
2707
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aDescriptor)))))) {
2708
0
                FatalError("Error deserializing 'IPCServiceWorkerDescriptor'");
2709
0
                return MsgValueError;
2710
0
            }
2711
0
            // Sentinel = 'aDescriptor'
2712
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 897756877)))) {
2713
0
                mozilla::ipc::SentinelReadError("Error deserializing 'IPCServiceWorkerDescriptor'");
2714
0
                return MsgValueError;
2715
0
            }
2716
0
            (msg__).EndRead(iter__, (msg__).type());
2717
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2718
0
                FatalError("Transition error");
2719
0
                return MsgValueError;
2720
0
            }
2721
0
            actor = AllocPServiceWorkerParent(aDescriptor);
2722
0
            if ((!(actor))) {
2723
0
                NS_WARNING("Error constructing actor PServiceWorkerParent");
2724
0
                return MsgValueError;
2725
0
            }
2726
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2727
0
            (mManagedPServiceWorkerParent).PutEntry(actor);
2728
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2729
0
2730
0
            if ((!(RecvPServiceWorkerConstructor(actor, aDescriptor)))) {
2731
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2732
0
                // Error handled in mozilla::ipc::IPCResult
2733
0
                return MsgProcessingError;
2734
0
            }
2735
0
2736
0
            return MsgProcessed;
2737
0
        }
2738
0
    case PBackground::Msg_PServiceWorkerContainerConstructor__ID:
2739
0
        {
2740
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2741
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2742
0
            }
2743
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PServiceWorkerContainerConstructor", OTHER);
2744
0
2745
0
            PickleIterator iter__(msg__);
2746
0
            ActorHandle handle__;
2747
0
            PServiceWorkerContainerParent* actor;
2748
0
2749
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2750
0
                FatalError("Error deserializing 'ActorHandle'");
2751
0
                return MsgValueError;
2752
0
            }
2753
0
            // Sentinel = 'actor'
2754
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2755
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2756
0
                return MsgValueError;
2757
0
            }
2758
0
            (msg__).EndRead(iter__, (msg__).type());
2759
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2760
0
                FatalError("Transition error");
2761
0
                return MsgValueError;
2762
0
            }
2763
0
            actor = AllocPServiceWorkerContainerParent();
2764
0
            if ((!(actor))) {
2765
0
                NS_WARNING("Error constructing actor PServiceWorkerContainerParent");
2766
0
                return MsgValueError;
2767
0
            }
2768
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2769
0
            (mManagedPServiceWorkerContainerParent).PutEntry(actor);
2770
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2771
0
2772
0
            if ((!(RecvPServiceWorkerContainerConstructor(actor)))) {
2773
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2774
0
                // Error handled in mozilla::ipc::IPCResult
2775
0
                return MsgProcessingError;
2776
0
            }
2777
0
2778
0
            return MsgProcessed;
2779
0
        }
2780
0
    case PBackground::Msg_PServiceWorkerRegistrationConstructor__ID:
2781
0
        {
2782
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2783
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2784
0
            }
2785
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PServiceWorkerRegistrationConstructor", OTHER);
2786
0
2787
0
            PickleIterator iter__(msg__);
2788
0
            ActorHandle handle__;
2789
0
            PServiceWorkerRegistrationParent* actor;
2790
0
            IPCServiceWorkerRegistrationDescriptor aDescriptor;
2791
0
2792
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2793
0
                FatalError("Error deserializing 'ActorHandle'");
2794
0
                return MsgValueError;
2795
0
            }
2796
0
            // Sentinel = 'actor'
2797
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2798
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2799
0
                return MsgValueError;
2800
0
            }
2801
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aDescriptor)))))) {
2802
0
                FatalError("Error deserializing 'IPCServiceWorkerRegistrationDescriptor'");
2803
0
                return MsgValueError;
2804
0
            }
2805
0
            // Sentinel = 'aDescriptor'
2806
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 897756877)))) {
2807
0
                mozilla::ipc::SentinelReadError("Error deserializing 'IPCServiceWorkerRegistrationDescriptor'");
2808
0
                return MsgValueError;
2809
0
            }
2810
0
            (msg__).EndRead(iter__, (msg__).type());
2811
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2812
0
                FatalError("Transition error");
2813
0
                return MsgValueError;
2814
0
            }
2815
0
            actor = AllocPServiceWorkerRegistrationParent(aDescriptor);
2816
0
            if ((!(actor))) {
2817
0
                NS_WARNING("Error constructing actor PServiceWorkerRegistrationParent");
2818
0
                return MsgValueError;
2819
0
            }
2820
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2821
0
            (mManagedPServiceWorkerRegistrationParent).PutEntry(actor);
2822
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2823
0
2824
0
            if ((!(RecvPServiceWorkerRegistrationConstructor(actor, aDescriptor)))) {
2825
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2826
0
                // Error handled in mozilla::ipc::IPCResult
2827
0
                return MsgProcessingError;
2828
0
            }
2829
0
2830
0
            return MsgProcessed;
2831
0
        }
2832
0
    case PBackground::Reply_PCacheConstructor__ID:
2833
0
        {
2834
0
            return MsgProcessed;
2835
0
        }
2836
0
    case PBackground::Reply_PCacheStreamControlConstructor__ID:
2837
0
        {
2838
0
            return MsgProcessed;
2839
0
        }
2840
0
    case PBackground::Reply_PParentToChildStreamConstructor__ID:
2841
0
        {
2842
0
            return MsgProcessed;
2843
0
        }
2844
0
    case PBackground::Reply_PPendingIPCBlobConstructor__ID:
2845
0
        {
2846
0
            return MsgProcessed;
2847
0
        }
2848
0
    case PBackground::Reply_PIPCBlobInputStreamConstructor__ID:
2849
0
        {
2850
0
            return MsgProcessed;
2851
0
        }
2852
0
    case PBackground::Msg_PIPCBlobInputStreamConstructor__ID:
2853
0
        {
2854
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2855
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2856
0
            }
2857
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PIPCBlobInputStreamConstructor", OTHER);
2858
0
2859
0
            PickleIterator iter__(msg__);
2860
0
            ActorHandle handle__;
2861
0
            PIPCBlobInputStreamParent* actor;
2862
0
            nsID aID;
2863
0
            uint64_t aSize;
2864
0
2865
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2866
0
                FatalError("Error deserializing 'ActorHandle'");
2867
0
                return MsgValueError;
2868
0
            }
2869
0
            // Sentinel = 'actor'
2870
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2871
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2872
0
                return MsgValueError;
2873
0
            }
2874
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aID)))))) {
2875
0
                FatalError("Error deserializing 'nsID'");
2876
0
                return MsgValueError;
2877
0
            }
2878
0
            // Sentinel = 'aID'
2879
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) {
2880
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsID'");
2881
0
                return MsgValueError;
2882
0
            }
2883
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aSize)))))) {
2884
0
                FatalError("Error deserializing 'uint64_t'");
2885
0
                return MsgValueError;
2886
0
            }
2887
0
            // Sentinel = 'aSize'
2888
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2556665555)))) {
2889
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2890
0
                return MsgValueError;
2891
0
            }
2892
0
            (msg__).EndRead(iter__, (msg__).type());
2893
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2894
0
                FatalError("Transition error");
2895
0
                return MsgValueError;
2896
0
            }
2897
0
            actor = AllocPIPCBlobInputStreamParent(aID, aSize);
2898
0
            if ((!(actor))) {
2899
0
                NS_WARNING("Error constructing actor PIPCBlobInputStreamParent");
2900
0
                return MsgValueError;
2901
0
            }
2902
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2903
0
            (mManagedPIPCBlobInputStreamParent).PutEntry(actor);
2904
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2905
0
2906
0
            if ((!(RecvPIPCBlobInputStreamConstructor(actor, aID, aSize)))) {
2907
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2908
0
                // Error handled in mozilla::ipc::IPCResult
2909
0
                return MsgProcessingError;
2910
0
            }
2911
0
2912
0
            return MsgProcessed;
2913
0
        }
2914
0
    case PBackground::Reply_PFileDescriptorSetConstructor__ID:
2915
0
        {
2916
0
            return MsgProcessed;
2917
0
        }
2918
0
    case PBackground::Msg_PFileDescriptorSetConstructor__ID:
2919
0
        {
2920
0
            if (mozilla::ipc::LoggingEnabledFor("PBackgroundParent")) {
2921
0
                mozilla::ipc::LogMessageForProtocol("PBackgroundParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2922
0
            }
2923
0
            AUTO_PROFILER_LABEL("PBackground::Msg_PFileDescriptorSetConstructor", OTHER);
2924
0
2925
0
            PickleIterator iter__(msg__);
2926
0
            ActorHandle handle__;
2927
0
            PFileDescriptorSetParent* actor;
2928
0
            FileDescriptor fd;
2929
0
2930
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2931
0
                FatalError("Error deserializing 'ActorHandle'");
2932
0
                return MsgValueError;
2933
0
            }
2934
0
            // Sentinel = 'actor'
2935
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2936
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2937
0
                return MsgValueError;
2938
0
            }
2939
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(fd)))))) {
2940
0
                FatalError("Error deserializing 'FileDescriptor'");
2941
0
                return MsgValueError;
2942
0
            }
2943
0
            // Sentinel = 'fd'
2944
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 628535764)))) {
2945
0
                mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor'");
2946
0
                return MsgValueError;
2947
0
            }
2948
0
            (msg__).EndRead(iter__, (msg__).type());
2949
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2950
0
                FatalError("Transition error");
2951
0
                return MsgValueError;
2952
0
            }
2953
0
            actor = AllocPFileDescriptorSetParent(fd);
2954
0
            if ((!(actor))) {
2955
0
                NS_WARNING("Error constructing actor PFileDescriptorSetParent");
2956
0
                return MsgValueError;
2957
0
            }
2958
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2959
0
            (mManagedPFileDescriptorSetParent).PutEntry(actor);
2960
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2961
0
2962
0
            if ((!(RecvPFileDescriptorSetConstructor(actor, fd)))) {
2963
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2964
0
                // Error handled in mozilla::ipc::IPCResult
2965
0
                return MsgProcessingError;
2966
0
            }
2967
0
2968
0
            return MsgProcessed;
2969
0
        }
2970
0
    default:
2971
0
        {
2972
0
            return MsgNotKnown;
2973
0
        }
2974
0
    case SHMEM_CREATED_MESSAGE_TYPE:
2975
0
        {
2976
0
            if ((!(ShmemCreated(msg__)))) {
2977
0
                return MsgPayloadError;
2978
0
            }
2979
0
            return MsgProcessed;
2980
0
        }
2981
0
    case SHMEM_DESTROYED_MESSAGE_TYPE:
2982
0
        {
2983
0
            if ((!(ShmemDestroyed(msg__)))) {
2984
0
                return MsgPayloadError;
2985
0
            }
2986
0
            return MsgProcessed;
2987
0
        }
2988
0
    }
2989
0
}
2990
2991
auto PBackgroundParent::OnMessageReceived(
2992
        const Message& msg__,
2993
        Message*& reply__) -> PBackgroundParent::Result
2994
0
{
2995
0
    int32_t route__ = (msg__).routing_id();
2996
0
    if ((MSG_ROUTING_CONTROL) != (route__)) {
2997
0
        IProtocol* routed__ = Lookup(route__);
2998
0
        if ((!(routed__))) {
2999
0
            return MsgRouteError;
3000
0
        }
3001
0
        return (routed__)->OnMessageReceived(msg__, reply__);
3002
0
    }
3003
0
3004
0
    return MsgNotKnown;
3005
0
}
3006
3007
auto PBackgroundParent::OnCallReceived(
3008
        const Message& msg__,
3009
        Message*& reply__) -> PBackgroundParent::Result
3010
0
{
3011
0
    MOZ_ASSERT_UNREACHABLE("message protocol not supported");
3012
0
    return MsgNotKnown;
3013
0
}
3014
3015
auto PBackgroundParent::GetProtocolTypeId() -> int32_t
3016
0
{
3017
0
    return PBackgroundMsgStart;
3018
0
}
3019
3020
auto PBackgroundParent::OnChannelClose() -> void
3021
0
{
3022
0
    DestroySubtree(NormalShutdown);
3023
0
    DeallocSubtree();
3024
0
    DeallocShmems();
3025
0
    DeallocPBackgroundParent();
3026
0
}
3027
3028
auto PBackgroundParent::OnChannelError() -> void
3029
0
{
3030
0
    DestroySubtree(AbnormalShutdown);
3031
0
    DeallocSubtree();
3032
0
    DeallocShmems();
3033
0
    DeallocPBackgroundParent();
3034
0
}
3035
3036
auto PBackgroundParent::DestroySubtree(ActorDestroyReason why) -> void
3037
0
{
3038
0
    ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
3039
0
3040
0
    {
3041
0
        // Recursively shutting down PAsmJSCacheEntry kids
3042
0
        nsTArray<PAsmJSCacheEntryParent*> kids;
3043
0
        // Accumulate kids into a stable structure to iterate over
3044
0
        ManagedPAsmJSCacheEntryParent(kids);
3045
0
        for (auto& kid : kids) {
3046
0
            // Guarding against a child removing a sibling from the list during the iteration.
3047
0
            if ((mManagedPAsmJSCacheEntryParent).Contains(kid)) {
3048
0
                (kid)->DestroySubtree(subtreewhy);
3049
0
            }
3050
0
        }
3051
0
    }
3052
0
    {
3053
0
        // Recursively shutting down PBackgroundIDBFactory kids
3054
0
        nsTArray<PBackgroundIDBFactoryParent*> kids;
3055
0
        // Accumulate kids into a stable structure to iterate over
3056
0
        ManagedPBackgroundIDBFactoryParent(kids);
3057
0
        for (auto& kid : kids) {
3058
0
            // Guarding against a child removing a sibling from the list during the iteration.
3059
0
            if ((mManagedPBackgroundIDBFactoryParent).Contains(kid)) {
3060
0
                (kid)->DestroySubtree(subtreewhy);
3061
0
            }
3062
0
        }
3063
0
    }
3064
0
    {
3065
0
        // Recursively shutting down PBackgroundIndexedDBUtils kids
3066
0
        nsTArray<PBackgroundIndexedDBUtilsParent*> kids;
3067
0
        // Accumulate kids into a stable structure to iterate over
3068
0
        ManagedPBackgroundIndexedDBUtilsParent(kids);
3069
0
        for (auto& kid : kids) {
3070
0
            // Guarding against a child removing a sibling from the list during the iteration.
3071
0
            if ((mManagedPBackgroundIndexedDBUtilsParent).Contains(kid)) {
3072
0
                (kid)->DestroySubtree(subtreewhy);
3073
0
            }
3074
0
        }
3075
0
    }
3076
0
    {
3077
0
        // Recursively shutting down PBackgroundSDBConnection kids
3078
0
        nsTArray<PBackgroundSDBConnectionParent*> kids;
3079
0
        // Accumulate kids into a stable structure to iterate over
3080
0
        ManagedPBackgroundSDBConnectionParent(kids);
3081
0
        for (auto& kid : kids) {
3082
0
            // Guarding against a child removing a sibling from the list during the iteration.
3083
0
            if ((mManagedPBackgroundSDBConnectionParent).Contains(kid)) {
3084
0
                (kid)->DestroySubtree(subtreewhy);
3085
0
            }
3086
0
        }
3087
0
    }
3088
0
    {
3089
0
        // Recursively shutting down PBackgroundLocalStorageCache kids
3090
0
        nsTArray<PBackgroundLocalStorageCacheParent*> kids;
3091
0
        // Accumulate kids into a stable structure to iterate over
3092
0
        ManagedPBackgroundLocalStorageCacheParent(kids);
3093
0
        for (auto& kid : kids) {
3094
0
            // Guarding against a child removing a sibling from the list during the iteration.
3095
0
            if ((mManagedPBackgroundLocalStorageCacheParent).Contains(kid)) {
3096
0
                (kid)->DestroySubtree(subtreewhy);
3097
0
            }
3098
0
        }
3099
0
    }
3100
0
    {
3101
0
        // Recursively shutting down PBackgroundStorage kids
3102
0
        nsTArray<PBackgroundStorageParent*> kids;
3103
0
        // Accumulate kids into a stable structure to iterate over
3104
0
        ManagedPBackgroundStorageParent(kids);
3105
0
        for (auto& kid : kids) {
3106
0
            // Guarding against a child removing a sibling from the list during the iteration.
3107
0
            if ((mManagedPBackgroundStorageParent).Contains(kid)) {
3108
0
                (kid)->DestroySubtree(subtreewhy);
3109
0
            }
3110
0
        }
3111
0
    }
3112
0
    {
3113
0
        // Recursively shutting down PBackgroundTest kids
3114
0
        nsTArray<PBackgroundTestParent*> kids;
3115
0
        // Accumulate kids into a stable structure to iterate over
3116
0
        ManagedPBackgroundTestParent(kids);
3117
0
        for (auto& kid : kids) {
3118
0
            // Guarding against a child removing a sibling from the list during the iteration.
3119
0
            if ((mManagedPBackgroundTestParent).Contains(kid)) {
3120
0
                (kid)->DestroySubtree(subtreewhy);
3121
0
            }
3122
0
        }
3123
0
    }
3124
0
    {
3125
0
        // Recursively shutting down PBroadcastChannel kids
3126
0
        nsTArray<PBroadcastChannelParent*> kids;
3127
0
        // Accumulate kids into a stable structure to iterate over
3128
0
        ManagedPBroadcastChannelParent(kids);
3129
0
        for (auto& kid : kids) {
3130
0
            // Guarding against a child removing a sibling from the list during the iteration.
3131
0
            if ((mManagedPBroadcastChannelParent).Contains(kid)) {
3132
0
                (kid)->DestroySubtree(subtreewhy);
3133
0
            }
3134
0
        }
3135
0
    }
3136
0
    {
3137
0
        // Recursively shutting down PCache kids
3138
0
        nsTArray<PCacheParent*> kids;
3139
0
        // Accumulate kids into a stable structure to iterate over
3140
0
        ManagedPCacheParent(kids);
3141
0
        for (auto& kid : kids) {
3142
0
            // Guarding against a child removing a sibling from the list during the iteration.
3143
0
            if ((mManagedPCacheParent).Contains(kid)) {
3144
0
                (kid)->DestroySubtree(subtreewhy);
3145
0
            }
3146
0
        }
3147
0
    }
3148
0
    {
3149
0
        // Recursively shutting down PCacheStorage kids
3150
0
        nsTArray<PCacheStorageParent*> kids;
3151
0
        // Accumulate kids into a stable structure to iterate over
3152
0
        ManagedPCacheStorageParent(kids);
3153
0
        for (auto& kid : kids) {
3154
0
            // Guarding against a child removing a sibling from the list during the iteration.
3155
0
            if ((mManagedPCacheStorageParent).Contains(kid)) {
3156
0
                (kid)->DestroySubtree(subtreewhy);
3157
0
            }
3158
0
        }
3159
0
    }
3160
0
    {
3161
0
        // Recursively shutting down PCacheStreamControl kids
3162
0
        nsTArray<PCacheStreamControlParent*> kids;
3163
0
        // Accumulate kids into a stable structure to iterate over
3164
0
        ManagedPCacheStreamControlParent(kids);
3165
0
        for (auto& kid : kids) {
3166
0
            // Guarding against a child removing a sibling from the list during the iteration.
3167
0
            if ((mManagedPCacheStreamControlParent).Contains(kid)) {
3168
0
                (kid)->DestroySubtree(subtreewhy);
3169
0
            }
3170
0
        }
3171
0
    }
3172
0
    {
3173
0
        // Recursively shutting down PClientManager kids
3174
0
        nsTArray<PClientManagerParent*> kids;
3175
0
        // Accumulate kids into a stable structure to iterate over
3176
0
        ManagedPClientManagerParent(kids);
3177
0
        for (auto& kid : kids) {
3178
0
            // Guarding against a child removing a sibling from the list during the iteration.
3179
0
            if ((mManagedPClientManagerParent).Contains(kid)) {
3180
0
                (kid)->DestroySubtree(subtreewhy);
3181
0
            }
3182
0
        }
3183
0
    }
3184
0
    {
3185
0
        // Recursively shutting down PFileDescriptorSet kids
3186
0
        nsTArray<PFileDescriptorSetParent*> kids;
3187
0
        // Accumulate kids into a stable structure to iterate over
3188
0
        ManagedPFileDescriptorSetParent(kids);
3189
0
        for (auto& kid : kids) {
3190
0
            // Guarding against a child removing a sibling from the list during the iteration.
3191
0
            if ((mManagedPFileDescriptorSetParent).Contains(kid)) {
3192
0
                (kid)->DestroySubtree(subtreewhy);
3193
0
            }
3194
0
        }
3195
0
    }
3196
0
    {
3197
0
        // Recursively shutting down PFileSystemRequest kids
3198
0
        nsTArray<PFileSystemRequestParent*> kids;
3199
0
        // Accumulate kids into a stable structure to iterate over
3200
0
        ManagedPFileSystemRequestParent(kids);
3201
0
        for (auto& kid : kids) {
3202
0
            // Guarding against a child removing a sibling from the list during the iteration.
3203
0
            if ((mManagedPFileSystemRequestParent).Contains(kid)) {
3204
0
                (kid)->DestroySubtree(subtreewhy);
3205
0
            }
3206
0
        }
3207
0
    }
3208
0
    {
3209
0
        // Recursively shutting down PGamepadEventChannel kids
3210
0
        nsTArray<PGamepadEventChannelParent*> kids;
3211
0
        // Accumulate kids into a stable structure to iterate over
3212
0
        ManagedPGamepadEventChannelParent(kids);
3213
0
        for (auto& kid : kids) {
3214
0
            // Guarding against a child removing a sibling from the list during the iteration.
3215
0
            if ((mManagedPGamepadEventChannelParent).Contains(kid)) {
3216
0
                (kid)->DestroySubtree(subtreewhy);
3217
0
            }
3218
0
        }
3219
0
    }
3220
0
    {
3221
0
        // Recursively shutting down PGamepadTestChannel kids
3222
0
        nsTArray<PGamepadTestChannelParent*> kids;
3223
0
        // Accumulate kids into a stable structure to iterate over
3224
0
        ManagedPGamepadTestChannelParent(kids);
3225
0
        for (auto& kid : kids) {
3226
0
            // Guarding against a child removing a sibling from the list during the iteration.
3227
0
            if ((mManagedPGamepadTestChannelParent).Contains(kid)) {
3228
0
                (kid)->DestroySubtree(subtreewhy);
3229
0
            }
3230
0
        }
3231
0
    }
3232
0
    {
3233
0
        // Recursively shutting down PHttpBackgroundChannel kids
3234
0
        nsTArray<PHttpBackgroundChannelParent*> kids;
3235
0
        // Accumulate kids into a stable structure to iterate over
3236
0
        ManagedPHttpBackgroundChannelParent(kids);
3237
0
        for (auto& kid : kids) {
3238
0
            // Guarding against a child removing a sibling from the list during the iteration.
3239
0
            if ((mManagedPHttpBackgroundChannelParent).Contains(kid)) {
3240
0
                (kid)->DestroySubtree(subtreewhy);
3241
0
            }
3242
0
        }
3243
0
    }
3244
0
    {
3245
0
        // Recursively shutting down PIPCBlobInputStream kids
3246
0
        nsTArray<PIPCBlobInputStreamParent*> kids;
3247
0
        // Accumulate kids into a stable structure to iterate over
3248
0
        ManagedPIPCBlobInputStreamParent(kids);
3249
0
        for (auto& kid : kids) {
3250
0
            // Guarding against a child removing a sibling from the list during the iteration.
3251
0
            if ((mManagedPIPCBlobInputStreamParent).Contains(kid)) {
3252
0
                (kid)->DestroySubtree(subtreewhy);
3253
0
            }
3254
0
        }
3255
0
    }
3256
0
    {
3257
0
        // Recursively shutting down PPendingIPCBlob kids
3258
0
        nsTArray<PPendingIPCBlobParent*> kids;
3259
0
        // Accumulate kids into a stable structure to iterate over
3260
0
        ManagedPPendingIPCBlobParent(kids);
3261
0
        for (auto& kid : kids) {
3262
0
            // Guarding against a child removing a sibling from the list during the iteration.
3263
0
            if ((mManagedPPendingIPCBlobParent).Contains(kid)) {
3264
0
                (kid)->DestroySubtree(subtreewhy);
3265
0
            }
3266
0
        }
3267
0
    }
3268
0
    {
3269
0
        // Recursively shutting down PTemporaryIPCBlob kids
3270
0
        nsTArray<PTemporaryIPCBlobParent*> kids;
3271
0
        // Accumulate kids into a stable structure to iterate over
3272
0
        ManagedPTemporaryIPCBlobParent(kids);
3273
0
        for (auto& kid : kids) {
3274
0
            // Guarding against a child removing a sibling from the list during the iteration.
3275
0
            if ((mManagedPTemporaryIPCBlobParent).Contains(kid)) {
3276
0
                (kid)->DestroySubtree(subtreewhy);
3277
0
            }
3278
0
        }
3279
0
    }
3280
0
    {
3281
0
        // Recursively shutting down PMessagePort kids
3282
0
        nsTArray<PMessagePortParent*> kids;
3283
0
        // Accumulate kids into a stable structure to iterate over
3284
0
        ManagedPMessagePortParent(kids);
3285
0
        for (auto& kid : kids) {
3286
0
            // Guarding against a child removing a sibling from the list during the iteration.
3287
0
            if ((mManagedPMessagePortParent).Contains(kid)) {
3288
0
                (kid)->DestroySubtree(subtreewhy);
3289
0
            }
3290
0
        }
3291
0
    }
3292
0
    {
3293
0
        // Recursively shutting down PCameras kids
3294
0
        nsTArray<PCamerasParent*> kids;
3295
0
        // Accumulate kids into a stable structure to iterate over
3296
0
        ManagedPCamerasParent(kids);
3297
0
        for (auto& kid : kids) {
3298
0
            // Guarding against a child removing a sibling from the list during the iteration.
3299
0
            if ((mManagedPCamerasParent).Contains(kid)) {
3300
0
                (kid)->DestroySubtree(subtreewhy);
3301
0
            }
3302
0
        }
3303
0
    }
3304
0
    {
3305
0
        // Recursively shutting down PMIDIManager kids
3306
0
        nsTArray<PMIDIManagerParent*> kids;
3307
0
        // Accumulate kids into a stable structure to iterate over
3308
0
        ManagedPMIDIManagerParent(kids);
3309
0
        for (auto& kid : kids) {
3310
0
            // Guarding against a child removing a sibling from the list during the iteration.
3311
0
            if ((mManagedPMIDIManagerParent).Contains(kid)) {
3312
0
                (kid)->DestroySubtree(subtreewhy);
3313
0
            }
3314
0
        }
3315
0
    }
3316
0
    {
3317
0
        // Recursively shutting down PMIDIPort kids
3318
0
        nsTArray<PMIDIPortParent*> kids;
3319
0
        // Accumulate kids into a stable structure to iterate over
3320
0
        ManagedPMIDIPortParent(kids);
3321
0
        for (auto& kid : kids) {
3322
0
            // Guarding against a child removing a sibling from the list during the iteration.
3323
0
            if ((mManagedPMIDIPortParent).Contains(kid)) {
3324
0
                (kid)->DestroySubtree(subtreewhy);
3325
0
            }
3326
0
        }
3327
0
    }
3328
0
    {
3329
0
        // Recursively shutting down PQuota kids
3330
0
        nsTArray<PQuotaParent*> kids;
3331
0
        // Accumulate kids into a stable structure to iterate over
3332
0
        ManagedPQuotaParent(kids);
3333
0
        for (auto& kid : kids) {
3334
0
            // Guarding against a child removing a sibling from the list during the iteration.
3335
0
            if ((mManagedPQuotaParent).Contains(kid)) {
3336
0
                (kid)->DestroySubtree(subtreewhy);
3337
0
            }
3338
0
        }
3339
0
    }
3340
0
    {
3341
0
        // Recursively shutting down PChildToParentStream kids
3342
0
        nsTArray<PChildToParentStreamParent*> kids;
3343
0
        // Accumulate kids into a stable structure to iterate over
3344
0
        ManagedPChildToParentStreamParent(kids);
3345
0
        for (auto& kid : kids) {
3346
0
            // Guarding against a child removing a sibling from the list during the iteration.
3347
0
            if ((mManagedPChildToParentStreamParent).Contains(kid)) {
3348
0
                (kid)->DestroySubtree(subtreewhy);
3349
0
            }
3350
0
        }
3351
0
    }
3352
0
    {
3353
0
        // Recursively shutting down PParentToChildStream kids
3354
0
        nsTArray<PParentToChildStreamParent*> kids;
3355
0
        // Accumulate kids into a stable structure to iterate over
3356
0
        ManagedPParentToChildStreamParent(kids);
3357
0
        for (auto& kid : kids) {
3358
0
            // Guarding against a child removing a sibling from the list during the iteration.
3359
0
            if ((mManagedPParentToChildStreamParent).Contains(kid)) {
3360
0
                (kid)->DestroySubtree(subtreewhy);
3361
0
            }
3362
0
        }
3363
0
    }
3364
0
    {
3365
0
        // Recursively shutting down PServiceWorker kids
3366
0
        nsTArray<PServiceWorkerParent*> kids;
3367
0
        // Accumulate kids into a stable structure to iterate over
3368
0
        ManagedPServiceWorkerParent(kids);
3369
0
        for (auto& kid : kids) {
3370
0
            // Guarding against a child removing a sibling from the list during the iteration.
3371
0
            if ((mManagedPServiceWorkerParent).Contains(kid)) {
3372
0
                (kid)->DestroySubtree(subtreewhy);
3373
0
            }
3374
0
        }
3375
0
    }
3376
0
    {
3377
0
        // Recursively shutting down PServiceWorkerContainer kids
3378
0
        nsTArray<PServiceWorkerContainerParent*> kids;
3379
0
        // Accumulate kids into a stable structure to iterate over
3380
0
        ManagedPServiceWorkerContainerParent(kids);
3381
0
        for (auto& kid : kids) {
3382
0
            // Guarding against a child removing a sibling from the list during the iteration.
3383
0
            if ((mManagedPServiceWorkerContainerParent).Contains(kid)) {
3384
0
                (kid)->DestroySubtree(subtreewhy);
3385
0
            }
3386
0
        }
3387
0
    }
3388
0
    {
3389
0
        // Recursively shutting down PServiceWorkerManager kids
3390
0
        nsTArray<PServiceWorkerManagerParent*> kids;
3391
0
        // Accumulate kids into a stable structure to iterate over
3392
0
        ManagedPServiceWorkerManagerParent(kids);
3393
0
        for (auto& kid : kids) {
3394
0
            // Guarding against a child removing a sibling from the list during the iteration.
3395
0
            if ((mManagedPServiceWorkerManagerParent).Contains(kid)) {
3396
0
                (kid)->DestroySubtree(subtreewhy);
3397
0
            }
3398
0
        }
3399
0
    }
3400
0
    {
3401
0
        // Recursively shutting down PServiceWorkerRegistration kids
3402
0
        nsTArray<PServiceWorkerRegistrationParent*> kids;
3403
0
        // Accumulate kids into a stable structure to iterate over
3404
0
        ManagedPServiceWorkerRegistrationParent(kids);
3405
0
        for (auto& kid : kids) {
3406
0
            // Guarding against a child removing a sibling from the list during the iteration.
3407
0
            if ((mManagedPServiceWorkerRegistrationParent).Contains(kid)) {
3408
0
                (kid)->DestroySubtree(subtreewhy);
3409
0
            }
3410
0
        }
3411
0
    }
3412
0
    {
3413
0
        // Recursively shutting down PWebAuthnTransaction kids
3414
0
        nsTArray<PWebAuthnTransactionParent*> kids;
3415
0
        // Accumulate kids into a stable structure to iterate over
3416
0
        ManagedPWebAuthnTransactionParent(kids);
3417
0
        for (auto& kid : kids) {
3418
0
            // Guarding against a child removing a sibling from the list during the iteration.
3419
0
            if ((mManagedPWebAuthnTransactionParent).Contains(kid)) {
3420
0
                (kid)->DestroySubtree(subtreewhy);
3421
0
            }
3422
0
        }
3423
0
    }
3424
0
    {
3425
0
        // Recursively shutting down PUDPSocket kids
3426
0
        nsTArray<PUDPSocketParent*> kids;
3427
0
        // Accumulate kids into a stable structure to iterate over
3428
0
        ManagedPUDPSocketParent(kids);
3429
0
        for (auto& kid : kids) {
3430
0
            // Guarding against a child removing a sibling from the list during the iteration.
3431
0
            if ((mManagedPUDPSocketParent).Contains(kid)) {
3432
0
                (kid)->DestroySubtree(subtreewhy);
3433
0
            }
3434
0
        }
3435
0
    }
3436
0
    {
3437
0
        // Recursively shutting down PVsync kids
3438
0
        nsTArray<PVsyncParent*> kids;
3439
0
        // Accumulate kids into a stable structure to iterate over
3440
0
        ManagedPVsyncParent(kids);
3441
0
        for (auto& kid : kids) {
3442
0
            // Guarding against a child removing a sibling from the list during the iteration.
3443
0
            if ((mManagedPVsyncParent).Contains(kid)) {
3444
0
                (kid)->DestroySubtree(subtreewhy);
3445
0
            }
3446
0
        }
3447
0
    }
3448
0
3449
0
    // Reject owning pending responses.
3450
0
    (GetIPCChannel())->RejectPendingResponsesForActor(this);
3451
0
3452
0
    // Finally, destroy "us".
3453
0
    ActorDestroy(why);
3454
0
}
3455
3456
auto PBackgroundParent::DeallocSubtree() -> void
3457
0
{
3458
0
    {
3459
0
        // Recursively deleting PAsmJSCacheEntry kids
3460
0
        for (auto iter = (mManagedPAsmJSCacheEntryParent).Iter(); (!((iter).Done())); (iter).Next()) {
3461
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3462
0
        }
3463
0
3464
0
        for (auto iter = (mManagedPAsmJSCacheEntryParent).Iter(); (!((iter).Done())); (iter).Next()) {
3465
0
            DeallocPAsmJSCacheEntryParent(((iter).Get())->GetKey());
3466
0
        }
3467
0
        (mManagedPAsmJSCacheEntryParent).Clear();
3468
0
    }
3469
0
    {
3470
0
        // Recursively deleting PBackgroundIDBFactory kids
3471
0
        for (auto iter = (mManagedPBackgroundIDBFactoryParent).Iter(); (!((iter).Done())); (iter).Next()) {
3472
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3473
0
        }
3474
0
3475
0
        for (auto iter = (mManagedPBackgroundIDBFactoryParent).Iter(); (!((iter).Done())); (iter).Next()) {
3476
0
            DeallocPBackgroundIDBFactoryParent(((iter).Get())->GetKey());
3477
0
        }
3478
0
        (mManagedPBackgroundIDBFactoryParent).Clear();
3479
0
    }
3480
0
    {
3481
0
        // Recursively deleting PBackgroundIndexedDBUtils kids
3482
0
        for (auto iter = (mManagedPBackgroundIndexedDBUtilsParent).Iter(); (!((iter).Done())); (iter).Next()) {
3483
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3484
0
        }
3485
0
3486
0
        for (auto iter = (mManagedPBackgroundIndexedDBUtilsParent).Iter(); (!((iter).Done())); (iter).Next()) {
3487
0
            DeallocPBackgroundIndexedDBUtilsParent(((iter).Get())->GetKey());
3488
0
        }
3489
0
        (mManagedPBackgroundIndexedDBUtilsParent).Clear();
3490
0
    }
3491
0
    {
3492
0
        // Recursively deleting PBackgroundSDBConnection kids
3493
0
        for (auto iter = (mManagedPBackgroundSDBConnectionParent).Iter(); (!((iter).Done())); (iter).Next()) {
3494
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3495
0
        }
3496
0
3497
0
        for (auto iter = (mManagedPBackgroundSDBConnectionParent).Iter(); (!((iter).Done())); (iter).Next()) {
3498
0
            DeallocPBackgroundSDBConnectionParent(((iter).Get())->GetKey());
3499
0
        }
3500
0
        (mManagedPBackgroundSDBConnectionParent).Clear();
3501
0
    }
3502
0
    {
3503
0
        // Recursively deleting PBackgroundLocalStorageCache kids
3504
0
        for (auto iter = (mManagedPBackgroundLocalStorageCacheParent).Iter(); (!((iter).Done())); (iter).Next()) {
3505
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3506
0
        }
3507
0
3508
0
        for (auto iter = (mManagedPBackgroundLocalStorageCacheParent).Iter(); (!((iter).Done())); (iter).Next()) {
3509
0
            DeallocPBackgroundLocalStorageCacheParent(((iter).Get())->GetKey());
3510
0
        }
3511
0
        (mManagedPBackgroundLocalStorageCacheParent).Clear();
3512
0
    }
3513
0
    {
3514
0
        // Recursively deleting PBackgroundStorage kids
3515
0
        for (auto iter = (mManagedPBackgroundStorageParent).Iter(); (!((iter).Done())); (iter).Next()) {
3516
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3517
0
        }
3518
0
3519
0
        for (auto iter = (mManagedPBackgroundStorageParent).Iter(); (!((iter).Done())); (iter).Next()) {
3520
0
            DeallocPBackgroundStorageParent(((iter).Get())->GetKey());
3521
0
        }
3522
0
        (mManagedPBackgroundStorageParent).Clear();
3523
0
    }
3524
0
    {
3525
0
        // Recursively deleting PBackgroundTest kids
3526
0
        for (auto iter = (mManagedPBackgroundTestParent).Iter(); (!((iter).Done())); (iter).Next()) {
3527
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3528
0
        }
3529
0
3530
0
        for (auto iter = (mManagedPBackgroundTestParent).Iter(); (!((iter).Done())); (iter).Next()) {
3531
0
            DeallocPBackgroundTestParent(((iter).Get())->GetKey());
3532
0
        }
3533
0
        (mManagedPBackgroundTestParent).Clear();
3534
0
    }
3535
0
    {
3536
0
        // Recursively deleting PBroadcastChannel kids
3537
0
        for (auto iter = (mManagedPBroadcastChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
3538
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3539
0
        }
3540
0
3541
0
        for (auto iter = (mManagedPBroadcastChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
3542
0
            DeallocPBroadcastChannelParent(((iter).Get())->GetKey());
3543
0
        }
3544
0
        (mManagedPBroadcastChannelParent).Clear();
3545
0
    }
3546
0
    {
3547
0
        // Recursively deleting PCache kids
3548
0
        for (auto iter = (mManagedPCacheParent).Iter(); (!((iter).Done())); (iter).Next()) {
3549
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3550
0
        }
3551
0
3552
0
        for (auto iter = (mManagedPCacheParent).Iter(); (!((iter).Done())); (iter).Next()) {
3553
0
            DeallocPCacheParent(((iter).Get())->GetKey());
3554
0
        }
3555
0
        (mManagedPCacheParent).Clear();
3556
0
    }
3557
0
    {
3558
0
        // Recursively deleting PCacheStorage kids
3559
0
        for (auto iter = (mManagedPCacheStorageParent).Iter(); (!((iter).Done())); (iter).Next()) {
3560
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3561
0
        }
3562
0
3563
0
        for (auto iter = (mManagedPCacheStorageParent).Iter(); (!((iter).Done())); (iter).Next()) {
3564
0
            DeallocPCacheStorageParent(((iter).Get())->GetKey());
3565
0
        }
3566
0
        (mManagedPCacheStorageParent).Clear();
3567
0
    }
3568
0
    {
3569
0
        // Recursively deleting PCacheStreamControl kids
3570
0
        for (auto iter = (mManagedPCacheStreamControlParent).Iter(); (!((iter).Done())); (iter).Next()) {
3571
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3572
0
        }
3573
0
3574
0
        for (auto iter = (mManagedPCacheStreamControlParent).Iter(); (!((iter).Done())); (iter).Next()) {
3575
0
            DeallocPCacheStreamControlParent(((iter).Get())->GetKey());
3576
0
        }
3577
0
        (mManagedPCacheStreamControlParent).Clear();
3578
0
    }
3579
0
    {
3580
0
        // Recursively deleting PClientManager kids
3581
0
        for (auto iter = (mManagedPClientManagerParent).Iter(); (!((iter).Done())); (iter).Next()) {
3582
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3583
0
        }
3584
0
3585
0
        for (auto iter = (mManagedPClientManagerParent).Iter(); (!((iter).Done())); (iter).Next()) {
3586
0
            DeallocPClientManagerParent(((iter).Get())->GetKey());
3587
0
        }
3588
0
        (mManagedPClientManagerParent).Clear();
3589
0
    }
3590
0
    {
3591
0
        // Recursively deleting PFileDescriptorSet kids
3592
0
        for (auto iter = (mManagedPFileDescriptorSetParent).Iter(); (!((iter).Done())); (iter).Next()) {
3593
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3594
0
        }
3595
0
3596
0
        for (auto iter = (mManagedPFileDescriptorSetParent).Iter(); (!((iter).Done())); (iter).Next()) {
3597
0
            DeallocPFileDescriptorSetParent(((iter).Get())->GetKey());
3598
0
        }
3599
0
        (mManagedPFileDescriptorSetParent).Clear();
3600
0
    }
3601
0
    {
3602
0
        // Recursively deleting PFileSystemRequest kids
3603
0
        for (auto iter = (mManagedPFileSystemRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
3604
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3605
0
        }
3606
0
3607
0
        for (auto iter = (mManagedPFileSystemRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
3608
0
            DeallocPFileSystemRequestParent(((iter).Get())->GetKey());
3609
0
        }
3610
0
        (mManagedPFileSystemRequestParent).Clear();
3611
0
    }
3612
0
    {
3613
0
        // Recursively deleting PGamepadEventChannel kids
3614
0
        for (auto iter = (mManagedPGamepadEventChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
3615
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3616
0
        }
3617
0
3618
0
        for (auto iter = (mManagedPGamepadEventChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
3619
0
            DeallocPGamepadEventChannelParent(((iter).Get())->GetKey());
3620
0
        }
3621
0
        (mManagedPGamepadEventChannelParent).Clear();
3622
0
    }
3623
0
    {
3624
0
        // Recursively deleting PGamepadTestChannel kids
3625
0
        for (auto iter = (mManagedPGamepadTestChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
3626
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3627
0
        }
3628
0
3629
0
        for (auto iter = (mManagedPGamepadTestChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
3630
0
            DeallocPGamepadTestChannelParent(((iter).Get())->GetKey());
3631
0
        }
3632
0
        (mManagedPGamepadTestChannelParent).Clear();
3633
0
    }
3634
0
    {
3635
0
        // Recursively deleting PHttpBackgroundChannel kids
3636
0
        for (auto iter = (mManagedPHttpBackgroundChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
3637
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3638
0
        }
3639
0
3640
0
        for (auto iter = (mManagedPHttpBackgroundChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
3641
0
            DeallocPHttpBackgroundChannelParent(((iter).Get())->GetKey());
3642
0
        }
3643
0
        (mManagedPHttpBackgroundChannelParent).Clear();
3644
0
    }
3645
0
    {
3646
0
        // Recursively deleting PIPCBlobInputStream kids
3647
0
        for (auto iter = (mManagedPIPCBlobInputStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
3648
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3649
0
        }
3650
0
3651
0
        for (auto iter = (mManagedPIPCBlobInputStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
3652
0
            DeallocPIPCBlobInputStreamParent(((iter).Get())->GetKey());
3653
0
        }
3654
0
        (mManagedPIPCBlobInputStreamParent).Clear();
3655
0
    }
3656
0
    {
3657
0
        // Recursively deleting PPendingIPCBlob kids
3658
0
        for (auto iter = (mManagedPPendingIPCBlobParent).Iter(); (!((iter).Done())); (iter).Next()) {
3659
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3660
0
        }
3661
0
3662
0
        for (auto iter = (mManagedPPendingIPCBlobParent).Iter(); (!((iter).Done())); (iter).Next()) {
3663
0
            DeallocPPendingIPCBlobParent(((iter).Get())->GetKey());
3664
0
        }
3665
0
        (mManagedPPendingIPCBlobParent).Clear();
3666
0
    }
3667
0
    {
3668
0
        // Recursively deleting PTemporaryIPCBlob kids
3669
0
        for (auto iter = (mManagedPTemporaryIPCBlobParent).Iter(); (!((iter).Done())); (iter).Next()) {
3670
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3671
0
        }
3672
0
3673
0
        for (auto iter = (mManagedPTemporaryIPCBlobParent).Iter(); (!((iter).Done())); (iter).Next()) {
3674
0
            DeallocPTemporaryIPCBlobParent(((iter).Get())->GetKey());
3675
0
        }
3676
0
        (mManagedPTemporaryIPCBlobParent).Clear();
3677
0
    }
3678
0
    {
3679
0
        // Recursively deleting PMessagePort kids
3680
0
        for (auto iter = (mManagedPMessagePortParent).Iter(); (!((iter).Done())); (iter).Next()) {
3681
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3682
0
        }
3683
0
3684
0
        for (auto iter = (mManagedPMessagePortParent).Iter(); (!((iter).Done())); (iter).Next()) {
3685
0
            DeallocPMessagePortParent(((iter).Get())->GetKey());
3686
0
        }
3687
0
        (mManagedPMessagePortParent).Clear();
3688
0
    }
3689
0
    {
3690
0
        // Recursively deleting PCameras kids
3691
0
        for (auto iter = (mManagedPCamerasParent).Iter(); (!((iter).Done())); (iter).Next()) {
3692
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3693
0
        }
3694
0
3695
0
        for (auto iter = (mManagedPCamerasParent).Iter(); (!((iter).Done())); (iter).Next()) {
3696
0
            DeallocPCamerasParent(((iter).Get())->GetKey());
3697
0
        }
3698
0
        (mManagedPCamerasParent).Clear();
3699
0
    }
3700
0
    {
3701
0
        // Recursively deleting PMIDIManager kids
3702
0
        for (auto iter = (mManagedPMIDIManagerParent).Iter(); (!((iter).Done())); (iter).Next()) {
3703
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3704
0
        }
3705
0
3706
0
        for (auto iter = (mManagedPMIDIManagerParent).Iter(); (!((iter).Done())); (iter).Next()) {
3707
0
            DeallocPMIDIManagerParent(((iter).Get())->GetKey());
3708
0
        }
3709
0
        (mManagedPMIDIManagerParent).Clear();
3710
0
    }
3711
0
    {
3712
0
        // Recursively deleting PMIDIPort kids
3713
0
        for (auto iter = (mManagedPMIDIPortParent).Iter(); (!((iter).Done())); (iter).Next()) {
3714
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3715
0
        }
3716
0
3717
0
        for (auto iter = (mManagedPMIDIPortParent).Iter(); (!((iter).Done())); (iter).Next()) {
3718
0
            DeallocPMIDIPortParent(((iter).Get())->GetKey());
3719
0
        }
3720
0
        (mManagedPMIDIPortParent).Clear();
3721
0
    }
3722
0
    {
3723
0
        // Recursively deleting PQuota kids
3724
0
        for (auto iter = (mManagedPQuotaParent).Iter(); (!((iter).Done())); (iter).Next()) {
3725
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3726
0
        }
3727
0
3728
0
        for (auto iter = (mManagedPQuotaParent).Iter(); (!((iter).Done())); (iter).Next()) {
3729
0
            DeallocPQuotaParent(((iter).Get())->GetKey());
3730
0
        }
3731
0
        (mManagedPQuotaParent).Clear();
3732
0
    }
3733
0
    {
3734
0
        // Recursively deleting PChildToParentStream kids
3735
0
        for (auto iter = (mManagedPChildToParentStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
3736
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3737
0
        }
3738
0
3739
0
        for (auto iter = (mManagedPChildToParentStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
3740
0
            DeallocPChildToParentStreamParent(((iter).Get())->GetKey());
3741
0
        }
3742
0
        (mManagedPChildToParentStreamParent).Clear();
3743
0
    }
3744
0
    {
3745
0
        // Recursively deleting PParentToChildStream kids
3746
0
        for (auto iter = (mManagedPParentToChildStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
3747
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3748
0
        }
3749
0
3750
0
        for (auto iter = (mManagedPParentToChildStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
3751
0
            DeallocPParentToChildStreamParent(((iter).Get())->GetKey());
3752
0
        }
3753
0
        (mManagedPParentToChildStreamParent).Clear();
3754
0
    }
3755
0
    {
3756
0
        // Recursively deleting PServiceWorker kids
3757
0
        for (auto iter = (mManagedPServiceWorkerParent).Iter(); (!((iter).Done())); (iter).Next()) {
3758
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3759
0
        }
3760
0
3761
0
        for (auto iter = (mManagedPServiceWorkerParent).Iter(); (!((iter).Done())); (iter).Next()) {
3762
0
            DeallocPServiceWorkerParent(((iter).Get())->GetKey());
3763
0
        }
3764
0
        (mManagedPServiceWorkerParent).Clear();
3765
0
    }
3766
0
    {
3767
0
        // Recursively deleting PServiceWorkerContainer kids
3768
0
        for (auto iter = (mManagedPServiceWorkerContainerParent).Iter(); (!((iter).Done())); (iter).Next()) {
3769
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3770
0
        }
3771
0
3772
0
        for (auto iter = (mManagedPServiceWorkerContainerParent).Iter(); (!((iter).Done())); (iter).Next()) {
3773
0
            DeallocPServiceWorkerContainerParent(((iter).Get())->GetKey());
3774
0
        }
3775
0
        (mManagedPServiceWorkerContainerParent).Clear();
3776
0
    }
3777
0
    {
3778
0
        // Recursively deleting PServiceWorkerManager kids
3779
0
        for (auto iter = (mManagedPServiceWorkerManagerParent).Iter(); (!((iter).Done())); (iter).Next()) {
3780
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3781
0
        }
3782
0
3783
0
        for (auto iter = (mManagedPServiceWorkerManagerParent).Iter(); (!((iter).Done())); (iter).Next()) {
3784
0
            DeallocPServiceWorkerManagerParent(((iter).Get())->GetKey());
3785
0
        }
3786
0
        (mManagedPServiceWorkerManagerParent).Clear();
3787
0
    }
3788
0
    {
3789
0
        // Recursively deleting PServiceWorkerRegistration kids
3790
0
        for (auto iter = (mManagedPServiceWorkerRegistrationParent).Iter(); (!((iter).Done())); (iter).Next()) {
3791
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3792
0
        }
3793
0
3794
0
        for (auto iter = (mManagedPServiceWorkerRegistrationParent).Iter(); (!((iter).Done())); (iter).Next()) {
3795
0
            DeallocPServiceWorkerRegistrationParent(((iter).Get())->GetKey());
3796
0
        }
3797
0
        (mManagedPServiceWorkerRegistrationParent).Clear();
3798
0
    }
3799
0
    {
3800
0
        // Recursively deleting PWebAuthnTransaction kids
3801
0
        for (auto iter = (mManagedPWebAuthnTransactionParent).Iter(); (!((iter).Done())); (iter).Next()) {
3802
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3803
0
        }
3804
0
3805
0
        for (auto iter = (mManagedPWebAuthnTransactionParent).Iter(); (!((iter).Done())); (iter).Next()) {
3806
0
            DeallocPWebAuthnTransactionParent(((iter).Get())->GetKey());
3807
0
        }
3808
0
        (mManagedPWebAuthnTransactionParent).Clear();
3809
0
    }
3810
0
    {
3811
0
        // Recursively deleting PUDPSocket kids
3812
0
        for (auto iter = (mManagedPUDPSocketParent).Iter(); (!((iter).Done())); (iter).Next()) {
3813
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3814
0
        }
3815
0
3816
0
        for (auto iter = (mManagedPUDPSocketParent).Iter(); (!((iter).Done())); (iter).Next()) {
3817
0
            DeallocPUDPSocketParent(((iter).Get())->GetKey());
3818
0
        }
3819
0
        (mManagedPUDPSocketParent).Clear();
3820
0
    }
3821
0
    {
3822
0
        // Recursively deleting PVsync kids
3823
0
        for (auto iter = (mManagedPVsyncParent).Iter(); (!((iter).Done())); (iter).Next()) {
3824
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3825
0
        }
3826
0
3827
0
        for (auto iter = (mManagedPVsyncParent).Iter(); (!((iter).Done())); (iter).Next()) {
3828
0
            DeallocPVsyncParent(((iter).Get())->GetKey());
3829
0
        }
3830
0
        (mManagedPVsyncParent).Clear();
3831
0
    }
3832
0
}
3833
3834
auto PBackgroundParent::DeallocPBackgroundParent() -> void
3835
0
{
3836
0
}
3837
3838
3839
3840
} // namespace ipc
3841
} // namespace mozilla
3842
namespace mozilla {
3843
namespace ipc {
3844
auto IPDLParamTraits<mozilla::ipc::PBackgroundParent>::Write(
3845
        IPC::Message* aMsg,
3846
        mozilla::ipc::IProtocol* aActor,
3847
        const paramType& aVar) -> void
3848
0
{
3849
0
    int32_t id;
3850
0
    if ((!(aVar))) {
3851
0
        id = 0;
3852
0
    }
3853
0
    else {
3854
0
        id = (aVar)->Id();
3855
0
        if ((1) == (id)) {
3856
0
            (aActor)->FatalError("actor has been |delete|d");
3857
0
        }
3858
0
    }
3859
0
    WriteIPDLParam(aMsg, aActor, id);
3860
0
}
3861
3862
auto IPDLParamTraits<mozilla::ipc::PBackgroundParent>::Read(
3863
        const IPC::Message* aMsg,
3864
        PickleIterator* aIter,
3865
        mozilla::ipc::IProtocol* aActor,
3866
        paramType* aVar) -> bool
3867
0
{
3868
0
    mozilla::Maybe<mozilla::ipc::IProtocol*> actor = (aActor)->ReadActor(aMsg, aIter, true, "PBackground", PBackgroundMsgStart);
3869
0
    if ((actor).isNothing()) {
3870
0
        return false;
3871
0
    }
3872
0
3873
0
    (*(aVar)) = static_cast<mozilla::ipc::PBackgroundParent*>((actor).value());
3874
0
    return true;
3875
0
}
3876
3877
} // namespace ipc
3878
} // namespace mozilla