Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/PHttpChannelParent.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/PHttpChannelParent.h"
8
#include "mozilla/net/TimingStruct.h"
9
#include "nsHttpHeaderArray.h"
10
11
#include "mozilla/net/PNeckoParent.h"
12
#include "mozilla/extensions/PStreamFilterParent.h"
13
14
#include "nsIFile.h"
15
#include "GeckoProfiler.h"
16
17
namespace mozilla {
18
namespace net {
19
20
21
auto PHttpChannelParent::Recv__delete__() -> mozilla::ipc::IPCResult
22
0
{
23
0
    return IPC_OK();
24
0
}
25
26
auto PHttpChannelParent::ActorDestroy(ActorDestroyReason aWhy) -> void
27
0
{
28
0
}
29
30
MOZ_IMPLICIT PHttpChannelParent::PHttpChannelParent() :
31
    mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
32
    mLivenessState(mozilla::ipc::LivenessState::Dead)
33
0
{
34
0
    MOZ_COUNT_CTOR(PHttpChannelParent);
35
0
}
36
37
PHttpChannelParent::~PHttpChannelParent()
38
0
{
39
0
    MOZ_COUNT_DTOR(PHttpChannelParent);
40
0
}
41
42
auto PHttpChannelParent::Manager() const -> PNeckoParent*
43
0
{
44
0
    return static_cast<PNeckoParent*>(IProtocol::Manager());
45
0
}
46
47
auto PHttpChannelParent::SendOnStartRequest(
48
        const nsresult& channelStatus,
49
        const nsHttpResponseHead& responseHead,
50
        const bool& useResponseHead,
51
        const nsHttpHeaderArray& requestHeaders,
52
        const ParentLoadInfoForwarderArgs& loadInfoForwarder,
53
        const bool& isFromCache,
54
        const bool& cacheEntryAvailable,
55
        const uint64_t& cacheEntryId,
56
        const int32_t& cacheFetchCount,
57
        const uint32_t& cacheExpirationTime,
58
        const nsCString& cachedCharset,
59
        const nsCString& securityInfoSerialization,
60
        const NetAddr& selfAddr,
61
        const NetAddr& peerAddr,
62
        const int16_t& redirectCount,
63
        const uint32_t& cacheKey,
64
        const nsCString& altDataType,
65
        const int64_t& altDataLength,
66
        const bool& applyConversion,
67
        const ResourceTimingStruct& timing) -> bool
68
0
{
69
0
    IPC::Message* msg__ = PHttpChannel::Msg_OnStartRequest(Id());
70
0
71
0
    WriteIPDLParam(msg__, this, channelStatus);
72
0
    // Sentinel = 'channelStatus'
73
0
    (msg__)->WriteSentinel(3148019746);
74
0
    WriteIPDLParam(msg__, this, responseHead);
75
0
    // Sentinel = 'responseHead'
76
0
    (msg__)->WriteSentinel(3038698187);
77
0
    WriteIPDLParam(msg__, this, useResponseHead);
78
0
    // Sentinel = 'useResponseHead'
79
0
    (msg__)->WriteSentinel(2994626489);
80
0
    WriteIPDLParam(msg__, this, requestHeaders);
81
0
    // Sentinel = 'requestHeaders'
82
0
    (msg__)->WriteSentinel(2055989545);
83
0
    WriteIPDLParam(msg__, this, loadInfoForwarder);
84
0
    // Sentinel = 'loadInfoForwarder'
85
0
    (msg__)->WriteSentinel(2195128043);
86
0
    WriteIPDLParam(msg__, this, isFromCache);
87
0
    // Sentinel = 'isFromCache'
88
0
    (msg__)->WriteSentinel(4089953117);
89
0
    WriteIPDLParam(msg__, this, cacheEntryAvailable);
90
0
    // Sentinel = 'cacheEntryAvailable'
91
0
    (msg__)->WriteSentinel(2363064);
92
0
    WriteIPDLParam(msg__, this, cacheEntryId);
93
0
    // Sentinel = 'cacheEntryId'
94
0
    (msg__)->WriteSentinel(3383493417);
95
0
    WriteIPDLParam(msg__, this, cacheFetchCount);
96
0
    // Sentinel = 'cacheFetchCount'
97
0
    (msg__)->WriteSentinel(2824496928);
98
0
    WriteIPDLParam(msg__, this, cacheExpirationTime);
99
0
    // Sentinel = 'cacheExpirationTime'
100
0
    (msg__)->WriteSentinel(439162213);
101
0
    WriteIPDLParam(msg__, this, cachedCharset);
102
0
    // Sentinel = 'cachedCharset'
103
0
    (msg__)->WriteSentinel(1570160399);
104
0
    WriteIPDLParam(msg__, this, securityInfoSerialization);
105
0
    // Sentinel = 'securityInfoSerialization'
106
0
    (msg__)->WriteSentinel(985832975);
107
0
    WriteIPDLParam(msg__, this, selfAddr);
108
0
    // Sentinel = 'selfAddr'
109
0
    (msg__)->WriteSentinel(463888251);
110
0
    WriteIPDLParam(msg__, this, peerAddr);
111
0
    // Sentinel = 'peerAddr'
112
0
    (msg__)->WriteSentinel(1373265573);
113
0
    WriteIPDLParam(msg__, this, redirectCount);
114
0
    // Sentinel = 'redirectCount'
115
0
    (msg__)->WriteSentinel(1874411984);
116
0
    WriteIPDLParam(msg__, this, cacheKey);
117
0
    // Sentinel = 'cacheKey'
118
0
    (msg__)->WriteSentinel(249191363);
119
0
    WriteIPDLParam(msg__, this, altDataType);
120
0
    // Sentinel = 'altDataType'
121
0
    (msg__)->WriteSentinel(2339988114);
122
0
    WriteIPDLParam(msg__, this, altDataLength);
123
0
    // Sentinel = 'altDataLength'
124
0
    (msg__)->WriteSentinel(2685793220);
125
0
    WriteIPDLParam(msg__, this, applyConversion);
126
0
    // Sentinel = 'applyConversion'
127
0
    (msg__)->WriteSentinel(2539641483);
128
0
    WriteIPDLParam(msg__, this, timing);
129
0
    // Sentinel = 'timing'
130
0
    (msg__)->WriteSentinel(3852786776);
131
0
132
0
133
0
134
0
135
0
    if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
136
0
        mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
137
0
    }
138
0
    AUTO_PROFILER_LABEL("PHttpChannel::Msg_OnStartRequest", OTHER);
139
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
140
0
        mozilla::ipc::LogicError("Transition error");
141
0
    }
142
0
143
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
144
0
    return sendok__;
145
0
}
146
147
auto PHttpChannelParent::SendFailedAsyncOpen(const nsresult& status) -> bool
148
0
{
149
0
    IPC::Message* msg__ = PHttpChannel::Msg_FailedAsyncOpen(Id());
150
0
151
0
    WriteIPDLParam(msg__, this, status);
152
0
    // Sentinel = 'status'
153
0
    (msg__)->WriteSentinel(3714608576);
154
0
155
0
156
0
157
0
158
0
    if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
159
0
        mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
160
0
    }
161
0
    AUTO_PROFILER_LABEL("PHttpChannel::Msg_FailedAsyncOpen", OTHER);
162
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
163
0
        mozilla::ipc::LogicError("Transition error");
164
0
    }
165
0
166
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
167
0
    return sendok__;
168
0
}
169
170
auto PHttpChannelParent::SendRedirect1Begin(
171
        const uint32_t& registrarId,
172
        const URIParams& newOriginalUri,
173
        const uint32_t& newLoadFlags,
174
        const uint32_t& redirectFlags,
175
        const ParentLoadInfoForwarderArgs& loadInfoForwarder,
176
        const nsHttpResponseHead& responseHead,
177
        const nsCString& securityInfoSerialization,
178
        const uint64_t& channelId,
179
        const NetAddr& oldPeerAddr) -> bool
180
0
{
181
0
    IPC::Message* msg__ = PHttpChannel::Msg_Redirect1Begin(Id());
182
0
183
0
    WriteIPDLParam(msg__, this, registrarId);
184
0
    // Sentinel = 'registrarId'
185
0
    (msg__)->WriteSentinel(3202787989);
186
0
    WriteIPDLParam(msg__, this, newOriginalUri);
187
0
    // Sentinel = 'newOriginalUri'
188
0
    (msg__)->WriteSentinel(361019297);
189
0
    WriteIPDLParam(msg__, this, newLoadFlags);
190
0
    // Sentinel = 'newLoadFlags'
191
0
    (msg__)->WriteSentinel(2873639103);
192
0
    WriteIPDLParam(msg__, this, redirectFlags);
193
0
    // Sentinel = 'redirectFlags'
194
0
    (msg__)->WriteSentinel(286770900);
195
0
    WriteIPDLParam(msg__, this, loadInfoForwarder);
196
0
    // Sentinel = 'loadInfoForwarder'
197
0
    (msg__)->WriteSentinel(2195128043);
198
0
    WriteIPDLParam(msg__, this, responseHead);
199
0
    // Sentinel = 'responseHead'
200
0
    (msg__)->WriteSentinel(3038698187);
201
0
    WriteIPDLParam(msg__, this, securityInfoSerialization);
202
0
    // Sentinel = 'securityInfoSerialization'
203
0
    (msg__)->WriteSentinel(985832975);
204
0
    WriteIPDLParam(msg__, this, channelId);
205
0
    // Sentinel = 'channelId'
206
0
    (msg__)->WriteSentinel(6854027);
207
0
    WriteIPDLParam(msg__, this, oldPeerAddr);
208
0
    // Sentinel = 'oldPeerAddr'
209
0
    (msg__)->WriteSentinel(1696652009);
210
0
211
0
212
0
213
0
214
0
    if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
215
0
        mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
216
0
    }
217
0
    AUTO_PROFILER_LABEL("PHttpChannel::Msg_Redirect1Begin", OTHER);
218
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
219
0
        mozilla::ipc::LogicError("Transition error");
220
0
    }
221
0
222
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
223
0
    return sendok__;
224
0
}
225
226
auto PHttpChannelParent::SendRedirect3Complete() -> bool
227
0
{
228
0
    IPC::Message* msg__ = PHttpChannel::Msg_Redirect3Complete(Id());
229
0
230
0
231
0
232
0
233
0
234
0
    if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
235
0
        mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
236
0
    }
237
0
    AUTO_PROFILER_LABEL("PHttpChannel::Msg_Redirect3Complete", OTHER);
238
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
239
0
        mozilla::ipc::LogicError("Transition error");
240
0
    }
241
0
242
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
243
0
    return sendok__;
244
0
}
245
246
auto PHttpChannelParent::SendAssociateApplicationCache(
247
        const nsCString& groupID,
248
        const nsCString& clientID) -> bool
249
0
{
250
0
    IPC::Message* msg__ = PHttpChannel::Msg_AssociateApplicationCache(Id());
251
0
252
0
    WriteIPDLParam(msg__, this, groupID);
253
0
    // Sentinel = 'groupID'
254
0
    (msg__)->WriteSentinel(2673822077);
255
0
    WriteIPDLParam(msg__, this, clientID);
256
0
    // Sentinel = 'clientID'
257
0
    (msg__)->WriteSentinel(3831418318);
258
0
259
0
260
0
261
0
262
0
    if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
263
0
        mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
264
0
    }
265
0
    AUTO_PROFILER_LABEL("PHttpChannel::Msg_AssociateApplicationCache", OTHER);
266
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
267
0
        mozilla::ipc::LogicError("Transition error");
268
0
    }
269
0
270
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
271
0
    return sendok__;
272
0
}
273
274
auto PHttpChannelParent::SendReportSecurityMessage(
275
        const nsString& messageTag,
276
        const nsString& messageCategory) -> bool
277
0
{
278
0
    IPC::Message* msg__ = PHttpChannel::Msg_ReportSecurityMessage(Id());
279
0
280
0
    WriteIPDLParam(msg__, this, messageTag);
281
0
    // Sentinel = 'messageTag'
282
0
    (msg__)->WriteSentinel(1576364117);
283
0
    WriteIPDLParam(msg__, this, messageCategory);
284
0
    // Sentinel = 'messageCategory'
285
0
    (msg__)->WriteSentinel(3375428022);
286
0
287
0
288
0
289
0
290
0
    if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
291
0
        mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
292
0
    }
293
0
    AUTO_PROFILER_LABEL("PHttpChannel::Msg_ReportSecurityMessage", OTHER);
294
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
295
0
        mozilla::ipc::LogicError("Transition error");
296
0
    }
297
0
298
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
299
0
    return sendok__;
300
0
}
301
302
auto PHttpChannelParent::SendCancelRedirected() -> bool
303
0
{
304
0
    IPC::Message* msg__ = PHttpChannel::Msg_CancelRedirected(Id());
305
0
306
0
307
0
308
0
309
0
310
0
    if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
311
0
        mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
312
0
    }
313
0
    AUTO_PROFILER_LABEL("PHttpChannel::Msg_CancelRedirected", OTHER);
314
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
315
0
        mozilla::ipc::LogicError("Transition error");
316
0
    }
317
0
318
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
319
0
    return sendok__;
320
0
}
321
322
auto PHttpChannelParent::SendDeleteSelf() -> bool
323
0
{
324
0
    IPC::Message* msg__ = PHttpChannel::Msg_DeleteSelf(Id());
325
0
326
0
327
0
328
0
329
0
330
0
    if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
331
0
        mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
332
0
    }
333
0
    AUTO_PROFILER_LABEL("PHttpChannel::Msg_DeleteSelf", OTHER);
334
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
335
0
        mozilla::ipc::LogicError("Transition error");
336
0
    }
337
0
338
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
339
0
    return sendok__;
340
0
}
341
342
auto PHttpChannelParent::SendIssueDeprecationWarning(
343
        const uint32_t& warning,
344
        const bool& asError) -> bool
345
0
{
346
0
    IPC::Message* msg__ = PHttpChannel::Msg_IssueDeprecationWarning(Id());
347
0
348
0
    WriteIPDLParam(msg__, this, warning);
349
0
    // Sentinel = 'warning'
350
0
    (msg__)->WriteSentinel(3208968083);
351
0
    WriteIPDLParam(msg__, this, asError);
352
0
    // Sentinel = 'asError'
353
0
    (msg__)->WriteSentinel(4187201829);
354
0
355
0
356
0
357
0
358
0
    if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
359
0
        mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
360
0
    }
361
0
    AUTO_PROFILER_LABEL("PHttpChannel::Msg_IssueDeprecationWarning", OTHER);
362
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
363
0
        mozilla::ipc::LogicError("Transition error");
364
0
    }
365
0
366
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
367
0
    return sendok__;
368
0
}
369
370
auto PHttpChannelParent::SendLogBlockedCORSRequest(
371
        const nsString& message,
372
        const nsCString& category) -> bool
373
0
{
374
0
    IPC::Message* msg__ = PHttpChannel::Msg_LogBlockedCORSRequest(Id());
375
0
376
0
    WriteIPDLParam(msg__, this, message);
377
0
    // Sentinel = 'message'
378
0
    (msg__)->WriteSentinel(1366108954);
379
0
    WriteIPDLParam(msg__, this, category);
380
0
    // Sentinel = 'category'
381
0
    (msg__)->WriteSentinel(1962932896);
382
0
383
0
384
0
385
0
386
0
    if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
387
0
        mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
388
0
    }
389
0
    AUTO_PROFILER_LABEL("PHttpChannel::Msg_LogBlockedCORSRequest", OTHER);
390
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
391
0
        mozilla::ipc::LogicError("Transition error");
392
0
    }
393
0
394
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
395
0
    return sendok__;
396
0
}
397
398
auto PHttpChannelParent::SendAttachStreamFilter(const Endpoint<mozilla::extensions::PStreamFilterParent>& aEndpoint) -> bool
399
0
{
400
0
    IPC::Message* msg__ = PHttpChannel::Msg_AttachStreamFilter(Id());
401
0
402
0
    WriteIPDLParam(msg__, this, aEndpoint);
403
0
    // Sentinel = 'aEndpoint'
404
0
    (msg__)->WriteSentinel(2457438235);
405
0
406
0
407
0
408
0
409
0
    if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
410
0
        mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
411
0
    }
412
0
    AUTO_PROFILER_LABEL("PHttpChannel::Msg_AttachStreamFilter", OTHER);
413
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
414
0
        mozilla::ipc::LogicError("Transition error");
415
0
    }
416
0
417
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
418
0
    return sendok__;
419
0
}
420
421
auto PHttpChannelParent::SendCancelDiversion() -> bool
422
0
{
423
0
    IPC::Message* msg__ = PHttpChannel::Msg_CancelDiversion(Id());
424
0
425
0
426
0
427
0
428
0
429
0
    if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
430
0
        mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
431
0
    }
432
0
    AUTO_PROFILER_LABEL("PHttpChannel::Msg_CancelDiversion", OTHER);
433
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
434
0
        mozilla::ipc::LogicError("Transition error");
435
0
    }
436
0
437
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
438
0
    return sendok__;
439
0
}
440
441
auto PHttpChannelParent::SendFinishInterceptedRedirect() -> bool
442
0
{
443
0
    IPC::Message* msg__ = PHttpChannel::Msg_FinishInterceptedRedirect(Id());
444
0
445
0
446
0
447
0
448
0
449
0
    if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
450
0
        mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
451
0
    }
452
0
    AUTO_PROFILER_LABEL("PHttpChannel::Msg_FinishInterceptedRedirect", OTHER);
453
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
454
0
        mozilla::ipc::LogicError("Transition error");
455
0
    }
456
0
457
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
458
0
    return sendok__;
459
0
}
460
461
auto PHttpChannelParent::SendSetPriority(const int16_t& priority) -> bool
462
0
{
463
0
    IPC::Message* msg__ = PHttpChannel::Msg_SetPriority(Id());
464
0
465
0
    WriteIPDLParam(msg__, this, priority);
466
0
    // Sentinel = 'priority'
467
0
    (msg__)->WriteSentinel(558136112);
468
0
469
0
470
0
471
0
472
0
    if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
473
0
        mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
474
0
    }
475
0
    AUTO_PROFILER_LABEL("PHttpChannel::Msg_SetPriority", OTHER);
476
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
477
0
        mozilla::ipc::LogicError("Transition error");
478
0
    }
479
0
480
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
481
0
    return sendok__;
482
0
}
483
484
auto PHttpChannelParent::RemoveManagee(
485
        int32_t aProtocolId,
486
        IProtocol* aListener) -> void
487
0
{
488
0
    FatalError("unreached");
489
0
    return;
490
0
}
491
492
auto PHttpChannelParent::OnMessageReceived(const Message& msg__) -> PHttpChannelParent::Result
493
0
{
494
0
    switch ((msg__).type()) {
495
0
    case PHttpChannel::Msg_SetClassOfService__ID:
496
0
        {
497
0
            if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
498
0
                mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
499
0
            }
500
0
            AUTO_PROFILER_LABEL("PHttpChannel::Msg_SetClassOfService", OTHER);
501
0
502
0
            PickleIterator iter__(msg__);
503
0
            uint32_t cos;
504
0
505
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cos)))))) {
506
0
                FatalError("Error deserializing 'uint32_t'");
507
0
                return MsgValueError;
508
0
            }
509
0
            // Sentinel = 'cos'
510
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 403875042)))) {
511
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
512
0
                return MsgValueError;
513
0
            }
514
0
            (msg__).EndRead(iter__, (msg__).type());
515
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
516
0
                FatalError("Transition error");
517
0
                return MsgValueError;
518
0
            }
519
0
            if ((!(RecvSetClassOfService(cos)))) {
520
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
521
0
                // Error handled in mozilla::ipc::IPCResult
522
0
                return MsgProcessingError;
523
0
            }
524
0
525
0
            return MsgProcessed;
526
0
        }
527
0
    case PHttpChannel::Msg_SetCacheTokenCachedCharset__ID:
528
0
        {
529
0
            if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
530
0
                mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
531
0
            }
532
0
            AUTO_PROFILER_LABEL("PHttpChannel::Msg_SetCacheTokenCachedCharset", OTHER);
533
0
534
0
            PickleIterator iter__(msg__);
535
0
            nsCString charset;
536
0
537
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(charset)))))) {
538
0
                FatalError("Error deserializing 'nsCString'");
539
0
                return MsgValueError;
540
0
            }
541
0
            // Sentinel = 'charset'
542
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1551550891)))) {
543
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
544
0
                return MsgValueError;
545
0
            }
546
0
            (msg__).EndRead(iter__, (msg__).type());
547
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
548
0
                FatalError("Transition error");
549
0
                return MsgValueError;
550
0
            }
551
0
            if ((!(RecvSetCacheTokenCachedCharset(charset)))) {
552
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
553
0
                // Error handled in mozilla::ipc::IPCResult
554
0
                return MsgProcessingError;
555
0
            }
556
0
557
0
            return MsgProcessed;
558
0
        }
559
0
    case PHttpChannel::Msg_Suspend__ID:
560
0
        {
561
0
            if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
562
0
                mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
563
0
            }
564
0
            AUTO_PROFILER_LABEL("PHttpChannel::Msg_Suspend", OTHER);
565
0
566
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
567
0
                FatalError("Transition error");
568
0
                return MsgValueError;
569
0
            }
570
0
            if ((!(RecvSuspend()))) {
571
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
572
0
                // Error handled in mozilla::ipc::IPCResult
573
0
                return MsgProcessingError;
574
0
            }
575
0
576
0
            return MsgProcessed;
577
0
        }
578
0
    case PHttpChannel::Msg_Resume__ID:
579
0
        {
580
0
            if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
581
0
                mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
582
0
            }
583
0
            AUTO_PROFILER_LABEL("PHttpChannel::Msg_Resume", OTHER);
584
0
585
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
586
0
                FatalError("Transition error");
587
0
                return MsgValueError;
588
0
            }
589
0
            if ((!(RecvResume()))) {
590
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
591
0
                // Error handled in mozilla::ipc::IPCResult
592
0
                return MsgProcessingError;
593
0
            }
594
0
595
0
            return MsgProcessed;
596
0
        }
597
0
    case PHttpChannel::Msg_Cancel__ID:
598
0
        {
599
0
            if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
600
0
                mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
601
0
            }
602
0
            AUTO_PROFILER_LABEL("PHttpChannel::Msg_Cancel", OTHER);
603
0
604
0
            PickleIterator iter__(msg__);
605
0
            nsresult status;
606
0
607
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(status)))))) {
608
0
                FatalError("Error deserializing 'nsresult'");
609
0
                return MsgValueError;
610
0
            }
611
0
            // Sentinel = 'status'
612
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3714608576)))) {
613
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
614
0
                return MsgValueError;
615
0
            }
616
0
            (msg__).EndRead(iter__, (msg__).type());
617
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
618
0
                FatalError("Transition error");
619
0
                return MsgValueError;
620
0
            }
621
0
            if ((!(RecvCancel(status)))) {
622
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
623
0
                // Error handled in mozilla::ipc::IPCResult
624
0
                return MsgProcessingError;
625
0
            }
626
0
627
0
            return MsgProcessed;
628
0
        }
629
0
    case PHttpChannel::Msg_Redirect2Verify__ID:
630
0
        {
631
0
            if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
632
0
                mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
633
0
            }
634
0
            AUTO_PROFILER_LABEL("PHttpChannel::Msg_Redirect2Verify", OTHER);
635
0
636
0
            PickleIterator iter__(msg__);
637
0
            nsresult result;
638
0
            RequestHeaderTuples changedHeaders;
639
0
            ChildLoadInfoForwarderArgs loadInfoForwarder;
640
0
            uint32_t loadFlags;
641
0
            uint32_t referrerPolicy;
642
0
            OptionalURIParams referrerUri;
643
0
            OptionalURIParams apiRedirectTo;
644
0
            OptionalCorsPreflightArgs corsPreflightArgs;
645
0
            bool chooseAppcache;
646
0
647
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(result)))))) {
648
0
                FatalError("Error deserializing 'nsresult'");
649
0
                return MsgValueError;
650
0
            }
651
0
            // Sentinel = 'result'
652
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3991766165)))) {
653
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
654
0
                return MsgValueError;
655
0
            }
656
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(changedHeaders)))))) {
657
0
                FatalError("Error deserializing 'RequestHeaderTuples'");
658
0
                return MsgValueError;
659
0
            }
660
0
            // Sentinel = 'changedHeaders'
661
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1574138284)))) {
662
0
                mozilla::ipc::SentinelReadError("Error deserializing 'RequestHeaderTuples'");
663
0
                return MsgValueError;
664
0
            }
665
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(loadInfoForwarder)))))) {
666
0
                FatalError("Error deserializing 'ChildLoadInfoForwarderArgs'");
667
0
                return MsgValueError;
668
0
            }
669
0
            // Sentinel = 'loadInfoForwarder'
670
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2195128043)))) {
671
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ChildLoadInfoForwarderArgs'");
672
0
                return MsgValueError;
673
0
            }
674
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(loadFlags)))))) {
675
0
                FatalError("Error deserializing 'uint32_t'");
676
0
                return MsgValueError;
677
0
            }
678
0
            // Sentinel = 'loadFlags'
679
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2391120444)))) {
680
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
681
0
                return MsgValueError;
682
0
            }
683
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(referrerPolicy)))))) {
684
0
                FatalError("Error deserializing 'uint32_t'");
685
0
                return MsgValueError;
686
0
            }
687
0
            // Sentinel = 'referrerPolicy'
688
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2269890057)))) {
689
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
690
0
                return MsgValueError;
691
0
            }
692
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(referrerUri)))))) {
693
0
                FatalError("Error deserializing 'OptionalURIParams'");
694
0
                return MsgValueError;
695
0
            }
696
0
            // Sentinel = 'referrerUri'
697
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 622910354)))) {
698
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
699
0
                return MsgValueError;
700
0
            }
701
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(apiRedirectTo)))))) {
702
0
                FatalError("Error deserializing 'OptionalURIParams'");
703
0
                return MsgValueError;
704
0
            }
705
0
            // Sentinel = 'apiRedirectTo'
706
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3162811030)))) {
707
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
708
0
                return MsgValueError;
709
0
            }
710
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(corsPreflightArgs)))))) {
711
0
                FatalError("Error deserializing 'OptionalCorsPreflightArgs'");
712
0
                return MsgValueError;
713
0
            }
714
0
            // Sentinel = 'corsPreflightArgs'
715
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1890063766)))) {
716
0
                mozilla::ipc::SentinelReadError("Error deserializing 'OptionalCorsPreflightArgs'");
717
0
                return MsgValueError;
718
0
            }
719
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(chooseAppcache)))))) {
720
0
                FatalError("Error deserializing 'bool'");
721
0
                return MsgValueError;
722
0
            }
723
0
            // Sentinel = 'chooseAppcache'
724
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 868254728)))) {
725
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
726
0
                return MsgValueError;
727
0
            }
728
0
            (msg__).EndRead(iter__, (msg__).type());
729
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
730
0
                FatalError("Transition error");
731
0
                return MsgValueError;
732
0
            }
733
0
            if ((!(RecvRedirect2Verify(result, changedHeaders, loadInfoForwarder, loadFlags, referrerPolicy, referrerUri, apiRedirectTo, corsPreflightArgs, chooseAppcache)))) {
734
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
735
0
                // Error handled in mozilla::ipc::IPCResult
736
0
                return MsgProcessingError;
737
0
            }
738
0
739
0
            return MsgProcessed;
740
0
        }
741
0
    case PHttpChannel::Msg_CrossProcessRedirectDone__ID:
742
0
        {
743
0
            if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
744
0
                mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
745
0
            }
746
0
            AUTO_PROFILER_LABEL("PHttpChannel::Msg_CrossProcessRedirectDone", OTHER);
747
0
748
0
            PickleIterator iter__(msg__);
749
0
            nsresult result;
750
0
751
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(result)))))) {
752
0
                FatalError("Error deserializing 'nsresult'");
753
0
                return MsgValueError;
754
0
            }
755
0
            // Sentinel = 'result'
756
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3991766165)))) {
757
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
758
0
                return MsgValueError;
759
0
            }
760
0
            (msg__).EndRead(iter__, (msg__).type());
761
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
762
0
                FatalError("Transition error");
763
0
                return MsgValueError;
764
0
            }
765
0
            if ((!(RecvCrossProcessRedirectDone(result)))) {
766
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
767
0
                // Error handled in mozilla::ipc::IPCResult
768
0
                return MsgProcessingError;
769
0
            }
770
0
771
0
            return MsgProcessed;
772
0
        }
773
0
    case PHttpChannel::Msg_DocumentChannelCleanup__ID:
774
0
        {
775
0
            if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
776
0
                mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
777
0
            }
778
0
            AUTO_PROFILER_LABEL("PHttpChannel::Msg_DocumentChannelCleanup", OTHER);
779
0
780
0
            PickleIterator iter__(msg__);
781
0
            bool clearCacheEntry;
782
0
783
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(clearCacheEntry)))))) {
784
0
                FatalError("Error deserializing 'bool'");
785
0
                return MsgValueError;
786
0
            }
787
0
            // Sentinel = 'clearCacheEntry'
788
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2700914662)))) {
789
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
790
0
                return MsgValueError;
791
0
            }
792
0
            (msg__).EndRead(iter__, (msg__).type());
793
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
794
0
                FatalError("Transition error");
795
0
                return MsgValueError;
796
0
            }
797
0
            if ((!(RecvDocumentChannelCleanup(clearCacheEntry)))) {
798
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
799
0
                // Error handled in mozilla::ipc::IPCResult
800
0
                return MsgProcessingError;
801
0
            }
802
0
803
0
            return MsgProcessed;
804
0
        }
805
0
    case PHttpChannel::Msg_MarkOfflineCacheEntryAsForeign__ID:
806
0
        {
807
0
            if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
808
0
                mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
809
0
            }
810
0
            AUTO_PROFILER_LABEL("PHttpChannel::Msg_MarkOfflineCacheEntryAsForeign", OTHER);
811
0
812
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
813
0
                FatalError("Transition error");
814
0
                return MsgValueError;
815
0
            }
816
0
            if ((!(RecvMarkOfflineCacheEntryAsForeign()))) {
817
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
818
0
                // Error handled in mozilla::ipc::IPCResult
819
0
                return MsgProcessingError;
820
0
            }
821
0
822
0
            return MsgProcessed;
823
0
        }
824
0
    case PHttpChannel::Msg_DivertOnDataAvailable__ID:
825
0
        {
826
0
            if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
827
0
                mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
828
0
            }
829
0
            AUTO_PROFILER_LABEL("PHttpChannel::Msg_DivertOnDataAvailable", OTHER);
830
0
831
0
            PickleIterator iter__(msg__);
832
0
            nsCString data;
833
0
            uint64_t offset;
834
0
            uint32_t count;
835
0
836
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(data)))))) {
837
0
                FatalError("Error deserializing 'nsCString'");
838
0
                return MsgValueError;
839
0
            }
840
0
            // Sentinel = 'data'
841
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 843352540)))) {
842
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
843
0
                return MsgValueError;
844
0
            }
845
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(offset)))))) {
846
0
                FatalError("Error deserializing 'uint64_t'");
847
0
                return MsgValueError;
848
0
            }
849
0
            // Sentinel = 'offset'
850
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1369947863)))) {
851
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
852
0
                return MsgValueError;
853
0
            }
854
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(count)))))) {
855
0
                FatalError("Error deserializing 'uint32_t'");
856
0
                return MsgValueError;
857
0
            }
858
0
            // Sentinel = 'count'
859
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2126421856)))) {
860
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
861
0
                return MsgValueError;
862
0
            }
863
0
            (msg__).EndRead(iter__, (msg__).type());
864
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
865
0
                FatalError("Transition error");
866
0
                return MsgValueError;
867
0
            }
868
0
            if ((!(RecvDivertOnDataAvailable(data, offset, count)))) {
869
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
870
0
                // Error handled in mozilla::ipc::IPCResult
871
0
                return MsgProcessingError;
872
0
            }
873
0
874
0
            return MsgProcessed;
875
0
        }
876
0
    case PHttpChannel::Msg_DivertOnStopRequest__ID:
877
0
        {
878
0
            if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
879
0
                mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
880
0
            }
881
0
            AUTO_PROFILER_LABEL("PHttpChannel::Msg_DivertOnStopRequest", OTHER);
882
0
883
0
            PickleIterator iter__(msg__);
884
0
            nsresult statusCode;
885
0
886
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(statusCode)))))) {
887
0
                FatalError("Error deserializing 'nsresult'");
888
0
                return MsgValueError;
889
0
            }
890
0
            // Sentinel = 'statusCode'
891
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2709278591)))) {
892
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
893
0
                return MsgValueError;
894
0
            }
895
0
            (msg__).EndRead(iter__, (msg__).type());
896
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
897
0
                FatalError("Transition error");
898
0
                return MsgValueError;
899
0
            }
900
0
            if ((!(RecvDivertOnStopRequest(statusCode)))) {
901
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
902
0
                // Error handled in mozilla::ipc::IPCResult
903
0
                return MsgProcessingError;
904
0
            }
905
0
906
0
            return MsgProcessed;
907
0
        }
908
0
    case PHttpChannel::Msg_DivertComplete__ID:
909
0
        {
910
0
            if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
911
0
                mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
912
0
            }
913
0
            AUTO_PROFILER_LABEL("PHttpChannel::Msg_DivertComplete", OTHER);
914
0
915
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
916
0
                FatalError("Transition error");
917
0
                return MsgValueError;
918
0
            }
919
0
            if ((!(RecvDivertComplete()))) {
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 PHttpChannel::Msg_RemoveCorsPreflightCacheEntry__ID:
928
0
        {
929
0
            if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
930
0
                mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
931
0
            }
932
0
            AUTO_PROFILER_LABEL("PHttpChannel::Msg_RemoveCorsPreflightCacheEntry", OTHER);
933
0
934
0
            PickleIterator iter__(msg__);
935
0
            URIParams uri;
936
0
            PrincipalInfo requestingPrincipal;
937
0
938
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(uri)))))) {
939
0
                FatalError("Error deserializing 'URIParams'");
940
0
                return MsgValueError;
941
0
            }
942
0
            // Sentinel = 'uri'
943
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) {
944
0
                mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'");
945
0
                return MsgValueError;
946
0
            }
947
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(requestingPrincipal)))))) {
948
0
                FatalError("Error deserializing 'PrincipalInfo'");
949
0
                return MsgValueError;
950
0
            }
951
0
            // Sentinel = 'requestingPrincipal'
952
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1124847050)))) {
953
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo'");
954
0
                return MsgValueError;
955
0
            }
956
0
            (msg__).EndRead(iter__, (msg__).type());
957
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
958
0
                FatalError("Transition error");
959
0
                return MsgValueError;
960
0
            }
961
0
            if ((!(RecvRemoveCorsPreflightCacheEntry(uri, requestingPrincipal)))) {
962
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
963
0
                // Error handled in mozilla::ipc::IPCResult
964
0
                return MsgProcessingError;
965
0
            }
966
0
967
0
            return MsgProcessed;
968
0
        }
969
0
    case PHttpChannel::Msg_DeletingChannel__ID:
970
0
        {
971
0
            if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
972
0
                mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
973
0
            }
974
0
            AUTO_PROFILER_LABEL("PHttpChannel::Msg_DeletingChannel", OTHER);
975
0
976
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
977
0
                FatalError("Transition error");
978
0
                return MsgValueError;
979
0
            }
980
0
            if ((!(RecvDeletingChannel()))) {
981
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
982
0
                // Error handled in mozilla::ipc::IPCResult
983
0
                return MsgProcessingError;
984
0
            }
985
0
986
0
            return MsgProcessed;
987
0
        }
988
0
    case PHttpChannel::Msg_BytesRead__ID:
989
0
        {
990
0
            if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
991
0
                mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
992
0
            }
993
0
            AUTO_PROFILER_LABEL("PHttpChannel::Msg_BytesRead", OTHER);
994
0
995
0
            PickleIterator iter__(msg__);
996
0
            int32_t count;
997
0
998
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(count)))))) {
999
0
                FatalError("Error deserializing 'int32_t'");
1000
0
                return MsgValueError;
1001
0
            }
1002
0
            // Sentinel = 'count'
1003
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2126421856)))) {
1004
0
                mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
1005
0
                return MsgValueError;
1006
0
            }
1007
0
            (msg__).EndRead(iter__, (msg__).type());
1008
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1009
0
                FatalError("Transition error");
1010
0
                return MsgValueError;
1011
0
            }
1012
0
            if ((!(RecvBytesRead(count)))) {
1013
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1014
0
                // Error handled in mozilla::ipc::IPCResult
1015
0
                return MsgProcessingError;
1016
0
            }
1017
0
1018
0
            return MsgProcessed;
1019
0
        }
1020
0
    case PHttpChannel::Msg___delete____ID:
1021
0
        {
1022
0
            if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
1023
0
                mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1024
0
            }
1025
0
            AUTO_PROFILER_LABEL("PHttpChannel::Msg___delete__", OTHER);
1026
0
1027
0
            PickleIterator iter__(msg__);
1028
0
            PHttpChannelParent* actor;
1029
0
1030
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(actor)))))) {
1031
0
                FatalError("Error deserializing 'PHttpChannelParent'");
1032
0
                return MsgValueError;
1033
0
            }
1034
0
            if ((!((*((&(actor))))))) {
1035
0
                FatalError("Error deserializing 'PHttpChannelParent'");
1036
0
                return MsgValueError;
1037
0
            }
1038
0
            // Sentinel = 'actor'
1039
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1040
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PHttpChannelParent'");
1041
0
                return MsgValueError;
1042
0
            }
1043
0
            (msg__).EndRead(iter__, (msg__).type());
1044
0
            if ((!(StateTransition(true, (&(mLivenessState)))))) {
1045
0
                FatalError("Transition error");
1046
0
                return MsgValueError;
1047
0
            }
1048
0
            if ((!(Recv__delete__()))) {
1049
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1050
0
                // Error handled in mozilla::ipc::IPCResult
1051
0
                return MsgProcessingError;
1052
0
            }
1053
0
1054
0
1055
0
            IProtocol* mgr = (actor)->Manager();
1056
0
            (actor)->DestroySubtree(Deletion);
1057
0
            (actor)->DeallocSubtree();
1058
0
            (mgr)->RemoveManagee(PHttpChannelMsgStart, actor);
1059
0
1060
0
            return MsgProcessed;
1061
0
        }
1062
0
    case PHttpChannel::Msg_FinishInterceptedRedirect__ID:
1063
0
        {
1064
0
            if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
1065
0
                mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1066
0
            }
1067
0
            AUTO_PROFILER_LABEL("PHttpChannel::Msg_FinishInterceptedRedirect", OTHER);
1068
0
1069
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1070
0
                FatalError("Transition error");
1071
0
                return MsgValueError;
1072
0
            }
1073
0
            if ((!(RecvFinishInterceptedRedirect()))) {
1074
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1075
0
                // Error handled in mozilla::ipc::IPCResult
1076
0
                return MsgProcessingError;
1077
0
            }
1078
0
1079
0
            return MsgProcessed;
1080
0
        }
1081
0
    case PHttpChannel::Msg_SetPriority__ID:
1082
0
        {
1083
0
            if (mozilla::ipc::LoggingEnabledFor("PHttpChannelParent")) {
1084
0
                mozilla::ipc::LogMessageForProtocol("PHttpChannelParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1085
0
            }
1086
0
            AUTO_PROFILER_LABEL("PHttpChannel::Msg_SetPriority", OTHER);
1087
0
1088
0
            PickleIterator iter__(msg__);
1089
0
            int16_t priority;
1090
0
1091
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(priority)))))) {
1092
0
                FatalError("Error deserializing 'int16_t'");
1093
0
                return MsgValueError;
1094
0
            }
1095
0
            // Sentinel = 'priority'
1096
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 558136112)))) {
1097
0
                mozilla::ipc::SentinelReadError("Error deserializing 'int16_t'");
1098
0
                return MsgValueError;
1099
0
            }
1100
0
            (msg__).EndRead(iter__, (msg__).type());
1101
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1102
0
                FatalError("Transition error");
1103
0
                return MsgValueError;
1104
0
            }
1105
0
            if ((!(RecvSetPriority(priority)))) {
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
    default:
1114
0
        {
1115
0
            return MsgNotKnown;
1116
0
        }
1117
0
    }
1118
0
}
1119
1120
auto PHttpChannelParent::OnMessageReceived(
1121
        const Message& msg__,
1122
        Message*& reply__) -> PHttpChannelParent::Result
1123
0
{
1124
0
    return MsgNotKnown;
1125
0
}
1126
1127
auto PHttpChannelParent::OnCallReceived(
1128
        const Message& msg__,
1129
        Message*& reply__) -> PHttpChannelParent::Result
1130
0
{
1131
0
    MOZ_ASSERT_UNREACHABLE("message protocol not supported");
1132
0
    return MsgNotKnown;
1133
0
}
1134
1135
auto PHttpChannelParent::GetProtocolTypeId() -> int32_t
1136
0
{
1137
0
    return PHttpChannelMsgStart;
1138
0
}
1139
1140
auto PHttpChannelParent::DestroySubtree(ActorDestroyReason why) -> void
1141
0
{
1142
0
    // Unregister from our manager.
1143
0
    Unregister(Id());
1144
0
1145
0
    // Reject owning pending responses.
1146
0
    (GetIPCChannel())->RejectPendingResponsesForActor(this);
1147
0
1148
0
    // Finally, destroy "us".
1149
0
    ActorDestroy(why);
1150
0
}
1151
1152
auto PHttpChannelParent::DeallocSubtree() -> void
1153
0
{
1154
0
}
1155
1156
1157
1158
} // namespace net
1159
} // namespace mozilla
1160
namespace mozilla {
1161
namespace ipc {
1162
auto IPDLParamTraits<mozilla::net::PHttpChannelParent>::Write(
1163
        IPC::Message* aMsg,
1164
        mozilla::ipc::IProtocol* aActor,
1165
        const paramType& aVar) -> void
1166
0
{
1167
0
    int32_t id;
1168
0
    if ((!(aVar))) {
1169
0
        id = 0;
1170
0
    }
1171
0
    else {
1172
0
        id = (aVar)->Id();
1173
0
        if ((1) == (id)) {
1174
0
            (aActor)->FatalError("actor has been |delete|d");
1175
0
        }
1176
0
    }
1177
0
    WriteIPDLParam(aMsg, aActor, id);
1178
0
}
1179
1180
auto IPDLParamTraits<mozilla::net::PHttpChannelParent>::Read(
1181
        const IPC::Message* aMsg,
1182
        PickleIterator* aIter,
1183
        mozilla::ipc::IProtocol* aActor,
1184
        paramType* aVar) -> bool
1185
0
{
1186
0
    mozilla::Maybe<mozilla::ipc::IProtocol*> actor = (aActor)->ReadActor(aMsg, aIter, true, "PHttpChannel", PHttpChannelMsgStart);
1187
0
    if ((actor).isNothing()) {
1188
0
        return false;
1189
0
    }
1190
0
1191
0
    (*(aVar)) = static_cast<mozilla::net::PHttpChannelParent*>((actor).value());
1192
0
    return true;
1193
0
}
1194
1195
} // namespace ipc
1196
} // namespace mozilla