Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/PPresentation.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/dom/PContentParent.h"
8
#include "mozilla/dom/PContentChild.h"
9
#include "mozilla/dom/PPresentationRequestParent.h"
10
#include "mozilla/dom/PPresentationRequestChild.h"
11
#include "mozilla/dom/PPresentationBuilderParent.h"
12
#include "mozilla/dom/PPresentationBuilderChild.h"
13
#include "mozilla/dom/PPresentation.h"
14
15
namespace mozilla {
16
namespace dom {
17
namespace PPresentation {
18
19
nsresult
20
CreateEndpoints(
21
        base::ProcessId aParentDestPid,
22
        base::ProcessId aChildDestPid,
23
        mozilla::ipc::Endpoint<mozilla::dom::PPresentationParent>* aParent,
24
        mozilla::ipc::Endpoint<mozilla::dom::PPresentationChild>* aChild)
25
0
{
26
0
    return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, aParent, aChild);
27
0
}
28
IPC::Message*
29
Msg_NotifyAvailableChange(int32_t routingId)
30
0
{
31
0
    return IPC::Message::IPDLMessage(routingId, Msg_NotifyAvailableChange__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
32
0
}
33
IPC::Message*
34
Msg_NotifySessionStateChange(int32_t routingId)
35
0
{
36
0
    return IPC::Message::IPDLMessage(routingId, Msg_NotifySessionStateChange__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
37
0
}
38
IPC::Message*
39
Msg_NotifyMessage(int32_t routingId)
40
0
{
41
0
    return IPC::Message::IPDLMessage(routingId, Msg_NotifyMessage__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
42
0
}
43
IPC::Message*
44
Msg_NotifySessionConnect(int32_t routingId)
45
0
{
46
0
    return IPC::Message::IPDLMessage(routingId, Msg_NotifySessionConnect__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
47
0
}
48
IPC::Message*
49
Msg_NotifyCloseSessionTransport(int32_t routingId)
50
0
{
51
0
    return IPC::Message::IPDLMessage(routingId, Msg_NotifyCloseSessionTransport__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
52
0
}
53
IPC::Message*
54
Msg_PPresentationBuilderConstructor(int32_t routingId)
55
0
{
56
0
    return IPC::Message::IPDLMessage(routingId, Msg_PPresentationBuilderConstructor__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
57
0
}
58
IPC::Message*
59
Reply_PPresentationBuilderConstructor(int32_t routingId)
60
0
{
61
0
    return IPC::Message::IPDLMessage(routingId, Reply_PPresentationBuilderConstructor__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::REPLY));
62
0
}
63
IPC::Message*
64
Msg___delete__(int32_t routingId)
65
0
{
66
0
    return IPC::Message::IPDLMessage(routingId, Msg___delete____ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
67
0
}
68
IPC::Message*
69
Reply___delete__(int32_t routingId)
70
0
{
71
0
    return IPC::Message::IPDLMessage(routingId, Reply___delete____ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::REPLY));
72
0
}
73
IPC::Message*
74
Msg_RegisterAvailabilityHandler(int32_t routingId)
75
0
{
76
0
    return IPC::Message::IPDLMessage(routingId, Msg_RegisterAvailabilityHandler__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
77
0
}
78
IPC::Message*
79
Msg_UnregisterAvailabilityHandler(int32_t routingId)
80
0
{
81
0
    return IPC::Message::IPDLMessage(routingId, Msg_UnregisterAvailabilityHandler__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
82
0
}
83
IPC::Message*
84
Msg_RegisterSessionHandler(int32_t routingId)
85
0
{
86
0
    return IPC::Message::IPDLMessage(routingId, Msg_RegisterSessionHandler__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
87
0
}
88
IPC::Message*
89
Msg_UnregisterSessionHandler(int32_t routingId)
90
0
{
91
0
    return IPC::Message::IPDLMessage(routingId, Msg_UnregisterSessionHandler__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
92
0
}
93
IPC::Message*
94
Msg_RegisterRespondingHandler(int32_t routingId)
95
0
{
96
0
    return IPC::Message::IPDLMessage(routingId, Msg_RegisterRespondingHandler__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
97
0
}
98
IPC::Message*
99
Msg_UnregisterRespondingHandler(int32_t routingId)
100
0
{
101
0
    return IPC::Message::IPDLMessage(routingId, Msg_UnregisterRespondingHandler__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
102
0
}
103
IPC::Message*
104
Msg_PPresentationRequestConstructor(int32_t routingId)
105
0
{
106
0
    return IPC::Message::IPDLMessage(routingId, Msg_PPresentationRequestConstructor__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
107
0
}
108
IPC::Message*
109
Reply_PPresentationRequestConstructor(int32_t routingId)
110
0
{
111
0
    return IPC::Message::IPDLMessage(routingId, Reply_PPresentationRequestConstructor__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::REPLY));
112
0
}
113
IPC::Message*
114
Msg_NotifyReceiverReady(int32_t routingId)
115
0
{
116
0
    return IPC::Message::IPDLMessage(routingId, Msg_NotifyReceiverReady__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
117
0
}
118
IPC::Message*
119
Msg_NotifyTransportClosed(int32_t routingId)
120
0
{
121
0
    return IPC::Message::IPDLMessage(routingId, Msg_NotifyTransportClosed__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY));
122
0
}
123
124
} // namespace PPresentation
125
} // namespace dom
126
} // namespace mozilla
127
128
//-----------------------------------------------------------------------------
129
// Method definitions for the IPDL type |struct StartSessionRequest|
130
//
131
namespace mozilla {
132
namespace dom {
133
auto StartSessionRequest::operator==(const StartSessionRequest& _o) const -> bool
134
0
{
135
0
    if ((!((urls()) == ((_o).urls())))) {
136
0
        return false;
137
0
    }
138
0
    if ((!((sessionId()) == ((_o).sessionId())))) {
139
0
        return false;
140
0
    }
141
0
    if ((!((origin()) == ((_o).origin())))) {
142
0
        return false;
143
0
    }
144
0
    if ((!((deviceId()) == ((_o).deviceId())))) {
145
0
        return false;
146
0
    }
147
0
    if ((!((windowId()) == ((_o).windowId())))) {
148
0
        return false;
149
0
    }
150
0
    if ((!((tabId()) == ((_o).tabId())))) {
151
0
        return false;
152
0
    }
153
0
    if ((!((principal()) == ((_o).principal())))) {
154
0
        return false;
155
0
    }
156
0
    return true;
157
0
}
158
159
auto StartSessionRequest::operator!=(const StartSessionRequest& _o) const -> bool
160
0
{
161
0
    return (!(operator==(_o)));
162
0
}
163
164
} // namespace dom
165
} // namespace mozilla
166
167
namespace mozilla {
168
namespace ipc {
169
auto IPDLParamTraits<mozilla::dom::StartSessionRequest>::Write(
170
        IPC::Message* aMsg,
171
        mozilla::ipc::IProtocol* aActor,
172
        const paramType& aVar) -> void
173
0
{
174
0
    WriteIPDLParam(aMsg, aActor, (aVar).urls());
175
0
    // Sentinel = 'urls'
176
0
    (aMsg)->WriteSentinel(4188095734);
177
0
    WriteIPDLParam(aMsg, aActor, (aVar).sessionId());
178
0
    // Sentinel = 'sessionId'
179
0
    (aMsg)->WriteSentinel(1042236402);
180
0
    WriteIPDLParam(aMsg, aActor, (aVar).origin());
181
0
    // Sentinel = 'origin'
182
0
    (aMsg)->WriteSentinel(1429924608);
183
0
    WriteIPDLParam(aMsg, aActor, (aVar).deviceId());
184
0
    // Sentinel = 'deviceId'
185
0
    (aMsg)->WriteSentinel(4280533);
186
0
    WriteIPDLParam(aMsg, aActor, (aVar).windowId());
187
0
    // Sentinel = 'windowId'
188
0
    (aMsg)->WriteSentinel(719502035);
189
0
    WriteIPDLParam(aMsg, aActor, (aVar).tabId());
190
0
    // Sentinel = 'tabId'
191
0
    (aMsg)->WriteSentinel(3419081923);
192
0
    WriteIPDLParam(aMsg, aActor, (aVar).principal());
193
0
    // Sentinel = 'principal'
194
0
    (aMsg)->WriteSentinel(732240927);
195
0
}
196
197
auto IPDLParamTraits<mozilla::dom::StartSessionRequest>::Read(
198
        const IPC::Message* aMsg,
199
        PickleIterator* aIter,
200
        mozilla::ipc::IProtocol* aActor,
201
        paramType* aVar) -> bool
202
0
{
203
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->urls())))))) {
204
0
        (aActor)->FatalError("Error deserializing 'urls' (nsString[]) member of 'StartSessionRequest'");
205
0
        return false;
206
0
    }
207
0
    // Sentinel = 'urls'
208
0
    if ((!((aMsg)->ReadSentinel(aIter, 4188095734)))) {
209
0
        mozilla::ipc::SentinelReadError("Error deserializing 'urls' (nsString[]) member of 'StartSessionRequest'");
210
0
        return false;
211
0
    }
212
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->sessionId())))))) {
213
0
        (aActor)->FatalError("Error deserializing 'sessionId' (nsString) member of 'StartSessionRequest'");
214
0
        return false;
215
0
    }
216
0
    // Sentinel = 'sessionId'
217
0
    if ((!((aMsg)->ReadSentinel(aIter, 1042236402)))) {
218
0
        mozilla::ipc::SentinelReadError("Error deserializing 'sessionId' (nsString) member of 'StartSessionRequest'");
219
0
        return false;
220
0
    }
221
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->origin())))))) {
222
0
        (aActor)->FatalError("Error deserializing 'origin' (nsString) member of 'StartSessionRequest'");
223
0
        return false;
224
0
    }
225
0
    // Sentinel = 'origin'
226
0
    if ((!((aMsg)->ReadSentinel(aIter, 1429924608)))) {
227
0
        mozilla::ipc::SentinelReadError("Error deserializing 'origin' (nsString) member of 'StartSessionRequest'");
228
0
        return false;
229
0
    }
230
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->deviceId())))))) {
231
0
        (aActor)->FatalError("Error deserializing 'deviceId' (nsString) member of 'StartSessionRequest'");
232
0
        return false;
233
0
    }
234
0
    // Sentinel = 'deviceId'
235
0
    if ((!((aMsg)->ReadSentinel(aIter, 4280533)))) {
236
0
        mozilla::ipc::SentinelReadError("Error deserializing 'deviceId' (nsString) member of 'StartSessionRequest'");
237
0
        return false;
238
0
    }
239
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->windowId())))))) {
240
0
        (aActor)->FatalError("Error deserializing 'windowId' (uint64_t) member of 'StartSessionRequest'");
241
0
        return false;
242
0
    }
243
0
    // Sentinel = 'windowId'
244
0
    if ((!((aMsg)->ReadSentinel(aIter, 719502035)))) {
245
0
        mozilla::ipc::SentinelReadError("Error deserializing 'windowId' (uint64_t) member of 'StartSessionRequest'");
246
0
        return false;
247
0
    }
248
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->tabId())))))) {
249
0
        (aActor)->FatalError("Error deserializing 'tabId' (TabId) member of 'StartSessionRequest'");
250
0
        return false;
251
0
    }
252
0
    // Sentinel = 'tabId'
253
0
    if ((!((aMsg)->ReadSentinel(aIter, 3419081923)))) {
254
0
        mozilla::ipc::SentinelReadError("Error deserializing 'tabId' (TabId) member of 'StartSessionRequest'");
255
0
        return false;
256
0
    }
257
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->principal())))))) {
258
0
        (aActor)->FatalError("Error deserializing 'principal' (Principal) member of 'StartSessionRequest'");
259
0
        return false;
260
0
    }
261
0
    // Sentinel = 'principal'
262
0
    if ((!((aMsg)->ReadSentinel(aIter, 732240927)))) {
263
0
        mozilla::ipc::SentinelReadError("Error deserializing 'principal' (Principal) member of 'StartSessionRequest'");
264
0
        return false;
265
0
    }
266
0
    return true;
267
0
}
268
269
} // namespace ipc
270
} // namespace mozilla
271
272
//-----------------------------------------------------------------------------
273
// Method definitions for the IPDL type |struct SendSessionMessageRequest|
274
//
275
namespace mozilla {
276
namespace dom {
277
auto SendSessionMessageRequest::operator==(const SendSessionMessageRequest& _o) const -> bool
278
0
{
279
0
    if ((!((sessionId()) == ((_o).sessionId())))) {
280
0
        return false;
281
0
    }
282
0
    if ((!((role()) == ((_o).role())))) {
283
0
        return false;
284
0
    }
285
0
    if ((!((data()) == ((_o).data())))) {
286
0
        return false;
287
0
    }
288
0
    return true;
289
0
}
290
291
auto SendSessionMessageRequest::operator!=(const SendSessionMessageRequest& _o) const -> bool
292
0
{
293
0
    return (!(operator==(_o)));
294
0
}
295
296
} // namespace dom
297
} // namespace mozilla
298
299
namespace mozilla {
300
namespace ipc {
301
auto IPDLParamTraits<mozilla::dom::SendSessionMessageRequest>::Write(
302
        IPC::Message* aMsg,
303
        mozilla::ipc::IProtocol* aActor,
304
        const paramType& aVar) -> void
305
0
{
306
0
    WriteIPDLParam(aMsg, aActor, (aVar).sessionId());
307
0
    // Sentinel = 'sessionId'
308
0
    (aMsg)->WriteSentinel(1042236402);
309
0
    WriteIPDLParam(aMsg, aActor, (aVar).role());
310
0
    // Sentinel = 'role'
311
0
    (aMsg)->WriteSentinel(336463796);
312
0
    WriteIPDLParam(aMsg, aActor, (aVar).data());
313
0
    // Sentinel = 'data'
314
0
    (aMsg)->WriteSentinel(843352540);
315
0
}
316
317
auto IPDLParamTraits<mozilla::dom::SendSessionMessageRequest>::Read(
318
        const IPC::Message* aMsg,
319
        PickleIterator* aIter,
320
        mozilla::ipc::IProtocol* aActor,
321
        paramType* aVar) -> bool
322
0
{
323
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->sessionId())))))) {
324
0
        (aActor)->FatalError("Error deserializing 'sessionId' (nsString) member of 'SendSessionMessageRequest'");
325
0
        return false;
326
0
    }
327
0
    // Sentinel = 'sessionId'
328
0
    if ((!((aMsg)->ReadSentinel(aIter, 1042236402)))) {
329
0
        mozilla::ipc::SentinelReadError("Error deserializing 'sessionId' (nsString) member of 'SendSessionMessageRequest'");
330
0
        return false;
331
0
    }
332
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->role())))))) {
333
0
        (aActor)->FatalError("Error deserializing 'role' (uint8_t) member of 'SendSessionMessageRequest'");
334
0
        return false;
335
0
    }
336
0
    // Sentinel = 'role'
337
0
    if ((!((aMsg)->ReadSentinel(aIter, 336463796)))) {
338
0
        mozilla::ipc::SentinelReadError("Error deserializing 'role' (uint8_t) member of 'SendSessionMessageRequest'");
339
0
        return false;
340
0
    }
341
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->data())))))) {
342
0
        (aActor)->FatalError("Error deserializing 'data' (nsString) member of 'SendSessionMessageRequest'");
343
0
        return false;
344
0
    }
345
0
    // Sentinel = 'data'
346
0
    if ((!((aMsg)->ReadSentinel(aIter, 843352540)))) {
347
0
        mozilla::ipc::SentinelReadError("Error deserializing 'data' (nsString) member of 'SendSessionMessageRequest'");
348
0
        return false;
349
0
    }
350
0
    return true;
351
0
}
352
353
} // namespace ipc
354
} // namespace mozilla
355
356
//-----------------------------------------------------------------------------
357
// Method definitions for the IPDL type |struct CloseSessionRequest|
358
//
359
namespace mozilla {
360
namespace dom {
361
auto CloseSessionRequest::operator==(const CloseSessionRequest& _o) const -> bool
362
0
{
363
0
    if ((!((sessionId()) == ((_o).sessionId())))) {
364
0
        return false;
365
0
    }
366
0
    if ((!((role()) == ((_o).role())))) {
367
0
        return false;
368
0
    }
369
0
    if ((!((closedReason()) == ((_o).closedReason())))) {
370
0
        return false;
371
0
    }
372
0
    return true;
373
0
}
374
375
auto CloseSessionRequest::operator!=(const CloseSessionRequest& _o) const -> bool
376
0
{
377
0
    return (!(operator==(_o)));
378
0
}
379
380
} // namespace dom
381
} // namespace mozilla
382
383
namespace mozilla {
384
namespace ipc {
385
auto IPDLParamTraits<mozilla::dom::CloseSessionRequest>::Write(
386
        IPC::Message* aMsg,
387
        mozilla::ipc::IProtocol* aActor,
388
        const paramType& aVar) -> void
389
0
{
390
0
    WriteIPDLParam(aMsg, aActor, (aVar).sessionId());
391
0
    // Sentinel = 'sessionId'
392
0
    (aMsg)->WriteSentinel(1042236402);
393
0
    WriteIPDLParam(aMsg, aActor, (aVar).role());
394
0
    // Sentinel = 'role'
395
0
    (aMsg)->WriteSentinel(336463796);
396
0
    WriteIPDLParam(aMsg, aActor, (aVar).closedReason());
397
0
    // Sentinel = 'closedReason'
398
0
    (aMsg)->WriteSentinel(2214814184);
399
0
}
400
401
auto IPDLParamTraits<mozilla::dom::CloseSessionRequest>::Read(
402
        const IPC::Message* aMsg,
403
        PickleIterator* aIter,
404
        mozilla::ipc::IProtocol* aActor,
405
        paramType* aVar) -> bool
406
0
{
407
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->sessionId())))))) {
408
0
        (aActor)->FatalError("Error deserializing 'sessionId' (nsString) member of 'CloseSessionRequest'");
409
0
        return false;
410
0
    }
411
0
    // Sentinel = 'sessionId'
412
0
    if ((!((aMsg)->ReadSentinel(aIter, 1042236402)))) {
413
0
        mozilla::ipc::SentinelReadError("Error deserializing 'sessionId' (nsString) member of 'CloseSessionRequest'");
414
0
        return false;
415
0
    }
416
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->role())))))) {
417
0
        (aActor)->FatalError("Error deserializing 'role' (uint8_t) member of 'CloseSessionRequest'");
418
0
        return false;
419
0
    }
420
0
    // Sentinel = 'role'
421
0
    if ((!((aMsg)->ReadSentinel(aIter, 336463796)))) {
422
0
        mozilla::ipc::SentinelReadError("Error deserializing 'role' (uint8_t) member of 'CloseSessionRequest'");
423
0
        return false;
424
0
    }
425
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->closedReason())))))) {
426
0
        (aActor)->FatalError("Error deserializing 'closedReason' (uint8_t) member of 'CloseSessionRequest'");
427
0
        return false;
428
0
    }
429
0
    // Sentinel = 'closedReason'
430
0
    if ((!((aMsg)->ReadSentinel(aIter, 2214814184)))) {
431
0
        mozilla::ipc::SentinelReadError("Error deserializing 'closedReason' (uint8_t) member of 'CloseSessionRequest'");
432
0
        return false;
433
0
    }
434
0
    return true;
435
0
}
436
437
} // namespace ipc
438
} // namespace mozilla
439
440
//-----------------------------------------------------------------------------
441
// Method definitions for the IPDL type |struct TerminateSessionRequest|
442
//
443
namespace mozilla {
444
namespace dom {
445
auto TerminateSessionRequest::operator==(const TerminateSessionRequest& _o) const -> bool
446
0
{
447
0
    if ((!((sessionId()) == ((_o).sessionId())))) {
448
0
        return false;
449
0
    }
450
0
    if ((!((role()) == ((_o).role())))) {
451
0
        return false;
452
0
    }
453
0
    return true;
454
0
}
455
456
auto TerminateSessionRequest::operator!=(const TerminateSessionRequest& _o) const -> bool
457
0
{
458
0
    return (!(operator==(_o)));
459
0
}
460
461
} // namespace dom
462
} // namespace mozilla
463
464
namespace mozilla {
465
namespace ipc {
466
auto IPDLParamTraits<mozilla::dom::TerminateSessionRequest>::Write(
467
        IPC::Message* aMsg,
468
        mozilla::ipc::IProtocol* aActor,
469
        const paramType& aVar) -> void
470
0
{
471
0
    WriteIPDLParam(aMsg, aActor, (aVar).sessionId());
472
0
    // Sentinel = 'sessionId'
473
0
    (aMsg)->WriteSentinel(1042236402);
474
0
    WriteIPDLParam(aMsg, aActor, (aVar).role());
475
0
    // Sentinel = 'role'
476
0
    (aMsg)->WriteSentinel(336463796);
477
0
}
478
479
auto IPDLParamTraits<mozilla::dom::TerminateSessionRequest>::Read(
480
        const IPC::Message* aMsg,
481
        PickleIterator* aIter,
482
        mozilla::ipc::IProtocol* aActor,
483
        paramType* aVar) -> bool
484
0
{
485
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->sessionId())))))) {
486
0
        (aActor)->FatalError("Error deserializing 'sessionId' (nsString) member of 'TerminateSessionRequest'");
487
0
        return false;
488
0
    }
489
0
    // Sentinel = 'sessionId'
490
0
    if ((!((aMsg)->ReadSentinel(aIter, 1042236402)))) {
491
0
        mozilla::ipc::SentinelReadError("Error deserializing 'sessionId' (nsString) member of 'TerminateSessionRequest'");
492
0
        return false;
493
0
    }
494
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->role())))))) {
495
0
        (aActor)->FatalError("Error deserializing 'role' (uint8_t) member of 'TerminateSessionRequest'");
496
0
        return false;
497
0
    }
498
0
    // Sentinel = 'role'
499
0
    if ((!((aMsg)->ReadSentinel(aIter, 336463796)))) {
500
0
        mozilla::ipc::SentinelReadError("Error deserializing 'role' (uint8_t) member of 'TerminateSessionRequest'");
501
0
        return false;
502
0
    }
503
0
    return true;
504
0
}
505
506
} // namespace ipc
507
} // namespace mozilla
508
509
//-----------------------------------------------------------------------------
510
// Method definitions for the IPDL type |struct ReconnectSessionRequest|
511
//
512
namespace mozilla {
513
namespace dom {
514
auto ReconnectSessionRequest::operator==(const ReconnectSessionRequest& _o) const -> bool
515
0
{
516
0
    if ((!((urls()) == ((_o).urls())))) {
517
0
        return false;
518
0
    }
519
0
    if ((!((sessionId()) == ((_o).sessionId())))) {
520
0
        return false;
521
0
    }
522
0
    if ((!((role()) == ((_o).role())))) {
523
0
        return false;
524
0
    }
525
0
    return true;
526
0
}
527
528
auto ReconnectSessionRequest::operator!=(const ReconnectSessionRequest& _o) const -> bool
529
0
{
530
0
    return (!(operator==(_o)));
531
0
}
532
533
} // namespace dom
534
} // namespace mozilla
535
536
namespace mozilla {
537
namespace ipc {
538
auto IPDLParamTraits<mozilla::dom::ReconnectSessionRequest>::Write(
539
        IPC::Message* aMsg,
540
        mozilla::ipc::IProtocol* aActor,
541
        const paramType& aVar) -> void
542
0
{
543
0
    WriteIPDLParam(aMsg, aActor, (aVar).urls());
544
0
    // Sentinel = 'urls'
545
0
    (aMsg)->WriteSentinel(4188095734);
546
0
    WriteIPDLParam(aMsg, aActor, (aVar).sessionId());
547
0
    // Sentinel = 'sessionId'
548
0
    (aMsg)->WriteSentinel(1042236402);
549
0
    WriteIPDLParam(aMsg, aActor, (aVar).role());
550
0
    // Sentinel = 'role'
551
0
    (aMsg)->WriteSentinel(336463796);
552
0
}
553
554
auto IPDLParamTraits<mozilla::dom::ReconnectSessionRequest>::Read(
555
        const IPC::Message* aMsg,
556
        PickleIterator* aIter,
557
        mozilla::ipc::IProtocol* aActor,
558
        paramType* aVar) -> bool
559
0
{
560
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->urls())))))) {
561
0
        (aActor)->FatalError("Error deserializing 'urls' (nsString[]) member of 'ReconnectSessionRequest'");
562
0
        return false;
563
0
    }
564
0
    // Sentinel = 'urls'
565
0
    if ((!((aMsg)->ReadSentinel(aIter, 4188095734)))) {
566
0
        mozilla::ipc::SentinelReadError("Error deserializing 'urls' (nsString[]) member of 'ReconnectSessionRequest'");
567
0
        return false;
568
0
    }
569
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->sessionId())))))) {
570
0
        (aActor)->FatalError("Error deserializing 'sessionId' (nsString) member of 'ReconnectSessionRequest'");
571
0
        return false;
572
0
    }
573
0
    // Sentinel = 'sessionId'
574
0
    if ((!((aMsg)->ReadSentinel(aIter, 1042236402)))) {
575
0
        mozilla::ipc::SentinelReadError("Error deserializing 'sessionId' (nsString) member of 'ReconnectSessionRequest'");
576
0
        return false;
577
0
    }
578
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->role())))))) {
579
0
        (aActor)->FatalError("Error deserializing 'role' (uint8_t) member of 'ReconnectSessionRequest'");
580
0
        return false;
581
0
    }
582
0
    // Sentinel = 'role'
583
0
    if ((!((aMsg)->ReadSentinel(aIter, 336463796)))) {
584
0
        mozilla::ipc::SentinelReadError("Error deserializing 'role' (uint8_t) member of 'ReconnectSessionRequest'");
585
0
        return false;
586
0
    }
587
0
    return true;
588
0
}
589
590
} // namespace ipc
591
} // namespace mozilla
592
593
//-----------------------------------------------------------------------------
594
// Method definitions for the IPDL type |struct BuildTransportRequest|
595
//
596
namespace mozilla {
597
namespace dom {
598
auto BuildTransportRequest::operator==(const BuildTransportRequest& _o) const -> bool
599
0
{
600
0
    if ((!((sessionId()) == ((_o).sessionId())))) {
601
0
        return false;
602
0
    }
603
0
    if ((!((role()) == ((_o).role())))) {
604
0
        return false;
605
0
    }
606
0
    return true;
607
0
}
608
609
auto BuildTransportRequest::operator!=(const BuildTransportRequest& _o) const -> bool
610
0
{
611
0
    return (!(operator==(_o)));
612
0
}
613
614
} // namespace dom
615
} // namespace mozilla
616
617
namespace mozilla {
618
namespace ipc {
619
auto IPDLParamTraits<mozilla::dom::BuildTransportRequest>::Write(
620
        IPC::Message* aMsg,
621
        mozilla::ipc::IProtocol* aActor,
622
        const paramType& aVar) -> void
623
0
{
624
0
    WriteIPDLParam(aMsg, aActor, (aVar).sessionId());
625
0
    // Sentinel = 'sessionId'
626
0
    (aMsg)->WriteSentinel(1042236402);
627
0
    WriteIPDLParam(aMsg, aActor, (aVar).role());
628
0
    // Sentinel = 'role'
629
0
    (aMsg)->WriteSentinel(336463796);
630
0
}
631
632
auto IPDLParamTraits<mozilla::dom::BuildTransportRequest>::Read(
633
        const IPC::Message* aMsg,
634
        PickleIterator* aIter,
635
        mozilla::ipc::IProtocol* aActor,
636
        paramType* aVar) -> bool
637
0
{
638
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->sessionId())))))) {
639
0
        (aActor)->FatalError("Error deserializing 'sessionId' (nsString) member of 'BuildTransportRequest'");
640
0
        return false;
641
0
    }
642
0
    // Sentinel = 'sessionId'
643
0
    if ((!((aMsg)->ReadSentinel(aIter, 1042236402)))) {
644
0
        mozilla::ipc::SentinelReadError("Error deserializing 'sessionId' (nsString) member of 'BuildTransportRequest'");
645
0
        return false;
646
0
    }
647
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->role())))))) {
648
0
        (aActor)->FatalError("Error deserializing 'role' (uint8_t) member of 'BuildTransportRequest'");
649
0
        return false;
650
0
    }
651
0
    // Sentinel = 'role'
652
0
    if ((!((aMsg)->ReadSentinel(aIter, 336463796)))) {
653
0
        mozilla::ipc::SentinelReadError("Error deserializing 'role' (uint8_t) member of 'BuildTransportRequest'");
654
0
        return false;
655
0
    }
656
0
    return true;
657
0
}
658
659
} // namespace ipc
660
} // namespace mozilla
661
662
//-----------------------------------------------------------------------------
663
// Method definitions for the IPDL type |union PresentationIPCRequest|
664
//
665
namespace mozilla {
666
namespace dom {
667
auto PresentationIPCRequest::MaybeDestroy(Type aNewType) -> bool
668
0
{
669
0
    if ((mType) == (T__None)) {
670
0
        return true;
671
0
    }
672
0
    if ((mType) == (aNewType)) {
673
0
        return false;
674
0
    }
675
0
    switch (mType) {
676
0
    case TStartSessionRequest:
677
0
        {
678
0
            (ptr_StartSessionRequest())->~StartSessionRequest__tdef();
679
0
            break;
680
0
        }
681
0
    case TSendSessionMessageRequest:
682
0
        {
683
0
            (ptr_SendSessionMessageRequest())->~SendSessionMessageRequest__tdef();
684
0
            break;
685
0
        }
686
0
    case TCloseSessionRequest:
687
0
        {
688
0
            (ptr_CloseSessionRequest())->~CloseSessionRequest__tdef();
689
0
            break;
690
0
        }
691
0
    case TTerminateSessionRequest:
692
0
        {
693
0
            (ptr_TerminateSessionRequest())->~TerminateSessionRequest__tdef();
694
0
            break;
695
0
        }
696
0
    case TReconnectSessionRequest:
697
0
        {
698
0
            (ptr_ReconnectSessionRequest())->~ReconnectSessionRequest__tdef();
699
0
            break;
700
0
        }
701
0
    case TBuildTransportRequest:
702
0
        {
703
0
            (ptr_BuildTransportRequest())->~BuildTransportRequest__tdef();
704
0
            break;
705
0
        }
706
0
    default:
707
0
        {
708
0
            mozilla::ipc::LogicError("not reached");
709
0
            break;
710
0
        }
711
0
    }
712
0
    return true;
713
0
}
714
715
MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(const StartSessionRequest& aOther)
716
0
{
717
0
    new (mozilla::KnownNotNull, ptr_StartSessionRequest()) StartSessionRequest(aOther);
718
0
    mType = TStartSessionRequest;
719
0
}
720
721
MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(StartSessionRequest&& aOther)
722
0
{
723
0
    new (mozilla::KnownNotNull, ptr_StartSessionRequest()) StartSessionRequest(std::move(aOther));
724
0
    mType = TStartSessionRequest;
725
0
}
726
727
MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(const SendSessionMessageRequest& aOther)
728
0
{
729
0
    new (mozilla::KnownNotNull, ptr_SendSessionMessageRequest()) SendSessionMessageRequest(aOther);
730
0
    mType = TSendSessionMessageRequest;
731
0
}
732
733
MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(SendSessionMessageRequest&& aOther)
734
0
{
735
0
    new (mozilla::KnownNotNull, ptr_SendSessionMessageRequest()) SendSessionMessageRequest(std::move(aOther));
736
0
    mType = TSendSessionMessageRequest;
737
0
}
738
739
MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(const CloseSessionRequest& aOther)
740
0
{
741
0
    new (mozilla::KnownNotNull, ptr_CloseSessionRequest()) CloseSessionRequest(aOther);
742
0
    mType = TCloseSessionRequest;
743
0
}
744
745
MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(CloseSessionRequest&& aOther)
746
0
{
747
0
    new (mozilla::KnownNotNull, ptr_CloseSessionRequest()) CloseSessionRequest(std::move(aOther));
748
0
    mType = TCloseSessionRequest;
749
0
}
750
751
MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(const TerminateSessionRequest& aOther)
752
0
{
753
0
    new (mozilla::KnownNotNull, ptr_TerminateSessionRequest()) TerminateSessionRequest(aOther);
754
0
    mType = TTerminateSessionRequest;
755
0
}
756
757
MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(TerminateSessionRequest&& aOther)
758
0
{
759
0
    new (mozilla::KnownNotNull, ptr_TerminateSessionRequest()) TerminateSessionRequest(std::move(aOther));
760
0
    mType = TTerminateSessionRequest;
761
0
}
762
763
MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(const ReconnectSessionRequest& aOther)
764
0
{
765
0
    new (mozilla::KnownNotNull, ptr_ReconnectSessionRequest()) ReconnectSessionRequest(aOther);
766
0
    mType = TReconnectSessionRequest;
767
0
}
768
769
MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(ReconnectSessionRequest&& aOther)
770
0
{
771
0
    new (mozilla::KnownNotNull, ptr_ReconnectSessionRequest()) ReconnectSessionRequest(std::move(aOther));
772
0
    mType = TReconnectSessionRequest;
773
0
}
774
775
MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(const BuildTransportRequest& aOther)
776
0
{
777
0
    new (mozilla::KnownNotNull, ptr_BuildTransportRequest()) BuildTransportRequest(aOther);
778
0
    mType = TBuildTransportRequest;
779
0
}
780
781
MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(BuildTransportRequest&& aOther)
782
0
{
783
0
    new (mozilla::KnownNotNull, ptr_BuildTransportRequest()) BuildTransportRequest(std::move(aOther));
784
0
    mType = TBuildTransportRequest;
785
0
}
786
787
MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(const PresentationIPCRequest& aOther)
788
0
{
789
0
    (aOther).AssertSanity();
790
0
    switch ((aOther).type()) {
791
0
    case TStartSessionRequest:
792
0
        {
793
0
            new (mozilla::KnownNotNull, ptr_StartSessionRequest()) StartSessionRequest((aOther).get_StartSessionRequest());
794
0
            break;
795
0
        }
796
0
    case TSendSessionMessageRequest:
797
0
        {
798
0
            new (mozilla::KnownNotNull, ptr_SendSessionMessageRequest()) SendSessionMessageRequest((aOther).get_SendSessionMessageRequest());
799
0
            break;
800
0
        }
801
0
    case TCloseSessionRequest:
802
0
        {
803
0
            new (mozilla::KnownNotNull, ptr_CloseSessionRequest()) CloseSessionRequest((aOther).get_CloseSessionRequest());
804
0
            break;
805
0
        }
806
0
    case TTerminateSessionRequest:
807
0
        {
808
0
            new (mozilla::KnownNotNull, ptr_TerminateSessionRequest()) TerminateSessionRequest((aOther).get_TerminateSessionRequest());
809
0
            break;
810
0
        }
811
0
    case TReconnectSessionRequest:
812
0
        {
813
0
            new (mozilla::KnownNotNull, ptr_ReconnectSessionRequest()) ReconnectSessionRequest((aOther).get_ReconnectSessionRequest());
814
0
            break;
815
0
        }
816
0
    case TBuildTransportRequest:
817
0
        {
818
0
            new (mozilla::KnownNotNull, ptr_BuildTransportRequest()) BuildTransportRequest((aOther).get_BuildTransportRequest());
819
0
            break;
820
0
        }
821
0
    case T__None:
822
0
        {
823
0
            break;
824
0
        }
825
0
    default:
826
0
        {
827
0
            mozilla::ipc::LogicError("unreached");
828
0
            return;
829
0
        }
830
0
    }
831
0
    mType = (aOther).type();
832
0
}
833
834
MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(PresentationIPCRequest&& aOther)
835
0
{
836
0
    (aOther).AssertSanity();
837
0
    Type t = (aOther).type();
838
0
    switch (t) {
839
0
    case TStartSessionRequest:
840
0
        {
841
0
            new (mozilla::KnownNotNull, ptr_StartSessionRequest()) StartSessionRequest(std::move((aOther).get_StartSessionRequest()));
842
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
843
0
            break;
844
0
        }
845
0
    case TSendSessionMessageRequest:
846
0
        {
847
0
            new (mozilla::KnownNotNull, ptr_SendSessionMessageRequest()) SendSessionMessageRequest(std::move((aOther).get_SendSessionMessageRequest()));
848
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
849
0
            break;
850
0
        }
851
0
    case TCloseSessionRequest:
852
0
        {
853
0
            new (mozilla::KnownNotNull, ptr_CloseSessionRequest()) CloseSessionRequest(std::move((aOther).get_CloseSessionRequest()));
854
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
855
0
            break;
856
0
        }
857
0
    case TTerminateSessionRequest:
858
0
        {
859
0
            new (mozilla::KnownNotNull, ptr_TerminateSessionRequest()) TerminateSessionRequest(std::move((aOther).get_TerminateSessionRequest()));
860
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
861
0
            break;
862
0
        }
863
0
    case TReconnectSessionRequest:
864
0
        {
865
0
            new (mozilla::KnownNotNull, ptr_ReconnectSessionRequest()) ReconnectSessionRequest(std::move((aOther).get_ReconnectSessionRequest()));
866
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
867
0
            break;
868
0
        }
869
0
    case TBuildTransportRequest:
870
0
        {
871
0
            new (mozilla::KnownNotNull, ptr_BuildTransportRequest()) BuildTransportRequest(std::move((aOther).get_BuildTransportRequest()));
872
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
873
0
            break;
874
0
        }
875
0
    case T__None:
876
0
        {
877
0
            break;
878
0
        }
879
0
    default:
880
0
        {
881
0
            mozilla::ipc::LogicError("unreached");
882
0
            return;
883
0
        }
884
0
    }
885
0
    (aOther).mType = T__None;
886
0
    mType = t;
887
0
}
888
889
PresentationIPCRequest::~PresentationIPCRequest()
890
0
{
891
0
    static_cast<void>(MaybeDestroy(T__None));
892
0
}
893
894
auto PresentationIPCRequest::operator=(const StartSessionRequest& aRhs) -> PresentationIPCRequest&
895
0
{
896
0
    if (MaybeDestroy(TStartSessionRequest)) {
897
0
        new (mozilla::KnownNotNull, ptr_StartSessionRequest()) StartSessionRequest;
898
0
    }
899
0
    (*(ptr_StartSessionRequest())) = aRhs;
900
0
    mType = TStartSessionRequest;
901
0
    return (*(this));
902
0
}
903
904
auto PresentationIPCRequest::operator=(StartSessionRequest&& aRhs) -> PresentationIPCRequest&
905
0
{
906
0
    if (MaybeDestroy(TStartSessionRequest)) {
907
0
        new (mozilla::KnownNotNull, ptr_StartSessionRequest()) StartSessionRequest;
908
0
    }
909
0
    (*(ptr_StartSessionRequest())) = std::move(aRhs);
910
0
    mType = TStartSessionRequest;
911
0
    return (*(this));
912
0
}
913
914
auto PresentationIPCRequest::operator=(const SendSessionMessageRequest& aRhs) -> PresentationIPCRequest&
915
0
{
916
0
    if (MaybeDestroy(TSendSessionMessageRequest)) {
917
0
        new (mozilla::KnownNotNull, ptr_SendSessionMessageRequest()) SendSessionMessageRequest;
918
0
    }
919
0
    (*(ptr_SendSessionMessageRequest())) = aRhs;
920
0
    mType = TSendSessionMessageRequest;
921
0
    return (*(this));
922
0
}
923
924
auto PresentationIPCRequest::operator=(SendSessionMessageRequest&& aRhs) -> PresentationIPCRequest&
925
0
{
926
0
    if (MaybeDestroy(TSendSessionMessageRequest)) {
927
0
        new (mozilla::KnownNotNull, ptr_SendSessionMessageRequest()) SendSessionMessageRequest;
928
0
    }
929
0
    (*(ptr_SendSessionMessageRequest())) = std::move(aRhs);
930
0
    mType = TSendSessionMessageRequest;
931
0
    return (*(this));
932
0
}
933
934
auto PresentationIPCRequest::operator=(const CloseSessionRequest& aRhs) -> PresentationIPCRequest&
935
0
{
936
0
    if (MaybeDestroy(TCloseSessionRequest)) {
937
0
        new (mozilla::KnownNotNull, ptr_CloseSessionRequest()) CloseSessionRequest;
938
0
    }
939
0
    (*(ptr_CloseSessionRequest())) = aRhs;
940
0
    mType = TCloseSessionRequest;
941
0
    return (*(this));
942
0
}
943
944
auto PresentationIPCRequest::operator=(CloseSessionRequest&& aRhs) -> PresentationIPCRequest&
945
0
{
946
0
    if (MaybeDestroy(TCloseSessionRequest)) {
947
0
        new (mozilla::KnownNotNull, ptr_CloseSessionRequest()) CloseSessionRequest;
948
0
    }
949
0
    (*(ptr_CloseSessionRequest())) = std::move(aRhs);
950
0
    mType = TCloseSessionRequest;
951
0
    return (*(this));
952
0
}
953
954
auto PresentationIPCRequest::operator=(const TerminateSessionRequest& aRhs) -> PresentationIPCRequest&
955
0
{
956
0
    if (MaybeDestroy(TTerminateSessionRequest)) {
957
0
        new (mozilla::KnownNotNull, ptr_TerminateSessionRequest()) TerminateSessionRequest;
958
0
    }
959
0
    (*(ptr_TerminateSessionRequest())) = aRhs;
960
0
    mType = TTerminateSessionRequest;
961
0
    return (*(this));
962
0
}
963
964
auto PresentationIPCRequest::operator=(TerminateSessionRequest&& aRhs) -> PresentationIPCRequest&
965
0
{
966
0
    if (MaybeDestroy(TTerminateSessionRequest)) {
967
0
        new (mozilla::KnownNotNull, ptr_TerminateSessionRequest()) TerminateSessionRequest;
968
0
    }
969
0
    (*(ptr_TerminateSessionRequest())) = std::move(aRhs);
970
0
    mType = TTerminateSessionRequest;
971
0
    return (*(this));
972
0
}
973
974
auto PresentationIPCRequest::operator=(const ReconnectSessionRequest& aRhs) -> PresentationIPCRequest&
975
0
{
976
0
    if (MaybeDestroy(TReconnectSessionRequest)) {
977
0
        new (mozilla::KnownNotNull, ptr_ReconnectSessionRequest()) ReconnectSessionRequest;
978
0
    }
979
0
    (*(ptr_ReconnectSessionRequest())) = aRhs;
980
0
    mType = TReconnectSessionRequest;
981
0
    return (*(this));
982
0
}
983
984
auto PresentationIPCRequest::operator=(ReconnectSessionRequest&& aRhs) -> PresentationIPCRequest&
985
0
{
986
0
    if (MaybeDestroy(TReconnectSessionRequest)) {
987
0
        new (mozilla::KnownNotNull, ptr_ReconnectSessionRequest()) ReconnectSessionRequest;
988
0
    }
989
0
    (*(ptr_ReconnectSessionRequest())) = std::move(aRhs);
990
0
    mType = TReconnectSessionRequest;
991
0
    return (*(this));
992
0
}
993
994
auto PresentationIPCRequest::operator=(const BuildTransportRequest& aRhs) -> PresentationIPCRequest&
995
0
{
996
0
    if (MaybeDestroy(TBuildTransportRequest)) {
997
0
        new (mozilla::KnownNotNull, ptr_BuildTransportRequest()) BuildTransportRequest;
998
0
    }
999
0
    (*(ptr_BuildTransportRequest())) = aRhs;
1000
0
    mType = TBuildTransportRequest;
1001
0
    return (*(this));
1002
0
}
1003
1004
auto PresentationIPCRequest::operator=(BuildTransportRequest&& aRhs) -> PresentationIPCRequest&
1005
0
{
1006
0
    if (MaybeDestroy(TBuildTransportRequest)) {
1007
0
        new (mozilla::KnownNotNull, ptr_BuildTransportRequest()) BuildTransportRequest;
1008
0
    }
1009
0
    (*(ptr_BuildTransportRequest())) = std::move(aRhs);
1010
0
    mType = TBuildTransportRequest;
1011
0
    return (*(this));
1012
0
}
1013
1014
auto PresentationIPCRequest::operator=(const PresentationIPCRequest& aRhs) -> PresentationIPCRequest&
1015
0
{
1016
0
    (aRhs).AssertSanity();
1017
0
    Type t = (aRhs).type();
1018
0
    switch (t) {
1019
0
    case TStartSessionRequest:
1020
0
        {
1021
0
            if (MaybeDestroy(t)) {
1022
0
                new (mozilla::KnownNotNull, ptr_StartSessionRequest()) StartSessionRequest;
1023
0
            }
1024
0
            (*(ptr_StartSessionRequest())) = (aRhs).get_StartSessionRequest();
1025
0
            break;
1026
0
        }
1027
0
    case TSendSessionMessageRequest:
1028
0
        {
1029
0
            if (MaybeDestroy(t)) {
1030
0
                new (mozilla::KnownNotNull, ptr_SendSessionMessageRequest()) SendSessionMessageRequest;
1031
0
            }
1032
0
            (*(ptr_SendSessionMessageRequest())) = (aRhs).get_SendSessionMessageRequest();
1033
0
            break;
1034
0
        }
1035
0
    case TCloseSessionRequest:
1036
0
        {
1037
0
            if (MaybeDestroy(t)) {
1038
0
                new (mozilla::KnownNotNull, ptr_CloseSessionRequest()) CloseSessionRequest;
1039
0
            }
1040
0
            (*(ptr_CloseSessionRequest())) = (aRhs).get_CloseSessionRequest();
1041
0
            break;
1042
0
        }
1043
0
    case TTerminateSessionRequest:
1044
0
        {
1045
0
            if (MaybeDestroy(t)) {
1046
0
                new (mozilla::KnownNotNull, ptr_TerminateSessionRequest()) TerminateSessionRequest;
1047
0
            }
1048
0
            (*(ptr_TerminateSessionRequest())) = (aRhs).get_TerminateSessionRequest();
1049
0
            break;
1050
0
        }
1051
0
    case TReconnectSessionRequest:
1052
0
        {
1053
0
            if (MaybeDestroy(t)) {
1054
0
                new (mozilla::KnownNotNull, ptr_ReconnectSessionRequest()) ReconnectSessionRequest;
1055
0
            }
1056
0
            (*(ptr_ReconnectSessionRequest())) = (aRhs).get_ReconnectSessionRequest();
1057
0
            break;
1058
0
        }
1059
0
    case TBuildTransportRequest:
1060
0
        {
1061
0
            if (MaybeDestroy(t)) {
1062
0
                new (mozilla::KnownNotNull, ptr_BuildTransportRequest()) BuildTransportRequest;
1063
0
            }
1064
0
            (*(ptr_BuildTransportRequest())) = (aRhs).get_BuildTransportRequest();
1065
0
            break;
1066
0
        }
1067
0
    case T__None:
1068
0
        {
1069
0
            static_cast<void>(MaybeDestroy(t));
1070
0
            break;
1071
0
        }
1072
0
    default:
1073
0
        {
1074
0
            mozilla::ipc::LogicError("unreached");
1075
0
            break;
1076
0
        }
1077
0
    }
1078
0
    mType = t;
1079
0
    return (*(this));
1080
0
}
1081
1082
auto PresentationIPCRequest::operator=(PresentationIPCRequest&& aRhs) -> PresentationIPCRequest&
1083
0
{
1084
0
    (aRhs).AssertSanity();
1085
0
    Type t = (aRhs).type();
1086
0
    switch (t) {
1087
0
    case TStartSessionRequest:
1088
0
        {
1089
0
            if (MaybeDestroy(t)) {
1090
0
                new (mozilla::KnownNotNull, ptr_StartSessionRequest()) StartSessionRequest;
1091
0
            }
1092
0
            (*(ptr_StartSessionRequest())) = std::move((aRhs).get_StartSessionRequest());
1093
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1094
0
            break;
1095
0
        }
1096
0
    case TSendSessionMessageRequest:
1097
0
        {
1098
0
            if (MaybeDestroy(t)) {
1099
0
                new (mozilla::KnownNotNull, ptr_SendSessionMessageRequest()) SendSessionMessageRequest;
1100
0
            }
1101
0
            (*(ptr_SendSessionMessageRequest())) = std::move((aRhs).get_SendSessionMessageRequest());
1102
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1103
0
            break;
1104
0
        }
1105
0
    case TCloseSessionRequest:
1106
0
        {
1107
0
            if (MaybeDestroy(t)) {
1108
0
                new (mozilla::KnownNotNull, ptr_CloseSessionRequest()) CloseSessionRequest;
1109
0
            }
1110
0
            (*(ptr_CloseSessionRequest())) = std::move((aRhs).get_CloseSessionRequest());
1111
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1112
0
            break;
1113
0
        }
1114
0
    case TTerminateSessionRequest:
1115
0
        {
1116
0
            if (MaybeDestroy(t)) {
1117
0
                new (mozilla::KnownNotNull, ptr_TerminateSessionRequest()) TerminateSessionRequest;
1118
0
            }
1119
0
            (*(ptr_TerminateSessionRequest())) = std::move((aRhs).get_TerminateSessionRequest());
1120
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1121
0
            break;
1122
0
        }
1123
0
    case TReconnectSessionRequest:
1124
0
        {
1125
0
            if (MaybeDestroy(t)) {
1126
0
                new (mozilla::KnownNotNull, ptr_ReconnectSessionRequest()) ReconnectSessionRequest;
1127
0
            }
1128
0
            (*(ptr_ReconnectSessionRequest())) = std::move((aRhs).get_ReconnectSessionRequest());
1129
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1130
0
            break;
1131
0
        }
1132
0
    case TBuildTransportRequest:
1133
0
        {
1134
0
            if (MaybeDestroy(t)) {
1135
0
                new (mozilla::KnownNotNull, ptr_BuildTransportRequest()) BuildTransportRequest;
1136
0
            }
1137
0
            (*(ptr_BuildTransportRequest())) = std::move((aRhs).get_BuildTransportRequest());
1138
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
1139
0
            break;
1140
0
        }
1141
0
    case T__None:
1142
0
        {
1143
0
            static_cast<void>(MaybeDestroy(t));
1144
0
            break;
1145
0
        }
1146
0
    default:
1147
0
        {
1148
0
            mozilla::ipc::LogicError("unreached");
1149
0
            break;
1150
0
        }
1151
0
    }
1152
0
    (aRhs).mType = T__None;
1153
0
    mType = t;
1154
0
    return (*(this));
1155
0
}
1156
1157
auto PresentationIPCRequest::operator==(const StartSessionRequest& aRhs) const -> bool
1158
0
{
1159
0
    return (get_StartSessionRequest()) == (aRhs);
1160
0
}
1161
1162
auto PresentationIPCRequest::operator==(const SendSessionMessageRequest& aRhs) const -> bool
1163
0
{
1164
0
    return (get_SendSessionMessageRequest()) == (aRhs);
1165
0
}
1166
1167
auto PresentationIPCRequest::operator==(const CloseSessionRequest& aRhs) const -> bool
1168
0
{
1169
0
    return (get_CloseSessionRequest()) == (aRhs);
1170
0
}
1171
1172
auto PresentationIPCRequest::operator==(const TerminateSessionRequest& aRhs) const -> bool
1173
0
{
1174
0
    return (get_TerminateSessionRequest()) == (aRhs);
1175
0
}
1176
1177
auto PresentationIPCRequest::operator==(const ReconnectSessionRequest& aRhs) const -> bool
1178
0
{
1179
0
    return (get_ReconnectSessionRequest()) == (aRhs);
1180
0
}
1181
1182
auto PresentationIPCRequest::operator==(const BuildTransportRequest& aRhs) const -> bool
1183
0
{
1184
0
    return (get_BuildTransportRequest()) == (aRhs);
1185
0
}
1186
1187
auto PresentationIPCRequest::operator==(const PresentationIPCRequest& aRhs) const -> bool
1188
0
{
1189
0
    if ((type()) != ((aRhs).type())) {
1190
0
        return false;
1191
0
    }
1192
0
1193
0
    switch (type()) {
1194
0
    case TStartSessionRequest:
1195
0
        {
1196
0
            return (get_StartSessionRequest()) == ((aRhs).get_StartSessionRequest());
1197
0
        }
1198
0
    case TSendSessionMessageRequest:
1199
0
        {
1200
0
            return (get_SendSessionMessageRequest()) == ((aRhs).get_SendSessionMessageRequest());
1201
0
        }
1202
0
    case TCloseSessionRequest:
1203
0
        {
1204
0
            return (get_CloseSessionRequest()) == ((aRhs).get_CloseSessionRequest());
1205
0
        }
1206
0
    case TTerminateSessionRequest:
1207
0
        {
1208
0
            return (get_TerminateSessionRequest()) == ((aRhs).get_TerminateSessionRequest());
1209
0
        }
1210
0
    case TReconnectSessionRequest:
1211
0
        {
1212
0
            return (get_ReconnectSessionRequest()) == ((aRhs).get_ReconnectSessionRequest());
1213
0
        }
1214
0
    case TBuildTransportRequest:
1215
0
        {
1216
0
            return (get_BuildTransportRequest()) == ((aRhs).get_BuildTransportRequest());
1217
0
        }
1218
0
    default:
1219
0
        {
1220
0
            mozilla::ipc::LogicError("unreached");
1221
0
            return false;
1222
0
        }
1223
0
    }
1224
0
}
1225
1226
auto PresentationIPCRequest::get(StartSessionRequest* aOutValue) const -> void
1227
0
{
1228
0
    (*(aOutValue)) = get_StartSessionRequest();
1229
0
}
1230
1231
auto PresentationIPCRequest::get(SendSessionMessageRequest* aOutValue) const -> void
1232
0
{
1233
0
    (*(aOutValue)) = get_SendSessionMessageRequest();
1234
0
}
1235
1236
auto PresentationIPCRequest::get(CloseSessionRequest* aOutValue) const -> void
1237
0
{
1238
0
    (*(aOutValue)) = get_CloseSessionRequest();
1239
0
}
1240
1241
auto PresentationIPCRequest::get(TerminateSessionRequest* aOutValue) const -> void
1242
0
{
1243
0
    (*(aOutValue)) = get_TerminateSessionRequest();
1244
0
}
1245
1246
auto PresentationIPCRequest::get(ReconnectSessionRequest* aOutValue) const -> void
1247
0
{
1248
0
    (*(aOutValue)) = get_ReconnectSessionRequest();
1249
0
}
1250
1251
auto PresentationIPCRequest::get(BuildTransportRequest* aOutValue) const -> void
1252
0
{
1253
0
    (*(aOutValue)) = get_BuildTransportRequest();
1254
0
}
1255
1256
} // namespace dom
1257
} // namespace mozilla
1258
1259
namespace mozilla {
1260
namespace ipc {
1261
auto IPDLParamTraits<mozilla::dom::PresentationIPCRequest>::Write(
1262
        IPC::Message* aMsg,
1263
        mozilla::ipc::IProtocol* aActor,
1264
        const paramType& aVar) -> void
1265
{
1266
    typedef mozilla::dom::PresentationIPCRequest union__;
1267
    int type;
1268
    type = (aVar).type();
1269
    WriteIPDLParam(aMsg, aActor, type);
1270
    // Sentinel = 'PresentationIPCRequest'
1271
    (aMsg)->WriteSentinel(3554848447);
1272
1273
    switch (type) {
1274
    case union__::TStartSessionRequest:
1275
        {
1276
            WriteIPDLParam(aMsg, aActor, (aVar).get_StartSessionRequest());
1277
            // Sentinel = 'TStartSessionRequest'
1278
            (aMsg)->WriteSentinel(269678931);
1279
            return;
1280
        }
1281
    case union__::TSendSessionMessageRequest:
1282
        {
1283
            WriteIPDLParam(aMsg, aActor, (aVar).get_SendSessionMessageRequest());
1284
            // Sentinel = 'TSendSessionMessageRequest'
1285
            (aMsg)->WriteSentinel(886231308);
1286
            return;
1287
        }
1288
    case union__::TCloseSessionRequest:
1289
        {
1290
            WriteIPDLParam(aMsg, aActor, (aVar).get_CloseSessionRequest());
1291
            // Sentinel = 'TCloseSessionRequest'
1292
            (aMsg)->WriteSentinel(2782916467);
1293
            return;
1294
        }
1295
    case union__::TTerminateSessionRequest:
1296
        {
1297
            WriteIPDLParam(aMsg, aActor, (aVar).get_TerminateSessionRequest());
1298
            // Sentinel = 'TTerminateSessionRequest'
1299
            (aMsg)->WriteSentinel(2948099270);
1300
            return;
1301
        }
1302
    case union__::TReconnectSessionRequest:
1303
        {
1304
            WriteIPDLParam(aMsg, aActor, (aVar).get_ReconnectSessionRequest());
1305
            // Sentinel = 'TReconnectSessionRequest'
1306
            (aMsg)->WriteSentinel(615109452);
1307
            return;
1308
        }
1309
    case union__::TBuildTransportRequest:
1310
        {
1311
            WriteIPDLParam(aMsg, aActor, (aVar).get_BuildTransportRequest());
1312
            // Sentinel = 'TBuildTransportRequest'
1313
            (aMsg)->WriteSentinel(690786476);
1314
            return;
1315
        }
1316
    default:
1317
        {
1318
            (aActor)->FatalError("unknown union type");
1319
            return;
1320
        }
1321
    }
1322
}
1323
1324
auto IPDLParamTraits<mozilla::dom::PresentationIPCRequest>::Read(
1325
        const IPC::Message* aMsg,
1326
        PickleIterator* aIter,
1327
        mozilla::ipc::IProtocol* aActor,
1328
        paramType* aVar) -> bool
1329
0
{
1330
0
    typedef mozilla::dom::PresentationIPCRequest union__;
1331
0
    int type;
1332
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
1333
0
        (aActor)->FatalError("Error deserializing type of union PresentationIPCRequest");
1334
0
        return false;
1335
0
    }
1336
0
    // Sentinel = 'PresentationIPCRequest'
1337
0
    if ((!((aMsg)->ReadSentinel(aIter, 3554848447)))) {
1338
0
        mozilla::ipc::SentinelReadError("Error deserializing type of union PresentationIPCRequest");
1339
0
        return false;
1340
0
    }
1341
0
1342
0
    switch (type) {
1343
0
    case union__::TStartSessionRequest:
1344
0
        {
1345
0
            mozilla::dom::StartSessionRequest tmp = mozilla::dom::StartSessionRequest();
1346
0
            (*(aVar)) = tmp;
1347
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_StartSessionRequest())))))) {
1348
0
                (aActor)->FatalError("Error deserializing variant TStartSessionRequest of union PresentationIPCRequest");
1349
0
                return false;
1350
0
            }
1351
0
            // Sentinel = 'TStartSessionRequest'
1352
0
            if ((!((aMsg)->ReadSentinel(aIter, 269678931)))) {
1353
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TStartSessionRequest of union PresentationIPCRequest");
1354
0
                return false;
1355
0
            }
1356
0
            return true;
1357
0
        }
1358
0
    case union__::TSendSessionMessageRequest:
1359
0
        {
1360
0
            mozilla::dom::SendSessionMessageRequest tmp = mozilla::dom::SendSessionMessageRequest();
1361
0
            (*(aVar)) = tmp;
1362
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_SendSessionMessageRequest())))))) {
1363
0
                (aActor)->FatalError("Error deserializing variant TSendSessionMessageRequest of union PresentationIPCRequest");
1364
0
                return false;
1365
0
            }
1366
0
            // Sentinel = 'TSendSessionMessageRequest'
1367
0
            if ((!((aMsg)->ReadSentinel(aIter, 886231308)))) {
1368
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TSendSessionMessageRequest of union PresentationIPCRequest");
1369
0
                return false;
1370
0
            }
1371
0
            return true;
1372
0
        }
1373
0
    case union__::TCloseSessionRequest:
1374
0
        {
1375
0
            mozilla::dom::CloseSessionRequest tmp = mozilla::dom::CloseSessionRequest();
1376
0
            (*(aVar)) = tmp;
1377
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_CloseSessionRequest())))))) {
1378
0
                (aActor)->FatalError("Error deserializing variant TCloseSessionRequest of union PresentationIPCRequest");
1379
0
                return false;
1380
0
            }
1381
0
            // Sentinel = 'TCloseSessionRequest'
1382
0
            if ((!((aMsg)->ReadSentinel(aIter, 2782916467)))) {
1383
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TCloseSessionRequest of union PresentationIPCRequest");
1384
0
                return false;
1385
0
            }
1386
0
            return true;
1387
0
        }
1388
0
    case union__::TTerminateSessionRequest:
1389
0
        {
1390
0
            mozilla::dom::TerminateSessionRequest tmp = mozilla::dom::TerminateSessionRequest();
1391
0
            (*(aVar)) = tmp;
1392
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_TerminateSessionRequest())))))) {
1393
0
                (aActor)->FatalError("Error deserializing variant TTerminateSessionRequest of union PresentationIPCRequest");
1394
0
                return false;
1395
0
            }
1396
0
            // Sentinel = 'TTerminateSessionRequest'
1397
0
            if ((!((aMsg)->ReadSentinel(aIter, 2948099270)))) {
1398
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TTerminateSessionRequest of union PresentationIPCRequest");
1399
0
                return false;
1400
0
            }
1401
0
            return true;
1402
0
        }
1403
0
    case union__::TReconnectSessionRequest:
1404
0
        {
1405
0
            mozilla::dom::ReconnectSessionRequest tmp = mozilla::dom::ReconnectSessionRequest();
1406
0
            (*(aVar)) = tmp;
1407
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_ReconnectSessionRequest())))))) {
1408
0
                (aActor)->FatalError("Error deserializing variant TReconnectSessionRequest of union PresentationIPCRequest");
1409
0
                return false;
1410
0
            }
1411
0
            // Sentinel = 'TReconnectSessionRequest'
1412
0
            if ((!((aMsg)->ReadSentinel(aIter, 615109452)))) {
1413
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TReconnectSessionRequest of union PresentationIPCRequest");
1414
0
                return false;
1415
0
            }
1416
0
            return true;
1417
0
        }
1418
0
    case union__::TBuildTransportRequest:
1419
0
        {
1420
0
            mozilla::dom::BuildTransportRequest tmp = mozilla::dom::BuildTransportRequest();
1421
0
            (*(aVar)) = tmp;
1422
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_BuildTransportRequest())))))) {
1423
0
                (aActor)->FatalError("Error deserializing variant TBuildTransportRequest of union PresentationIPCRequest");
1424
0
                return false;
1425
0
            }
1426
0
            // Sentinel = 'TBuildTransportRequest'
1427
0
            if ((!((aMsg)->ReadSentinel(aIter, 690786476)))) {
1428
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TBuildTransportRequest of union PresentationIPCRequest");
1429
0
                return false;
1430
0
            }
1431
0
            return true;
1432
0
        }
1433
0
    default:
1434
0
        {
1435
0
            (aActor)->FatalError("unknown union type");
1436
0
            return false;
1437
0
        }
1438
0
    }
1439
0
}
1440
1441
} // namespace ipc
1442
} // namespace mozilla