Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/PPluginInstanceParent.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/PPluginInstanceParent.h"
8
#include "ipc/IPCMessageUtils.h"
9
#include "ipc/nsGUIEventIPC.h"
10
#include "mozilla/D3DMessageUtils.h"
11
#include "mozilla/plugins/PluginMessageUtils.h"
12
13
#include "mozilla/plugins/PPluginBackgroundDestroyerParent.h"
14
#include "mozilla/plugins/PPluginModuleParent.h"
15
#include "mozilla/plugins/PPluginScriptableObjectParent.h"
16
#include "mozilla/plugins/PBrowserStreamParent.h"
17
#include "mozilla/plugins/PStreamNotifyParent.h"
18
#include "mozilla/plugins/PPluginSurfaceParent.h"
19
20
#include "nsIFile.h"
21
#include "GeckoProfiler.h"
22
23
namespace mozilla {
24
namespace plugins {
25
26
27
auto PPluginInstanceParent::AnswerPStreamNotifyConstructor(
28
        PStreamNotifyParent* actor,
29
        const nsCString& url,
30
        const nsCString& target,
31
        const bool& post,
32
        const nsCString& buffer,
33
        const bool& file,
34
        NPError* result) -> mozilla::ipc::IPCResult
35
0
{
36
0
    return IPC_OK();
37
0
}
38
39
auto PPluginInstanceParent::RecvPPluginSurfaceConstructor(
40
        PPluginSurfaceParent* actor,
41
        const WindowsSharedMemoryHandle& handle,
42
        const IntSize& size,
43
        const bool& transparent) -> mozilla::ipc::IPCResult
44
0
{
45
0
    return IPC_OK();
46
0
}
47
48
auto PPluginInstanceParent::RecvPPluginScriptableObjectConstructor(PPluginScriptableObjectParent* actor) -> mozilla::ipc::IPCResult
49
0
{
50
0
    return IPC_OK();
51
0
}
52
53
auto PPluginInstanceParent::ActorDestroy(ActorDestroyReason aWhy) -> void
54
0
{
55
0
}
56
57
MOZ_IMPLICIT PPluginInstanceParent::PPluginInstanceParent() :
58
    mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
59
    mLivenessState(mozilla::ipc::ReEntrantDeleteLivenessState::Dead)
60
0
{
61
0
    MOZ_COUNT_CTOR(PPluginInstanceParent);
62
0
}
63
64
PPluginInstanceParent::~PPluginInstanceParent()
65
0
{
66
0
    MOZ_COUNT_DTOR(PPluginInstanceParent);
67
0
}
68
69
auto PPluginInstanceParent::Manager() const -> PPluginModuleParent*
70
0
{
71
0
    return static_cast<PPluginModuleParent*>(IProtocol::Manager());
72
0
}
73
74
auto PPluginInstanceParent::ManagedPPluginBackgroundDestroyerParent(nsTArray<PPluginBackgroundDestroyerParent*>& aArr) const -> void
75
0
{
76
0
    (mManagedPPluginBackgroundDestroyerParent).ToArray(aArr);
77
0
}
78
79
auto PPluginInstanceParent::ManagedPPluginBackgroundDestroyerParent() const -> const ManagedContainer<PPluginBackgroundDestroyerParent>&
80
0
{
81
0
    return mManagedPPluginBackgroundDestroyerParent;
82
0
}
83
84
auto PPluginInstanceParent::ManagedPPluginScriptableObjectParent(nsTArray<PPluginScriptableObjectParent*>& aArr) const -> void
85
0
{
86
0
    (mManagedPPluginScriptableObjectParent).ToArray(aArr);
87
0
}
88
89
auto PPluginInstanceParent::ManagedPPluginScriptableObjectParent() const -> const ManagedContainer<PPluginScriptableObjectParent>&
90
0
{
91
0
    return mManagedPPluginScriptableObjectParent;
92
0
}
93
94
auto PPluginInstanceParent::ManagedPBrowserStreamParent(nsTArray<PBrowserStreamParent*>& aArr) const -> void
95
0
{
96
0
    (mManagedPBrowserStreamParent).ToArray(aArr);
97
0
}
98
99
auto PPluginInstanceParent::ManagedPBrowserStreamParent() const -> const ManagedContainer<PBrowserStreamParent>&
100
0
{
101
0
    return mManagedPBrowserStreamParent;
102
0
}
103
104
auto PPluginInstanceParent::ManagedPStreamNotifyParent(nsTArray<PStreamNotifyParent*>& aArr) const -> void
105
0
{
106
0
    (mManagedPStreamNotifyParent).ToArray(aArr);
107
0
}
108
109
auto PPluginInstanceParent::ManagedPStreamNotifyParent() const -> const ManagedContainer<PStreamNotifyParent>&
110
0
{
111
0
    return mManagedPStreamNotifyParent;
112
0
}
113
114
auto PPluginInstanceParent::ManagedPPluginSurfaceParent(nsTArray<PPluginSurfaceParent*>& aArr) const -> void
115
0
{
116
0
    (mManagedPPluginSurfaceParent).ToArray(aArr);
117
0
}
118
119
auto PPluginInstanceParent::ManagedPPluginSurfaceParent() const -> const ManagedContainer<PPluginSurfaceParent>&
120
0
{
121
0
    return mManagedPPluginSurfaceParent;
122
0
}
123
124
auto PPluginInstanceParent::Call__delete__(PPluginInstanceParent* actor) -> bool
125
0
{
126
0
    if ((!(actor))) {
127
0
        return false;
128
0
    }
129
0
130
0
    IPC::Message* msg__ = PPluginInstance::Msg___delete__((actor)->Id());
131
0
132
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
133
0
    WriteIPDLParam(msg__, actor, actor);
134
0
    // Sentinel = 'actor'
135
0
    (msg__)->WriteSentinel(875202478);
136
0
137
0
138
0
139
0
    Message reply__;
140
0
141
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
142
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
143
0
    }
144
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg___delete__", OTHER);
145
0
    if ((!(ReEntrantDeleteStateTransition(true, false, (&((actor)->mLivenessState)))))) {
146
0
        mozilla::ipc::LogicError("Transition error");
147
0
    }
148
0
149
0
    bool sendok__;
150
0
    {
151
0
        AUTO_PROFILER_TRACING("IPC", "PPluginInstance::Msg___delete__");
152
0
        sendok__ = ((actor)->GetIPCChannel())->Call(msg__, (&(reply__)));
153
0
    }
154
0
    if (false) {
155
0
156
0
        if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
157
0
            mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", (actor)->OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
158
0
        }
159
0
160
0
        sendok__ &= false;
161
0
    }
162
0
    if ((!(ReEntrantDeleteStateTransition(false, true, (&((actor)->mLivenessState)))))) {
163
0
        mozilla::ipc::LogicError("Transition error");
164
0
    }
165
0
    IProtocol* mgr = (actor)->Manager();
166
0
    (actor)->DestroySubtree(Deletion);
167
0
    (actor)->DeallocSubtree();
168
0
    (mgr)->RemoveManagee(PPluginInstanceMsgStart, actor);
169
0
170
0
    return sendok__;
171
0
}
172
173
auto PPluginInstanceParent::CallCreateChildPluginWindow(NativeWindowHandle* childPluginWindow) -> bool
174
0
{
175
0
    IPC::Message* msg__ = PPluginInstance::Msg_CreateChildPluginWindow(Id());
176
0
177
0
178
0
179
0
180
0
    Message reply__;
181
0
182
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
183
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
184
0
    }
185
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_CreateChildPluginWindow", OTHER);
186
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
187
0
        mozilla::ipc::LogicError("Transition error");
188
0
    }
189
0
190
0
    bool sendok__;
191
0
    {
192
0
        AUTO_PROFILER_TRACING("IPC", "PPluginInstance::Msg_CreateChildPluginWindow");
193
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
194
0
    }
195
0
    if ((!(sendok__))) {
196
0
        return false;
197
0
    }
198
0
199
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
200
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
201
0
    }
202
0
203
0
    PickleIterator iter__(reply__);
204
0
205
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, childPluginWindow)))) {
206
0
        FatalError("Error deserializing 'NativeWindowHandle'");
207
0
        return false;
208
0
    }
209
0
    // Sentinel = 'childPluginWindow'
210
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3094544218)))) {
211
0
        mozilla::ipc::SentinelReadError("Error deserializing 'NativeWindowHandle'");
212
0
        return false;
213
0
    }
214
0
    (reply__).EndRead(iter__, (reply__).type());
215
0
216
0
    return true;
217
0
}
218
219
auto PPluginInstanceParent::SendCreateChildPopupSurrogate(const NativeWindowHandle& netscapeWindow) -> bool
220
0
{
221
0
    IPC::Message* msg__ = PPluginInstance::Msg_CreateChildPopupSurrogate(Id());
222
0
223
0
    WriteIPDLParam(msg__, this, netscapeWindow);
224
0
    // Sentinel = 'netscapeWindow'
225
0
    (msg__)->WriteSentinel(2261110363);
226
0
227
0
228
0
229
0
230
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
231
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
232
0
    }
233
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_CreateChildPopupSurrogate", OTHER);
234
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
235
0
        mozilla::ipc::LogicError("Transition error");
236
0
    }
237
0
238
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
239
0
    return sendok__;
240
0
}
241
242
auto PPluginInstanceParent::CallNPP_SetWindow(const NPRemoteWindow& window) -> bool
243
0
{
244
0
    IPC::Message* msg__ = PPluginInstance::Msg_NPP_SetWindow(Id());
245
0
246
0
    WriteIPDLParam(msg__, this, window);
247
0
    // Sentinel = 'window'
248
0
    (msg__)->WriteSentinel(3032525362);
249
0
250
0
251
0
252
0
    Message reply__;
253
0
254
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
255
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
256
0
    }
257
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_SetWindow", OTHER);
258
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
259
0
        mozilla::ipc::LogicError("Transition error");
260
0
    }
261
0
262
0
    bool sendok__;
263
0
    {
264
0
        AUTO_PROFILER_TRACING("IPC", "PPluginInstance::Msg_NPP_SetWindow");
265
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
266
0
    }
267
0
    if ((!(sendok__))) {
268
0
        return false;
269
0
    }
270
0
271
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
272
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
273
0
    }
274
0
275
0
    return true;
276
0
}
277
278
auto PPluginInstanceParent::CallNPP_GetValue_NPPVpluginWantsAllNetworkStreams(
279
        bool* value,
280
        NPError* result) -> bool
281
0
{
282
0
    IPC::Message* msg__ = PPluginInstance::Msg_NPP_GetValue_NPPVpluginWantsAllNetworkStreams(Id());
283
0
284
0
285
0
286
0
287
0
    Message reply__;
288
0
289
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
290
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
291
0
    }
292
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_GetValue_NPPVpluginWantsAllNetworkStreams", OTHER);
293
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
294
0
        mozilla::ipc::LogicError("Transition error");
295
0
    }
296
0
297
0
    bool sendok__;
298
0
    {
299
0
        AUTO_PROFILER_TRACING("IPC", "PPluginInstance::Msg_NPP_GetValue_NPPVpluginWantsAllNetworkStreams");
300
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
301
0
    }
302
0
    if ((!(sendok__))) {
303
0
        return false;
304
0
    }
305
0
306
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
307
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
308
0
    }
309
0
310
0
    PickleIterator iter__(reply__);
311
0
312
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, value)))) {
313
0
        FatalError("Error deserializing 'bool'");
314
0
        return false;
315
0
    }
316
0
    // Sentinel = 'value'
317
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3456818542)))) {
318
0
        mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
319
0
        return false;
320
0
    }
321
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, result)))) {
322
0
        FatalError("Error deserializing 'NPError'");
323
0
        return false;
324
0
    }
325
0
    // Sentinel = 'result'
326
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
327
0
        mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
328
0
        return false;
329
0
    }
330
0
    (reply__).EndRead(iter__, (reply__).type());
331
0
332
0
    return true;
333
0
}
334
335
auto PPluginInstanceParent::CallNPP_GetValue_NPPVpluginScriptableNPObject(
336
        PPluginScriptableObjectParent** value,
337
        NPError* result) -> bool
338
0
{
339
0
    IPC::Message* msg__ = PPluginInstance::Msg_NPP_GetValue_NPPVpluginScriptableNPObject(Id());
340
0
341
0
342
0
343
0
344
0
    Message reply__;
345
0
346
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
347
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
348
0
    }
349
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_GetValue_NPPVpluginScriptableNPObject", OTHER);
350
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
351
0
        mozilla::ipc::LogicError("Transition error");
352
0
    }
353
0
354
0
    bool sendok__;
355
0
    {
356
0
        AUTO_PROFILER_TRACING("IPC", "PPluginInstance::Msg_NPP_GetValue_NPPVpluginScriptableNPObject");
357
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
358
0
    }
359
0
    if ((!(sendok__))) {
360
0
        return false;
361
0
    }
362
0
363
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
364
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
365
0
    }
366
0
367
0
    PickleIterator iter__(reply__);
368
0
369
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, value)))) {
370
0
        FatalError("Error deserializing 'PPluginScriptableObjectParent'");
371
0
        return false;
372
0
    }
373
0
    // Sentinel = 'value'
374
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3456818542)))) {
375
0
        mozilla::ipc::SentinelReadError("Error deserializing 'PPluginScriptableObjectParent'");
376
0
        return false;
377
0
    }
378
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, result)))) {
379
0
        FatalError("Error deserializing 'NPError'");
380
0
        return false;
381
0
    }
382
0
    // Sentinel = 'result'
383
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
384
0
        mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
385
0
        return false;
386
0
    }
387
0
    (reply__).EndRead(iter__, (reply__).type());
388
0
389
0
    return true;
390
0
}
391
392
auto PPluginInstanceParent::CallNPP_SetValue_NPNVprivateModeBool(
393
        const bool& value,
394
        NPError* result) -> bool
395
0
{
396
0
    IPC::Message* msg__ = PPluginInstance::Msg_NPP_SetValue_NPNVprivateModeBool(Id());
397
0
398
0
    WriteIPDLParam(msg__, this, value);
399
0
    // Sentinel = 'value'
400
0
    (msg__)->WriteSentinel(3456818542);
401
0
402
0
403
0
404
0
    Message reply__;
405
0
406
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
407
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
408
0
    }
409
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_SetValue_NPNVprivateModeBool", OTHER);
410
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
411
0
        mozilla::ipc::LogicError("Transition error");
412
0
    }
413
0
414
0
    bool sendok__;
415
0
    {
416
0
        AUTO_PROFILER_TRACING("IPC", "PPluginInstance::Msg_NPP_SetValue_NPNVprivateModeBool");
417
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
418
0
    }
419
0
    if ((!(sendok__))) {
420
0
        return false;
421
0
    }
422
0
423
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
424
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
425
0
    }
426
0
427
0
    PickleIterator iter__(reply__);
428
0
429
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, result)))) {
430
0
        FatalError("Error deserializing 'NPError'");
431
0
        return false;
432
0
    }
433
0
    // Sentinel = 'result'
434
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
435
0
        mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
436
0
        return false;
437
0
    }
438
0
    (reply__).EndRead(iter__, (reply__).type());
439
0
440
0
    return true;
441
0
}
442
443
auto PPluginInstanceParent::CallNPP_GetValue_NPPVpluginNativeAccessibleAtkPlugId(
444
        nsCString* plug_id,
445
        NPError* result) -> bool
446
0
{
447
0
    IPC::Message* msg__ = PPluginInstance::Msg_NPP_GetValue_NPPVpluginNativeAccessibleAtkPlugId(Id());
448
0
449
0
450
0
451
0
452
0
    Message reply__;
453
0
454
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
455
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
456
0
    }
457
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_GetValue_NPPVpluginNativeAccessibleAtkPlugId", OTHER);
458
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
459
0
        mozilla::ipc::LogicError("Transition error");
460
0
    }
461
0
462
0
    bool sendok__;
463
0
    {
464
0
        AUTO_PROFILER_TRACING("IPC", "PPluginInstance::Msg_NPP_GetValue_NPPVpluginNativeAccessibleAtkPlugId");
465
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
466
0
    }
467
0
    if ((!(sendok__))) {
468
0
        return false;
469
0
    }
470
0
471
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
472
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
473
0
    }
474
0
475
0
    PickleIterator iter__(reply__);
476
0
477
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, plug_id)))) {
478
0
        FatalError("Error deserializing 'nsCString'");
479
0
        return false;
480
0
    }
481
0
    // Sentinel = 'plug_id'
482
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3926321843)))) {
483
0
        mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
484
0
        return false;
485
0
    }
486
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, result)))) {
487
0
        FatalError("Error deserializing 'NPError'");
488
0
        return false;
489
0
    }
490
0
    // Sentinel = 'result'
491
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
492
0
        mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
493
0
        return false;
494
0
    }
495
0
    (reply__).EndRead(iter__, (reply__).type());
496
0
497
0
    return true;
498
0
}
499
500
auto PPluginInstanceParent::CallNPP_SetValue_NPNVCSSZoomFactor(
501
        const double& value,
502
        NPError* result) -> bool
503
0
{
504
0
    IPC::Message* msg__ = PPluginInstance::Msg_NPP_SetValue_NPNVCSSZoomFactor(Id());
505
0
506
0
    WriteIPDLParam(msg__, this, value);
507
0
    // Sentinel = 'value'
508
0
    (msg__)->WriteSentinel(3456818542);
509
0
510
0
511
0
512
0
    Message reply__;
513
0
514
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
515
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
516
0
    }
517
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_SetValue_NPNVCSSZoomFactor", OTHER);
518
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
519
0
        mozilla::ipc::LogicError("Transition error");
520
0
    }
521
0
522
0
    bool sendok__;
523
0
    {
524
0
        AUTO_PROFILER_TRACING("IPC", "PPluginInstance::Msg_NPP_SetValue_NPNVCSSZoomFactor");
525
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
526
0
    }
527
0
    if ((!(sendok__))) {
528
0
        return false;
529
0
    }
530
0
531
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
532
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
533
0
    }
534
0
535
0
    PickleIterator iter__(reply__);
536
0
537
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, result)))) {
538
0
        FatalError("Error deserializing 'NPError'");
539
0
        return false;
540
0
    }
541
0
    // Sentinel = 'result'
542
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
543
0
        mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
544
0
        return false;
545
0
    }
546
0
    (reply__).EndRead(iter__, (reply__).type());
547
0
548
0
    return true;
549
0
}
550
551
auto PPluginInstanceParent::CallNPP_SetValue_NPNVmuteAudioBool(
552
        const bool& muted,
553
        NPError* result) -> bool
554
0
{
555
0
    IPC::Message* msg__ = PPluginInstance::Msg_NPP_SetValue_NPNVmuteAudioBool(Id());
556
0
557
0
    WriteIPDLParam(msg__, this, muted);
558
0
    // Sentinel = 'muted'
559
0
    (msg__)->WriteSentinel(4247164072);
560
0
561
0
562
0
563
0
    Message reply__;
564
0
565
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
566
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
567
0
    }
568
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_SetValue_NPNVmuteAudioBool", OTHER);
569
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
570
0
        mozilla::ipc::LogicError("Transition error");
571
0
    }
572
0
573
0
    bool sendok__;
574
0
    {
575
0
        AUTO_PROFILER_TRACING("IPC", "PPluginInstance::Msg_NPP_SetValue_NPNVmuteAudioBool");
576
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
577
0
    }
578
0
    if ((!(sendok__))) {
579
0
        return false;
580
0
    }
581
0
582
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
583
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
584
0
    }
585
0
586
0
    PickleIterator iter__(reply__);
587
0
588
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, result)))) {
589
0
        FatalError("Error deserializing 'NPError'");
590
0
        return false;
591
0
    }
592
0
    // Sentinel = 'result'
593
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
594
0
        mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
595
0
        return false;
596
0
    }
597
0
    (reply__).EndRead(iter__, (reply__).type());
598
0
599
0
    return true;
600
0
}
601
602
auto PPluginInstanceParent::CallNPP_HandleEvent(
603
        const NPRemoteEvent& event,
604
        int16_t* handled) -> bool
605
0
{
606
0
    IPC::Message* msg__ = PPluginInstance::Msg_NPP_HandleEvent(Id());
607
0
608
0
    WriteIPDLParam(msg__, this, event);
609
0
    // Sentinel = 'event'
610
0
    (msg__)->WriteSentinel(82031261);
611
0
612
0
613
0
614
0
    Message reply__;
615
0
616
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
617
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
618
0
    }
619
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_HandleEvent", OTHER);
620
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
621
0
        mozilla::ipc::LogicError("Transition error");
622
0
    }
623
0
624
0
    bool sendok__;
625
0
    {
626
0
        AUTO_PROFILER_TRACING("IPC", "PPluginInstance::Msg_NPP_HandleEvent");
627
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
628
0
    }
629
0
    if ((!(sendok__))) {
630
0
        return false;
631
0
    }
632
0
633
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
634
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
635
0
    }
636
0
637
0
    PickleIterator iter__(reply__);
638
0
639
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, handled)))) {
640
0
        FatalError("Error deserializing 'int16_t'");
641
0
        return false;
642
0
    }
643
0
    // Sentinel = 'handled'
644
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2719705381)))) {
645
0
        mozilla::ipc::SentinelReadError("Error deserializing 'int16_t'");
646
0
        return false;
647
0
    }
648
0
    (reply__).EndRead(iter__, (reply__).type());
649
0
650
0
    return true;
651
0
}
652
653
auto PPluginInstanceParent::CallNPP_HandleEvent_Shmem(
654
        const NPRemoteEvent& event,
655
        Shmem& buffer,
656
        int16_t* handled,
657
        Shmem* rtnbuffer) -> bool
658
0
{
659
0
    IPC::Message* msg__ = PPluginInstance::Msg_NPP_HandleEvent_Shmem(Id());
660
0
661
0
    WriteIPDLParam(msg__, this, event);
662
0
    // Sentinel = 'event'
663
0
    (msg__)->WriteSentinel(82031261);
664
0
    WriteIPDLParam(msg__, this, buffer);
665
0
    // Sentinel = 'buffer'
666
0
    (msg__)->WriteSentinel(4093250504);
667
0
668
0
669
0
670
0
    Message reply__;
671
0
672
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
673
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
674
0
    }
675
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_HandleEvent_Shmem", OTHER);
676
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
677
0
        mozilla::ipc::LogicError("Transition error");
678
0
    }
679
0
680
0
    bool sendok__;
681
0
    {
682
0
        AUTO_PROFILER_TRACING("IPC", "PPluginInstance::Msg_NPP_HandleEvent_Shmem");
683
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
684
0
    }
685
0
    if ((!(sendok__))) {
686
0
        return false;
687
0
    }
688
0
689
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
690
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
691
0
    }
692
0
693
0
    PickleIterator iter__(reply__);
694
0
695
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, handled)))) {
696
0
        FatalError("Error deserializing 'int16_t'");
697
0
        return false;
698
0
    }
699
0
    // Sentinel = 'handled'
700
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2719705381)))) {
701
0
        mozilla::ipc::SentinelReadError("Error deserializing 'int16_t'");
702
0
        return false;
703
0
    }
704
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rtnbuffer)))) {
705
0
        FatalError("Error deserializing 'Shmem'");
706
0
        return false;
707
0
    }
708
0
    // Sentinel = 'rtnbuffer'
709
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 897586239)))) {
710
0
        mozilla::ipc::SentinelReadError("Error deserializing 'Shmem'");
711
0
        return false;
712
0
    }
713
0
    (reply__).EndRead(iter__, (reply__).type());
714
0
715
0
    return true;
716
0
}
717
718
auto PPluginInstanceParent::CallNPP_HandleEvent_IOSurface(
719
        const NPRemoteEvent& event,
720
        const uint32_t& surfaceid,
721
        int16_t* handled) -> bool
722
0
{
723
0
    IPC::Message* msg__ = PPluginInstance::Msg_NPP_HandleEvent_IOSurface(Id());
724
0
725
0
    WriteIPDLParam(msg__, this, event);
726
0
    // Sentinel = 'event'
727
0
    (msg__)->WriteSentinel(82031261);
728
0
    WriteIPDLParam(msg__, this, surfaceid);
729
0
    // Sentinel = 'surfaceid'
730
0
    (msg__)->WriteSentinel(4140848891);
731
0
732
0
733
0
734
0
    Message reply__;
735
0
736
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
737
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
738
0
    }
739
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_HandleEvent_IOSurface", OTHER);
740
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
741
0
        mozilla::ipc::LogicError("Transition error");
742
0
    }
743
0
744
0
    bool sendok__;
745
0
    {
746
0
        AUTO_PROFILER_TRACING("IPC", "PPluginInstance::Msg_NPP_HandleEvent_IOSurface");
747
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
748
0
    }
749
0
    if ((!(sendok__))) {
750
0
        return false;
751
0
    }
752
0
753
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
754
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
755
0
    }
756
0
757
0
    PickleIterator iter__(reply__);
758
0
759
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, handled)))) {
760
0
        FatalError("Error deserializing 'int16_t'");
761
0
        return false;
762
0
    }
763
0
    // Sentinel = 'handled'
764
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2719705381)))) {
765
0
        mozilla::ipc::SentinelReadError("Error deserializing 'int16_t'");
766
0
        return false;
767
0
    }
768
0
    (reply__).EndRead(iter__, (reply__).type());
769
0
770
0
    return true;
771
0
}
772
773
auto PPluginInstanceParent::CallPaint(
774
        const NPRemoteEvent& event,
775
        int16_t* handled) -> bool
776
0
{
777
0
    IPC::Message* msg__ = PPluginInstance::Msg_Paint(Id());
778
0
779
0
    WriteIPDLParam(msg__, this, event);
780
0
    // Sentinel = 'event'
781
0
    (msg__)->WriteSentinel(82031261);
782
0
783
0
784
0
785
0
    Message reply__;
786
0
787
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
788
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
789
0
    }
790
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_Paint", OTHER);
791
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
792
0
        mozilla::ipc::LogicError("Transition error");
793
0
    }
794
0
795
0
    bool sendok__;
796
0
    {
797
0
        AUTO_PROFILER_TRACING("IPC", "PPluginInstance::Msg_Paint");
798
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
799
0
    }
800
0
    if ((!(sendok__))) {
801
0
        return false;
802
0
    }
803
0
804
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
805
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
806
0
    }
807
0
808
0
    PickleIterator iter__(reply__);
809
0
810
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, handled)))) {
811
0
        FatalError("Error deserializing 'int16_t'");
812
0
        return false;
813
0
    }
814
0
    // Sentinel = 'handled'
815
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2719705381)))) {
816
0
        mozilla::ipc::SentinelReadError("Error deserializing 'int16_t'");
817
0
        return false;
818
0
    }
819
0
    (reply__).EndRead(iter__, (reply__).type());
820
0
821
0
    return true;
822
0
}
823
824
auto PPluginInstanceParent::SendWindowPosChanged(const NPRemoteEvent& event) -> bool
825
0
{
826
0
    IPC::Message* msg__ = PPluginInstance::Msg_WindowPosChanged(Id());
827
0
828
0
    WriteIPDLParam(msg__, this, event);
829
0
    // Sentinel = 'event'
830
0
    (msg__)->WriteSentinel(82031261);
831
0
832
0
833
0
834
0
835
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
836
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
837
0
    }
838
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_WindowPosChanged", OTHER);
839
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
840
0
        mozilla::ipc::LogicError("Transition error");
841
0
    }
842
0
843
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
844
0
    return sendok__;
845
0
}
846
847
auto PPluginInstanceParent::SendContentsScaleFactorChanged(const double& aContentsScaleFactor) -> bool
848
0
{
849
0
    IPC::Message* msg__ = PPluginInstance::Msg_ContentsScaleFactorChanged(Id());
850
0
851
0
    WriteIPDLParam(msg__, this, aContentsScaleFactor);
852
0
    // Sentinel = 'aContentsScaleFactor'
853
0
    (msg__)->WriteSentinel(1819511578);
854
0
855
0
856
0
857
0
858
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
859
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
860
0
    }
861
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_ContentsScaleFactorChanged", OTHER);
862
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
863
0
        mozilla::ipc::LogicError("Transition error");
864
0
    }
865
0
866
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
867
0
    return sendok__;
868
0
}
869
870
auto PPluginInstanceParent::SendAsyncSetWindow(
871
        const gfxSurfaceType& surfaceType,
872
        const NPRemoteWindow& window) -> bool
873
0
{
874
0
    IPC::Message* msg__ = PPluginInstance::Msg_AsyncSetWindow(Id());
875
0
876
0
    WriteIPDLParam(msg__, this, surfaceType);
877
0
    // Sentinel = 'surfaceType'
878
0
    (msg__)->WriteSentinel(3661328778);
879
0
    WriteIPDLParam(msg__, this, window);
880
0
    // Sentinel = 'window'
881
0
    (msg__)->WriteSentinel(3032525362);
882
0
883
0
884
0
885
0
886
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
887
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
888
0
    }
889
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_AsyncSetWindow", OTHER);
890
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
891
0
        mozilla::ipc::LogicError("Transition error");
892
0
    }
893
0
894
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
895
0
    return sendok__;
896
0
}
897
898
auto PPluginInstanceParent::SendUpdateBackground(
899
        const SurfaceDescriptor& background,
900
        const nsIntRect& rect) -> bool
901
0
{
902
0
    IPC::Message* msg__ = PPluginInstance::Msg_UpdateBackground(Id());
903
0
904
0
    WriteIPDLParam(msg__, this, background);
905
0
    // Sentinel = 'background'
906
0
    (msg__)->WriteSentinel(2183382614);
907
0
    WriteIPDLParam(msg__, this, rect);
908
0
    // Sentinel = 'rect'
909
0
    (msg__)->WriteSentinel(438776542);
910
0
911
0
912
0
913
0
914
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
915
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
916
0
    }
917
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_UpdateBackground", OTHER);
918
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
919
0
        mozilla::ipc::LogicError("Transition error");
920
0
    }
921
0
922
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
923
0
    return sendok__;
924
0
}
925
926
auto PPluginInstanceParent::SendNPP_DidComposite() -> bool
927
0
{
928
0
    IPC::Message* msg__ = PPluginInstance::Msg_NPP_DidComposite(Id());
929
0
930
0
931
0
932
0
933
0
934
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
935
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
936
0
    }
937
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_DidComposite", OTHER);
938
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
939
0
        mozilla::ipc::LogicError("Transition error");
940
0
    }
941
0
942
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
943
0
    return sendok__;
944
0
}
945
946
auto PPluginInstanceParent::CallNPP_Destroy(NPError* rv) -> bool
947
0
{
948
0
    IPC::Message* msg__ = PPluginInstance::Msg_NPP_Destroy(Id());
949
0
950
0
951
0
952
0
953
0
    Message reply__;
954
0
955
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
956
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
957
0
    }
958
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_Destroy", OTHER);
959
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
960
0
        mozilla::ipc::LogicError("Transition error");
961
0
    }
962
0
963
0
    bool sendok__;
964
0
    {
965
0
        AUTO_PROFILER_TRACING("IPC", "PPluginInstance::Msg_NPP_Destroy");
966
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
967
0
    }
968
0
    if ((!(sendok__))) {
969
0
        return false;
970
0
    }
971
0
972
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
973
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
974
0
    }
975
0
976
0
    PickleIterator iter__(reply__);
977
0
978
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rv)))) {
979
0
        FatalError("Error deserializing 'NPError'");
980
0
        return false;
981
0
    }
982
0
    // Sentinel = 'rv'
983
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481058)))) {
984
0
        mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
985
0
        return false;
986
0
    }
987
0
    (reply__).EndRead(iter__, (reply__).type());
988
0
989
0
    return true;
990
0
}
991
992
auto PPluginInstanceParent::SendHandledWindowedPluginKeyEvent(
993
        const NativeEventData& aKeyEventData,
994
        const bool& aIsConsumed) -> bool
995
0
{
996
0
    IPC::Message* msg__ = PPluginInstance::Msg_HandledWindowedPluginKeyEvent(Id());
997
0
998
0
    WriteIPDLParam(msg__, this, aKeyEventData);
999
0
    // Sentinel = 'aKeyEventData'
1000
0
    (msg__)->WriteSentinel(1896682639);
1001
0
    WriteIPDLParam(msg__, this, aIsConsumed);
1002
0
    // Sentinel = 'aIsConsumed'
1003
0
    (msg__)->WriteSentinel(95020648);
1004
0
1005
0
1006
0
1007
0
1008
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1009
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1010
0
    }
1011
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_HandledWindowedPluginKeyEvent", OTHER);
1012
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1013
0
        mozilla::ipc::LogicError("Transition error");
1014
0
    }
1015
0
1016
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1017
0
    return sendok__;
1018
0
}
1019
1020
auto PPluginInstanceParent::SendPPluginScriptableObjectConstructor() -> PPluginScriptableObjectParent*
1021
0
{
1022
0
    return SendPPluginScriptableObjectConstructor(AllocPPluginScriptableObjectParent());
1023
0
}
1024
1025
auto PPluginInstanceParent::SendPPluginScriptableObjectConstructor(PPluginScriptableObjectParent* actor) -> PPluginScriptableObjectParent*
1026
0
{
1027
0
    if ((!(actor))) {
1028
0
        NS_WARNING("Error constructing actor PPluginScriptableObjectParent");
1029
0
        return nullptr;
1030
0
    }
1031
0
    (actor)->SetManagerAndRegister(this);
1032
0
    (mManagedPPluginScriptableObjectParent).PutEntry(actor);
1033
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1034
0
1035
0
    IPC::Message* msg__ = PPluginInstance::Msg_PPluginScriptableObjectConstructor(Id());
1036
0
1037
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
1038
0
    WriteIPDLParam(msg__, this, actor);
1039
0
    // Sentinel = 'actor'
1040
0
    (msg__)->WriteSentinel(875202478);
1041
0
1042
0
1043
0
1044
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1045
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1046
0
    }
1047
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_PPluginScriptableObjectConstructor", OTHER);
1048
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1049
0
        mozilla::ipc::LogicError("Transition error");
1050
0
    }
1051
0
1052
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1053
0
    if ((!(sendok__))) {
1054
0
        IProtocol* mgr = (actor)->Manager();
1055
0
        (actor)->DestroySubtree(FailedConstructor);
1056
0
        (actor)->DeallocSubtree();
1057
0
        (mgr)->RemoveManagee(PPluginScriptableObjectMsgStart, actor);
1058
0
        return nullptr;
1059
0
    }
1060
0
    return actor;
1061
0
}
1062
1063
auto PPluginInstanceParent::SendPBrowserStreamConstructor(
1064
        const nsCString& url,
1065
        const uint32_t& length,
1066
        const uint32_t& lastmodified,
1067
        PStreamNotifyParent* notifyData,
1068
        const nsCString& headers) -> PBrowserStreamParent*
1069
0
{
1070
0
    return SendPBrowserStreamConstructor(AllocPBrowserStreamParent(url, length, lastmodified, notifyData, headers), url, length, lastmodified, notifyData, headers);
1071
0
}
1072
1073
auto PPluginInstanceParent::SendPBrowserStreamConstructor(
1074
        PBrowserStreamParent* actor,
1075
        const nsCString& url,
1076
        const uint32_t& length,
1077
        const uint32_t& lastmodified,
1078
        PStreamNotifyParent* notifyData,
1079
        const nsCString& headers) -> PBrowserStreamParent*
1080
0
{
1081
0
    if ((!(actor))) {
1082
0
        NS_WARNING("Error constructing actor PBrowserStreamParent");
1083
0
        return nullptr;
1084
0
    }
1085
0
    (actor)->SetManagerAndRegister(this);
1086
0
    (mManagedPBrowserStreamParent).PutEntry(actor);
1087
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1088
0
1089
0
    IPC::Message* msg__ = PPluginInstance::Msg_PBrowserStreamConstructor(Id());
1090
0
1091
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
1092
0
    WriteIPDLParam(msg__, this, actor);
1093
0
    // Sentinel = 'actor'
1094
0
    (msg__)->WriteSentinel(875202478);
1095
0
    WriteIPDLParam(msg__, this, url);
1096
0
    // Sentinel = 'url'
1097
0
    (msg__)->WriteSentinel(1453210600);
1098
0
    WriteIPDLParam(msg__, this, length);
1099
0
    // Sentinel = 'length'
1100
0
    (msg__)->WriteSentinel(1726618354);
1101
0
    WriteIPDLParam(msg__, this, lastmodified);
1102
0
    // Sentinel = 'lastmodified'
1103
0
    (msg__)->WriteSentinel(1981870025);
1104
0
    WriteIPDLParam(msg__, this, notifyData);
1105
0
    // Sentinel = 'notifyData'
1106
0
    (msg__)->WriteSentinel(3287139017);
1107
0
    WriteIPDLParam(msg__, this, headers);
1108
0
    // Sentinel = 'headers'
1109
0
    (msg__)->WriteSentinel(4284175217);
1110
0
1111
0
1112
0
1113
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1114
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1115
0
    }
1116
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_PBrowserStreamConstructor", OTHER);
1117
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1118
0
        mozilla::ipc::LogicError("Transition error");
1119
0
    }
1120
0
1121
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1122
0
    if ((!(sendok__))) {
1123
0
        IProtocol* mgr = (actor)->Manager();
1124
0
        (actor)->DestroySubtree(FailedConstructor);
1125
0
        (actor)->DeallocSubtree();
1126
0
        (mgr)->RemoveManagee(PBrowserStreamMsgStart, actor);
1127
0
        return nullptr;
1128
0
    }
1129
0
    return actor;
1130
0
}
1131
1132
auto PPluginInstanceParent::CallNPP_NewStream(
1133
        PBrowserStreamParent* actor,
1134
        const nsCString& mimeType,
1135
        const bool& seekable,
1136
        NPError* rv,
1137
        uint16_t* stype) -> bool
1138
0
{
1139
0
    IPC::Message* msg__ = PPluginInstance::Msg_NPP_NewStream(Id());
1140
0
1141
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
1142
0
    WriteIPDLParam(msg__, this, actor);
1143
0
    // Sentinel = 'actor'
1144
0
    (msg__)->WriteSentinel(875202478);
1145
0
    WriteIPDLParam(msg__, this, mimeType);
1146
0
    // Sentinel = 'mimeType'
1147
0
    (msg__)->WriteSentinel(2412217216);
1148
0
    WriteIPDLParam(msg__, this, seekable);
1149
0
    // Sentinel = 'seekable'
1150
0
    (msg__)->WriteSentinel(2767438168);
1151
0
1152
0
1153
0
1154
0
    Message reply__;
1155
0
1156
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1157
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1158
0
    }
1159
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_NewStream", OTHER);
1160
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1161
0
        mozilla::ipc::LogicError("Transition error");
1162
0
    }
1163
0
1164
0
    bool sendok__;
1165
0
    {
1166
0
        AUTO_PROFILER_TRACING("IPC", "PPluginInstance::Msg_NPP_NewStream");
1167
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
1168
0
    }
1169
0
    if ((!(sendok__))) {
1170
0
        return false;
1171
0
    }
1172
0
1173
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1174
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1175
0
    }
1176
0
1177
0
    PickleIterator iter__(reply__);
1178
0
1179
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rv)))) {
1180
0
        FatalError("Error deserializing 'NPError'");
1181
0
        return false;
1182
0
    }
1183
0
    // Sentinel = 'rv'
1184
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481058)))) {
1185
0
        mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
1186
0
        return false;
1187
0
    }
1188
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, stype)))) {
1189
0
        FatalError("Error deserializing 'uint16_t'");
1190
0
        return false;
1191
0
    }
1192
0
    // Sentinel = 'stype'
1193
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1829394302)))) {
1194
0
        mozilla::ipc::SentinelReadError("Error deserializing 'uint16_t'");
1195
0
        return false;
1196
0
    }
1197
0
    (reply__).EndRead(iter__, (reply__).type());
1198
0
1199
0
    return true;
1200
0
}
1201
1202
auto PPluginInstanceParent::CallSetPluginFocus() -> bool
1203
0
{
1204
0
    IPC::Message* msg__ = PPluginInstance::Msg_SetPluginFocus(Id());
1205
0
1206
0
1207
0
1208
0
1209
0
    Message reply__;
1210
0
1211
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1212
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1213
0
    }
1214
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_SetPluginFocus", OTHER);
1215
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1216
0
        mozilla::ipc::LogicError("Transition error");
1217
0
    }
1218
0
1219
0
    bool sendok__;
1220
0
    {
1221
0
        AUTO_PROFILER_TRACING("IPC", "PPluginInstance::Msg_SetPluginFocus");
1222
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
1223
0
    }
1224
0
    if ((!(sendok__))) {
1225
0
        return false;
1226
0
    }
1227
0
1228
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1229
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1230
0
    }
1231
0
1232
0
    return true;
1233
0
}
1234
1235
auto PPluginInstanceParent::CallUpdateWindow() -> bool
1236
0
{
1237
0
    IPC::Message* msg__ = PPluginInstance::Msg_UpdateWindow(Id());
1238
0
1239
0
1240
0
1241
0
1242
0
    Message reply__;
1243
0
1244
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1245
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1246
0
    }
1247
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_UpdateWindow", OTHER);
1248
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1249
0
        mozilla::ipc::LogicError("Transition error");
1250
0
    }
1251
0
1252
0
    bool sendok__;
1253
0
    {
1254
0
        AUTO_PROFILER_TRACING("IPC", "PPluginInstance::Msg_UpdateWindow");
1255
0
        sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
1256
0
    }
1257
0
    if ((!(sendok__))) {
1258
0
        return false;
1259
0
    }
1260
0
1261
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1262
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1263
0
    }
1264
0
1265
0
    return true;
1266
0
}
1267
1268
auto PPluginInstanceParent::SendPPluginBackgroundDestroyerConstructor() -> PPluginBackgroundDestroyerParent*
1269
0
{
1270
0
    return SendPPluginBackgroundDestroyerConstructor(AllocPPluginBackgroundDestroyerParent());
1271
0
}
1272
1273
auto PPluginInstanceParent::SendPPluginBackgroundDestroyerConstructor(PPluginBackgroundDestroyerParent* actor) -> PPluginBackgroundDestroyerParent*
1274
0
{
1275
0
    if ((!(actor))) {
1276
0
        NS_WARNING("Error constructing actor PPluginBackgroundDestroyerParent");
1277
0
        return nullptr;
1278
0
    }
1279
0
    (actor)->SetManagerAndRegister(this);
1280
0
    (mManagedPPluginBackgroundDestroyerParent).PutEntry(actor);
1281
0
    (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1282
0
1283
0
    IPC::Message* msg__ = PPluginInstance::Msg_PPluginBackgroundDestroyerConstructor(Id());
1284
0
1285
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
1286
0
    WriteIPDLParam(msg__, this, actor);
1287
0
    // Sentinel = 'actor'
1288
0
    (msg__)->WriteSentinel(875202478);
1289
0
1290
0
1291
0
1292
0
    if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1293
0
        mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1294
0
    }
1295
0
    AUTO_PROFILER_LABEL("PPluginInstance::Msg_PPluginBackgroundDestroyerConstructor", OTHER);
1296
0
    if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1297
0
        mozilla::ipc::LogicError("Transition error");
1298
0
    }
1299
0
1300
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
1301
0
    if ((!(sendok__))) {
1302
0
        IProtocol* mgr = (actor)->Manager();
1303
0
        (actor)->DestroySubtree(FailedConstructor);
1304
0
        (actor)->DeallocSubtree();
1305
0
        (mgr)->RemoveManagee(PPluginBackgroundDestroyerMsgStart, actor);
1306
0
        return nullptr;
1307
0
    }
1308
0
    return actor;
1309
0
}
1310
1311
auto PPluginInstanceParent::RemoveManagee(
1312
        int32_t aProtocolId,
1313
        IProtocol* aListener) -> void
1314
0
{
1315
0
    switch (aProtocolId) {
1316
0
    case PPluginBackgroundDestroyerMsgStart:
1317
0
        {
1318
0
            PPluginBackgroundDestroyerParent* actor = static_cast<PPluginBackgroundDestroyerParent*>(aListener);
1319
0
            auto& container = mManagedPPluginBackgroundDestroyerParent;
1320
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1321
0
1322
0
            (container).RemoveEntry(actor);
1323
0
            DeallocPPluginBackgroundDestroyerParent(actor);
1324
0
            return;
1325
0
        }
1326
0
    case PPluginScriptableObjectMsgStart:
1327
0
        {
1328
0
            PPluginScriptableObjectParent* actor = static_cast<PPluginScriptableObjectParent*>(aListener);
1329
0
            auto& container = mManagedPPluginScriptableObjectParent;
1330
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1331
0
1332
0
            (container).RemoveEntry(actor);
1333
0
            DeallocPPluginScriptableObjectParent(actor);
1334
0
            return;
1335
0
        }
1336
0
    case PBrowserStreamMsgStart:
1337
0
        {
1338
0
            PBrowserStreamParent* actor = static_cast<PBrowserStreamParent*>(aListener);
1339
0
            auto& container = mManagedPBrowserStreamParent;
1340
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1341
0
1342
0
            (container).RemoveEntry(actor);
1343
0
            DeallocPBrowserStreamParent(actor);
1344
0
            return;
1345
0
        }
1346
0
    case PStreamNotifyMsgStart:
1347
0
        {
1348
0
            PStreamNotifyParent* actor = static_cast<PStreamNotifyParent*>(aListener);
1349
0
            auto& container = mManagedPStreamNotifyParent;
1350
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1351
0
1352
0
            (container).RemoveEntry(actor);
1353
0
            DeallocPStreamNotifyParent(actor);
1354
0
            return;
1355
0
        }
1356
0
    case PPluginSurfaceMsgStart:
1357
0
        {
1358
0
            PPluginSurfaceParent* actor = static_cast<PPluginSurfaceParent*>(aListener);
1359
0
            auto& container = mManagedPPluginSurfaceParent;
1360
0
            MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
1361
0
1362
0
            (container).RemoveEntry(actor);
1363
0
            DeallocPPluginSurfaceParent(actor);
1364
0
            return;
1365
0
        }
1366
0
    default:
1367
0
        {
1368
0
            FatalError("unreached");
1369
0
            return;
1370
0
        }
1371
0
    }
1372
0
}
1373
1374
auto PPluginInstanceParent::OnMessageReceived(const Message& msg__) -> PPluginInstanceParent::Result
1375
0
{
1376
0
    if (((mLivenessState) == (mozilla::ipc::ReEntrantDeleteLivenessState::Dying)) && ((((msg__).is_reply()) != (true)) || (((msg__).is_interrupt()) != (true)))) {
1377
0
        FatalError("incoming message racing with actor deletion");
1378
0
        return MsgProcessed;
1379
0
    }
1380
0
    switch ((msg__).type()) {
1381
0
    case PPluginInstance::Msg_NPN_InvalidateRect__ID:
1382
0
        {
1383
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1384
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1385
0
            }
1386
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_InvalidateRect", OTHER);
1387
0
1388
0
            PickleIterator iter__(msg__);
1389
0
            NPRect rect;
1390
0
1391
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(rect)))))) {
1392
0
                FatalError("Error deserializing 'NPRect'");
1393
0
                return MsgValueError;
1394
0
            }
1395
0
            // Sentinel = 'rect'
1396
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 438776542)))) {
1397
0
                mozilla::ipc::SentinelReadError("Error deserializing 'NPRect'");
1398
0
                return MsgValueError;
1399
0
            }
1400
0
            (msg__).EndRead(iter__, (msg__).type());
1401
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1402
0
                FatalError("Transition error");
1403
0
                return MsgValueError;
1404
0
            }
1405
0
            if ((!(RecvNPN_InvalidateRect(rect)))) {
1406
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1407
0
                // Error handled in mozilla::ipc::IPCResult
1408
0
                return MsgProcessingError;
1409
0
            }
1410
0
1411
0
            return MsgProcessed;
1412
0
        }
1413
0
    case PPluginInstance::Msg_PPluginSurfaceConstructor__ID:
1414
0
        {
1415
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1416
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1417
0
            }
1418
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_PPluginSurfaceConstructor", OTHER);
1419
0
1420
0
            PickleIterator iter__(msg__);
1421
0
            ActorHandle handle__;
1422
0
            PPluginSurfaceParent* actor;
1423
0
            WindowsSharedMemoryHandle handle;
1424
0
            IntSize size;
1425
0
            bool transparent;
1426
0
1427
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1428
0
                FatalError("Error deserializing 'ActorHandle'");
1429
0
                return MsgValueError;
1430
0
            }
1431
0
            // Sentinel = 'actor'
1432
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1433
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1434
0
                return MsgValueError;
1435
0
            }
1436
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle)))))) {
1437
0
                FatalError("Error deserializing 'WindowsSharedMemoryHandle'");
1438
0
                return MsgValueError;
1439
0
            }
1440
0
            // Sentinel = 'handle'
1441
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 453975108)))) {
1442
0
                mozilla::ipc::SentinelReadError("Error deserializing 'WindowsSharedMemoryHandle'");
1443
0
                return MsgValueError;
1444
0
            }
1445
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(size)))))) {
1446
0
                FatalError("Error deserializing 'IntSize'");
1447
0
                return MsgValueError;
1448
0
            }
1449
0
            // Sentinel = 'size'
1450
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 931048223)))) {
1451
0
                mozilla::ipc::SentinelReadError("Error deserializing 'IntSize'");
1452
0
                return MsgValueError;
1453
0
            }
1454
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(transparent)))))) {
1455
0
                FatalError("Error deserializing 'bool'");
1456
0
                return MsgValueError;
1457
0
            }
1458
0
            // Sentinel = 'transparent'
1459
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 542087773)))) {
1460
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
1461
0
                return MsgValueError;
1462
0
            }
1463
0
            (msg__).EndRead(iter__, (msg__).type());
1464
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1465
0
                FatalError("Transition error");
1466
0
                return MsgValueError;
1467
0
            }
1468
0
            actor = AllocPPluginSurfaceParent(handle, size, transparent);
1469
0
            if ((!(actor))) {
1470
0
                NS_WARNING("Error constructing actor PPluginSurfaceParent");
1471
0
                return MsgValueError;
1472
0
            }
1473
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1474
0
            (mManagedPPluginSurfaceParent).PutEntry(actor);
1475
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1476
0
1477
0
            if ((!(RecvPPluginSurfaceConstructor(actor, handle, size, transparent)))) {
1478
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1479
0
                // Error handled in mozilla::ipc::IPCResult
1480
0
                return MsgProcessingError;
1481
0
            }
1482
0
1483
0
            return MsgProcessed;
1484
0
        }
1485
0
    case PPluginInstance::Msg_RedrawPlugin__ID:
1486
0
        {
1487
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1488
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1489
0
            }
1490
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_RedrawPlugin", OTHER);
1491
0
1492
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1493
0
                FatalError("Transition error");
1494
0
                return MsgValueError;
1495
0
            }
1496
0
            if ((!(RecvRedrawPlugin()))) {
1497
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1498
0
                // Error handled in mozilla::ipc::IPCResult
1499
0
                return MsgProcessingError;
1500
0
            }
1501
0
1502
0
            return MsgProcessed;
1503
0
        }
1504
0
    case PPluginInstance::Msg_SetNetscapeWindowAsParent__ID:
1505
0
        {
1506
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1507
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1508
0
            }
1509
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_SetNetscapeWindowAsParent", OTHER);
1510
0
1511
0
            PickleIterator iter__(msg__);
1512
0
            NativeWindowHandle childWindow;
1513
0
1514
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(childWindow)))))) {
1515
0
                FatalError("Error deserializing 'NativeWindowHandle'");
1516
0
                return MsgValueError;
1517
0
            }
1518
0
            // Sentinel = 'childWindow'
1519
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2307824933)))) {
1520
0
                mozilla::ipc::SentinelReadError("Error deserializing 'NativeWindowHandle'");
1521
0
                return MsgValueError;
1522
0
            }
1523
0
            (msg__).EndRead(iter__, (msg__).type());
1524
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1525
0
                FatalError("Transition error");
1526
0
                return MsgValueError;
1527
0
            }
1528
0
            if ((!(RecvSetNetscapeWindowAsParent(childWindow)))) {
1529
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1530
0
                // Error handled in mozilla::ipc::IPCResult
1531
0
                return MsgProcessingError;
1532
0
            }
1533
0
1534
0
            return MsgProcessed;
1535
0
        }
1536
0
    case PPluginInstance::Msg_SetCandidateWindow__ID:
1537
0
        {
1538
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1539
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1540
0
            }
1541
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_SetCandidateWindow", OTHER);
1542
0
1543
0
            PickleIterator iter__(msg__);
1544
0
            CandidateWindowPosition aPosition;
1545
0
1546
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPosition)))))) {
1547
0
                FatalError("Error deserializing 'CandidateWindowPosition'");
1548
0
                return MsgValueError;
1549
0
            }
1550
0
            // Sentinel = 'aPosition'
1551
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2753958473)))) {
1552
0
                mozilla::ipc::SentinelReadError("Error deserializing 'CandidateWindowPosition'");
1553
0
                return MsgValueError;
1554
0
            }
1555
0
            (msg__).EndRead(iter__, (msg__).type());
1556
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1557
0
                FatalError("Transition error");
1558
0
                return MsgValueError;
1559
0
            }
1560
0
            if ((!(RecvSetCandidateWindow(aPosition)))) {
1561
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1562
0
                // Error handled in mozilla::ipc::IPCResult
1563
0
                return MsgProcessingError;
1564
0
            }
1565
0
1566
0
            return MsgProcessed;
1567
0
        }
1568
0
    case PPluginInstance::Msg_RequestCommitOrCancel__ID:
1569
0
        {
1570
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1571
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1572
0
            }
1573
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_RequestCommitOrCancel", OTHER);
1574
0
1575
0
            PickleIterator iter__(msg__);
1576
0
            bool aCommitted;
1577
0
1578
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCommitted)))))) {
1579
0
                FatalError("Error deserializing 'bool'");
1580
0
                return MsgValueError;
1581
0
            }
1582
0
            // Sentinel = 'aCommitted'
1583
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2171170435)))) {
1584
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
1585
0
                return MsgValueError;
1586
0
            }
1587
0
            (msg__).EndRead(iter__, (msg__).type());
1588
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1589
0
                FatalError("Transition error");
1590
0
                return MsgValueError;
1591
0
            }
1592
0
            if ((!(RecvRequestCommitOrCancel(aCommitted)))) {
1593
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1594
0
                // Error handled in mozilla::ipc::IPCResult
1595
0
                return MsgProcessingError;
1596
0
            }
1597
0
1598
0
            return MsgProcessed;
1599
0
        }
1600
0
    case PPluginInstance::Msg_EnableIME__ID:
1601
0
        {
1602
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1603
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1604
0
            }
1605
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_EnableIME", OTHER);
1606
0
1607
0
            PickleIterator iter__(msg__);
1608
0
            bool aEnable;
1609
0
1610
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEnable)))))) {
1611
0
                FatalError("Error deserializing 'bool'");
1612
0
                return MsgValueError;
1613
0
            }
1614
0
            // Sentinel = 'aEnable'
1615
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 163837555)))) {
1616
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
1617
0
                return MsgValueError;
1618
0
            }
1619
0
            (msg__).EndRead(iter__, (msg__).type());
1620
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1621
0
                FatalError("Transition error");
1622
0
                return MsgValueError;
1623
0
            }
1624
0
            if ((!(RecvEnableIME(aEnable)))) {
1625
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1626
0
                // Error handled in mozilla::ipc::IPCResult
1627
0
                return MsgProcessingError;
1628
0
            }
1629
0
1630
0
            return MsgProcessed;
1631
0
        }
1632
0
    case PPluginInstance::Msg_OnWindowedPluginKeyEvent__ID:
1633
0
        {
1634
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1635
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1636
0
            }
1637
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_OnWindowedPluginKeyEvent", OTHER);
1638
0
1639
0
            PickleIterator iter__(msg__);
1640
0
            NativeEventData aKeyEventData;
1641
0
1642
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aKeyEventData)))))) {
1643
0
                FatalError("Error deserializing 'NativeEventData'");
1644
0
                return MsgValueError;
1645
0
            }
1646
0
            // Sentinel = 'aKeyEventData'
1647
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1896682639)))) {
1648
0
                mozilla::ipc::SentinelReadError("Error deserializing 'NativeEventData'");
1649
0
                return MsgValueError;
1650
0
            }
1651
0
            (msg__).EndRead(iter__, (msg__).type());
1652
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1653
0
                FatalError("Transition error");
1654
0
                return MsgValueError;
1655
0
            }
1656
0
            if ((!(RecvOnWindowedPluginKeyEvent(aKeyEventData)))) {
1657
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1658
0
                // Error handled in mozilla::ipc::IPCResult
1659
0
                return MsgProcessingError;
1660
0
            }
1661
0
1662
0
            return MsgProcessed;
1663
0
        }
1664
0
    case PPluginInstance::Reply_PPluginScriptableObjectConstructor__ID:
1665
0
        {
1666
0
            return MsgProcessed;
1667
0
        }
1668
0
    case PPluginInstance::Msg_PPluginScriptableObjectConstructor__ID:
1669
0
        {
1670
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1671
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1672
0
            }
1673
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_PPluginScriptableObjectConstructor", OTHER);
1674
0
1675
0
            PickleIterator iter__(msg__);
1676
0
            ActorHandle handle__;
1677
0
            PPluginScriptableObjectParent* actor;
1678
0
1679
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
1680
0
                FatalError("Error deserializing 'ActorHandle'");
1681
0
                return MsgValueError;
1682
0
            }
1683
0
            // Sentinel = 'actor'
1684
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1685
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
1686
0
                return MsgValueError;
1687
0
            }
1688
0
            (msg__).EndRead(iter__, (msg__).type());
1689
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1690
0
                FatalError("Transition error");
1691
0
                return MsgValueError;
1692
0
            }
1693
0
            actor = AllocPPluginScriptableObjectParent();
1694
0
            if ((!(actor))) {
1695
0
                NS_WARNING("Error constructing actor PPluginScriptableObjectParent");
1696
0
                return MsgValueError;
1697
0
            }
1698
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
1699
0
            (mManagedPPluginScriptableObjectParent).PutEntry(actor);
1700
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
1701
0
1702
0
            if ((!(RecvPPluginScriptableObjectConstructor(actor)))) {
1703
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1704
0
                // Error handled in mozilla::ipc::IPCResult
1705
0
                return MsgProcessingError;
1706
0
            }
1707
0
1708
0
            return MsgProcessed;
1709
0
        }
1710
0
    case PPluginInstance::Reply_PBrowserStreamConstructor__ID:
1711
0
        {
1712
0
            return MsgProcessed;
1713
0
        }
1714
0
    case PPluginInstance::Reply_PPluginBackgroundDestroyerConstructor__ID:
1715
0
        {
1716
0
            return MsgProcessed;
1717
0
        }
1718
0
    default:
1719
0
        {
1720
0
            return MsgNotKnown;
1721
0
        }
1722
0
    }
1723
0
}
1724
1725
auto PPluginInstanceParent::OnMessageReceived(
1726
        const Message& msg__,
1727
        Message*& reply__) -> PPluginInstanceParent::Result
1728
0
{
1729
0
    if (((mLivenessState) == (mozilla::ipc::ReEntrantDeleteLivenessState::Dying)) && ((((msg__).is_reply()) != (true)) || (((msg__).is_interrupt()) != (true)))) {
1730
0
        FatalError("incoming message racing with actor deletion");
1731
0
        return MsgProcessed;
1732
0
    }
1733
0
    switch ((msg__).type()) {
1734
0
    case PPluginInstance::Msg_RevokeCurrentDirectSurface__ID:
1735
0
        {
1736
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1737
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1738
0
            }
1739
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_RevokeCurrentDirectSurface", OTHER);
1740
0
1741
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1742
0
                FatalError("Transition error");
1743
0
                return MsgValueError;
1744
0
            }
1745
0
            int32_t id__ = Id();
1746
0
            if ((!(RecvRevokeCurrentDirectSurface()))) {
1747
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1748
0
                // Error handled in mozilla::ipc::IPCResult
1749
0
                return MsgProcessingError;
1750
0
            }
1751
0
1752
0
            reply__ = PPluginInstance::Reply_RevokeCurrentDirectSurface(id__);
1753
0
1754
0
1755
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1756
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1757
0
            }
1758
0
            return MsgProcessed;
1759
0
        }
1760
0
    case PPluginInstance::Msg_InitDXGISurface__ID:
1761
0
        {
1762
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1763
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1764
0
            }
1765
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_InitDXGISurface", OTHER);
1766
0
1767
0
            PickleIterator iter__(msg__);
1768
0
            SurfaceFormat format;
1769
0
            IntSize size;
1770
0
1771
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(format)))))) {
1772
0
                FatalError("Error deserializing 'SurfaceFormat'");
1773
0
                return MsgValueError;
1774
0
            }
1775
0
            // Sentinel = 'format'
1776
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2052265543)))) {
1777
0
                mozilla::ipc::SentinelReadError("Error deserializing 'SurfaceFormat'");
1778
0
                return MsgValueError;
1779
0
            }
1780
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(size)))))) {
1781
0
                FatalError("Error deserializing 'IntSize'");
1782
0
                return MsgValueError;
1783
0
            }
1784
0
            // Sentinel = 'size'
1785
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 931048223)))) {
1786
0
                mozilla::ipc::SentinelReadError("Error deserializing 'IntSize'");
1787
0
                return MsgValueError;
1788
0
            }
1789
0
            (msg__).EndRead(iter__, (msg__).type());
1790
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1791
0
                FatalError("Transition error");
1792
0
                return MsgValueError;
1793
0
            }
1794
0
            int32_t id__ = Id();
1795
0
            WindowsHandle handle;
1796
0
            NPError result;
1797
0
            if ((!(RecvInitDXGISurface(format, size, (&(handle)), (&(result)))))) {
1798
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1799
0
                // Error handled in mozilla::ipc::IPCResult
1800
0
                return MsgProcessingError;
1801
0
            }
1802
0
1803
0
            reply__ = PPluginInstance::Reply_InitDXGISurface(id__);
1804
0
1805
0
            WriteIPDLParam(reply__, this, handle);
1806
0
            // Sentinel = 'handle'
1807
0
            (reply__)->WriteSentinel(453975108);
1808
0
            WriteIPDLParam(reply__, this, result);
1809
0
            // Sentinel = 'result'
1810
0
            (reply__)->WriteSentinel(3991766165);
1811
0
1812
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1813
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1814
0
            }
1815
0
            return MsgProcessed;
1816
0
        }
1817
0
    case PPluginInstance::Msg_FinalizeDXGISurface__ID:
1818
0
        {
1819
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1820
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1821
0
            }
1822
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_FinalizeDXGISurface", OTHER);
1823
0
1824
0
            PickleIterator iter__(msg__);
1825
0
            WindowsHandle handle;
1826
0
1827
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle)))))) {
1828
0
                FatalError("Error deserializing 'WindowsHandle'");
1829
0
                return MsgValueError;
1830
0
            }
1831
0
            // Sentinel = 'handle'
1832
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 453975108)))) {
1833
0
                mozilla::ipc::SentinelReadError("Error deserializing 'WindowsHandle'");
1834
0
                return MsgValueError;
1835
0
            }
1836
0
            (msg__).EndRead(iter__, (msg__).type());
1837
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1838
0
                FatalError("Transition error");
1839
0
                return MsgValueError;
1840
0
            }
1841
0
            int32_t id__ = Id();
1842
0
            if ((!(RecvFinalizeDXGISurface(handle)))) {
1843
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1844
0
                // Error handled in mozilla::ipc::IPCResult
1845
0
                return MsgProcessingError;
1846
0
            }
1847
0
1848
0
            reply__ = PPluginInstance::Reply_FinalizeDXGISurface(id__);
1849
0
1850
0
1851
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1852
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1853
0
            }
1854
0
            return MsgProcessed;
1855
0
        }
1856
0
    case PPluginInstance::Msg_ShowDirectBitmap__ID:
1857
0
        {
1858
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1859
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1860
0
            }
1861
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_ShowDirectBitmap", OTHER);
1862
0
1863
0
            PickleIterator iter__(msg__);
1864
0
            Shmem buffer;
1865
0
            SurfaceFormat format;
1866
0
            uint32_t stride;
1867
0
            IntSize size;
1868
0
            IntRect dirty;
1869
0
1870
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(buffer)))))) {
1871
0
                FatalError("Error deserializing 'Shmem'");
1872
0
                return MsgValueError;
1873
0
            }
1874
0
            // Sentinel = 'buffer'
1875
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4093250504)))) {
1876
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Shmem'");
1877
0
                return MsgValueError;
1878
0
            }
1879
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(format)))))) {
1880
0
                FatalError("Error deserializing 'SurfaceFormat'");
1881
0
                return MsgValueError;
1882
0
            }
1883
0
            // Sentinel = 'format'
1884
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2052265543)))) {
1885
0
                mozilla::ipc::SentinelReadError("Error deserializing 'SurfaceFormat'");
1886
0
                return MsgValueError;
1887
0
            }
1888
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(stride)))))) {
1889
0
                FatalError("Error deserializing 'uint32_t'");
1890
0
                return MsgValueError;
1891
0
            }
1892
0
            // Sentinel = 'stride'
1893
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2746301169)))) {
1894
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
1895
0
                return MsgValueError;
1896
0
            }
1897
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(size)))))) {
1898
0
                FatalError("Error deserializing 'IntSize'");
1899
0
                return MsgValueError;
1900
0
            }
1901
0
            // Sentinel = 'size'
1902
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 931048223)))) {
1903
0
                mozilla::ipc::SentinelReadError("Error deserializing 'IntSize'");
1904
0
                return MsgValueError;
1905
0
            }
1906
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(dirty)))))) {
1907
0
                FatalError("Error deserializing 'IntRect'");
1908
0
                return MsgValueError;
1909
0
            }
1910
0
            // Sentinel = 'dirty'
1911
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3116109685)))) {
1912
0
                mozilla::ipc::SentinelReadError("Error deserializing 'IntRect'");
1913
0
                return MsgValueError;
1914
0
            }
1915
0
            (msg__).EndRead(iter__, (msg__).type());
1916
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1917
0
                FatalError("Transition error");
1918
0
                return MsgValueError;
1919
0
            }
1920
0
            int32_t id__ = Id();
1921
0
            if ((!(RecvShowDirectBitmap(std::move(buffer), format, stride, size, dirty)))) {
1922
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1923
0
                // Error handled in mozilla::ipc::IPCResult
1924
0
                return MsgProcessingError;
1925
0
            }
1926
0
1927
0
            reply__ = PPluginInstance::Reply_ShowDirectBitmap(id__);
1928
0
1929
0
1930
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1931
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1932
0
            }
1933
0
            return MsgProcessed;
1934
0
        }
1935
0
    case PPluginInstance::Msg_ShowDirectDXGISurface__ID:
1936
0
        {
1937
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1938
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1939
0
            }
1940
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_ShowDirectDXGISurface", OTHER);
1941
0
1942
0
            PickleIterator iter__(msg__);
1943
0
            WindowsHandle handle;
1944
0
            IntRect dirty;
1945
0
1946
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle)))))) {
1947
0
                FatalError("Error deserializing 'WindowsHandle'");
1948
0
                return MsgValueError;
1949
0
            }
1950
0
            // Sentinel = 'handle'
1951
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 453975108)))) {
1952
0
                mozilla::ipc::SentinelReadError("Error deserializing 'WindowsHandle'");
1953
0
                return MsgValueError;
1954
0
            }
1955
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(dirty)))))) {
1956
0
                FatalError("Error deserializing 'IntRect'");
1957
0
                return MsgValueError;
1958
0
            }
1959
0
            // Sentinel = 'dirty'
1960
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3116109685)))) {
1961
0
                mozilla::ipc::SentinelReadError("Error deserializing 'IntRect'");
1962
0
                return MsgValueError;
1963
0
            }
1964
0
            (msg__).EndRead(iter__, (msg__).type());
1965
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
1966
0
                FatalError("Transition error");
1967
0
                return MsgValueError;
1968
0
            }
1969
0
            int32_t id__ = Id();
1970
0
            if ((!(RecvShowDirectDXGISurface(handle, dirty)))) {
1971
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1972
0
                // Error handled in mozilla::ipc::IPCResult
1973
0
                return MsgProcessingError;
1974
0
            }
1975
0
1976
0
            reply__ = PPluginInstance::Reply_ShowDirectDXGISurface(id__);
1977
0
1978
0
1979
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1980
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1981
0
            }
1982
0
            return MsgProcessed;
1983
0
        }
1984
0
    case PPluginInstance::Msg_Show__ID:
1985
0
        {
1986
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
1987
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1988
0
            }
1989
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_Show", OTHER);
1990
0
1991
0
            PickleIterator iter__(msg__);
1992
0
            NPRect updatedRect;
1993
0
            SurfaceDescriptor newSurface;
1994
0
1995
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(updatedRect)))))) {
1996
0
                FatalError("Error deserializing 'NPRect'");
1997
0
                return MsgValueError;
1998
0
            }
1999
0
            // Sentinel = 'updatedRect'
2000
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3224039904)))) {
2001
0
                mozilla::ipc::SentinelReadError("Error deserializing 'NPRect'");
2002
0
                return MsgValueError;
2003
0
            }
2004
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(newSurface)))))) {
2005
0
                FatalError("Error deserializing 'SurfaceDescriptor'");
2006
0
                return MsgValueError;
2007
0
            }
2008
0
            // Sentinel = 'newSurface'
2009
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3100161349)))) {
2010
0
                mozilla::ipc::SentinelReadError("Error deserializing 'SurfaceDescriptor'");
2011
0
                return MsgValueError;
2012
0
            }
2013
0
            (msg__).EndRead(iter__, (msg__).type());
2014
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2015
0
                FatalError("Transition error");
2016
0
                return MsgValueError;
2017
0
            }
2018
0
            int32_t id__ = Id();
2019
0
            SurfaceDescriptor prevSurface;
2020
0
            if ((!(RecvShow(updatedRect, newSurface, (&(prevSurface)))))) {
2021
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2022
0
                // Error handled in mozilla::ipc::IPCResult
2023
0
                return MsgProcessingError;
2024
0
            }
2025
0
2026
0
            reply__ = PPluginInstance::Reply_Show(id__);
2027
0
2028
0
            WriteIPDLParam(reply__, this, prevSurface);
2029
0
            // Sentinel = 'prevSurface'
2030
0
            (reply__)->WriteSentinel(1876718023);
2031
0
2032
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2033
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2034
0
            }
2035
0
            return MsgProcessed;
2036
0
        }
2037
0
    case PPluginInstance::Msg_GetCompositionString__ID:
2038
0
        {
2039
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2040
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2041
0
            }
2042
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_GetCompositionString", OTHER);
2043
0
2044
0
            PickleIterator iter__(msg__);
2045
0
            uint32_t aType;
2046
0
2047
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aType)))))) {
2048
0
                FatalError("Error deserializing 'uint32_t'");
2049
0
                return MsgValueError;
2050
0
            }
2051
0
            // Sentinel = 'aType'
2052
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1819585676)))) {
2053
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
2054
0
                return MsgValueError;
2055
0
            }
2056
0
            (msg__).EndRead(iter__, (msg__).type());
2057
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2058
0
                FatalError("Transition error");
2059
0
                return MsgValueError;
2060
0
            }
2061
0
            int32_t id__ = Id();
2062
0
            nsTArray<uint8_t> aDist;
2063
0
            int32_t aLength;
2064
0
            if ((!(RecvGetCompositionString(aType, (&(aDist)), (&(aLength)))))) {
2065
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2066
0
                // Error handled in mozilla::ipc::IPCResult
2067
0
                return MsgProcessingError;
2068
0
            }
2069
0
2070
0
            reply__ = PPluginInstance::Reply_GetCompositionString(id__);
2071
0
2072
0
            WriteIPDLParam(reply__, this, aDist);
2073
0
            // Sentinel = 'aDist'
2074
0
            (reply__)->WriteSentinel(2008003332);
2075
0
            WriteIPDLParam(reply__, this, aLength);
2076
0
            // Sentinel = 'aLength'
2077
0
            (reply__)->WriteSentinel(2696905790);
2078
0
2079
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2080
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2081
0
            }
2082
0
            return MsgProcessed;
2083
0
        }
2084
0
    default:
2085
0
        {
2086
0
            return MsgNotKnown;
2087
0
        }
2088
0
    }
2089
0
}
2090
2091
auto PPluginInstanceParent::OnCallReceived(
2092
        const Message& msg__,
2093
        Message*& reply__) -> PPluginInstanceParent::Result
2094
0
{
2095
0
    if (((mLivenessState) == (mozilla::ipc::ReEntrantDeleteLivenessState::Dying)) && ((((msg__).is_reply()) != (true)) || (((msg__).is_interrupt()) != (true)))) {
2096
0
        FatalError("incoming message racing with actor deletion");
2097
0
        return MsgProcessed;
2098
0
    }
2099
0
    switch ((msg__).type()) {
2100
0
    case PPluginInstance::Msg_NPN_GetValue_NPNVWindowNPObject__ID:
2101
0
        {
2102
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2103
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2104
0
            }
2105
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValue_NPNVWindowNPObject", OTHER);
2106
0
2107
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2108
0
                FatalError("Transition error");
2109
0
                return MsgValueError;
2110
0
            }
2111
0
            int32_t id__ = Id();
2112
0
            PPluginScriptableObjectParent* value;
2113
0
            NPError result;
2114
0
            if ((!(AnswerNPN_GetValue_NPNVWindowNPObject((&(value)), (&(result)))))) {
2115
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2116
0
                // Error handled in mozilla::ipc::IPCResult
2117
0
                return MsgProcessingError;
2118
0
            }
2119
0
2120
0
            reply__ = PPluginInstance::Reply_NPN_GetValue_NPNVWindowNPObject(id__);
2121
0
2122
0
            WriteIPDLParam(reply__, this, value);
2123
0
            // Sentinel = 'value'
2124
0
            (reply__)->WriteSentinel(3456818542);
2125
0
            WriteIPDLParam(reply__, this, result);
2126
0
            // Sentinel = 'result'
2127
0
            (reply__)->WriteSentinel(3991766165);
2128
0
2129
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2130
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2131
0
            }
2132
0
            return MsgProcessed;
2133
0
        }
2134
0
    case PPluginInstance::Msg_NPN_GetValue_NPNVPluginElementNPObject__ID:
2135
0
        {
2136
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2137
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2138
0
            }
2139
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValue_NPNVPluginElementNPObject", OTHER);
2140
0
2141
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2142
0
                FatalError("Transition error");
2143
0
                return MsgValueError;
2144
0
            }
2145
0
            int32_t id__ = Id();
2146
0
            PPluginScriptableObjectParent* value;
2147
0
            NPError result;
2148
0
            if ((!(AnswerNPN_GetValue_NPNVPluginElementNPObject((&(value)), (&(result)))))) {
2149
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2150
0
                // Error handled in mozilla::ipc::IPCResult
2151
0
                return MsgProcessingError;
2152
0
            }
2153
0
2154
0
            reply__ = PPluginInstance::Reply_NPN_GetValue_NPNVPluginElementNPObject(id__);
2155
0
2156
0
            WriteIPDLParam(reply__, this, value);
2157
0
            // Sentinel = 'value'
2158
0
            (reply__)->WriteSentinel(3456818542);
2159
0
            WriteIPDLParam(reply__, this, result);
2160
0
            // Sentinel = 'result'
2161
0
            (reply__)->WriteSentinel(3991766165);
2162
0
2163
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2164
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2165
0
            }
2166
0
            return MsgProcessed;
2167
0
        }
2168
0
    case PPluginInstance::Msg_NPN_GetValue_NPNVprivateModeBool__ID:
2169
0
        {
2170
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2171
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2172
0
            }
2173
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValue_NPNVprivateModeBool", OTHER);
2174
0
2175
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2176
0
                FatalError("Transition error");
2177
0
                return MsgValueError;
2178
0
            }
2179
0
            int32_t id__ = Id();
2180
0
            bool value;
2181
0
            NPError result;
2182
0
            if ((!(AnswerNPN_GetValue_NPNVprivateModeBool((&(value)), (&(result)))))) {
2183
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2184
0
                // Error handled in mozilla::ipc::IPCResult
2185
0
                return MsgProcessingError;
2186
0
            }
2187
0
2188
0
            reply__ = PPluginInstance::Reply_NPN_GetValue_NPNVprivateModeBool(id__);
2189
0
2190
0
            WriteIPDLParam(reply__, this, value);
2191
0
            // Sentinel = 'value'
2192
0
            (reply__)->WriteSentinel(3456818542);
2193
0
            WriteIPDLParam(reply__, this, result);
2194
0
            // Sentinel = 'result'
2195
0
            (reply__)->WriteSentinel(3991766165);
2196
0
2197
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2198
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2199
0
            }
2200
0
            return MsgProcessed;
2201
0
        }
2202
0
    case PPluginInstance::Msg_NPN_GetValue_NPNVnetscapeWindow__ID:
2203
0
        {
2204
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2205
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2206
0
            }
2207
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValue_NPNVnetscapeWindow", OTHER);
2208
0
2209
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2210
0
                FatalError("Transition error");
2211
0
                return MsgValueError;
2212
0
            }
2213
0
            int32_t id__ = Id();
2214
0
            NativeWindowHandle value;
2215
0
            NPError result;
2216
0
            if ((!(AnswerNPN_GetValue_NPNVnetscapeWindow((&(value)), (&(result)))))) {
2217
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2218
0
                // Error handled in mozilla::ipc::IPCResult
2219
0
                return MsgProcessingError;
2220
0
            }
2221
0
2222
0
            reply__ = PPluginInstance::Reply_NPN_GetValue_NPNVnetscapeWindow(id__);
2223
0
2224
0
            WriteIPDLParam(reply__, this, value);
2225
0
            // Sentinel = 'value'
2226
0
            (reply__)->WriteSentinel(3456818542);
2227
0
            WriteIPDLParam(reply__, this, result);
2228
0
            // Sentinel = 'result'
2229
0
            (reply__)->WriteSentinel(3991766165);
2230
0
2231
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2232
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2233
0
            }
2234
0
            return MsgProcessed;
2235
0
        }
2236
0
    case PPluginInstance::Msg_NPN_GetValue_NPNVdocumentOrigin__ID:
2237
0
        {
2238
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2239
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2240
0
            }
2241
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValue_NPNVdocumentOrigin", OTHER);
2242
0
2243
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2244
0
                FatalError("Transition error");
2245
0
                return MsgValueError;
2246
0
            }
2247
0
            int32_t id__ = Id();
2248
0
            nsCString value;
2249
0
            NPError result;
2250
0
            if ((!(AnswerNPN_GetValue_NPNVdocumentOrigin((&(value)), (&(result)))))) {
2251
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2252
0
                // Error handled in mozilla::ipc::IPCResult
2253
0
                return MsgProcessingError;
2254
0
            }
2255
0
2256
0
            reply__ = PPluginInstance::Reply_NPN_GetValue_NPNVdocumentOrigin(id__);
2257
0
2258
0
            WriteIPDLParam(reply__, this, value);
2259
0
            // Sentinel = 'value'
2260
0
            (reply__)->WriteSentinel(3456818542);
2261
0
            WriteIPDLParam(reply__, this, result);
2262
0
            // Sentinel = 'result'
2263
0
            (reply__)->WriteSentinel(3991766165);
2264
0
2265
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2266
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2267
0
            }
2268
0
            return MsgProcessed;
2269
0
        }
2270
0
    case PPluginInstance::Msg_NPN_GetValue_DrawingModelSupport__ID:
2271
0
        {
2272
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2273
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2274
0
            }
2275
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValue_DrawingModelSupport", OTHER);
2276
0
2277
0
            PickleIterator iter__(msg__);
2278
0
            NPNVariable model;
2279
0
2280
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(model)))))) {
2281
0
                FatalError("Error deserializing 'NPNVariable'");
2282
0
                return MsgValueError;
2283
0
            }
2284
0
            // Sentinel = 'model'
2285
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3838242298)))) {
2286
0
                mozilla::ipc::SentinelReadError("Error deserializing 'NPNVariable'");
2287
0
                return MsgValueError;
2288
0
            }
2289
0
            (msg__).EndRead(iter__, (msg__).type());
2290
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2291
0
                FatalError("Transition error");
2292
0
                return MsgValueError;
2293
0
            }
2294
0
            int32_t id__ = Id();
2295
0
            bool value;
2296
0
            if ((!(AnswerNPN_GetValue_DrawingModelSupport(model, (&(value)))))) {
2297
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2298
0
                // Error handled in mozilla::ipc::IPCResult
2299
0
                return MsgProcessingError;
2300
0
            }
2301
0
2302
0
            reply__ = PPluginInstance::Reply_NPN_GetValue_DrawingModelSupport(id__);
2303
0
2304
0
            WriteIPDLParam(reply__, this, value);
2305
0
            // Sentinel = 'value'
2306
0
            (reply__)->WriteSentinel(3456818542);
2307
0
2308
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2309
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2310
0
            }
2311
0
            return MsgProcessed;
2312
0
        }
2313
0
    case PPluginInstance::Msg_NPN_GetValue_SupportsAsyncBitmapSurface__ID:
2314
0
        {
2315
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2316
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2317
0
            }
2318
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValue_SupportsAsyncBitmapSurface", OTHER);
2319
0
2320
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2321
0
                FatalError("Transition error");
2322
0
                return MsgValueError;
2323
0
            }
2324
0
            int32_t id__ = Id();
2325
0
            bool value;
2326
0
            if ((!(AnswerNPN_GetValue_SupportsAsyncBitmapSurface((&(value)))))) {
2327
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2328
0
                // Error handled in mozilla::ipc::IPCResult
2329
0
                return MsgProcessingError;
2330
0
            }
2331
0
2332
0
            reply__ = PPluginInstance::Reply_NPN_GetValue_SupportsAsyncBitmapSurface(id__);
2333
0
2334
0
            WriteIPDLParam(reply__, this, value);
2335
0
            // Sentinel = 'value'
2336
0
            (reply__)->WriteSentinel(3456818542);
2337
0
2338
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2339
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2340
0
            }
2341
0
            return MsgProcessed;
2342
0
        }
2343
0
    case PPluginInstance::Msg_NPN_GetValue_SupportsAsyncDXGISurface__ID:
2344
0
        {
2345
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2346
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2347
0
            }
2348
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValue_SupportsAsyncDXGISurface", OTHER);
2349
0
2350
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2351
0
                FatalError("Transition error");
2352
0
                return MsgValueError;
2353
0
            }
2354
0
            int32_t id__ = Id();
2355
0
            bool value;
2356
0
            if ((!(AnswerNPN_GetValue_SupportsAsyncDXGISurface((&(value)))))) {
2357
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2358
0
                // Error handled in mozilla::ipc::IPCResult
2359
0
                return MsgProcessingError;
2360
0
            }
2361
0
2362
0
            reply__ = PPluginInstance::Reply_NPN_GetValue_SupportsAsyncDXGISurface(id__);
2363
0
2364
0
            WriteIPDLParam(reply__, this, value);
2365
0
            // Sentinel = 'value'
2366
0
            (reply__)->WriteSentinel(3456818542);
2367
0
2368
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2369
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2370
0
            }
2371
0
            return MsgProcessed;
2372
0
        }
2373
0
    case PPluginInstance::Msg_NPN_GetValue_PreferredDXGIAdapter__ID:
2374
0
        {
2375
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2376
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2377
0
            }
2378
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValue_PreferredDXGIAdapter", OTHER);
2379
0
2380
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2381
0
                FatalError("Transition error");
2382
0
                return MsgValueError;
2383
0
            }
2384
0
            int32_t id__ = Id();
2385
0
            DxgiAdapterDesc desc;
2386
0
            if ((!(AnswerNPN_GetValue_PreferredDXGIAdapter((&(desc)))))) {
2387
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2388
0
                // Error handled in mozilla::ipc::IPCResult
2389
0
                return MsgProcessingError;
2390
0
            }
2391
0
2392
0
            reply__ = PPluginInstance::Reply_NPN_GetValue_PreferredDXGIAdapter(id__);
2393
0
2394
0
            WriteIPDLParam(reply__, this, desc);
2395
0
            // Sentinel = 'desc'
2396
0
            (reply__)->WriteSentinel(3761872479);
2397
0
2398
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2399
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2400
0
            }
2401
0
            return MsgProcessed;
2402
0
        }
2403
0
    case PPluginInstance::Msg_NPN_SetValue_NPPVpluginWindow__ID:
2404
0
        {
2405
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2406
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2407
0
            }
2408
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_SetValue_NPPVpluginWindow", OTHER);
2409
0
2410
0
            PickleIterator iter__(msg__);
2411
0
            bool windowed;
2412
0
2413
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(windowed)))))) {
2414
0
                FatalError("Error deserializing 'bool'");
2415
0
                return MsgValueError;
2416
0
            }
2417
0
            // Sentinel = 'windowed'
2418
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 755502151)))) {
2419
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
2420
0
                return MsgValueError;
2421
0
            }
2422
0
            (msg__).EndRead(iter__, (msg__).type());
2423
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2424
0
                FatalError("Transition error");
2425
0
                return MsgValueError;
2426
0
            }
2427
0
            int32_t id__ = Id();
2428
0
            NPError result;
2429
0
            if ((!(AnswerNPN_SetValue_NPPVpluginWindow(windowed, (&(result)))))) {
2430
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2431
0
                // Error handled in mozilla::ipc::IPCResult
2432
0
                return MsgProcessingError;
2433
0
            }
2434
0
2435
0
            reply__ = PPluginInstance::Reply_NPN_SetValue_NPPVpluginWindow(id__);
2436
0
2437
0
            WriteIPDLParam(reply__, this, result);
2438
0
            // Sentinel = 'result'
2439
0
            (reply__)->WriteSentinel(3991766165);
2440
0
2441
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2442
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2443
0
            }
2444
0
            return MsgProcessed;
2445
0
        }
2446
0
    case PPluginInstance::Msg_NPN_SetValue_NPPVpluginTransparent__ID:
2447
0
        {
2448
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2449
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2450
0
            }
2451
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_SetValue_NPPVpluginTransparent", OTHER);
2452
0
2453
0
            PickleIterator iter__(msg__);
2454
0
            bool transparent;
2455
0
2456
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(transparent)))))) {
2457
0
                FatalError("Error deserializing 'bool'");
2458
0
                return MsgValueError;
2459
0
            }
2460
0
            // Sentinel = 'transparent'
2461
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 542087773)))) {
2462
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
2463
0
                return MsgValueError;
2464
0
            }
2465
0
            (msg__).EndRead(iter__, (msg__).type());
2466
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2467
0
                FatalError("Transition error");
2468
0
                return MsgValueError;
2469
0
            }
2470
0
            int32_t id__ = Id();
2471
0
            NPError result;
2472
0
            if ((!(AnswerNPN_SetValue_NPPVpluginTransparent(transparent, (&(result)))))) {
2473
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2474
0
                // Error handled in mozilla::ipc::IPCResult
2475
0
                return MsgProcessingError;
2476
0
            }
2477
0
2478
0
            reply__ = PPluginInstance::Reply_NPN_SetValue_NPPVpluginTransparent(id__);
2479
0
2480
0
            WriteIPDLParam(reply__, this, result);
2481
0
            // Sentinel = 'result'
2482
0
            (reply__)->WriteSentinel(3991766165);
2483
0
2484
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2485
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2486
0
            }
2487
0
            return MsgProcessed;
2488
0
        }
2489
0
    case PPluginInstance::Msg_NPN_SetValue_NPPVpluginUsesDOMForCursor__ID:
2490
0
        {
2491
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2492
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2493
0
            }
2494
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_SetValue_NPPVpluginUsesDOMForCursor", OTHER);
2495
0
2496
0
            PickleIterator iter__(msg__);
2497
0
            bool useDOMForCursor;
2498
0
2499
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(useDOMForCursor)))))) {
2500
0
                FatalError("Error deserializing 'bool'");
2501
0
                return MsgValueError;
2502
0
            }
2503
0
            // Sentinel = 'useDOMForCursor'
2504
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2428712293)))) {
2505
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
2506
0
                return MsgValueError;
2507
0
            }
2508
0
            (msg__).EndRead(iter__, (msg__).type());
2509
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2510
0
                FatalError("Transition error");
2511
0
                return MsgValueError;
2512
0
            }
2513
0
            int32_t id__ = Id();
2514
0
            NPError result;
2515
0
            if ((!(AnswerNPN_SetValue_NPPVpluginUsesDOMForCursor(useDOMForCursor, (&(result)))))) {
2516
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2517
0
                // Error handled in mozilla::ipc::IPCResult
2518
0
                return MsgProcessingError;
2519
0
            }
2520
0
2521
0
            reply__ = PPluginInstance::Reply_NPN_SetValue_NPPVpluginUsesDOMForCursor(id__);
2522
0
2523
0
            WriteIPDLParam(reply__, this, result);
2524
0
            // Sentinel = 'result'
2525
0
            (reply__)->WriteSentinel(3991766165);
2526
0
2527
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2528
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2529
0
            }
2530
0
            return MsgProcessed;
2531
0
        }
2532
0
    case PPluginInstance::Msg_NPN_SetValue_NPPVpluginDrawingModel__ID:
2533
0
        {
2534
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2535
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2536
0
            }
2537
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_SetValue_NPPVpluginDrawingModel", OTHER);
2538
0
2539
0
            PickleIterator iter__(msg__);
2540
0
            int drawingModel;
2541
0
2542
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(drawingModel)))))) {
2543
0
                FatalError("Error deserializing 'int'");
2544
0
                return MsgValueError;
2545
0
            }
2546
0
            // Sentinel = 'drawingModel'
2547
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1978908149)))) {
2548
0
                mozilla::ipc::SentinelReadError("Error deserializing 'int'");
2549
0
                return MsgValueError;
2550
0
            }
2551
0
            (msg__).EndRead(iter__, (msg__).type());
2552
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2553
0
                FatalError("Transition error");
2554
0
                return MsgValueError;
2555
0
            }
2556
0
            int32_t id__ = Id();
2557
0
            NPError result;
2558
0
            if ((!(AnswerNPN_SetValue_NPPVpluginDrawingModel(drawingModel, (&(result)))))) {
2559
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2560
0
                // Error handled in mozilla::ipc::IPCResult
2561
0
                return MsgProcessingError;
2562
0
            }
2563
0
2564
0
            reply__ = PPluginInstance::Reply_NPN_SetValue_NPPVpluginDrawingModel(id__);
2565
0
2566
0
            WriteIPDLParam(reply__, this, result);
2567
0
            // Sentinel = 'result'
2568
0
            (reply__)->WriteSentinel(3991766165);
2569
0
2570
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2571
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2572
0
            }
2573
0
            return MsgProcessed;
2574
0
        }
2575
0
    case PPluginInstance::Msg_NPN_SetValue_NPPVpluginEventModel__ID:
2576
0
        {
2577
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2578
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2579
0
            }
2580
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_SetValue_NPPVpluginEventModel", OTHER);
2581
0
2582
0
            PickleIterator iter__(msg__);
2583
0
            int eventModel;
2584
0
2585
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(eventModel)))))) {
2586
0
                FatalError("Error deserializing 'int'");
2587
0
                return MsgValueError;
2588
0
            }
2589
0
            // Sentinel = 'eventModel'
2590
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3133267613)))) {
2591
0
                mozilla::ipc::SentinelReadError("Error deserializing 'int'");
2592
0
                return MsgValueError;
2593
0
            }
2594
0
            (msg__).EndRead(iter__, (msg__).type());
2595
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2596
0
                FatalError("Transition error");
2597
0
                return MsgValueError;
2598
0
            }
2599
0
            int32_t id__ = Id();
2600
0
            NPError result;
2601
0
            if ((!(AnswerNPN_SetValue_NPPVpluginEventModel(eventModel, (&(result)))))) {
2602
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2603
0
                // Error handled in mozilla::ipc::IPCResult
2604
0
                return MsgProcessingError;
2605
0
            }
2606
0
2607
0
            reply__ = PPluginInstance::Reply_NPN_SetValue_NPPVpluginEventModel(id__);
2608
0
2609
0
            WriteIPDLParam(reply__, this, result);
2610
0
            // Sentinel = 'result'
2611
0
            (reply__)->WriteSentinel(3991766165);
2612
0
2613
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2614
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2615
0
            }
2616
0
            return MsgProcessed;
2617
0
        }
2618
0
    case PPluginInstance::Msg_NPN_SetValue_NPPVpluginIsPlayingAudio__ID:
2619
0
        {
2620
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2621
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2622
0
            }
2623
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_SetValue_NPPVpluginIsPlayingAudio", OTHER);
2624
0
2625
0
            PickleIterator iter__(msg__);
2626
0
            bool isAudioPlaying;
2627
0
2628
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(isAudioPlaying)))))) {
2629
0
                FatalError("Error deserializing 'bool'");
2630
0
                return MsgValueError;
2631
0
            }
2632
0
            // Sentinel = 'isAudioPlaying'
2633
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2019164890)))) {
2634
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
2635
0
                return MsgValueError;
2636
0
            }
2637
0
            (msg__).EndRead(iter__, (msg__).type());
2638
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2639
0
                FatalError("Transition error");
2640
0
                return MsgValueError;
2641
0
            }
2642
0
            int32_t id__ = Id();
2643
0
            NPError result;
2644
0
            if ((!(AnswerNPN_SetValue_NPPVpluginIsPlayingAudio(isAudioPlaying, (&(result)))))) {
2645
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2646
0
                // Error handled in mozilla::ipc::IPCResult
2647
0
                return MsgProcessingError;
2648
0
            }
2649
0
2650
0
            reply__ = PPluginInstance::Reply_NPN_SetValue_NPPVpluginIsPlayingAudio(id__);
2651
0
2652
0
            WriteIPDLParam(reply__, this, result);
2653
0
            // Sentinel = 'result'
2654
0
            (reply__)->WriteSentinel(3991766165);
2655
0
2656
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2657
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2658
0
            }
2659
0
            return MsgProcessed;
2660
0
        }
2661
0
    case PPluginInstance::Msg_NPN_GetURL__ID:
2662
0
        {
2663
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2664
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2665
0
            }
2666
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetURL", OTHER);
2667
0
2668
0
            PickleIterator iter__(msg__);
2669
0
            nsCString url;
2670
0
            nsCString target;
2671
0
2672
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(url)))))) {
2673
0
                FatalError("Error deserializing 'nsCString'");
2674
0
                return MsgValueError;
2675
0
            }
2676
0
            // Sentinel = 'url'
2677
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210600)))) {
2678
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
2679
0
                return MsgValueError;
2680
0
            }
2681
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(target)))))) {
2682
0
                FatalError("Error deserializing 'nsCString'");
2683
0
                return MsgValueError;
2684
0
            }
2685
0
            // Sentinel = 'target'
2686
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2226365285)))) {
2687
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
2688
0
                return MsgValueError;
2689
0
            }
2690
0
            (msg__).EndRead(iter__, (msg__).type());
2691
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2692
0
                FatalError("Transition error");
2693
0
                return MsgValueError;
2694
0
            }
2695
0
            int32_t id__ = Id();
2696
0
            NPError result;
2697
0
            if ((!(AnswerNPN_GetURL(url, target, (&(result)))))) {
2698
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2699
0
                // Error handled in mozilla::ipc::IPCResult
2700
0
                return MsgProcessingError;
2701
0
            }
2702
0
2703
0
            reply__ = PPluginInstance::Reply_NPN_GetURL(id__);
2704
0
2705
0
            WriteIPDLParam(reply__, this, result);
2706
0
            // Sentinel = 'result'
2707
0
            (reply__)->WriteSentinel(3991766165);
2708
0
2709
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2710
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2711
0
            }
2712
0
            return MsgProcessed;
2713
0
        }
2714
0
    case PPluginInstance::Msg_NPN_PostURL__ID:
2715
0
        {
2716
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2717
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2718
0
            }
2719
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_PostURL", OTHER);
2720
0
2721
0
            PickleIterator iter__(msg__);
2722
0
            nsCString url;
2723
0
            nsCString target;
2724
0
            nsCString buffer;
2725
0
            bool file;
2726
0
2727
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(url)))))) {
2728
0
                FatalError("Error deserializing 'nsCString'");
2729
0
                return MsgValueError;
2730
0
            }
2731
0
            // Sentinel = 'url'
2732
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210600)))) {
2733
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
2734
0
                return MsgValueError;
2735
0
            }
2736
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(target)))))) {
2737
0
                FatalError("Error deserializing 'nsCString'");
2738
0
                return MsgValueError;
2739
0
            }
2740
0
            // Sentinel = 'target'
2741
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2226365285)))) {
2742
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
2743
0
                return MsgValueError;
2744
0
            }
2745
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(buffer)))))) {
2746
0
                FatalError("Error deserializing 'nsCString'");
2747
0
                return MsgValueError;
2748
0
            }
2749
0
            // Sentinel = 'buffer'
2750
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4093250504)))) {
2751
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
2752
0
                return MsgValueError;
2753
0
            }
2754
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(file)))))) {
2755
0
                FatalError("Error deserializing 'bool'");
2756
0
                return MsgValueError;
2757
0
            }
2758
0
            // Sentinel = 'file'
2759
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 224874390)))) {
2760
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
2761
0
                return MsgValueError;
2762
0
            }
2763
0
            (msg__).EndRead(iter__, (msg__).type());
2764
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2765
0
                FatalError("Transition error");
2766
0
                return MsgValueError;
2767
0
            }
2768
0
            int32_t id__ = Id();
2769
0
            NPError result;
2770
0
            if ((!(AnswerNPN_PostURL(url, target, buffer, file, (&(result)))))) {
2771
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2772
0
                // Error handled in mozilla::ipc::IPCResult
2773
0
                return MsgProcessingError;
2774
0
            }
2775
0
2776
0
            reply__ = PPluginInstance::Reply_NPN_PostURL(id__);
2777
0
2778
0
            WriteIPDLParam(reply__, this, result);
2779
0
            // Sentinel = 'result'
2780
0
            (reply__)->WriteSentinel(3991766165);
2781
0
2782
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2783
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2784
0
            }
2785
0
            return MsgProcessed;
2786
0
        }
2787
0
    case PPluginInstance::Msg_PStreamNotifyConstructor__ID:
2788
0
        {
2789
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2790
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2791
0
            }
2792
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_PStreamNotifyConstructor", OTHER);
2793
0
2794
0
            PickleIterator iter__(msg__);
2795
0
            ActorHandle handle__;
2796
0
            PStreamNotifyParent* actor;
2797
0
            nsCString url;
2798
0
            nsCString target;
2799
0
            bool post;
2800
0
            nsCString buffer;
2801
0
            bool file;
2802
0
2803
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) {
2804
0
                FatalError("Error deserializing 'ActorHandle'");
2805
0
                return MsgValueError;
2806
0
            }
2807
0
            // Sentinel = 'actor'
2808
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
2809
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
2810
0
                return MsgValueError;
2811
0
            }
2812
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(url)))))) {
2813
0
                FatalError("Error deserializing 'nsCString'");
2814
0
                return MsgValueError;
2815
0
            }
2816
0
            // Sentinel = 'url'
2817
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210600)))) {
2818
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
2819
0
                return MsgValueError;
2820
0
            }
2821
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(target)))))) {
2822
0
                FatalError("Error deserializing 'nsCString'");
2823
0
                return MsgValueError;
2824
0
            }
2825
0
            // Sentinel = 'target'
2826
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2226365285)))) {
2827
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
2828
0
                return MsgValueError;
2829
0
            }
2830
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(post)))))) {
2831
0
                FatalError("Error deserializing 'bool'");
2832
0
                return MsgValueError;
2833
0
            }
2834
0
            // Sentinel = 'post'
2835
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3632211674)))) {
2836
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
2837
0
                return MsgValueError;
2838
0
            }
2839
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(buffer)))))) {
2840
0
                FatalError("Error deserializing 'nsCString'");
2841
0
                return MsgValueError;
2842
0
            }
2843
0
            // Sentinel = 'buffer'
2844
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4093250504)))) {
2845
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
2846
0
                return MsgValueError;
2847
0
            }
2848
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(file)))))) {
2849
0
                FatalError("Error deserializing 'bool'");
2850
0
                return MsgValueError;
2851
0
            }
2852
0
            // Sentinel = 'file'
2853
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 224874390)))) {
2854
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
2855
0
                return MsgValueError;
2856
0
            }
2857
0
            (msg__).EndRead(iter__, (msg__).type());
2858
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2859
0
                FatalError("Transition error");
2860
0
                return MsgValueError;
2861
0
            }
2862
0
            NPError result;
2863
0
            actor = AllocPStreamNotifyParent(url, target, post, buffer, file, (&(result)));
2864
0
            if ((!(actor))) {
2865
0
                NS_WARNING("Error constructing actor PStreamNotifyParent");
2866
0
                return MsgValueError;
2867
0
            }
2868
0
            (actor)->SetManagerAndRegister(this, (handle__).mId);
2869
0
            (mManagedPStreamNotifyParent).PutEntry(actor);
2870
0
            (actor)->mLivenessState = mozilla::ipc::LivenessState::Start;
2871
0
2872
0
            int32_t id__ = Id();
2873
0
            if ((!(AnswerPStreamNotifyConstructor(actor, url, target, post, buffer, file, (&(result)))))) {
2874
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2875
0
                // Error handled in mozilla::ipc::IPCResult
2876
0
                return MsgProcessingError;
2877
0
            }
2878
0
            reply__ = PPluginInstance::Reply_PStreamNotifyConstructor(id__);
2879
0
2880
0
            WriteIPDLParam(reply__, this, result);
2881
0
            // Sentinel = 'result'
2882
0
            (reply__)->WriteSentinel(3991766165);
2883
0
2884
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2885
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2886
0
            }
2887
0
2888
0
            return MsgProcessed;
2889
0
        }
2890
0
    case PPluginInstance::Msg_NPN_PushPopupsEnabledState__ID:
2891
0
        {
2892
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2893
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2894
0
            }
2895
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_PushPopupsEnabledState", OTHER);
2896
0
2897
0
            PickleIterator iter__(msg__);
2898
0
            bool aState;
2899
0
2900
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aState)))))) {
2901
0
                FatalError("Error deserializing 'bool'");
2902
0
                return MsgValueError;
2903
0
            }
2904
0
            // Sentinel = 'aState'
2905
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3694751962)))) {
2906
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
2907
0
                return MsgValueError;
2908
0
            }
2909
0
            (msg__).EndRead(iter__, (msg__).type());
2910
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2911
0
                FatalError("Transition error");
2912
0
                return MsgValueError;
2913
0
            }
2914
0
            int32_t id__ = Id();
2915
0
            if ((!(AnswerNPN_PushPopupsEnabledState(aState)))) {
2916
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2917
0
                // Error handled in mozilla::ipc::IPCResult
2918
0
                return MsgProcessingError;
2919
0
            }
2920
0
2921
0
            reply__ = PPluginInstance::Reply_NPN_PushPopupsEnabledState(id__);
2922
0
2923
0
2924
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2925
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2926
0
            }
2927
0
            return MsgProcessed;
2928
0
        }
2929
0
    case PPluginInstance::Msg_NPN_PopPopupsEnabledState__ID:
2930
0
        {
2931
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2932
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2933
0
            }
2934
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_PopPopupsEnabledState", OTHER);
2935
0
2936
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2937
0
                FatalError("Transition error");
2938
0
                return MsgValueError;
2939
0
            }
2940
0
            int32_t id__ = Id();
2941
0
            if ((!(AnswerNPN_PopPopupsEnabledState()))) {
2942
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2943
0
                // Error handled in mozilla::ipc::IPCResult
2944
0
                return MsgProcessingError;
2945
0
            }
2946
0
2947
0
            reply__ = PPluginInstance::Reply_NPN_PopPopupsEnabledState(id__);
2948
0
2949
0
2950
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2951
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2952
0
            }
2953
0
            return MsgProcessed;
2954
0
        }
2955
0
    case PPluginInstance::Msg_NPN_GetValueForURL__ID:
2956
0
        {
2957
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
2958
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2959
0
            }
2960
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValueForURL", OTHER);
2961
0
2962
0
            PickleIterator iter__(msg__);
2963
0
            NPNURLVariable variable;
2964
0
            nsCString url;
2965
0
2966
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(variable)))))) {
2967
0
                FatalError("Error deserializing 'NPNURLVariable'");
2968
0
                return MsgValueError;
2969
0
            }
2970
0
            // Sentinel = 'variable'
2971
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3111782360)))) {
2972
0
                mozilla::ipc::SentinelReadError("Error deserializing 'NPNURLVariable'");
2973
0
                return MsgValueError;
2974
0
            }
2975
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(url)))))) {
2976
0
                FatalError("Error deserializing 'nsCString'");
2977
0
                return MsgValueError;
2978
0
            }
2979
0
            // Sentinel = 'url'
2980
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210600)))) {
2981
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
2982
0
                return MsgValueError;
2983
0
            }
2984
0
            (msg__).EndRead(iter__, (msg__).type());
2985
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
2986
0
                FatalError("Transition error");
2987
0
                return MsgValueError;
2988
0
            }
2989
0
            int32_t id__ = Id();
2990
0
            nsCString value;
2991
0
            NPError result;
2992
0
            if ((!(AnswerNPN_GetValueForURL(variable, url, (&(value)), (&(result)))))) {
2993
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2994
0
                // Error handled in mozilla::ipc::IPCResult
2995
0
                return MsgProcessingError;
2996
0
            }
2997
0
2998
0
            reply__ = PPluginInstance::Reply_NPN_GetValueForURL(id__);
2999
0
3000
0
            WriteIPDLParam(reply__, this, value);
3001
0
            // Sentinel = 'value'
3002
0
            (reply__)->WriteSentinel(3456818542);
3003
0
            WriteIPDLParam(reply__, this, result);
3004
0
            // Sentinel = 'result'
3005
0
            (reply__)->WriteSentinel(3991766165);
3006
0
3007
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
3008
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
3009
0
            }
3010
0
            return MsgProcessed;
3011
0
        }
3012
0
    case PPluginInstance::Msg_NPN_SetValueForURL__ID:
3013
0
        {
3014
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
3015
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3016
0
            }
3017
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_SetValueForURL", OTHER);
3018
0
3019
0
            PickleIterator iter__(msg__);
3020
0
            NPNURLVariable variable;
3021
0
            nsCString url;
3022
0
            nsCString value;
3023
0
3024
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(variable)))))) {
3025
0
                FatalError("Error deserializing 'NPNURLVariable'");
3026
0
                return MsgValueError;
3027
0
            }
3028
0
            // Sentinel = 'variable'
3029
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3111782360)))) {
3030
0
                mozilla::ipc::SentinelReadError("Error deserializing 'NPNURLVariable'");
3031
0
                return MsgValueError;
3032
0
            }
3033
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(url)))))) {
3034
0
                FatalError("Error deserializing 'nsCString'");
3035
0
                return MsgValueError;
3036
0
            }
3037
0
            // Sentinel = 'url'
3038
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210600)))) {
3039
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
3040
0
                return MsgValueError;
3041
0
            }
3042
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(value)))))) {
3043
0
                FatalError("Error deserializing 'nsCString'");
3044
0
                return MsgValueError;
3045
0
            }
3046
0
            // Sentinel = 'value'
3047
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3456818542)))) {
3048
0
                mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
3049
0
                return MsgValueError;
3050
0
            }
3051
0
            (msg__).EndRead(iter__, (msg__).type());
3052
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
3053
0
                FatalError("Transition error");
3054
0
                return MsgValueError;
3055
0
            }
3056
0
            int32_t id__ = Id();
3057
0
            NPError result;
3058
0
            if ((!(AnswerNPN_SetValueForURL(variable, url, value, (&(result)))))) {
3059
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3060
0
                // Error handled in mozilla::ipc::IPCResult
3061
0
                return MsgProcessingError;
3062
0
            }
3063
0
3064
0
            reply__ = PPluginInstance::Reply_NPN_SetValueForURL(id__);
3065
0
3066
0
            WriteIPDLParam(reply__, this, result);
3067
0
            // Sentinel = 'result'
3068
0
            (reply__)->WriteSentinel(3991766165);
3069
0
3070
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
3071
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
3072
0
            }
3073
0
            return MsgProcessed;
3074
0
        }
3075
0
    case PPluginInstance::Msg_NPN_ConvertPoint__ID:
3076
0
        {
3077
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
3078
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3079
0
            }
3080
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_ConvertPoint", OTHER);
3081
0
3082
0
            PickleIterator iter__(msg__);
3083
0
            double sourceX;
3084
0
            bool ignoreDestX;
3085
0
            double sourceY;
3086
0
            bool ignoreDestY;
3087
0
            NPCoordinateSpace sourceSpace;
3088
0
            NPCoordinateSpace destSpace;
3089
0
3090
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(sourceX)))))) {
3091
0
                FatalError("Error deserializing 'double'");
3092
0
                return MsgValueError;
3093
0
            }
3094
0
            // Sentinel = 'sourceX'
3095
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 58441274)))) {
3096
0
                mozilla::ipc::SentinelReadError("Error deserializing 'double'");
3097
0
                return MsgValueError;
3098
0
            }
3099
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(ignoreDestX)))))) {
3100
0
                FatalError("Error deserializing 'bool'");
3101
0
                return MsgValueError;
3102
0
            }
3103
0
            // Sentinel = 'ignoreDestX'
3104
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1329233425)))) {
3105
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
3106
0
                return MsgValueError;
3107
0
            }
3108
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(sourceY)))))) {
3109
0
                FatalError("Error deserializing 'double'");
3110
0
                return MsgValueError;
3111
0
            }
3112
0
            // Sentinel = 'sourceY'
3113
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 58441275)))) {
3114
0
                mozilla::ipc::SentinelReadError("Error deserializing 'double'");
3115
0
                return MsgValueError;
3116
0
            }
3117
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(ignoreDestY)))))) {
3118
0
                FatalError("Error deserializing 'bool'");
3119
0
                return MsgValueError;
3120
0
            }
3121
0
            // Sentinel = 'ignoreDestY'
3122
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1329233424)))) {
3123
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
3124
0
                return MsgValueError;
3125
0
            }
3126
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(sourceSpace)))))) {
3127
0
                FatalError("Error deserializing 'NPCoordinateSpace'");
3128
0
                return MsgValueError;
3129
0
            }
3130
0
            // Sentinel = 'sourceSpace'
3131
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3334520796)))) {
3132
0
                mozilla::ipc::SentinelReadError("Error deserializing 'NPCoordinateSpace'");
3133
0
                return MsgValueError;
3134
0
            }
3135
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(destSpace)))))) {
3136
0
                FatalError("Error deserializing 'NPCoordinateSpace'");
3137
0
                return MsgValueError;
3138
0
            }
3139
0
            // Sentinel = 'destSpace'
3140
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2508972935)))) {
3141
0
                mozilla::ipc::SentinelReadError("Error deserializing 'NPCoordinateSpace'");
3142
0
                return MsgValueError;
3143
0
            }
3144
0
            (msg__).EndRead(iter__, (msg__).type());
3145
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
3146
0
                FatalError("Transition error");
3147
0
                return MsgValueError;
3148
0
            }
3149
0
            int32_t id__ = Id();
3150
0
            double destX;
3151
0
            double destY;
3152
0
            bool result;
3153
0
            if ((!(AnswerNPN_ConvertPoint(sourceX, ignoreDestX, sourceY, ignoreDestY, sourceSpace, destSpace, (&(destX)), (&(destY)), (&(result)))))) {
3154
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3155
0
                // Error handled in mozilla::ipc::IPCResult
3156
0
                return MsgProcessingError;
3157
0
            }
3158
0
3159
0
            reply__ = PPluginInstance::Reply_NPN_ConvertPoint(id__);
3160
0
3161
0
            WriteIPDLParam(reply__, this, destX);
3162
0
            // Sentinel = 'destX'
3163
0
            (reply__)->WriteSentinel(3495429561);
3164
0
            WriteIPDLParam(reply__, this, destY);
3165
0
            // Sentinel = 'destY'
3166
0
            (reply__)->WriteSentinel(3495429560);
3167
0
            WriteIPDLParam(reply__, this, result);
3168
0
            // Sentinel = 'result'
3169
0
            (reply__)->WriteSentinel(3991766165);
3170
0
3171
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
3172
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
3173
0
            }
3174
0
            return MsgProcessed;
3175
0
        }
3176
0
    case PPluginInstance::Msg_PluginFocusChange__ID:
3177
0
        {
3178
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
3179
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
3180
0
            }
3181
0
            AUTO_PROFILER_LABEL("PPluginInstance::Msg_PluginFocusChange", OTHER);
3182
0
3183
0
            PickleIterator iter__(msg__);
3184
0
            bool gotFocus;
3185
0
3186
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(gotFocus)))))) {
3187
0
                FatalError("Error deserializing 'bool'");
3188
0
                return MsgValueError;
3189
0
            }
3190
0
            // Sentinel = 'gotFocus'
3191
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2312516654)))) {
3192
0
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
3193
0
                return MsgValueError;
3194
0
            }
3195
0
            (msg__).EndRead(iter__, (msg__).type());
3196
0
            if ((!(ReEntrantDeleteStateTransition(false, false, (&(mLivenessState)))))) {
3197
0
                FatalError("Transition error");
3198
0
                return MsgValueError;
3199
0
            }
3200
0
            int32_t id__ = Id();
3201
0
            if ((!(AnswerPluginFocusChange(gotFocus)))) {
3202
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
3203
0
                // Error handled in mozilla::ipc::IPCResult
3204
0
                return MsgProcessingError;
3205
0
            }
3206
0
3207
0
            reply__ = PPluginInstance::Reply_PluginFocusChange(id__);
3208
0
3209
0
3210
0
            if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceParent")) {
3211
0
                mozilla::ipc::LogMessageForProtocol("PPluginInstanceParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
3212
0
            }
3213
0
            return MsgProcessed;
3214
0
        }
3215
0
    default:
3216
0
        {
3217
0
            return MsgNotKnown;
3218
0
        }
3219
0
    }
3220
0
}
3221
3222
auto PPluginInstanceParent::GetProtocolTypeId() -> int32_t
3223
0
{
3224
0
    return PPluginInstanceMsgStart;
3225
0
}
3226
3227
auto PPluginInstanceParent::DestroySubtree(ActorDestroyReason why) -> void
3228
0
{
3229
0
    // Unregister from our manager.
3230
0
    Unregister(Id());
3231
0
3232
0
    ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
3233
0
3234
0
    {
3235
0
        // Recursively shutting down PPluginBackgroundDestroyer kids
3236
0
        nsTArray<PPluginBackgroundDestroyerParent*> kids;
3237
0
        // Accumulate kids into a stable structure to iterate over
3238
0
        ManagedPPluginBackgroundDestroyerParent(kids);
3239
0
        for (auto& kid : kids) {
3240
0
            // Guarding against a child removing a sibling from the list during the iteration.
3241
0
            if ((mManagedPPluginBackgroundDestroyerParent).Contains(kid)) {
3242
0
                (kid)->DestroySubtree(subtreewhy);
3243
0
            }
3244
0
        }
3245
0
    }
3246
0
    {
3247
0
        // Recursively shutting down PPluginScriptableObject kids
3248
0
        nsTArray<PPluginScriptableObjectParent*> kids;
3249
0
        // Accumulate kids into a stable structure to iterate over
3250
0
        ManagedPPluginScriptableObjectParent(kids);
3251
0
        for (auto& kid : kids) {
3252
0
            // Guarding against a child removing a sibling from the list during the iteration.
3253
0
            if ((mManagedPPluginScriptableObjectParent).Contains(kid)) {
3254
0
                (kid)->DestroySubtree(subtreewhy);
3255
0
            }
3256
0
        }
3257
0
    }
3258
0
    {
3259
0
        // Recursively shutting down PBrowserStream kids
3260
0
        nsTArray<PBrowserStreamParent*> kids;
3261
0
        // Accumulate kids into a stable structure to iterate over
3262
0
        ManagedPBrowserStreamParent(kids);
3263
0
        for (auto& kid : kids) {
3264
0
            // Guarding against a child removing a sibling from the list during the iteration.
3265
0
            if ((mManagedPBrowserStreamParent).Contains(kid)) {
3266
0
                (kid)->DestroySubtree(subtreewhy);
3267
0
            }
3268
0
        }
3269
0
    }
3270
0
    {
3271
0
        // Recursively shutting down PStreamNotify kids
3272
0
        nsTArray<PStreamNotifyParent*> kids;
3273
0
        // Accumulate kids into a stable structure to iterate over
3274
0
        ManagedPStreamNotifyParent(kids);
3275
0
        for (auto& kid : kids) {
3276
0
            // Guarding against a child removing a sibling from the list during the iteration.
3277
0
            if ((mManagedPStreamNotifyParent).Contains(kid)) {
3278
0
                (kid)->DestroySubtree(subtreewhy);
3279
0
            }
3280
0
        }
3281
0
    }
3282
0
    {
3283
0
        // Recursively shutting down PPluginSurface kids
3284
0
        nsTArray<PPluginSurfaceParent*> kids;
3285
0
        // Accumulate kids into a stable structure to iterate over
3286
0
        ManagedPPluginSurfaceParent(kids);
3287
0
        for (auto& kid : kids) {
3288
0
            // Guarding against a child removing a sibling from the list during the iteration.
3289
0
            if ((mManagedPPluginSurfaceParent).Contains(kid)) {
3290
0
                (kid)->DestroySubtree(subtreewhy);
3291
0
            }
3292
0
        }
3293
0
    }
3294
0
3295
0
    // Reject owning pending responses.
3296
0
    (GetIPCChannel())->RejectPendingResponsesForActor(this);
3297
0
3298
0
    // Finally, destroy "us".
3299
0
    ActorDestroy(why);
3300
0
}
3301
3302
auto PPluginInstanceParent::DeallocSubtree() -> void
3303
0
{
3304
0
    {
3305
0
        // Recursively deleting PPluginBackgroundDestroyer kids
3306
0
        for (auto iter = (mManagedPPluginBackgroundDestroyerParent).Iter(); (!((iter).Done())); (iter).Next()) {
3307
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3308
0
        }
3309
0
3310
0
        for (auto iter = (mManagedPPluginBackgroundDestroyerParent).Iter(); (!((iter).Done())); (iter).Next()) {
3311
0
            DeallocPPluginBackgroundDestroyerParent(((iter).Get())->GetKey());
3312
0
        }
3313
0
        (mManagedPPluginBackgroundDestroyerParent).Clear();
3314
0
    }
3315
0
    {
3316
0
        // Recursively deleting PPluginScriptableObject kids
3317
0
        for (auto iter = (mManagedPPluginScriptableObjectParent).Iter(); (!((iter).Done())); (iter).Next()) {
3318
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3319
0
        }
3320
0
3321
0
        for (auto iter = (mManagedPPluginScriptableObjectParent).Iter(); (!((iter).Done())); (iter).Next()) {
3322
0
            DeallocPPluginScriptableObjectParent(((iter).Get())->GetKey());
3323
0
        }
3324
0
        (mManagedPPluginScriptableObjectParent).Clear();
3325
0
    }
3326
0
    {
3327
0
        // Recursively deleting PBrowserStream kids
3328
0
        for (auto iter = (mManagedPBrowserStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
3329
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3330
0
        }
3331
0
3332
0
        for (auto iter = (mManagedPBrowserStreamParent).Iter(); (!((iter).Done())); (iter).Next()) {
3333
0
            DeallocPBrowserStreamParent(((iter).Get())->GetKey());
3334
0
        }
3335
0
        (mManagedPBrowserStreamParent).Clear();
3336
0
    }
3337
0
    {
3338
0
        // Recursively deleting PStreamNotify kids
3339
0
        for (auto iter = (mManagedPStreamNotifyParent).Iter(); (!((iter).Done())); (iter).Next()) {
3340
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3341
0
        }
3342
0
3343
0
        for (auto iter = (mManagedPStreamNotifyParent).Iter(); (!((iter).Done())); (iter).Next()) {
3344
0
            DeallocPStreamNotifyParent(((iter).Get())->GetKey());
3345
0
        }
3346
0
        (mManagedPStreamNotifyParent).Clear();
3347
0
    }
3348
0
    {
3349
0
        // Recursively deleting PPluginSurface kids
3350
0
        for (auto iter = (mManagedPPluginSurfaceParent).Iter(); (!((iter).Done())); (iter).Next()) {
3351
0
            (((iter).Get())->GetKey())->DeallocSubtree();
3352
0
        }
3353
0
3354
0
        for (auto iter = (mManagedPPluginSurfaceParent).Iter(); (!((iter).Done())); (iter).Next()) {
3355
0
            DeallocPPluginSurfaceParent(((iter).Get())->GetKey());
3356
0
        }
3357
0
        (mManagedPPluginSurfaceParent).Clear();
3358
0
    }
3359
0
}
3360
3361
3362
3363
} // namespace plugins
3364
} // namespace mozilla
3365
namespace mozilla {
3366
namespace ipc {
3367
auto IPDLParamTraits<mozilla::plugins::PPluginInstanceParent>::Write(
3368
        IPC::Message* aMsg,
3369
        mozilla::ipc::IProtocol* aActor,
3370
        const paramType& aVar) -> void
3371
0
{
3372
0
    int32_t id;
3373
0
    if ((!(aVar))) {
3374
0
        id = 0;
3375
0
    }
3376
0
    else {
3377
0
        id = (aVar)->Id();
3378
0
        if ((1) == (id)) {
3379
0
            (aActor)->FatalError("actor has been |delete|d");
3380
0
        }
3381
0
    }
3382
0
    WriteIPDLParam(aMsg, aActor, id);
3383
0
}
3384
3385
auto IPDLParamTraits<mozilla::plugins::PPluginInstanceParent>::Read(
3386
        const IPC::Message* aMsg,
3387
        PickleIterator* aIter,
3388
        mozilla::ipc::IProtocol* aActor,
3389
        paramType* aVar) -> bool
3390
0
{
3391
0
    mozilla::Maybe<mozilla::ipc::IProtocol*> actor = (aActor)->ReadActor(aMsg, aIter, true, "PPluginInstance", PPluginInstanceMsgStart);
3392
0
    if ((actor).isNothing()) {
3393
0
        return false;
3394
0
    }
3395
0
3396
0
    (*(aVar)) = static_cast<mozilla::plugins::PPluginInstanceParent*>((actor).value());
3397
0
    return true;
3398
0
}
3399
3400
} // namespace ipc
3401
} // namespace mozilla