Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/NeckoChannelParams.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/PHttpChannelChild.h"
9
#include "mozilla/net/PFTPChannelParent.h"
10
#include "mozilla/net/PFTPChannelChild.h"
11
#include "mozilla/ipc/PChildToParentStreamParent.h"
12
#include "mozilla/ipc/PChildToParentStreamChild.h"
13
#include "mozilla/net/NeckoChannelParams.h"
14
15
16
//-----------------------------------------------------------------------------
17
// Method definitions for the IPDL type |struct RedirectHistoryEntryInfo|
18
//
19
namespace mozilla {
20
namespace net {
21
auto RedirectHistoryEntryInfo::operator==(const RedirectHistoryEntryInfo& _o) const -> bool
22
0
{
23
0
    if ((!((principalInfo()) == ((_o).principalInfo())))) {
24
0
        return false;
25
0
    }
26
0
    if ((!((referrerUri()) == ((_o).referrerUri())))) {
27
0
        return false;
28
0
    }
29
0
    if ((!((remoteAddress()) == ((_o).remoteAddress())))) {
30
0
        return false;
31
0
    }
32
0
    return true;
33
0
}
34
35
auto RedirectHistoryEntryInfo::operator!=(const RedirectHistoryEntryInfo& _o) const -> bool
36
0
{
37
0
    return (!(operator==(_o)));
38
0
}
39
40
} // namespace net
41
} // namespace mozilla
42
43
namespace mozilla {
44
namespace ipc {
45
auto IPDLParamTraits<mozilla::net::RedirectHistoryEntryInfo>::Write(
46
        IPC::Message* aMsg,
47
        mozilla::ipc::IProtocol* aActor,
48
        const paramType& aVar) -> void
49
0
{
50
0
    WriteIPDLParam(aMsg, aActor, (aVar).principalInfo());
51
0
    // Sentinel = 'principalInfo'
52
0
    (aMsg)->WriteSentinel(3386633731);
53
0
    WriteIPDLParam(aMsg, aActor, (aVar).referrerUri());
54
0
    // Sentinel = 'referrerUri'
55
0
    (aMsg)->WriteSentinel(622910354);
56
0
    WriteIPDLParam(aMsg, aActor, (aVar).remoteAddress());
57
0
    // Sentinel = 'remoteAddress'
58
0
    (aMsg)->WriteSentinel(3204520231);
59
0
}
60
61
auto IPDLParamTraits<mozilla::net::RedirectHistoryEntryInfo>::Read(
62
        const IPC::Message* aMsg,
63
        PickleIterator* aIter,
64
        mozilla::ipc::IProtocol* aActor,
65
        paramType* aVar) -> bool
66
0
{
67
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->principalInfo())))))) {
68
0
        (aActor)->FatalError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'RedirectHistoryEntryInfo'");
69
0
        return false;
70
0
    }
71
0
    // Sentinel = 'principalInfo'
72
0
    if ((!((aMsg)->ReadSentinel(aIter, 3386633731)))) {
73
0
        mozilla::ipc::SentinelReadError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'RedirectHistoryEntryInfo'");
74
0
        return false;
75
0
    }
76
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->referrerUri())))))) {
77
0
        (aActor)->FatalError("Error deserializing 'referrerUri' (OptionalURIParams) member of 'RedirectHistoryEntryInfo'");
78
0
        return false;
79
0
    }
80
0
    // Sentinel = 'referrerUri'
81
0
    if ((!((aMsg)->ReadSentinel(aIter, 622910354)))) {
82
0
        mozilla::ipc::SentinelReadError("Error deserializing 'referrerUri' (OptionalURIParams) member of 'RedirectHistoryEntryInfo'");
83
0
        return false;
84
0
    }
85
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->remoteAddress())))))) {
86
0
        (aActor)->FatalError("Error deserializing 'remoteAddress' (nsCString) member of 'RedirectHistoryEntryInfo'");
87
0
        return false;
88
0
    }
89
0
    // Sentinel = 'remoteAddress'
90
0
    if ((!((aMsg)->ReadSentinel(aIter, 3204520231)))) {
91
0
        mozilla::ipc::SentinelReadError("Error deserializing 'remoteAddress' (nsCString) member of 'RedirectHistoryEntryInfo'");
92
0
        return false;
93
0
    }
94
0
    return true;
95
0
}
96
97
} // namespace ipc
98
} // namespace mozilla
99
100
//-----------------------------------------------------------------------------
101
// Method definitions for the IPDL type |struct LoadInfoArgs|
102
//
103
namespace mozilla {
104
namespace net {
105
auto LoadInfoArgs::operator==(const LoadInfoArgs& _o) const -> bool
106
0
{
107
0
    if ((!((requestingPrincipalInfo()) == ((_o).requestingPrincipalInfo())))) {
108
0
        return false;
109
0
    }
110
0
    if ((!((triggeringPrincipalInfo()) == ((_o).triggeringPrincipalInfo())))) {
111
0
        return false;
112
0
    }
113
0
    if ((!((principalToInheritInfo()) == ((_o).principalToInheritInfo())))) {
114
0
        return false;
115
0
    }
116
0
    if ((!((sandboxedLoadingPrincipalInfo()) == ((_o).sandboxedLoadingPrincipalInfo())))) {
117
0
        return false;
118
0
    }
119
0
    if ((!((topLevelPrincipalInfo()) == ((_o).topLevelPrincipalInfo())))) {
120
0
        return false;
121
0
    }
122
0
    if ((!((topLevelStorageAreaPrincipalInfo()) == ((_o).topLevelStorageAreaPrincipalInfo())))) {
123
0
        return false;
124
0
    }
125
0
    if ((!((resultPrincipalURI()) == ((_o).resultPrincipalURI())))) {
126
0
        return false;
127
0
    }
128
0
    if ((!((securityFlags()) == ((_o).securityFlags())))) {
129
0
        return false;
130
0
    }
131
0
    if ((!((contentPolicyType()) == ((_o).contentPolicyType())))) {
132
0
        return false;
133
0
    }
134
0
    if ((!((tainting()) == ((_o).tainting())))) {
135
0
        return false;
136
0
    }
137
0
    if ((!((upgradeInsecureRequests()) == ((_o).upgradeInsecureRequests())))) {
138
0
        return false;
139
0
    }
140
0
    if ((!((browserUpgradeInsecureRequests()) == ((_o).browserUpgradeInsecureRequests())))) {
141
0
        return false;
142
0
    }
143
0
    if ((!((browserWouldUpgradeInsecureRequests()) == ((_o).browserWouldUpgradeInsecureRequests())))) {
144
0
        return false;
145
0
    }
146
0
    if ((!((verifySignedContent()) == ((_o).verifySignedContent())))) {
147
0
        return false;
148
0
    }
149
0
    if ((!((enforceSRI()) == ((_o).enforceSRI())))) {
150
0
        return false;
151
0
    }
152
0
    if ((!((forceAllowDataURI()) == ((_o).forceAllowDataURI())))) {
153
0
        return false;
154
0
    }
155
0
    if ((!((allowInsecureRedirectToDataURI()) == ((_o).allowInsecureRedirectToDataURI())))) {
156
0
        return false;
157
0
    }
158
0
    if ((!((skipContentPolicyCheckForWebRequest()) == ((_o).skipContentPolicyCheckForWebRequest())))) {
159
0
        return false;
160
0
    }
161
0
    if ((!((forceInheritPrincipalDropped()) == ((_o).forceInheritPrincipalDropped())))) {
162
0
        return false;
163
0
    }
164
0
    if ((!((innerWindowID()) == ((_o).innerWindowID())))) {
165
0
        return false;
166
0
    }
167
0
    if ((!((outerWindowID()) == ((_o).outerWindowID())))) {
168
0
        return false;
169
0
    }
170
0
    if ((!((parentOuterWindowID()) == ((_o).parentOuterWindowID())))) {
171
0
        return false;
172
0
    }
173
0
    if ((!((topOuterWindowID()) == ((_o).topOuterWindowID())))) {
174
0
        return false;
175
0
    }
176
0
    if ((!((frameOuterWindowID()) == ((_o).frameOuterWindowID())))) {
177
0
        return false;
178
0
    }
179
0
    if ((!((enforceSecurity()) == ((_o).enforceSecurity())))) {
180
0
        return false;
181
0
    }
182
0
    if ((!((initialSecurityCheckDone()) == ((_o).initialSecurityCheckDone())))) {
183
0
        return false;
184
0
    }
185
0
    if ((!((isInThirdPartyContext()) == ((_o).isInThirdPartyContext())))) {
186
0
        return false;
187
0
    }
188
0
    if ((!((isDocshellReload()) == ((_o).isDocshellReload())))) {
189
0
        return false;
190
0
    }
191
0
    if ((!((sendCSPViolationEvents()) == ((_o).sendCSPViolationEvents())))) {
192
0
        return false;
193
0
    }
194
0
    if ((!((originAttributes()) == ((_o).originAttributes())))) {
195
0
        return false;
196
0
    }
197
0
    if ((!((redirectChainIncludingInternalRedirects()) == ((_o).redirectChainIncludingInternalRedirects())))) {
198
0
        return false;
199
0
    }
200
0
    if ((!((redirectChain()) == ((_o).redirectChain())))) {
201
0
        return false;
202
0
    }
203
0
    if ((!((ancestorPrincipals()) == ((_o).ancestorPrincipals())))) {
204
0
        return false;
205
0
    }
206
0
    if ((!((ancestorOuterWindowIDs()) == ((_o).ancestorOuterWindowIDs())))) {
207
0
        return false;
208
0
    }
209
0
    if ((!((clientInfo()) == ((_o).clientInfo())))) {
210
0
        return false;
211
0
    }
212
0
    if ((!((reservedClientInfo()) == ((_o).reservedClientInfo())))) {
213
0
        return false;
214
0
    }
215
0
    if ((!((initialClientInfo()) == ((_o).initialClientInfo())))) {
216
0
        return false;
217
0
    }
218
0
    if ((!((controller()) == ((_o).controller())))) {
219
0
        return false;
220
0
    }
221
0
    if ((!((corsUnsafeHeaders()) == ((_o).corsUnsafeHeaders())))) {
222
0
        return false;
223
0
    }
224
0
    if ((!((forcePreflight()) == ((_o).forcePreflight())))) {
225
0
        return false;
226
0
    }
227
0
    if ((!((isPreflight()) == ((_o).isPreflight())))) {
228
0
        return false;
229
0
    }
230
0
    if ((!((loadTriggeredFromExternal()) == ((_o).loadTriggeredFromExternal())))) {
231
0
        return false;
232
0
    }
233
0
    if ((!((serviceWorkerTaintingSynthesized()) == ((_o).serviceWorkerTaintingSynthesized())))) {
234
0
        return false;
235
0
    }
236
0
    if ((!((documentHasUserInteracted()) == ((_o).documentHasUserInteracted())))) {
237
0
        return false;
238
0
    }
239
0
    return true;
240
0
}
241
242
auto LoadInfoArgs::operator!=(const LoadInfoArgs& _o) const -> bool
243
0
{
244
0
    return (!(operator==(_o)));
245
0
}
246
247
} // namespace net
248
} // namespace mozilla
249
250
namespace mozilla {
251
namespace ipc {
252
auto IPDLParamTraits<mozilla::net::LoadInfoArgs>::Write(
253
        IPC::Message* aMsg,
254
        mozilla::ipc::IProtocol* aActor,
255
        const paramType& aVar) -> void
256
0
{
257
0
    WriteIPDLParam(aMsg, aActor, (aVar).requestingPrincipalInfo());
258
0
    // Sentinel = 'requestingPrincipalInfo'
259
0
    (aMsg)->WriteSentinel(3181737698);
260
0
    WriteIPDLParam(aMsg, aActor, (aVar).triggeringPrincipalInfo());
261
0
    // Sentinel = 'triggeringPrincipalInfo'
262
0
    (aMsg)->WriteSentinel(4145483429);
263
0
    WriteIPDLParam(aMsg, aActor, (aVar).principalToInheritInfo());
264
0
    // Sentinel = 'principalToInheritInfo'
265
0
    (aMsg)->WriteSentinel(3087636212);
266
0
    WriteIPDLParam(aMsg, aActor, (aVar).sandboxedLoadingPrincipalInfo());
267
0
    // Sentinel = 'sandboxedLoadingPrincipalInfo'
268
0
    (aMsg)->WriteSentinel(3064871301);
269
0
    WriteIPDLParam(aMsg, aActor, (aVar).topLevelPrincipalInfo());
270
0
    // Sentinel = 'topLevelPrincipalInfo'
271
0
    (aMsg)->WriteSentinel(4098083132);
272
0
    WriteIPDLParam(aMsg, aActor, (aVar).topLevelStorageAreaPrincipalInfo());
273
0
    // Sentinel = 'topLevelStorageAreaPrincipalInfo'
274
0
    (aMsg)->WriteSentinel(4277661791);
275
0
    WriteIPDLParam(aMsg, aActor, (aVar).resultPrincipalURI());
276
0
    // Sentinel = 'resultPrincipalURI'
277
0
    (aMsg)->WriteSentinel(4283562701);
278
0
    WriteIPDLParam(aMsg, aActor, (aVar).securityFlags());
279
0
    // Sentinel = 'securityFlags'
280
0
    (aMsg)->WriteSentinel(1948430358);
281
0
    WriteIPDLParam(aMsg, aActor, (aVar).contentPolicyType());
282
0
    // Sentinel = 'contentPolicyType'
283
0
    (aMsg)->WriteSentinel(3089607692);
284
0
    WriteIPDLParam(aMsg, aActor, (aVar).tainting());
285
0
    // Sentinel = 'tainting'
286
0
    (aMsg)->WriteSentinel(2959281848);
287
0
    WriteIPDLParam(aMsg, aActor, (aVar).upgradeInsecureRequests());
288
0
    // Sentinel = 'upgradeInsecureRequests'
289
0
    (aMsg)->WriteSentinel(220885803);
290
0
    WriteIPDLParam(aMsg, aActor, (aVar).browserUpgradeInsecureRequests());
291
0
    // Sentinel = 'browserUpgradeInsecureRequests'
292
0
    (aMsg)->WriteSentinel(2481564346);
293
0
    WriteIPDLParam(aMsg, aActor, (aVar).browserWouldUpgradeInsecureRequests());
294
0
    // Sentinel = 'browserWouldUpgradeInsecureRequests'
295
0
    (aMsg)->WriteSentinel(3067145622);
296
0
    WriteIPDLParam(aMsg, aActor, (aVar).verifySignedContent());
297
0
    // Sentinel = 'verifySignedContent'
298
0
    (aMsg)->WriteSentinel(4254189773);
299
0
    WriteIPDLParam(aMsg, aActor, (aVar).enforceSRI());
300
0
    // Sentinel = 'enforceSRI'
301
0
    (aMsg)->WriteSentinel(3434063852);
302
0
    WriteIPDLParam(aMsg, aActor, (aVar).forceAllowDataURI());
303
0
    // Sentinel = 'forceAllowDataURI'
304
0
    (aMsg)->WriteSentinel(1654503267);
305
0
    WriteIPDLParam(aMsg, aActor, (aVar).allowInsecureRedirectToDataURI());
306
0
    // Sentinel = 'allowInsecureRedirectToDataURI'
307
0
    (aMsg)->WriteSentinel(178664674);
308
0
    WriteIPDLParam(aMsg, aActor, (aVar).skipContentPolicyCheckForWebRequest());
309
0
    // Sentinel = 'skipContentPolicyCheckForWebRequest'
310
0
    (aMsg)->WriteSentinel(3239213133);
311
0
    WriteIPDLParam(aMsg, aActor, (aVar).forceInheritPrincipalDropped());
312
0
    // Sentinel = 'forceInheritPrincipalDropped'
313
0
    (aMsg)->WriteSentinel(2486717930);
314
0
    WriteIPDLParam(aMsg, aActor, (aVar).innerWindowID());
315
0
    // Sentinel = 'innerWindowID'
316
0
    (aMsg)->WriteSentinel(4018103366);
317
0
    WriteIPDLParam(aMsg, aActor, (aVar).outerWindowID());
318
0
    // Sentinel = 'outerWindowID'
319
0
    (aMsg)->WriteSentinel(2801565535);
320
0
    WriteIPDLParam(aMsg, aActor, (aVar).parentOuterWindowID());
321
0
    // Sentinel = 'parentOuterWindowID'
322
0
    (aMsg)->WriteSentinel(1687557921);
323
0
    WriteIPDLParam(aMsg, aActor, (aVar).topOuterWindowID());
324
0
    // Sentinel = 'topOuterWindowID'
325
0
    (aMsg)->WriteSentinel(2657698837);
326
0
    WriteIPDLParam(aMsg, aActor, (aVar).frameOuterWindowID());
327
0
    // Sentinel = 'frameOuterWindowID'
328
0
    (aMsg)->WriteSentinel(2873618957);
329
0
    WriteIPDLParam(aMsg, aActor, (aVar).enforceSecurity());
330
0
    // Sentinel = 'enforceSecurity'
331
0
    (aMsg)->WriteSentinel(646099439);
332
0
    WriteIPDLParam(aMsg, aActor, (aVar).initialSecurityCheckDone());
333
0
    // Sentinel = 'initialSecurityCheckDone'
334
0
    (aMsg)->WriteSentinel(872070054);
335
0
    WriteIPDLParam(aMsg, aActor, (aVar).isInThirdPartyContext());
336
0
    // Sentinel = 'isInThirdPartyContext'
337
0
    (aMsg)->WriteSentinel(525088520);
338
0
    WriteIPDLParam(aMsg, aActor, (aVar).isDocshellReload());
339
0
    // Sentinel = 'isDocshellReload'
340
0
    (aMsg)->WriteSentinel(683062623);
341
0
    WriteIPDLParam(aMsg, aActor, (aVar).sendCSPViolationEvents());
342
0
    // Sentinel = 'sendCSPViolationEvents'
343
0
    (aMsg)->WriteSentinel(1532838232);
344
0
    WriteIPDLParam(aMsg, aActor, (aVar).originAttributes());
345
0
    // Sentinel = 'originAttributes'
346
0
    (aMsg)->WriteSentinel(2655275965);
347
0
    WriteIPDLParam(aMsg, aActor, (aVar).redirectChainIncludingInternalRedirects());
348
0
    // Sentinel = 'redirectChainIncludingInternalRedirects'
349
0
    (aMsg)->WriteSentinel(967904109);
350
0
    WriteIPDLParam(aMsg, aActor, (aVar).redirectChain());
351
0
    // Sentinel = 'redirectChain'
352
0
    (aMsg)->WriteSentinel(2550711462);
353
0
    WriteIPDLParam(aMsg, aActor, (aVar).ancestorPrincipals());
354
0
    // Sentinel = 'ancestorPrincipals'
355
0
    (aMsg)->WriteSentinel(2979732852);
356
0
    WriteIPDLParam(aMsg, aActor, (aVar).ancestorOuterWindowIDs());
357
0
    // Sentinel = 'ancestorOuterWindowIDs'
358
0
    (aMsg)->WriteSentinel(3296534340);
359
0
    WriteIPDLParam(aMsg, aActor, (aVar).clientInfo());
360
0
    // Sentinel = 'clientInfo'
361
0
    (aMsg)->WriteSentinel(3036619267);
362
0
    WriteIPDLParam(aMsg, aActor, (aVar).reservedClientInfo());
363
0
    // Sentinel = 'reservedClientInfo'
364
0
    (aMsg)->WriteSentinel(48479967);
365
0
    WriteIPDLParam(aMsg, aActor, (aVar).initialClientInfo());
366
0
    // Sentinel = 'initialClientInfo'
367
0
    (aMsg)->WriteSentinel(3934599036);
368
0
    WriteIPDLParam(aMsg, aActor, (aVar).controller());
369
0
    // Sentinel = 'controller'
370
0
    (aMsg)->WriteSentinel(1871723858);
371
0
    WriteIPDLParam(aMsg, aActor, (aVar).corsUnsafeHeaders());
372
0
    // Sentinel = 'corsUnsafeHeaders'
373
0
    (aMsg)->WriteSentinel(2369694136);
374
0
    WriteIPDLParam(aMsg, aActor, (aVar).forcePreflight());
375
0
    // Sentinel = 'forcePreflight'
376
0
    (aMsg)->WriteSentinel(2198503272);
377
0
    WriteIPDLParam(aMsg, aActor, (aVar).isPreflight());
378
0
    // Sentinel = 'isPreflight'
379
0
    (aMsg)->WriteSentinel(3402379662);
380
0
    WriteIPDLParam(aMsg, aActor, (aVar).loadTriggeredFromExternal());
381
0
    // Sentinel = 'loadTriggeredFromExternal'
382
0
    (aMsg)->WriteSentinel(273089659);
383
0
    WriteIPDLParam(aMsg, aActor, (aVar).serviceWorkerTaintingSynthesized());
384
0
    // Sentinel = 'serviceWorkerTaintingSynthesized'
385
0
    (aMsg)->WriteSentinel(662133457);
386
0
    WriteIPDLParam(aMsg, aActor, (aVar).documentHasUserInteracted());
387
0
    // Sentinel = 'documentHasUserInteracted'
388
0
    (aMsg)->WriteSentinel(4199017112);
389
0
}
390
391
auto IPDLParamTraits<mozilla::net::LoadInfoArgs>::Read(
392
        const IPC::Message* aMsg,
393
        PickleIterator* aIter,
394
        mozilla::ipc::IProtocol* aActor,
395
        paramType* aVar) -> bool
396
0
{
397
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->requestingPrincipalInfo())))))) {
398
0
        (aActor)->FatalError("Error deserializing 'requestingPrincipalInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
399
0
        return false;
400
0
    }
401
0
    // Sentinel = 'requestingPrincipalInfo'
402
0
    if ((!((aMsg)->ReadSentinel(aIter, 3181737698)))) {
403
0
        mozilla::ipc::SentinelReadError("Error deserializing 'requestingPrincipalInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
404
0
        return false;
405
0
    }
406
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->triggeringPrincipalInfo())))))) {
407
0
        (aActor)->FatalError("Error deserializing 'triggeringPrincipalInfo' (PrincipalInfo) member of 'LoadInfoArgs'");
408
0
        return false;
409
0
    }
410
0
    // Sentinel = 'triggeringPrincipalInfo'
411
0
    if ((!((aMsg)->ReadSentinel(aIter, 4145483429)))) {
412
0
        mozilla::ipc::SentinelReadError("Error deserializing 'triggeringPrincipalInfo' (PrincipalInfo) member of 'LoadInfoArgs'");
413
0
        return false;
414
0
    }
415
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->principalToInheritInfo())))))) {
416
0
        (aActor)->FatalError("Error deserializing 'principalToInheritInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
417
0
        return false;
418
0
    }
419
0
    // Sentinel = 'principalToInheritInfo'
420
0
    if ((!((aMsg)->ReadSentinel(aIter, 3087636212)))) {
421
0
        mozilla::ipc::SentinelReadError("Error deserializing 'principalToInheritInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
422
0
        return false;
423
0
    }
424
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->sandboxedLoadingPrincipalInfo())))))) {
425
0
        (aActor)->FatalError("Error deserializing 'sandboxedLoadingPrincipalInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
426
0
        return false;
427
0
    }
428
0
    // Sentinel = 'sandboxedLoadingPrincipalInfo'
429
0
    if ((!((aMsg)->ReadSentinel(aIter, 3064871301)))) {
430
0
        mozilla::ipc::SentinelReadError("Error deserializing 'sandboxedLoadingPrincipalInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
431
0
        return false;
432
0
    }
433
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->topLevelPrincipalInfo())))))) {
434
0
        (aActor)->FatalError("Error deserializing 'topLevelPrincipalInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
435
0
        return false;
436
0
    }
437
0
    // Sentinel = 'topLevelPrincipalInfo'
438
0
    if ((!((aMsg)->ReadSentinel(aIter, 4098083132)))) {
439
0
        mozilla::ipc::SentinelReadError("Error deserializing 'topLevelPrincipalInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
440
0
        return false;
441
0
    }
442
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->topLevelStorageAreaPrincipalInfo())))))) {
443
0
        (aActor)->FatalError("Error deserializing 'topLevelStorageAreaPrincipalInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
444
0
        return false;
445
0
    }
446
0
    // Sentinel = 'topLevelStorageAreaPrincipalInfo'
447
0
    if ((!((aMsg)->ReadSentinel(aIter, 4277661791)))) {
448
0
        mozilla::ipc::SentinelReadError("Error deserializing 'topLevelStorageAreaPrincipalInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
449
0
        return false;
450
0
    }
451
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->resultPrincipalURI())))))) {
452
0
        (aActor)->FatalError("Error deserializing 'resultPrincipalURI' (OptionalURIParams) member of 'LoadInfoArgs'");
453
0
        return false;
454
0
    }
455
0
    // Sentinel = 'resultPrincipalURI'
456
0
    if ((!((aMsg)->ReadSentinel(aIter, 4283562701)))) {
457
0
        mozilla::ipc::SentinelReadError("Error deserializing 'resultPrincipalURI' (OptionalURIParams) member of 'LoadInfoArgs'");
458
0
        return false;
459
0
    }
460
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->securityFlags())))))) {
461
0
        (aActor)->FatalError("Error deserializing 'securityFlags' (uint32_t) member of 'LoadInfoArgs'");
462
0
        return false;
463
0
    }
464
0
    // Sentinel = 'securityFlags'
465
0
    if ((!((aMsg)->ReadSentinel(aIter, 1948430358)))) {
466
0
        mozilla::ipc::SentinelReadError("Error deserializing 'securityFlags' (uint32_t) member of 'LoadInfoArgs'");
467
0
        return false;
468
0
    }
469
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->contentPolicyType())))))) {
470
0
        (aActor)->FatalError("Error deserializing 'contentPolicyType' (uint32_t) member of 'LoadInfoArgs'");
471
0
        return false;
472
0
    }
473
0
    // Sentinel = 'contentPolicyType'
474
0
    if ((!((aMsg)->ReadSentinel(aIter, 3089607692)))) {
475
0
        mozilla::ipc::SentinelReadError("Error deserializing 'contentPolicyType' (uint32_t) member of 'LoadInfoArgs'");
476
0
        return false;
477
0
    }
478
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->tainting())))))) {
479
0
        (aActor)->FatalError("Error deserializing 'tainting' (uint32_t) member of 'LoadInfoArgs'");
480
0
        return false;
481
0
    }
482
0
    // Sentinel = 'tainting'
483
0
    if ((!((aMsg)->ReadSentinel(aIter, 2959281848)))) {
484
0
        mozilla::ipc::SentinelReadError("Error deserializing 'tainting' (uint32_t) member of 'LoadInfoArgs'");
485
0
        return false;
486
0
    }
487
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->upgradeInsecureRequests())))))) {
488
0
        (aActor)->FatalError("Error deserializing 'upgradeInsecureRequests' (bool) member of 'LoadInfoArgs'");
489
0
        return false;
490
0
    }
491
0
    // Sentinel = 'upgradeInsecureRequests'
492
0
    if ((!((aMsg)->ReadSentinel(aIter, 220885803)))) {
493
0
        mozilla::ipc::SentinelReadError("Error deserializing 'upgradeInsecureRequests' (bool) member of 'LoadInfoArgs'");
494
0
        return false;
495
0
    }
496
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->browserUpgradeInsecureRequests())))))) {
497
0
        (aActor)->FatalError("Error deserializing 'browserUpgradeInsecureRequests' (bool) member of 'LoadInfoArgs'");
498
0
        return false;
499
0
    }
500
0
    // Sentinel = 'browserUpgradeInsecureRequests'
501
0
    if ((!((aMsg)->ReadSentinel(aIter, 2481564346)))) {
502
0
        mozilla::ipc::SentinelReadError("Error deserializing 'browserUpgradeInsecureRequests' (bool) member of 'LoadInfoArgs'");
503
0
        return false;
504
0
    }
505
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->browserWouldUpgradeInsecureRequests())))))) {
506
0
        (aActor)->FatalError("Error deserializing 'browserWouldUpgradeInsecureRequests' (bool) member of 'LoadInfoArgs'");
507
0
        return false;
508
0
    }
509
0
    // Sentinel = 'browserWouldUpgradeInsecureRequests'
510
0
    if ((!((aMsg)->ReadSentinel(aIter, 3067145622)))) {
511
0
        mozilla::ipc::SentinelReadError("Error deserializing 'browserWouldUpgradeInsecureRequests' (bool) member of 'LoadInfoArgs'");
512
0
        return false;
513
0
    }
514
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->verifySignedContent())))))) {
515
0
        (aActor)->FatalError("Error deserializing 'verifySignedContent' (bool) member of 'LoadInfoArgs'");
516
0
        return false;
517
0
    }
518
0
    // Sentinel = 'verifySignedContent'
519
0
    if ((!((aMsg)->ReadSentinel(aIter, 4254189773)))) {
520
0
        mozilla::ipc::SentinelReadError("Error deserializing 'verifySignedContent' (bool) member of 'LoadInfoArgs'");
521
0
        return false;
522
0
    }
523
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->enforceSRI())))))) {
524
0
        (aActor)->FatalError("Error deserializing 'enforceSRI' (bool) member of 'LoadInfoArgs'");
525
0
        return false;
526
0
    }
527
0
    // Sentinel = 'enforceSRI'
528
0
    if ((!((aMsg)->ReadSentinel(aIter, 3434063852)))) {
529
0
        mozilla::ipc::SentinelReadError("Error deserializing 'enforceSRI' (bool) member of 'LoadInfoArgs'");
530
0
        return false;
531
0
    }
532
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->forceAllowDataURI())))))) {
533
0
        (aActor)->FatalError("Error deserializing 'forceAllowDataURI' (bool) member of 'LoadInfoArgs'");
534
0
        return false;
535
0
    }
536
0
    // Sentinel = 'forceAllowDataURI'
537
0
    if ((!((aMsg)->ReadSentinel(aIter, 1654503267)))) {
538
0
        mozilla::ipc::SentinelReadError("Error deserializing 'forceAllowDataURI' (bool) member of 'LoadInfoArgs'");
539
0
        return false;
540
0
    }
541
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->allowInsecureRedirectToDataURI())))))) {
542
0
        (aActor)->FatalError("Error deserializing 'allowInsecureRedirectToDataURI' (bool) member of 'LoadInfoArgs'");
543
0
        return false;
544
0
    }
545
0
    // Sentinel = 'allowInsecureRedirectToDataURI'
546
0
    if ((!((aMsg)->ReadSentinel(aIter, 178664674)))) {
547
0
        mozilla::ipc::SentinelReadError("Error deserializing 'allowInsecureRedirectToDataURI' (bool) member of 'LoadInfoArgs'");
548
0
        return false;
549
0
    }
550
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->skipContentPolicyCheckForWebRequest())))))) {
551
0
        (aActor)->FatalError("Error deserializing 'skipContentPolicyCheckForWebRequest' (bool) member of 'LoadInfoArgs'");
552
0
        return false;
553
0
    }
554
0
    // Sentinel = 'skipContentPolicyCheckForWebRequest'
555
0
    if ((!((aMsg)->ReadSentinel(aIter, 3239213133)))) {
556
0
        mozilla::ipc::SentinelReadError("Error deserializing 'skipContentPolicyCheckForWebRequest' (bool) member of 'LoadInfoArgs'");
557
0
        return false;
558
0
    }
559
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->forceInheritPrincipalDropped())))))) {
560
0
        (aActor)->FatalError("Error deserializing 'forceInheritPrincipalDropped' (bool) member of 'LoadInfoArgs'");
561
0
        return false;
562
0
    }
563
0
    // Sentinel = 'forceInheritPrincipalDropped'
564
0
    if ((!((aMsg)->ReadSentinel(aIter, 2486717930)))) {
565
0
        mozilla::ipc::SentinelReadError("Error deserializing 'forceInheritPrincipalDropped' (bool) member of 'LoadInfoArgs'");
566
0
        return false;
567
0
    }
568
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->innerWindowID())))))) {
569
0
        (aActor)->FatalError("Error deserializing 'innerWindowID' (uint64_t) member of 'LoadInfoArgs'");
570
0
        return false;
571
0
    }
572
0
    // Sentinel = 'innerWindowID'
573
0
    if ((!((aMsg)->ReadSentinel(aIter, 4018103366)))) {
574
0
        mozilla::ipc::SentinelReadError("Error deserializing 'innerWindowID' (uint64_t) member of 'LoadInfoArgs'");
575
0
        return false;
576
0
    }
577
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->outerWindowID())))))) {
578
0
        (aActor)->FatalError("Error deserializing 'outerWindowID' (uint64_t) member of 'LoadInfoArgs'");
579
0
        return false;
580
0
    }
581
0
    // Sentinel = 'outerWindowID'
582
0
    if ((!((aMsg)->ReadSentinel(aIter, 2801565535)))) {
583
0
        mozilla::ipc::SentinelReadError("Error deserializing 'outerWindowID' (uint64_t) member of 'LoadInfoArgs'");
584
0
        return false;
585
0
    }
586
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->parentOuterWindowID())))))) {
587
0
        (aActor)->FatalError("Error deserializing 'parentOuterWindowID' (uint64_t) member of 'LoadInfoArgs'");
588
0
        return false;
589
0
    }
590
0
    // Sentinel = 'parentOuterWindowID'
591
0
    if ((!((aMsg)->ReadSentinel(aIter, 1687557921)))) {
592
0
        mozilla::ipc::SentinelReadError("Error deserializing 'parentOuterWindowID' (uint64_t) member of 'LoadInfoArgs'");
593
0
        return false;
594
0
    }
595
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->topOuterWindowID())))))) {
596
0
        (aActor)->FatalError("Error deserializing 'topOuterWindowID' (uint64_t) member of 'LoadInfoArgs'");
597
0
        return false;
598
0
    }
599
0
    // Sentinel = 'topOuterWindowID'
600
0
    if ((!((aMsg)->ReadSentinel(aIter, 2657698837)))) {
601
0
        mozilla::ipc::SentinelReadError("Error deserializing 'topOuterWindowID' (uint64_t) member of 'LoadInfoArgs'");
602
0
        return false;
603
0
    }
604
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->frameOuterWindowID())))))) {
605
0
        (aActor)->FatalError("Error deserializing 'frameOuterWindowID' (uint64_t) member of 'LoadInfoArgs'");
606
0
        return false;
607
0
    }
608
0
    // Sentinel = 'frameOuterWindowID'
609
0
    if ((!((aMsg)->ReadSentinel(aIter, 2873618957)))) {
610
0
        mozilla::ipc::SentinelReadError("Error deserializing 'frameOuterWindowID' (uint64_t) member of 'LoadInfoArgs'");
611
0
        return false;
612
0
    }
613
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->enforceSecurity())))))) {
614
0
        (aActor)->FatalError("Error deserializing 'enforceSecurity' (bool) member of 'LoadInfoArgs'");
615
0
        return false;
616
0
    }
617
0
    // Sentinel = 'enforceSecurity'
618
0
    if ((!((aMsg)->ReadSentinel(aIter, 646099439)))) {
619
0
        mozilla::ipc::SentinelReadError("Error deserializing 'enforceSecurity' (bool) member of 'LoadInfoArgs'");
620
0
        return false;
621
0
    }
622
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->initialSecurityCheckDone())))))) {
623
0
        (aActor)->FatalError("Error deserializing 'initialSecurityCheckDone' (bool) member of 'LoadInfoArgs'");
624
0
        return false;
625
0
    }
626
0
    // Sentinel = 'initialSecurityCheckDone'
627
0
    if ((!((aMsg)->ReadSentinel(aIter, 872070054)))) {
628
0
        mozilla::ipc::SentinelReadError("Error deserializing 'initialSecurityCheckDone' (bool) member of 'LoadInfoArgs'");
629
0
        return false;
630
0
    }
631
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->isInThirdPartyContext())))))) {
632
0
        (aActor)->FatalError("Error deserializing 'isInThirdPartyContext' (bool) member of 'LoadInfoArgs'");
633
0
        return false;
634
0
    }
635
0
    // Sentinel = 'isInThirdPartyContext'
636
0
    if ((!((aMsg)->ReadSentinel(aIter, 525088520)))) {
637
0
        mozilla::ipc::SentinelReadError("Error deserializing 'isInThirdPartyContext' (bool) member of 'LoadInfoArgs'");
638
0
        return false;
639
0
    }
640
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->isDocshellReload())))))) {
641
0
        (aActor)->FatalError("Error deserializing 'isDocshellReload' (bool) member of 'LoadInfoArgs'");
642
0
        return false;
643
0
    }
644
0
    // Sentinel = 'isDocshellReload'
645
0
    if ((!((aMsg)->ReadSentinel(aIter, 683062623)))) {
646
0
        mozilla::ipc::SentinelReadError("Error deserializing 'isDocshellReload' (bool) member of 'LoadInfoArgs'");
647
0
        return false;
648
0
    }
649
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->sendCSPViolationEvents())))))) {
650
0
        (aActor)->FatalError("Error deserializing 'sendCSPViolationEvents' (bool) member of 'LoadInfoArgs'");
651
0
        return false;
652
0
    }
653
0
    // Sentinel = 'sendCSPViolationEvents'
654
0
    if ((!((aMsg)->ReadSentinel(aIter, 1532838232)))) {
655
0
        mozilla::ipc::SentinelReadError("Error deserializing 'sendCSPViolationEvents' (bool) member of 'LoadInfoArgs'");
656
0
        return false;
657
0
    }
658
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->originAttributes())))))) {
659
0
        (aActor)->FatalError("Error deserializing 'originAttributes' (OriginAttributes) member of 'LoadInfoArgs'");
660
0
        return false;
661
0
    }
662
0
    // Sentinel = 'originAttributes'
663
0
    if ((!((aMsg)->ReadSentinel(aIter, 2655275965)))) {
664
0
        mozilla::ipc::SentinelReadError("Error deserializing 'originAttributes' (OriginAttributes) member of 'LoadInfoArgs'");
665
0
        return false;
666
0
    }
667
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->redirectChainIncludingInternalRedirects())))))) {
668
0
        (aActor)->FatalError("Error deserializing 'redirectChainIncludingInternalRedirects' (RedirectHistoryEntryInfo[]) member of 'LoadInfoArgs'");
669
0
        return false;
670
0
    }
671
0
    // Sentinel = 'redirectChainIncludingInternalRedirects'
672
0
    if ((!((aMsg)->ReadSentinel(aIter, 967904109)))) {
673
0
        mozilla::ipc::SentinelReadError("Error deserializing 'redirectChainIncludingInternalRedirects' (RedirectHistoryEntryInfo[]) member of 'LoadInfoArgs'");
674
0
        return false;
675
0
    }
676
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->redirectChain())))))) {
677
0
        (aActor)->FatalError("Error deserializing 'redirectChain' (RedirectHistoryEntryInfo[]) member of 'LoadInfoArgs'");
678
0
        return false;
679
0
    }
680
0
    // Sentinel = 'redirectChain'
681
0
    if ((!((aMsg)->ReadSentinel(aIter, 2550711462)))) {
682
0
        mozilla::ipc::SentinelReadError("Error deserializing 'redirectChain' (RedirectHistoryEntryInfo[]) member of 'LoadInfoArgs'");
683
0
        return false;
684
0
    }
685
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->ancestorPrincipals())))))) {
686
0
        (aActor)->FatalError("Error deserializing 'ancestorPrincipals' (PrincipalInfo[]) member of 'LoadInfoArgs'");
687
0
        return false;
688
0
    }
689
0
    // Sentinel = 'ancestorPrincipals'
690
0
    if ((!((aMsg)->ReadSentinel(aIter, 2979732852)))) {
691
0
        mozilla::ipc::SentinelReadError("Error deserializing 'ancestorPrincipals' (PrincipalInfo[]) member of 'LoadInfoArgs'");
692
0
        return false;
693
0
    }
694
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->ancestorOuterWindowIDs())))))) {
695
0
        (aActor)->FatalError("Error deserializing 'ancestorOuterWindowIDs' (uint64_t[]) member of 'LoadInfoArgs'");
696
0
        return false;
697
0
    }
698
0
    // Sentinel = 'ancestorOuterWindowIDs'
699
0
    if ((!((aMsg)->ReadSentinel(aIter, 3296534340)))) {
700
0
        mozilla::ipc::SentinelReadError("Error deserializing 'ancestorOuterWindowIDs' (uint64_t[]) member of 'LoadInfoArgs'");
701
0
        return false;
702
0
    }
703
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->clientInfo())))))) {
704
0
        (aActor)->FatalError("Error deserializing 'clientInfo' (OptionalIPCClientInfo) member of 'LoadInfoArgs'");
705
0
        return false;
706
0
    }
707
0
    // Sentinel = 'clientInfo'
708
0
    if ((!((aMsg)->ReadSentinel(aIter, 3036619267)))) {
709
0
        mozilla::ipc::SentinelReadError("Error deserializing 'clientInfo' (OptionalIPCClientInfo) member of 'LoadInfoArgs'");
710
0
        return false;
711
0
    }
712
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->reservedClientInfo())))))) {
713
0
        (aActor)->FatalError("Error deserializing 'reservedClientInfo' (OptionalIPCClientInfo) member of 'LoadInfoArgs'");
714
0
        return false;
715
0
    }
716
0
    // Sentinel = 'reservedClientInfo'
717
0
    if ((!((aMsg)->ReadSentinel(aIter, 48479967)))) {
718
0
        mozilla::ipc::SentinelReadError("Error deserializing 'reservedClientInfo' (OptionalIPCClientInfo) member of 'LoadInfoArgs'");
719
0
        return false;
720
0
    }
721
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->initialClientInfo())))))) {
722
0
        (aActor)->FatalError("Error deserializing 'initialClientInfo' (OptionalIPCClientInfo) member of 'LoadInfoArgs'");
723
0
        return false;
724
0
    }
725
0
    // Sentinel = 'initialClientInfo'
726
0
    if ((!((aMsg)->ReadSentinel(aIter, 3934599036)))) {
727
0
        mozilla::ipc::SentinelReadError("Error deserializing 'initialClientInfo' (OptionalIPCClientInfo) member of 'LoadInfoArgs'");
728
0
        return false;
729
0
    }
730
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->controller())))))) {
731
0
        (aActor)->FatalError("Error deserializing 'controller' (OptionalIPCServiceWorkerDescriptor) member of 'LoadInfoArgs'");
732
0
        return false;
733
0
    }
734
0
    // Sentinel = 'controller'
735
0
    if ((!((aMsg)->ReadSentinel(aIter, 1871723858)))) {
736
0
        mozilla::ipc::SentinelReadError("Error deserializing 'controller' (OptionalIPCServiceWorkerDescriptor) member of 'LoadInfoArgs'");
737
0
        return false;
738
0
    }
739
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->corsUnsafeHeaders())))))) {
740
0
        (aActor)->FatalError("Error deserializing 'corsUnsafeHeaders' (nsCString[]) member of 'LoadInfoArgs'");
741
0
        return false;
742
0
    }
743
0
    // Sentinel = 'corsUnsafeHeaders'
744
0
    if ((!((aMsg)->ReadSentinel(aIter, 2369694136)))) {
745
0
        mozilla::ipc::SentinelReadError("Error deserializing 'corsUnsafeHeaders' (nsCString[]) member of 'LoadInfoArgs'");
746
0
        return false;
747
0
    }
748
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->forcePreflight())))))) {
749
0
        (aActor)->FatalError("Error deserializing 'forcePreflight' (bool) member of 'LoadInfoArgs'");
750
0
        return false;
751
0
    }
752
0
    // Sentinel = 'forcePreflight'
753
0
    if ((!((aMsg)->ReadSentinel(aIter, 2198503272)))) {
754
0
        mozilla::ipc::SentinelReadError("Error deserializing 'forcePreflight' (bool) member of 'LoadInfoArgs'");
755
0
        return false;
756
0
    }
757
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->isPreflight())))))) {
758
0
        (aActor)->FatalError("Error deserializing 'isPreflight' (bool) member of 'LoadInfoArgs'");
759
0
        return false;
760
0
    }
761
0
    // Sentinel = 'isPreflight'
762
0
    if ((!((aMsg)->ReadSentinel(aIter, 3402379662)))) {
763
0
        mozilla::ipc::SentinelReadError("Error deserializing 'isPreflight' (bool) member of 'LoadInfoArgs'");
764
0
        return false;
765
0
    }
766
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->loadTriggeredFromExternal())))))) {
767
0
        (aActor)->FatalError("Error deserializing 'loadTriggeredFromExternal' (bool) member of 'LoadInfoArgs'");
768
0
        return false;
769
0
    }
770
0
    // Sentinel = 'loadTriggeredFromExternal'
771
0
    if ((!((aMsg)->ReadSentinel(aIter, 273089659)))) {
772
0
        mozilla::ipc::SentinelReadError("Error deserializing 'loadTriggeredFromExternal' (bool) member of 'LoadInfoArgs'");
773
0
        return false;
774
0
    }
775
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->serviceWorkerTaintingSynthesized())))))) {
776
0
        (aActor)->FatalError("Error deserializing 'serviceWorkerTaintingSynthesized' (bool) member of 'LoadInfoArgs'");
777
0
        return false;
778
0
    }
779
0
    // Sentinel = 'serviceWorkerTaintingSynthesized'
780
0
    if ((!((aMsg)->ReadSentinel(aIter, 662133457)))) {
781
0
        mozilla::ipc::SentinelReadError("Error deserializing 'serviceWorkerTaintingSynthesized' (bool) member of 'LoadInfoArgs'");
782
0
        return false;
783
0
    }
784
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->documentHasUserInteracted())))))) {
785
0
        (aActor)->FatalError("Error deserializing 'documentHasUserInteracted' (bool) member of 'LoadInfoArgs'");
786
0
        return false;
787
0
    }
788
0
    // Sentinel = 'documentHasUserInteracted'
789
0
    if ((!((aMsg)->ReadSentinel(aIter, 4199017112)))) {
790
0
        mozilla::ipc::SentinelReadError("Error deserializing 'documentHasUserInteracted' (bool) member of 'LoadInfoArgs'");
791
0
        return false;
792
0
    }
793
0
    return true;
794
0
}
795
796
} // namespace ipc
797
} // namespace mozilla
798
799
//-----------------------------------------------------------------------------
800
// Method definitions for the IPDL type |union OptionalLoadInfoArgs|
801
//
802
namespace mozilla {
803
namespace net {
804
auto OptionalLoadInfoArgs::MaybeDestroy(Type aNewType) -> bool
805
0
{
806
0
    if ((mType) == (T__None)) {
807
0
        return true;
808
0
    }
809
0
    if ((mType) == (aNewType)) {
810
0
        return false;
811
0
    }
812
0
    switch (mType) {
813
0
    case Tvoid_t:
814
0
        {
815
0
            (ptr_void_t())->~void_t__tdef();
816
0
            break;
817
0
        }
818
0
    case TLoadInfoArgs:
819
0
        {
820
0
            (ptr_LoadInfoArgs())->~LoadInfoArgs__tdef();
821
0
            break;
822
0
        }
823
0
    default:
824
0
        {
825
0
            mozilla::ipc::LogicError("not reached");
826
0
            break;
827
0
        }
828
0
    }
829
0
    return true;
830
0
}
831
832
MOZ_IMPLICIT OptionalLoadInfoArgs::OptionalLoadInfoArgs(const void_t& aOther)
833
0
{
834
0
    new (mozilla::KnownNotNull, ptr_void_t()) void_t(aOther);
835
0
    mType = Tvoid_t;
836
0
}
837
838
MOZ_IMPLICIT OptionalLoadInfoArgs::OptionalLoadInfoArgs(void_t&& aOther)
839
0
{
840
0
    new (mozilla::KnownNotNull, ptr_void_t()) void_t(std::move(aOther));
841
0
    mType = Tvoid_t;
842
0
}
843
844
MOZ_IMPLICIT OptionalLoadInfoArgs::OptionalLoadInfoArgs(const LoadInfoArgs& aOther)
845
0
{
846
0
    new (mozilla::KnownNotNull, ptr_LoadInfoArgs()) LoadInfoArgs(aOther);
847
0
    mType = TLoadInfoArgs;
848
0
}
849
850
MOZ_IMPLICIT OptionalLoadInfoArgs::OptionalLoadInfoArgs(LoadInfoArgs&& aOther)
851
0
{
852
0
    new (mozilla::KnownNotNull, ptr_LoadInfoArgs()) LoadInfoArgs(std::move(aOther));
853
0
    mType = TLoadInfoArgs;
854
0
}
855
856
MOZ_IMPLICIT OptionalLoadInfoArgs::OptionalLoadInfoArgs(const OptionalLoadInfoArgs& aOther)
857
0
{
858
0
    (aOther).AssertSanity();
859
0
    switch ((aOther).type()) {
860
0
    case Tvoid_t:
861
0
        {
862
0
            new (mozilla::KnownNotNull, ptr_void_t()) void_t((aOther).get_void_t());
863
0
            break;
864
0
        }
865
0
    case TLoadInfoArgs:
866
0
        {
867
0
            new (mozilla::KnownNotNull, ptr_LoadInfoArgs()) LoadInfoArgs((aOther).get_LoadInfoArgs());
868
0
            break;
869
0
        }
870
0
    case T__None:
871
0
        {
872
0
            break;
873
0
        }
874
0
    default:
875
0
        {
876
0
            mozilla::ipc::LogicError("unreached");
877
0
            return;
878
0
        }
879
0
    }
880
0
    mType = (aOther).type();
881
0
}
882
883
MOZ_IMPLICIT OptionalLoadInfoArgs::OptionalLoadInfoArgs(OptionalLoadInfoArgs&& aOther)
884
0
{
885
0
    (aOther).AssertSanity();
886
0
    Type t = (aOther).type();
887
0
    switch (t) {
888
0
    case Tvoid_t:
889
0
        {
890
0
            new (mozilla::KnownNotNull, ptr_void_t()) void_t(std::move((aOther).get_void_t()));
891
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
892
0
            break;
893
0
        }
894
0
    case TLoadInfoArgs:
895
0
        {
896
0
            new (mozilla::KnownNotNull, ptr_LoadInfoArgs()) LoadInfoArgs(std::move((aOther).get_LoadInfoArgs()));
897
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
898
0
            break;
899
0
        }
900
0
    case T__None:
901
0
        {
902
0
            break;
903
0
        }
904
0
    default:
905
0
        {
906
0
            mozilla::ipc::LogicError("unreached");
907
0
            return;
908
0
        }
909
0
    }
910
0
    (aOther).mType = T__None;
911
0
    mType = t;
912
0
}
913
914
OptionalLoadInfoArgs::~OptionalLoadInfoArgs()
915
0
{
916
0
    static_cast<void>(MaybeDestroy(T__None));
917
0
}
918
919
auto OptionalLoadInfoArgs::operator=(const void_t& aRhs) -> OptionalLoadInfoArgs&
920
0
{
921
0
    if (MaybeDestroy(Tvoid_t)) {
922
0
        new (mozilla::KnownNotNull, ptr_void_t()) void_t;
923
0
    }
924
0
    (*(ptr_void_t())) = aRhs;
925
0
    mType = Tvoid_t;
926
0
    return (*(this));
927
0
}
928
929
auto OptionalLoadInfoArgs::operator=(void_t&& aRhs) -> OptionalLoadInfoArgs&
930
0
{
931
0
    if (MaybeDestroy(Tvoid_t)) {
932
0
        new (mozilla::KnownNotNull, ptr_void_t()) void_t;
933
0
    }
934
0
    (*(ptr_void_t())) = std::move(aRhs);
935
0
    mType = Tvoid_t;
936
0
    return (*(this));
937
0
}
938
939
auto OptionalLoadInfoArgs::operator=(const LoadInfoArgs& aRhs) -> OptionalLoadInfoArgs&
940
0
{
941
0
    if (MaybeDestroy(TLoadInfoArgs)) {
942
0
        new (mozilla::KnownNotNull, ptr_LoadInfoArgs()) LoadInfoArgs;
943
0
    }
944
0
    (*(ptr_LoadInfoArgs())) = aRhs;
945
0
    mType = TLoadInfoArgs;
946
0
    return (*(this));
947
0
}
948
949
auto OptionalLoadInfoArgs::operator=(LoadInfoArgs&& aRhs) -> OptionalLoadInfoArgs&
950
0
{
951
0
    if (MaybeDestroy(TLoadInfoArgs)) {
952
0
        new (mozilla::KnownNotNull, ptr_LoadInfoArgs()) LoadInfoArgs;
953
0
    }
954
0
    (*(ptr_LoadInfoArgs())) = std::move(aRhs);
955
0
    mType = TLoadInfoArgs;
956
0
    return (*(this));
957
0
}
958
959
auto OptionalLoadInfoArgs::operator=(const OptionalLoadInfoArgs& aRhs) -> OptionalLoadInfoArgs&
960
0
{
961
0
    (aRhs).AssertSanity();
962
0
    Type t = (aRhs).type();
963
0
    switch (t) {
964
0
    case Tvoid_t:
965
0
        {
966
0
            if (MaybeDestroy(t)) {
967
0
                new (mozilla::KnownNotNull, ptr_void_t()) void_t;
968
0
            }
969
0
            (*(ptr_void_t())) = (aRhs).get_void_t();
970
0
            break;
971
0
        }
972
0
    case TLoadInfoArgs:
973
0
        {
974
0
            if (MaybeDestroy(t)) {
975
0
                new (mozilla::KnownNotNull, ptr_LoadInfoArgs()) LoadInfoArgs;
976
0
            }
977
0
            (*(ptr_LoadInfoArgs())) = (aRhs).get_LoadInfoArgs();
978
0
            break;
979
0
        }
980
0
    case T__None:
981
0
        {
982
0
            static_cast<void>(MaybeDestroy(t));
983
0
            break;
984
0
        }
985
0
    default:
986
0
        {
987
0
            mozilla::ipc::LogicError("unreached");
988
0
            break;
989
0
        }
990
0
    }
991
0
    mType = t;
992
0
    return (*(this));
993
0
}
994
995
auto OptionalLoadInfoArgs::operator=(OptionalLoadInfoArgs&& aRhs) -> OptionalLoadInfoArgs&
996
0
{
997
0
    (aRhs).AssertSanity();
998
0
    Type t = (aRhs).type();
999
0
    switch (t) {
1000
0
    case Tvoid_t:
1001
0
        {
1002
0
            if (MaybeDestroy(t)) {
1003
0
                new (mozilla::KnownNotNull, ptr_void_t()) void_t;
1004
0
            }
1005
0
            (*(ptr_void_t())) = std::move((aRhs).get_void_t());
1006
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1007
0
            break;
1008
0
        }
1009
0
    case TLoadInfoArgs:
1010
0
        {
1011
0
            if (MaybeDestroy(t)) {
1012
0
                new (mozilla::KnownNotNull, ptr_LoadInfoArgs()) LoadInfoArgs;
1013
0
            }
1014
0
            (*(ptr_LoadInfoArgs())) = std::move((aRhs).get_LoadInfoArgs());
1015
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1016
0
            break;
1017
0
        }
1018
0
    case T__None:
1019
0
        {
1020
0
            static_cast<void>(MaybeDestroy(t));
1021
0
            break;
1022
0
        }
1023
0
    default:
1024
0
        {
1025
0
            mozilla::ipc::LogicError("unreached");
1026
0
            break;
1027
0
        }
1028
0
    }
1029
0
    (aRhs).mType = T__None;
1030
0
    mType = t;
1031
0
    return (*(this));
1032
0
}
1033
1034
auto OptionalLoadInfoArgs::operator==(const void_t& aRhs) const -> bool
1035
0
{
1036
0
    return (get_void_t()) == (aRhs);
1037
0
}
1038
1039
auto OptionalLoadInfoArgs::operator==(const LoadInfoArgs& aRhs) const -> bool
1040
0
{
1041
0
    return (get_LoadInfoArgs()) == (aRhs);
1042
0
}
1043
1044
auto OptionalLoadInfoArgs::operator==(const OptionalLoadInfoArgs& aRhs) const -> bool
1045
0
{
1046
0
    if ((type()) != ((aRhs).type())) {
1047
0
        return false;
1048
0
    }
1049
0
1050
0
    switch (type()) {
1051
0
    case Tvoid_t:
1052
0
        {
1053
0
            return (get_void_t()) == ((aRhs).get_void_t());
1054
0
        }
1055
0
    case TLoadInfoArgs:
1056
0
        {
1057
0
            return (get_LoadInfoArgs()) == ((aRhs).get_LoadInfoArgs());
1058
0
        }
1059
0
    default:
1060
0
        {
1061
0
            mozilla::ipc::LogicError("unreached");
1062
0
            return false;
1063
0
        }
1064
0
    }
1065
0
}
1066
1067
auto OptionalLoadInfoArgs::get(void_t* aOutValue) const -> void
1068
0
{
1069
0
    (*(aOutValue)) = get_void_t();
1070
0
}
1071
1072
auto OptionalLoadInfoArgs::get(LoadInfoArgs* aOutValue) const -> void
1073
0
{
1074
0
    (*(aOutValue)) = get_LoadInfoArgs();
1075
0
}
1076
1077
} // namespace net
1078
} // namespace mozilla
1079
1080
namespace mozilla {
1081
namespace ipc {
1082
auto IPDLParamTraits<mozilla::net::OptionalLoadInfoArgs>::Write(
1083
        IPC::Message* aMsg,
1084
        mozilla::ipc::IProtocol* aActor,
1085
        const paramType& aVar) -> void
1086
{
1087
    typedef mozilla::net::OptionalLoadInfoArgs union__;
1088
    int type;
1089
    type = (aVar).type();
1090
    WriteIPDLParam(aMsg, aActor, type);
1091
    // Sentinel = 'OptionalLoadInfoArgs'
1092
    (aMsg)->WriteSentinel(1063815263);
1093
1094
    switch (type) {
1095
    case union__::Tvoid_t:
1096
        {
1097
            WriteIPDLParam(aMsg, aActor, (aVar).get_void_t());
1098
            // Sentinel = 'Tvoid_t'
1099
            (aMsg)->WriteSentinel(3041273328);
1100
            return;
1101
        }
1102
    case union__::TLoadInfoArgs:
1103
        {
1104
            WriteIPDLParam(aMsg, aActor, (aVar).get_LoadInfoArgs());
1105
            // Sentinel = 'TLoadInfoArgs'
1106
            (aMsg)->WriteSentinel(3550797606);
1107
            return;
1108
        }
1109
    default:
1110
        {
1111
            (aActor)->FatalError("unknown union type");
1112
            return;
1113
        }
1114
    }
1115
}
1116
1117
auto IPDLParamTraits<mozilla::net::OptionalLoadInfoArgs>::Read(
1118
        const IPC::Message* aMsg,
1119
        PickleIterator* aIter,
1120
        mozilla::ipc::IProtocol* aActor,
1121
        paramType* aVar) -> bool
1122
0
{
1123
0
    typedef mozilla::net::OptionalLoadInfoArgs union__;
1124
0
    int type;
1125
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
1126
0
        (aActor)->FatalError("Error deserializing type of union OptionalLoadInfoArgs");
1127
0
        return false;
1128
0
    }
1129
0
    // Sentinel = 'OptionalLoadInfoArgs'
1130
0
    if ((!((aMsg)->ReadSentinel(aIter, 1063815263)))) {
1131
0
        mozilla::ipc::SentinelReadError("Error deserializing type of union OptionalLoadInfoArgs");
1132
0
        return false;
1133
0
    }
1134
0
1135
0
    switch (type) {
1136
0
    case union__::Tvoid_t:
1137
0
        {
1138
0
            mozilla::void_t tmp = mozilla::void_t();
1139
0
            (*(aVar)) = tmp;
1140
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_void_t())))))) {
1141
0
                (aActor)->FatalError("Error deserializing variant Tvoid_t of union OptionalLoadInfoArgs");
1142
0
                return false;
1143
0
            }
1144
0
            // Sentinel = 'Tvoid_t'
1145
0
            if ((!((aMsg)->ReadSentinel(aIter, 3041273328)))) {
1146
0
                mozilla::ipc::SentinelReadError("Error deserializing variant Tvoid_t of union OptionalLoadInfoArgs");
1147
0
                return false;
1148
0
            }
1149
0
            return true;
1150
0
        }
1151
0
    case union__::TLoadInfoArgs:
1152
0
        {
1153
0
            mozilla::net::LoadInfoArgs tmp = mozilla::net::LoadInfoArgs();
1154
0
            (*(aVar)) = tmp;
1155
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_LoadInfoArgs())))))) {
1156
0
                (aActor)->FatalError("Error deserializing variant TLoadInfoArgs of union OptionalLoadInfoArgs");
1157
0
                return false;
1158
0
            }
1159
0
            // Sentinel = 'TLoadInfoArgs'
1160
0
            if ((!((aMsg)->ReadSentinel(aIter, 3550797606)))) {
1161
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TLoadInfoArgs of union OptionalLoadInfoArgs");
1162
0
                return false;
1163
0
            }
1164
0
            return true;
1165
0
        }
1166
0
    default:
1167
0
        {
1168
0
            (aActor)->FatalError("unknown union type");
1169
0
            return false;
1170
0
        }
1171
0
    }
1172
0
}
1173
1174
} // namespace ipc
1175
} // namespace mozilla
1176
1177
//-----------------------------------------------------------------------------
1178
// Method definitions for the IPDL type |struct ParentLoadInfoForwarderArgs|
1179
//
1180
namespace mozilla {
1181
namespace net {
1182
auto ParentLoadInfoForwarderArgs::operator==(const ParentLoadInfoForwarderArgs& _o) const -> bool
1183
0
{
1184
0
    if ((!((allowInsecureRedirectToDataURI()) == ((_o).allowInsecureRedirectToDataURI())))) {
1185
0
        return false;
1186
0
    }
1187
0
    if ((!((controller()) == ((_o).controller())))) {
1188
0
        return false;
1189
0
    }
1190
0
    if ((!((tainting()) == ((_o).tainting())))) {
1191
0
        return false;
1192
0
    }
1193
0
    if ((!((serviceWorkerTaintingSynthesized()) == ((_o).serviceWorkerTaintingSynthesized())))) {
1194
0
        return false;
1195
0
    }
1196
0
    if ((!((isTracker()) == ((_o).isTracker())))) {
1197
0
        return false;
1198
0
    }
1199
0
    if ((!((isTrackerBlocked()) == ((_o).isTrackerBlocked())))) {
1200
0
        return false;
1201
0
    }
1202
0
    if ((!((trackerBlockedReason()) == ((_o).trackerBlockedReason())))) {
1203
0
        return false;
1204
0
    }
1205
0
    if ((!((documentHasUserInteracted()) == ((_o).documentHasUserInteracted())))) {
1206
0
        return false;
1207
0
    }
1208
0
    return true;
1209
0
}
1210
1211
auto ParentLoadInfoForwarderArgs::operator!=(const ParentLoadInfoForwarderArgs& _o) const -> bool
1212
0
{
1213
0
    return (!(operator==(_o)));
1214
0
}
1215
1216
} // namespace net
1217
} // namespace mozilla
1218
1219
namespace mozilla {
1220
namespace ipc {
1221
auto IPDLParamTraits<mozilla::net::ParentLoadInfoForwarderArgs>::Write(
1222
        IPC::Message* aMsg,
1223
        mozilla::ipc::IProtocol* aActor,
1224
        const paramType& aVar) -> void
1225
0
{
1226
0
    WriteIPDLParam(aMsg, aActor, (aVar).allowInsecureRedirectToDataURI());
1227
0
    // Sentinel = 'allowInsecureRedirectToDataURI'
1228
0
    (aMsg)->WriteSentinel(178664674);
1229
0
    WriteIPDLParam(aMsg, aActor, (aVar).controller());
1230
0
    // Sentinel = 'controller'
1231
0
    (aMsg)->WriteSentinel(1871723858);
1232
0
    WriteIPDLParam(aMsg, aActor, (aVar).tainting());
1233
0
    // Sentinel = 'tainting'
1234
0
    (aMsg)->WriteSentinel(2959281848);
1235
0
    WriteIPDLParam(aMsg, aActor, (aVar).serviceWorkerTaintingSynthesized());
1236
0
    // Sentinel = 'serviceWorkerTaintingSynthesized'
1237
0
    (aMsg)->WriteSentinel(662133457);
1238
0
    WriteIPDLParam(aMsg, aActor, (aVar).isTracker());
1239
0
    // Sentinel = 'isTracker'
1240
0
    (aMsg)->WriteSentinel(1528148053);
1241
0
    WriteIPDLParam(aMsg, aActor, (aVar).isTrackerBlocked());
1242
0
    // Sentinel = 'isTrackerBlocked'
1243
0
    (aMsg)->WriteSentinel(3237039340);
1244
0
    WriteIPDLParam(aMsg, aActor, (aVar).trackerBlockedReason());
1245
0
    // Sentinel = 'trackerBlockedReason'
1246
0
    (aMsg)->WriteSentinel(1524957924);
1247
0
    WriteIPDLParam(aMsg, aActor, (aVar).documentHasUserInteracted());
1248
0
    // Sentinel = 'documentHasUserInteracted'
1249
0
    (aMsg)->WriteSentinel(4199017112);
1250
0
}
1251
1252
auto IPDLParamTraits<mozilla::net::ParentLoadInfoForwarderArgs>::Read(
1253
        const IPC::Message* aMsg,
1254
        PickleIterator* aIter,
1255
        mozilla::ipc::IProtocol* aActor,
1256
        paramType* aVar) -> bool
1257
0
{
1258
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->allowInsecureRedirectToDataURI())))))) {
1259
0
        (aActor)->FatalError("Error deserializing 'allowInsecureRedirectToDataURI' (bool) member of 'ParentLoadInfoForwarderArgs'");
1260
0
        return false;
1261
0
    }
1262
0
    // Sentinel = 'allowInsecureRedirectToDataURI'
1263
0
    if ((!((aMsg)->ReadSentinel(aIter, 178664674)))) {
1264
0
        mozilla::ipc::SentinelReadError("Error deserializing 'allowInsecureRedirectToDataURI' (bool) member of 'ParentLoadInfoForwarderArgs'");
1265
0
        return false;
1266
0
    }
1267
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->controller())))))) {
1268
0
        (aActor)->FatalError("Error deserializing 'controller' (OptionalIPCServiceWorkerDescriptor) member of 'ParentLoadInfoForwarderArgs'");
1269
0
        return false;
1270
0
    }
1271
0
    // Sentinel = 'controller'
1272
0
    if ((!((aMsg)->ReadSentinel(aIter, 1871723858)))) {
1273
0
        mozilla::ipc::SentinelReadError("Error deserializing 'controller' (OptionalIPCServiceWorkerDescriptor) member of 'ParentLoadInfoForwarderArgs'");
1274
0
        return false;
1275
0
    }
1276
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->tainting())))))) {
1277
0
        (aActor)->FatalError("Error deserializing 'tainting' (uint32_t) member of 'ParentLoadInfoForwarderArgs'");
1278
0
        return false;
1279
0
    }
1280
0
    // Sentinel = 'tainting'
1281
0
    if ((!((aMsg)->ReadSentinel(aIter, 2959281848)))) {
1282
0
        mozilla::ipc::SentinelReadError("Error deserializing 'tainting' (uint32_t) member of 'ParentLoadInfoForwarderArgs'");
1283
0
        return false;
1284
0
    }
1285
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->serviceWorkerTaintingSynthesized())))))) {
1286
0
        (aActor)->FatalError("Error deserializing 'serviceWorkerTaintingSynthesized' (bool) member of 'ParentLoadInfoForwarderArgs'");
1287
0
        return false;
1288
0
    }
1289
0
    // Sentinel = 'serviceWorkerTaintingSynthesized'
1290
0
    if ((!((aMsg)->ReadSentinel(aIter, 662133457)))) {
1291
0
        mozilla::ipc::SentinelReadError("Error deserializing 'serviceWorkerTaintingSynthesized' (bool) member of 'ParentLoadInfoForwarderArgs'");
1292
0
        return false;
1293
0
    }
1294
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->isTracker())))))) {
1295
0
        (aActor)->FatalError("Error deserializing 'isTracker' (bool) member of 'ParentLoadInfoForwarderArgs'");
1296
0
        return false;
1297
0
    }
1298
0
    // Sentinel = 'isTracker'
1299
0
    if ((!((aMsg)->ReadSentinel(aIter, 1528148053)))) {
1300
0
        mozilla::ipc::SentinelReadError("Error deserializing 'isTracker' (bool) member of 'ParentLoadInfoForwarderArgs'");
1301
0
        return false;
1302
0
    }
1303
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->isTrackerBlocked())))))) {
1304
0
        (aActor)->FatalError("Error deserializing 'isTrackerBlocked' (bool) member of 'ParentLoadInfoForwarderArgs'");
1305
0
        return false;
1306
0
    }
1307
0
    // Sentinel = 'isTrackerBlocked'
1308
0
    if ((!((aMsg)->ReadSentinel(aIter, 3237039340)))) {
1309
0
        mozilla::ipc::SentinelReadError("Error deserializing 'isTrackerBlocked' (bool) member of 'ParentLoadInfoForwarderArgs'");
1310
0
        return false;
1311
0
    }
1312
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->trackerBlockedReason())))))) {
1313
0
        (aActor)->FatalError("Error deserializing 'trackerBlockedReason' (LABELS_DOCUMENT_ANALYTICS_TRACKER_FASTBLOCKED) member of 'ParentLoadInfoForwarderArgs'");
1314
0
        return false;
1315
0
    }
1316
0
    // Sentinel = 'trackerBlockedReason'
1317
0
    if ((!((aMsg)->ReadSentinel(aIter, 1524957924)))) {
1318
0
        mozilla::ipc::SentinelReadError("Error deserializing 'trackerBlockedReason' (LABELS_DOCUMENT_ANALYTICS_TRACKER_FASTBLOCKED) member of 'ParentLoadInfoForwarderArgs'");
1319
0
        return false;
1320
0
    }
1321
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->documentHasUserInteracted())))))) {
1322
0
        (aActor)->FatalError("Error deserializing 'documentHasUserInteracted' (bool) member of 'ParentLoadInfoForwarderArgs'");
1323
0
        return false;
1324
0
    }
1325
0
    // Sentinel = 'documentHasUserInteracted'
1326
0
    if ((!((aMsg)->ReadSentinel(aIter, 4199017112)))) {
1327
0
        mozilla::ipc::SentinelReadError("Error deserializing 'documentHasUserInteracted' (bool) member of 'ParentLoadInfoForwarderArgs'");
1328
0
        return false;
1329
0
    }
1330
0
    return true;
1331
0
}
1332
1333
} // namespace ipc
1334
} // namespace mozilla
1335
1336
//-----------------------------------------------------------------------------
1337
// Method definitions for the IPDL type |struct ChildLoadInfoForwarderArgs|
1338
//
1339
namespace mozilla {
1340
namespace net {
1341
auto ChildLoadInfoForwarderArgs::operator==(const ChildLoadInfoForwarderArgs& _o) const -> bool
1342
0
{
1343
0
    if ((!((reservedClientInfo()) == ((_o).reservedClientInfo())))) {
1344
0
        return false;
1345
0
    }
1346
0
    if ((!((initialClientInfo()) == ((_o).initialClientInfo())))) {
1347
0
        return false;
1348
0
    }
1349
0
    if ((!((controller()) == ((_o).controller())))) {
1350
0
        return false;
1351
0
    }
1352
0
    return true;
1353
0
}
1354
1355
auto ChildLoadInfoForwarderArgs::operator!=(const ChildLoadInfoForwarderArgs& _o) const -> bool
1356
0
{
1357
0
    return (!(operator==(_o)));
1358
0
}
1359
1360
} // namespace net
1361
} // namespace mozilla
1362
1363
namespace mozilla {
1364
namespace ipc {
1365
auto IPDLParamTraits<mozilla::net::ChildLoadInfoForwarderArgs>::Write(
1366
        IPC::Message* aMsg,
1367
        mozilla::ipc::IProtocol* aActor,
1368
        const paramType& aVar) -> void
1369
0
{
1370
0
    WriteIPDLParam(aMsg, aActor, (aVar).reservedClientInfo());
1371
0
    // Sentinel = 'reservedClientInfo'
1372
0
    (aMsg)->WriteSentinel(48479967);
1373
0
    WriteIPDLParam(aMsg, aActor, (aVar).initialClientInfo());
1374
0
    // Sentinel = 'initialClientInfo'
1375
0
    (aMsg)->WriteSentinel(3934599036);
1376
0
    WriteIPDLParam(aMsg, aActor, (aVar).controller());
1377
0
    // Sentinel = 'controller'
1378
0
    (aMsg)->WriteSentinel(1871723858);
1379
0
}
1380
1381
auto IPDLParamTraits<mozilla::net::ChildLoadInfoForwarderArgs>::Read(
1382
        const IPC::Message* aMsg,
1383
        PickleIterator* aIter,
1384
        mozilla::ipc::IProtocol* aActor,
1385
        paramType* aVar) -> bool
1386
0
{
1387
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->reservedClientInfo())))))) {
1388
0
        (aActor)->FatalError("Error deserializing 'reservedClientInfo' (OptionalIPCClientInfo) member of 'ChildLoadInfoForwarderArgs'");
1389
0
        return false;
1390
0
    }
1391
0
    // Sentinel = 'reservedClientInfo'
1392
0
    if ((!((aMsg)->ReadSentinel(aIter, 48479967)))) {
1393
0
        mozilla::ipc::SentinelReadError("Error deserializing 'reservedClientInfo' (OptionalIPCClientInfo) member of 'ChildLoadInfoForwarderArgs'");
1394
0
        return false;
1395
0
    }
1396
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->initialClientInfo())))))) {
1397
0
        (aActor)->FatalError("Error deserializing 'initialClientInfo' (OptionalIPCClientInfo) member of 'ChildLoadInfoForwarderArgs'");
1398
0
        return false;
1399
0
    }
1400
0
    // Sentinel = 'initialClientInfo'
1401
0
    if ((!((aMsg)->ReadSentinel(aIter, 3934599036)))) {
1402
0
        mozilla::ipc::SentinelReadError("Error deserializing 'initialClientInfo' (OptionalIPCClientInfo) member of 'ChildLoadInfoForwarderArgs'");
1403
0
        return false;
1404
0
    }
1405
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->controller())))))) {
1406
0
        (aActor)->FatalError("Error deserializing 'controller' (OptionalIPCServiceWorkerDescriptor) member of 'ChildLoadInfoForwarderArgs'");
1407
0
        return false;
1408
0
    }
1409
0
    // Sentinel = 'controller'
1410
0
    if ((!((aMsg)->ReadSentinel(aIter, 1871723858)))) {
1411
0
        mozilla::ipc::SentinelReadError("Error deserializing 'controller' (OptionalIPCServiceWorkerDescriptor) member of 'ChildLoadInfoForwarderArgs'");
1412
0
        return false;
1413
0
    }
1414
0
    return true;
1415
0
}
1416
1417
} // namespace ipc
1418
} // namespace mozilla
1419
1420
//-----------------------------------------------------------------------------
1421
// Method definitions for the IPDL type |union OptionalHttpResponseHead|
1422
//
1423
namespace mozilla {
1424
namespace net {
1425
auto OptionalHttpResponseHead::MaybeDestroy(Type aNewType) -> bool
1426
0
{
1427
0
    if ((mType) == (T__None)) {
1428
0
        return true;
1429
0
    }
1430
0
    if ((mType) == (aNewType)) {
1431
0
        return false;
1432
0
    }
1433
0
    switch (mType) {
1434
0
    case Tvoid_t:
1435
0
        {
1436
0
            (ptr_void_t())->~void_t__tdef();
1437
0
            break;
1438
0
        }
1439
0
    case TnsHttpResponseHead:
1440
0
        {
1441
0
            (ptr_nsHttpResponseHead())->~nsHttpResponseHead__tdef();
1442
0
            break;
1443
0
        }
1444
0
    default:
1445
0
        {
1446
0
            mozilla::ipc::LogicError("not reached");
1447
0
            break;
1448
0
        }
1449
0
    }
1450
0
    return true;
1451
0
}
1452
1453
MOZ_IMPLICIT OptionalHttpResponseHead::OptionalHttpResponseHead(const void_t& aOther)
1454
0
{
1455
0
    new (mozilla::KnownNotNull, ptr_void_t()) void_t(aOther);
1456
0
    mType = Tvoid_t;
1457
0
}
1458
1459
MOZ_IMPLICIT OptionalHttpResponseHead::OptionalHttpResponseHead(void_t&& aOther)
1460
0
{
1461
0
    new (mozilla::KnownNotNull, ptr_void_t()) void_t(std::move(aOther));
1462
0
    mType = Tvoid_t;
1463
0
}
1464
1465
MOZ_IMPLICIT OptionalHttpResponseHead::OptionalHttpResponseHead(const nsHttpResponseHead& aOther)
1466
0
{
1467
0
    new (mozilla::KnownNotNull, ptr_nsHttpResponseHead()) nsHttpResponseHead(aOther);
1468
0
    mType = TnsHttpResponseHead;
1469
0
}
1470
1471
MOZ_IMPLICIT OptionalHttpResponseHead::OptionalHttpResponseHead(nsHttpResponseHead&& aOther)
1472
0
{
1473
0
    new (mozilla::KnownNotNull, ptr_nsHttpResponseHead()) nsHttpResponseHead(std::move(aOther));
1474
0
    mType = TnsHttpResponseHead;
1475
0
}
1476
1477
MOZ_IMPLICIT OptionalHttpResponseHead::OptionalHttpResponseHead(const OptionalHttpResponseHead& aOther)
1478
0
{
1479
0
    (aOther).AssertSanity();
1480
0
    switch ((aOther).type()) {
1481
0
    case Tvoid_t:
1482
0
        {
1483
0
            new (mozilla::KnownNotNull, ptr_void_t()) void_t((aOther).get_void_t());
1484
0
            break;
1485
0
        }
1486
0
    case TnsHttpResponseHead:
1487
0
        {
1488
0
            new (mozilla::KnownNotNull, ptr_nsHttpResponseHead()) nsHttpResponseHead((aOther).get_nsHttpResponseHead());
1489
0
            break;
1490
0
        }
1491
0
    case T__None:
1492
0
        {
1493
0
            break;
1494
0
        }
1495
0
    default:
1496
0
        {
1497
0
            mozilla::ipc::LogicError("unreached");
1498
0
            return;
1499
0
        }
1500
0
    }
1501
0
    mType = (aOther).type();
1502
0
}
1503
1504
MOZ_IMPLICIT OptionalHttpResponseHead::OptionalHttpResponseHead(OptionalHttpResponseHead&& aOther)
1505
0
{
1506
0
    (aOther).AssertSanity();
1507
0
    Type t = (aOther).type();
1508
0
    switch (t) {
1509
0
    case Tvoid_t:
1510
0
        {
1511
0
            new (mozilla::KnownNotNull, ptr_void_t()) void_t(std::move((aOther).get_void_t()));
1512
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
1513
0
            break;
1514
0
        }
1515
0
    case TnsHttpResponseHead:
1516
0
        {
1517
0
            new (mozilla::KnownNotNull, ptr_nsHttpResponseHead()) nsHttpResponseHead(std::move((aOther).get_nsHttpResponseHead()));
1518
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
1519
0
            break;
1520
0
        }
1521
0
    case T__None:
1522
0
        {
1523
0
            break;
1524
0
        }
1525
0
    default:
1526
0
        {
1527
0
            mozilla::ipc::LogicError("unreached");
1528
0
            return;
1529
0
        }
1530
0
    }
1531
0
    (aOther).mType = T__None;
1532
0
    mType = t;
1533
0
}
1534
1535
OptionalHttpResponseHead::~OptionalHttpResponseHead()
1536
0
{
1537
0
    static_cast<void>(MaybeDestroy(T__None));
1538
0
}
1539
1540
auto OptionalHttpResponseHead::operator=(const void_t& aRhs) -> OptionalHttpResponseHead&
1541
0
{
1542
0
    if (MaybeDestroy(Tvoid_t)) {
1543
0
        new (mozilla::KnownNotNull, ptr_void_t()) void_t;
1544
0
    }
1545
0
    (*(ptr_void_t())) = aRhs;
1546
0
    mType = Tvoid_t;
1547
0
    return (*(this));
1548
0
}
1549
1550
auto OptionalHttpResponseHead::operator=(void_t&& aRhs) -> OptionalHttpResponseHead&
1551
0
{
1552
0
    if (MaybeDestroy(Tvoid_t)) {
1553
0
        new (mozilla::KnownNotNull, ptr_void_t()) void_t;
1554
0
    }
1555
0
    (*(ptr_void_t())) = std::move(aRhs);
1556
0
    mType = Tvoid_t;
1557
0
    return (*(this));
1558
0
}
1559
1560
auto OptionalHttpResponseHead::operator=(const nsHttpResponseHead& aRhs) -> OptionalHttpResponseHead&
1561
0
{
1562
0
    if (MaybeDestroy(TnsHttpResponseHead)) {
1563
0
        new (mozilla::KnownNotNull, ptr_nsHttpResponseHead()) nsHttpResponseHead;
1564
0
    }
1565
0
    (*(ptr_nsHttpResponseHead())) = aRhs;
1566
0
    mType = TnsHttpResponseHead;
1567
0
    return (*(this));
1568
0
}
1569
1570
auto OptionalHttpResponseHead::operator=(nsHttpResponseHead&& aRhs) -> OptionalHttpResponseHead&
1571
0
{
1572
0
    if (MaybeDestroy(TnsHttpResponseHead)) {
1573
0
        new (mozilla::KnownNotNull, ptr_nsHttpResponseHead()) nsHttpResponseHead;
1574
0
    }
1575
0
    (*(ptr_nsHttpResponseHead())) = std::move(aRhs);
1576
0
    mType = TnsHttpResponseHead;
1577
0
    return (*(this));
1578
0
}
1579
1580
auto OptionalHttpResponseHead::operator=(const OptionalHttpResponseHead& aRhs) -> OptionalHttpResponseHead&
1581
0
{
1582
0
    (aRhs).AssertSanity();
1583
0
    Type t = (aRhs).type();
1584
0
    switch (t) {
1585
0
    case Tvoid_t:
1586
0
        {
1587
0
            if (MaybeDestroy(t)) {
1588
0
                new (mozilla::KnownNotNull, ptr_void_t()) void_t;
1589
0
            }
1590
0
            (*(ptr_void_t())) = (aRhs).get_void_t();
1591
0
            break;
1592
0
        }
1593
0
    case TnsHttpResponseHead:
1594
0
        {
1595
0
            if (MaybeDestroy(t)) {
1596
0
                new (mozilla::KnownNotNull, ptr_nsHttpResponseHead()) nsHttpResponseHead;
1597
0
            }
1598
0
            (*(ptr_nsHttpResponseHead())) = (aRhs).get_nsHttpResponseHead();
1599
0
            break;
1600
0
        }
1601
0
    case T__None:
1602
0
        {
1603
0
            static_cast<void>(MaybeDestroy(t));
1604
0
            break;
1605
0
        }
1606
0
    default:
1607
0
        {
1608
0
            mozilla::ipc::LogicError("unreached");
1609
0
            break;
1610
0
        }
1611
0
    }
1612
0
    mType = t;
1613
0
    return (*(this));
1614
0
}
1615
1616
auto OptionalHttpResponseHead::operator=(OptionalHttpResponseHead&& aRhs) -> OptionalHttpResponseHead&
1617
0
{
1618
0
    (aRhs).AssertSanity();
1619
0
    Type t = (aRhs).type();
1620
0
    switch (t) {
1621
0
    case Tvoid_t:
1622
0
        {
1623
0
            if (MaybeDestroy(t)) {
1624
0
                new (mozilla::KnownNotNull, ptr_void_t()) void_t;
1625
0
            }
1626
0
            (*(ptr_void_t())) = std::move((aRhs).get_void_t());
1627
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1628
0
            break;
1629
0
        }
1630
0
    case TnsHttpResponseHead:
1631
0
        {
1632
0
            if (MaybeDestroy(t)) {
1633
0
                new (mozilla::KnownNotNull, ptr_nsHttpResponseHead()) nsHttpResponseHead;
1634
0
            }
1635
0
            (*(ptr_nsHttpResponseHead())) = std::move((aRhs).get_nsHttpResponseHead());
1636
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1637
0
            break;
1638
0
        }
1639
0
    case T__None:
1640
0
        {
1641
0
            static_cast<void>(MaybeDestroy(t));
1642
0
            break;
1643
0
        }
1644
0
    default:
1645
0
        {
1646
0
            mozilla::ipc::LogicError("unreached");
1647
0
            break;
1648
0
        }
1649
0
    }
1650
0
    (aRhs).mType = T__None;
1651
0
    mType = t;
1652
0
    return (*(this));
1653
0
}
1654
1655
auto OptionalHttpResponseHead::operator==(const void_t& aRhs) const -> bool
1656
0
{
1657
0
    return (get_void_t()) == (aRhs);
1658
0
}
1659
1660
auto OptionalHttpResponseHead::operator==(const nsHttpResponseHead& aRhs) const -> bool
1661
0
{
1662
0
    return (get_nsHttpResponseHead()) == (aRhs);
1663
0
}
1664
1665
auto OptionalHttpResponseHead::operator==(const OptionalHttpResponseHead& aRhs) const -> bool
1666
0
{
1667
0
    if ((type()) != ((aRhs).type())) {
1668
0
        return false;
1669
0
    }
1670
0
1671
0
    switch (type()) {
1672
0
    case Tvoid_t:
1673
0
        {
1674
0
            return (get_void_t()) == ((aRhs).get_void_t());
1675
0
        }
1676
0
    case TnsHttpResponseHead:
1677
0
        {
1678
0
            return (get_nsHttpResponseHead()) == ((aRhs).get_nsHttpResponseHead());
1679
0
        }
1680
0
    default:
1681
0
        {
1682
0
            mozilla::ipc::LogicError("unreached");
1683
0
            return false;
1684
0
        }
1685
0
    }
1686
0
}
1687
1688
auto OptionalHttpResponseHead::get(void_t* aOutValue) const -> void
1689
0
{
1690
0
    (*(aOutValue)) = get_void_t();
1691
0
}
1692
1693
auto OptionalHttpResponseHead::get(nsHttpResponseHead* aOutValue) const -> void
1694
0
{
1695
0
    (*(aOutValue)) = get_nsHttpResponseHead();
1696
0
}
1697
1698
} // namespace net
1699
} // namespace mozilla
1700
1701
namespace mozilla {
1702
namespace ipc {
1703
auto IPDLParamTraits<mozilla::net::OptionalHttpResponseHead>::Write(
1704
        IPC::Message* aMsg,
1705
        mozilla::ipc::IProtocol* aActor,
1706
        const paramType& aVar) -> void
1707
{
1708
    typedef mozilla::net::OptionalHttpResponseHead union__;
1709
    int type;
1710
    type = (aVar).type();
1711
    WriteIPDLParam(aMsg, aActor, type);
1712
    // Sentinel = 'OptionalHttpResponseHead'
1713
    (aMsg)->WriteSentinel(1811886563);
1714
1715
    switch (type) {
1716
    case union__::Tvoid_t:
1717
        {
1718
            WriteIPDLParam(aMsg, aActor, (aVar).get_void_t());
1719
            // Sentinel = 'Tvoid_t'
1720
            (aMsg)->WriteSentinel(3041273328);
1721
            return;
1722
        }
1723
    case union__::TnsHttpResponseHead:
1724
        {
1725
            WriteIPDLParam(aMsg, aActor, (aVar).get_nsHttpResponseHead());
1726
            // Sentinel = 'TnsHttpResponseHead'
1727
            (aMsg)->WriteSentinel(2600232857);
1728
            return;
1729
        }
1730
    default:
1731
        {
1732
            (aActor)->FatalError("unknown union type");
1733
            return;
1734
        }
1735
    }
1736
}
1737
1738
auto IPDLParamTraits<mozilla::net::OptionalHttpResponseHead>::Read(
1739
        const IPC::Message* aMsg,
1740
        PickleIterator* aIter,
1741
        mozilla::ipc::IProtocol* aActor,
1742
        paramType* aVar) -> bool
1743
0
{
1744
0
    typedef mozilla::net::OptionalHttpResponseHead union__;
1745
0
    int type;
1746
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
1747
0
        (aActor)->FatalError("Error deserializing type of union OptionalHttpResponseHead");
1748
0
        return false;
1749
0
    }
1750
0
    // Sentinel = 'OptionalHttpResponseHead'
1751
0
    if ((!((aMsg)->ReadSentinel(aIter, 1811886563)))) {
1752
0
        mozilla::ipc::SentinelReadError("Error deserializing type of union OptionalHttpResponseHead");
1753
0
        return false;
1754
0
    }
1755
0
1756
0
    switch (type) {
1757
0
    case union__::Tvoid_t:
1758
0
        {
1759
0
            mozilla::void_t tmp = mozilla::void_t();
1760
0
            (*(aVar)) = tmp;
1761
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_void_t())))))) {
1762
0
                (aActor)->FatalError("Error deserializing variant Tvoid_t of union OptionalHttpResponseHead");
1763
0
                return false;
1764
0
            }
1765
0
            // Sentinel = 'Tvoid_t'
1766
0
            if ((!((aMsg)->ReadSentinel(aIter, 3041273328)))) {
1767
0
                mozilla::ipc::SentinelReadError("Error deserializing variant Tvoid_t of union OptionalHttpResponseHead");
1768
0
                return false;
1769
0
            }
1770
0
            return true;
1771
0
        }
1772
0
    case union__::TnsHttpResponseHead:
1773
0
        {
1774
0
            mozilla::net::nsHttpResponseHead tmp = mozilla::net::nsHttpResponseHead();
1775
0
            (*(aVar)) = tmp;
1776
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_nsHttpResponseHead())))))) {
1777
0
                (aActor)->FatalError("Error deserializing variant TnsHttpResponseHead of union OptionalHttpResponseHead");
1778
0
                return false;
1779
0
            }
1780
0
            // Sentinel = 'TnsHttpResponseHead'
1781
0
            if ((!((aMsg)->ReadSentinel(aIter, 2600232857)))) {
1782
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TnsHttpResponseHead of union OptionalHttpResponseHead");
1783
0
                return false;
1784
0
            }
1785
0
            return true;
1786
0
        }
1787
0
    default:
1788
0
        {
1789
0
            (aActor)->FatalError("unknown union type");
1790
0
            return false;
1791
0
        }
1792
0
    }
1793
0
}
1794
1795
} // namespace ipc
1796
} // namespace mozilla
1797
1798
//-----------------------------------------------------------------------------
1799
// Method definitions for the IPDL type |struct CorsPreflightArgs|
1800
//
1801
namespace mozilla {
1802
namespace net {
1803
auto CorsPreflightArgs::operator==(const CorsPreflightArgs& _o) const -> bool
1804
0
{
1805
0
    if ((!((unsafeHeaders()) == ((_o).unsafeHeaders())))) {
1806
0
        return false;
1807
0
    }
1808
0
    return true;
1809
0
}
1810
1811
auto CorsPreflightArgs::operator!=(const CorsPreflightArgs& _o) const -> bool
1812
0
{
1813
0
    return (!(operator==(_o)));
1814
0
}
1815
1816
} // namespace net
1817
} // namespace mozilla
1818
1819
namespace mozilla {
1820
namespace ipc {
1821
auto IPDLParamTraits<mozilla::net::CorsPreflightArgs>::Write(
1822
        IPC::Message* aMsg,
1823
        mozilla::ipc::IProtocol* aActor,
1824
        const paramType& aVar) -> void
1825
0
{
1826
0
    WriteIPDLParam(aMsg, aActor, (aVar).unsafeHeaders());
1827
0
    // Sentinel = 'unsafeHeaders'
1828
0
    (aMsg)->WriteSentinel(259870561);
1829
0
}
1830
1831
auto IPDLParamTraits<mozilla::net::CorsPreflightArgs>::Read(
1832
        const IPC::Message* aMsg,
1833
        PickleIterator* aIter,
1834
        mozilla::ipc::IProtocol* aActor,
1835
        paramType* aVar) -> bool
1836
0
{
1837
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->unsafeHeaders())))))) {
1838
0
        (aActor)->FatalError("Error deserializing 'unsafeHeaders' (nsCString[]) member of 'CorsPreflightArgs'");
1839
0
        return false;
1840
0
    }
1841
0
    // Sentinel = 'unsafeHeaders'
1842
0
    if ((!((aMsg)->ReadSentinel(aIter, 259870561)))) {
1843
0
        mozilla::ipc::SentinelReadError("Error deserializing 'unsafeHeaders' (nsCString[]) member of 'CorsPreflightArgs'");
1844
0
        return false;
1845
0
    }
1846
0
    return true;
1847
0
}
1848
1849
} // namespace ipc
1850
} // namespace mozilla
1851
1852
//-----------------------------------------------------------------------------
1853
// Method definitions for the IPDL type |union OptionalCorsPreflightArgs|
1854
//
1855
namespace mozilla {
1856
namespace net {
1857
auto OptionalCorsPreflightArgs::MaybeDestroy(Type aNewType) -> bool
1858
0
{
1859
0
    if ((mType) == (T__None)) {
1860
0
        return true;
1861
0
    }
1862
0
    if ((mType) == (aNewType)) {
1863
0
        return false;
1864
0
    }
1865
0
    switch (mType) {
1866
0
    case Tvoid_t:
1867
0
        {
1868
0
            (ptr_void_t())->~void_t__tdef();
1869
0
            break;
1870
0
        }
1871
0
    case TCorsPreflightArgs:
1872
0
        {
1873
0
            (ptr_CorsPreflightArgs())->~CorsPreflightArgs__tdef();
1874
0
            break;
1875
0
        }
1876
0
    default:
1877
0
        {
1878
0
            mozilla::ipc::LogicError("not reached");
1879
0
            break;
1880
0
        }
1881
0
    }
1882
0
    return true;
1883
0
}
1884
1885
MOZ_IMPLICIT OptionalCorsPreflightArgs::OptionalCorsPreflightArgs(const void_t& aOther)
1886
0
{
1887
0
    new (mozilla::KnownNotNull, ptr_void_t()) void_t(aOther);
1888
0
    mType = Tvoid_t;
1889
0
}
1890
1891
MOZ_IMPLICIT OptionalCorsPreflightArgs::OptionalCorsPreflightArgs(void_t&& aOther)
1892
0
{
1893
0
    new (mozilla::KnownNotNull, ptr_void_t()) void_t(std::move(aOther));
1894
0
    mType = Tvoid_t;
1895
0
}
1896
1897
MOZ_IMPLICIT OptionalCorsPreflightArgs::OptionalCorsPreflightArgs(const CorsPreflightArgs& aOther)
1898
0
{
1899
0
    new (mozilla::KnownNotNull, ptr_CorsPreflightArgs()) CorsPreflightArgs(aOther);
1900
0
    mType = TCorsPreflightArgs;
1901
0
}
1902
1903
MOZ_IMPLICIT OptionalCorsPreflightArgs::OptionalCorsPreflightArgs(CorsPreflightArgs&& aOther)
1904
0
{
1905
0
    new (mozilla::KnownNotNull, ptr_CorsPreflightArgs()) CorsPreflightArgs(std::move(aOther));
1906
0
    mType = TCorsPreflightArgs;
1907
0
}
1908
1909
MOZ_IMPLICIT OptionalCorsPreflightArgs::OptionalCorsPreflightArgs(const OptionalCorsPreflightArgs& aOther)
1910
0
{
1911
0
    (aOther).AssertSanity();
1912
0
    switch ((aOther).type()) {
1913
0
    case Tvoid_t:
1914
0
        {
1915
0
            new (mozilla::KnownNotNull, ptr_void_t()) void_t((aOther).get_void_t());
1916
0
            break;
1917
0
        }
1918
0
    case TCorsPreflightArgs:
1919
0
        {
1920
0
            new (mozilla::KnownNotNull, ptr_CorsPreflightArgs()) CorsPreflightArgs((aOther).get_CorsPreflightArgs());
1921
0
            break;
1922
0
        }
1923
0
    case T__None:
1924
0
        {
1925
0
            break;
1926
0
        }
1927
0
    default:
1928
0
        {
1929
0
            mozilla::ipc::LogicError("unreached");
1930
0
            return;
1931
0
        }
1932
0
    }
1933
0
    mType = (aOther).type();
1934
0
}
1935
1936
MOZ_IMPLICIT OptionalCorsPreflightArgs::OptionalCorsPreflightArgs(OptionalCorsPreflightArgs&& aOther)
1937
0
{
1938
0
    (aOther).AssertSanity();
1939
0
    Type t = (aOther).type();
1940
0
    switch (t) {
1941
0
    case Tvoid_t:
1942
0
        {
1943
0
            new (mozilla::KnownNotNull, ptr_void_t()) void_t(std::move((aOther).get_void_t()));
1944
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
1945
0
            break;
1946
0
        }
1947
0
    case TCorsPreflightArgs:
1948
0
        {
1949
0
            new (mozilla::KnownNotNull, ptr_CorsPreflightArgs()) CorsPreflightArgs(std::move((aOther).get_CorsPreflightArgs()));
1950
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
1951
0
            break;
1952
0
        }
1953
0
    case T__None:
1954
0
        {
1955
0
            break;
1956
0
        }
1957
0
    default:
1958
0
        {
1959
0
            mozilla::ipc::LogicError("unreached");
1960
0
            return;
1961
0
        }
1962
0
    }
1963
0
    (aOther).mType = T__None;
1964
0
    mType = t;
1965
0
}
1966
1967
OptionalCorsPreflightArgs::~OptionalCorsPreflightArgs()
1968
0
{
1969
0
    static_cast<void>(MaybeDestroy(T__None));
1970
0
}
1971
1972
auto OptionalCorsPreflightArgs::operator=(const void_t& aRhs) -> OptionalCorsPreflightArgs&
1973
0
{
1974
0
    if (MaybeDestroy(Tvoid_t)) {
1975
0
        new (mozilla::KnownNotNull, ptr_void_t()) void_t;
1976
0
    }
1977
0
    (*(ptr_void_t())) = aRhs;
1978
0
    mType = Tvoid_t;
1979
0
    return (*(this));
1980
0
}
1981
1982
auto OptionalCorsPreflightArgs::operator=(void_t&& aRhs) -> OptionalCorsPreflightArgs&
1983
0
{
1984
0
    if (MaybeDestroy(Tvoid_t)) {
1985
0
        new (mozilla::KnownNotNull, ptr_void_t()) void_t;
1986
0
    }
1987
0
    (*(ptr_void_t())) = std::move(aRhs);
1988
0
    mType = Tvoid_t;
1989
0
    return (*(this));
1990
0
}
1991
1992
auto OptionalCorsPreflightArgs::operator=(const CorsPreflightArgs& aRhs) -> OptionalCorsPreflightArgs&
1993
0
{
1994
0
    if (MaybeDestroy(TCorsPreflightArgs)) {
1995
0
        new (mozilla::KnownNotNull, ptr_CorsPreflightArgs()) CorsPreflightArgs;
1996
0
    }
1997
0
    (*(ptr_CorsPreflightArgs())) = aRhs;
1998
0
    mType = TCorsPreflightArgs;
1999
0
    return (*(this));
2000
0
}
2001
2002
auto OptionalCorsPreflightArgs::operator=(CorsPreflightArgs&& aRhs) -> OptionalCorsPreflightArgs&
2003
0
{
2004
0
    if (MaybeDestroy(TCorsPreflightArgs)) {
2005
0
        new (mozilla::KnownNotNull, ptr_CorsPreflightArgs()) CorsPreflightArgs;
2006
0
    }
2007
0
    (*(ptr_CorsPreflightArgs())) = std::move(aRhs);
2008
0
    mType = TCorsPreflightArgs;
2009
0
    return (*(this));
2010
0
}
2011
2012
auto OptionalCorsPreflightArgs::operator=(const OptionalCorsPreflightArgs& aRhs) -> OptionalCorsPreflightArgs&
2013
0
{
2014
0
    (aRhs).AssertSanity();
2015
0
    Type t = (aRhs).type();
2016
0
    switch (t) {
2017
0
    case Tvoid_t:
2018
0
        {
2019
0
            if (MaybeDestroy(t)) {
2020
0
                new (mozilla::KnownNotNull, ptr_void_t()) void_t;
2021
0
            }
2022
0
            (*(ptr_void_t())) = (aRhs).get_void_t();
2023
0
            break;
2024
0
        }
2025
0
    case TCorsPreflightArgs:
2026
0
        {
2027
0
            if (MaybeDestroy(t)) {
2028
0
                new (mozilla::KnownNotNull, ptr_CorsPreflightArgs()) CorsPreflightArgs;
2029
0
            }
2030
0
            (*(ptr_CorsPreflightArgs())) = (aRhs).get_CorsPreflightArgs();
2031
0
            break;
2032
0
        }
2033
0
    case T__None:
2034
0
        {
2035
0
            static_cast<void>(MaybeDestroy(t));
2036
0
            break;
2037
0
        }
2038
0
    default:
2039
0
        {
2040
0
            mozilla::ipc::LogicError("unreached");
2041
0
            break;
2042
0
        }
2043
0
    }
2044
0
    mType = t;
2045
0
    return (*(this));
2046
0
}
2047
2048
auto OptionalCorsPreflightArgs::operator=(OptionalCorsPreflightArgs&& aRhs) -> OptionalCorsPreflightArgs&
2049
0
{
2050
0
    (aRhs).AssertSanity();
2051
0
    Type t = (aRhs).type();
2052
0
    switch (t) {
2053
0
    case Tvoid_t:
2054
0
        {
2055
0
            if (MaybeDestroy(t)) {
2056
0
                new (mozilla::KnownNotNull, ptr_void_t()) void_t;
2057
0
            }
2058
0
            (*(ptr_void_t())) = std::move((aRhs).get_void_t());
2059
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
2060
0
            break;
2061
0
        }
2062
0
    case TCorsPreflightArgs:
2063
0
        {
2064
0
            if (MaybeDestroy(t)) {
2065
0
                new (mozilla::KnownNotNull, ptr_CorsPreflightArgs()) CorsPreflightArgs;
2066
0
            }
2067
0
            (*(ptr_CorsPreflightArgs())) = std::move((aRhs).get_CorsPreflightArgs());
2068
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
2069
0
            break;
2070
0
        }
2071
0
    case T__None:
2072
0
        {
2073
0
            static_cast<void>(MaybeDestroy(t));
2074
0
            break;
2075
0
        }
2076
0
    default:
2077
0
        {
2078
0
            mozilla::ipc::LogicError("unreached");
2079
0
            break;
2080
0
        }
2081
0
    }
2082
0
    (aRhs).mType = T__None;
2083
0
    mType = t;
2084
0
    return (*(this));
2085
0
}
2086
2087
auto OptionalCorsPreflightArgs::operator==(const void_t& aRhs) const -> bool
2088
0
{
2089
0
    return (get_void_t()) == (aRhs);
2090
0
}
2091
2092
auto OptionalCorsPreflightArgs::operator==(const CorsPreflightArgs& aRhs) const -> bool
2093
0
{
2094
0
    return (get_CorsPreflightArgs()) == (aRhs);
2095
0
}
2096
2097
auto OptionalCorsPreflightArgs::operator==(const OptionalCorsPreflightArgs& aRhs) const -> bool
2098
0
{
2099
0
    if ((type()) != ((aRhs).type())) {
2100
0
        return false;
2101
0
    }
2102
0
2103
0
    switch (type()) {
2104
0
    case Tvoid_t:
2105
0
        {
2106
0
            return (get_void_t()) == ((aRhs).get_void_t());
2107
0
        }
2108
0
    case TCorsPreflightArgs:
2109
0
        {
2110
0
            return (get_CorsPreflightArgs()) == ((aRhs).get_CorsPreflightArgs());
2111
0
        }
2112
0
    default:
2113
0
        {
2114
0
            mozilla::ipc::LogicError("unreached");
2115
0
            return false;
2116
0
        }
2117
0
    }
2118
0
}
2119
2120
auto OptionalCorsPreflightArgs::get(void_t* aOutValue) const -> void
2121
0
{
2122
0
    (*(aOutValue)) = get_void_t();
2123
0
}
2124
2125
auto OptionalCorsPreflightArgs::get(CorsPreflightArgs* aOutValue) const -> void
2126
0
{
2127
0
    (*(aOutValue)) = get_CorsPreflightArgs();
2128
0
}
2129
2130
} // namespace net
2131
} // namespace mozilla
2132
2133
namespace mozilla {
2134
namespace ipc {
2135
auto IPDLParamTraits<mozilla::net::OptionalCorsPreflightArgs>::Write(
2136
        IPC::Message* aMsg,
2137
        mozilla::ipc::IProtocol* aActor,
2138
        const paramType& aVar) -> void
2139
{
2140
    typedef mozilla::net::OptionalCorsPreflightArgs union__;
2141
    int type;
2142
    type = (aVar).type();
2143
    WriteIPDLParam(aMsg, aActor, type);
2144
    // Sentinel = 'OptionalCorsPreflightArgs'
2145
    (aMsg)->WriteSentinel(3238697490);
2146
2147
    switch (type) {
2148
    case union__::Tvoid_t:
2149
        {
2150
            WriteIPDLParam(aMsg, aActor, (aVar).get_void_t());
2151
            // Sentinel = 'Tvoid_t'
2152
            (aMsg)->WriteSentinel(3041273328);
2153
            return;
2154
        }
2155
    case union__::TCorsPreflightArgs:
2156
        {
2157
            WriteIPDLParam(aMsg, aActor, (aVar).get_CorsPreflightArgs());
2158
            // Sentinel = 'TCorsPreflightArgs'
2159
            (aMsg)->WriteSentinel(2263898105);
2160
            return;
2161
        }
2162
    default:
2163
        {
2164
            (aActor)->FatalError("unknown union type");
2165
            return;
2166
        }
2167
    }
2168
}
2169
2170
auto IPDLParamTraits<mozilla::net::OptionalCorsPreflightArgs>::Read(
2171
        const IPC::Message* aMsg,
2172
        PickleIterator* aIter,
2173
        mozilla::ipc::IProtocol* aActor,
2174
        paramType* aVar) -> bool
2175
0
{
2176
0
    typedef mozilla::net::OptionalCorsPreflightArgs union__;
2177
0
    int type;
2178
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
2179
0
        (aActor)->FatalError("Error deserializing type of union OptionalCorsPreflightArgs");
2180
0
        return false;
2181
0
    }
2182
0
    // Sentinel = 'OptionalCorsPreflightArgs'
2183
0
    if ((!((aMsg)->ReadSentinel(aIter, 3238697490)))) {
2184
0
        mozilla::ipc::SentinelReadError("Error deserializing type of union OptionalCorsPreflightArgs");
2185
0
        return false;
2186
0
    }
2187
0
2188
0
    switch (type) {
2189
0
    case union__::Tvoid_t:
2190
0
        {
2191
0
            mozilla::void_t tmp = mozilla::void_t();
2192
0
            (*(aVar)) = tmp;
2193
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_void_t())))))) {
2194
0
                (aActor)->FatalError("Error deserializing variant Tvoid_t of union OptionalCorsPreflightArgs");
2195
0
                return false;
2196
0
            }
2197
0
            // Sentinel = 'Tvoid_t'
2198
0
            if ((!((aMsg)->ReadSentinel(aIter, 3041273328)))) {
2199
0
                mozilla::ipc::SentinelReadError("Error deserializing variant Tvoid_t of union OptionalCorsPreflightArgs");
2200
0
                return false;
2201
0
            }
2202
0
            return true;
2203
0
        }
2204
0
    case union__::TCorsPreflightArgs:
2205
0
        {
2206
0
            mozilla::net::CorsPreflightArgs tmp = mozilla::net::CorsPreflightArgs();
2207
0
            (*(aVar)) = tmp;
2208
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_CorsPreflightArgs())))))) {
2209
0
                (aActor)->FatalError("Error deserializing variant TCorsPreflightArgs of union OptionalCorsPreflightArgs");
2210
0
                return false;
2211
0
            }
2212
0
            // Sentinel = 'TCorsPreflightArgs'
2213
0
            if ((!((aMsg)->ReadSentinel(aIter, 2263898105)))) {
2214
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TCorsPreflightArgs of union OptionalCorsPreflightArgs");
2215
0
                return false;
2216
0
            }
2217
0
            return true;
2218
0
        }
2219
0
    default:
2220
0
        {
2221
0
            (aActor)->FatalError("unknown union type");
2222
0
            return false;
2223
0
        }
2224
0
    }
2225
0
}
2226
2227
} // namespace ipc
2228
} // namespace mozilla
2229
2230
//-----------------------------------------------------------------------------
2231
// Method definitions for the IPDL type |struct HttpChannelOpenArgs|
2232
//
2233
namespace mozilla {
2234
namespace net {
2235
auto HttpChannelOpenArgs::operator==(const HttpChannelOpenArgs& _o) const -> bool
2236
0
{
2237
0
    if ((!((uri()) == ((_o).uri())))) {
2238
0
        return false;
2239
0
    }
2240
0
    if ((!((original()) == ((_o).original())))) {
2241
0
        return false;
2242
0
    }
2243
0
    if ((!((doc()) == ((_o).doc())))) {
2244
0
        return false;
2245
0
    }
2246
0
    if ((!((referrer()) == ((_o).referrer())))) {
2247
0
        return false;
2248
0
    }
2249
0
    if ((!((referrerPolicy()) == ((_o).referrerPolicy())))) {
2250
0
        return false;
2251
0
    }
2252
0
    if ((!((apiRedirectTo()) == ((_o).apiRedirectTo())))) {
2253
0
        return false;
2254
0
    }
2255
0
    if ((!((topWindowURI()) == ((_o).topWindowURI())))) {
2256
0
        return false;
2257
0
    }
2258
0
    if ((!((loadFlags()) == ((_o).loadFlags())))) {
2259
0
        return false;
2260
0
    }
2261
0
    if ((!((requestHeaders()) == ((_o).requestHeaders())))) {
2262
0
        return false;
2263
0
    }
2264
0
    if ((!((requestMethod()) == ((_o).requestMethod())))) {
2265
0
        return false;
2266
0
    }
2267
0
    if ((!((uploadStream()) == ((_o).uploadStream())))) {
2268
0
        return false;
2269
0
    }
2270
0
    if ((!((uploadStreamHasHeaders()) == ((_o).uploadStreamHasHeaders())))) {
2271
0
        return false;
2272
0
    }
2273
0
    if ((!((priority()) == ((_o).priority())))) {
2274
0
        return false;
2275
0
    }
2276
0
    if ((!((classOfService()) == ((_o).classOfService())))) {
2277
0
        return false;
2278
0
    }
2279
0
    if ((!((redirectionLimit()) == ((_o).redirectionLimit())))) {
2280
0
        return false;
2281
0
    }
2282
0
    if ((!((allowSTS()) == ((_o).allowSTS())))) {
2283
0
        return false;
2284
0
    }
2285
0
    if ((!((thirdPartyFlags()) == ((_o).thirdPartyFlags())))) {
2286
0
        return false;
2287
0
    }
2288
0
    if ((!((resumeAt()) == ((_o).resumeAt())))) {
2289
0
        return false;
2290
0
    }
2291
0
    if ((!((startPos()) == ((_o).startPos())))) {
2292
0
        return false;
2293
0
    }
2294
0
    if ((!((entityID()) == ((_o).entityID())))) {
2295
0
        return false;
2296
0
    }
2297
0
    if ((!((chooseApplicationCache()) == ((_o).chooseApplicationCache())))) {
2298
0
        return false;
2299
0
    }
2300
0
    if ((!((appCacheClientID()) == ((_o).appCacheClientID())))) {
2301
0
        return false;
2302
0
    }
2303
0
    if ((!((allowSpdy()) == ((_o).allowSpdy())))) {
2304
0
        return false;
2305
0
    }
2306
0
    if ((!((allowAltSvc()) == ((_o).allowAltSvc())))) {
2307
0
        return false;
2308
0
    }
2309
0
    if ((!((beConservative()) == ((_o).beConservative())))) {
2310
0
        return false;
2311
0
    }
2312
0
    if ((!((tlsFlags()) == ((_o).tlsFlags())))) {
2313
0
        return false;
2314
0
    }
2315
0
    if ((!((loadInfo()) == ((_o).loadInfo())))) {
2316
0
        return false;
2317
0
    }
2318
0
    if ((!((synthesizedResponseHead()) == ((_o).synthesizedResponseHead())))) {
2319
0
        return false;
2320
0
    }
2321
0
    if ((!((synthesizedSecurityInfoSerialization()) == ((_o).synthesizedSecurityInfoSerialization())))) {
2322
0
        return false;
2323
0
    }
2324
0
    if ((!((cacheKey()) == ((_o).cacheKey())))) {
2325
0
        return false;
2326
0
    }
2327
0
    if ((!((requestContextID()) == ((_o).requestContextID())))) {
2328
0
        return false;
2329
0
    }
2330
0
    if ((!((preflightArgs()) == ((_o).preflightArgs())))) {
2331
0
        return false;
2332
0
    }
2333
0
    if ((!((initialRwin()) == ((_o).initialRwin())))) {
2334
0
        return false;
2335
0
    }
2336
0
    if ((!((blockAuthPrompt()) == ((_o).blockAuthPrompt())))) {
2337
0
        return false;
2338
0
    }
2339
0
    if ((!((suspendAfterSynthesizeResponse()) == ((_o).suspendAfterSynthesizeResponse())))) {
2340
0
        return false;
2341
0
    }
2342
0
    if ((!((allowStaleCacheContent()) == ((_o).allowStaleCacheContent())))) {
2343
0
        return false;
2344
0
    }
2345
0
    if ((!((contentTypeHint()) == ((_o).contentTypeHint())))) {
2346
0
        return false;
2347
0
    }
2348
0
    if ((!((corsMode()) == ((_o).corsMode())))) {
2349
0
        return false;
2350
0
    }
2351
0
    if ((!((redirectMode()) == ((_o).redirectMode())))) {
2352
0
        return false;
2353
0
    }
2354
0
    if ((!((channelId()) == ((_o).channelId())))) {
2355
0
        return false;
2356
0
    }
2357
0
    if ((!((integrityMetadata()) == ((_o).integrityMetadata())))) {
2358
0
        return false;
2359
0
    }
2360
0
    if ((!((contentWindowId()) == ((_o).contentWindowId())))) {
2361
0
        return false;
2362
0
    }
2363
0
    if ((!((preferredAlternativeType()) == ((_o).preferredAlternativeType())))) {
2364
0
        return false;
2365
0
    }
2366
0
    if ((!((topLevelOuterContentWindowId()) == ((_o).topLevelOuterContentWindowId())))) {
2367
0
        return false;
2368
0
    }
2369
0
    if ((!((launchServiceWorkerStart()) == ((_o).launchServiceWorkerStart())))) {
2370
0
        return false;
2371
0
    }
2372
0
    if ((!((launchServiceWorkerEnd()) == ((_o).launchServiceWorkerEnd())))) {
2373
0
        return false;
2374
0
    }
2375
0
    if ((!((dispatchFetchEventStart()) == ((_o).dispatchFetchEventStart())))) {
2376
0
        return false;
2377
0
    }
2378
0
    if ((!((dispatchFetchEventEnd()) == ((_o).dispatchFetchEventEnd())))) {
2379
0
        return false;
2380
0
    }
2381
0
    if ((!((handleFetchEventStart()) == ((_o).handleFetchEventStart())))) {
2382
0
        return false;
2383
0
    }
2384
0
    if ((!((handleFetchEventEnd()) == ((_o).handleFetchEventEnd())))) {
2385
0
        return false;
2386
0
    }
2387
0
    if ((!((forceMainDocumentChannel()) == ((_o).forceMainDocumentChannel())))) {
2388
0
        return false;
2389
0
    }
2390
0
    if ((!((navigationStartTimeStamp()) == ((_o).navigationStartTimeStamp())))) {
2391
0
        return false;
2392
0
    }
2393
0
    return true;
2394
0
}
2395
2396
auto HttpChannelOpenArgs::operator!=(const HttpChannelOpenArgs& _o) const -> bool
2397
0
{
2398
0
    return (!(operator==(_o)));
2399
0
}
2400
2401
} // namespace net
2402
} // namespace mozilla
2403
2404
namespace mozilla {
2405
namespace ipc {
2406
auto IPDLParamTraits<mozilla::net::HttpChannelOpenArgs>::Write(
2407
        IPC::Message* aMsg,
2408
        mozilla::ipc::IProtocol* aActor,
2409
        const paramType& aVar) -> void
2410
0
{
2411
0
    WriteIPDLParam(aMsg, aActor, (aVar).uri());
2412
0
    // Sentinel = 'uri'
2413
0
    (aMsg)->WriteSentinel(1453210605);
2414
0
    WriteIPDLParam(aMsg, aActor, (aVar).original());
2415
0
    // Sentinel = 'original'
2416
0
    (aMsg)->WriteSentinel(3262287869);
2417
0
    WriteIPDLParam(aMsg, aActor, (aVar).doc());
2418
0
    // Sentinel = 'doc'
2419
0
    (aMsg)->WriteSentinel(1528775657);
2420
0
    WriteIPDLParam(aMsg, aActor, (aVar).referrer());
2421
0
    // Sentinel = 'referrer'
2422
0
    (aMsg)->WriteSentinel(3770987113);
2423
0
    WriteIPDLParam(aMsg, aActor, (aVar).referrerPolicy());
2424
0
    // Sentinel = 'referrerPolicy'
2425
0
    (aMsg)->WriteSentinel(2269890057);
2426
0
    WriteIPDLParam(aMsg, aActor, (aVar).apiRedirectTo());
2427
0
    // Sentinel = 'apiRedirectTo'
2428
0
    (aMsg)->WriteSentinel(3162811030);
2429
0
    WriteIPDLParam(aMsg, aActor, (aVar).topWindowURI());
2430
0
    // Sentinel = 'topWindowURI'
2431
0
    (aMsg)->WriteSentinel(2325499925);
2432
0
    WriteIPDLParam(aMsg, aActor, (aVar).loadFlags());
2433
0
    // Sentinel = 'loadFlags'
2434
0
    (aMsg)->WriteSentinel(2391120444);
2435
0
    WriteIPDLParam(aMsg, aActor, (aVar).requestHeaders());
2436
0
    // Sentinel = 'requestHeaders'
2437
0
    (aMsg)->WriteSentinel(2055989545);
2438
0
    WriteIPDLParam(aMsg, aActor, (aVar).requestMethod());
2439
0
    // Sentinel = 'requestMethod'
2440
0
    (aMsg)->WriteSentinel(2210890865);
2441
0
    WriteIPDLParam(aMsg, aActor, (aVar).uploadStream());
2442
0
    // Sentinel = 'uploadStream'
2443
0
    (aMsg)->WriteSentinel(3559827199);
2444
0
    WriteIPDLParam(aMsg, aActor, (aVar).uploadStreamHasHeaders());
2445
0
    // Sentinel = 'uploadStreamHasHeaders'
2446
0
    (aMsg)->WriteSentinel(670009587);
2447
0
    WriteIPDLParam(aMsg, aActor, (aVar).priority());
2448
0
    // Sentinel = 'priority'
2449
0
    (aMsg)->WriteSentinel(558136112);
2450
0
    WriteIPDLParam(aMsg, aActor, (aVar).classOfService());
2451
0
    // Sentinel = 'classOfService'
2452
0
    (aMsg)->WriteSentinel(1829468214);
2453
0
    WriteIPDLParam(aMsg, aActor, (aVar).redirectionLimit());
2454
0
    // Sentinel = 'redirectionLimit'
2455
0
    (aMsg)->WriteSentinel(1070866783);
2456
0
    WriteIPDLParam(aMsg, aActor, (aVar).allowSTS());
2457
0
    // Sentinel = 'allowSTS'
2458
0
    (aMsg)->WriteSentinel(384958533);
2459
0
    WriteIPDLParam(aMsg, aActor, (aVar).thirdPartyFlags());
2460
0
    // Sentinel = 'thirdPartyFlags'
2461
0
    (aMsg)->WriteSentinel(3577174809);
2462
0
    WriteIPDLParam(aMsg, aActor, (aVar).resumeAt());
2463
0
    // Sentinel = 'resumeAt'
2464
0
    (aMsg)->WriteSentinel(866346170);
2465
0
    WriteIPDLParam(aMsg, aActor, (aVar).startPos());
2466
0
    // Sentinel = 'startPos'
2467
0
    (aMsg)->WriteSentinel(557207962);
2468
0
    WriteIPDLParam(aMsg, aActor, (aVar).entityID());
2469
0
    // Sentinel = 'entityID'
2470
0
    (aMsg)->WriteSentinel(245743354);
2471
0
    WriteIPDLParam(aMsg, aActor, (aVar).chooseApplicationCache());
2472
0
    // Sentinel = 'chooseApplicationCache'
2473
0
    (aMsg)->WriteSentinel(2898467869);
2474
0
    WriteIPDLParam(aMsg, aActor, (aVar).appCacheClientID());
2475
0
    // Sentinel = 'appCacheClientID'
2476
0
    (aMsg)->WriteSentinel(3495226687);
2477
0
    WriteIPDLParam(aMsg, aActor, (aVar).allowSpdy());
2478
0
    // Sentinel = 'allowSpdy'
2479
0
    (aMsg)->WriteSentinel(1630260538);
2480
0
    WriteIPDLParam(aMsg, aActor, (aVar).allowAltSvc());
2481
0
    // Sentinel = 'allowAltSvc'
2482
0
    (aMsg)->WriteSentinel(879875677);
2483
0
    WriteIPDLParam(aMsg, aActor, (aVar).beConservative());
2484
0
    // Sentinel = 'beConservative'
2485
0
    (aMsg)->WriteSentinel(1177063294);
2486
0
    WriteIPDLParam(aMsg, aActor, (aVar).tlsFlags());
2487
0
    // Sentinel = 'tlsFlags'
2488
0
    (aMsg)->WriteSentinel(899791704);
2489
0
    WriteIPDLParam(aMsg, aActor, (aVar).loadInfo());
2490
0
    // Sentinel = 'loadInfo'
2491
0
    (aMsg)->WriteSentinel(2597515304);
2492
0
    WriteIPDLParam(aMsg, aActor, (aVar).synthesizedResponseHead());
2493
0
    // Sentinel = 'synthesizedResponseHead'
2494
0
    (aMsg)->WriteSentinel(588784596);
2495
0
    WriteIPDLParam(aMsg, aActor, (aVar).synthesizedSecurityInfoSerialization());
2496
0
    // Sentinel = 'synthesizedSecurityInfoSerialization'
2497
0
    (aMsg)->WriteSentinel(2702766326);
2498
0
    WriteIPDLParam(aMsg, aActor, (aVar).cacheKey());
2499
0
    // Sentinel = 'cacheKey'
2500
0
    (aMsg)->WriteSentinel(249191363);
2501
0
    WriteIPDLParam(aMsg, aActor, (aVar).requestContextID());
2502
0
    // Sentinel = 'requestContextID'
2503
0
    (aMsg)->WriteSentinel(2427410503);
2504
0
    WriteIPDLParam(aMsg, aActor, (aVar).preflightArgs());
2505
0
    // Sentinel = 'preflightArgs'
2506
0
    (aMsg)->WriteSentinel(2363616251);
2507
0
    WriteIPDLParam(aMsg, aActor, (aVar).initialRwin());
2508
0
    // Sentinel = 'initialRwin'
2509
0
    (aMsg)->WriteSentinel(967782407);
2510
0
    WriteIPDLParam(aMsg, aActor, (aVar).blockAuthPrompt());
2511
0
    // Sentinel = 'blockAuthPrompt'
2512
0
    (aMsg)->WriteSentinel(1543637500);
2513
0
    WriteIPDLParam(aMsg, aActor, (aVar).suspendAfterSynthesizeResponse());
2514
0
    // Sentinel = 'suspendAfterSynthesizeResponse'
2515
0
    (aMsg)->WriteSentinel(656622613);
2516
0
    WriteIPDLParam(aMsg, aActor, (aVar).allowStaleCacheContent());
2517
0
    // Sentinel = 'allowStaleCacheContent'
2518
0
    (aMsg)->WriteSentinel(3064959537);
2519
0
    WriteIPDLParam(aMsg, aActor, (aVar).contentTypeHint());
2520
0
    // Sentinel = 'contentTypeHint'
2521
0
    (aMsg)->WriteSentinel(2155295759);
2522
0
    WriteIPDLParam(aMsg, aActor, (aVar).corsMode());
2523
0
    // Sentinel = 'corsMode'
2524
0
    (aMsg)->WriteSentinel(4286541210);
2525
0
    WriteIPDLParam(aMsg, aActor, (aVar).redirectMode());
2526
0
    // Sentinel = 'redirectMode'
2527
0
    (aMsg)->WriteSentinel(2648832309);
2528
0
    WriteIPDLParam(aMsg, aActor, (aVar).channelId());
2529
0
    // Sentinel = 'channelId'
2530
0
    (aMsg)->WriteSentinel(6854027);
2531
0
    WriteIPDLParam(aMsg, aActor, (aVar).integrityMetadata());
2532
0
    // Sentinel = 'integrityMetadata'
2533
0
    (aMsg)->WriteSentinel(1450655463);
2534
0
    WriteIPDLParam(aMsg, aActor, (aVar).contentWindowId());
2535
0
    // Sentinel = 'contentWindowId'
2536
0
    (aMsg)->WriteSentinel(2188138839);
2537
0
    WriteIPDLParam(aMsg, aActor, (aVar).preferredAlternativeType());
2538
0
    // Sentinel = 'preferredAlternativeType'
2539
0
    (aMsg)->WriteSentinel(1019174360);
2540
0
    WriteIPDLParam(aMsg, aActor, (aVar).topLevelOuterContentWindowId());
2541
0
    // Sentinel = 'topLevelOuterContentWindowId'
2542
0
    (aMsg)->WriteSentinel(810319786);
2543
0
    WriteIPDLParam(aMsg, aActor, (aVar).launchServiceWorkerStart());
2544
0
    // Sentinel = 'launchServiceWorkerStart'
2545
0
    (aMsg)->WriteSentinel(1191023364);
2546
0
    WriteIPDLParam(aMsg, aActor, (aVar).launchServiceWorkerEnd());
2547
0
    // Sentinel = 'launchServiceWorkerEnd'
2548
0
    (aMsg)->WriteSentinel(2236809033);
2549
0
    WriteIPDLParam(aMsg, aActor, (aVar).dispatchFetchEventStart());
2550
0
    // Sentinel = 'dispatchFetchEventStart'
2551
0
    (aMsg)->WriteSentinel(2132895785);
2552
0
    WriteIPDLParam(aMsg, aActor, (aVar).dispatchFetchEventEnd());
2553
0
    // Sentinel = 'dispatchFetchEventEnd'
2554
0
    (aMsg)->WriteSentinel(256182528);
2555
0
    WriteIPDLParam(aMsg, aActor, (aVar).handleFetchEventStart());
2556
0
    // Sentinel = 'handleFetchEventStart'
2557
0
    (aMsg)->WriteSentinel(3840539911);
2558
0
    WriteIPDLParam(aMsg, aActor, (aVar).handleFetchEventEnd());
2559
0
    // Sentinel = 'handleFetchEventEnd'
2560
0
    (aMsg)->WriteSentinel(2420571602);
2561
0
    WriteIPDLParam(aMsg, aActor, (aVar).forceMainDocumentChannel());
2562
0
    // Sentinel = 'forceMainDocumentChannel'
2563
0
    (aMsg)->WriteSentinel(4124245778);
2564
0
    WriteIPDLParam(aMsg, aActor, (aVar).navigationStartTimeStamp());
2565
0
    // Sentinel = 'navigationStartTimeStamp'
2566
0
    (aMsg)->WriteSentinel(3491330606);
2567
0
}
2568
2569
auto IPDLParamTraits<mozilla::net::HttpChannelOpenArgs>::Read(
2570
        const IPC::Message* aMsg,
2571
        PickleIterator* aIter,
2572
        mozilla::ipc::IProtocol* aActor,
2573
        paramType* aVar) -> bool
2574
0
{
2575
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->uri())))))) {
2576
0
        (aActor)->FatalError("Error deserializing 'uri' (URIParams) member of 'HttpChannelOpenArgs'");
2577
0
        return false;
2578
0
    }
2579
0
    // Sentinel = 'uri'
2580
0
    if ((!((aMsg)->ReadSentinel(aIter, 1453210605)))) {
2581
0
        mozilla::ipc::SentinelReadError("Error deserializing 'uri' (URIParams) member of 'HttpChannelOpenArgs'");
2582
0
        return false;
2583
0
    }
2584
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->original())))))) {
2585
0
        (aActor)->FatalError("Error deserializing 'original' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
2586
0
        return false;
2587
0
    }
2588
0
    // Sentinel = 'original'
2589
0
    if ((!((aMsg)->ReadSentinel(aIter, 3262287869)))) {
2590
0
        mozilla::ipc::SentinelReadError("Error deserializing 'original' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
2591
0
        return false;
2592
0
    }
2593
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->doc())))))) {
2594
0
        (aActor)->FatalError("Error deserializing 'doc' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
2595
0
        return false;
2596
0
    }
2597
0
    // Sentinel = 'doc'
2598
0
    if ((!((aMsg)->ReadSentinel(aIter, 1528775657)))) {
2599
0
        mozilla::ipc::SentinelReadError("Error deserializing 'doc' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
2600
0
        return false;
2601
0
    }
2602
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->referrer())))))) {
2603
0
        (aActor)->FatalError("Error deserializing 'referrer' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
2604
0
        return false;
2605
0
    }
2606
0
    // Sentinel = 'referrer'
2607
0
    if ((!((aMsg)->ReadSentinel(aIter, 3770987113)))) {
2608
0
        mozilla::ipc::SentinelReadError("Error deserializing 'referrer' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
2609
0
        return false;
2610
0
    }
2611
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->referrerPolicy())))))) {
2612
0
        (aActor)->FatalError("Error deserializing 'referrerPolicy' (uint32_t) member of 'HttpChannelOpenArgs'");
2613
0
        return false;
2614
0
    }
2615
0
    // Sentinel = 'referrerPolicy'
2616
0
    if ((!((aMsg)->ReadSentinel(aIter, 2269890057)))) {
2617
0
        mozilla::ipc::SentinelReadError("Error deserializing 'referrerPolicy' (uint32_t) member of 'HttpChannelOpenArgs'");
2618
0
        return false;
2619
0
    }
2620
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->apiRedirectTo())))))) {
2621
0
        (aActor)->FatalError("Error deserializing 'apiRedirectTo' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
2622
0
        return false;
2623
0
    }
2624
0
    // Sentinel = 'apiRedirectTo'
2625
0
    if ((!((aMsg)->ReadSentinel(aIter, 3162811030)))) {
2626
0
        mozilla::ipc::SentinelReadError("Error deserializing 'apiRedirectTo' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
2627
0
        return false;
2628
0
    }
2629
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->topWindowURI())))))) {
2630
0
        (aActor)->FatalError("Error deserializing 'topWindowURI' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
2631
0
        return false;
2632
0
    }
2633
0
    // Sentinel = 'topWindowURI'
2634
0
    if ((!((aMsg)->ReadSentinel(aIter, 2325499925)))) {
2635
0
        mozilla::ipc::SentinelReadError("Error deserializing 'topWindowURI' (OptionalURIParams) member of 'HttpChannelOpenArgs'");
2636
0
        return false;
2637
0
    }
2638
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->loadFlags())))))) {
2639
0
        (aActor)->FatalError("Error deserializing 'loadFlags' (uint32_t) member of 'HttpChannelOpenArgs'");
2640
0
        return false;
2641
0
    }
2642
0
    // Sentinel = 'loadFlags'
2643
0
    if ((!((aMsg)->ReadSentinel(aIter, 2391120444)))) {
2644
0
        mozilla::ipc::SentinelReadError("Error deserializing 'loadFlags' (uint32_t) member of 'HttpChannelOpenArgs'");
2645
0
        return false;
2646
0
    }
2647
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->requestHeaders())))))) {
2648
0
        (aActor)->FatalError("Error deserializing 'requestHeaders' (RequestHeaderTuples) member of 'HttpChannelOpenArgs'");
2649
0
        return false;
2650
0
    }
2651
0
    // Sentinel = 'requestHeaders'
2652
0
    if ((!((aMsg)->ReadSentinel(aIter, 2055989545)))) {
2653
0
        mozilla::ipc::SentinelReadError("Error deserializing 'requestHeaders' (RequestHeaderTuples) member of 'HttpChannelOpenArgs'");
2654
0
        return false;
2655
0
    }
2656
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->requestMethod())))))) {
2657
0
        (aActor)->FatalError("Error deserializing 'requestMethod' (nsCString) member of 'HttpChannelOpenArgs'");
2658
0
        return false;
2659
0
    }
2660
0
    // Sentinel = 'requestMethod'
2661
0
    if ((!((aMsg)->ReadSentinel(aIter, 2210890865)))) {
2662
0
        mozilla::ipc::SentinelReadError("Error deserializing 'requestMethod' (nsCString) member of 'HttpChannelOpenArgs'");
2663
0
        return false;
2664
0
    }
2665
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->uploadStream())))))) {
2666
0
        (aActor)->FatalError("Error deserializing 'uploadStream' (OptionalIPCStream) member of 'HttpChannelOpenArgs'");
2667
0
        return false;
2668
0
    }
2669
0
    // Sentinel = 'uploadStream'
2670
0
    if ((!((aMsg)->ReadSentinel(aIter, 3559827199)))) {
2671
0
        mozilla::ipc::SentinelReadError("Error deserializing 'uploadStream' (OptionalIPCStream) member of 'HttpChannelOpenArgs'");
2672
0
        return false;
2673
0
    }
2674
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->uploadStreamHasHeaders())))))) {
2675
0
        (aActor)->FatalError("Error deserializing 'uploadStreamHasHeaders' (bool) member of 'HttpChannelOpenArgs'");
2676
0
        return false;
2677
0
    }
2678
0
    // Sentinel = 'uploadStreamHasHeaders'
2679
0
    if ((!((aMsg)->ReadSentinel(aIter, 670009587)))) {
2680
0
        mozilla::ipc::SentinelReadError("Error deserializing 'uploadStreamHasHeaders' (bool) member of 'HttpChannelOpenArgs'");
2681
0
        return false;
2682
0
    }
2683
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->priority())))))) {
2684
0
        (aActor)->FatalError("Error deserializing 'priority' (int16_t) member of 'HttpChannelOpenArgs'");
2685
0
        return false;
2686
0
    }
2687
0
    // Sentinel = 'priority'
2688
0
    if ((!((aMsg)->ReadSentinel(aIter, 558136112)))) {
2689
0
        mozilla::ipc::SentinelReadError("Error deserializing 'priority' (int16_t) member of 'HttpChannelOpenArgs'");
2690
0
        return false;
2691
0
    }
2692
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->classOfService())))))) {
2693
0
        (aActor)->FatalError("Error deserializing 'classOfService' (uint32_t) member of 'HttpChannelOpenArgs'");
2694
0
        return false;
2695
0
    }
2696
0
    // Sentinel = 'classOfService'
2697
0
    if ((!((aMsg)->ReadSentinel(aIter, 1829468214)))) {
2698
0
        mozilla::ipc::SentinelReadError("Error deserializing 'classOfService' (uint32_t) member of 'HttpChannelOpenArgs'");
2699
0
        return false;
2700
0
    }
2701
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->redirectionLimit())))))) {
2702
0
        (aActor)->FatalError("Error deserializing 'redirectionLimit' (uint8_t) member of 'HttpChannelOpenArgs'");
2703
0
        return false;
2704
0
    }
2705
0
    // Sentinel = 'redirectionLimit'
2706
0
    if ((!((aMsg)->ReadSentinel(aIter, 1070866783)))) {
2707
0
        mozilla::ipc::SentinelReadError("Error deserializing 'redirectionLimit' (uint8_t) member of 'HttpChannelOpenArgs'");
2708
0
        return false;
2709
0
    }
2710
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->allowSTS())))))) {
2711
0
        (aActor)->FatalError("Error deserializing 'allowSTS' (bool) member of 'HttpChannelOpenArgs'");
2712
0
        return false;
2713
0
    }
2714
0
    // Sentinel = 'allowSTS'
2715
0
    if ((!((aMsg)->ReadSentinel(aIter, 384958533)))) {
2716
0
        mozilla::ipc::SentinelReadError("Error deserializing 'allowSTS' (bool) member of 'HttpChannelOpenArgs'");
2717
0
        return false;
2718
0
    }
2719
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->thirdPartyFlags())))))) {
2720
0
        (aActor)->FatalError("Error deserializing 'thirdPartyFlags' (uint32_t) member of 'HttpChannelOpenArgs'");
2721
0
        return false;
2722
0
    }
2723
0
    // Sentinel = 'thirdPartyFlags'
2724
0
    if ((!((aMsg)->ReadSentinel(aIter, 3577174809)))) {
2725
0
        mozilla::ipc::SentinelReadError("Error deserializing 'thirdPartyFlags' (uint32_t) member of 'HttpChannelOpenArgs'");
2726
0
        return false;
2727
0
    }
2728
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->resumeAt())))))) {
2729
0
        (aActor)->FatalError("Error deserializing 'resumeAt' (bool) member of 'HttpChannelOpenArgs'");
2730
0
        return false;
2731
0
    }
2732
0
    // Sentinel = 'resumeAt'
2733
0
    if ((!((aMsg)->ReadSentinel(aIter, 866346170)))) {
2734
0
        mozilla::ipc::SentinelReadError("Error deserializing 'resumeAt' (bool) member of 'HttpChannelOpenArgs'");
2735
0
        return false;
2736
0
    }
2737
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->startPos())))))) {
2738
0
        (aActor)->FatalError("Error deserializing 'startPos' (uint64_t) member of 'HttpChannelOpenArgs'");
2739
0
        return false;
2740
0
    }
2741
0
    // Sentinel = 'startPos'
2742
0
    if ((!((aMsg)->ReadSentinel(aIter, 557207962)))) {
2743
0
        mozilla::ipc::SentinelReadError("Error deserializing 'startPos' (uint64_t) member of 'HttpChannelOpenArgs'");
2744
0
        return false;
2745
0
    }
2746
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->entityID())))))) {
2747
0
        (aActor)->FatalError("Error deserializing 'entityID' (nsCString) member of 'HttpChannelOpenArgs'");
2748
0
        return false;
2749
0
    }
2750
0
    // Sentinel = 'entityID'
2751
0
    if ((!((aMsg)->ReadSentinel(aIter, 245743354)))) {
2752
0
        mozilla::ipc::SentinelReadError("Error deserializing 'entityID' (nsCString) member of 'HttpChannelOpenArgs'");
2753
0
        return false;
2754
0
    }
2755
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->chooseApplicationCache())))))) {
2756
0
        (aActor)->FatalError("Error deserializing 'chooseApplicationCache' (bool) member of 'HttpChannelOpenArgs'");
2757
0
        return false;
2758
0
    }
2759
0
    // Sentinel = 'chooseApplicationCache'
2760
0
    if ((!((aMsg)->ReadSentinel(aIter, 2898467869)))) {
2761
0
        mozilla::ipc::SentinelReadError("Error deserializing 'chooseApplicationCache' (bool) member of 'HttpChannelOpenArgs'");
2762
0
        return false;
2763
0
    }
2764
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->appCacheClientID())))))) {
2765
0
        (aActor)->FatalError("Error deserializing 'appCacheClientID' (nsCString) member of 'HttpChannelOpenArgs'");
2766
0
        return false;
2767
0
    }
2768
0
    // Sentinel = 'appCacheClientID'
2769
0
    if ((!((aMsg)->ReadSentinel(aIter, 3495226687)))) {
2770
0
        mozilla::ipc::SentinelReadError("Error deserializing 'appCacheClientID' (nsCString) member of 'HttpChannelOpenArgs'");
2771
0
        return false;
2772
0
    }
2773
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->allowSpdy())))))) {
2774
0
        (aActor)->FatalError("Error deserializing 'allowSpdy' (bool) member of 'HttpChannelOpenArgs'");
2775
0
        return false;
2776
0
    }
2777
0
    // Sentinel = 'allowSpdy'
2778
0
    if ((!((aMsg)->ReadSentinel(aIter, 1630260538)))) {
2779
0
        mozilla::ipc::SentinelReadError("Error deserializing 'allowSpdy' (bool) member of 'HttpChannelOpenArgs'");
2780
0
        return false;
2781
0
    }
2782
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->allowAltSvc())))))) {
2783
0
        (aActor)->FatalError("Error deserializing 'allowAltSvc' (bool) member of 'HttpChannelOpenArgs'");
2784
0
        return false;
2785
0
    }
2786
0
    // Sentinel = 'allowAltSvc'
2787
0
    if ((!((aMsg)->ReadSentinel(aIter, 879875677)))) {
2788
0
        mozilla::ipc::SentinelReadError("Error deserializing 'allowAltSvc' (bool) member of 'HttpChannelOpenArgs'");
2789
0
        return false;
2790
0
    }
2791
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->beConservative())))))) {
2792
0
        (aActor)->FatalError("Error deserializing 'beConservative' (bool) member of 'HttpChannelOpenArgs'");
2793
0
        return false;
2794
0
    }
2795
0
    // Sentinel = 'beConservative'
2796
0
    if ((!((aMsg)->ReadSentinel(aIter, 1177063294)))) {
2797
0
        mozilla::ipc::SentinelReadError("Error deserializing 'beConservative' (bool) member of 'HttpChannelOpenArgs'");
2798
0
        return false;
2799
0
    }
2800
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->tlsFlags())))))) {
2801
0
        (aActor)->FatalError("Error deserializing 'tlsFlags' (uint32_t) member of 'HttpChannelOpenArgs'");
2802
0
        return false;
2803
0
    }
2804
0
    // Sentinel = 'tlsFlags'
2805
0
    if ((!((aMsg)->ReadSentinel(aIter, 899791704)))) {
2806
0
        mozilla::ipc::SentinelReadError("Error deserializing 'tlsFlags' (uint32_t) member of 'HttpChannelOpenArgs'");
2807
0
        return false;
2808
0
    }
2809
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->loadInfo())))))) {
2810
0
        (aActor)->FatalError("Error deserializing 'loadInfo' (OptionalLoadInfoArgs) member of 'HttpChannelOpenArgs'");
2811
0
        return false;
2812
0
    }
2813
0
    // Sentinel = 'loadInfo'
2814
0
    if ((!((aMsg)->ReadSentinel(aIter, 2597515304)))) {
2815
0
        mozilla::ipc::SentinelReadError("Error deserializing 'loadInfo' (OptionalLoadInfoArgs) member of 'HttpChannelOpenArgs'");
2816
0
        return false;
2817
0
    }
2818
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->synthesizedResponseHead())))))) {
2819
0
        (aActor)->FatalError("Error deserializing 'synthesizedResponseHead' (OptionalHttpResponseHead) member of 'HttpChannelOpenArgs'");
2820
0
        return false;
2821
0
    }
2822
0
    // Sentinel = 'synthesizedResponseHead'
2823
0
    if ((!((aMsg)->ReadSentinel(aIter, 588784596)))) {
2824
0
        mozilla::ipc::SentinelReadError("Error deserializing 'synthesizedResponseHead' (OptionalHttpResponseHead) member of 'HttpChannelOpenArgs'");
2825
0
        return false;
2826
0
    }
2827
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->synthesizedSecurityInfoSerialization())))))) {
2828
0
        (aActor)->FatalError("Error deserializing 'synthesizedSecurityInfoSerialization' (nsCString) member of 'HttpChannelOpenArgs'");
2829
0
        return false;
2830
0
    }
2831
0
    // Sentinel = 'synthesizedSecurityInfoSerialization'
2832
0
    if ((!((aMsg)->ReadSentinel(aIter, 2702766326)))) {
2833
0
        mozilla::ipc::SentinelReadError("Error deserializing 'synthesizedSecurityInfoSerialization' (nsCString) member of 'HttpChannelOpenArgs'");
2834
0
        return false;
2835
0
    }
2836
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->cacheKey())))))) {
2837
0
        (aActor)->FatalError("Error deserializing 'cacheKey' (uint32_t) member of 'HttpChannelOpenArgs'");
2838
0
        return false;
2839
0
    }
2840
0
    // Sentinel = 'cacheKey'
2841
0
    if ((!((aMsg)->ReadSentinel(aIter, 249191363)))) {
2842
0
        mozilla::ipc::SentinelReadError("Error deserializing 'cacheKey' (uint32_t) member of 'HttpChannelOpenArgs'");
2843
0
        return false;
2844
0
    }
2845
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->requestContextID())))))) {
2846
0
        (aActor)->FatalError("Error deserializing 'requestContextID' (uint64_t) member of 'HttpChannelOpenArgs'");
2847
0
        return false;
2848
0
    }
2849
0
    // Sentinel = 'requestContextID'
2850
0
    if ((!((aMsg)->ReadSentinel(aIter, 2427410503)))) {
2851
0
        mozilla::ipc::SentinelReadError("Error deserializing 'requestContextID' (uint64_t) member of 'HttpChannelOpenArgs'");
2852
0
        return false;
2853
0
    }
2854
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->preflightArgs())))))) {
2855
0
        (aActor)->FatalError("Error deserializing 'preflightArgs' (OptionalCorsPreflightArgs) member of 'HttpChannelOpenArgs'");
2856
0
        return false;
2857
0
    }
2858
0
    // Sentinel = 'preflightArgs'
2859
0
    if ((!((aMsg)->ReadSentinel(aIter, 2363616251)))) {
2860
0
        mozilla::ipc::SentinelReadError("Error deserializing 'preflightArgs' (OptionalCorsPreflightArgs) member of 'HttpChannelOpenArgs'");
2861
0
        return false;
2862
0
    }
2863
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->initialRwin())))))) {
2864
0
        (aActor)->FatalError("Error deserializing 'initialRwin' (uint32_t) member of 'HttpChannelOpenArgs'");
2865
0
        return false;
2866
0
    }
2867
0
    // Sentinel = 'initialRwin'
2868
0
    if ((!((aMsg)->ReadSentinel(aIter, 967782407)))) {
2869
0
        mozilla::ipc::SentinelReadError("Error deserializing 'initialRwin' (uint32_t) member of 'HttpChannelOpenArgs'");
2870
0
        return false;
2871
0
    }
2872
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->blockAuthPrompt())))))) {
2873
0
        (aActor)->FatalError("Error deserializing 'blockAuthPrompt' (bool) member of 'HttpChannelOpenArgs'");
2874
0
        return false;
2875
0
    }
2876
0
    // Sentinel = 'blockAuthPrompt'
2877
0
    if ((!((aMsg)->ReadSentinel(aIter, 1543637500)))) {
2878
0
        mozilla::ipc::SentinelReadError("Error deserializing 'blockAuthPrompt' (bool) member of 'HttpChannelOpenArgs'");
2879
0
        return false;
2880
0
    }
2881
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->suspendAfterSynthesizeResponse())))))) {
2882
0
        (aActor)->FatalError("Error deserializing 'suspendAfterSynthesizeResponse' (bool) member of 'HttpChannelOpenArgs'");
2883
0
        return false;
2884
0
    }
2885
0
    // Sentinel = 'suspendAfterSynthesizeResponse'
2886
0
    if ((!((aMsg)->ReadSentinel(aIter, 656622613)))) {
2887
0
        mozilla::ipc::SentinelReadError("Error deserializing 'suspendAfterSynthesizeResponse' (bool) member of 'HttpChannelOpenArgs'");
2888
0
        return false;
2889
0
    }
2890
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->allowStaleCacheContent())))))) {
2891
0
        (aActor)->FatalError("Error deserializing 'allowStaleCacheContent' (bool) member of 'HttpChannelOpenArgs'");
2892
0
        return false;
2893
0
    }
2894
0
    // Sentinel = 'allowStaleCacheContent'
2895
0
    if ((!((aMsg)->ReadSentinel(aIter, 3064959537)))) {
2896
0
        mozilla::ipc::SentinelReadError("Error deserializing 'allowStaleCacheContent' (bool) member of 'HttpChannelOpenArgs'");
2897
0
        return false;
2898
0
    }
2899
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->contentTypeHint())))))) {
2900
0
        (aActor)->FatalError("Error deserializing 'contentTypeHint' (nsCString) member of 'HttpChannelOpenArgs'");
2901
0
        return false;
2902
0
    }
2903
0
    // Sentinel = 'contentTypeHint'
2904
0
    if ((!((aMsg)->ReadSentinel(aIter, 2155295759)))) {
2905
0
        mozilla::ipc::SentinelReadError("Error deserializing 'contentTypeHint' (nsCString) member of 'HttpChannelOpenArgs'");
2906
0
        return false;
2907
0
    }
2908
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->corsMode())))))) {
2909
0
        (aActor)->FatalError("Error deserializing 'corsMode' (uint32_t) member of 'HttpChannelOpenArgs'");
2910
0
        return false;
2911
0
    }
2912
0
    // Sentinel = 'corsMode'
2913
0
    if ((!((aMsg)->ReadSentinel(aIter, 4286541210)))) {
2914
0
        mozilla::ipc::SentinelReadError("Error deserializing 'corsMode' (uint32_t) member of 'HttpChannelOpenArgs'");
2915
0
        return false;
2916
0
    }
2917
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->redirectMode())))))) {
2918
0
        (aActor)->FatalError("Error deserializing 'redirectMode' (uint32_t) member of 'HttpChannelOpenArgs'");
2919
0
        return false;
2920
0
    }
2921
0
    // Sentinel = 'redirectMode'
2922
0
    if ((!((aMsg)->ReadSentinel(aIter, 2648832309)))) {
2923
0
        mozilla::ipc::SentinelReadError("Error deserializing 'redirectMode' (uint32_t) member of 'HttpChannelOpenArgs'");
2924
0
        return false;
2925
0
    }
2926
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->channelId())))))) {
2927
0
        (aActor)->FatalError("Error deserializing 'channelId' (uint64_t) member of 'HttpChannelOpenArgs'");
2928
0
        return false;
2929
0
    }
2930
0
    // Sentinel = 'channelId'
2931
0
    if ((!((aMsg)->ReadSentinel(aIter, 6854027)))) {
2932
0
        mozilla::ipc::SentinelReadError("Error deserializing 'channelId' (uint64_t) member of 'HttpChannelOpenArgs'");
2933
0
        return false;
2934
0
    }
2935
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->integrityMetadata())))))) {
2936
0
        (aActor)->FatalError("Error deserializing 'integrityMetadata' (nsString) member of 'HttpChannelOpenArgs'");
2937
0
        return false;
2938
0
    }
2939
0
    // Sentinel = 'integrityMetadata'
2940
0
    if ((!((aMsg)->ReadSentinel(aIter, 1450655463)))) {
2941
0
        mozilla::ipc::SentinelReadError("Error deserializing 'integrityMetadata' (nsString) member of 'HttpChannelOpenArgs'");
2942
0
        return false;
2943
0
    }
2944
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->contentWindowId())))))) {
2945
0
        (aActor)->FatalError("Error deserializing 'contentWindowId' (uint64_t) member of 'HttpChannelOpenArgs'");
2946
0
        return false;
2947
0
    }
2948
0
    // Sentinel = 'contentWindowId'
2949
0
    if ((!((aMsg)->ReadSentinel(aIter, 2188138839)))) {
2950
0
        mozilla::ipc::SentinelReadError("Error deserializing 'contentWindowId' (uint64_t) member of 'HttpChannelOpenArgs'");
2951
0
        return false;
2952
0
    }
2953
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->preferredAlternativeType())))))) {
2954
0
        (aActor)->FatalError("Error deserializing 'preferredAlternativeType' (nsCString) member of 'HttpChannelOpenArgs'");
2955
0
        return false;
2956
0
    }
2957
0
    // Sentinel = 'preferredAlternativeType'
2958
0
    if ((!((aMsg)->ReadSentinel(aIter, 1019174360)))) {
2959
0
        mozilla::ipc::SentinelReadError("Error deserializing 'preferredAlternativeType' (nsCString) member of 'HttpChannelOpenArgs'");
2960
0
        return false;
2961
0
    }
2962
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->topLevelOuterContentWindowId())))))) {
2963
0
        (aActor)->FatalError("Error deserializing 'topLevelOuterContentWindowId' (uint64_t) member of 'HttpChannelOpenArgs'");
2964
0
        return false;
2965
0
    }
2966
0
    // Sentinel = 'topLevelOuterContentWindowId'
2967
0
    if ((!((aMsg)->ReadSentinel(aIter, 810319786)))) {
2968
0
        mozilla::ipc::SentinelReadError("Error deserializing 'topLevelOuterContentWindowId' (uint64_t) member of 'HttpChannelOpenArgs'");
2969
0
        return false;
2970
0
    }
2971
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->launchServiceWorkerStart())))))) {
2972
0
        (aActor)->FatalError("Error deserializing 'launchServiceWorkerStart' (TimeStamp) member of 'HttpChannelOpenArgs'");
2973
0
        return false;
2974
0
    }
2975
0
    // Sentinel = 'launchServiceWorkerStart'
2976
0
    if ((!((aMsg)->ReadSentinel(aIter, 1191023364)))) {
2977
0
        mozilla::ipc::SentinelReadError("Error deserializing 'launchServiceWorkerStart' (TimeStamp) member of 'HttpChannelOpenArgs'");
2978
0
        return false;
2979
0
    }
2980
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->launchServiceWorkerEnd())))))) {
2981
0
        (aActor)->FatalError("Error deserializing 'launchServiceWorkerEnd' (TimeStamp) member of 'HttpChannelOpenArgs'");
2982
0
        return false;
2983
0
    }
2984
0
    // Sentinel = 'launchServiceWorkerEnd'
2985
0
    if ((!((aMsg)->ReadSentinel(aIter, 2236809033)))) {
2986
0
        mozilla::ipc::SentinelReadError("Error deserializing 'launchServiceWorkerEnd' (TimeStamp) member of 'HttpChannelOpenArgs'");
2987
0
        return false;
2988
0
    }
2989
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->dispatchFetchEventStart())))))) {
2990
0
        (aActor)->FatalError("Error deserializing 'dispatchFetchEventStart' (TimeStamp) member of 'HttpChannelOpenArgs'");
2991
0
        return false;
2992
0
    }
2993
0
    // Sentinel = 'dispatchFetchEventStart'
2994
0
    if ((!((aMsg)->ReadSentinel(aIter, 2132895785)))) {
2995
0
        mozilla::ipc::SentinelReadError("Error deserializing 'dispatchFetchEventStart' (TimeStamp) member of 'HttpChannelOpenArgs'");
2996
0
        return false;
2997
0
    }
2998
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->dispatchFetchEventEnd())))))) {
2999
0
        (aActor)->FatalError("Error deserializing 'dispatchFetchEventEnd' (TimeStamp) member of 'HttpChannelOpenArgs'");
3000
0
        return false;
3001
0
    }
3002
0
    // Sentinel = 'dispatchFetchEventEnd'
3003
0
    if ((!((aMsg)->ReadSentinel(aIter, 256182528)))) {
3004
0
        mozilla::ipc::SentinelReadError("Error deserializing 'dispatchFetchEventEnd' (TimeStamp) member of 'HttpChannelOpenArgs'");
3005
0
        return false;
3006
0
    }
3007
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->handleFetchEventStart())))))) {
3008
0
        (aActor)->FatalError("Error deserializing 'handleFetchEventStart' (TimeStamp) member of 'HttpChannelOpenArgs'");
3009
0
        return false;
3010
0
    }
3011
0
    // Sentinel = 'handleFetchEventStart'
3012
0
    if ((!((aMsg)->ReadSentinel(aIter, 3840539911)))) {
3013
0
        mozilla::ipc::SentinelReadError("Error deserializing 'handleFetchEventStart' (TimeStamp) member of 'HttpChannelOpenArgs'");
3014
0
        return false;
3015
0
    }
3016
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->handleFetchEventEnd())))))) {
3017
0
        (aActor)->FatalError("Error deserializing 'handleFetchEventEnd' (TimeStamp) member of 'HttpChannelOpenArgs'");
3018
0
        return false;
3019
0
    }
3020
0
    // Sentinel = 'handleFetchEventEnd'
3021
0
    if ((!((aMsg)->ReadSentinel(aIter, 2420571602)))) {
3022
0
        mozilla::ipc::SentinelReadError("Error deserializing 'handleFetchEventEnd' (TimeStamp) member of 'HttpChannelOpenArgs'");
3023
0
        return false;
3024
0
    }
3025
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->forceMainDocumentChannel())))))) {
3026
0
        (aActor)->FatalError("Error deserializing 'forceMainDocumentChannel' (bool) member of 'HttpChannelOpenArgs'");
3027
0
        return false;
3028
0
    }
3029
0
    // Sentinel = 'forceMainDocumentChannel'
3030
0
    if ((!((aMsg)->ReadSentinel(aIter, 4124245778)))) {
3031
0
        mozilla::ipc::SentinelReadError("Error deserializing 'forceMainDocumentChannel' (bool) member of 'HttpChannelOpenArgs'");
3032
0
        return false;
3033
0
    }
3034
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->navigationStartTimeStamp())))))) {
3035
0
        (aActor)->FatalError("Error deserializing 'navigationStartTimeStamp' (TimeStamp) member of 'HttpChannelOpenArgs'");
3036
0
        return false;
3037
0
    }
3038
0
    // Sentinel = 'navigationStartTimeStamp'
3039
0
    if ((!((aMsg)->ReadSentinel(aIter, 3491330606)))) {
3040
0
        mozilla::ipc::SentinelReadError("Error deserializing 'navigationStartTimeStamp' (TimeStamp) member of 'HttpChannelOpenArgs'");
3041
0
        return false;
3042
0
    }
3043
0
    return true;
3044
0
}
3045
3046
} // namespace ipc
3047
} // namespace mozilla
3048
3049
//-----------------------------------------------------------------------------
3050
// Method definitions for the IPDL type |struct HttpChannelConnectArgs|
3051
//
3052
namespace mozilla {
3053
namespace net {
3054
auto HttpChannelConnectArgs::operator==(const HttpChannelConnectArgs& _o) const -> bool
3055
0
{
3056
0
    if ((!((registrarId()) == ((_o).registrarId())))) {
3057
0
        return false;
3058
0
    }
3059
0
    if ((!((shouldIntercept()) == ((_o).shouldIntercept())))) {
3060
0
        return false;
3061
0
    }
3062
0
    return true;
3063
0
}
3064
3065
auto HttpChannelConnectArgs::operator!=(const HttpChannelConnectArgs& _o) const -> bool
3066
0
{
3067
0
    return (!(operator==(_o)));
3068
0
}
3069
3070
} // namespace net
3071
} // namespace mozilla
3072
3073
namespace mozilla {
3074
namespace ipc {
3075
auto IPDLParamTraits<mozilla::net::HttpChannelConnectArgs>::Write(
3076
        IPC::Message* aMsg,
3077
        mozilla::ipc::IProtocol* aActor,
3078
        const paramType& aVar) -> void
3079
0
{
3080
0
    WriteIPDLParam(aMsg, aActor, (aVar).registrarId());
3081
0
    // Sentinel = 'registrarId'
3082
0
    (aMsg)->WriteSentinel(3202787989);
3083
0
    WriteIPDLParam(aMsg, aActor, (aVar).shouldIntercept());
3084
0
    // Sentinel = 'shouldIntercept'
3085
0
    (aMsg)->WriteSentinel(2213461606);
3086
0
}
3087
3088
auto IPDLParamTraits<mozilla::net::HttpChannelConnectArgs>::Read(
3089
        const IPC::Message* aMsg,
3090
        PickleIterator* aIter,
3091
        mozilla::ipc::IProtocol* aActor,
3092
        paramType* aVar) -> bool
3093
0
{
3094
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->registrarId())))))) {
3095
0
        (aActor)->FatalError("Error deserializing 'registrarId' (uint32_t) member of 'HttpChannelConnectArgs'");
3096
0
        return false;
3097
0
    }
3098
0
    // Sentinel = 'registrarId'
3099
0
    if ((!((aMsg)->ReadSentinel(aIter, 3202787989)))) {
3100
0
        mozilla::ipc::SentinelReadError("Error deserializing 'registrarId' (uint32_t) member of 'HttpChannelConnectArgs'");
3101
0
        return false;
3102
0
    }
3103
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->shouldIntercept())))))) {
3104
0
        (aActor)->FatalError("Error deserializing 'shouldIntercept' (bool) member of 'HttpChannelConnectArgs'");
3105
0
        return false;
3106
0
    }
3107
0
    // Sentinel = 'shouldIntercept'
3108
0
    if ((!((aMsg)->ReadSentinel(aIter, 2213461606)))) {
3109
0
        mozilla::ipc::SentinelReadError("Error deserializing 'shouldIntercept' (bool) member of 'HttpChannelConnectArgs'");
3110
0
        return false;
3111
0
    }
3112
0
    return true;
3113
0
}
3114
3115
} // namespace ipc
3116
} // namespace mozilla
3117
3118
//-----------------------------------------------------------------------------
3119
// Method definitions for the IPDL type |union HttpChannelCreationArgs|
3120
//
3121
namespace mozilla {
3122
namespace net {
3123
auto HttpChannelCreationArgs::MaybeDestroy(Type aNewType) -> bool
3124
0
{
3125
0
    if ((mType) == (T__None)) {
3126
0
        return true;
3127
0
    }
3128
0
    if ((mType) == (aNewType)) {
3129
0
        return false;
3130
0
    }
3131
0
    switch (mType) {
3132
0
    case THttpChannelOpenArgs:
3133
0
        {
3134
0
            (ptr_HttpChannelOpenArgs())->~HttpChannelOpenArgs__tdef();
3135
0
            break;
3136
0
        }
3137
0
    case THttpChannelConnectArgs:
3138
0
        {
3139
0
            (ptr_HttpChannelConnectArgs())->~HttpChannelConnectArgs__tdef();
3140
0
            break;
3141
0
        }
3142
0
    default:
3143
0
        {
3144
0
            mozilla::ipc::LogicError("not reached");
3145
0
            break;
3146
0
        }
3147
0
    }
3148
0
    return true;
3149
0
}
3150
3151
MOZ_IMPLICIT HttpChannelCreationArgs::HttpChannelCreationArgs(const HttpChannelOpenArgs& aOther)
3152
0
{
3153
0
    new (mozilla::KnownNotNull, ptr_HttpChannelOpenArgs()) HttpChannelOpenArgs(aOther);
3154
0
    mType = THttpChannelOpenArgs;
3155
0
}
3156
3157
MOZ_IMPLICIT HttpChannelCreationArgs::HttpChannelCreationArgs(HttpChannelOpenArgs&& aOther)
3158
0
{
3159
0
    new (mozilla::KnownNotNull, ptr_HttpChannelOpenArgs()) HttpChannelOpenArgs(std::move(aOther));
3160
0
    mType = THttpChannelOpenArgs;
3161
0
}
3162
3163
MOZ_IMPLICIT HttpChannelCreationArgs::HttpChannelCreationArgs(const HttpChannelConnectArgs& aOther)
3164
0
{
3165
0
    new (mozilla::KnownNotNull, ptr_HttpChannelConnectArgs()) HttpChannelConnectArgs(aOther);
3166
0
    mType = THttpChannelConnectArgs;
3167
0
}
3168
3169
MOZ_IMPLICIT HttpChannelCreationArgs::HttpChannelCreationArgs(HttpChannelConnectArgs&& aOther)
3170
0
{
3171
0
    new (mozilla::KnownNotNull, ptr_HttpChannelConnectArgs()) HttpChannelConnectArgs(std::move(aOther));
3172
0
    mType = THttpChannelConnectArgs;
3173
0
}
3174
3175
MOZ_IMPLICIT HttpChannelCreationArgs::HttpChannelCreationArgs(const HttpChannelCreationArgs& aOther)
3176
0
{
3177
0
    (aOther).AssertSanity();
3178
0
    switch ((aOther).type()) {
3179
0
    case THttpChannelOpenArgs:
3180
0
        {
3181
0
            new (mozilla::KnownNotNull, ptr_HttpChannelOpenArgs()) HttpChannelOpenArgs((aOther).get_HttpChannelOpenArgs());
3182
0
            break;
3183
0
        }
3184
0
    case THttpChannelConnectArgs:
3185
0
        {
3186
0
            new (mozilla::KnownNotNull, ptr_HttpChannelConnectArgs()) HttpChannelConnectArgs((aOther).get_HttpChannelConnectArgs());
3187
0
            break;
3188
0
        }
3189
0
    case T__None:
3190
0
        {
3191
0
            break;
3192
0
        }
3193
0
    default:
3194
0
        {
3195
0
            mozilla::ipc::LogicError("unreached");
3196
0
            return;
3197
0
        }
3198
0
    }
3199
0
    mType = (aOther).type();
3200
0
}
3201
3202
MOZ_IMPLICIT HttpChannelCreationArgs::HttpChannelCreationArgs(HttpChannelCreationArgs&& aOther)
3203
0
{
3204
0
    (aOther).AssertSanity();
3205
0
    Type t = (aOther).type();
3206
0
    switch (t) {
3207
0
    case THttpChannelOpenArgs:
3208
0
        {
3209
0
            new (mozilla::KnownNotNull, ptr_HttpChannelOpenArgs()) HttpChannelOpenArgs(std::move((aOther).get_HttpChannelOpenArgs()));
3210
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
3211
0
            break;
3212
0
        }
3213
0
    case THttpChannelConnectArgs:
3214
0
        {
3215
0
            new (mozilla::KnownNotNull, ptr_HttpChannelConnectArgs()) HttpChannelConnectArgs(std::move((aOther).get_HttpChannelConnectArgs()));
3216
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
3217
0
            break;
3218
0
        }
3219
0
    case T__None:
3220
0
        {
3221
0
            break;
3222
0
        }
3223
0
    default:
3224
0
        {
3225
0
            mozilla::ipc::LogicError("unreached");
3226
0
            return;
3227
0
        }
3228
0
    }
3229
0
    (aOther).mType = T__None;
3230
0
    mType = t;
3231
0
}
3232
3233
HttpChannelCreationArgs::~HttpChannelCreationArgs()
3234
0
{
3235
0
    static_cast<void>(MaybeDestroy(T__None));
3236
0
}
3237
3238
auto HttpChannelCreationArgs::operator=(const HttpChannelOpenArgs& aRhs) -> HttpChannelCreationArgs&
3239
0
{
3240
0
    if (MaybeDestroy(THttpChannelOpenArgs)) {
3241
0
        new (mozilla::KnownNotNull, ptr_HttpChannelOpenArgs()) HttpChannelOpenArgs;
3242
0
    }
3243
0
    (*(ptr_HttpChannelOpenArgs())) = aRhs;
3244
0
    mType = THttpChannelOpenArgs;
3245
0
    return (*(this));
3246
0
}
3247
3248
auto HttpChannelCreationArgs::operator=(HttpChannelOpenArgs&& aRhs) -> HttpChannelCreationArgs&
3249
0
{
3250
0
    if (MaybeDestroy(THttpChannelOpenArgs)) {
3251
0
        new (mozilla::KnownNotNull, ptr_HttpChannelOpenArgs()) HttpChannelOpenArgs;
3252
0
    }
3253
0
    (*(ptr_HttpChannelOpenArgs())) = std::move(aRhs);
3254
0
    mType = THttpChannelOpenArgs;
3255
0
    return (*(this));
3256
0
}
3257
3258
auto HttpChannelCreationArgs::operator=(const HttpChannelConnectArgs& aRhs) -> HttpChannelCreationArgs&
3259
0
{
3260
0
    if (MaybeDestroy(THttpChannelConnectArgs)) {
3261
0
        new (mozilla::KnownNotNull, ptr_HttpChannelConnectArgs()) HttpChannelConnectArgs;
3262
0
    }
3263
0
    (*(ptr_HttpChannelConnectArgs())) = aRhs;
3264
0
    mType = THttpChannelConnectArgs;
3265
0
    return (*(this));
3266
0
}
3267
3268
auto HttpChannelCreationArgs::operator=(HttpChannelConnectArgs&& aRhs) -> HttpChannelCreationArgs&
3269
0
{
3270
0
    if (MaybeDestroy(THttpChannelConnectArgs)) {
3271
0
        new (mozilla::KnownNotNull, ptr_HttpChannelConnectArgs()) HttpChannelConnectArgs;
3272
0
    }
3273
0
    (*(ptr_HttpChannelConnectArgs())) = std::move(aRhs);
3274
0
    mType = THttpChannelConnectArgs;
3275
0
    return (*(this));
3276
0
}
3277
3278
auto HttpChannelCreationArgs::operator=(const HttpChannelCreationArgs& aRhs) -> HttpChannelCreationArgs&
3279
0
{
3280
0
    (aRhs).AssertSanity();
3281
0
    Type t = (aRhs).type();
3282
0
    switch (t) {
3283
0
    case THttpChannelOpenArgs:
3284
0
        {
3285
0
            if (MaybeDestroy(t)) {
3286
0
                new (mozilla::KnownNotNull, ptr_HttpChannelOpenArgs()) HttpChannelOpenArgs;
3287
0
            }
3288
0
            (*(ptr_HttpChannelOpenArgs())) = (aRhs).get_HttpChannelOpenArgs();
3289
0
            break;
3290
0
        }
3291
0
    case THttpChannelConnectArgs:
3292
0
        {
3293
0
            if (MaybeDestroy(t)) {
3294
0
                new (mozilla::KnownNotNull, ptr_HttpChannelConnectArgs()) HttpChannelConnectArgs;
3295
0
            }
3296
0
            (*(ptr_HttpChannelConnectArgs())) = (aRhs).get_HttpChannelConnectArgs();
3297
0
            break;
3298
0
        }
3299
0
    case T__None:
3300
0
        {
3301
0
            static_cast<void>(MaybeDestroy(t));
3302
0
            break;
3303
0
        }
3304
0
    default:
3305
0
        {
3306
0
            mozilla::ipc::LogicError("unreached");
3307
0
            break;
3308
0
        }
3309
0
    }
3310
0
    mType = t;
3311
0
    return (*(this));
3312
0
}
3313
3314
auto HttpChannelCreationArgs::operator=(HttpChannelCreationArgs&& aRhs) -> HttpChannelCreationArgs&
3315
0
{
3316
0
    (aRhs).AssertSanity();
3317
0
    Type t = (aRhs).type();
3318
0
    switch (t) {
3319
0
    case THttpChannelOpenArgs:
3320
0
        {
3321
0
            if (MaybeDestroy(t)) {
3322
0
                new (mozilla::KnownNotNull, ptr_HttpChannelOpenArgs()) HttpChannelOpenArgs;
3323
0
            }
3324
0
            (*(ptr_HttpChannelOpenArgs())) = std::move((aRhs).get_HttpChannelOpenArgs());
3325
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
3326
0
            break;
3327
0
        }
3328
0
    case THttpChannelConnectArgs:
3329
0
        {
3330
0
            if (MaybeDestroy(t)) {
3331
0
                new (mozilla::KnownNotNull, ptr_HttpChannelConnectArgs()) HttpChannelConnectArgs;
3332
0
            }
3333
0
            (*(ptr_HttpChannelConnectArgs())) = std::move((aRhs).get_HttpChannelConnectArgs());
3334
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
3335
0
            break;
3336
0
        }
3337
0
    case T__None:
3338
0
        {
3339
0
            static_cast<void>(MaybeDestroy(t));
3340
0
            break;
3341
0
        }
3342
0
    default:
3343
0
        {
3344
0
            mozilla::ipc::LogicError("unreached");
3345
0
            break;
3346
0
        }
3347
0
    }
3348
0
    (aRhs).mType = T__None;
3349
0
    mType = t;
3350
0
    return (*(this));
3351
0
}
3352
3353
auto HttpChannelCreationArgs::operator==(const HttpChannelOpenArgs& aRhs) const -> bool
3354
0
{
3355
0
    return (get_HttpChannelOpenArgs()) == (aRhs);
3356
0
}
3357
3358
auto HttpChannelCreationArgs::operator==(const HttpChannelConnectArgs& aRhs) const -> bool
3359
0
{
3360
0
    return (get_HttpChannelConnectArgs()) == (aRhs);
3361
0
}
3362
3363
auto HttpChannelCreationArgs::operator==(const HttpChannelCreationArgs& aRhs) const -> bool
3364
0
{
3365
0
    if ((type()) != ((aRhs).type())) {
3366
0
        return false;
3367
0
    }
3368
0
3369
0
    switch (type()) {
3370
0
    case THttpChannelOpenArgs:
3371
0
        {
3372
0
            return (get_HttpChannelOpenArgs()) == ((aRhs).get_HttpChannelOpenArgs());
3373
0
        }
3374
0
    case THttpChannelConnectArgs:
3375
0
        {
3376
0
            return (get_HttpChannelConnectArgs()) == ((aRhs).get_HttpChannelConnectArgs());
3377
0
        }
3378
0
    default:
3379
0
        {
3380
0
            mozilla::ipc::LogicError("unreached");
3381
0
            return false;
3382
0
        }
3383
0
    }
3384
0
}
3385
3386
auto HttpChannelCreationArgs::get(HttpChannelOpenArgs* aOutValue) const -> void
3387
0
{
3388
0
    (*(aOutValue)) = get_HttpChannelOpenArgs();
3389
0
}
3390
3391
auto HttpChannelCreationArgs::get(HttpChannelConnectArgs* aOutValue) const -> void
3392
0
{
3393
0
    (*(aOutValue)) = get_HttpChannelConnectArgs();
3394
0
}
3395
3396
} // namespace net
3397
} // namespace mozilla
3398
3399
namespace mozilla {
3400
namespace ipc {
3401
auto IPDLParamTraits<mozilla::net::HttpChannelCreationArgs>::Write(
3402
        IPC::Message* aMsg,
3403
        mozilla::ipc::IProtocol* aActor,
3404
        const paramType& aVar) -> void
3405
{
3406
    typedef mozilla::net::HttpChannelCreationArgs union__;
3407
    int type;
3408
    type = (aVar).type();
3409
    WriteIPDLParam(aMsg, aActor, type);
3410
    // Sentinel = 'HttpChannelCreationArgs'
3411
    (aMsg)->WriteSentinel(2242561662);
3412
3413
    switch (type) {
3414
    case union__::THttpChannelOpenArgs:
3415
        {
3416
            WriteIPDLParam(aMsg, aActor, (aVar).get_HttpChannelOpenArgs());
3417
            // Sentinel = 'THttpChannelOpenArgs'
3418
            (aMsg)->WriteSentinel(273235350);
3419
            return;
3420
        }
3421
    case union__::THttpChannelConnectArgs:
3422
        {
3423
            WriteIPDLParam(aMsg, aActor, (aVar).get_HttpChannelConnectArgs());
3424
            // Sentinel = 'THttpChannelConnectArgs'
3425
            (aMsg)->WriteSentinel(3100124069);
3426
            return;
3427
        }
3428
    default:
3429
        {
3430
            (aActor)->FatalError("unknown union type");
3431
            return;
3432
        }
3433
    }
3434
}
3435
3436
auto IPDLParamTraits<mozilla::net::HttpChannelCreationArgs>::Read(
3437
        const IPC::Message* aMsg,
3438
        PickleIterator* aIter,
3439
        mozilla::ipc::IProtocol* aActor,
3440
        paramType* aVar) -> bool
3441
0
{
3442
0
    typedef mozilla::net::HttpChannelCreationArgs union__;
3443
0
    int type;
3444
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
3445
0
        (aActor)->FatalError("Error deserializing type of union HttpChannelCreationArgs");
3446
0
        return false;
3447
0
    }
3448
0
    // Sentinel = 'HttpChannelCreationArgs'
3449
0
    if ((!((aMsg)->ReadSentinel(aIter, 2242561662)))) {
3450
0
        mozilla::ipc::SentinelReadError("Error deserializing type of union HttpChannelCreationArgs");
3451
0
        return false;
3452
0
    }
3453
0
3454
0
    switch (type) {
3455
0
    case union__::THttpChannelOpenArgs:
3456
0
        {
3457
0
            mozilla::net::HttpChannelOpenArgs tmp = mozilla::net::HttpChannelOpenArgs();
3458
0
            (*(aVar)) = tmp;
3459
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_HttpChannelOpenArgs())))))) {
3460
0
                (aActor)->FatalError("Error deserializing variant THttpChannelOpenArgs of union HttpChannelCreationArgs");
3461
0
                return false;
3462
0
            }
3463
0
            // Sentinel = 'THttpChannelOpenArgs'
3464
0
            if ((!((aMsg)->ReadSentinel(aIter, 273235350)))) {
3465
0
                mozilla::ipc::SentinelReadError("Error deserializing variant THttpChannelOpenArgs of union HttpChannelCreationArgs");
3466
0
                return false;
3467
0
            }
3468
0
            return true;
3469
0
        }
3470
0
    case union__::THttpChannelConnectArgs:
3471
0
        {
3472
0
            mozilla::net::HttpChannelConnectArgs tmp = mozilla::net::HttpChannelConnectArgs();
3473
0
            (*(aVar)) = tmp;
3474
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_HttpChannelConnectArgs())))))) {
3475
0
                (aActor)->FatalError("Error deserializing variant THttpChannelConnectArgs of union HttpChannelCreationArgs");
3476
0
                return false;
3477
0
            }
3478
0
            // Sentinel = 'THttpChannelConnectArgs'
3479
0
            if ((!((aMsg)->ReadSentinel(aIter, 3100124069)))) {
3480
0
                mozilla::ipc::SentinelReadError("Error deserializing variant THttpChannelConnectArgs of union HttpChannelCreationArgs");
3481
0
                return false;
3482
0
            }
3483
0
            return true;
3484
0
        }
3485
0
    default:
3486
0
        {
3487
0
            (aActor)->FatalError("unknown union type");
3488
0
            return false;
3489
0
        }
3490
0
    }
3491
0
}
3492
3493
} // namespace ipc
3494
} // namespace mozilla
3495
3496
//-----------------------------------------------------------------------------
3497
// Method definitions for the IPDL type |struct FTPChannelOpenArgs|
3498
//
3499
namespace mozilla {
3500
namespace net {
3501
auto FTPChannelOpenArgs::operator==(const FTPChannelOpenArgs& _o) const -> bool
3502
0
{
3503
0
    if ((!((uri()) == ((_o).uri())))) {
3504
0
        return false;
3505
0
    }
3506
0
    if ((!((startPos()) == ((_o).startPos())))) {
3507
0
        return false;
3508
0
    }
3509
0
    if ((!((entityID()) == ((_o).entityID())))) {
3510
0
        return false;
3511
0
    }
3512
0
    if ((!((uploadStream()) == ((_o).uploadStream())))) {
3513
0
        return false;
3514
0
    }
3515
0
    if ((!((loadInfo()) == ((_o).loadInfo())))) {
3516
0
        return false;
3517
0
    }
3518
0
    if ((!((loadFlags()) == ((_o).loadFlags())))) {
3519
0
        return false;
3520
0
    }
3521
0
    return true;
3522
0
}
3523
3524
auto FTPChannelOpenArgs::operator!=(const FTPChannelOpenArgs& _o) const -> bool
3525
0
{
3526
0
    return (!(operator==(_o)));
3527
0
}
3528
3529
} // namespace net
3530
} // namespace mozilla
3531
3532
namespace mozilla {
3533
namespace ipc {
3534
auto IPDLParamTraits<mozilla::net::FTPChannelOpenArgs>::Write(
3535
        IPC::Message* aMsg,
3536
        mozilla::ipc::IProtocol* aActor,
3537
        const paramType& aVar) -> void
3538
0
{
3539
0
    WriteIPDLParam(aMsg, aActor, (aVar).uri());
3540
0
    // Sentinel = 'uri'
3541
0
    (aMsg)->WriteSentinel(1453210605);
3542
0
    WriteIPDLParam(aMsg, aActor, (aVar).startPos());
3543
0
    // Sentinel = 'startPos'
3544
0
    (aMsg)->WriteSentinel(557207962);
3545
0
    WriteIPDLParam(aMsg, aActor, (aVar).entityID());
3546
0
    // Sentinel = 'entityID'
3547
0
    (aMsg)->WriteSentinel(245743354);
3548
0
    WriteIPDLParam(aMsg, aActor, (aVar).uploadStream());
3549
0
    // Sentinel = 'uploadStream'
3550
0
    (aMsg)->WriteSentinel(3559827199);
3551
0
    WriteIPDLParam(aMsg, aActor, (aVar).loadInfo());
3552
0
    // Sentinel = 'loadInfo'
3553
0
    (aMsg)->WriteSentinel(2597515304);
3554
0
    WriteIPDLParam(aMsg, aActor, (aVar).loadFlags());
3555
0
    // Sentinel = 'loadFlags'
3556
0
    (aMsg)->WriteSentinel(2391120444);
3557
0
}
3558
3559
auto IPDLParamTraits<mozilla::net::FTPChannelOpenArgs>::Read(
3560
        const IPC::Message* aMsg,
3561
        PickleIterator* aIter,
3562
        mozilla::ipc::IProtocol* aActor,
3563
        paramType* aVar) -> bool
3564
0
{
3565
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->uri())))))) {
3566
0
        (aActor)->FatalError("Error deserializing 'uri' (URIParams) member of 'FTPChannelOpenArgs'");
3567
0
        return false;
3568
0
    }
3569
0
    // Sentinel = 'uri'
3570
0
    if ((!((aMsg)->ReadSentinel(aIter, 1453210605)))) {
3571
0
        mozilla::ipc::SentinelReadError("Error deserializing 'uri' (URIParams) member of 'FTPChannelOpenArgs'");
3572
0
        return false;
3573
0
    }
3574
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->startPos())))))) {
3575
0
        (aActor)->FatalError("Error deserializing 'startPos' (uint64_t) member of 'FTPChannelOpenArgs'");
3576
0
        return false;
3577
0
    }
3578
0
    // Sentinel = 'startPos'
3579
0
    if ((!((aMsg)->ReadSentinel(aIter, 557207962)))) {
3580
0
        mozilla::ipc::SentinelReadError("Error deserializing 'startPos' (uint64_t) member of 'FTPChannelOpenArgs'");
3581
0
        return false;
3582
0
    }
3583
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->entityID())))))) {
3584
0
        (aActor)->FatalError("Error deserializing 'entityID' (nsCString) member of 'FTPChannelOpenArgs'");
3585
0
        return false;
3586
0
    }
3587
0
    // Sentinel = 'entityID'
3588
0
    if ((!((aMsg)->ReadSentinel(aIter, 245743354)))) {
3589
0
        mozilla::ipc::SentinelReadError("Error deserializing 'entityID' (nsCString) member of 'FTPChannelOpenArgs'");
3590
0
        return false;
3591
0
    }
3592
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->uploadStream())))))) {
3593
0
        (aActor)->FatalError("Error deserializing 'uploadStream' (OptionalIPCStream) member of 'FTPChannelOpenArgs'");
3594
0
        return false;
3595
0
    }
3596
0
    // Sentinel = 'uploadStream'
3597
0
    if ((!((aMsg)->ReadSentinel(aIter, 3559827199)))) {
3598
0
        mozilla::ipc::SentinelReadError("Error deserializing 'uploadStream' (OptionalIPCStream) member of 'FTPChannelOpenArgs'");
3599
0
        return false;
3600
0
    }
3601
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->loadInfo())))))) {
3602
0
        (aActor)->FatalError("Error deserializing 'loadInfo' (OptionalLoadInfoArgs) member of 'FTPChannelOpenArgs'");
3603
0
        return false;
3604
0
    }
3605
0
    // Sentinel = 'loadInfo'
3606
0
    if ((!((aMsg)->ReadSentinel(aIter, 2597515304)))) {
3607
0
        mozilla::ipc::SentinelReadError("Error deserializing 'loadInfo' (OptionalLoadInfoArgs) member of 'FTPChannelOpenArgs'");
3608
0
        return false;
3609
0
    }
3610
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->loadFlags())))))) {
3611
0
        (aActor)->FatalError("Error deserializing 'loadFlags' (uint32_t) member of 'FTPChannelOpenArgs'");
3612
0
        return false;
3613
0
    }
3614
0
    // Sentinel = 'loadFlags'
3615
0
    if ((!((aMsg)->ReadSentinel(aIter, 2391120444)))) {
3616
0
        mozilla::ipc::SentinelReadError("Error deserializing 'loadFlags' (uint32_t) member of 'FTPChannelOpenArgs'");
3617
0
        return false;
3618
0
    }
3619
0
    return true;
3620
0
}
3621
3622
} // namespace ipc
3623
} // namespace mozilla
3624
3625
//-----------------------------------------------------------------------------
3626
// Method definitions for the IPDL type |struct FTPChannelConnectArgs|
3627
//
3628
namespace mozilla {
3629
namespace net {
3630
auto FTPChannelConnectArgs::operator==(const FTPChannelConnectArgs& _o) const -> bool
3631
0
{
3632
0
    if ((!((channelId()) == ((_o).channelId())))) {
3633
0
        return false;
3634
0
    }
3635
0
    return true;
3636
0
}
3637
3638
auto FTPChannelConnectArgs::operator!=(const FTPChannelConnectArgs& _o) const -> bool
3639
0
{
3640
0
    return (!(operator==(_o)));
3641
0
}
3642
3643
} // namespace net
3644
} // namespace mozilla
3645
3646
namespace mozilla {
3647
namespace ipc {
3648
auto IPDLParamTraits<mozilla::net::FTPChannelConnectArgs>::Write(
3649
        IPC::Message* aMsg,
3650
        mozilla::ipc::IProtocol* aActor,
3651
        const paramType& aVar) -> void
3652
0
{
3653
0
    WriteIPDLParam(aMsg, aActor, (aVar).channelId());
3654
0
    // Sentinel = 'channelId'
3655
0
    (aMsg)->WriteSentinel(6854027);
3656
0
}
3657
3658
auto IPDLParamTraits<mozilla::net::FTPChannelConnectArgs>::Read(
3659
        const IPC::Message* aMsg,
3660
        PickleIterator* aIter,
3661
        mozilla::ipc::IProtocol* aActor,
3662
        paramType* aVar) -> bool
3663
0
{
3664
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->channelId())))))) {
3665
0
        (aActor)->FatalError("Error deserializing 'channelId' (uint32_t) member of 'FTPChannelConnectArgs'");
3666
0
        return false;
3667
0
    }
3668
0
    // Sentinel = 'channelId'
3669
0
    if ((!((aMsg)->ReadSentinel(aIter, 6854027)))) {
3670
0
        mozilla::ipc::SentinelReadError("Error deserializing 'channelId' (uint32_t) member of 'FTPChannelConnectArgs'");
3671
0
        return false;
3672
0
    }
3673
0
    return true;
3674
0
}
3675
3676
} // namespace ipc
3677
} // namespace mozilla
3678
3679
//-----------------------------------------------------------------------------
3680
// Method definitions for the IPDL type |union FTPChannelCreationArgs|
3681
//
3682
namespace mozilla {
3683
namespace net {
3684
auto FTPChannelCreationArgs::MaybeDestroy(Type aNewType) -> bool
3685
0
{
3686
0
    if ((mType) == (T__None)) {
3687
0
        return true;
3688
0
    }
3689
0
    if ((mType) == (aNewType)) {
3690
0
        return false;
3691
0
    }
3692
0
    switch (mType) {
3693
0
    case TFTPChannelOpenArgs:
3694
0
        {
3695
0
            (ptr_FTPChannelOpenArgs())->~FTPChannelOpenArgs__tdef();
3696
0
            break;
3697
0
        }
3698
0
    case TFTPChannelConnectArgs:
3699
0
        {
3700
0
            (ptr_FTPChannelConnectArgs())->~FTPChannelConnectArgs__tdef();
3701
0
            break;
3702
0
        }
3703
0
    default:
3704
0
        {
3705
0
            mozilla::ipc::LogicError("not reached");
3706
0
            break;
3707
0
        }
3708
0
    }
3709
0
    return true;
3710
0
}
3711
3712
MOZ_IMPLICIT FTPChannelCreationArgs::FTPChannelCreationArgs(const FTPChannelOpenArgs& aOther)
3713
0
{
3714
0
    new (mozilla::KnownNotNull, ptr_FTPChannelOpenArgs()) FTPChannelOpenArgs(aOther);
3715
0
    mType = TFTPChannelOpenArgs;
3716
0
}
3717
3718
MOZ_IMPLICIT FTPChannelCreationArgs::FTPChannelCreationArgs(FTPChannelOpenArgs&& aOther)
3719
0
{
3720
0
    new (mozilla::KnownNotNull, ptr_FTPChannelOpenArgs()) FTPChannelOpenArgs(std::move(aOther));
3721
0
    mType = TFTPChannelOpenArgs;
3722
0
}
3723
3724
MOZ_IMPLICIT FTPChannelCreationArgs::FTPChannelCreationArgs(const FTPChannelConnectArgs& aOther)
3725
0
{
3726
0
    new (mozilla::KnownNotNull, ptr_FTPChannelConnectArgs()) FTPChannelConnectArgs(aOther);
3727
0
    mType = TFTPChannelConnectArgs;
3728
0
}
3729
3730
MOZ_IMPLICIT FTPChannelCreationArgs::FTPChannelCreationArgs(FTPChannelConnectArgs&& aOther)
3731
0
{
3732
0
    new (mozilla::KnownNotNull, ptr_FTPChannelConnectArgs()) FTPChannelConnectArgs(std::move(aOther));
3733
0
    mType = TFTPChannelConnectArgs;
3734
0
}
3735
3736
MOZ_IMPLICIT FTPChannelCreationArgs::FTPChannelCreationArgs(const FTPChannelCreationArgs& aOther)
3737
0
{
3738
0
    (aOther).AssertSanity();
3739
0
    switch ((aOther).type()) {
3740
0
    case TFTPChannelOpenArgs:
3741
0
        {
3742
0
            new (mozilla::KnownNotNull, ptr_FTPChannelOpenArgs()) FTPChannelOpenArgs((aOther).get_FTPChannelOpenArgs());
3743
0
            break;
3744
0
        }
3745
0
    case TFTPChannelConnectArgs:
3746
0
        {
3747
0
            new (mozilla::KnownNotNull, ptr_FTPChannelConnectArgs()) FTPChannelConnectArgs((aOther).get_FTPChannelConnectArgs());
3748
0
            break;
3749
0
        }
3750
0
    case T__None:
3751
0
        {
3752
0
            break;
3753
0
        }
3754
0
    default:
3755
0
        {
3756
0
            mozilla::ipc::LogicError("unreached");
3757
0
            return;
3758
0
        }
3759
0
    }
3760
0
    mType = (aOther).type();
3761
0
}
3762
3763
MOZ_IMPLICIT FTPChannelCreationArgs::FTPChannelCreationArgs(FTPChannelCreationArgs&& aOther)
3764
0
{
3765
0
    (aOther).AssertSanity();
3766
0
    Type t = (aOther).type();
3767
0
    switch (t) {
3768
0
    case TFTPChannelOpenArgs:
3769
0
        {
3770
0
            new (mozilla::KnownNotNull, ptr_FTPChannelOpenArgs()) FTPChannelOpenArgs(std::move((aOther).get_FTPChannelOpenArgs()));
3771
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
3772
0
            break;
3773
0
        }
3774
0
    case TFTPChannelConnectArgs:
3775
0
        {
3776
0
            new (mozilla::KnownNotNull, ptr_FTPChannelConnectArgs()) FTPChannelConnectArgs(std::move((aOther).get_FTPChannelConnectArgs()));
3777
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
3778
0
            break;
3779
0
        }
3780
0
    case T__None:
3781
0
        {
3782
0
            break;
3783
0
        }
3784
0
    default:
3785
0
        {
3786
0
            mozilla::ipc::LogicError("unreached");
3787
0
            return;
3788
0
        }
3789
0
    }
3790
0
    (aOther).mType = T__None;
3791
0
    mType = t;
3792
0
}
3793
3794
FTPChannelCreationArgs::~FTPChannelCreationArgs()
3795
0
{
3796
0
    static_cast<void>(MaybeDestroy(T__None));
3797
0
}
3798
3799
auto FTPChannelCreationArgs::operator=(const FTPChannelOpenArgs& aRhs) -> FTPChannelCreationArgs&
3800
0
{
3801
0
    if (MaybeDestroy(TFTPChannelOpenArgs)) {
3802
0
        new (mozilla::KnownNotNull, ptr_FTPChannelOpenArgs()) FTPChannelOpenArgs;
3803
0
    }
3804
0
    (*(ptr_FTPChannelOpenArgs())) = aRhs;
3805
0
    mType = TFTPChannelOpenArgs;
3806
0
    return (*(this));
3807
0
}
3808
3809
auto FTPChannelCreationArgs::operator=(FTPChannelOpenArgs&& aRhs) -> FTPChannelCreationArgs&
3810
0
{
3811
0
    if (MaybeDestroy(TFTPChannelOpenArgs)) {
3812
0
        new (mozilla::KnownNotNull, ptr_FTPChannelOpenArgs()) FTPChannelOpenArgs;
3813
0
    }
3814
0
    (*(ptr_FTPChannelOpenArgs())) = std::move(aRhs);
3815
0
    mType = TFTPChannelOpenArgs;
3816
0
    return (*(this));
3817
0
}
3818
3819
auto FTPChannelCreationArgs::operator=(const FTPChannelConnectArgs& aRhs) -> FTPChannelCreationArgs&
3820
0
{
3821
0
    if (MaybeDestroy(TFTPChannelConnectArgs)) {
3822
0
        new (mozilla::KnownNotNull, ptr_FTPChannelConnectArgs()) FTPChannelConnectArgs;
3823
0
    }
3824
0
    (*(ptr_FTPChannelConnectArgs())) = aRhs;
3825
0
    mType = TFTPChannelConnectArgs;
3826
0
    return (*(this));
3827
0
}
3828
3829
auto FTPChannelCreationArgs::operator=(FTPChannelConnectArgs&& aRhs) -> FTPChannelCreationArgs&
3830
0
{
3831
0
    if (MaybeDestroy(TFTPChannelConnectArgs)) {
3832
0
        new (mozilla::KnownNotNull, ptr_FTPChannelConnectArgs()) FTPChannelConnectArgs;
3833
0
    }
3834
0
    (*(ptr_FTPChannelConnectArgs())) = std::move(aRhs);
3835
0
    mType = TFTPChannelConnectArgs;
3836
0
    return (*(this));
3837
0
}
3838
3839
auto FTPChannelCreationArgs::operator=(const FTPChannelCreationArgs& aRhs) -> FTPChannelCreationArgs&
3840
0
{
3841
0
    (aRhs).AssertSanity();
3842
0
    Type t = (aRhs).type();
3843
0
    switch (t) {
3844
0
    case TFTPChannelOpenArgs:
3845
0
        {
3846
0
            if (MaybeDestroy(t)) {
3847
0
                new (mozilla::KnownNotNull, ptr_FTPChannelOpenArgs()) FTPChannelOpenArgs;
3848
0
            }
3849
0
            (*(ptr_FTPChannelOpenArgs())) = (aRhs).get_FTPChannelOpenArgs();
3850
0
            break;
3851
0
        }
3852
0
    case TFTPChannelConnectArgs:
3853
0
        {
3854
0
            if (MaybeDestroy(t)) {
3855
0
                new (mozilla::KnownNotNull, ptr_FTPChannelConnectArgs()) FTPChannelConnectArgs;
3856
0
            }
3857
0
            (*(ptr_FTPChannelConnectArgs())) = (aRhs).get_FTPChannelConnectArgs();
3858
0
            break;
3859
0
        }
3860
0
    case T__None:
3861
0
        {
3862
0
            static_cast<void>(MaybeDestroy(t));
3863
0
            break;
3864
0
        }
3865
0
    default:
3866
0
        {
3867
0
            mozilla::ipc::LogicError("unreached");
3868
0
            break;
3869
0
        }
3870
0
    }
3871
0
    mType = t;
3872
0
    return (*(this));
3873
0
}
3874
3875
auto FTPChannelCreationArgs::operator=(FTPChannelCreationArgs&& aRhs) -> FTPChannelCreationArgs&
3876
0
{
3877
0
    (aRhs).AssertSanity();
3878
0
    Type t = (aRhs).type();
3879
0
    switch (t) {
3880
0
    case TFTPChannelOpenArgs:
3881
0
        {
3882
0
            if (MaybeDestroy(t)) {
3883
0
                new (mozilla::KnownNotNull, ptr_FTPChannelOpenArgs()) FTPChannelOpenArgs;
3884
0
            }
3885
0
            (*(ptr_FTPChannelOpenArgs())) = std::move((aRhs).get_FTPChannelOpenArgs());
3886
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
3887
0
            break;
3888
0
        }
3889
0
    case TFTPChannelConnectArgs:
3890
0
        {
3891
0
            if (MaybeDestroy(t)) {
3892
0
                new (mozilla::KnownNotNull, ptr_FTPChannelConnectArgs()) FTPChannelConnectArgs;
3893
0
            }
3894
0
            (*(ptr_FTPChannelConnectArgs())) = std::move((aRhs).get_FTPChannelConnectArgs());
3895
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
3896
0
            break;
3897
0
        }
3898
0
    case T__None:
3899
0
        {
3900
0
            static_cast<void>(MaybeDestroy(t));
3901
0
            break;
3902
0
        }
3903
0
    default:
3904
0
        {
3905
0
            mozilla::ipc::LogicError("unreached");
3906
0
            break;
3907
0
        }
3908
0
    }
3909
0
    (aRhs).mType = T__None;
3910
0
    mType = t;
3911
0
    return (*(this));
3912
0
}
3913
3914
auto FTPChannelCreationArgs::operator==(const FTPChannelOpenArgs& aRhs) const -> bool
3915
0
{
3916
0
    return (get_FTPChannelOpenArgs()) == (aRhs);
3917
0
}
3918
3919
auto FTPChannelCreationArgs::operator==(const FTPChannelConnectArgs& aRhs) const -> bool
3920
0
{
3921
0
    return (get_FTPChannelConnectArgs()) == (aRhs);
3922
0
}
3923
3924
auto FTPChannelCreationArgs::operator==(const FTPChannelCreationArgs& aRhs) const -> bool
3925
0
{
3926
0
    if ((type()) != ((aRhs).type())) {
3927
0
        return false;
3928
0
    }
3929
0
3930
0
    switch (type()) {
3931
0
    case TFTPChannelOpenArgs:
3932
0
        {
3933
0
            return (get_FTPChannelOpenArgs()) == ((aRhs).get_FTPChannelOpenArgs());
3934
0
        }
3935
0
    case TFTPChannelConnectArgs:
3936
0
        {
3937
0
            return (get_FTPChannelConnectArgs()) == ((aRhs).get_FTPChannelConnectArgs());
3938
0
        }
3939
0
    default:
3940
0
        {
3941
0
            mozilla::ipc::LogicError("unreached");
3942
0
            return false;
3943
0
        }
3944
0
    }
3945
0
}
3946
3947
auto FTPChannelCreationArgs::get(FTPChannelOpenArgs* aOutValue) const -> void
3948
0
{
3949
0
    (*(aOutValue)) = get_FTPChannelOpenArgs();
3950
0
}
3951
3952
auto FTPChannelCreationArgs::get(FTPChannelConnectArgs* aOutValue) const -> void
3953
0
{
3954
0
    (*(aOutValue)) = get_FTPChannelConnectArgs();
3955
0
}
3956
3957
} // namespace net
3958
} // namespace mozilla
3959
3960
namespace mozilla {
3961
namespace ipc {
3962
auto IPDLParamTraits<mozilla::net::FTPChannelCreationArgs>::Write(
3963
        IPC::Message* aMsg,
3964
        mozilla::ipc::IProtocol* aActor,
3965
        const paramType& aVar) -> void
3966
{
3967
    typedef mozilla::net::FTPChannelCreationArgs union__;
3968
    int type;
3969
    type = (aVar).type();
3970
    WriteIPDLParam(aMsg, aActor, type);
3971
    // Sentinel = 'FTPChannelCreationArgs'
3972
    (aMsg)->WriteSentinel(1911741737);
3973
3974
    switch (type) {
3975
    case union__::TFTPChannelOpenArgs:
3976
        {
3977
            WriteIPDLParam(aMsg, aActor, (aVar).get_FTPChannelOpenArgs());
3978
            // Sentinel = 'TFTPChannelOpenArgs'
3979
            (aMsg)->WriteSentinel(1536686851);
3980
            return;
3981
        }
3982
    case union__::TFTPChannelConnectArgs:
3983
        {
3984
            WriteIPDLParam(aMsg, aActor, (aVar).get_FTPChannelConnectArgs());
3985
            // Sentinel = 'TFTPChannelConnectArgs'
3986
            (aMsg)->WriteSentinel(3182840870);
3987
            return;
3988
        }
3989
    default:
3990
        {
3991
            (aActor)->FatalError("unknown union type");
3992
            return;
3993
        }
3994
    }
3995
}
3996
3997
auto IPDLParamTraits<mozilla::net::FTPChannelCreationArgs>::Read(
3998
        const IPC::Message* aMsg,
3999
        PickleIterator* aIter,
4000
        mozilla::ipc::IProtocol* aActor,
4001
        paramType* aVar) -> bool
4002
0
{
4003
0
    typedef mozilla::net::FTPChannelCreationArgs union__;
4004
0
    int type;
4005
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
4006
0
        (aActor)->FatalError("Error deserializing type of union FTPChannelCreationArgs");
4007
0
        return false;
4008
0
    }
4009
0
    // Sentinel = 'FTPChannelCreationArgs'
4010
0
    if ((!((aMsg)->ReadSentinel(aIter, 1911741737)))) {
4011
0
        mozilla::ipc::SentinelReadError("Error deserializing type of union FTPChannelCreationArgs");
4012
0
        return false;
4013
0
    }
4014
0
4015
0
    switch (type) {
4016
0
    case union__::TFTPChannelOpenArgs:
4017
0
        {
4018
0
            mozilla::net::FTPChannelOpenArgs tmp = mozilla::net::FTPChannelOpenArgs();
4019
0
            (*(aVar)) = tmp;
4020
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_FTPChannelOpenArgs())))))) {
4021
0
                (aActor)->FatalError("Error deserializing variant TFTPChannelOpenArgs of union FTPChannelCreationArgs");
4022
0
                return false;
4023
0
            }
4024
0
            // Sentinel = 'TFTPChannelOpenArgs'
4025
0
            if ((!((aMsg)->ReadSentinel(aIter, 1536686851)))) {
4026
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TFTPChannelOpenArgs of union FTPChannelCreationArgs");
4027
0
                return false;
4028
0
            }
4029
0
            return true;
4030
0
        }
4031
0
    case union__::TFTPChannelConnectArgs:
4032
0
        {
4033
0
            mozilla::net::FTPChannelConnectArgs tmp = mozilla::net::FTPChannelConnectArgs();
4034
0
            (*(aVar)) = tmp;
4035
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_FTPChannelConnectArgs())))))) {
4036
0
                (aActor)->FatalError("Error deserializing variant TFTPChannelConnectArgs of union FTPChannelCreationArgs");
4037
0
                return false;
4038
0
            }
4039
0
            // Sentinel = 'TFTPChannelConnectArgs'
4040
0
            if ((!((aMsg)->ReadSentinel(aIter, 3182840870)))) {
4041
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TFTPChannelConnectArgs of union FTPChannelCreationArgs");
4042
0
                return false;
4043
0
            }
4044
0
            return true;
4045
0
        }
4046
0
    default:
4047
0
        {
4048
0
            (aActor)->FatalError("unknown union type");
4049
0
            return false;
4050
0
        }
4051
0
    }
4052
0
}
4053
4054
} // namespace ipc
4055
} // namespace mozilla
4056
4057
//-----------------------------------------------------------------------------
4058
// Method definitions for the IPDL type |struct HttpChannelDiverterArgs|
4059
//
4060
namespace mozilla {
4061
namespace net {
4062
auto HttpChannelDiverterArgs::operator==(const HttpChannelDiverterArgs& _o) const -> bool
4063
0
{
4064
0
    if ((!((mChannelParent()) == ((_o).mChannelParent())))) {
4065
0
        return false;
4066
0
    }
4067
0
    if ((!((mChannelChild()) == ((_o).mChannelChild())))) {
4068
0
        return false;
4069
0
    }
4070
0
    if ((!((mApplyConversion()) == ((_o).mApplyConversion())))) {
4071
0
        return false;
4072
0
    }
4073
0
    return true;
4074
0
}
4075
4076
auto HttpChannelDiverterArgs::operator!=(const HttpChannelDiverterArgs& _o) const -> bool
4077
0
{
4078
0
    return (!(operator==(_o)));
4079
0
}
4080
4081
} // namespace net
4082
} // namespace mozilla
4083
4084
namespace mozilla {
4085
namespace ipc {
4086
auto IPDLParamTraits<mozilla::net::HttpChannelDiverterArgs>::Write(
4087
        IPC::Message* aMsg,
4088
        mozilla::ipc::IProtocol* aActor,
4089
        const paramType& aVar) -> void
4090
0
{
4091
0
    if ((mozilla::ipc::ParentSide) == ((aActor)->GetSide())) {
4092
0
        MOZ_RELEASE_ASSERT((aVar).mChannelParent(), "NULL actor value passed to non-nullable param");
4093
0
        WriteIPDLParam(aMsg, aActor, (aVar).mChannelParent());
4094
0
        // Sentinel = 'mChannel'
4095
0
        (aMsg)->WriteSentinel(1707342666);
4096
0
    }
4097
0
    if ((mozilla::ipc::ChildSide) == ((aActor)->GetSide())) {
4098
0
        MOZ_RELEASE_ASSERT((aVar).mChannelChild(), "NULL actor value passed to non-nullable param");
4099
0
        WriteIPDLParam(aMsg, aActor, (aVar).mChannelChild());
4100
0
        // Sentinel = 'mChannel'
4101
0
        (aMsg)->WriteSentinel(1707342666);
4102
0
    }
4103
0
    WriteIPDLParam(aMsg, aActor, (aVar).mApplyConversion());
4104
0
    // Sentinel = 'mApplyConversion'
4105
0
    (aMsg)->WriteSentinel(2495336819);
4106
0
}
4107
4108
auto IPDLParamTraits<mozilla::net::HttpChannelDiverterArgs>::Read(
4109
        const IPC::Message* aMsg,
4110
        PickleIterator* aIter,
4111
        mozilla::ipc::IProtocol* aActor,
4112
        paramType* aVar) -> bool
4113
0
{
4114
0
    if ((mozilla::ipc::ParentSide) == ((aActor)->GetSide())) {
4115
0
        if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->mChannelParent())))))) {
4116
0
            (aActor)->FatalError("Error deserializing 'mChannelParent' (PHttpChannel) member of 'HttpChannelDiverterArgs'");
4117
0
            return false;
4118
0
        }
4119
0
        if ((!((*((&((aVar)->mChannelParent()))))))) {
4120
0
            (aActor)->FatalError("Error deserializing 'mChannelParent' (PHttpChannel) member of 'HttpChannelDiverterArgs'");
4121
0
            return false;
4122
0
        }
4123
0
        // Sentinel = 'mChannel'
4124
0
        if ((!((aMsg)->ReadSentinel(aIter, 1707342666)))) {
4125
0
            mozilla::ipc::SentinelReadError("Error deserializing 'mChannelParent' (PHttpChannel) member of 'HttpChannelDiverterArgs'");
4126
0
            return false;
4127
0
        }
4128
0
    }
4129
0
    if ((mozilla::ipc::ChildSide) == ((aActor)->GetSide())) {
4130
0
        if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->mChannelChild())))))) {
4131
0
            (aActor)->FatalError("Error deserializing 'mChannelChild' (PHttpChannel) member of 'HttpChannelDiverterArgs'");
4132
0
            return false;
4133
0
        }
4134
0
        if ((!((*((&((aVar)->mChannelChild()))))))) {
4135
0
            (aActor)->FatalError("Error deserializing 'mChannelChild' (PHttpChannel) member of 'HttpChannelDiverterArgs'");
4136
0
            return false;
4137
0
        }
4138
0
        // Sentinel = 'mChannel'
4139
0
        if ((!((aMsg)->ReadSentinel(aIter, 1707342666)))) {
4140
0
            mozilla::ipc::SentinelReadError("Error deserializing 'mChannelChild' (PHttpChannel) member of 'HttpChannelDiverterArgs'");
4141
0
            return false;
4142
0
        }
4143
0
    }
4144
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->mApplyConversion())))))) {
4145
0
        (aActor)->FatalError("Error deserializing 'mApplyConversion' (bool) member of 'HttpChannelDiverterArgs'");
4146
0
        return false;
4147
0
    }
4148
0
    // Sentinel = 'mApplyConversion'
4149
0
    if ((!((aMsg)->ReadSentinel(aIter, 2495336819)))) {
4150
0
        mozilla::ipc::SentinelReadError("Error deserializing 'mApplyConversion' (bool) member of 'HttpChannelDiverterArgs'");
4151
0
        return false;
4152
0
    }
4153
0
    return true;
4154
0
}
4155
4156
} // namespace ipc
4157
} // namespace mozilla
4158
4159
//-----------------------------------------------------------------------------
4160
// Method definitions for the IPDL type |union ChannelDiverterArgs|
4161
//
4162
namespace mozilla {
4163
namespace net {
4164
auto ChannelDiverterArgs::MaybeDestroy(Type aNewType) -> bool
4165
0
{
4166
0
    if ((mType) == (T__None)) {
4167
0
        return true;
4168
0
    }
4169
0
    if ((mType) == (aNewType)) {
4170
0
        return false;
4171
0
    }
4172
0
    switch (mType) {
4173
0
    case THttpChannelDiverterArgs:
4174
0
        {
4175
0
            (ptr_HttpChannelDiverterArgs())->~HttpChannelDiverterArgs__tdef();
4176
0
            break;
4177
0
        }
4178
0
    case TPFTPChannelParent:
4179
0
        {
4180
0
            (ptr_PFTPChannelParent())->~PFTPChannelParent__tdef();
4181
0
            break;
4182
0
        }
4183
0
    case TPFTPChannelChild:
4184
0
        {
4185
0
            (ptr_PFTPChannelChild())->~PFTPChannelChild__tdef();
4186
0
            break;
4187
0
        }
4188
0
    default:
4189
0
        {
4190
0
            mozilla::ipc::LogicError("not reached");
4191
0
            break;
4192
0
        }
4193
0
    }
4194
0
    return true;
4195
0
}
4196
4197
MOZ_IMPLICIT ChannelDiverterArgs::ChannelDiverterArgs(const HttpChannelDiverterArgs& aOther)
4198
0
{
4199
0
    new (mozilla::KnownNotNull, ptr_HttpChannelDiverterArgs()) HttpChannelDiverterArgs(aOther);
4200
0
    mType = THttpChannelDiverterArgs;
4201
0
}
4202
4203
MOZ_IMPLICIT ChannelDiverterArgs::ChannelDiverterArgs(HttpChannelDiverterArgs&& aOther)
4204
0
{
4205
0
    new (mozilla::KnownNotNull, ptr_HttpChannelDiverterArgs()) HttpChannelDiverterArgs(std::move(aOther));
4206
0
    mType = THttpChannelDiverterArgs;
4207
0
}
4208
4209
MOZ_IMPLICIT ChannelDiverterArgs::ChannelDiverterArgs(PFTPChannelParent* aOther)
4210
0
{
4211
0
    new (mozilla::KnownNotNull, ptr_PFTPChannelParent()) PFTPChannelParent*(const_cast<PFTPChannelParent*>(aOther));
4212
0
    mType = TPFTPChannelParent;
4213
0
}
4214
4215
MOZ_IMPLICIT ChannelDiverterArgs::ChannelDiverterArgs(PFTPChannelChild* aOther)
4216
0
{
4217
0
    new (mozilla::KnownNotNull, ptr_PFTPChannelChild()) PFTPChannelChild*(const_cast<PFTPChannelChild*>(aOther));
4218
0
    mType = TPFTPChannelChild;
4219
0
}
4220
4221
MOZ_IMPLICIT ChannelDiverterArgs::ChannelDiverterArgs(const ChannelDiverterArgs& aOther)
4222
0
{
4223
0
    (aOther).AssertSanity();
4224
0
    switch ((aOther).type()) {
4225
0
    case THttpChannelDiverterArgs:
4226
0
        {
4227
0
            new (mozilla::KnownNotNull, ptr_HttpChannelDiverterArgs()) HttpChannelDiverterArgs((aOther).get_HttpChannelDiverterArgs());
4228
0
            break;
4229
0
        }
4230
0
    case TPFTPChannelParent:
4231
0
        {
4232
0
            new (mozilla::KnownNotNull, ptr_PFTPChannelParent()) PFTPChannelParent*(const_cast<PFTPChannelParent*>((aOther).get_PFTPChannelParent()));
4233
0
            break;
4234
0
        }
4235
0
    case TPFTPChannelChild:
4236
0
        {
4237
0
            new (mozilla::KnownNotNull, ptr_PFTPChannelChild()) PFTPChannelChild*(const_cast<PFTPChannelChild*>((aOther).get_PFTPChannelChild()));
4238
0
            break;
4239
0
        }
4240
0
    case T__None:
4241
0
        {
4242
0
            break;
4243
0
        }
4244
0
    default:
4245
0
        {
4246
0
            mozilla::ipc::LogicError("unreached");
4247
0
            return;
4248
0
        }
4249
0
    }
4250
0
    mType = (aOther).type();
4251
0
}
4252
4253
MOZ_IMPLICIT ChannelDiverterArgs::ChannelDiverterArgs(ChannelDiverterArgs&& aOther)
4254
0
{
4255
0
    (aOther).AssertSanity();
4256
0
    Type t = (aOther).type();
4257
0
    switch (t) {
4258
0
    case THttpChannelDiverterArgs:
4259
0
        {
4260
0
            new (mozilla::KnownNotNull, ptr_HttpChannelDiverterArgs()) HttpChannelDiverterArgs(std::move((aOther).get_HttpChannelDiverterArgs()));
4261
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
4262
0
            break;
4263
0
        }
4264
0
    case TPFTPChannelParent:
4265
0
        {
4266
0
            new (mozilla::KnownNotNull, ptr_PFTPChannelParent()) PFTPChannelParent*(const_cast<PFTPChannelParent*>(std::move((aOther).get_PFTPChannelParent())));
4267
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
4268
0
            break;
4269
0
        }
4270
0
    case TPFTPChannelChild:
4271
0
        {
4272
0
            new (mozilla::KnownNotNull, ptr_PFTPChannelChild()) PFTPChannelChild*(const_cast<PFTPChannelChild*>(std::move((aOther).get_PFTPChannelChild())));
4273
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
4274
0
            break;
4275
0
        }
4276
0
    case T__None:
4277
0
        {
4278
0
            break;
4279
0
        }
4280
0
    default:
4281
0
        {
4282
0
            mozilla::ipc::LogicError("unreached");
4283
0
            return;
4284
0
        }
4285
0
    }
4286
0
    (aOther).mType = T__None;
4287
0
    mType = t;
4288
0
}
4289
4290
ChannelDiverterArgs::~ChannelDiverterArgs()
4291
0
{
4292
0
    static_cast<void>(MaybeDestroy(T__None));
4293
0
}
4294
4295
auto ChannelDiverterArgs::operator=(const HttpChannelDiverterArgs& aRhs) -> ChannelDiverterArgs&
4296
0
{
4297
0
    if (MaybeDestroy(THttpChannelDiverterArgs)) {
4298
0
        new (mozilla::KnownNotNull, ptr_HttpChannelDiverterArgs()) HttpChannelDiverterArgs;
4299
0
    }
4300
0
    (*(ptr_HttpChannelDiverterArgs())) = aRhs;
4301
0
    mType = THttpChannelDiverterArgs;
4302
0
    return (*(this));
4303
0
}
4304
4305
auto ChannelDiverterArgs::operator=(HttpChannelDiverterArgs&& aRhs) -> ChannelDiverterArgs&
4306
0
{
4307
0
    if (MaybeDestroy(THttpChannelDiverterArgs)) {
4308
0
        new (mozilla::KnownNotNull, ptr_HttpChannelDiverterArgs()) HttpChannelDiverterArgs;
4309
0
    }
4310
0
    (*(ptr_HttpChannelDiverterArgs())) = std::move(aRhs);
4311
0
    mType = THttpChannelDiverterArgs;
4312
0
    return (*(this));
4313
0
}
4314
4315
auto ChannelDiverterArgs::operator=(PFTPChannelParent* aRhs) -> ChannelDiverterArgs&
4316
0
{
4317
0
    if (MaybeDestroy(TPFTPChannelParent)) {
4318
0
        new (mozilla::KnownNotNull, ptr_PFTPChannelParent()) PFTPChannelParent*;
4319
0
    }
4320
0
    (*(ptr_PFTPChannelParent())) = const_cast<PFTPChannelParent*>(aRhs);
4321
0
    mType = TPFTPChannelParent;
4322
0
    return (*(this));
4323
0
}
4324
4325
auto ChannelDiverterArgs::operator=(PFTPChannelChild* aRhs) -> ChannelDiverterArgs&
4326
0
{
4327
0
    if (MaybeDestroy(TPFTPChannelChild)) {
4328
0
        new (mozilla::KnownNotNull, ptr_PFTPChannelChild()) PFTPChannelChild*;
4329
0
    }
4330
0
    (*(ptr_PFTPChannelChild())) = const_cast<PFTPChannelChild*>(aRhs);
4331
0
    mType = TPFTPChannelChild;
4332
0
    return (*(this));
4333
0
}
4334
4335
auto ChannelDiverterArgs::operator=(const ChannelDiverterArgs& aRhs) -> ChannelDiverterArgs&
4336
0
{
4337
0
    (aRhs).AssertSanity();
4338
0
    Type t = (aRhs).type();
4339
0
    switch (t) {
4340
0
    case THttpChannelDiverterArgs:
4341
0
        {
4342
0
            if (MaybeDestroy(t)) {
4343
0
                new (mozilla::KnownNotNull, ptr_HttpChannelDiverterArgs()) HttpChannelDiverterArgs;
4344
0
            }
4345
0
            (*(ptr_HttpChannelDiverterArgs())) = (aRhs).get_HttpChannelDiverterArgs();
4346
0
            break;
4347
0
        }
4348
0
    case TPFTPChannelParent:
4349
0
        {
4350
0
            if (MaybeDestroy(t)) {
4351
0
                new (mozilla::KnownNotNull, ptr_PFTPChannelParent()) PFTPChannelParent*;
4352
0
            }
4353
0
            (*(ptr_PFTPChannelParent())) = const_cast<PFTPChannelParent*>((aRhs).get_PFTPChannelParent());
4354
0
            break;
4355
0
        }
4356
0
    case TPFTPChannelChild:
4357
0
        {
4358
0
            if (MaybeDestroy(t)) {
4359
0
                new (mozilla::KnownNotNull, ptr_PFTPChannelChild()) PFTPChannelChild*;
4360
0
            }
4361
0
            (*(ptr_PFTPChannelChild())) = const_cast<PFTPChannelChild*>((aRhs).get_PFTPChannelChild());
4362
0
            break;
4363
0
        }
4364
0
    case T__None:
4365
0
        {
4366
0
            static_cast<void>(MaybeDestroy(t));
4367
0
            break;
4368
0
        }
4369
0
    default:
4370
0
        {
4371
0
            mozilla::ipc::LogicError("unreached");
4372
0
            break;
4373
0
        }
4374
0
    }
4375
0
    mType = t;
4376
0
    return (*(this));
4377
0
}
4378
4379
auto ChannelDiverterArgs::operator=(ChannelDiverterArgs&& aRhs) -> ChannelDiverterArgs&
4380
0
{
4381
0
    (aRhs).AssertSanity();
4382
0
    Type t = (aRhs).type();
4383
0
    switch (t) {
4384
0
    case THttpChannelDiverterArgs:
4385
0
        {
4386
0
            if (MaybeDestroy(t)) {
4387
0
                new (mozilla::KnownNotNull, ptr_HttpChannelDiverterArgs()) HttpChannelDiverterArgs;
4388
0
            }
4389
0
            (*(ptr_HttpChannelDiverterArgs())) = std::move((aRhs).get_HttpChannelDiverterArgs());
4390
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
4391
0
            break;
4392
0
        }
4393
0
    case TPFTPChannelParent:
4394
0
        {
4395
0
            if (MaybeDestroy(t)) {
4396
0
                new (mozilla::KnownNotNull, ptr_PFTPChannelParent()) PFTPChannelParent*;
4397
0
            }
4398
0
            (*(ptr_PFTPChannelParent())) = const_cast<PFTPChannelParent*>(std::move((aRhs).get_PFTPChannelParent()));
4399
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
4400
0
            break;
4401
0
        }
4402
0
    case TPFTPChannelChild:
4403
0
        {
4404
0
            if (MaybeDestroy(t)) {
4405
0
                new (mozilla::KnownNotNull, ptr_PFTPChannelChild()) PFTPChannelChild*;
4406
0
            }
4407
0
            (*(ptr_PFTPChannelChild())) = const_cast<PFTPChannelChild*>(std::move((aRhs).get_PFTPChannelChild()));
4408
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
4409
0
            break;
4410
0
        }
4411
0
    case T__None:
4412
0
        {
4413
0
            static_cast<void>(MaybeDestroy(t));
4414
0
            break;
4415
0
        }
4416
0
    default:
4417
0
        {
4418
0
            mozilla::ipc::LogicError("unreached");
4419
0
            break;
4420
0
        }
4421
0
    }
4422
0
    (aRhs).mType = T__None;
4423
0
    mType = t;
4424
0
    return (*(this));
4425
0
}
4426
4427
auto ChannelDiverterArgs::operator==(const HttpChannelDiverterArgs& aRhs) const -> bool
4428
0
{
4429
0
    return (get_HttpChannelDiverterArgs()) == (aRhs);
4430
0
}
4431
4432
auto ChannelDiverterArgs::operator==(PFTPChannelParent* aRhs) const -> bool
4433
0
{
4434
0
    return (get_PFTPChannelParent()) == (aRhs);
4435
0
}
4436
4437
auto ChannelDiverterArgs::operator==(PFTPChannelChild* aRhs) const -> bool
4438
0
{
4439
0
    return (get_PFTPChannelChild()) == (aRhs);
4440
0
}
4441
4442
auto ChannelDiverterArgs::operator==(const ChannelDiverterArgs& aRhs) const -> bool
4443
0
{
4444
0
    if ((type()) != ((aRhs).type())) {
4445
0
        return false;
4446
0
    }
4447
0
4448
0
    switch (type()) {
4449
0
    case THttpChannelDiverterArgs:
4450
0
        {
4451
0
            return (get_HttpChannelDiverterArgs()) == ((aRhs).get_HttpChannelDiverterArgs());
4452
0
        }
4453
0
    case TPFTPChannelParent:
4454
0
        {
4455
0
            return (get_PFTPChannelParent()) == ((aRhs).get_PFTPChannelParent());
4456
0
        }
4457
0
    case TPFTPChannelChild:
4458
0
        {
4459
0
            return (get_PFTPChannelChild()) == ((aRhs).get_PFTPChannelChild());
4460
0
        }
4461
0
    default:
4462
0
        {
4463
0
            mozilla::ipc::LogicError("unreached");
4464
0
            return false;
4465
0
        }
4466
0
    }
4467
0
}
4468
4469
auto ChannelDiverterArgs::get(HttpChannelDiverterArgs* aOutValue) const -> void
4470
0
{
4471
0
    (*(aOutValue)) = get_HttpChannelDiverterArgs();
4472
0
}
4473
4474
auto ChannelDiverterArgs::get(PFTPChannelParent** aOutValue) const -> void
4475
0
{
4476
0
    (*(aOutValue)) = get_PFTPChannelParent();
4477
0
}
4478
4479
auto ChannelDiverterArgs::get(PFTPChannelChild** aOutValue) const -> void
4480
0
{
4481
0
    (*(aOutValue)) = get_PFTPChannelChild();
4482
0
}
4483
4484
} // namespace net
4485
} // namespace mozilla
4486
4487
namespace mozilla {
4488
namespace ipc {
4489
auto IPDLParamTraits<mozilla::net::ChannelDiverterArgs>::Write(
4490
        IPC::Message* aMsg,
4491
        mozilla::ipc::IProtocol* aActor,
4492
        const paramType& aVar) -> void
4493
0
{
4494
0
    typedef mozilla::net::ChannelDiverterArgs union__;
4495
0
    int type;
4496
0
    type = (aVar).type();
4497
0
    WriteIPDLParam(aMsg, aActor, type);
4498
0
    // Sentinel = 'ChannelDiverterArgs'
4499
0
    (aMsg)->WriteSentinel(2207945912);
4500
0
4501
0
    switch (type) {
4502
0
    case union__::THttpChannelDiverterArgs:
4503
0
        {
4504
0
            WriteIPDLParam(aMsg, aActor, (aVar).get_HttpChannelDiverterArgs());
4505
0
            // Sentinel = 'THttpChannelDiverterArgs'
4506
0
            (aMsg)->WriteSentinel(1911457823);
4507
0
            return;
4508
0
        }
4509
0
    case union__::TPFTPChannelParent:
4510
0
        {
4511
0
            if ((mozilla::ipc::ParentSide) == ((aActor)->GetSide())) {
4512
0
                MOZ_RELEASE_ASSERT((aVar).get_PFTPChannelParent(), "NULL actor value passed to non-nullable param");
4513
0
                WriteIPDLParam(aMsg, aActor, (aVar).get_PFTPChannelParent());
4514
0
                // Sentinel = 'TPFTPChannelParent'
4515
0
                (aMsg)->WriteSentinel(694358909);
4516
0
            }
4517
0
            else {
4518
0
                (aActor)->FatalError("wrong side!");
4519
0
            }
4520
0
            return;
4521
0
        }
4522
0
    case union__::TPFTPChannelChild:
4523
0
        {
4524
0
            if ((mozilla::ipc::ChildSide) == ((aActor)->GetSide())) {
4525
0
                MOZ_RELEASE_ASSERT((aVar).get_PFTPChannelChild(), "NULL actor value passed to non-nullable param");
4526
0
                WriteIPDLParam(aMsg, aActor, (aVar).get_PFTPChannelChild());
4527
0
                // Sentinel = 'TPFTPChannelChild'
4528
0
                (aMsg)->WriteSentinel(889018702);
4529
0
            }
4530
0
            else {
4531
0
                (aActor)->FatalError("wrong side!");
4532
0
            }
4533
0
            return;
4534
0
        }
4535
0
    default:
4536
0
        {
4537
0
            (aActor)->FatalError("unknown union type");
4538
0
            return;
4539
0
        }
4540
0
    }
4541
0
}
4542
4543
auto IPDLParamTraits<mozilla::net::ChannelDiverterArgs>::Read(
4544
        const IPC::Message* aMsg,
4545
        PickleIterator* aIter,
4546
        mozilla::ipc::IProtocol* aActor,
4547
        paramType* aVar) -> bool
4548
0
{
4549
0
    typedef mozilla::net::ChannelDiverterArgs union__;
4550
0
    int type;
4551
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
4552
0
        (aActor)->FatalError("Error deserializing type of union ChannelDiverterArgs");
4553
0
        return false;
4554
0
    }
4555
0
    // Sentinel = 'ChannelDiverterArgs'
4556
0
    if ((!((aMsg)->ReadSentinel(aIter, 2207945912)))) {
4557
0
        mozilla::ipc::SentinelReadError("Error deserializing type of union ChannelDiverterArgs");
4558
0
        return false;
4559
0
    }
4560
0
4561
0
    switch (type) {
4562
0
    case union__::THttpChannelDiverterArgs:
4563
0
        {
4564
0
            mozilla::net::HttpChannelDiverterArgs tmp = mozilla::net::HttpChannelDiverterArgs();
4565
0
            (*(aVar)) = tmp;
4566
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_HttpChannelDiverterArgs())))))) {
4567
0
                (aActor)->FatalError("Error deserializing variant THttpChannelDiverterArgs of union ChannelDiverterArgs");
4568
0
                return false;
4569
0
            }
4570
0
            // Sentinel = 'THttpChannelDiverterArgs'
4571
0
            if ((!((aMsg)->ReadSentinel(aIter, 1911457823)))) {
4572
0
                mozilla::ipc::SentinelReadError("Error deserializing variant THttpChannelDiverterArgs of union ChannelDiverterArgs");
4573
0
                return false;
4574
0
            }
4575
0
            return true;
4576
0
        }
4577
0
    case union__::TPFTPChannelParent:
4578
0
        {
4579
0
            if ((mozilla::ipc::ParentSide) == ((aActor)->GetSide())) {
4580
0
                {
4581
0
                    (aActor)->FatalError("wrong side!");
4582
0
                    return false;
4583
0
                }
4584
0
            }
4585
0
            mozilla::net::PFTPChannelChild* tmp = nullptr;
4586
0
            (*(aVar)) = tmp;
4587
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_PFTPChannelChild())))))) {
4588
0
                (aActor)->FatalError("Error deserializing variant TPFTPChannelParent of union ChannelDiverterArgs");
4589
0
                return false;
4590
0
            }
4591
0
            if ((!((*((&((aVar)->get_PFTPChannelChild()))))))) {
4592
0
                (aActor)->FatalError("Error deserializing variant TPFTPChannelParent of union ChannelDiverterArgs");
4593
0
                return false;
4594
0
            }
4595
0
            // Sentinel = 'TPFTPChannelParent'
4596
0
            if ((!((aMsg)->ReadSentinel(aIter, 694358909)))) {
4597
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TPFTPChannelParent of union ChannelDiverterArgs");
4598
0
                return false;
4599
0
            }
4600
0
            return true;
4601
0
        }
4602
0
    case union__::TPFTPChannelChild:
4603
0
        {
4604
0
            if ((mozilla::ipc::ChildSide) == ((aActor)->GetSide())) {
4605
0
                {
4606
0
                    (aActor)->FatalError("wrong side!");
4607
0
                    return false;
4608
0
                }
4609
0
            }
4610
0
            mozilla::net::PFTPChannelParent* tmp = nullptr;
4611
0
            (*(aVar)) = tmp;
4612
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_PFTPChannelParent())))))) {
4613
0
                (aActor)->FatalError("Error deserializing variant TPFTPChannelChild of union ChannelDiverterArgs");
4614
0
                return false;
4615
0
            }
4616
0
            if ((!((*((&((aVar)->get_PFTPChannelParent()))))))) {
4617
0
                (aActor)->FatalError("Error deserializing variant TPFTPChannelChild of union ChannelDiverterArgs");
4618
0
                return false;
4619
0
            }
4620
0
            // Sentinel = 'TPFTPChannelChild'
4621
0
            if ((!((aMsg)->ReadSentinel(aIter, 889018702)))) {
4622
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TPFTPChannelChild of union ChannelDiverterArgs");
4623
0
                return false;
4624
0
            }
4625
0
            return true;
4626
0
        }
4627
0
    default:
4628
0
        {
4629
0
            (aActor)->FatalError("unknown union type");
4630
0
            return false;
4631
0
        }
4632
0
    }
4633
0
}
4634
4635
} // namespace ipc
4636
} // namespace mozilla
4637
4638
//-----------------------------------------------------------------------------
4639
// Method definitions for the IPDL type |struct CookieStruct|
4640
//
4641
namespace mozilla {
4642
namespace net {
4643
auto CookieStruct::operator==(const CookieStruct& _o) const -> bool
4644
0
{
4645
0
    if ((!((name()) == ((_o).name())))) {
4646
0
        return false;
4647
0
    }
4648
0
    if ((!((value()) == ((_o).value())))) {
4649
0
        return false;
4650
0
    }
4651
0
    if ((!((host()) == ((_o).host())))) {
4652
0
        return false;
4653
0
    }
4654
0
    if ((!((path()) == ((_o).path())))) {
4655
0
        return false;
4656
0
    }
4657
0
    if ((!((expiry()) == ((_o).expiry())))) {
4658
0
        return false;
4659
0
    }
4660
0
    if ((!((lastAccessed()) == ((_o).lastAccessed())))) {
4661
0
        return false;
4662
0
    }
4663
0
    if ((!((creationTime()) == ((_o).creationTime())))) {
4664
0
        return false;
4665
0
    }
4666
0
    if ((!((isHttpOnly()) == ((_o).isHttpOnly())))) {
4667
0
        return false;
4668
0
    }
4669
0
    if ((!((isSession()) == ((_o).isSession())))) {
4670
0
        return false;
4671
0
    }
4672
0
    if ((!((isSecure()) == ((_o).isSecure())))) {
4673
0
        return false;
4674
0
    }
4675
0
    if ((!((sameSite()) == ((_o).sameSite())))) {
4676
0
        return false;
4677
0
    }
4678
0
    return true;
4679
0
}
4680
4681
auto CookieStruct::operator!=(const CookieStruct& _o) const -> bool
4682
0
{
4683
0
    return (!(operator==(_o)));
4684
0
}
4685
4686
} // namespace net
4687
} // namespace mozilla
4688
4689
namespace mozilla {
4690
namespace ipc {
4691
auto IPDLParamTraits<mozilla::net::CookieStruct>::Write(
4692
        IPC::Message* aMsg,
4693
        mozilla::ipc::IProtocol* aActor,
4694
        const paramType& aVar) -> void
4695
0
{
4696
0
    WriteIPDLParam(aMsg, aActor, (aVar).name());
4697
0
    // Sentinel = 'name'
4698
0
    (aMsg)->WriteSentinel(15034981);
4699
0
    WriteIPDLParam(aMsg, aActor, (aVar).value());
4700
0
    // Sentinel = 'value'
4701
0
    (aMsg)->WriteSentinel(3456818542);
4702
0
    WriteIPDLParam(aMsg, aActor, (aVar).host());
4703
0
    // Sentinel = 'host'
4704
0
    (aMsg)->WriteSentinel(4070301394);
4705
0
    WriteIPDLParam(aMsg, aActor, (aVar).path());
4706
0
    // Sentinel = 'path'
4707
0
    (aMsg)->WriteSentinel(913629401);
4708
0
    WriteIPDLParam(aMsg, aActor, (aVar).expiry());
4709
0
    // Sentinel = 'expiry'
4710
0
    (aMsg)->WriteSentinel(2189680335);
4711
0
    WriteIPDLParam(aMsg, aActor, (aVar).lastAccessed());
4712
0
    // Sentinel = 'lastAccessed'
4713
0
    (aMsg)->WriteSentinel(806855293);
4714
0
    WriteIPDLParam(aMsg, aActor, (aVar).creationTime());
4715
0
    // Sentinel = 'creationTime'
4716
0
    (aMsg)->WriteSentinel(278381932);
4717
0
    WriteIPDLParam(aMsg, aActor, (aVar).isHttpOnly());
4718
0
    // Sentinel = 'isHttpOnly'
4719
0
    (aMsg)->WriteSentinel(2865566820);
4720
0
    WriteIPDLParam(aMsg, aActor, (aVar).isSession());
4721
0
    // Sentinel = 'isSession'
4722
0
    (aMsg)->WriteSentinel(3215464277);
4723
0
    WriteIPDLParam(aMsg, aActor, (aVar).isSecure());
4724
0
    // Sentinel = 'isSecure'
4725
0
    (aMsg)->WriteSentinel(272880355);
4726
0
    WriteIPDLParam(aMsg, aActor, (aVar).sameSite());
4727
0
    // Sentinel = 'sameSite'
4728
0
    (aMsg)->WriteSentinel(212484887);
4729
0
}
4730
4731
auto IPDLParamTraits<mozilla::net::CookieStruct>::Read(
4732
        const IPC::Message* aMsg,
4733
        PickleIterator* aIter,
4734
        mozilla::ipc::IProtocol* aActor,
4735
        paramType* aVar) -> bool
4736
0
{
4737
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->name())))))) {
4738
0
        (aActor)->FatalError("Error deserializing 'name' (nsCString) member of 'CookieStruct'");
4739
0
        return false;
4740
0
    }
4741
0
    // Sentinel = 'name'
4742
0
    if ((!((aMsg)->ReadSentinel(aIter, 15034981)))) {
4743
0
        mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'CookieStruct'");
4744
0
        return false;
4745
0
    }
4746
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->value())))))) {
4747
0
        (aActor)->FatalError("Error deserializing 'value' (nsCString) member of 'CookieStruct'");
4748
0
        return false;
4749
0
    }
4750
0
    // Sentinel = 'value'
4751
0
    if ((!((aMsg)->ReadSentinel(aIter, 3456818542)))) {
4752
0
        mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'CookieStruct'");
4753
0
        return false;
4754
0
    }
4755
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->host())))))) {
4756
0
        (aActor)->FatalError("Error deserializing 'host' (nsCString) member of 'CookieStruct'");
4757
0
        return false;
4758
0
    }
4759
0
    // Sentinel = 'host'
4760
0
    if ((!((aMsg)->ReadSentinel(aIter, 4070301394)))) {
4761
0
        mozilla::ipc::SentinelReadError("Error deserializing 'host' (nsCString) member of 'CookieStruct'");
4762
0
        return false;
4763
0
    }
4764
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->path())))))) {
4765
0
        (aActor)->FatalError("Error deserializing 'path' (nsCString) member of 'CookieStruct'");
4766
0
        return false;
4767
0
    }
4768
0
    // Sentinel = 'path'
4769
0
    if ((!((aMsg)->ReadSentinel(aIter, 913629401)))) {
4770
0
        mozilla::ipc::SentinelReadError("Error deserializing 'path' (nsCString) member of 'CookieStruct'");
4771
0
        return false;
4772
0
    }
4773
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->expiry())))))) {
4774
0
        (aActor)->FatalError("Error deserializing 'expiry' (int64_t) member of 'CookieStruct'");
4775
0
        return false;
4776
0
    }
4777
0
    // Sentinel = 'expiry'
4778
0
    if ((!((aMsg)->ReadSentinel(aIter, 2189680335)))) {
4779
0
        mozilla::ipc::SentinelReadError("Error deserializing 'expiry' (int64_t) member of 'CookieStruct'");
4780
0
        return false;
4781
0
    }
4782
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->lastAccessed())))))) {
4783
0
        (aActor)->FatalError("Error deserializing 'lastAccessed' (int64_t) member of 'CookieStruct'");
4784
0
        return false;
4785
0
    }
4786
0
    // Sentinel = 'lastAccessed'
4787
0
    if ((!((aMsg)->ReadSentinel(aIter, 806855293)))) {
4788
0
        mozilla::ipc::SentinelReadError("Error deserializing 'lastAccessed' (int64_t) member of 'CookieStruct'");
4789
0
        return false;
4790
0
    }
4791
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->creationTime())))))) {
4792
0
        (aActor)->FatalError("Error deserializing 'creationTime' (int64_t) member of 'CookieStruct'");
4793
0
        return false;
4794
0
    }
4795
0
    // Sentinel = 'creationTime'
4796
0
    if ((!((aMsg)->ReadSentinel(aIter, 278381932)))) {
4797
0
        mozilla::ipc::SentinelReadError("Error deserializing 'creationTime' (int64_t) member of 'CookieStruct'");
4798
0
        return false;
4799
0
    }
4800
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->isHttpOnly())))))) {
4801
0
        (aActor)->FatalError("Error deserializing 'isHttpOnly' (bool) member of 'CookieStruct'");
4802
0
        return false;
4803
0
    }
4804
0
    // Sentinel = 'isHttpOnly'
4805
0
    if ((!((aMsg)->ReadSentinel(aIter, 2865566820)))) {
4806
0
        mozilla::ipc::SentinelReadError("Error deserializing 'isHttpOnly' (bool) member of 'CookieStruct'");
4807
0
        return false;
4808
0
    }
4809
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->isSession())))))) {
4810
0
        (aActor)->FatalError("Error deserializing 'isSession' (bool) member of 'CookieStruct'");
4811
0
        return false;
4812
0
    }
4813
0
    // Sentinel = 'isSession'
4814
0
    if ((!((aMsg)->ReadSentinel(aIter, 3215464277)))) {
4815
0
        mozilla::ipc::SentinelReadError("Error deserializing 'isSession' (bool) member of 'CookieStruct'");
4816
0
        return false;
4817
0
    }
4818
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->isSecure())))))) {
4819
0
        (aActor)->FatalError("Error deserializing 'isSecure' (bool) member of 'CookieStruct'");
4820
0
        return false;
4821
0
    }
4822
0
    // Sentinel = 'isSecure'
4823
0
    if ((!((aMsg)->ReadSentinel(aIter, 272880355)))) {
4824
0
        mozilla::ipc::SentinelReadError("Error deserializing 'isSecure' (bool) member of 'CookieStruct'");
4825
0
        return false;
4826
0
    }
4827
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->sameSite())))))) {
4828
0
        (aActor)->FatalError("Error deserializing 'sameSite' (int8_t) member of 'CookieStruct'");
4829
0
        return false;
4830
0
    }
4831
0
    // Sentinel = 'sameSite'
4832
0
    if ((!((aMsg)->ReadSentinel(aIter, 212484887)))) {
4833
0
        mozilla::ipc::SentinelReadError("Error deserializing 'sameSite' (int8_t) member of 'CookieStruct'");
4834
0
        return false;
4835
0
    }
4836
0
    return true;
4837
0
}
4838
4839
} // namespace ipc
4840
} // namespace mozilla