Coverage Report

Created: 2018-09-25 14:53

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