Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/PSpeechSynthesisRequestChild.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/PSpeechSynthesisRequestChild.h"
8
9
#include "mozilla/dom/PSpeechSynthesisChild.h"
10
11
#include "nsIFile.h"
12
#include "GeckoProfiler.h"
13
14
namespace mozilla {
15
namespace dom {
16
17
18
auto PSpeechSynthesisRequestChild::ActorDestroy(ActorDestroyReason aWhy) -> void
19
0
{
20
0
}
21
22
MOZ_IMPLICIT PSpeechSynthesisRequestChild::PSpeechSynthesisRequestChild() :
23
    mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
24
    mLivenessState(mozilla::ipc::LivenessState::Dead)
25
0
{
26
0
    MOZ_COUNT_CTOR(PSpeechSynthesisRequestChild);
27
0
}
28
29
PSpeechSynthesisRequestChild::~PSpeechSynthesisRequestChild()
30
0
{
31
0
    MOZ_COUNT_DTOR(PSpeechSynthesisRequestChild);
32
0
}
33
34
auto PSpeechSynthesisRequestChild::Manager() const -> PSpeechSynthesisChild*
35
0
{
36
0
    return static_cast<PSpeechSynthesisChild*>(IProtocol::Manager());
37
0
}
38
39
auto PSpeechSynthesisRequestChild::Send__delete__(PSpeechSynthesisRequestChild* actor) -> bool
40
0
{
41
0
    if ((!(actor))) {
42
0
        return false;
43
0
    }
44
0
45
0
    IPC::Message* msg__ = PSpeechSynthesisRequest::Msg___delete__((actor)->Id());
46
0
47
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
48
0
    WriteIPDLParam(msg__, actor, actor);
49
0
    // Sentinel = 'actor'
50
0
    (msg__)->WriteSentinel(875202478);
51
0
52
0
53
0
54
0
    if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
55
0
        mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
56
0
    }
57
0
    AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg___delete__", OTHER);
58
0
    if ((!(StateTransition(true, (&((actor)->mLivenessState)))))) {
59
0
        mozilla::ipc::LogicError("Transition error");
60
0
    }
61
0
62
0
    bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
63
0
64
0
    IProtocol* mgr = (actor)->Manager();
65
0
    (actor)->DestroySubtree(Deletion);
66
0
    (actor)->DeallocSubtree();
67
0
    (mgr)->RemoveManagee(PSpeechSynthesisRequestMsgStart, actor);
68
0
    return sendok__;
69
0
}
70
71
auto PSpeechSynthesisRequestChild::SendPause() -> bool
72
0
{
73
0
    IPC::Message* msg__ = PSpeechSynthesisRequest::Msg_Pause(Id());
74
0
75
0
76
0
77
0
78
0
79
0
    if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
80
0
        mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
81
0
    }
82
0
    AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_Pause", OTHER);
83
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
84
0
        mozilla::ipc::LogicError("Transition error");
85
0
    }
86
0
87
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
88
0
    return sendok__;
89
0
}
90
91
auto PSpeechSynthesisRequestChild::SendResume() -> bool
92
0
{
93
0
    IPC::Message* msg__ = PSpeechSynthesisRequest::Msg_Resume(Id());
94
0
95
0
96
0
97
0
98
0
99
0
    if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
100
0
        mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
101
0
    }
102
0
    AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_Resume", OTHER);
103
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
104
0
        mozilla::ipc::LogicError("Transition error");
105
0
    }
106
0
107
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
108
0
    return sendok__;
109
0
}
110
111
auto PSpeechSynthesisRequestChild::SendCancel() -> bool
112
0
{
113
0
    IPC::Message* msg__ = PSpeechSynthesisRequest::Msg_Cancel(Id());
114
0
115
0
116
0
117
0
118
0
119
0
    if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
120
0
        mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
121
0
    }
122
0
    AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_Cancel", OTHER);
123
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
124
0
        mozilla::ipc::LogicError("Transition error");
125
0
    }
126
0
127
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
128
0
    return sendok__;
129
0
}
130
131
auto PSpeechSynthesisRequestChild::SendForceEnd() -> bool
132
0
{
133
0
    IPC::Message* msg__ = PSpeechSynthesisRequest::Msg_ForceEnd(Id());
134
0
135
0
136
0
137
0
138
0
139
0
    if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
140
0
        mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
141
0
    }
142
0
    AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_ForceEnd", OTHER);
143
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
144
0
        mozilla::ipc::LogicError("Transition error");
145
0
    }
146
0
147
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
148
0
    return sendok__;
149
0
}
150
151
auto PSpeechSynthesisRequestChild::SendSetAudioOutputVolume(const float& aVolume) -> bool
152
0
{
153
0
    IPC::Message* msg__ = PSpeechSynthesisRequest::Msg_SetAudioOutputVolume(Id());
154
0
155
0
    WriteIPDLParam(msg__, this, aVolume);
156
0
    // Sentinel = 'aVolume'
157
0
    (msg__)->WriteSentinel(3908369896);
158
0
159
0
160
0
161
0
162
0
    if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
163
0
        mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
164
0
    }
165
0
    AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_SetAudioOutputVolume", OTHER);
166
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
167
0
        mozilla::ipc::LogicError("Transition error");
168
0
    }
169
0
170
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
171
0
    return sendok__;
172
0
}
173
174
auto PSpeechSynthesisRequestChild::RemoveManagee(
175
        int32_t aProtocolId,
176
        IProtocol* aListener) -> void
177
0
{
178
0
    FatalError("unreached");
179
0
    return;
180
0
}
181
182
auto PSpeechSynthesisRequestChild::OnMessageReceived(const Message& msg__) -> PSpeechSynthesisRequestChild::Result
183
0
{
184
0
    switch ((msg__).type()) {
185
0
    case PSpeechSynthesisRequest::Reply___delete____ID:
186
0
        {
187
0
            return MsgProcessed;
188
0
        }
189
0
    case PSpeechSynthesisRequest::Msg_OnEnd__ID:
190
0
        {
191
0
            if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
192
0
                mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
193
0
            }
194
0
            AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_OnEnd", OTHER);
195
0
196
0
            PickleIterator iter__(msg__);
197
0
            bool aIsError;
198
0
            float aElapsedTime;
199
0
            uint32_t aCharIndex;
200
0
201
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aIsError)))))) {
202
0
                FatalError("Error deserializing 'bool'");
203
0
                return MsgValueError;
204
0
            }
205
0
            // Sentinel = 'aIsError'
206
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3979019701)))) {
207
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
208
0
                return MsgValueError;
209
0
            }
210
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aElapsedTime)))))) {
211
0
                FatalError("Error deserializing 'float'");
212
0
                return MsgValueError;
213
0
            }
214
0
            // Sentinel = 'aElapsedTime'
215
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 45978708)))) {
216
0
                mozilla::ipc::SentinelReadError("Error deserializing 'float'");
217
0
                return MsgValueError;
218
0
            }
219
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCharIndex)))))) {
220
0
                FatalError("Error deserializing 'uint32_t'");
221
0
                return MsgValueError;
222
0
            }
223
0
            // Sentinel = 'aCharIndex'
224
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3951557473)))) {
225
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
226
0
                return MsgValueError;
227
0
            }
228
0
            (msg__).EndRead(iter__, (msg__).type());
229
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
230
0
                FatalError("Transition error");
231
0
                return MsgValueError;
232
0
            }
233
0
            if ((!(RecvOnEnd(aIsError, aElapsedTime, aCharIndex)))) {
234
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
235
0
                // Error handled in mozilla::ipc::IPCResult
236
0
                return MsgProcessingError;
237
0
            }
238
0
239
0
            return MsgProcessed;
240
0
        }
241
0
    case PSpeechSynthesisRequest::Msg_OnStart__ID:
242
0
        {
243
0
            if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
244
0
                mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
245
0
            }
246
0
            AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_OnStart", OTHER);
247
0
248
0
            PickleIterator iter__(msg__);
249
0
            nsString aUri;
250
0
251
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aUri)))))) {
252
0
                FatalError("Error deserializing 'nsString'");
253
0
                return MsgValueError;
254
0
            }
255
0
            // Sentinel = 'aUri'
256
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2043506205)))) {
257
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
258
0
                return MsgValueError;
259
0
            }
260
0
            (msg__).EndRead(iter__, (msg__).type());
261
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
262
0
                FatalError("Transition error");
263
0
                return MsgValueError;
264
0
            }
265
0
            if ((!(RecvOnStart(aUri)))) {
266
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
267
0
                // Error handled in mozilla::ipc::IPCResult
268
0
                return MsgProcessingError;
269
0
            }
270
0
271
0
            return MsgProcessed;
272
0
        }
273
0
    case PSpeechSynthesisRequest::Msg_OnPause__ID:
274
0
        {
275
0
            if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
276
0
                mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
277
0
            }
278
0
            AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_OnPause", OTHER);
279
0
280
0
            PickleIterator iter__(msg__);
281
0
            float aElapsedTime;
282
0
            uint32_t aCharIndex;
283
0
284
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aElapsedTime)))))) {
285
0
                FatalError("Error deserializing 'float'");
286
0
                return MsgValueError;
287
0
            }
288
0
            // Sentinel = 'aElapsedTime'
289
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 45978708)))) {
290
0
                mozilla::ipc::SentinelReadError("Error deserializing 'float'");
291
0
                return MsgValueError;
292
0
            }
293
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCharIndex)))))) {
294
0
                FatalError("Error deserializing 'uint32_t'");
295
0
                return MsgValueError;
296
0
            }
297
0
            // Sentinel = 'aCharIndex'
298
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3951557473)))) {
299
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
300
0
                return MsgValueError;
301
0
            }
302
0
            (msg__).EndRead(iter__, (msg__).type());
303
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
304
0
                FatalError("Transition error");
305
0
                return MsgValueError;
306
0
            }
307
0
            if ((!(RecvOnPause(aElapsedTime, aCharIndex)))) {
308
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
309
0
                // Error handled in mozilla::ipc::IPCResult
310
0
                return MsgProcessingError;
311
0
            }
312
0
313
0
            return MsgProcessed;
314
0
        }
315
0
    case PSpeechSynthesisRequest::Msg_OnResume__ID:
316
0
        {
317
0
            if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
318
0
                mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
319
0
            }
320
0
            AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_OnResume", OTHER);
321
0
322
0
            PickleIterator iter__(msg__);
323
0
            float aElapsedTime;
324
0
            uint32_t aCharIndex;
325
0
326
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aElapsedTime)))))) {
327
0
                FatalError("Error deserializing 'float'");
328
0
                return MsgValueError;
329
0
            }
330
0
            // Sentinel = 'aElapsedTime'
331
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 45978708)))) {
332
0
                mozilla::ipc::SentinelReadError("Error deserializing 'float'");
333
0
                return MsgValueError;
334
0
            }
335
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCharIndex)))))) {
336
0
                FatalError("Error deserializing 'uint32_t'");
337
0
                return MsgValueError;
338
0
            }
339
0
            // Sentinel = 'aCharIndex'
340
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3951557473)))) {
341
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
342
0
                return MsgValueError;
343
0
            }
344
0
            (msg__).EndRead(iter__, (msg__).type());
345
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
346
0
                FatalError("Transition error");
347
0
                return MsgValueError;
348
0
            }
349
0
            if ((!(RecvOnResume(aElapsedTime, aCharIndex)))) {
350
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
351
0
                // Error handled in mozilla::ipc::IPCResult
352
0
                return MsgProcessingError;
353
0
            }
354
0
355
0
            return MsgProcessed;
356
0
        }
357
0
    case PSpeechSynthesisRequest::Msg_OnBoundary__ID:
358
0
        {
359
0
            if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
360
0
                mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
361
0
            }
362
0
            AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_OnBoundary", OTHER);
363
0
364
0
            PickleIterator iter__(msg__);
365
0
            nsString aName;
366
0
            float aElapsedTime;
367
0
            uint32_t aCharIndex;
368
0
            uint32_t aCharLength;
369
0
            uint8_t argc;
370
0
371
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aName)))))) {
372
0
                FatalError("Error deserializing 'nsString'");
373
0
                return MsgValueError;
374
0
            }
375
0
            // Sentinel = 'aName'
376
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1450162941)))) {
377
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
378
0
                return MsgValueError;
379
0
            }
380
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aElapsedTime)))))) {
381
0
                FatalError("Error deserializing 'float'");
382
0
                return MsgValueError;
383
0
            }
384
0
            // Sentinel = 'aElapsedTime'
385
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 45978708)))) {
386
0
                mozilla::ipc::SentinelReadError("Error deserializing 'float'");
387
0
                return MsgValueError;
388
0
            }
389
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCharIndex)))))) {
390
0
                FatalError("Error deserializing 'uint32_t'");
391
0
                return MsgValueError;
392
0
            }
393
0
            // Sentinel = 'aCharIndex'
394
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3951557473)))) {
395
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
396
0
                return MsgValueError;
397
0
            }
398
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCharLength)))))) {
399
0
                FatalError("Error deserializing 'uint32_t'");
400
0
                return MsgValueError;
401
0
            }
402
0
            // Sentinel = 'aCharLength'
403
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1167657610)))) {
404
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
405
0
                return MsgValueError;
406
0
            }
407
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(argc)))))) {
408
0
                FatalError("Error deserializing 'uint8_t'");
409
0
                return MsgValueError;
410
0
            }
411
0
            // Sentinel = 'argc'
412
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2823760603)))) {
413
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint8_t'");
414
0
                return MsgValueError;
415
0
            }
416
0
            (msg__).EndRead(iter__, (msg__).type());
417
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
418
0
                FatalError("Transition error");
419
0
                return MsgValueError;
420
0
            }
421
0
            if ((!(RecvOnBoundary(aName, aElapsedTime, aCharIndex, aCharLength, argc)))) {
422
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
423
0
                // Error handled in mozilla::ipc::IPCResult
424
0
                return MsgProcessingError;
425
0
            }
426
0
427
0
            return MsgProcessed;
428
0
        }
429
0
    case PSpeechSynthesisRequest::Msg_OnMark__ID:
430
0
        {
431
0
            if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
432
0
                mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
433
0
            }
434
0
            AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_OnMark", OTHER);
435
0
436
0
            PickleIterator iter__(msg__);
437
0
            nsString aName;
438
0
            float aElapsedTime;
439
0
            uint32_t aCharIndex;
440
0
441
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aName)))))) {
442
0
                FatalError("Error deserializing 'nsString'");
443
0
                return MsgValueError;
444
0
            }
445
0
            // Sentinel = 'aName'
446
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1450162941)))) {
447
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
448
0
                return MsgValueError;
449
0
            }
450
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aElapsedTime)))))) {
451
0
                FatalError("Error deserializing 'float'");
452
0
                return MsgValueError;
453
0
            }
454
0
            // Sentinel = 'aElapsedTime'
455
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 45978708)))) {
456
0
                mozilla::ipc::SentinelReadError("Error deserializing 'float'");
457
0
                return MsgValueError;
458
0
            }
459
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCharIndex)))))) {
460
0
                FatalError("Error deserializing 'uint32_t'");
461
0
                return MsgValueError;
462
0
            }
463
0
            // Sentinel = 'aCharIndex'
464
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3951557473)))) {
465
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
466
0
                return MsgValueError;
467
0
            }
468
0
            (msg__).EndRead(iter__, (msg__).type());
469
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
470
0
                FatalError("Transition error");
471
0
                return MsgValueError;
472
0
            }
473
0
            if ((!(RecvOnMark(aName, aElapsedTime, aCharIndex)))) {
474
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
475
0
                // Error handled in mozilla::ipc::IPCResult
476
0
                return MsgProcessingError;
477
0
            }
478
0
479
0
            return MsgProcessed;
480
0
        }
481
0
    default:
482
0
        {
483
0
            return MsgNotKnown;
484
0
        }
485
0
    }
486
0
}
487
488
auto PSpeechSynthesisRequestChild::OnMessageReceived(
489
        const Message& msg__,
490
        Message*& reply__) -> PSpeechSynthesisRequestChild::Result
491
0
{
492
0
    return MsgNotKnown;
493
0
}
494
495
auto PSpeechSynthesisRequestChild::OnCallReceived(
496
        const Message& msg__,
497
        Message*& reply__) -> PSpeechSynthesisRequestChild::Result
498
0
{
499
0
    MOZ_ASSERT_UNREACHABLE("message protocol not supported");
500
0
    return MsgNotKnown;
501
0
}
502
503
auto PSpeechSynthesisRequestChild::GetProtocolTypeId() -> int32_t
504
0
{
505
0
    return PSpeechSynthesisRequestMsgStart;
506
0
}
507
508
auto PSpeechSynthesisRequestChild::DestroySubtree(ActorDestroyReason why) -> void
509
0
{
510
0
    // Unregister from our manager.
511
0
    Unregister(Id());
512
0
513
0
    // Reject owning pending responses.
514
0
    (GetIPCChannel())->RejectPendingResponsesForActor(this);
515
0
516
0
    // Finally, destroy "us".
517
0
    ActorDestroy(why);
518
0
}
519
520
auto PSpeechSynthesisRequestChild::DeallocSubtree() -> void
521
0
{
522
0
}
523
524
525
526
} // namespace dom
527
} // namespace mozilla
528
namespace mozilla {
529
namespace ipc {
530
auto IPDLParamTraits<mozilla::dom::PSpeechSynthesisRequestChild>::Write(
531
        IPC::Message* aMsg,
532
        mozilla::ipc::IProtocol* aActor,
533
        const paramType& aVar) -> void
534
0
{
535
0
    int32_t id;
536
0
    if ((!(aVar))) {
537
0
        id = 0;
538
0
    }
539
0
    else {
540
0
        id = (aVar)->Id();
541
0
        if ((1) == (id)) {
542
0
            (aActor)->FatalError("actor has been |delete|d");
543
0
        }
544
0
    }
545
0
    WriteIPDLParam(aMsg, aActor, id);
546
0
}
547
548
auto IPDLParamTraits<mozilla::dom::PSpeechSynthesisRequestChild>::Read(
549
        const IPC::Message* aMsg,
550
        PickleIterator* aIter,
551
        mozilla::ipc::IProtocol* aActor,
552
        paramType* aVar) -> bool
553
0
{
554
0
    mozilla::Maybe<mozilla::ipc::IProtocol*> actor = (aActor)->ReadActor(aMsg, aIter, true, "PSpeechSynthesisRequest", PSpeechSynthesisRequestMsgStart);
555
0
    if ((actor).isNothing()) {
556
0
        return false;
557
0
    }
558
0
559
0
    (*(aVar)) = static_cast<mozilla::dom::PSpeechSynthesisRequestChild*>((actor).value());
560
0
    return true;
561
0
}
562
563
} // namespace ipc
564
} // namespace mozilla