Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/PNeckoParent.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/net/PNeckoParent.h"
8
#include "SerializedLoadContext.h"
9
#include "mozilla/dom/PermissionMessageUtils.h"
10
#include "mozilla/ipc/IPCStreamUtils.h"
11
#include "mozilla/ipc/URIUtils.h"
12
13
#include "mozilla/dom/PContentParent.h"
14
#include "mozilla/net/PHttpChannelParent.h"
15
#include "mozilla/net/PCookieServiceParent.h"
16
#include "mozilla/dom/PBrowserParent.h"
17
#include "mozilla/net/PWyciwygChannelParent.h"
18
#include "mozilla/net/PFTPChannelParent.h"
19
#include "mozilla/net/PWebSocketParent.h"
20
#include "mozilla/net/PWebSocketEventListenerParent.h"
21
#include "mozilla/net/PTCPSocketParent.h"
22
#include "mozilla/net/PTCPServerSocketParent.h"
23
#include "mozilla/net/PUDPSocketParent.h"
24
#include "mozilla/net/PDNSRequestParent.h"
25
#include "mozilla/net/PChannelDiverterParent.h"
26
#include "mozilla/ipc/PFileDescriptorSetParent.h"
27
#include "mozilla/net/PDataChannelParent.h"
28
#include "mozilla/net/PSimpleChannelParent.h"
29
#include "mozilla/net/PTransportProviderParent.h"
30
#include "mozilla/ipc/PChildToParentStreamParent.h"
31
#include "mozilla/ipc/PParentToChildStreamParent.h"
32
#include "mozilla/net/PStunAddrsRequestParent.h"
33
#include "mozilla/net/PFileChannelParent.h"
34
#include "mozilla/net/PAltDataOutputStreamParent.h"
35
36
#include "nsIFile.h"
37
#include "GeckoProfiler.h"
38
39
namespace mozilla {
40
namespace net {
41
42
43
auto PNeckoParent::Recv__delete__() -> mozilla::ipc::IPCResult
44
0
{
45
0
    return IPC_OK();
46
0
}
47
48
auto PNeckoParent::RecvPCookieServiceConstructor(PCookieServiceParent* actor) -> mozilla::ipc::IPCResult
49
0
{
50
0
    return IPC_OK();
51
0
}
52
53
auto PNeckoParent::RecvPHttpChannelConstructor(
54
        PHttpChannelParent* actor,
55
        const PBrowserOrId& browser,
56
        const SerializedLoadContext& loadContext,
57
        const HttpChannelCreationArgs& args) -> mozilla::ipc::IPCResult
58
0
{
59
0
    return IPC_OK();
60
0
}
61
62
auto PNeckoParent::RecvPWyciwygChannelConstructor(PWyciwygChannelParent* actor) -> mozilla::ipc::IPCResult
63
0
{
64
0
    return IPC_OK();
65
0
}
66
67
auto PNeckoParent::RecvPFTPChannelConstructor(
68
        PFTPChannelParent* actor,
69
        const PBrowserOrId& browser,
70
        const SerializedLoadContext& loadContext,
71
        const FTPChannelCreationArgs& args) -> mozilla::ipc::IPCResult
72
0
{
73
0
    return IPC_OK();
74
0
}
75
76
auto PNeckoParent::RecvPWebSocketConstructor(
77
        PWebSocketParent* actor,
78
        const PBrowserOrId& browser,
79
        const SerializedLoadContext& loadContext,
80
        const uint32_t& aSerialID) -> mozilla::ipc::IPCResult
81
0
{
82
0
    return IPC_OK();
83
0
}
84
85
auto PNeckoParent::RecvPTCPServerSocketConstructor(
86
        PTCPServerSocketParent* actor,
87
        const uint16_t& localPort,
88
        const uint16_t& backlog,
89
        const bool& useArrayBuffers) -> mozilla::ipc::IPCResult
90
0
{
91
0
    return IPC_OK();
92
0
}
93
94
auto PNeckoParent::RecvPUDPSocketConstructor(
95
        PUDPSocketParent* actor,
96
        const Principal& principal,
97
        const nsCString& filter) -> mozilla::ipc::IPCResult
98
0
{
99
0
    return IPC_OK();
100
0
}
101
102
auto PNeckoParent::RecvPDNSRequestConstructor(
103
        PDNSRequestParent* actor,
104
        const nsCString& hostName,
105
        const OriginAttributes& originAttributes,
106
        const uint32_t& flags) -> mozilla::ipc::IPCResult
107
0
{
108
0
    return IPC_OK();
109
0
}
110
111
auto PNeckoParent::RecvPWebSocketEventListenerConstructor(
112
        PWebSocketEventListenerParent* actor,
113
        const uint64_t& aInnerWindowID) -> mozilla::ipc::IPCResult
114
0
{
115
0
    return IPC_OK();
116
0
}
117
118
auto PNeckoParent::RecvPDataChannelConstructor(
119
        PDataChannelParent* actor,
120
        const uint32_t& channelId) -> mozilla::ipc::IPCResult
121
0
{
122
0
    return IPC_OK();
123
0
}
124
125
auto PNeckoParent::RecvPSimpleChannelConstructor(
126
        PSimpleChannelParent* actor,
127
        const uint32_t& channelId) -> mozilla::ipc::IPCResult
128
0
{
129
0
    return IPC_OK();
130
0
}
131
132
auto PNeckoParent::RecvPFileChannelConstructor(
133
        PFileChannelParent* actor,
134
        const uint32_t& channelId) -> mozilla::ipc::IPCResult
135
0
{
136
0
    return IPC_OK();
137
0
}
138
139
auto PNeckoParent::RecvPChannelDiverterConstructor(
140
        PChannelDiverterParent* actor,
141
        const ChannelDiverterArgs& channel) -> mozilla::ipc::IPCResult
142
0
{
143
0
    return IPC_OK();
144
0
}
145
146
auto PNeckoParent::RecvPAltDataOutputStreamConstructor(
147
        PAltDataOutputStreamParent* actor,
148
        const nsCString& type,
149
        const int64_t& predictedSize,
150
        PHttpChannelParent* channel) -> mozilla::ipc::IPCResult
151
0
{
152
0
    return IPC_OK();
153
0
}
154
155
auto PNeckoParent::RecvPStunAddrsRequestConstructor(PStunAddrsRequestParent* actor) -> mozilla::ipc::IPCResult
156
0
{
157
0
    return IPC_OK();
158
0
}
159
160
auto PNeckoParent::RecvPTCPSocketConstructor(
161
        PTCPSocketParent* actor,
162
        const nsString& host,
163
        const uint16_t& port) -> mozilla::ipc::IPCResult
164
0
{
165
0
    return IPC_OK();
166
0
}
167
168
auto PNeckoParent::ActorDestroy(ActorDestroyReason aWhy) -> void
169
0
{
170
0
}
171
172
MOZ_IMPLICIT PNeckoParent::PNeckoParent() :
173
    mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
174
    mLivenessState(mozilla::ipc::LivenessState::Dead)
175
0
{
176
0
    MOZ_COUNT_CTOR(PNeckoParent);
177
0
}
178
179
PNeckoParent::~PNeckoParent()
180
0
{
181
0
    MOZ_COUNT_DTOR(PNeckoParent);
182
0
}
183
184
auto PNeckoParent::Manager() const -> PContentParent*
185
0
{
186
0
    return static_cast<PContentParent*>(IProtocol::Manager());
187
0
}
188
189
auto PNeckoParent::ManagedPHttpChannelParent(nsTArray<PHttpChannelParent*>& aArr) const -> void
190
0
{
191
0
    (mManagedPHttpChannelParent).ToArray(aArr);
192
0
}
193
194
auto PNeckoParent::ManagedPHttpChannelParent() const -> const ManagedContainer<PHttpChannelParent>&
195
0
{
196
0
    return mManagedPHttpChannelParent;
197
0
}
198
199
auto PNeckoParent::ManagedPCookieServiceParent(nsTArray<PCookieServiceParent*>& aArr) const -> void
200
0
{
201
0
    (mManagedPCookieServiceParent).ToArray(aArr);
202
0
}
203
204
auto PNeckoParent::ManagedPCookieServiceParent() const -> const ManagedContainer<PCookieServiceParent>&
205
0
{
206
0
    return mManagedPCookieServiceParent;
207
0
}
208
209
auto PNeckoParent::ManagedPWyciwygChannelParent(nsTArray<PWyciwygChannelParent*>& aArr) const -> void
210
0
{
211
0
    (mManagedPWyciwygChannelParent).ToArray(aArr);
212
0
}
213
214
auto PNeckoParent::ManagedPWyciwygChannelParent() const -> const ManagedContainer<PWyciwygChannelParent>&
215
0
{
216
0
    return mManagedPWyciwygChannelParent;
217
0
}
218
219
auto PNeckoParent::ManagedPFTPChannelParent(nsTArray<PFTPChannelParent*>& aArr) const -> void
220
0
{
221
0
    (mManagedPFTPChannelParent).ToArray(aArr);
222
0
}
223
224
auto PNeckoParent::ManagedPFTPChannelParent() const -> const ManagedContainer<PFTPChannelParent>&
225
0
{
226
0
    return mManagedPFTPChannelParent;
227
0
}
228
229
auto PNeckoParent::ManagedPWebSocketParent(nsTArray<PWebSocketParent*>& aArr) const -> void
230
0
{
231
0
    (mManagedPWebSocketParent).ToArray(aArr);
232
0
}
233
234
auto PNeckoParent::ManagedPWebSocketParent() const -> const ManagedContainer<PWebSocketParent>&
235
0
{
236
0
    return mManagedPWebSocketParent;
237
0
}
238
239
auto PNeckoParent::ManagedPWebSocketEventListenerParent(nsTArray<PWebSocketEventListenerParent*>& aArr) const -> void
240
0
{
241
0
    (mManagedPWebSocketEventListenerParent).ToArray(aArr);
242
0
}
243
244
auto PNeckoParent::ManagedPWebSocketEventListenerParent() const -> const ManagedContainer<PWebSocketEventListenerParent>&
245
0
{
246
0
    return mManagedPWebSocketEventListenerParent;
247
0
}
248
249
auto PNeckoParent::ManagedPTCPSocketParent(nsTArray<PTCPSocketParent*>& aArr) const -> void
250
0
{
251
0
    (mManagedPTCPSocketParent).ToArray(aArr);
252
0
}
253
254
auto PNeckoParent::ManagedPTCPSocketParent() const -> const ManagedContainer<PTCPSocketParent>&
255
0
{
256
0
    return mManagedPTCPSocketParent;
257
0
}
258
259
auto PNeckoParent::ManagedPTCPServerSocketParent(nsTArray<PTCPServerSocketParent*>& aArr) const -> void
260
0
{
261
0
    (mManagedPTCPServerSocketParent).ToArray(aArr);
262
0
}
263
264
auto PNeckoParent::ManagedPTCPServerSocketParent() const -> const ManagedContainer<PTCPServerSocketParent>&
265
0
{
266
0
    return mManagedPTCPServerSocketParent;
267
0
}
268
269
auto PNeckoParent::ManagedPUDPSocketParent(nsTArray<PUDPSocketParent*>& aArr) const -> void
270
0
{
271
0
    (mManagedPUDPSocketParent).ToArray(aArr);
272
0
}
273
274
auto PNeckoParent::ManagedPUDPSocketParent() const -> const ManagedContainer<PUDPSocketParent>&
275
0
{
276
0
    return mManagedPUDPSocketParent;
277
0
}
278
279
auto PNeckoParent::ManagedPDNSRequestParent(nsTArray<PDNSRequestParent*>& aArr) const -> void
280
0
{
281
0
    (mManagedPDNSRequestParent).ToArray(aArr);
282
0
}
283
284
auto PNeckoParent::ManagedPDNSRequestParent() const -> const ManagedContainer<PDNSRequestParent>&
285
0
{
286
0
    return mManagedPDNSRequestParent;
287
0
}
288
289
auto PNeckoParent::ManagedPDataChannelParent(nsTArray<PDataChannelParent*>& aArr) const -> void
290
0
{
291
0
    (mManagedPDataChannelParent).ToArray(aArr);
292
0
}
293
294
auto PNeckoParent::ManagedPDataChannelParent() const -> const ManagedContainer<PDataChannelParent>&
295
0
{
296
0
    return mManagedPDataChannelParent;
297
0
}
298
299
auto PNeckoParent::ManagedPSimpleChannelParent(nsTArray<PSimpleChannelParent*>& aArr) const -> void
300
0
{
301
0
    (mManagedPSimpleChannelParent).ToArray(aArr);
302
0
}
303
304
auto PNeckoParent::ManagedPSimpleChannelParent() const -> const ManagedContainer<PSimpleChannelParent>&
305
0
{
306
0
    return mManagedPSimpleChannelParent;
307
0
}
308
309
auto PNeckoParent::ManagedPFileChannelParent(nsTArray<PFileChannelParent*>& aArr) const -> void
310
0
{
311
0
    (mManagedPFileChannelParent).ToArray(aArr);
312
0
}
313
314
auto PNeckoParent::ManagedPFileChannelParent() const -> const ManagedContainer<PFileChannelParent>&
315
0
{
316
0
    return mManagedPFileChannelParent;
317
0
}
318
319
auto PNeckoParent::ManagedPChannelDiverterParent(nsTArray<PChannelDiverterParent*>& aArr) const -> void
320
0
{
321
0
    (mManagedPChannelDiverterParent).ToArray(aArr);
322
0
}
323
324
auto PNeckoParent::ManagedPChannelDiverterParent() const -> const ManagedContainer<PChannelDiverterParent>&
325
0
{
326
0
    return mManagedPChannelDiverterParent;
327
0
}
328
329
auto PNeckoParent::ManagedPTransportProviderParent(nsTArray<PTransportProviderParent*>& aArr) const -> void
330
0
{
331
0
    (mManagedPTransportProviderParent).ToArray(aArr);
332
0
}
333
334
auto PNeckoParent::ManagedPTransportProviderParent() const -> const ManagedContainer<PTransportProviderParent>&
335
0
{
336
0
    return mManagedPTransportProviderParent;
337
0
}
338
339
auto PNeckoParent::ManagedPAltDataOutputStreamParent(nsTArray<PAltDataOutputStreamParent*>& aArr) const -> void
340
0
{
341
0
    (mManagedPAltDataOutputStreamParent).ToArray(aArr);
342
0
}
343
344
auto PNeckoParent::ManagedPAltDataOutputStreamParent() const -> const ManagedContainer<PAltDataOutputStreamParent>&
345
0
{
346
0
    return mManagedPAltDataOutputStreamParent;
347
0
}
348
349
auto PNeckoParent::ManagedPStunAddrsRequestParent(nsTArray<PStunAddrsRequestParent*>& aArr) const -> void
350
0
{
351
0
    (mManagedPStunAddrsRequestParent).ToArray(aArr);
352
0
}
353
354
auto PNeckoParent::ManagedPStunAddrsRequestParent() const -> const ManagedContainer<PStunAddrsRequestParent>&
355
0
{
356
0
    return mManagedPStunAddrsRequestParent;
357
0
}
358
359
auto PNeckoParent::SendAsyncAuthPromptForNestedFrame(
360
        const TabId& nestedFrameId,
361
        const nsCString& uri,
362
        const nsString& realm,
363
        const uint64_t& callbackId) -> bool
364
0
{
365
0
    IPC::Message* msg__ = PNecko::Msg_AsyncAuthPromptForNestedFrame(Id());
366
0
367
0
    WriteIPDLParam(msg__, this, nestedFrameId);
368
0
    // Sentinel = 'nestedFrameId'
369
0
    (msg__)->WriteSentinel(168911970);
370
0
    WriteIPDLParam(msg__, this, uri);
371
0
    // Sentinel = 'uri'
372
0
    (msg__)->WriteSentinel(1453210605);
373
0
    WriteIPDLParam(msg__, this, realm);
374
0
    // Sentinel = 'realm'
375
0
    (msg__)->WriteSentinel(1127162788);
376
0
    WriteIPDLParam(msg__, this, callbackId);
377
0
    // Sentinel = 'callbackId'
378
0
    (msg__)->WriteSentinel(4163989448);
379
0
380
0
381
0
382
0
383
0
    if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
384
0
        mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
385
0
    }
386
0
    AUTO_PROFILER_LABEL("PNecko::Msg_AsyncAuthPromptForNestedFrame", OTHER);
387
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
388
0
        mozilla::ipc::LogicError("Transition error");
389
0
    }
390
0
391
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
392
0
    return sendok__;
393
0
}
394
395
auto PNeckoParent::SendPredOnPredictPrefetch(
396
        const URIParams& uri,
397
        const uint32_t& httpStatus) -> bool
398
0
{
399
0
    IPC::Message* msg__ = PNecko::Msg_PredOnPredictPrefetch(Id());
400
0
401
0
    WriteIPDLParam(msg__, this, uri);
402
0
    // Sentinel = 'uri'
403
0
    (msg__)->WriteSentinel(1453210605);
404
0
    WriteIPDLParam(msg__, this, httpStatus);
405
0
    // Sentinel = 'httpStatus'
406
0
    (msg__)->WriteSentinel(2648726124);
407
0
408
0
409
0
410
0
411
0
    if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
412
0
        mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
413
0
    }
414
0
    AUTO_PROFILER_LABEL("PNecko::Msg_PredOnPredictPrefetch", OTHER);
415
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
416
0
        mozilla::ipc::LogicError("Transition error");
417
0
    }
418
0
419
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
420
0
    return sendok__;
421
0
}
422
423
auto PNeckoParent::SendPredOnPredictPreconnect(const URIParams& uri) -> bool
424
0
{
425
0
    IPC::Message* msg__ = PNecko::Msg_PredOnPredictPreconnect(Id());
426
0
427
0
    WriteIPDLParam(msg__, this, uri);
428
0
    // Sentinel = 'uri'
429
0
    (msg__)->WriteSentinel(1453210605);
430
0
431
0
432
0
433
0
434
0
    if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
435
0
        mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
436
0
    }
437
0
    AUTO_PROFILER_LABEL("PNecko::Msg_PredOnPredictPreconnect", OTHER);
438
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
439
0
        mozilla::ipc::LogicError("Transition error");
440
0
    }
441
0
442
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
443
0
    return sendok__;
444
0
}
445
446
auto PNeckoParent::SendPredOnPredictDNS(const URIParams& uri) -> bool
447
0
{
448
0
    IPC::Message* msg__ = PNecko::Msg_PredOnPredictDNS(Id());
449
0
450
0
    WriteIPDLParam(msg__, this, uri);
451
0
    // Sentinel = 'uri'
452
0
    (msg__)->WriteSentinel(1453210605);
453
0
454
0
455
0
456
0
457
0
    if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
458
0
        mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
459
0
    }
460
0
    AUTO_PROFILER_LABEL("PNecko::Msg_PredOnPredictDNS", OTHER);
461
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
462
0
        mozilla::ipc::LogicError("Transition error");
463
0
    }
464
0
465
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
466
0
    return sendok__;
467
0
}
468
469
auto PNeckoParent::SendSpeculativeConnectRequest() -> bool
470
0
{
471
0
    IPC::Message* msg__ = PNecko::Msg_SpeculativeConnectRequest(Id());
472
0
473
0
474
0
475
0
476
0
477
0
    if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
478
0
        mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
479
0
    }
480
0
    AUTO_PROFILER_LABEL("PNecko::Msg_SpeculativeConnectRequest", OTHER);
481
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
482
0
        mozilla::ipc::LogicError("Transition error");
483
0
    }
484
0
485
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
486
0
    return sendok__;
487
0
}
488
489
auto PNeckoParent::SendNetworkChangeNotification(const nsCString& type) -> bool
490
0
{
491
0
    IPC::Message* msg__ = PNecko::Msg_NetworkChangeNotification(Id());
492
0
493
0
    WriteIPDLParam(msg__, this, type);
494
0
    // Sentinel = 'type'
495
0
    (msg__)->WriteSentinel(2982068540);
496
0
497
0
498
0
499
0
500
0
    if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
501
0
        mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
502
0
    }
503
0
    AUTO_PROFILER_LABEL("PNecko::Msg_NetworkChangeNotification", 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
    return sendok__;
510
0
}
511
512
auto PNeckoParent::SendPTransportProviderConstructor() -> PTransportProviderParent*
513
0
{
514
0
    return SendPTransportProviderConstructor(AllocPTransportProviderParent());
515
0
}
516
517
auto PNeckoParent::SendPTransportProviderConstructor(PTransportProviderParent* actor) -> PTransportProviderParent*
518
0
{
519
0
    if ((!(actor))) {
520
0
        NS_WARNING("Error constructing actor PTransportProviderParent");
521
0
        return nullptr;
522
0
    }
523
0
    (actor)->SetManagerAndRegister(this);
524
0
    (mManagedPTransportProviderParent).PutEntry(actor);
525
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
526
0
527
0
    IPC::Message* msg__ = PNecko::Msg_PTransportProviderConstructor(Id());
528
0
529
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
530
0
    WriteIPDLParam(msg__, this, actor);
531
0
    // Sentinel = 'actor'
532
0
    (msg__)->WriteSentinel(875202478);
533
0
534
0
535
0
536
0
    if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
537
0
        mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
538
0
    }
539
0
    AUTO_PROFILER_LABEL("PNecko::Msg_PTransportProviderConstructor", OTHER);
540
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
541
0
        mozilla::ipc::LogicError("Transition error");
542
0
    }
543
0
544
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
545
0
    if ((!(sendok__))) {
546
0
        IProtocol* mgr = (actor)->Manager();
547
0
        (actor)->DestroySubtree(FailedConstructor);
548
0
        (actor)->DeallocSubtree();
549
0
        (mgr)->RemoveManagee(PTransportProviderMsgStart, actor);
550
0
        return nullptr;
551
0
    }
552
0
    return actor;
553
0
}
554
555
auto PNeckoParent::SendCrossProcessRedirect(
556
        const uint32_t& aRegistrarId,
557
        nsIURI* aURI,
558
        const uint32_t& aNewLoadFlags,
559
        const OptionalLoadInfoArgs& aLoadInfo,
560
        const uint64_t& aChannelId,
561
        nsIURI* aOriginalURI,
562
        const uint64_t& aIdentifier) -> bool
563
0
{
564
0
    IPC::Message* msg__ = PNecko::Msg_CrossProcessRedirect(Id());
565
0
566
0
    WriteIPDLParam(msg__, this, aRegistrarId);
567
0
    // Sentinel = 'aRegistrarId'
568
0
    (msg__)->WriteSentinel(147707153);
569
0
    WriteIPDLParam(msg__, this, aURI);
570
0
    // Sentinel = 'aURI'
571
0
    (msg__)->WriteSentinel(2075506333);
572
0
    WriteIPDLParam(msg__, this, aNewLoadFlags);
573
0
    // Sentinel = 'aNewLoadFlags'
574
0
    (msg__)->WriteSentinel(2417012963);
575
0
    WriteIPDLParam(msg__, this, aLoadInfo);
576
0
    // Sentinel = 'aLoadInfo'
577
0
    (msg__)->WriteSentinel(2922022260);
578
0
    WriteIPDLParam(msg__, this, aChannelId);
579
0
    // Sentinel = 'aChannelId'
580
0
    (msg__)->WriteSentinel(3807997239);
581
0
    WriteIPDLParam(msg__, this, aOriginalURI);
582
0
    // Sentinel = 'aOriginalURI'
583
0
    (msg__)->WriteSentinel(680917642);
584
0
    WriteIPDLParam(msg__, this, aIdentifier);
585
0
    // Sentinel = 'aIdentifier'
586
0
    (msg__)->WriteSentinel(3975378435);
587
0
588
0
589
0
590
0
591
0
    if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
592
0
        mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
593
0
    }
594
0
    AUTO_PROFILER_LABEL("PNecko::Msg_CrossProcessRedirect", OTHER);
595
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
596
0
        mozilla::ipc::LogicError("Transition error");
597
0
    }
598
0
599
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
600
0
    return sendok__;
601
0
}
602
603
auto PNeckoParent::SendPTCPSocketConstructor(
604
        const nsString& host,
605
        const uint16_t& port) -> PTCPSocketParent*
606
0
{
607
0
    return SendPTCPSocketConstructor(AllocPTCPSocketParent(host, port), host, port);
608
0
}
609
610
auto PNeckoParent::SendPTCPSocketConstructor(
611
        PTCPSocketParent* actor,
612
        const nsString& host,
613
        const uint16_t& port) -> PTCPSocketParent*
614
0
{
615
0
    if ((!(actor))) {
616
0
        NS_WARNING("Error constructing actor PTCPSocketParent");
617
0
        return nullptr;
618
0
    }
619
0
    (actor)->SetManagerAndRegister(this);
620
0
    (mManagedPTCPSocketParent).PutEntry(actor);
621
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
622
0
623
0
    IPC::Message* msg__ = PNecko::Msg_PTCPSocketConstructor(Id());
624
0
625
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
626
0
    WriteIPDLParam(msg__, this, actor);
627
0
    // Sentinel = 'actor'
628
0
    (msg__)->WriteSentinel(875202478);
629
0
    WriteIPDLParam(msg__, this, host);
630
0
    // Sentinel = 'host'
631
0
    (msg__)->WriteSentinel(4070301394);
632
0
    WriteIPDLParam(msg__, this, port);
633
0
    // Sentinel = 'port'
634
0
    (msg__)->WriteSentinel(3633211549);
635
0
636
0
637
0
638
0
    if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
639
0
        mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
640
0
    }
641
0
    AUTO_PROFILER_LABEL("PNecko::Msg_PTCPSocketConstructor", OTHER);
642
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
643
0
        mozilla::ipc::LogicError("Transition error");
644
0
    }
645
0
646
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
647
0
    if ((!(sendok__))) {
648
0
        IProtocol* mgr = (actor)->Manager();
649
0
        (actor)->DestroySubtree(FailedConstructor);
650
0
        (actor)->DeallocSubtree();
651
0
        (mgr)->RemoveManagee(PTCPSocketMsgStart, actor);
652
0
        return nullptr;
653
0
    }
654
0
    return actor;
655
0
}
656
657
auto PNeckoParent::RemoveManagee(
658
        int32_t aProtocolId,
659
        IProtocol* aListener) -> void
660
0
{
661
0
    switch (aProtocolId) {
662
0
    case PHttpChannelMsgStart:
663
0
        {
664
0
            PHttpChannelParent* actor = static_cast<PHttpChannelParent*>(aListener);
665
0
            auto& container = mManagedPHttpChannelParent;
666
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
667
0
668
0
            (container).RemoveEntry(actor);
669
0
            DeallocPHttpChannelParent(actor);
670
0
            return;
671
0
        }
672
0
    case PCookieServiceMsgStart:
673
0
        {
674
0
            PCookieServiceParent* actor = static_cast<PCookieServiceParent*>(aListener);
675
0
            auto& container = mManagedPCookieServiceParent;
676
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
677
0
678
0
            (container).RemoveEntry(actor);
679
0
            DeallocPCookieServiceParent(actor);
680
0
            return;
681
0
        }
682
0
    case PWyciwygChannelMsgStart:
683
0
        {
684
0
            PWyciwygChannelParent* actor = static_cast<PWyciwygChannelParent*>(aListener);
685
0
            auto& container = mManagedPWyciwygChannelParent;
686
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
687
0
688
0
            (container).RemoveEntry(actor);
689
0
            DeallocPWyciwygChannelParent(actor);
690
0
            return;
691
0
        }
692
0
    case PFTPChannelMsgStart:
693
0
        {
694
0
            PFTPChannelParent* actor = static_cast<PFTPChannelParent*>(aListener);
695
0
            auto& container = mManagedPFTPChannelParent;
696
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
697
0
698
0
            (container).RemoveEntry(actor);
699
0
            DeallocPFTPChannelParent(actor);
700
0
            return;
701
0
        }
702
0
    case PWebSocketMsgStart:
703
0
        {
704
0
            PWebSocketParent* actor = static_cast<PWebSocketParent*>(aListener);
705
0
            auto& container = mManagedPWebSocketParent;
706
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
707
0
708
0
            (container).RemoveEntry(actor);
709
0
            DeallocPWebSocketParent(actor);
710
0
            return;
711
0
        }
712
0
    case PWebSocketEventListenerMsgStart:
713
0
        {
714
0
            PWebSocketEventListenerParent* actor = static_cast<PWebSocketEventListenerParent*>(aListener);
715
0
            auto& container = mManagedPWebSocketEventListenerParent;
716
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
717
0
718
0
            (container).RemoveEntry(actor);
719
0
            DeallocPWebSocketEventListenerParent(actor);
720
0
            return;
721
0
        }
722
0
    case PTCPSocketMsgStart:
723
0
        {
724
0
            PTCPSocketParent* actor = static_cast<PTCPSocketParent*>(aListener);
725
0
            auto& container = mManagedPTCPSocketParent;
726
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
727
0
728
0
            (container).RemoveEntry(actor);
729
0
            DeallocPTCPSocketParent(actor);
730
0
            return;
731
0
        }
732
0
    case PTCPServerSocketMsgStart:
733
0
        {
734
0
            PTCPServerSocketParent* actor = static_cast<PTCPServerSocketParent*>(aListener);
735
0
            auto& container = mManagedPTCPServerSocketParent;
736
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
737
0
738
0
            (container).RemoveEntry(actor);
739
0
            DeallocPTCPServerSocketParent(actor);
740
0
            return;
741
0
        }
742
0
    case PUDPSocketMsgStart:
743
0
        {
744
0
            PUDPSocketParent* actor = static_cast<PUDPSocketParent*>(aListener);
745
0
            auto& container = mManagedPUDPSocketParent;
746
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
747
0
748
0
            (container).RemoveEntry(actor);
749
0
            DeallocPUDPSocketParent(actor);
750
0
            return;
751
0
        }
752
0
    case PDNSRequestMsgStart:
753
0
        {
754
0
            PDNSRequestParent* actor = static_cast<PDNSRequestParent*>(aListener);
755
0
            auto& container = mManagedPDNSRequestParent;
756
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
757
0
758
0
            (container).RemoveEntry(actor);
759
0
            DeallocPDNSRequestParent(actor);
760
0
            return;
761
0
        }
762
0
    case PDataChannelMsgStart:
763
0
        {
764
0
            PDataChannelParent* actor = static_cast<PDataChannelParent*>(aListener);
765
0
            auto& container = mManagedPDataChannelParent;
766
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
767
0
768
0
            (container).RemoveEntry(actor);
769
0
            DeallocPDataChannelParent(actor);
770
0
            return;
771
0
        }
772
0
    case PSimpleChannelMsgStart:
773
0
        {
774
0
            PSimpleChannelParent* actor = static_cast<PSimpleChannelParent*>(aListener);
775
0
            auto& container = mManagedPSimpleChannelParent;
776
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
777
0
778
0
            (container).RemoveEntry(actor);
779
0
            DeallocPSimpleChannelParent(actor);
780
0
            return;
781
0
        }
782
0
    case PFileChannelMsgStart:
783
0
        {
784
0
            PFileChannelParent* actor = static_cast<PFileChannelParent*>(aListener);
785
0
            auto& container = mManagedPFileChannelParent;
786
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
787
0
788
0
            (container).RemoveEntry(actor);
789
0
            DeallocPFileChannelParent(actor);
790
0
            return;
791
0
        }
792
0
    case PChannelDiverterMsgStart:
793
0
        {
794
0
            PChannelDiverterParent* actor = static_cast<PChannelDiverterParent*>(aListener);
795
0
            auto& container = mManagedPChannelDiverterParent;
796
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
797
0
798
0
            (container).RemoveEntry(actor);
799
0
            DeallocPChannelDiverterParent(actor);
800
0
            return;
801
0
        }
802
0
    case PTransportProviderMsgStart:
803
0
        {
804
0
            PTransportProviderParent* actor = static_cast<PTransportProviderParent*>(aListener);
805
0
            auto& container = mManagedPTransportProviderParent;
806
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
807
0
808
0
            (container).RemoveEntry(actor);
809
0
            DeallocPTransportProviderParent(actor);
810
0
            return;
811
0
        }
812
0
    case PAltDataOutputStreamMsgStart:
813
0
        {
814
0
            PAltDataOutputStreamParent* actor = static_cast<PAltDataOutputStreamParent*>(aListener);
815
0
            auto& container = mManagedPAltDataOutputStreamParent;
816
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
817
0
818
0
            (container).RemoveEntry(actor);
819
0
            DeallocPAltDataOutputStreamParent(actor);
820
0
            return;
821
0
        }
822
0
    case PStunAddrsRequestMsgStart:
823
0
        {
824
0
            PStunAddrsRequestParent* actor = static_cast<PStunAddrsRequestParent*>(aListener);
825
0
            auto& container = mManagedPStunAddrsRequestParent;
826
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
827
0
828
0
            (container).RemoveEntry(actor);
829
0
            DeallocPStunAddrsRequestParent(actor);
830
0
            return;
831
0
        }
832
0
    default:
833
0
        {
834
0
            FatalError("unreached");
835
0
            return;
836
0
        }
837
0
    }
838
0
}
839
840
auto PNeckoParent::OnMessageReceived(const Message& msg__) -> PNeckoParent::Result
841
0
{
842
0
    switch ((msg__).type()) {
843
0
    case PNecko::Msg___delete____ID:
844
0
        {
845
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
846
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
847
0
            }
848
0
            AUTO_PROFILER_LABEL("PNecko::Msg___delete__", OTHER);
849
0
850
0
            PickleIterator iter__(msg__);
851
0
            PNeckoParent* actor;
852
0
853
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(actor)))))) {
854
0
                FatalError("Error deserializing 'PNeckoParent'");
855
0
                return MsgValueError;
856
0
            }
857
0
            if ((!((*((&(actor))))))) {
858
0
                FatalError("Error deserializing 'PNeckoParent'");
859
0
                return MsgValueError;
860
0
            }
861
0
            // Sentinel = 'actor'
862
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
863
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PNeckoParent'");
864
0
                return MsgValueError;
865
0
            }
866
0
            (msg__).EndRead(iter__, (msg__).type());
867
0
            if ((!(StateTransition(true, (&(mLivenessState)))))) {
868
0
                FatalError("Transition error");
869
0
                return MsgValueError;
870
0
            }
871
0
            if ((!(Recv__delete__()))) {
872
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
873
0
                // Error handled in mozilla::ipc::IPCResult
874
0
                return MsgProcessingError;
875
0
            }
876
0
877
0
878
0
            IProtocol* mgr = (actor)->Manager();
879
0
            (actor)->DestroySubtree(Deletion);
880
0
            (actor)->DeallocSubtree();
881
0
            (mgr)->RemoveManagee(PNeckoMsgStart, actor);
882
0
883
0
            return MsgProcessed;
884
0
        }
885
0
    case PNecko::Msg_PCookieServiceConstructor__ID:
886
0
        {
887
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
888
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
889
0
            }
890
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PCookieServiceConstructor", OTHER);
891
0
892
0
            PickleIterator iter__(msg__);
893
0
            ActorHandle handle__;
894
0
            PCookieServiceParent* actor;
895
0
896
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
897
0
                FatalError("Error deserializing 'ActorHandle'");
898
0
                return MsgValueError;
899
0
            }
900
0
            // Sentinel = 'actor'
901
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
902
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
903
0
                return MsgValueError;
904
0
            }
905
0
            (msg__).EndRead(iter__, (msg__).type());
906
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
907
0
                FatalError("Transition error");
908
0
                return MsgValueError;
909
0
            }
910
0
            actor = AllocPCookieServiceParent();
911
0
            if ((!(actor))) {
912
0
                NS_WARNING("Error constructing actor PCookieServiceParent");
913
0
                return MsgValueError;
914
0
            }
915
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
916
0
            (mManagedPCookieServiceParent).PutEntry(actor);
917
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
918
0
919
0
            if ((!(RecvPCookieServiceConstructor(actor)))) {
920
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
921
0
                // Error handled in mozilla::ipc::IPCResult
922
0
                return MsgProcessingError;
923
0
            }
924
0
925
0
            return MsgProcessed;
926
0
        }
927
0
    case PNecko::Msg_PHttpChannelConstructor__ID:
928
0
        {
929
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
930
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
931
0
            }
932
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PHttpChannelConstructor", OTHER);
933
0
934
0
            PickleIterator iter__(msg__);
935
0
            ActorHandle handle__;
936
0
            PHttpChannelParent* actor;
937
0
            PBrowserOrId browser;
938
0
            SerializedLoadContext loadContext;
939
0
            HttpChannelCreationArgs args;
940
0
941
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
942
0
                FatalError("Error deserializing 'ActorHandle'");
943
0
                return MsgValueError;
944
0
            }
945
0
            // Sentinel = 'actor'
946
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
947
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
948
0
                return MsgValueError;
949
0
            }
950
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(browser)))))) {
951
0
                FatalError("Error deserializing 'PBrowserOrId'");
952
0
                return MsgValueError;
953
0
            }
954
0
            // Sentinel = 'browser'
955
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2836343679)))) {
956
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserOrId'");
957
0
                return MsgValueError;
958
0
            }
959
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(loadContext)))))) {
960
0
                FatalError("Error deserializing 'SerializedLoadContext'");
961
0
                return MsgValueError;
962
0
            }
963
0
            // Sentinel = 'loadContext'
964
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2917317838)))) {
965
0
                mozilla::ipc::SentinelReadError("Error deserializing 'SerializedLoadContext'");
966
0
                return MsgValueError;
967
0
            }
968
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(args)))))) {
969
0
                FatalError("Error deserializing 'HttpChannelCreationArgs'");
970
0
                return MsgValueError;
971
0
            }
972
0
            // Sentinel = 'args'
973
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2823760587)))) {
974
0
                mozilla::ipc::SentinelReadError("Error deserializing 'HttpChannelCreationArgs'");
975
0
                return MsgValueError;
976
0
            }
977
0
            (msg__).EndRead(iter__, (msg__).type());
978
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
979
0
                FatalError("Transition error");
980
0
                return MsgValueError;
981
0
            }
982
0
            actor = AllocPHttpChannelParent(browser, loadContext, args);
983
0
            if ((!(actor))) {
984
0
                NS_WARNING("Error constructing actor PHttpChannelParent");
985
0
                return MsgValueError;
986
0
            }
987
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
988
0
            (mManagedPHttpChannelParent).PutEntry(actor);
989
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
990
0
991
0
            if ((!(RecvPHttpChannelConstructor(actor, browser, loadContext, args)))) {
992
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
993
0
                // Error handled in mozilla::ipc::IPCResult
994
0
                return MsgProcessingError;
995
0
            }
996
0
997
0
            return MsgProcessed;
998
0
        }
999
0
    case PNecko::Msg_PWyciwygChannelConstructor__ID:
1000
0
        {
1001
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1002
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1003
0
            }
1004
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PWyciwygChannelConstructor", OTHER);
1005
0
1006
0
            PickleIterator iter__(msg__);
1007
0
            ActorHandle handle__;
1008
0
            PWyciwygChannelParent* actor;
1009
0
1010
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1011
0
                FatalError("Error deserializing 'ActorHandle'");
1012
0
                return MsgValueError;
1013
0
            }
1014
0
            // Sentinel = 'actor'
1015
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1016
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1017
0
                return MsgValueError;
1018
0
            }
1019
0
            (msg__).EndRead(iter__, (msg__).type());
1020
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1021
0
                FatalError("Transition error");
1022
0
                return MsgValueError;
1023
0
            }
1024
0
            actor = AllocPWyciwygChannelParent();
1025
0
            if ((!(actor))) {
1026
0
                NS_WARNING("Error constructing actor PWyciwygChannelParent");
1027
0
                return MsgValueError;
1028
0
            }
1029
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1030
0
            (mManagedPWyciwygChannelParent).PutEntry(actor);
1031
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1032
0
1033
0
            if ((!(RecvPWyciwygChannelConstructor(actor)))) {
1034
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1035
0
                // Error handled in mozilla::ipc::IPCResult
1036
0
                return MsgProcessingError;
1037
0
            }
1038
0
1039
0
            return MsgProcessed;
1040
0
        }
1041
0
    case PNecko::Msg_PFTPChannelConstructor__ID:
1042
0
        {
1043
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1044
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1045
0
            }
1046
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PFTPChannelConstructor", OTHER);
1047
0
1048
0
            PickleIterator iter__(msg__);
1049
0
            ActorHandle handle__;
1050
0
            PFTPChannelParent* actor;
1051
0
            PBrowserOrId browser;
1052
0
            SerializedLoadContext loadContext;
1053
0
            FTPChannelCreationArgs args;
1054
0
1055
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1056
0
                FatalError("Error deserializing 'ActorHandle'");
1057
0
                return MsgValueError;
1058
0
            }
1059
0
            // Sentinel = 'actor'
1060
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1061
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1062
0
                return MsgValueError;
1063
0
            }
1064
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(browser)))))) {
1065
0
                FatalError("Error deserializing 'PBrowserOrId'");
1066
0
                return MsgValueError;
1067
0
            }
1068
0
            // Sentinel = 'browser'
1069
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2836343679)))) {
1070
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserOrId'");
1071
0
                return MsgValueError;
1072
0
            }
1073
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(loadContext)))))) {
1074
0
                FatalError("Error deserializing 'SerializedLoadContext'");
1075
0
                return MsgValueError;
1076
0
            }
1077
0
            // Sentinel = 'loadContext'
1078
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2917317838)))) {
1079
0
                mozilla::ipc::SentinelReadError("Error deserializing 'SerializedLoadContext'");
1080
0
                return MsgValueError;
1081
0
            }
1082
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(args)))))) {
1083
0
                FatalError("Error deserializing 'FTPChannelCreationArgs'");
1084
0
                return MsgValueError;
1085
0
            }
1086
0
            // Sentinel = 'args'
1087
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2823760587)))) {
1088
0
                mozilla::ipc::SentinelReadError("Error deserializing 'FTPChannelCreationArgs'");
1089
0
                return MsgValueError;
1090
0
            }
1091
0
            (msg__).EndRead(iter__, (msg__).type());
1092
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1093
0
                FatalError("Transition error");
1094
0
                return MsgValueError;
1095
0
            }
1096
0
            actor = AllocPFTPChannelParent(browser, loadContext, args);
1097
0
            if ((!(actor))) {
1098
0
                NS_WARNING("Error constructing actor PFTPChannelParent");
1099
0
                return MsgValueError;
1100
0
            }
1101
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1102
0
            (mManagedPFTPChannelParent).PutEntry(actor);
1103
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1104
0
1105
0
            if ((!(RecvPFTPChannelConstructor(actor, browser, loadContext, args)))) {
1106
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1107
0
                // Error handled in mozilla::ipc::IPCResult
1108
0
                return MsgProcessingError;
1109
0
            }
1110
0
1111
0
            return MsgProcessed;
1112
0
        }
1113
0
    case PNecko::Msg_PWebSocketConstructor__ID:
1114
0
        {
1115
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1116
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1117
0
            }
1118
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PWebSocketConstructor", OTHER);
1119
0
1120
0
            PickleIterator iter__(msg__);
1121
0
            ActorHandle handle__;
1122
0
            PWebSocketParent* actor;
1123
0
            PBrowserOrId browser;
1124
0
            SerializedLoadContext loadContext;
1125
0
            uint32_t aSerialID;
1126
0
1127
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1128
0
                FatalError("Error deserializing 'ActorHandle'");
1129
0
                return MsgValueError;
1130
0
            }
1131
0
            // Sentinel = 'actor'
1132
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1133
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1134
0
                return MsgValueError;
1135
0
            }
1136
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(browser)))))) {
1137
0
                FatalError("Error deserializing 'PBrowserOrId'");
1138
0
                return MsgValueError;
1139
0
            }
1140
0
            // Sentinel = 'browser'
1141
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2836343679)))) {
1142
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserOrId'");
1143
0
                return MsgValueError;
1144
0
            }
1145
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(loadContext)))))) {
1146
0
                FatalError("Error deserializing 'SerializedLoadContext'");
1147
0
                return MsgValueError;
1148
0
            }
1149
0
            // Sentinel = 'loadContext'
1150
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2917317838)))) {
1151
0
                mozilla::ipc::SentinelReadError("Error deserializing 'SerializedLoadContext'");
1152
0
                return MsgValueError;
1153
0
            }
1154
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aSerialID)))))) {
1155
0
                FatalError("Error deserializing 'uint32_t'");
1156
0
                return MsgValueError;
1157
0
            }
1158
0
            // Sentinel = 'aSerialID'
1159
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1337008615)))) {
1160
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
1161
0
                return MsgValueError;
1162
0
            }
1163
0
            (msg__).EndRead(iter__, (msg__).type());
1164
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1165
0
                FatalError("Transition error");
1166
0
                return MsgValueError;
1167
0
            }
1168
0
            actor = AllocPWebSocketParent(browser, loadContext, aSerialID);
1169
0
            if ((!(actor))) {
1170
0
                NS_WARNING("Error constructing actor PWebSocketParent");
1171
0
                return MsgValueError;
1172
0
            }
1173
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1174
0
            (mManagedPWebSocketParent).PutEntry(actor);
1175
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1176
0
1177
0
            if ((!(RecvPWebSocketConstructor(actor, browser, loadContext, aSerialID)))) {
1178
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1179
0
                // Error handled in mozilla::ipc::IPCResult
1180
0
                return MsgProcessingError;
1181
0
            }
1182
0
1183
0
            return MsgProcessed;
1184
0
        }
1185
0
    case PNecko::Msg_PTCPServerSocketConstructor__ID:
1186
0
        {
1187
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1188
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1189
0
            }
1190
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PTCPServerSocketConstructor", OTHER);
1191
0
1192
0
            PickleIterator iter__(msg__);
1193
0
            ActorHandle handle__;
1194
0
            PTCPServerSocketParent* actor;
1195
0
            uint16_t localPort;
1196
0
            uint16_t backlog;
1197
0
            bool useArrayBuffers;
1198
0
1199
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1200
0
                FatalError("Error deserializing 'ActorHandle'");
1201
0
                return MsgValueError;
1202
0
            }
1203
0
            // Sentinel = 'actor'
1204
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1205
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1206
0
                return MsgValueError;
1207
0
            }
1208
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(localPort)))))) {
1209
0
                FatalError("Error deserializing 'uint16_t'");
1210
0
                return MsgValueError;
1211
0
            }
1212
0
            // Sentinel = 'localPort'
1213
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2930268933)))) {
1214
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint16_t'");
1215
0
                return MsgValueError;
1216
0
            }
1217
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(backlog)))))) {
1218
0
                FatalError("Error deserializing 'uint16_t'");
1219
0
                return MsgValueError;
1220
0
            }
1221
0
            // Sentinel = 'backlog'
1222
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 403095166)))) {
1223
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint16_t'");
1224
0
                return MsgValueError;
1225
0
            }
1226
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(useArrayBuffers)))))) {
1227
0
                FatalError("Error deserializing 'bool'");
1228
0
                return MsgValueError;
1229
0
            }
1230
0
            // Sentinel = 'useArrayBuffers'
1231
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1444022734)))) {
1232
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
1233
0
                return MsgValueError;
1234
0
            }
1235
0
            (msg__).EndRead(iter__, (msg__).type());
1236
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1237
0
                FatalError("Transition error");
1238
0
                return MsgValueError;
1239
0
            }
1240
0
            actor = AllocPTCPServerSocketParent(localPort, backlog, useArrayBuffers);
1241
0
            if ((!(actor))) {
1242
0
                NS_WARNING("Error constructing actor PTCPServerSocketParent");
1243
0
                return MsgValueError;
1244
0
            }
1245
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1246
0
            (mManagedPTCPServerSocketParent).PutEntry(actor);
1247
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1248
0
1249
0
            if ((!(RecvPTCPServerSocketConstructor(actor, localPort, backlog, useArrayBuffers)))) {
1250
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1251
0
                // Error handled in mozilla::ipc::IPCResult
1252
0
                return MsgProcessingError;
1253
0
            }
1254
0
1255
0
            return MsgProcessed;
1256
0
        }
1257
0
    case PNecko::Msg_PUDPSocketConstructor__ID:
1258
0
        {
1259
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1260
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1261
0
            }
1262
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PUDPSocketConstructor", OTHER);
1263
0
1264
0
            PickleIterator iter__(msg__);
1265
0
            ActorHandle handle__;
1266
0
            PUDPSocketParent* actor;
1267
0
            Principal principal;
1268
0
            nsCString filter;
1269
0
1270
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1271
0
                FatalError("Error deserializing 'ActorHandle'");
1272
0
                return MsgValueError;
1273
0
            }
1274
0
            // Sentinel = 'actor'
1275
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1276
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1277
0
                return MsgValueError;
1278
0
            }
1279
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) {
1280
0
                FatalError("Error deserializing 'Principal'");
1281
0
                return MsgValueError;
1282
0
            }
1283
0
            // Sentinel = 'principal'
1284
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
1285
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
1286
0
                return MsgValueError;
1287
0
            }
1288
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(filter)))))) {
1289
0
                FatalError("Error deserializing 'nsCString'");
1290
0
                return MsgValueError;
1291
0
            }
1292
0
            // Sentinel = 'filter'
1293
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2236769008)))) {
1294
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
1295
0
                return MsgValueError;
1296
0
            }
1297
0
            (msg__).EndRead(iter__, (msg__).type());
1298
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1299
0
                FatalError("Transition error");
1300
0
                return MsgValueError;
1301
0
            }
1302
0
            actor = AllocPUDPSocketParent(principal, filter);
1303
0
            if ((!(actor))) {
1304
0
                NS_WARNING("Error constructing actor PUDPSocketParent");
1305
0
                return MsgValueError;
1306
0
            }
1307
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1308
0
            (mManagedPUDPSocketParent).PutEntry(actor);
1309
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1310
0
1311
0
            if ((!(RecvPUDPSocketConstructor(actor, principal, filter)))) {
1312
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1313
0
                // Error handled in mozilla::ipc::IPCResult
1314
0
                return MsgProcessingError;
1315
0
            }
1316
0
1317
0
            return MsgProcessed;
1318
0
        }
1319
0
    case PNecko::Msg_PDNSRequestConstructor__ID:
1320
0
        {
1321
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1322
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1323
0
            }
1324
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PDNSRequestConstructor", OTHER);
1325
0
1326
0
            PickleIterator iter__(msg__);
1327
0
            ActorHandle handle__;
1328
0
            PDNSRequestParent* actor;
1329
0
            nsCString hostName;
1330
0
            OriginAttributes originAttributes;
1331
0
            uint32_t flags;
1332
0
1333
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1334
0
                FatalError("Error deserializing 'ActorHandle'");
1335
0
                return MsgValueError;
1336
0
            }
1337
0
            // Sentinel = 'actor'
1338
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1339
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1340
0
                return MsgValueError;
1341
0
            }
1342
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(hostName)))))) {
1343
0
                FatalError("Error deserializing 'nsCString'");
1344
0
                return MsgValueError;
1345
0
            }
1346
0
            // Sentinel = 'hostName'
1347
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1367899915)))) {
1348
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
1349
0
                return MsgValueError;
1350
0
            }
1351
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(originAttributes)))))) {
1352
0
                FatalError("Error deserializing 'OriginAttributes'");
1353
0
                return MsgValueError;
1354
0
            }
1355
0
            // Sentinel = 'originAttributes'
1356
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2655275965)))) {
1357
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OriginAttributes'");
1358
0
                return MsgValueError;
1359
0
            }
1360
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(flags)))))) {
1361
0
                FatalError("Error deserializing 'uint32_t'");
1362
0
                return MsgValueError;
1363
0
            }
1364
0
            // Sentinel = 'flags'
1365
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2550519284)))) {
1366
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
1367
0
                return MsgValueError;
1368
0
            }
1369
0
            (msg__).EndRead(iter__, (msg__).type());
1370
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1371
0
                FatalError("Transition error");
1372
0
                return MsgValueError;
1373
0
            }
1374
0
            actor = AllocPDNSRequestParent(hostName, originAttributes, flags);
1375
0
            if ((!(actor))) {
1376
0
                NS_WARNING("Error constructing actor PDNSRequestParent");
1377
0
                return MsgValueError;
1378
0
            }
1379
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1380
0
            (mManagedPDNSRequestParent).PutEntry(actor);
1381
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1382
0
1383
0
            if ((!(RecvPDNSRequestConstructor(actor, hostName, originAttributes, flags)))) {
1384
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1385
0
                // Error handled in mozilla::ipc::IPCResult
1386
0
                return MsgProcessingError;
1387
0
            }
1388
0
1389
0
            return MsgProcessed;
1390
0
        }
1391
0
    case PNecko::Msg_PWebSocketEventListenerConstructor__ID:
1392
0
        {
1393
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1394
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1395
0
            }
1396
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PWebSocketEventListenerConstructor", OTHER);
1397
0
1398
0
            PickleIterator iter__(msg__);
1399
0
            ActorHandle handle__;
1400
0
            PWebSocketEventListenerParent* actor;
1401
0
            uint64_t aInnerWindowID;
1402
0
1403
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1404
0
                FatalError("Error deserializing 'ActorHandle'");
1405
0
                return MsgValueError;
1406
0
            }
1407
0
            // Sentinel = 'actor'
1408
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1409
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1410
0
                return MsgValueError;
1411
0
            }
1412
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aInnerWindowID)))))) {
1413
0
                FatalError("Error deserializing 'uint64_t'");
1414
0
                return MsgValueError;
1415
0
            }
1416
0
            // Sentinel = 'aInnerWindowID'
1417
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3059251422)))) {
1418
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
1419
0
                return MsgValueError;
1420
0
            }
1421
0
            (msg__).EndRead(iter__, (msg__).type());
1422
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1423
0
                FatalError("Transition error");
1424
0
                return MsgValueError;
1425
0
            }
1426
0
            actor = AllocPWebSocketEventListenerParent(aInnerWindowID);
1427
0
            if ((!(actor))) {
1428
0
                NS_WARNING("Error constructing actor PWebSocketEventListenerParent");
1429
0
                return MsgValueError;
1430
0
            }
1431
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1432
0
            (mManagedPWebSocketEventListenerParent).PutEntry(actor);
1433
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1434
0
1435
0
            if ((!(RecvPWebSocketEventListenerConstructor(actor, aInnerWindowID)))) {
1436
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1437
0
                // Error handled in mozilla::ipc::IPCResult
1438
0
                return MsgProcessingError;
1439
0
            }
1440
0
1441
0
            return MsgProcessed;
1442
0
        }
1443
0
    case PNecko::Msg_PredPredict__ID:
1444
0
        {
1445
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1446
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1447
0
            }
1448
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PredPredict", OTHER);
1449
0
1450
0
            PickleIterator iter__(msg__);
1451
0
            OptionalURIParams targetURI;
1452
0
            OptionalURIParams sourceURI;
1453
0
            uint32_t reason;
1454
0
            OriginAttributes originAttributes;
1455
0
            bool hasVerifier;
1456
0
1457
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(targetURI)))))) {
1458
0
                FatalError("Error deserializing 'OptionalURIParams'");
1459
0
                return MsgValueError;
1460
0
            }
1461
0
            // Sentinel = 'targetURI'
1462
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1361914354)))) {
1463
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
1464
0
                return MsgValueError;
1465
0
            }
1466
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(sourceURI)))))) {
1467
0
                FatalError("Error deserializing 'OptionalURIParams'");
1468
0
                return MsgValueError;
1469
0
            }
1470
0
            // Sentinel = 'sourceURI'
1471
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3017222278)))) {
1472
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
1473
0
                return MsgValueError;
1474
0
            }
1475
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(reason)))))) {
1476
0
                FatalError("Error deserializing 'uint32_t'");
1477
0
                return MsgValueError;
1478
0
            }
1479
0
            // Sentinel = 'reason'
1480
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4151390930)))) {
1481
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
1482
0
                return MsgValueError;
1483
0
            }
1484
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(originAttributes)))))) {
1485
0
                FatalError("Error deserializing 'OriginAttributes'");
1486
0
                return MsgValueError;
1487
0
            }
1488
0
            // Sentinel = 'originAttributes'
1489
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2655275965)))) {
1490
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OriginAttributes'");
1491
0
                return MsgValueError;
1492
0
            }
1493
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(hasVerifier)))))) {
1494
0
                FatalError("Error deserializing 'bool'");
1495
0
                return MsgValueError;
1496
0
            }
1497
0
            // Sentinel = 'hasVerifier'
1498
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1905198201)))) {
1499
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
1500
0
                return MsgValueError;
1501
0
            }
1502
0
            (msg__).EndRead(iter__, (msg__).type());
1503
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1504
0
                FatalError("Transition error");
1505
0
                return MsgValueError;
1506
0
            }
1507
0
            if ((!(RecvPredPredict(targetURI, sourceURI, reason, originAttributes, hasVerifier)))) {
1508
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1509
0
                // Error handled in mozilla::ipc::IPCResult
1510
0
                return MsgProcessingError;
1511
0
            }
1512
0
1513
0
            return MsgProcessed;
1514
0
        }
1515
0
    case PNecko::Msg_PredLearn__ID:
1516
0
        {
1517
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1518
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1519
0
            }
1520
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PredLearn", OTHER);
1521
0
1522
0
            PickleIterator iter__(msg__);
1523
0
            URIParams targetURI;
1524
0
            OptionalURIParams sourceURI;
1525
0
            uint32_t reason;
1526
0
            OriginAttributes originAttributes;
1527
0
1528
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(targetURI)))))) {
1529
0
                FatalError("Error deserializing 'URIParams'");
1530
0
                return MsgValueError;
1531
0
            }
1532
0
            // Sentinel = 'targetURI'
1533
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1361914354)))) {
1534
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
1535
0
                return MsgValueError;
1536
0
            }
1537
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(sourceURI)))))) {
1538
0
                FatalError("Error deserializing 'OptionalURIParams'");
1539
0
                return MsgValueError;
1540
0
            }
1541
0
            // Sentinel = 'sourceURI'
1542
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3017222278)))) {
1543
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
1544
0
                return MsgValueError;
1545
0
            }
1546
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(reason)))))) {
1547
0
                FatalError("Error deserializing 'uint32_t'");
1548
0
                return MsgValueError;
1549
0
            }
1550
0
            // Sentinel = 'reason'
1551
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4151390930)))) {
1552
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
1553
0
                return MsgValueError;
1554
0
            }
1555
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(originAttributes)))))) {
1556
0
                FatalError("Error deserializing 'OriginAttributes'");
1557
0
                return MsgValueError;
1558
0
            }
1559
0
            // Sentinel = 'originAttributes'
1560
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2655275965)))) {
1561
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OriginAttributes'");
1562
0
                return MsgValueError;
1563
0
            }
1564
0
            (msg__).EndRead(iter__, (msg__).type());
1565
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1566
0
                FatalError("Transition error");
1567
0
                return MsgValueError;
1568
0
            }
1569
0
            if ((!(RecvPredLearn(targetURI, sourceURI, reason, originAttributes)))) {
1570
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1571
0
                // Error handled in mozilla::ipc::IPCResult
1572
0
                return MsgProcessingError;
1573
0
            }
1574
0
1575
0
            return MsgProcessed;
1576
0
        }
1577
0
    case PNecko::Msg_PredReset__ID:
1578
0
        {
1579
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1580
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1581
0
            }
1582
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PredReset", OTHER);
1583
0
1584
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1585
0
                FatalError("Transition error");
1586
0
                return MsgValueError;
1587
0
            }
1588
0
            if ((!(RecvPredReset()))) {
1589
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1590
0
                // Error handled in mozilla::ipc::IPCResult
1591
0
                return MsgProcessingError;
1592
0
            }
1593
0
1594
0
            return MsgProcessed;
1595
0
        }
1596
0
    case PNecko::Msg_SpeculativeConnect__ID:
1597
0
        {
1598
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1599
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1600
0
            }
1601
0
            AUTO_PROFILER_LABEL("PNecko::Msg_SpeculativeConnect", OTHER);
1602
0
1603
0
            PickleIterator iter__(msg__);
1604
0
            URIParams uri;
1605
0
            Principal principal;
1606
0
            bool anonymous;
1607
0
1608
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(uri)))))) {
1609
0
                FatalError("Error deserializing 'URIParams'");
1610
0
                return MsgValueError;
1611
0
            }
1612
0
            // Sentinel = 'uri'
1613
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
1614
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
1615
0
                return MsgValueError;
1616
0
            }
1617
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) {
1618
0
                FatalError("Error deserializing 'Principal'");
1619
0
                return MsgValueError;
1620
0
            }
1621
0
            // Sentinel = 'principal'
1622
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
1623
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Principal'");
1624
0
                return MsgValueError;
1625
0
            }
1626
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(anonymous)))))) {
1627
0
                FatalError("Error deserializing 'bool'");
1628
0
                return MsgValueError;
1629
0
            }
1630
0
            // Sentinel = 'anonymous'
1631
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 479504470)))) {
1632
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
1633
0
                return MsgValueError;
1634
0
            }
1635
0
            (msg__).EndRead(iter__, (msg__).type());
1636
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1637
0
                FatalError("Transition error");
1638
0
                return MsgValueError;
1639
0
            }
1640
0
            if ((!(RecvSpeculativeConnect(uri, principal, anonymous)))) {
1641
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1642
0
                // Error handled in mozilla::ipc::IPCResult
1643
0
                return MsgProcessingError;
1644
0
            }
1645
0
1646
0
            return MsgProcessed;
1647
0
        }
1648
0
    case PNecko::Msg_HTMLDNSPrefetch__ID:
1649
0
        {
1650
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1651
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1652
0
            }
1653
0
            AUTO_PROFILER_LABEL("PNecko::Msg_HTMLDNSPrefetch", OTHER);
1654
0
1655
0
            PickleIterator iter__(msg__);
1656
0
            nsString hostname;
1657
0
            bool isHttps;
1658
0
            OriginAttributes originAttributes;
1659
0
            uint16_t flags;
1660
0
1661
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(hostname)))))) {
1662
0
                FatalError("Error deserializing 'nsString'");
1663
0
                return MsgValueError;
1664
0
            }
1665
0
            // Sentinel = 'hostname'
1666
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4013034923)))) {
1667
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
1668
0
                return MsgValueError;
1669
0
            }
1670
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(isHttps)))))) {
1671
0
                FatalError("Error deserializing 'bool'");
1672
0
                return MsgValueError;
1673
0
            }
1674
0
            // Sentinel = 'isHttps'
1675
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2454022204)))) {
1676
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
1677
0
                return MsgValueError;
1678
0
            }
1679
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(originAttributes)))))) {
1680
0
                FatalError("Error deserializing 'OriginAttributes'");
1681
0
                return MsgValueError;
1682
0
            }
1683
0
            // Sentinel = 'originAttributes'
1684
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2655275965)))) {
1685
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OriginAttributes'");
1686
0
                return MsgValueError;
1687
0
            }
1688
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(flags)))))) {
1689
0
                FatalError("Error deserializing 'uint16_t'");
1690
0
                return MsgValueError;
1691
0
            }
1692
0
            // Sentinel = 'flags'
1693
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2550519284)))) {
1694
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint16_t'");
1695
0
                return MsgValueError;
1696
0
            }
1697
0
            (msg__).EndRead(iter__, (msg__).type());
1698
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1699
0
                FatalError("Transition error");
1700
0
                return MsgValueError;
1701
0
            }
1702
0
            if ((!(RecvHTMLDNSPrefetch(hostname, isHttps, originAttributes, flags)))) {
1703
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1704
0
                // Error handled in mozilla::ipc::IPCResult
1705
0
                return MsgProcessingError;
1706
0
            }
1707
0
1708
0
            return MsgProcessed;
1709
0
        }
1710
0
    case PNecko::Msg_CancelHTMLDNSPrefetch__ID:
1711
0
        {
1712
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1713
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1714
0
            }
1715
0
            AUTO_PROFILER_LABEL("PNecko::Msg_CancelHTMLDNSPrefetch", OTHER);
1716
0
1717
0
            PickleIterator iter__(msg__);
1718
0
            nsString hostname;
1719
0
            bool isHttps;
1720
0
            OriginAttributes originAttributes;
1721
0
            uint16_t flags;
1722
0
            nsresult reason;
1723
0
1724
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(hostname)))))) {
1725
0
                FatalError("Error deserializing 'nsString'");
1726
0
                return MsgValueError;
1727
0
            }
1728
0
            // Sentinel = 'hostname'
1729
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4013034923)))) {
1730
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
1731
0
                return MsgValueError;
1732
0
            }
1733
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(isHttps)))))) {
1734
0
                FatalError("Error deserializing 'bool'");
1735
0
                return MsgValueError;
1736
0
            }
1737
0
            // Sentinel = 'isHttps'
1738
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2454022204)))) {
1739
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
1740
0
                return MsgValueError;
1741
0
            }
1742
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(originAttributes)))))) {
1743
0
                FatalError("Error deserializing 'OriginAttributes'");
1744
0
                return MsgValueError;
1745
0
            }
1746
0
            // Sentinel = 'originAttributes'
1747
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2655275965)))) {
1748
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OriginAttributes'");
1749
0
                return MsgValueError;
1750
0
            }
1751
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(flags)))))) {
1752
0
                FatalError("Error deserializing 'uint16_t'");
1753
0
                return MsgValueError;
1754
0
            }
1755
0
            // Sentinel = 'flags'
1756
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2550519284)))) {
1757
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint16_t'");
1758
0
                return MsgValueError;
1759
0
            }
1760
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(reason)))))) {
1761
0
                FatalError("Error deserializing 'nsresult'");
1762
0
                return MsgValueError;
1763
0
            }
1764
0
            // Sentinel = 'reason'
1765
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4151390930)))) {
1766
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
1767
0
                return MsgValueError;
1768
0
            }
1769
0
            (msg__).EndRead(iter__, (msg__).type());
1770
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1771
0
                FatalError("Transition error");
1772
0
                return MsgValueError;
1773
0
            }
1774
0
            if ((!(RecvCancelHTMLDNSPrefetch(hostname, isHttps, originAttributes, flags, reason)))) {
1775
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1776
0
                // Error handled in mozilla::ipc::IPCResult
1777
0
                return MsgProcessingError;
1778
0
            }
1779
0
1780
0
            return MsgProcessed;
1781
0
        }
1782
0
    case PNecko::Msg_PDataChannelConstructor__ID:
1783
0
        {
1784
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1785
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1786
0
            }
1787
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PDataChannelConstructor", OTHER);
1788
0
1789
0
            PickleIterator iter__(msg__);
1790
0
            ActorHandle handle__;
1791
0
            PDataChannelParent* actor;
1792
0
            uint32_t channelId;
1793
0
1794
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1795
0
                FatalError("Error deserializing 'ActorHandle'");
1796
0
                return MsgValueError;
1797
0
            }
1798
0
            // Sentinel = 'actor'
1799
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1800
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1801
0
                return MsgValueError;
1802
0
            }
1803
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(channelId)))))) {
1804
0
                FatalError("Error deserializing 'uint32_t'");
1805
0
                return MsgValueError;
1806
0
            }
1807
0
            // Sentinel = 'channelId'
1808
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 6854027)))) {
1809
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
1810
0
                return MsgValueError;
1811
0
            }
1812
0
            (msg__).EndRead(iter__, (msg__).type());
1813
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1814
0
                FatalError("Transition error");
1815
0
                return MsgValueError;
1816
0
            }
1817
0
            actor = AllocPDataChannelParent(channelId);
1818
0
            if ((!(actor))) {
1819
0
                NS_WARNING("Error constructing actor PDataChannelParent");
1820
0
                return MsgValueError;
1821
0
            }
1822
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1823
0
            (mManagedPDataChannelParent).PutEntry(actor);
1824
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1825
0
1826
0
            if ((!(RecvPDataChannelConstructor(actor, channelId)))) {
1827
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1828
0
                // Error handled in mozilla::ipc::IPCResult
1829
0
                return MsgProcessingError;
1830
0
            }
1831
0
1832
0
            return MsgProcessed;
1833
0
        }
1834
0
    case PNecko::Msg_PSimpleChannelConstructor__ID:
1835
0
        {
1836
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1837
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1838
0
            }
1839
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PSimpleChannelConstructor", OTHER);
1840
0
1841
0
            PickleIterator iter__(msg__);
1842
0
            ActorHandle handle__;
1843
0
            PSimpleChannelParent* actor;
1844
0
            uint32_t channelId;
1845
0
1846
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1847
0
                FatalError("Error deserializing 'ActorHandle'");
1848
0
                return MsgValueError;
1849
0
            }
1850
0
            // Sentinel = 'actor'
1851
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1852
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1853
0
                return MsgValueError;
1854
0
            }
1855
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(channelId)))))) {
1856
0
                FatalError("Error deserializing 'uint32_t'");
1857
0
                return MsgValueError;
1858
0
            }
1859
0
            // Sentinel = 'channelId'
1860
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 6854027)))) {
1861
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
1862
0
                return MsgValueError;
1863
0
            }
1864
0
            (msg__).EndRead(iter__, (msg__).type());
1865
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1866
0
                FatalError("Transition error");
1867
0
                return MsgValueError;
1868
0
            }
1869
0
            actor = AllocPSimpleChannelParent(channelId);
1870
0
            if ((!(actor))) {
1871
0
                NS_WARNING("Error constructing actor PSimpleChannelParent");
1872
0
                return MsgValueError;
1873
0
            }
1874
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1875
0
            (mManagedPSimpleChannelParent).PutEntry(actor);
1876
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1877
0
1878
0
            if ((!(RecvPSimpleChannelConstructor(actor, channelId)))) {
1879
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1880
0
                // Error handled in mozilla::ipc::IPCResult
1881
0
                return MsgProcessingError;
1882
0
            }
1883
0
1884
0
            return MsgProcessed;
1885
0
        }
1886
0
    case PNecko::Msg_PFileChannelConstructor__ID:
1887
0
        {
1888
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1889
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1890
0
            }
1891
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PFileChannelConstructor", OTHER);
1892
0
1893
0
            PickleIterator iter__(msg__);
1894
0
            ActorHandle handle__;
1895
0
            PFileChannelParent* actor;
1896
0
            uint32_t channelId;
1897
0
1898
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1899
0
                FatalError("Error deserializing 'ActorHandle'");
1900
0
                return MsgValueError;
1901
0
            }
1902
0
            // Sentinel = 'actor'
1903
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1904
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1905
0
                return MsgValueError;
1906
0
            }
1907
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(channelId)))))) {
1908
0
                FatalError("Error deserializing 'uint32_t'");
1909
0
                return MsgValueError;
1910
0
            }
1911
0
            // Sentinel = 'channelId'
1912
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 6854027)))) {
1913
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
1914
0
                return MsgValueError;
1915
0
            }
1916
0
            (msg__).EndRead(iter__, (msg__).type());
1917
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1918
0
                FatalError("Transition error");
1919
0
                return MsgValueError;
1920
0
            }
1921
0
            actor = AllocPFileChannelParent(channelId);
1922
0
            if ((!(actor))) {
1923
0
                NS_WARNING("Error constructing actor PFileChannelParent");
1924
0
                return MsgValueError;
1925
0
            }
1926
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1927
0
            (mManagedPFileChannelParent).PutEntry(actor);
1928
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1929
0
1930
0
            if ((!(RecvPFileChannelConstructor(actor, channelId)))) {
1931
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1932
0
                // Error handled in mozilla::ipc::IPCResult
1933
0
                return MsgProcessingError;
1934
0
            }
1935
0
1936
0
            return MsgProcessed;
1937
0
        }
1938
0
    case PNecko::Msg_PChannelDiverterConstructor__ID:
1939
0
        {
1940
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1941
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1942
0
            }
1943
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PChannelDiverterConstructor", OTHER);
1944
0
1945
0
            PickleIterator iter__(msg__);
1946
0
            ActorHandle handle__;
1947
0
            PChannelDiverterParent* actor;
1948
0
            ChannelDiverterArgs channel;
1949
0
1950
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1951
0
                FatalError("Error deserializing 'ActorHandle'");
1952
0
                return MsgValueError;
1953
0
            }
1954
0
            // Sentinel = 'actor'
1955
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1956
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1957
0
                return MsgValueError;
1958
0
            }
1959
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(channel)))))) {
1960
0
                FatalError("Error deserializing 'ChannelDiverterArgs'");
1961
0
                return MsgValueError;
1962
0
            }
1963
0
            // Sentinel = 'channel'
1964
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 452840382)))) {
1965
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ChannelDiverterArgs'");
1966
0
                return MsgValueError;
1967
0
            }
1968
0
            (msg__).EndRead(iter__, (msg__).type());
1969
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1970
0
                FatalError("Transition error");
1971
0
                return MsgValueError;
1972
0
            }
1973
0
            actor = AllocPChannelDiverterParent(channel);
1974
0
            if ((!(actor))) {
1975
0
                NS_WARNING("Error constructing actor PChannelDiverterParent");
1976
0
                return MsgValueError;
1977
0
            }
1978
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1979
0
            (mManagedPChannelDiverterParent).PutEntry(actor);
1980
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1981
0
1982
0
            if ((!(RecvPChannelDiverterConstructor(actor, channel)))) {
1983
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1984
0
                // Error handled in mozilla::ipc::IPCResult
1985
0
                return MsgProcessingError;
1986
0
            }
1987
0
1988
0
            return MsgProcessed;
1989
0
        }
1990
0
    case PNecko::Msg_OnAuthAvailable__ID:
1991
0
        {
1992
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
1993
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1994
0
            }
1995
0
            AUTO_PROFILER_LABEL("PNecko::Msg_OnAuthAvailable", OTHER);
1996
0
1997
0
            PickleIterator iter__(msg__);
1998
0
            uint64_t callbackId;
1999
0
            nsString user;
2000
0
            nsString password;
2001
0
            nsString domain;
2002
0
2003
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(callbackId)))))) {
2004
0
                FatalError("Error deserializing 'uint64_t'");
2005
0
                return MsgValueError;
2006
0
            }
2007
0
            // Sentinel = 'callbackId'
2008
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4163989448)))) {
2009
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2010
0
                return MsgValueError;
2011
0
            }
2012
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(user)))))) {
2013
0
                FatalError("Error deserializing 'nsString'");
2014
0
                return MsgValueError;
2015
0
            }
2016
0
            // Sentinel = 'user'
2017
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 479507925)))) {
2018
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
2019
0
                return MsgValueError;
2020
0
            }
2021
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(password)))))) {
2022
0
                FatalError("Error deserializing 'nsString'");
2023
0
                return MsgValueError;
2024
0
            }
2025
0
            // Sentinel = 'password'
2026
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2527534683)))) {
2027
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
2028
0
                return MsgValueError;
2029
0
            }
2030
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(domain)))))) {
2031
0
                FatalError("Error deserializing 'nsString'");
2032
0
                return MsgValueError;
2033
0
            }
2034
0
            // Sentinel = 'domain'
2035
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 702229122)))) {
2036
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
2037
0
                return MsgValueError;
2038
0
            }
2039
0
            (msg__).EndRead(iter__, (msg__).type());
2040
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2041
0
                FatalError("Transition error");
2042
0
                return MsgValueError;
2043
0
            }
2044
0
            if ((!(RecvOnAuthAvailable(callbackId, user, password, domain)))) {
2045
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2046
0
                // Error handled in mozilla::ipc::IPCResult
2047
0
                return MsgProcessingError;
2048
0
            }
2049
0
2050
0
            return MsgProcessed;
2051
0
        }
2052
0
    case PNecko::Msg_OnAuthCancelled__ID:
2053
0
        {
2054
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2055
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2056
0
            }
2057
0
            AUTO_PROFILER_LABEL("PNecko::Msg_OnAuthCancelled", OTHER);
2058
0
2059
0
            PickleIterator iter__(msg__);
2060
0
            uint64_t callbackId;
2061
0
            bool userCancel;
2062
0
2063
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(callbackId)))))) {
2064
0
                FatalError("Error deserializing 'uint64_t'");
2065
0
                return MsgValueError;
2066
0
            }
2067
0
            // Sentinel = 'callbackId'
2068
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4163989448)))) {
2069
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2070
0
                return MsgValueError;
2071
0
            }
2072
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(userCancel)))))) {
2073
0
                FatalError("Error deserializing 'bool'");
2074
0
                return MsgValueError;
2075
0
            }
2076
0
            // Sentinel = 'userCancel'
2077
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2063943853)))) {
2078
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
2079
0
                return MsgValueError;
2080
0
            }
2081
0
            (msg__).EndRead(iter__, (msg__).type());
2082
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2083
0
                FatalError("Transition error");
2084
0
                return MsgValueError;
2085
0
            }
2086
0
            if ((!(RecvOnAuthCancelled(callbackId, userCancel)))) {
2087
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2088
0
                // Error handled in mozilla::ipc::IPCResult
2089
0
                return MsgProcessingError;
2090
0
            }
2091
0
2092
0
            return MsgProcessed;
2093
0
        }
2094
0
    case PNecko::Msg_RequestContextLoadBegin__ID:
2095
0
        {
2096
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2097
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2098
0
            }
2099
0
            AUTO_PROFILER_LABEL("PNecko::Msg_RequestContextLoadBegin", OTHER);
2100
0
2101
0
            PickleIterator iter__(msg__);
2102
0
            uint64_t rcid;
2103
0
2104
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(rcid)))))) {
2105
0
                FatalError("Error deserializing 'uint64_t'");
2106
0
                return MsgValueError;
2107
0
            }
2108
0
            // Sentinel = 'rcid'
2109
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3280983874)))) {
2110
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2111
0
                return MsgValueError;
2112
0
            }
2113
0
            (msg__).EndRead(iter__, (msg__).type());
2114
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2115
0
                FatalError("Transition error");
2116
0
                return MsgValueError;
2117
0
            }
2118
0
            if ((!(RecvRequestContextLoadBegin(rcid)))) {
2119
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2120
0
                // Error handled in mozilla::ipc::IPCResult
2121
0
                return MsgProcessingError;
2122
0
            }
2123
0
2124
0
            return MsgProcessed;
2125
0
        }
2126
0
    case PNecko::Msg_RequestContextAfterDOMContentLoaded__ID:
2127
0
        {
2128
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2129
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2130
0
            }
2131
0
            AUTO_PROFILER_LABEL("PNecko::Msg_RequestContextAfterDOMContentLoaded", OTHER);
2132
0
2133
0
            PickleIterator iter__(msg__);
2134
0
            uint64_t rcid;
2135
0
2136
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(rcid)))))) {
2137
0
                FatalError("Error deserializing 'uint64_t'");
2138
0
                return MsgValueError;
2139
0
            }
2140
0
            // Sentinel = 'rcid'
2141
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3280983874)))) {
2142
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2143
0
                return MsgValueError;
2144
0
            }
2145
0
            (msg__).EndRead(iter__, (msg__).type());
2146
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2147
0
                FatalError("Transition error");
2148
0
                return MsgValueError;
2149
0
            }
2150
0
            if ((!(RecvRequestContextAfterDOMContentLoaded(rcid)))) {
2151
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2152
0
                // Error handled in mozilla::ipc::IPCResult
2153
0
                return MsgProcessingError;
2154
0
            }
2155
0
2156
0
            return MsgProcessed;
2157
0
        }
2158
0
    case PNecko::Msg_RemoveRequestContext__ID:
2159
0
        {
2160
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2161
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2162
0
            }
2163
0
            AUTO_PROFILER_LABEL("PNecko::Msg_RemoveRequestContext", OTHER);
2164
0
2165
0
            PickleIterator iter__(msg__);
2166
0
            uint64_t rcid;
2167
0
2168
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(rcid)))))) {
2169
0
                FatalError("Error deserializing 'uint64_t'");
2170
0
                return MsgValueError;
2171
0
            }
2172
0
            // Sentinel = 'rcid'
2173
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3280983874)))) {
2174
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2175
0
                return MsgValueError;
2176
0
            }
2177
0
            (msg__).EndRead(iter__, (msg__).type());
2178
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2179
0
                FatalError("Transition error");
2180
0
                return MsgValueError;
2181
0
            }
2182
0
            if ((!(RecvRemoveRequestContext(rcid)))) {
2183
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2184
0
                // Error handled in mozilla::ipc::IPCResult
2185
0
                return MsgProcessingError;
2186
0
            }
2187
0
2188
0
            return MsgProcessed;
2189
0
        }
2190
0
    case PNecko::Msg_PAltDataOutputStreamConstructor__ID:
2191
0
        {
2192
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2193
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2194
0
            }
2195
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PAltDataOutputStreamConstructor", OTHER);
2196
0
2197
0
            PickleIterator iter__(msg__);
2198
0
            ActorHandle handle__;
2199
0
            PAltDataOutputStreamParent* actor;
2200
0
            nsCString type;
2201
0
            int64_t predictedSize;
2202
0
            PHttpChannelParent* channel;
2203
0
2204
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2205
0
                FatalError("Error deserializing 'ActorHandle'");
2206
0
                return MsgValueError;
2207
0
            }
2208
0
            // Sentinel = 'actor'
2209
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2210
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2211
0
                return MsgValueError;
2212
0
            }
2213
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(type)))))) {
2214
0
                FatalError("Error deserializing 'nsCString'");
2215
0
                return MsgValueError;
2216
0
            }
2217
0
            // Sentinel = 'type'
2218
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2982068540)))) {
2219
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
2220
0
                return MsgValueError;
2221
0
            }
2222
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(predictedSize)))))) {
2223
0
                FatalError("Error deserializing 'int64_t'");
2224
0
                return MsgValueError;
2225
0
            }
2226
0
            // Sentinel = 'predictedSize'
2227
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1432646818)))) {
2228
0
                mozilla::ipc::SentinelReadError("Error deserializing 'int64_t'");
2229
0
                return MsgValueError;
2230
0
            }
2231
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(channel)))))) {
2232
0
                FatalError("Error deserializing 'PHttpChannelParent'");
2233
0
                return MsgValueError;
2234
0
            }
2235
0
            if ((!((*((&(channel))))))) {
2236
0
                FatalError("Error deserializing 'PHttpChannelParent'");
2237
0
                return MsgValueError;
2238
0
            }
2239
0
            // Sentinel = 'channel'
2240
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 452840382)))) {
2241
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PHttpChannelParent'");
2242
0
                return MsgValueError;
2243
0
            }
2244
0
            (msg__).EndRead(iter__, (msg__).type());
2245
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2246
0
                FatalError("Transition error");
2247
0
                return MsgValueError;
2248
0
            }
2249
0
            actor = AllocPAltDataOutputStreamParent(type, predictedSize, channel);
2250
0
            if ((!(actor))) {
2251
0
                NS_WARNING("Error constructing actor PAltDataOutputStreamParent");
2252
0
                return MsgValueError;
2253
0
            }
2254
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2255
0
            (mManagedPAltDataOutputStreamParent).PutEntry(actor);
2256
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2257
0
2258
0
            if ((!(RecvPAltDataOutputStreamConstructor(actor, type, predictedSize, channel)))) {
2259
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2260
0
                // Error handled in mozilla::ipc::IPCResult
2261
0
                return MsgProcessingError;
2262
0
            }
2263
0
2264
0
            return MsgProcessed;
2265
0
        }
2266
0
    case PNecko::Msg_PStunAddrsRequestConstructor__ID:
2267
0
        {
2268
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2269
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2270
0
            }
2271
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PStunAddrsRequestConstructor", OTHER);
2272
0
2273
0
            PickleIterator iter__(msg__);
2274
0
            ActorHandle handle__;
2275
0
            PStunAddrsRequestParent* actor;
2276
0
2277
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2278
0
                FatalError("Error deserializing 'ActorHandle'");
2279
0
                return MsgValueError;
2280
0
            }
2281
0
            // Sentinel = 'actor'
2282
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2283
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2284
0
                return MsgValueError;
2285
0
            }
2286
0
            (msg__).EndRead(iter__, (msg__).type());
2287
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2288
0
                FatalError("Transition error");
2289
0
                return MsgValueError;
2290
0
            }
2291
0
            actor = AllocPStunAddrsRequestParent();
2292
0
            if ((!(actor))) {
2293
0
                NS_WARNING("Error constructing actor PStunAddrsRequestParent");
2294
0
                return MsgValueError;
2295
0
            }
2296
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2297
0
            (mManagedPStunAddrsRequestParent).PutEntry(actor);
2298
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2299
0
2300
0
            if ((!(RecvPStunAddrsRequestConstructor(actor)))) {
2301
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2302
0
                // Error handled in mozilla::ipc::IPCResult
2303
0
                return MsgProcessingError;
2304
0
            }
2305
0
2306
0
            return MsgProcessed;
2307
0
        }
2308
0
    case PNecko::Msg_GetExtensionStream__ID:
2309
0
        {
2310
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2311
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2312
0
            }
2313
0
            AUTO_PROFILER_LABEL("PNecko::Msg_GetExtensionStream", OTHER);
2314
0
2315
0
            PickleIterator iter__(msg__);
2316
0
            URIParams uri;
2317
0
2318
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(uri)))))) {
2319
0
                FatalError("Error deserializing 'URIParams'");
2320
0
                return MsgValueError;
2321
0
            }
2322
0
            // Sentinel = 'uri'
2323
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
2324
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
2325
0
                return MsgValueError;
2326
0
            }
2327
0
            (msg__).EndRead(iter__, (msg__).type());
2328
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2329
0
                FatalError("Transition error");
2330
0
                return MsgValueError;
2331
0
            }
2332
0
            int32_t id__ = Id();
2333
0
2334
0
            int32_t seqno__ = (msg__).seqno();
2335
0
            WeakPtr<PNeckoParent> self__ = this;
2336
0
            GetExtensionStreamResolver resolver = [this, self__, id__, seqno__](nsIInputStream* aParam) {
2337
0
                if ((!(self__))) {
2338
0
                    NS_WARNING("Not resolving response because actor is dead.");
2339
0
                    return;
2340
0
                }
2341
0
                if ((mLivenessState) == (mozilla::ipc::LivenessState::Dead)) {
2342
0
                    NS_WARNING("Not resolving response because actor is destroyed.");
2343
0
                    return;
2344
0
                }
2345
0
                bool resolve__ = true;
2346
0
                RefPtr<nsIInputStream> stream;
2347
0
                stream = std::move(aParam);
2348
0
                IPC::Message* reply__ = PNecko::Reply_GetExtensionStream(id__);
2349
0
                WriteIPDLParam(reply__, self__, resolve__);
2350
0
                // Sentinel = 'resolve__'
2351
0
                (reply__)->WriteSentinel(3997392463);
2352
0
                WriteIPDLParam(reply__, self__, stream);
2353
0
                // Sentinel = 'stream'
2354
0
                (reply__)->WriteSentinel(4152748422);
2355
0
                (reply__)->set_seqno(seqno__);
2356
0
2357
0
                if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2358
0
                    mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2359
0
                }
2360
0
                bool sendok__ = (GetIPCChannel())->Send(reply__);
2361
0
                if ((!(sendok__))) {
2362
0
                    NS_WARNING("Error sending reply");
2363
0
                }
2364
0
            };
2365
0
            if ((!(RecvGetExtensionStream(uri, std::move(resolver))))) {
2366
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2367
0
                // Error handled in mozilla::ipc::IPCResult
2368
0
                return MsgProcessingError;
2369
0
            }
2370
0
2371
0
            return MsgProcessed;
2372
0
        }
2373
0
    case PNecko::Msg_GetExtensionFD__ID:
2374
0
        {
2375
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2376
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2377
0
            }
2378
0
            AUTO_PROFILER_LABEL("PNecko::Msg_GetExtensionFD", OTHER);
2379
0
2380
0
            PickleIterator iter__(msg__);
2381
0
            URIParams uri;
2382
0
2383
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(uri)))))) {
2384
0
                FatalError("Error deserializing 'URIParams'");
2385
0
                return MsgValueError;
2386
0
            }
2387
0
            // Sentinel = 'uri'
2388
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
2389
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
2390
0
                return MsgValueError;
2391
0
            }
2392
0
            (msg__).EndRead(iter__, (msg__).type());
2393
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2394
0
                FatalError("Transition error");
2395
0
                return MsgValueError;
2396
0
            }
2397
0
            int32_t id__ = Id();
2398
0
2399
0
            int32_t seqno__ = (msg__).seqno();
2400
0
            WeakPtr<PNeckoParent> self__ = this;
2401
0
            GetExtensionFDResolver resolver = [this, self__, id__, seqno__](const FileDescriptor& aParam) {
2402
0
                if ((!(self__))) {
2403
0
                    NS_WARNING("Not resolving response because actor is dead.");
2404
0
                    return;
2405
0
                }
2406
0
                if ((mLivenessState) == (mozilla::ipc::LivenessState::Dead)) {
2407
0
                    NS_WARNING("Not resolving response because actor is destroyed.");
2408
0
                    return;
2409
0
                }
2410
0
                bool resolve__ = true;
2411
0
                FileDescriptor fd;
2412
0
                fd = std::move(aParam);
2413
0
                IPC::Message* reply__ = PNecko::Reply_GetExtensionFD(id__);
2414
0
                WriteIPDLParam(reply__, self__, resolve__);
2415
0
                // Sentinel = 'resolve__'
2416
0
                (reply__)->WriteSentinel(3997392463);
2417
0
                WriteIPDLParam(reply__, self__, fd);
2418
0
                // Sentinel = 'fd'
2419
0
                (reply__)->WriteSentinel(628535764);
2420
0
                (reply__)->set_seqno(seqno__);
2421
0
2422
0
                if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2423
0
                    mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2424
0
                }
2425
0
                bool sendok__ = (GetIPCChannel())->Send(reply__);
2426
0
                if ((!(sendok__))) {
2427
0
                    NS_WARNING("Error sending reply");
2428
0
                }
2429
0
            };
2430
0
            if ((!(RecvGetExtensionFD(uri, std::move(resolver))))) {
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 PNecko::Reply_PTransportProviderConstructor__ID:
2439
0
        {
2440
0
            return MsgProcessed;
2441
0
        }
2442
0
    case PNecko::Reply_PTCPSocketConstructor__ID:
2443
0
        {
2444
0
            return MsgProcessed;
2445
0
        }
2446
0
    case PNecko::Msg_PTCPSocketConstructor__ID:
2447
0
        {
2448
0
            if (mozilla::ipc::LoggingEnabledFor("PNeckoParent")) {
2449
0
                mozilla::ipc::LogMessageForProtocol("PNeckoParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2450
0
            }
2451
0
            AUTO_PROFILER_LABEL("PNecko::Msg_PTCPSocketConstructor", OTHER);
2452
0
2453
0
            PickleIterator iter__(msg__);
2454
0
            ActorHandle handle__;
2455
0
            PTCPSocketParent* actor;
2456
0
            nsString host;
2457
0
            uint16_t port;
2458
0
2459
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2460
0
                FatalError("Error deserializing 'ActorHandle'");
2461
0
                return MsgValueError;
2462
0
            }
2463
0
            // Sentinel = 'actor'
2464
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2465
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2466
0
                return MsgValueError;
2467
0
            }
2468
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(host)))))) {
2469
0
                FatalError("Error deserializing 'nsString'");
2470
0
                return MsgValueError;
2471
0
            }
2472
0
            // Sentinel = 'host'
2473
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4070301394)))) {
2474
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
2475
0
                return MsgValueError;
2476
0
            }
2477
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(port)))))) {
2478
0
                FatalError("Error deserializing 'uint16_t'");
2479
0
                return MsgValueError;
2480
0
            }
2481
0
            // Sentinel = 'port'
2482
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3633211549)))) {
2483
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint16_t'");
2484
0
                return MsgValueError;
2485
0
            }
2486
0
            (msg__).EndRead(iter__, (msg__).type());
2487
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
2488
0
                FatalError("Transition error");
2489
0
                return MsgValueError;
2490
0
            }
2491
0
            actor = AllocPTCPSocketParent(host, port);
2492
0
            if ((!(actor))) {
2493
0
                NS_WARNING("Error constructing actor PTCPSocketParent");
2494
0
                return MsgValueError;
2495
0
            }
2496
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2497
0
            (mManagedPTCPSocketParent).PutEntry(actor);
2498
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2499
0
2500
0
            if ((!(RecvPTCPSocketConstructor(actor, host, port)))) {
2501
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2502
0
                // Error handled in mozilla::ipc::IPCResult
2503
0
                return MsgProcessingError;
2504
0
            }
2505
0
2506
0
            return MsgProcessed;
2507
0
        }
2508
0
    default:
2509
0
        {
2510
0
            return MsgNotKnown;
2511
0
        }
2512
0
    }
2513
0
}
2514
2515
auto PNeckoParent::OnMessageReceived(
2516
        const Message& msg__,
2517
        Message*& reply__) -> PNeckoParent::Result
2518
0
{
2519
0
    return MsgNotKnown;
2520
0
}
2521
2522
auto PNeckoParent::OnCallReceived(
2523
        const Message& msg__,
2524
        Message*& reply__) -> PNeckoParent::Result
2525
0
{
2526
0
    MOZ_ASSERT_UNREACHABLE("message protocol not supported");
2527
0
    return MsgNotKnown;
2528
0
}
2529
2530
auto PNeckoParent::GetProtocolTypeId() -> int32_t
2531
0
{
2532
0
    return PNeckoMsgStart;
2533
0
}
2534
2535
auto PNeckoParent::DestroySubtree(ActorDestroyReason why) -> void
2536
0
{
2537
0
    // Unregister from our manager.
2538
0
    Unregister(Id());
2539
0
2540
0
    ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
2541
0
2542
0
    {
2543
0
        // Recursively shutting down PHttpChannel kids
2544
0
        nsTArray<PHttpChannelParent*> kids;
2545
0
        // Accumulate kids into a stable structure to iterate over
2546
0
        ManagedPHttpChannelParent(kids);
2547
0
        for (auto& kid : kids) {
2548
0
            // Guarding against a child removing a sibling from the list during the iteration.
2549
0
            if ((mManagedPHttpChannelParent).Contains(kid)) {
2550
0
                (kid)->DestroySubtree(subtreewhy);
2551
0
            }
2552
0
        }
2553
0
    }
2554
0
    {
2555
0
        // Recursively shutting down PCookieService kids
2556
0
        nsTArray<PCookieServiceParent*> kids;
2557
0
        // Accumulate kids into a stable structure to iterate over
2558
0
        ManagedPCookieServiceParent(kids);
2559
0
        for (auto& kid : kids) {
2560
0
            // Guarding against a child removing a sibling from the list during the iteration.
2561
0
            if ((mManagedPCookieServiceParent).Contains(kid)) {
2562
0
                (kid)->DestroySubtree(subtreewhy);
2563
0
            }
2564
0
        }
2565
0
    }
2566
0
    {
2567
0
        // Recursively shutting down PWyciwygChannel kids
2568
0
        nsTArray<PWyciwygChannelParent*> kids;
2569
0
        // Accumulate kids into a stable structure to iterate over
2570
0
        ManagedPWyciwygChannelParent(kids);
2571
0
        for (auto& kid : kids) {
2572
0
            // Guarding against a child removing a sibling from the list during the iteration.
2573
0
            if ((mManagedPWyciwygChannelParent).Contains(kid)) {
2574
0
                (kid)->DestroySubtree(subtreewhy);
2575
0
            }
2576
0
        }
2577
0
    }
2578
0
    {
2579
0
        // Recursively shutting down PFTPChannel kids
2580
0
        nsTArray<PFTPChannelParent*> kids;
2581
0
        // Accumulate kids into a stable structure to iterate over
2582
0
        ManagedPFTPChannelParent(kids);
2583
0
        for (auto& kid : kids) {
2584
0
            // Guarding against a child removing a sibling from the list during the iteration.
2585
0
            if ((mManagedPFTPChannelParent).Contains(kid)) {
2586
0
                (kid)->DestroySubtree(subtreewhy);
2587
0
            }
2588
0
        }
2589
0
    }
2590
0
    {
2591
0
        // Recursively shutting down PWebSocket kids
2592
0
        nsTArray<PWebSocketParent*> kids;
2593
0
        // Accumulate kids into a stable structure to iterate over
2594
0
        ManagedPWebSocketParent(kids);
2595
0
        for (auto& kid : kids) {
2596
0
            // Guarding against a child removing a sibling from the list during the iteration.
2597
0
            if ((mManagedPWebSocketParent).Contains(kid)) {
2598
0
                (kid)->DestroySubtree(subtreewhy);
2599
0
            }
2600
0
        }
2601
0
    }
2602
0
    {
2603
0
        // Recursively shutting down PWebSocketEventListener kids
2604
0
        nsTArray<PWebSocketEventListenerParent*> kids;
2605
0
        // Accumulate kids into a stable structure to iterate over
2606
0
        ManagedPWebSocketEventListenerParent(kids);
2607
0
        for (auto& kid : kids) {
2608
0
            // Guarding against a child removing a sibling from the list during the iteration.
2609
0
            if ((mManagedPWebSocketEventListenerParent).Contains(kid)) {
2610
0
                (kid)->DestroySubtree(subtreewhy);
2611
0
            }
2612
0
        }
2613
0
    }
2614
0
    {
2615
0
        // Recursively shutting down PTCPSocket kids
2616
0
        nsTArray<PTCPSocketParent*> kids;
2617
0
        // Accumulate kids into a stable structure to iterate over
2618
0
        ManagedPTCPSocketParent(kids);
2619
0
        for (auto& kid : kids) {
2620
0
            // Guarding against a child removing a sibling from the list during the iteration.
2621
0
            if ((mManagedPTCPSocketParent).Contains(kid)) {
2622
0
                (kid)->DestroySubtree(subtreewhy);
2623
0
            }
2624
0
        }
2625
0
    }
2626
0
    {
2627
0
        // Recursively shutting down PTCPServerSocket kids
2628
0
        nsTArray<PTCPServerSocketParent*> kids;
2629
0
        // Accumulate kids into a stable structure to iterate over
2630
0
        ManagedPTCPServerSocketParent(kids);
2631
0
        for (auto& kid : kids) {
2632
0
            // Guarding against a child removing a sibling from the list during the iteration.
2633
0
            if ((mManagedPTCPServerSocketParent).Contains(kid)) {
2634
0
                (kid)->DestroySubtree(subtreewhy);
2635
0
            }
2636
0
        }
2637
0
    }
2638
0
    {
2639
0
        // Recursively shutting down PUDPSocket kids
2640
0
        nsTArray<PUDPSocketParent*> kids;
2641
0
        // Accumulate kids into a stable structure to iterate over
2642
0
        ManagedPUDPSocketParent(kids);
2643
0
        for (auto& kid : kids) {
2644
0
            // Guarding against a child removing a sibling from the list during the iteration.
2645
0
            if ((mManagedPUDPSocketParent).Contains(kid)) {
2646
0
                (kid)->DestroySubtree(subtreewhy);
2647
0
            }
2648
0
        }
2649
0
    }
2650
0
    {
2651
0
        // Recursively shutting down PDNSRequest kids
2652
0
        nsTArray<PDNSRequestParent*> kids;
2653
0
        // Accumulate kids into a stable structure to iterate over
2654
0
        ManagedPDNSRequestParent(kids);
2655
0
        for (auto& kid : kids) {
2656
0
            // Guarding against a child removing a sibling from the list during the iteration.
2657
0
            if ((mManagedPDNSRequestParent).Contains(kid)) {
2658
0
                (kid)->DestroySubtree(subtreewhy);
2659
0
            }
2660
0
        }
2661
0
    }
2662
0
    {
2663
0
        // Recursively shutting down PDataChannel kids
2664
0
        nsTArray<PDataChannelParent*> kids;
2665
0
        // Accumulate kids into a stable structure to iterate over
2666
0
        ManagedPDataChannelParent(kids);
2667
0
        for (auto& kid : kids) {
2668
0
            // Guarding against a child removing a sibling from the list during the iteration.
2669
0
            if ((mManagedPDataChannelParent).Contains(kid)) {
2670
0
                (kid)->DestroySubtree(subtreewhy);
2671
0
            }
2672
0
        }
2673
0
    }
2674
0
    {
2675
0
        // Recursively shutting down PSimpleChannel kids
2676
0
        nsTArray<PSimpleChannelParent*> kids;
2677
0
        // Accumulate kids into a stable structure to iterate over
2678
0
        ManagedPSimpleChannelParent(kids);
2679
0
        for (auto& kid : kids) {
2680
0
            // Guarding against a child removing a sibling from the list during the iteration.
2681
0
            if ((mManagedPSimpleChannelParent).Contains(kid)) {
2682
0
                (kid)->DestroySubtree(subtreewhy);
2683
0
            }
2684
0
        }
2685
0
    }
2686
0
    {
2687
0
        // Recursively shutting down PFileChannel kids
2688
0
        nsTArray<PFileChannelParent*> kids;
2689
0
        // Accumulate kids into a stable structure to iterate over
2690
0
        ManagedPFileChannelParent(kids);
2691
0
        for (auto& kid : kids) {
2692
0
            // Guarding against a child removing a sibling from the list during the iteration.
2693
0
            if ((mManagedPFileChannelParent).Contains(kid)) {
2694
0
                (kid)->DestroySubtree(subtreewhy);
2695
0
            }
2696
0
        }
2697
0
    }
2698
0
    {
2699
0
        // Recursively shutting down PChannelDiverter kids
2700
0
        nsTArray<PChannelDiverterParent*> kids;
2701
0
        // Accumulate kids into a stable structure to iterate over
2702
0
        ManagedPChannelDiverterParent(kids);
2703
0
        for (auto& kid : kids) {
2704
0
            // Guarding against a child removing a sibling from the list during the iteration.
2705
0
            if ((mManagedPChannelDiverterParent).Contains(kid)) {
2706
0
                (kid)->DestroySubtree(subtreewhy);
2707
0
            }
2708
0
        }
2709
0
    }
2710
0
    {
2711
0
        // Recursively shutting down PTransportProvider kids
2712
0
        nsTArray<PTransportProviderParent*> kids;
2713
0
        // Accumulate kids into a stable structure to iterate over
2714
0
        ManagedPTransportProviderParent(kids);
2715
0
        for (auto& kid : kids) {
2716
0
            // Guarding against a child removing a sibling from the list during the iteration.
2717
0
            if ((mManagedPTransportProviderParent).Contains(kid)) {
2718
0
                (kid)->DestroySubtree(subtreewhy);
2719
0
            }
2720
0
        }
2721
0
    }
2722
0
    {
2723
0
        // Recursively shutting down PAltDataOutputStream kids
2724
0
        nsTArray<PAltDataOutputStreamParent*> kids;
2725
0
        // Accumulate kids into a stable structure to iterate over
2726
0
        ManagedPAltDataOutputStreamParent(kids);
2727
0
        for (auto& kid : kids) {
2728
0
            // Guarding against a child removing a sibling from the list during the iteration.
2729
0
            if ((mManagedPAltDataOutputStreamParent).Contains(kid)) {
2730
0
                (kid)->DestroySubtree(subtreewhy);
2731
0
            }
2732
0
        }
2733
0
    }
2734
0
    {
2735
0
        // Recursively shutting down PStunAddrsRequest kids
2736
0
        nsTArray<PStunAddrsRequestParent*> kids;
2737
0
        // Accumulate kids into a stable structure to iterate over
2738
0
        ManagedPStunAddrsRequestParent(kids);
2739
0
        for (auto& kid : kids) {
2740
0
            // Guarding against a child removing a sibling from the list during the iteration.
2741
0
            if ((mManagedPStunAddrsRequestParent).Contains(kid)) {
2742
0
                (kid)->DestroySubtree(subtreewhy);
2743
0
            }
2744
0
        }
2745
0
    }
2746
0
2747
0
    // Reject owning pending responses.
2748
0
    (GetIPCChannel())->RejectPendingResponsesForActor(this);
2749
0
2750
0
    // Finally, destroy "us".
2751
0
    ActorDestroy(why);
2752
0
}
2753
2754
auto PNeckoParent::DeallocSubtree() -> void
2755
0
{
2756
0
    {
2757
0
        // Recursively deleting PHttpChannel kids
2758
0
        for (auto iter = (mManagedPHttpChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2759
0
            (((iter).Get())->GetKey())->DeallocSubtree();
2760
0
        }
2761
0
2762
0
        for (auto iter = (mManagedPHttpChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2763
0
            DeallocPHttpChannelParent(((iter).Get())->GetKey());
2764
0
        }
2765
0
        (mManagedPHttpChannelParent).Clear();
2766
0
    }
2767
0
    {
2768
0
        // Recursively deleting PCookieService kids
2769
0
        for (auto iter = (mManagedPCookieServiceParent).Iter(); (!((iter).Done())); (iter).Next()) {
2770
0
            (((iter).Get())->GetKey())->DeallocSubtree();
2771
0
        }
2772
0
2773
0
        for (auto iter = (mManagedPCookieServiceParent).Iter(); (!((iter).Done())); (iter).Next()) {
2774
0
            DeallocPCookieServiceParent(((iter).Get())->GetKey());
2775
0
        }
2776
0
        (mManagedPCookieServiceParent).Clear();
2777
0
    }
2778
0
    {
2779
0
        // Recursively deleting PWyciwygChannel kids
2780
0
        for (auto iter = (mManagedPWyciwygChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2781
0
            (((iter).Get())->GetKey())->DeallocSubtree();
2782
0
        }
2783
0
2784
0
        for (auto iter = (mManagedPWyciwygChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2785
0
            DeallocPWyciwygChannelParent(((iter).Get())->GetKey());
2786
0
        }
2787
0
        (mManagedPWyciwygChannelParent).Clear();
2788
0
    }
2789
0
    {
2790
0
        // Recursively deleting PFTPChannel kids
2791
0
        for (auto iter = (mManagedPFTPChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2792
0
            (((iter).Get())->GetKey())->DeallocSubtree();
2793
0
        }
2794
0
2795
0
        for (auto iter = (mManagedPFTPChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2796
0
            DeallocPFTPChannelParent(((iter).Get())->GetKey());
2797
0
        }
2798
0
        (mManagedPFTPChannelParent).Clear();
2799
0
    }
2800
0
    {
2801
0
        // Recursively deleting PWebSocket kids
2802
0
        for (auto iter = (mManagedPWebSocketParent).Iter(); (!((iter).Done())); (iter).Next()) {
2803
0
            (((iter).Get())->GetKey())->DeallocSubtree();
2804
0
        }
2805
0
2806
0
        for (auto iter = (mManagedPWebSocketParent).Iter(); (!((iter).Done())); (iter).Next()) {
2807
0
            DeallocPWebSocketParent(((iter).Get())->GetKey());
2808
0
        }
2809
0
        (mManagedPWebSocketParent).Clear();
2810
0
    }
2811
0
    {
2812
0
        // Recursively deleting PWebSocketEventListener kids
2813
0
        for (auto iter = (mManagedPWebSocketEventListenerParent).Iter(); (!((iter).Done())); (iter).Next()) {
2814
0
            (((iter).Get())->GetKey())->DeallocSubtree();
2815
0
        }
2816
0
2817
0
        for (auto iter = (mManagedPWebSocketEventListenerParent).Iter(); (!((iter).Done())); (iter).Next()) {
2818
0
            DeallocPWebSocketEventListenerParent(((iter).Get())->GetKey());
2819
0
        }
2820
0
        (mManagedPWebSocketEventListenerParent).Clear();
2821
0
    }
2822
0
    {
2823
0
        // Recursively deleting PTCPSocket kids
2824
0
        for (auto iter = (mManagedPTCPSocketParent).Iter(); (!((iter).Done())); (iter).Next()) {
2825
0
            (((iter).Get())->GetKey())->DeallocSubtree();
2826
0
        }
2827
0
2828
0
        for (auto iter = (mManagedPTCPSocketParent).Iter(); (!((iter).Done())); (iter).Next()) {
2829
0
            DeallocPTCPSocketParent(((iter).Get())->GetKey());
2830
0
        }
2831
0
        (mManagedPTCPSocketParent).Clear();
2832
0
    }
2833
0
    {
2834
0
        // Recursively deleting PTCPServerSocket kids
2835
0
        for (auto iter = (mManagedPTCPServerSocketParent).Iter(); (!((iter).Done())); (iter).Next()) {
2836
0
            (((iter).Get())->GetKey())->DeallocSubtree();
2837
0
        }
2838
0
2839
0
        for (auto iter = (mManagedPTCPServerSocketParent).Iter(); (!((iter).Done())); (iter).Next()) {
2840
0
            DeallocPTCPServerSocketParent(((iter).Get())->GetKey());
2841
0
        }
2842
0
        (mManagedPTCPServerSocketParent).Clear();
2843
0
    }
2844
0
    {
2845
0
        // Recursively deleting PUDPSocket kids
2846
0
        for (auto iter = (mManagedPUDPSocketParent).Iter(); (!((iter).Done())); (iter).Next()) {
2847
0
            (((iter).Get())->GetKey())->DeallocSubtree();
2848
0
        }
2849
0
2850
0
        for (auto iter = (mManagedPUDPSocketParent).Iter(); (!((iter).Done())); (iter).Next()) {
2851
0
            DeallocPUDPSocketParent(((iter).Get())->GetKey());
2852
0
        }
2853
0
        (mManagedPUDPSocketParent).Clear();
2854
0
    }
2855
0
    {
2856
0
        // Recursively deleting PDNSRequest kids
2857
0
        for (auto iter = (mManagedPDNSRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
2858
0
            (((iter).Get())->GetKey())->DeallocSubtree();
2859
0
        }
2860
0
2861
0
        for (auto iter = (mManagedPDNSRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
2862
0
            DeallocPDNSRequestParent(((iter).Get())->GetKey());
2863
0
        }
2864
0
        (mManagedPDNSRequestParent).Clear();
2865
0
    }
2866
0
    {
2867
0
        // Recursively deleting PDataChannel kids
2868
0
        for (auto iter = (mManagedPDataChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2869
0
            (((iter).Get())->GetKey())->DeallocSubtree();
2870
0
        }
2871
0
2872
0
        for (auto iter = (mManagedPDataChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2873
0
            DeallocPDataChannelParent(((iter).Get())->GetKey());
2874
0
        }
2875
0
        (mManagedPDataChannelParent).Clear();
2876
0
    }
2877
0
    {
2878
0
        // Recursively deleting PSimpleChannel kids
2879
0
        for (auto iter = (mManagedPSimpleChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2880
0
            (((iter).Get())->GetKey())->DeallocSubtree();
2881
0
        }
2882
0
2883
0
        for (auto iter = (mManagedPSimpleChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2884
0
            DeallocPSimpleChannelParent(((iter).Get())->GetKey());
2885
0
        }
2886
0
        (mManagedPSimpleChannelParent).Clear();
2887
0
    }
2888
0
    {
2889
0
        // Recursively deleting PFileChannel kids
2890
0
        for (auto iter = (mManagedPFileChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2891
0
            (((iter).Get())->GetKey())->DeallocSubtree();
2892
0
        }
2893
0
2894
0
        for (auto iter = (mManagedPFileChannelParent).Iter(); (!((iter).Done())); (iter).Next()) {
2895
0
            DeallocPFileChannelParent(((iter).Get())->GetKey());
2896
0
        }
2897
0
        (mManagedPFileChannelParent).Clear();
2898
0
    }
2899
0
    {
2900
0
        // Recursively deleting PChannelDiverter kids
2901
0
        for (auto iter = (mManagedPChannelDiverterParent).Iter(); (!((iter).Done())); (iter).Next()) {
2902
0
            (((iter).Get())->GetKey())->DeallocSubtree();
2903
0
        }
2904
0
2905
0
        for (auto iter = (mManagedPChannelDiverterParent).Iter(); (!((iter).Done())); (iter).Next()) {
2906
0
            DeallocPChannelDiverterParent(((iter).Get())->GetKey());
2907
0
        }
2908
0
        (mManagedPChannelDiverterParent).Clear();
2909
0
    }
2910
0
    {
2911
0
        // Recursively deleting PTransportProvider kids
2912
0
        for (auto iter = (mManagedPTransportProviderParent).Iter(); (!((iter).Done())); (iter).Next()) {
2913
0
            (((iter).Get())->GetKey())->DeallocSubtree();
2914
0
        }
2915
0
2916
0
        for (auto iter = (mManagedPTransportProviderParent).Iter(); (!((iter).Done())); (iter).Next()) {
2917
0
            DeallocPTransportProviderParent(((iter).Get())->GetKey());
2918
0
        }
2919
0
        (mManagedPTransportProviderParent).Clear();
2920
0
    }
2921
0
    {
2922
0
        // Recursively deleting PAltDataOutputStream kids
2923
0
        for (auto iter = (mManagedPAltDataOutputStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
2924
0
            (((iter).Get())->GetKey())->DeallocSubtree();
2925
0
        }
2926
0
2927
0
        for (auto iter = (mManagedPAltDataOutputStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
2928
0
            DeallocPAltDataOutputStreamParent(((iter).Get())->GetKey());
2929
0
        }
2930
0
        (mManagedPAltDataOutputStreamParent).Clear();
2931
0
    }
2932
0
    {
2933
0
        // Recursively deleting PStunAddrsRequest kids
2934
0
        for (auto iter = (mManagedPStunAddrsRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
2935
0
            (((iter).Get())->GetKey())->DeallocSubtree();
2936
0
        }
2937
0
2938
0
        for (auto iter = (mManagedPStunAddrsRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
2939
0
            DeallocPStunAddrsRequestParent(((iter).Get())->GetKey());
2940
0
        }
2941
0
        (mManagedPStunAddrsRequestParent).Clear();
2942
0
    }
2943
0
}
2944
2945
2946
2947
} // namespace net
2948
} // namespace mozilla
2949
namespace mozilla {
2950
namespace ipc {
2951
auto IPDLParamTraits<mozilla::net::PNeckoParent>::Write(
2952
        IPC::Message* aMsg,
2953
        mozilla::ipc::IProtocol* aActor,
2954
        const paramType& aVar) -> void
2955
0
{
2956
0
    int32_t id;
2957
0
    if ((!(aVar))) {
2958
0
        id = 0;
2959
0
    }
2960
0
    else {
2961
0
        id = (aVar)->Id();
2962
0
        if ((1) == (id)) {
2963
0
            (aActor)->FatalError("actor has been |delete|d");
2964
0
        }
2965
0
    }
2966
0
    WriteIPDLParam(aMsg, aActor, id);
2967
0
}
2968
2969
auto IPDLParamTraits<mozilla::net::PNeckoParent>::Read(
2970
        const IPC::Message* aMsg,
2971
        PickleIterator* aIter,
2972
        mozilla::ipc::IProtocol* aActor,
2973
        paramType* aVar) -> bool
2974
0
{
2975
0
    mozilla::Maybe<mozilla::ipc::IProtocol*> actor = (aActor)->ReadActor(aMsg, aIter, true, "PNecko", PNeckoMsgStart);
2976
0
    if ((actor).isNothing()) {
2977
0
        return false;
2978
0
    }
2979
0
2980
0
    (*(aVar)) = static_cast<mozilla::net::PNeckoParent*>((actor).value());
2981
0
    return true;
2982
0
}
2983
2984
} // namespace ipc
2985
} // namespace mozilla