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