Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/PPluginScriptableObjectChild.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/plugins/PPluginScriptableObjectChild.h"
8
#include "ipc/IPCMessageUtils.h"
9
10
#include "mozilla/plugins/PPluginInstanceChild.h"
11
12
#include "nsIFile.h"
13
#include "GeckoProfiler.h"
14
15
namespace mozilla {
16
namespace plugins {
17
18
19
auto PPluginScriptableObjectChild::Recv__delete__() -> mozilla::ipc::IPCResult
20
0
{
21
0
    return IPC_OK();
22
0
}
23
24
auto PPluginScriptableObjectChild::ActorDestroy(ActorDestroyReason aWhy) -> void
25
0
{
26
0
}
27
28
MOZ_IMPLICIT PPluginScriptableObjectChild::PPluginScriptableObjectChild() :
29
    mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
30
    mLivenessState(mozilla::ipc::LivenessState::Dead)
31
0
{
32
0
    MOZ_COUNT_CTOR(PPluginScriptableObjectChild);
33
0
}
34
35
PPluginScriptableObjectChild::~PPluginScriptableObjectChild()
36
0
{
37
0
    MOZ_COUNT_DTOR(PPluginScriptableObjectChild);
38
0
}
39
40
auto PPluginScriptableObjectChild::Manager() const -> PPluginInstanceChild*
41
0
{
42
0
    return static_cast<PPluginInstanceChild*>(IProtocol::Manager());
43
0
}
44
45
auto PPluginScriptableObjectChild::Send__delete__(PPluginScriptableObjectChild* actor) -> bool
46
0
{
47
0
    if ((!(actor))) {
48
0
        return false;
49
0
    }
50
0
51
0
    IPC::Message* msg__ = PPluginScriptableObject::Msg___delete__((actor)->Id());
52
0
53
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
54
0
    WriteIPDLParam(msg__, actor, actor);
55
0
    // Sentinel = 'actor'
56
0
    (msg__)->WriteSentinel(875202478);
57
0
58
0
59
0
60
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
61
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
62
0
    }
63
0
    AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg___delete__", OTHER);
64
0
    if ((!(StateTransition(true, (&((actor)->mLivenessState)))))) {
65
0
        mozilla::ipc::LogicError("Transition error");
66
0
    }
67
0
68
0
    bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
69
0
70
0
    IProtocol* mgr = (actor)->Manager();
71
0
    (actor)->DestroySubtree(Deletion);
72
0
    (actor)->DeallocSubtree();
73
0
    (mgr)->RemoveManagee(PPluginScriptableObjectMsgStart, actor);
74
0
    return sendok__;
75
0
}
76
77
auto PPluginScriptableObjectChild::CallNPN_Evaluate(
78
        const nsCString& aScript,
79
        Variant* aResult,
80
        bool* aSuccess) -> bool
81
0
{
82
0
    IPC::Message* msg__ = PPluginScriptableObject::Msg_NPN_Evaluate(Id());
83
0
84
0
    WriteIPDLParam(msg__, this, aScript);
85
0
    // Sentinel = 'aScript'
86
0
    (msg__)->WriteSentinel(579042475);
87
0
88
0
89
0
90
0
    Message reply__;
91
0
92
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
93
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
94
0
    }
95
0
    AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_NPN_Evaluate", OTHER);
96
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
97
0
        mozilla::ipc::LogicError("Transition error");
98
0
    }
99
0
100
0
    bool sendok__;
101
0
    {
102
0
        AUTO_PROFILER_TRACING("IPC", "PPluginScriptableObject::Msg_NPN_Evaluate");
103
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
104
0
    }
105
0
    if ((!(sendok__))) {
106
0
        return false;
107
0
    }
108
0
109
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
110
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
111
0
    }
112
0
113
0
    PickleIterator iter__(reply__);
114
0
115
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aResult)))) {
116
0
        FatalError("Error deserializing 'Variant'");
117
0
        return false;
118
0
    }
119
0
    // Sentinel = 'aResult'
120
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) {
121
0
        mozilla::ipc::SentinelReadError("Error deserializing 'Variant'");
122
0
        return false;
123
0
    }
124
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aSuccess)))) {
125
0
        FatalError("Error deserializing 'bool'");
126
0
        return false;
127
0
    }
128
0
    // Sentinel = 'aSuccess'
129
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
130
0
        mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
131
0
        return false;
132
0
    }
133
0
    (reply__).EndRead(iter__, (reply__).type());
134
0
135
0
    return true;
136
0
}
137
138
auto PPluginScriptableObjectChild::CallHasMethod(
139
        const PluginIdentifier& aId,
140
        bool* aHasMethod) -> bool
141
0
{
142
0
    IPC::Message* msg__ = PPluginScriptableObject::Msg_HasMethod(Id());
143
0
144
0
    WriteIPDLParam(msg__, this, aId);
145
0
    // Sentinel = 'aId'
146
0
    (msg__)->WriteSentinel(2735041817);
147
0
148
0
149
0
150
0
    Message reply__;
151
0
152
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
153
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
154
0
    }
155
0
    AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_HasMethod", OTHER);
156
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
157
0
        mozilla::ipc::LogicError("Transition error");
158
0
    }
159
0
160
0
    bool sendok__;
161
0
    {
162
0
        AUTO_PROFILER_TRACING("IPC", "PPluginScriptableObject::Msg_HasMethod");
163
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
164
0
    }
165
0
    if ((!(sendok__))) {
166
0
        return false;
167
0
    }
168
0
169
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
170
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
171
0
    }
172
0
173
0
    PickleIterator iter__(reply__);
174
0
175
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aHasMethod)))) {
176
0
        FatalError("Error deserializing 'bool'");
177
0
        return false;
178
0
    }
179
0
    // Sentinel = 'aHasMethod'
180
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3301641726)))) {
181
0
        mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
182
0
        return false;
183
0
    }
184
0
    (reply__).EndRead(iter__, (reply__).type());
185
0
186
0
    return true;
187
0
}
188
189
auto PPluginScriptableObjectChild::CallInvoke(
190
        const PluginIdentifier& aId,
191
        const nsTArray<Variant>& aArgs,
192
        Variant* aResult,
193
        bool* aSuccess) -> bool
194
0
{
195
0
    IPC::Message* msg__ = PPluginScriptableObject::Msg_Invoke(Id());
196
0
197
0
    WriteIPDLParam(msg__, this, aId);
198
0
    // Sentinel = 'aId'
199
0
    (msg__)->WriteSentinel(2735041817);
200
0
    WriteIPDLParam(msg__, this, aArgs);
201
0
    // Sentinel = 'aArgs'
202
0
    (msg__)->WriteSentinel(424150951);
203
0
204
0
205
0
206
0
    Message reply__;
207
0
208
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
209
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
210
0
    }
211
0
    AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Invoke", OTHER);
212
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
213
0
        mozilla::ipc::LogicError("Transition error");
214
0
    }
215
0
216
0
    bool sendok__;
217
0
    {
218
0
        AUTO_PROFILER_TRACING("IPC", "PPluginScriptableObject::Msg_Invoke");
219
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
220
0
    }
221
0
    if ((!(sendok__))) {
222
0
        return false;
223
0
    }
224
0
225
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
226
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
227
0
    }
228
0
229
0
    PickleIterator iter__(reply__);
230
0
231
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aResult)))) {
232
0
        FatalError("Error deserializing 'Variant'");
233
0
        return false;
234
0
    }
235
0
    // Sentinel = 'aResult'
236
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) {
237
0
        mozilla::ipc::SentinelReadError("Error deserializing 'Variant'");
238
0
        return false;
239
0
    }
240
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aSuccess)))) {
241
0
        FatalError("Error deserializing 'bool'");
242
0
        return false;
243
0
    }
244
0
    // Sentinel = 'aSuccess'
245
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
246
0
        mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
247
0
        return false;
248
0
    }
249
0
    (reply__).EndRead(iter__, (reply__).type());
250
0
251
0
    return true;
252
0
}
253
254
auto PPluginScriptableObjectChild::CallInvokeDefault(
255
        const nsTArray<Variant>& aArgs,
256
        Variant* aResult,
257
        bool* aSuccess) -> bool
258
0
{
259
0
    IPC::Message* msg__ = PPluginScriptableObject::Msg_InvokeDefault(Id());
260
0
261
0
    WriteIPDLParam(msg__, this, aArgs);
262
0
    // Sentinel = 'aArgs'
263
0
    (msg__)->WriteSentinel(424150951);
264
0
265
0
266
0
267
0
    Message reply__;
268
0
269
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
270
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
271
0
    }
272
0
    AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_InvokeDefault", OTHER);
273
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
274
0
        mozilla::ipc::LogicError("Transition error");
275
0
    }
276
0
277
0
    bool sendok__;
278
0
    {
279
0
        AUTO_PROFILER_TRACING("IPC", "PPluginScriptableObject::Msg_InvokeDefault");
280
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
281
0
    }
282
0
    if ((!(sendok__))) {
283
0
        return false;
284
0
    }
285
0
286
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
287
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
288
0
    }
289
0
290
0
    PickleIterator iter__(reply__);
291
0
292
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aResult)))) {
293
0
        FatalError("Error deserializing 'Variant'");
294
0
        return false;
295
0
    }
296
0
    // Sentinel = 'aResult'
297
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) {
298
0
        mozilla::ipc::SentinelReadError("Error deserializing 'Variant'");
299
0
        return false;
300
0
    }
301
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aSuccess)))) {
302
0
        FatalError("Error deserializing 'bool'");
303
0
        return false;
304
0
    }
305
0
    // Sentinel = 'aSuccess'
306
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
307
0
        mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
308
0
        return false;
309
0
    }
310
0
    (reply__).EndRead(iter__, (reply__).type());
311
0
312
0
    return true;
313
0
}
314
315
auto PPluginScriptableObjectChild::CallHasProperty(
316
        const PluginIdentifier& aId,
317
        bool* aHasProperty) -> bool
318
0
{
319
0
    IPC::Message* msg__ = PPluginScriptableObject::Msg_HasProperty(Id());
320
0
321
0
    WriteIPDLParam(msg__, this, aId);
322
0
    // Sentinel = 'aId'
323
0
    (msg__)->WriteSentinel(2735041817);
324
0
325
0
326
0
327
0
    Message reply__;
328
0
329
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
330
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
331
0
    }
332
0
    AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_HasProperty", OTHER);
333
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
334
0
        mozilla::ipc::LogicError("Transition error");
335
0
    }
336
0
337
0
    bool sendok__;
338
0
    {
339
0
        AUTO_PROFILER_TRACING("IPC", "PPluginScriptableObject::Msg_HasProperty");
340
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
341
0
    }
342
0
    if ((!(sendok__))) {
343
0
        return false;
344
0
    }
345
0
346
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
347
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
348
0
    }
349
0
350
0
    PickleIterator iter__(reply__);
351
0
352
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aHasProperty)))) {
353
0
        FatalError("Error deserializing 'bool'");
354
0
        return false;
355
0
    }
356
0
    // Sentinel = 'aHasProperty'
357
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 581499552)))) {
358
0
        mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
359
0
        return false;
360
0
    }
361
0
    (reply__).EndRead(iter__, (reply__).type());
362
0
363
0
    return true;
364
0
}
365
366
auto PPluginScriptableObjectChild::CallSetProperty(
367
        const PluginIdentifier& aId,
368
        const Variant& aValue,
369
        bool* aSuccess) -> bool
370
0
{
371
0
    IPC::Message* msg__ = PPluginScriptableObject::Msg_SetProperty(Id());
372
0
373
0
    WriteIPDLParam(msg__, this, aId);
374
0
    // Sentinel = 'aId'
375
0
    (msg__)->WriteSentinel(2735041817);
376
0
    WriteIPDLParam(msg__, this, aValue);
377
0
    // Sentinel = 'aValue'
378
0
    (msg__)->WriteSentinel(2522186438);
379
0
380
0
381
0
382
0
    Message reply__;
383
0
384
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
385
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
386
0
    }
387
0
    AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_SetProperty", OTHER);
388
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
389
0
        mozilla::ipc::LogicError("Transition error");
390
0
    }
391
0
392
0
    bool sendok__;
393
0
    {
394
0
        AUTO_PROFILER_TRACING("IPC", "PPluginScriptableObject::Msg_SetProperty");
395
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
396
0
    }
397
0
    if ((!(sendok__))) {
398
0
        return false;
399
0
    }
400
0
401
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
402
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
403
0
    }
404
0
405
0
    PickleIterator iter__(reply__);
406
0
407
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aSuccess)))) {
408
0
        FatalError("Error deserializing 'bool'");
409
0
        return false;
410
0
    }
411
0
    // Sentinel = 'aSuccess'
412
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
413
0
        mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
414
0
        return false;
415
0
    }
416
0
    (reply__).EndRead(iter__, (reply__).type());
417
0
418
0
    return true;
419
0
}
420
421
auto PPluginScriptableObjectChild::CallRemoveProperty(
422
        const PluginIdentifier& aId,
423
        bool* aSuccess) -> bool
424
0
{
425
0
    IPC::Message* msg__ = PPluginScriptableObject::Msg_RemoveProperty(Id());
426
0
427
0
    WriteIPDLParam(msg__, this, aId);
428
0
    // Sentinel = 'aId'
429
0
    (msg__)->WriteSentinel(2735041817);
430
0
431
0
432
0
433
0
    Message reply__;
434
0
435
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
436
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
437
0
    }
438
0
    AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_RemoveProperty", OTHER);
439
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
440
0
        mozilla::ipc::LogicError("Transition error");
441
0
    }
442
0
443
0
    bool sendok__;
444
0
    {
445
0
        AUTO_PROFILER_TRACING("IPC", "PPluginScriptableObject::Msg_RemoveProperty");
446
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
447
0
    }
448
0
    if ((!(sendok__))) {
449
0
        return false;
450
0
    }
451
0
452
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
453
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
454
0
    }
455
0
456
0
    PickleIterator iter__(reply__);
457
0
458
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aSuccess)))) {
459
0
        FatalError("Error deserializing 'bool'");
460
0
        return false;
461
0
    }
462
0
    // Sentinel = 'aSuccess'
463
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
464
0
        mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
465
0
        return false;
466
0
    }
467
0
    (reply__).EndRead(iter__, (reply__).type());
468
0
469
0
    return true;
470
0
}
471
472
auto PPluginScriptableObjectChild::CallEnumerate(
473
        nsTArray<PluginIdentifier>* aProperties,
474
        bool* aSuccess) -> bool
475
0
{
476
0
    IPC::Message* msg__ = PPluginScriptableObject::Msg_Enumerate(Id());
477
0
478
0
479
0
480
0
481
0
    Message reply__;
482
0
483
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
484
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
485
0
    }
486
0
    AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Enumerate", OTHER);
487
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
488
0
        mozilla::ipc::LogicError("Transition error");
489
0
    }
490
0
491
0
    bool sendok__;
492
0
    {
493
0
        AUTO_PROFILER_TRACING("IPC", "PPluginScriptableObject::Msg_Enumerate");
494
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
495
0
    }
496
0
    if ((!(sendok__))) {
497
0
        return false;
498
0
    }
499
0
500
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
501
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
502
0
    }
503
0
504
0
    PickleIterator iter__(reply__);
505
0
506
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aProperties)))) {
507
0
        FatalError("Error deserializing 'nsTArray'");
508
0
        return false;
509
0
    }
510
0
    // Sentinel = 'aProperties'
511
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 4118837589)))) {
512
0
        mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
513
0
        return false;
514
0
    }
515
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aSuccess)))) {
516
0
        FatalError("Error deserializing 'bool'");
517
0
        return false;
518
0
    }
519
0
    // Sentinel = 'aSuccess'
520
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
521
0
        mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
522
0
        return false;
523
0
    }
524
0
    (reply__).EndRead(iter__, (reply__).type());
525
0
526
0
    return true;
527
0
}
528
529
auto PPluginScriptableObjectChild::CallConstruct(
530
        const nsTArray<Variant>& aArgs,
531
        Variant* aResult,
532
        bool* aSuccess) -> bool
533
0
{
534
0
    IPC::Message* msg__ = PPluginScriptableObject::Msg_Construct(Id());
535
0
536
0
    WriteIPDLParam(msg__, this, aArgs);
537
0
    // Sentinel = 'aArgs'
538
0
    (msg__)->WriteSentinel(424150951);
539
0
540
0
541
0
542
0
    Message reply__;
543
0
544
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
545
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
546
0
    }
547
0
    AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Construct", OTHER);
548
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
549
0
        mozilla::ipc::LogicError("Transition error");
550
0
    }
551
0
552
0
    bool sendok__;
553
0
    {
554
0
        AUTO_PROFILER_TRACING("IPC", "PPluginScriptableObject::Msg_Construct");
555
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
556
0
    }
557
0
    if ((!(sendok__))) {
558
0
        return false;
559
0
    }
560
0
561
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
562
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
563
0
    }
564
0
565
0
    PickleIterator iter__(reply__);
566
0
567
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aResult)))) {
568
0
        FatalError("Error deserializing 'Variant'");
569
0
        return false;
570
0
    }
571
0
    // Sentinel = 'aResult'
572
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) {
573
0
        mozilla::ipc::SentinelReadError("Error deserializing 'Variant'");
574
0
        return false;
575
0
    }
576
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aSuccess)))) {
577
0
        FatalError("Error deserializing 'bool'");
578
0
        return false;
579
0
    }
580
0
    // Sentinel = 'aSuccess'
581
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
582
0
        mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
583
0
        return false;
584
0
    }
585
0
    (reply__).EndRead(iter__, (reply__).type());
586
0
587
0
    return true;
588
0
}
589
590
auto PPluginScriptableObjectChild::SendProtect() -> bool
591
0
{
592
0
    IPC::Message* msg__ = PPluginScriptableObject::Msg_Protect(Id());
593
0
594
0
595
0
596
0
597
0
598
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
599
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
600
0
    }
601
0
    AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Protect", OTHER);
602
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
603
0
        mozilla::ipc::LogicError("Transition error");
604
0
    }
605
0
606
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
607
0
    return sendok__;
608
0
}
609
610
auto PPluginScriptableObjectChild::SendUnprotect() -> bool
611
0
{
612
0
    IPC::Message* msg__ = PPluginScriptableObject::Msg_Unprotect(Id());
613
0
614
0
615
0
616
0
617
0
618
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
619
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
620
0
    }
621
0
    AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Unprotect", OTHER);
622
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
623
0
        mozilla::ipc::LogicError("Transition error");
624
0
    }
625
0
626
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
627
0
    return sendok__;
628
0
}
629
630
auto PPluginScriptableObjectChild::CallGetParentProperty(
631
        const PluginIdentifier& aId,
632
        Variant* aResult,
633
        bool* aSuccess) -> bool
634
0
{
635
0
    IPC::Message* msg__ = PPluginScriptableObject::Msg_GetParentProperty(Id());
636
0
637
0
    WriteIPDLParam(msg__, this, aId);
638
0
    // Sentinel = 'aId'
639
0
    (msg__)->WriteSentinel(2735041817);
640
0
641
0
642
0
643
0
    Message reply__;
644
0
645
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
646
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
647
0
    }
648
0
    AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_GetParentProperty", OTHER);
649
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
650
0
        mozilla::ipc::LogicError("Transition error");
651
0
    }
652
0
653
0
    bool sendok__;
654
0
    {
655
0
        AUTO_PROFILER_TRACING("IPC", "PPluginScriptableObject::Msg_GetParentProperty");
656
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
657
0
    }
658
0
    if ((!(sendok__))) {
659
0
        return false;
660
0
    }
661
0
662
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
663
0
        mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
664
0
    }
665
0
666
0
    PickleIterator iter__(reply__);
667
0
668
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aResult)))) {
669
0
        FatalError("Error deserializing 'Variant'");
670
0
        return false;
671
0
    }
672
0
    // Sentinel = 'aResult'
673
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) {
674
0
        mozilla::ipc::SentinelReadError("Error deserializing 'Variant'");
675
0
        return false;
676
0
    }
677
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aSuccess)))) {
678
0
        FatalError("Error deserializing 'bool'");
679
0
        return false;
680
0
    }
681
0
    // Sentinel = 'aSuccess'
682
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
683
0
        mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
684
0
        return false;
685
0
    }
686
0
    (reply__).EndRead(iter__, (reply__).type());
687
0
688
0
    return true;
689
0
}
690
691
auto PPluginScriptableObjectChild::RemoveManagee(
692
        int32_t aProtocolId,
693
        IProtocol* aListener) -> void
694
0
{
695
0
    FatalError("unreached");
696
0
    return;
697
0
}
698
699
auto PPluginScriptableObjectChild::OnMessageReceived(const Message& msg__) -> PPluginScriptableObjectChild::Result
700
0
{
701
0
    switch ((msg__).type()) {
702
0
    case PPluginScriptableObject::Reply___delete____ID:
703
0
        {
704
0
            return MsgProcessed;
705
0
        }
706
0
    case PPluginScriptableObject::Msg___delete____ID:
707
0
        {
708
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
709
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
710
0
            }
711
0
            AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg___delete__", OTHER);
712
0
713
0
            PickleIterator iter__(msg__);
714
0
            PPluginScriptableObjectChild* actor;
715
0
716
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(actor)))))) {
717
0
                FatalError("Error deserializing 'PPluginScriptableObjectChild'");
718
0
                return MsgValueError;
719
0
            }
720
0
            if ((!((*((&(actor))))))) {
721
0
                FatalError("Error deserializing 'PPluginScriptableObjectChild'");
722
0
                return MsgValueError;
723
0
            }
724
0
            // Sentinel = 'actor'
725
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
726
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PPluginScriptableObjectChild'");
727
0
                return MsgValueError;
728
0
            }
729
0
            (msg__).EndRead(iter__, (msg__).type());
730
0
            if ((!(StateTransition(true, (&(mLivenessState)))))) {
731
0
                FatalError("Transition error");
732
0
                return MsgValueError;
733
0
            }
734
0
            if ((!(Recv__delete__()))) {
735
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
736
0
                // Error handled in mozilla::ipc::IPCResult
737
0
                return MsgProcessingError;
738
0
            }
739
0
740
0
741
0
            IProtocol* mgr = (actor)->Manager();
742
0
            (actor)->DestroySubtree(Deletion);
743
0
            (actor)->DeallocSubtree();
744
0
            (mgr)->RemoveManagee(PPluginScriptableObjectMsgStart, actor);
745
0
746
0
            return MsgProcessed;
747
0
        }
748
0
    case PPluginScriptableObject::Msg_Protect__ID:
749
0
        {
750
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
751
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
752
0
            }
753
0
            AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Protect", OTHER);
754
0
755
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
756
0
                FatalError("Transition error");
757
0
                return MsgValueError;
758
0
            }
759
0
            if ((!(RecvProtect()))) {
760
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
761
0
                // Error handled in mozilla::ipc::IPCResult
762
0
                return MsgProcessingError;
763
0
            }
764
0
765
0
            return MsgProcessed;
766
0
        }
767
0
    case PPluginScriptableObject::Msg_Unprotect__ID:
768
0
        {
769
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
770
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
771
0
            }
772
0
            AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Unprotect", OTHER);
773
0
774
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
775
0
                FatalError("Transition error");
776
0
                return MsgValueError;
777
0
            }
778
0
            if ((!(RecvUnprotect()))) {
779
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
780
0
                // Error handled in mozilla::ipc::IPCResult
781
0
                return MsgProcessingError;
782
0
            }
783
0
784
0
            return MsgProcessed;
785
0
        }
786
0
    default:
787
0
        {
788
0
            return MsgNotKnown;
789
0
        }
790
0
    }
791
0
}
792
793
auto PPluginScriptableObjectChild::OnMessageReceived(
794
        const Message& msg__,
795
        Message*& reply__) -> PPluginScriptableObjectChild::Result
796
0
{
797
0
    return MsgNotKnown;
798
0
}
799
800
auto PPluginScriptableObjectChild::OnCallReceived(
801
        const Message& msg__,
802
        Message*& reply__) -> PPluginScriptableObjectChild::Result
803
0
{
804
0
    switch ((msg__).type()) {
805
0
    case PPluginScriptableObject::Msg_Invalidate__ID:
806
0
        {
807
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
808
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
809
0
            }
810
0
            AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Invalidate", OTHER);
811
0
812
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
813
0
                FatalError("Transition error");
814
0
                return MsgValueError;
815
0
            }
816
0
            int32_t id__ = Id();
817
0
            if ((!(AnswerInvalidate()))) {
818
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
819
0
                // Error handled in mozilla::ipc::IPCResult
820
0
                return MsgProcessingError;
821
0
            }
822
0
823
0
            reply__ = PPluginScriptableObject::Reply_Invalidate(id__);
824
0
825
0
826
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
827
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
828
0
            }
829
0
            return MsgProcessed;
830
0
        }
831
0
    case PPluginScriptableObject::Msg_HasMethod__ID:
832
0
        {
833
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
834
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
835
0
            }
836
0
            AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_HasMethod", OTHER);
837
0
838
0
            PickleIterator iter__(msg__);
839
0
            PluginIdentifier aId;
840
0
841
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aId)))))) {
842
0
                FatalError("Error deserializing 'PluginIdentifier'");
843
0
                return MsgValueError;
844
0
            }
845
0
            // Sentinel = 'aId'
846
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
847
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier'");
848
0
                return MsgValueError;
849
0
            }
850
0
            (msg__).EndRead(iter__, (msg__).type());
851
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
852
0
                FatalError("Transition error");
853
0
                return MsgValueError;
854
0
            }
855
0
            int32_t id__ = Id();
856
0
            bool aHasMethod;
857
0
            if ((!(AnswerHasMethod(aId, (&(aHasMethod)))))) {
858
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
859
0
                // Error handled in mozilla::ipc::IPCResult
860
0
                return MsgProcessingError;
861
0
            }
862
0
863
0
            reply__ = PPluginScriptableObject::Reply_HasMethod(id__);
864
0
865
0
            WriteIPDLParam(reply__, this, aHasMethod);
866
0
            // Sentinel = 'aHasMethod'
867
0
            (reply__)->WriteSentinel(3301641726);
868
0
869
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
870
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
871
0
            }
872
0
            return MsgProcessed;
873
0
        }
874
0
    case PPluginScriptableObject::Msg_Invoke__ID:
875
0
        {
876
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
877
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
878
0
            }
879
0
            AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Invoke", OTHER);
880
0
881
0
            PickleIterator iter__(msg__);
882
0
            PluginIdentifier aId;
883
0
            nsTArray<Variant> aArgs;
884
0
885
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aId)))))) {
886
0
                FatalError("Error deserializing 'PluginIdentifier'");
887
0
                return MsgValueError;
888
0
            }
889
0
            // Sentinel = 'aId'
890
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
891
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier'");
892
0
                return MsgValueError;
893
0
            }
894
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aArgs)))))) {
895
0
                FatalError("Error deserializing 'nsTArray'");
896
0
                return MsgValueError;
897
0
            }
898
0
            // Sentinel = 'aArgs'
899
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 424150951)))) {
900
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
901
0
                return MsgValueError;
902
0
            }
903
0
            (msg__).EndRead(iter__, (msg__).type());
904
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
905
0
                FatalError("Transition error");
906
0
                return MsgValueError;
907
0
            }
908
0
            int32_t id__ = Id();
909
0
            Variant aResult;
910
0
            bool aSuccess;
911
0
            if ((!(AnswerInvoke(aId, std::move(aArgs), (&(aResult)), (&(aSuccess)))))) {
912
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
913
0
                // Error handled in mozilla::ipc::IPCResult
914
0
                return MsgProcessingError;
915
0
            }
916
0
917
0
            reply__ = PPluginScriptableObject::Reply_Invoke(id__);
918
0
919
0
            WriteIPDLParam(reply__, this, aResult);
920
0
            // Sentinel = 'aResult'
921
0
            (reply__)->WriteSentinel(3888726089);
922
0
            WriteIPDLParam(reply__, this, aSuccess);
923
0
            // Sentinel = 'aSuccess'
924
0
            (reply__)->WriteSentinel(2132928722);
925
0
926
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
927
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
928
0
            }
929
0
            return MsgProcessed;
930
0
        }
931
0
    case PPluginScriptableObject::Msg_InvokeDefault__ID:
932
0
        {
933
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
934
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
935
0
            }
936
0
            AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_InvokeDefault", OTHER);
937
0
938
0
            PickleIterator iter__(msg__);
939
0
            nsTArray<Variant> aArgs;
940
0
941
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aArgs)))))) {
942
0
                FatalError("Error deserializing 'nsTArray'");
943
0
                return MsgValueError;
944
0
            }
945
0
            // Sentinel = 'aArgs'
946
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 424150951)))) {
947
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
948
0
                return MsgValueError;
949
0
            }
950
0
            (msg__).EndRead(iter__, (msg__).type());
951
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
952
0
                FatalError("Transition error");
953
0
                return MsgValueError;
954
0
            }
955
0
            int32_t id__ = Id();
956
0
            Variant aResult;
957
0
            bool aSuccess;
958
0
            if ((!(AnswerInvokeDefault(std::move(aArgs), (&(aResult)), (&(aSuccess)))))) {
959
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
960
0
                // Error handled in mozilla::ipc::IPCResult
961
0
                return MsgProcessingError;
962
0
            }
963
0
964
0
            reply__ = PPluginScriptableObject::Reply_InvokeDefault(id__);
965
0
966
0
            WriteIPDLParam(reply__, this, aResult);
967
0
            // Sentinel = 'aResult'
968
0
            (reply__)->WriteSentinel(3888726089);
969
0
            WriteIPDLParam(reply__, this, aSuccess);
970
0
            // Sentinel = 'aSuccess'
971
0
            (reply__)->WriteSentinel(2132928722);
972
0
973
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
974
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
975
0
            }
976
0
            return MsgProcessed;
977
0
        }
978
0
    case PPluginScriptableObject::Msg_HasProperty__ID:
979
0
        {
980
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
981
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
982
0
            }
983
0
            AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_HasProperty", OTHER);
984
0
985
0
            PickleIterator iter__(msg__);
986
0
            PluginIdentifier aId;
987
0
988
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aId)))))) {
989
0
                FatalError("Error deserializing 'PluginIdentifier'");
990
0
                return MsgValueError;
991
0
            }
992
0
            // Sentinel = 'aId'
993
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
994
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier'");
995
0
                return MsgValueError;
996
0
            }
997
0
            (msg__).EndRead(iter__, (msg__).type());
998
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
999
0
                FatalError("Transition error");
1000
0
                return MsgValueError;
1001
0
            }
1002
0
            int32_t id__ = Id();
1003
0
            bool aHasProperty;
1004
0
            if ((!(AnswerHasProperty(aId, (&(aHasProperty)))))) {
1005
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1006
0
                // Error handled in mozilla::ipc::IPCResult
1007
0
                return MsgProcessingError;
1008
0
            }
1009
0
1010
0
            reply__ = PPluginScriptableObject::Reply_HasProperty(id__);
1011
0
1012
0
            WriteIPDLParam(reply__, this, aHasProperty);
1013
0
            // Sentinel = 'aHasProperty'
1014
0
            (reply__)->WriteSentinel(581499552);
1015
0
1016
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
1017
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1018
0
            }
1019
0
            return MsgProcessed;
1020
0
        }
1021
0
    case PPluginScriptableObject::Msg_SetProperty__ID:
1022
0
        {
1023
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
1024
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1025
0
            }
1026
0
            AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_SetProperty", OTHER);
1027
0
1028
0
            PickleIterator iter__(msg__);
1029
0
            PluginIdentifier aId;
1030
0
            Variant aValue;
1031
0
1032
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aId)))))) {
1033
0
                FatalError("Error deserializing 'PluginIdentifier'");
1034
0
                return MsgValueError;
1035
0
            }
1036
0
            // Sentinel = 'aId'
1037
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
1038
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier'");
1039
0
                return MsgValueError;
1040
0
            }
1041
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aValue)))))) {
1042
0
                FatalError("Error deserializing 'Variant'");
1043
0
                return MsgValueError;
1044
0
            }
1045
0
            // Sentinel = 'aValue'
1046
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2522186438)))) {
1047
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Variant'");
1048
0
                return MsgValueError;
1049
0
            }
1050
0
            (msg__).EndRead(iter__, (msg__).type());
1051
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1052
0
                FatalError("Transition error");
1053
0
                return MsgValueError;
1054
0
            }
1055
0
            int32_t id__ = Id();
1056
0
            bool aSuccess;
1057
0
            if ((!(AnswerSetProperty(aId, aValue, (&(aSuccess)))))) {
1058
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1059
0
                // Error handled in mozilla::ipc::IPCResult
1060
0
                return MsgProcessingError;
1061
0
            }
1062
0
1063
0
            reply__ = PPluginScriptableObject::Reply_SetProperty(id__);
1064
0
1065
0
            WriteIPDLParam(reply__, this, aSuccess);
1066
0
            // Sentinel = 'aSuccess'
1067
0
            (reply__)->WriteSentinel(2132928722);
1068
0
1069
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
1070
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1071
0
            }
1072
0
            return MsgProcessed;
1073
0
        }
1074
0
    case PPluginScriptableObject::Msg_RemoveProperty__ID:
1075
0
        {
1076
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
1077
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1078
0
            }
1079
0
            AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_RemoveProperty", OTHER);
1080
0
1081
0
            PickleIterator iter__(msg__);
1082
0
            PluginIdentifier aId;
1083
0
1084
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aId)))))) {
1085
0
                FatalError("Error deserializing 'PluginIdentifier'");
1086
0
                return MsgValueError;
1087
0
            }
1088
0
            // Sentinel = 'aId'
1089
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
1090
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier'");
1091
0
                return MsgValueError;
1092
0
            }
1093
0
            (msg__).EndRead(iter__, (msg__).type());
1094
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1095
0
                FatalError("Transition error");
1096
0
                return MsgValueError;
1097
0
            }
1098
0
            int32_t id__ = Id();
1099
0
            bool aSuccess;
1100
0
            if ((!(AnswerRemoveProperty(aId, (&(aSuccess)))))) {
1101
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1102
0
                // Error handled in mozilla::ipc::IPCResult
1103
0
                return MsgProcessingError;
1104
0
            }
1105
0
1106
0
            reply__ = PPluginScriptableObject::Reply_RemoveProperty(id__);
1107
0
1108
0
            WriteIPDLParam(reply__, this, aSuccess);
1109
0
            // Sentinel = 'aSuccess'
1110
0
            (reply__)->WriteSentinel(2132928722);
1111
0
1112
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
1113
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1114
0
            }
1115
0
            return MsgProcessed;
1116
0
        }
1117
0
    case PPluginScriptableObject::Msg_Enumerate__ID:
1118
0
        {
1119
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
1120
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1121
0
            }
1122
0
            AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Enumerate", OTHER);
1123
0
1124
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1125
0
                FatalError("Transition error");
1126
0
                return MsgValueError;
1127
0
            }
1128
0
            int32_t id__ = Id();
1129
0
            nsTArray<PluginIdentifier> aProperties;
1130
0
            bool aSuccess;
1131
0
            if ((!(AnswerEnumerate((&(aProperties)), (&(aSuccess)))))) {
1132
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1133
0
                // Error handled in mozilla::ipc::IPCResult
1134
0
                return MsgProcessingError;
1135
0
            }
1136
0
1137
0
            reply__ = PPluginScriptableObject::Reply_Enumerate(id__);
1138
0
1139
0
            WriteIPDLParam(reply__, this, aProperties);
1140
0
            // Sentinel = 'aProperties'
1141
0
            (reply__)->WriteSentinel(4118837589);
1142
0
            WriteIPDLParam(reply__, this, aSuccess);
1143
0
            // Sentinel = 'aSuccess'
1144
0
            (reply__)->WriteSentinel(2132928722);
1145
0
1146
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
1147
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1148
0
            }
1149
0
            return MsgProcessed;
1150
0
        }
1151
0
    case PPluginScriptableObject::Msg_Construct__ID:
1152
0
        {
1153
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
1154
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1155
0
            }
1156
0
            AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Construct", OTHER);
1157
0
1158
0
            PickleIterator iter__(msg__);
1159
0
            nsTArray<Variant> aArgs;
1160
0
1161
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aArgs)))))) {
1162
0
                FatalError("Error deserializing 'nsTArray'");
1163
0
                return MsgValueError;
1164
0
            }
1165
0
            // Sentinel = 'aArgs'
1166
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 424150951)))) {
1167
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
1168
0
                return MsgValueError;
1169
0
            }
1170
0
            (msg__).EndRead(iter__, (msg__).type());
1171
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1172
0
                FatalError("Transition error");
1173
0
                return MsgValueError;
1174
0
            }
1175
0
            int32_t id__ = Id();
1176
0
            Variant aResult;
1177
0
            bool aSuccess;
1178
0
            if ((!(AnswerConstruct(std::move(aArgs), (&(aResult)), (&(aSuccess)))))) {
1179
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1180
0
                // Error handled in mozilla::ipc::IPCResult
1181
0
                return MsgProcessingError;
1182
0
            }
1183
0
1184
0
            reply__ = PPluginScriptableObject::Reply_Construct(id__);
1185
0
1186
0
            WriteIPDLParam(reply__, this, aResult);
1187
0
            // Sentinel = 'aResult'
1188
0
            (reply__)->WriteSentinel(3888726089);
1189
0
            WriteIPDLParam(reply__, this, aSuccess);
1190
0
            // Sentinel = 'aSuccess'
1191
0
            (reply__)->WriteSentinel(2132928722);
1192
0
1193
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
1194
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1195
0
            }
1196
0
            return MsgProcessed;
1197
0
        }
1198
0
    case PPluginScriptableObject::Msg_GetChildProperty__ID:
1199
0
        {
1200
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
1201
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1202
0
            }
1203
0
            AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_GetChildProperty", OTHER);
1204
0
1205
0
            PickleIterator iter__(msg__);
1206
0
            PluginIdentifier aId;
1207
0
1208
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aId)))))) {
1209
0
                FatalError("Error deserializing 'PluginIdentifier'");
1210
0
                return MsgValueError;
1211
0
            }
1212
0
            // Sentinel = 'aId'
1213
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
1214
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier'");
1215
0
                return MsgValueError;
1216
0
            }
1217
0
            (msg__).EndRead(iter__, (msg__).type());
1218
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
1219
0
                FatalError("Transition error");
1220
0
                return MsgValueError;
1221
0
            }
1222
0
            int32_t id__ = Id();
1223
0
            bool aHasProperty;
1224
0
            bool aHasMethod;
1225
0
            Variant aResult;
1226
0
            bool aSuccess;
1227
0
            if ((!(AnswerGetChildProperty(aId, (&(aHasProperty)), (&(aHasMethod)), (&(aResult)), (&(aSuccess)))))) {
1228
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1229
0
                // Error handled in mozilla::ipc::IPCResult
1230
0
                return MsgProcessingError;
1231
0
            }
1232
0
1233
0
            reply__ = PPluginScriptableObject::Reply_GetChildProperty(id__);
1234
0
1235
0
            WriteIPDLParam(reply__, this, aHasProperty);
1236
0
            // Sentinel = 'aHasProperty'
1237
0
            (reply__)->WriteSentinel(581499552);
1238
0
            WriteIPDLParam(reply__, this, aHasMethod);
1239
0
            // Sentinel = 'aHasMethod'
1240
0
            (reply__)->WriteSentinel(3301641726);
1241
0
            WriteIPDLParam(reply__, this, aResult);
1242
0
            // Sentinel = 'aResult'
1243
0
            (reply__)->WriteSentinel(3888726089);
1244
0
            WriteIPDLParam(reply__, this, aSuccess);
1245
0
            // Sentinel = 'aSuccess'
1246
0
            (reply__)->WriteSentinel(2132928722);
1247
0
1248
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
1249
0
                mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1250
0
            }
1251
0
            return MsgProcessed;
1252
0
        }
1253
0
    default:
1254
0
        {
1255
0
            return MsgNotKnown;
1256
0
        }
1257
0
    }
1258
0
}
1259
1260
auto PPluginScriptableObjectChild::GetProtocolTypeId() -> int32_t
1261
0
{
1262
0
    return PPluginScriptableObjectMsgStart;
1263
0
}
1264
1265
auto PPluginScriptableObjectChild::DestroySubtree(ActorDestroyReason why) -> void
1266
0
{
1267
0
    // Unregister from our manager.
1268
0
    Unregister(Id());
1269
0
1270
0
    // Reject owning pending responses.
1271
0
    (GetIPCChannel())->RejectPendingResponsesForActor(this);
1272
0
1273
0
    // Finally, destroy "us".
1274
0
    ActorDestroy(why);
1275
0
}
1276
1277
auto PPluginScriptableObjectChild::DeallocSubtree() -> void
1278
0
{
1279
0
}
1280
1281
1282
1283
} // namespace plugins
1284
} // namespace mozilla
1285
namespace mozilla {
1286
namespace ipc {
1287
auto IPDLParamTraits<mozilla::plugins::PPluginScriptableObjectChild>::Write(
1288
        IPC::Message* aMsg,
1289
        mozilla::ipc::IProtocol* aActor,
1290
        const paramType& aVar) -> void
1291
0
{
1292
0
    int32_t id;
1293
0
    if ((!(aVar))) {
1294
0
        id = 0;
1295
0
    }
1296
0
    else {
1297
0
        id = (aVar)->Id();
1298
0
        if ((1) == (id)) {
1299
0
            (aActor)->FatalError("actor has been |delete|d");
1300
0
        }
1301
0
    }
1302
0
    WriteIPDLParam(aMsg, aActor, id);
1303
0
}
1304
1305
auto IPDLParamTraits<mozilla::plugins::PPluginScriptableObjectChild>::Read(
1306
        const IPC::Message* aMsg,
1307
        PickleIterator* aIter,
1308
        mozilla::ipc::IProtocol* aActor,
1309
        paramType* aVar) -> bool
1310
0
{
1311
0
    mozilla::Maybe<mozilla::ipc::IProtocol*> actor = (aActor)->ReadActor(aMsg, aIter, true, "PPluginScriptableObject", PPluginScriptableObjectMsgStart);
1312
0
    if ((actor).isNothing()) {
1313
0
        return false;
1314
0
    }
1315
0
1316
0
    (*(aVar)) = static_cast<mozilla::plugins::PPluginScriptableObjectChild*>((actor).value());
1317
0
    return true;
1318
0
}
1319
1320
} // namespace ipc
1321
} // namespace mozilla