Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/plugins/PPluginModuleParent.h"
8 : #include "mozilla/plugins/PluginMessageUtils.h"
9 : #include "nsID.h"
10 : #ifdef MOZ_CRASHREPORTER
11 : # include "nsXULAppAPI.h"
12 : #endif
13 :
14 : #include "mozilla/plugins/PPluginInstanceParent.h"
15 : #include "mozilla/plugins/PPluginScriptableObjectParent.h"
16 : #include "mozilla/dom/PContentParent.h"
17 : #include "mozilla/PProfilerParent.h"
18 :
19 : #include "nsIFile.h"
20 : #include "GeckoProfiler.h"
21 :
22 : namespace mozilla {
23 : namespace plugins {
24 :
25 :
26 :
27 0 : auto PPluginModuleParent::ProcessingError(
28 : Result aCode,
29 : const char* aReason) -> void
30 : {
31 0 : }
32 :
33 0 : auto PPluginModuleParent::ShouldContinueFromReplyTimeout() -> bool
34 : {
35 0 : return true;
36 : }
37 :
38 0 : auto PPluginModuleParent::EnteredCxxStack() -> void
39 : {
40 0 : }
41 :
42 0 : auto PPluginModuleParent::ExitedCxxStack() -> void
43 : {
44 0 : }
45 :
46 0 : auto PPluginModuleParent::EnteredCall() -> void
47 : {
48 0 : }
49 :
50 0 : auto PPluginModuleParent::ExitedCall() -> void
51 : {
52 0 : }
53 :
54 0 : MOZ_IMPLICIT PPluginModuleParent::PPluginModuleParent() :
55 : mozilla::ipc::IToplevelProtocol(PPluginModuleMsgStart, mozilla::ipc::ParentSide),
56 : mChannel("PPluginModuleParent", ALLOW_THIS_IN_INITIALIZER_LIST(this)),
57 0 : mState(PPluginModule::__Start)
58 : {
59 0 : MOZ_COUNT_CTOR(PPluginModuleParent);
60 0 : }
61 :
62 0 : PPluginModuleParent::~PPluginModuleParent()
63 : {
64 0 : MOZ_COUNT_DTOR(PPluginModuleParent);
65 0 : }
66 :
67 0 : auto PPluginModuleParent::ManagedPPluginInstanceParent(nsTArray<PPluginInstanceParent*>& aArr) const -> void
68 : {
69 0 : (mManagedPPluginInstanceParent).ToArray(aArr);
70 0 : }
71 :
72 0 : auto PPluginModuleParent::ManagedPPluginInstanceParent() const -> const ManagedContainer<PPluginInstanceParent>&
73 : {
74 0 : return mManagedPPluginInstanceParent;
75 : }
76 :
77 0 : auto PPluginModuleParent::SendProcessNativeEventsInInterruptCall() -> bool
78 : {
79 0 : IPC::Message* msg__ = PPluginModule::Msg_ProcessNativeEventsInInterruptCall(MSG_ROUTING_CONTROL);
80 :
81 :
82 :
83 :
84 :
85 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
86 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
87 : }
88 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_ProcessNativeEventsInInterruptCall", OTHER);
89 0 : PPluginModule::Transition(PPluginModule::Msg_ProcessNativeEventsInInterruptCall__ID, (&(mState)));
90 :
91 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
92 0 : return sendok__;
93 : }
94 :
95 0 : auto PPluginModuleParent::SendInitProfiler(const Endpoint<mozilla::PProfilerChild>& aEndPoint) -> bool
96 : {
97 0 : IPC::Message* msg__ = PPluginModule::Msg_InitProfiler(MSG_ROUTING_CONTROL);
98 :
99 0 : Write(aEndPoint, msg__);
100 : // Sentinel = 'aEndPoint'
101 0 : (msg__)->WriteSentinel(1022620923);
102 :
103 :
104 :
105 :
106 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
107 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
108 : }
109 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_InitProfiler", OTHER);
110 0 : PPluginModule::Transition(PPluginModule::Msg_InitProfiler__ID, (&(mState)));
111 :
112 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
113 0 : return sendok__;
114 : }
115 :
116 0 : auto PPluginModuleParent::SendDisableFlashProtectedMode() -> bool
117 : {
118 0 : IPC::Message* msg__ = PPluginModule::Msg_DisableFlashProtectedMode(MSG_ROUTING_CONTROL);
119 :
120 :
121 :
122 :
123 :
124 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
125 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
126 : }
127 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_DisableFlashProtectedMode", OTHER);
128 0 : PPluginModule::Transition(PPluginModule::Msg_DisableFlashProtectedMode__ID, (&(mState)));
129 :
130 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
131 0 : return sendok__;
132 : }
133 :
134 0 : auto PPluginModuleParent::CallModuleSupportsAsyncRender(bool* result) -> bool
135 : {
136 0 : IPC::Message* msg__ = PPluginModule::Msg_ModuleSupportsAsyncRender(MSG_ROUTING_CONTROL);
137 :
138 :
139 0 : (msg__)->set_interrupt();
140 :
141 :
142 0 : Message reply__;
143 :
144 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
145 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
146 : }
147 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_ModuleSupportsAsyncRender", OTHER);
148 0 : PPluginModule::Transition(PPluginModule::Msg_ModuleSupportsAsyncRender__ID, (&(mState)));
149 :
150 : bool sendok__;
151 : {
152 : AutoProfilerTracing syncIPCTracer(
153 : "IPC",
154 0 : "PPluginModule::Msg_ModuleSupportsAsyncRender");
155 0 : sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
156 : }
157 0 : if ((!(sendok__))) {
158 0 : return false;
159 : }
160 :
161 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
162 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
163 : }
164 :
165 0 : PickleIterator iter__(reply__);
166 :
167 0 : if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
168 0 : FatalError("Error deserializing 'bool'");
169 0 : return false;
170 : }
171 : // Sentinel = 'result'
172 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
173 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
174 0 : return false;
175 : }
176 0 : (reply__).EndRead(iter__, (reply__).type());
177 :
178 0 : return true;
179 : }
180 :
181 0 : auto PPluginModuleParent::CallNP_GetEntryPoints(NPError* rv) -> bool
182 : {
183 0 : IPC::Message* msg__ = PPluginModule::Msg_NP_GetEntryPoints(MSG_ROUTING_CONTROL);
184 :
185 :
186 0 : (msg__)->set_interrupt();
187 :
188 :
189 0 : Message reply__;
190 :
191 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
192 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
193 : }
194 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_NP_GetEntryPoints", OTHER);
195 0 : PPluginModule::Transition(PPluginModule::Msg_NP_GetEntryPoints__ID, (&(mState)));
196 :
197 : bool sendok__;
198 : {
199 : AutoProfilerTracing syncIPCTracer(
200 : "IPC",
201 0 : "PPluginModule::Msg_NP_GetEntryPoints");
202 0 : sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
203 : }
204 0 : if ((!(sendok__))) {
205 0 : return false;
206 : }
207 :
208 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
209 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
210 : }
211 :
212 0 : PickleIterator iter__(reply__);
213 :
214 0 : if ((!(Read(rv, (&(reply__)), (&(iter__)))))) {
215 0 : FatalError("Error deserializing 'NPError'");
216 0 : return false;
217 : }
218 : // Sentinel = 'rv'
219 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481058)))) {
220 0 : mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
221 0 : return false;
222 : }
223 0 : (reply__).EndRead(iter__, (reply__).type());
224 :
225 0 : return true;
226 : }
227 :
228 0 : auto PPluginModuleParent::CallNP_Initialize(
229 : const PluginSettings& settings,
230 : NPError* rv) -> bool
231 : {
232 0 : IPC::Message* msg__ = PPluginModule::Msg_NP_Initialize(MSG_ROUTING_CONTROL);
233 :
234 0 : Write(settings, msg__);
235 : // Sentinel = 'settings'
236 0 : (msg__)->WriteSentinel(2402913383);
237 :
238 0 : (msg__)->set_interrupt();
239 :
240 :
241 0 : Message reply__;
242 :
243 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
244 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
245 : }
246 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_NP_Initialize", OTHER);
247 0 : PPluginModule::Transition(PPluginModule::Msg_NP_Initialize__ID, (&(mState)));
248 :
249 : bool sendok__;
250 : {
251 : AutoProfilerTracing syncIPCTracer(
252 : "IPC",
253 0 : "PPluginModule::Msg_NP_Initialize");
254 0 : sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
255 : }
256 0 : if ((!(sendok__))) {
257 0 : return false;
258 : }
259 :
260 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
261 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
262 : }
263 :
264 0 : PickleIterator iter__(reply__);
265 :
266 0 : if ((!(Read(rv, (&(reply__)), (&(iter__)))))) {
267 0 : FatalError("Error deserializing 'NPError'");
268 0 : return false;
269 : }
270 : // Sentinel = 'rv'
271 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481058)))) {
272 0 : mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
273 0 : return false;
274 : }
275 0 : (reply__).EndRead(iter__, (reply__).type());
276 :
277 0 : return true;
278 : }
279 :
280 0 : auto PPluginModuleParent::SendPPluginInstanceConstructor(
281 : const nsCString& aMimeType,
282 : const nsTArray<nsCString>& aNames,
283 : const nsTArray<nsCString>& aValues) -> PPluginInstanceParent*
284 : {
285 0 : return SendPPluginInstanceConstructor(AllocPPluginInstanceParent(aMimeType, aNames, aValues), aMimeType, aNames, aValues);
286 : }
287 :
288 0 : auto PPluginModuleParent::SendPPluginInstanceConstructor(
289 : PPluginInstanceParent* actor,
290 : const nsCString& aMimeType,
291 : const nsTArray<nsCString>& aNames,
292 : const nsTArray<nsCString>& aValues) -> PPluginInstanceParent*
293 : {
294 0 : if ((!(actor))) {
295 0 : NS_WARNING("Error constructing actor PPluginInstanceParent");
296 0 : return nullptr;
297 : }
298 0 : (actor)->SetManager(this);
299 0 : Register(actor);
300 0 : (actor)->SetIPCChannel(GetIPCChannel());
301 0 : (mManagedPPluginInstanceParent).PutEntry(actor);
302 0 : (actor)->mState = mozilla::plugins::PPluginInstance::__Start;
303 :
304 0 : IPC::Message* msg__ = PPluginModule::Msg_PPluginInstanceConstructor(MSG_ROUTING_CONTROL);
305 :
306 0 : Write(actor, msg__, false);
307 : // Sentinel = 'actor'
308 0 : (msg__)->WriteSentinel(875202478);
309 0 : Write(aMimeType, msg__);
310 : // Sentinel = 'aMimeType'
311 0 : (msg__)->WriteSentinel(698220456);
312 0 : Write(aNames, msg__);
313 : // Sentinel = 'aNames'
314 0 : (msg__)->WriteSentinel(1643765405);
315 0 : Write(aValues, msg__);
316 : // Sentinel = 'aValues'
317 0 : (msg__)->WriteSentinel(223787060);
318 :
319 0 : (msg__)->set_constructor();
320 :
321 :
322 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
323 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
324 : }
325 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_PPluginInstanceConstructor", OTHER);
326 0 : PPluginModule::Transition(PPluginModule::Msg_PPluginInstanceConstructor__ID, (&(mState)));
327 :
328 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
329 0 : if ((!(sendok__))) {
330 0 : IProtocol* mgr = (actor)->Manager();
331 0 : (actor)->DestroySubtree(FailedConstructor);
332 0 : (actor)->DeallocSubtree();
333 0 : (mgr)->RemoveManagee(PPluginInstanceMsgStart, actor);
334 0 : return nullptr;
335 : }
336 0 : return actor;
337 : }
338 :
339 0 : auto PPluginModuleParent::CallSyncNPP_New(
340 : PPluginInstanceParent* aActor,
341 : NPError* rv) -> bool
342 : {
343 0 : IPC::Message* msg__ = PPluginModule::Msg_SyncNPP_New(MSG_ROUTING_CONTROL);
344 :
345 0 : Write(aActor, msg__, false);
346 : // Sentinel = 'aActor'
347 0 : (msg__)->WriteSentinel(654298798);
348 :
349 0 : (msg__)->set_interrupt();
350 :
351 :
352 0 : Message reply__;
353 :
354 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
355 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
356 : }
357 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_SyncNPP_New", OTHER);
358 0 : PPluginModule::Transition(PPluginModule::Msg_SyncNPP_New__ID, (&(mState)));
359 :
360 : bool sendok__;
361 : {
362 : AutoProfilerTracing syncIPCTracer(
363 : "IPC",
364 0 : "PPluginModule::Msg_SyncNPP_New");
365 0 : sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
366 : }
367 0 : if ((!(sendok__))) {
368 0 : return false;
369 : }
370 :
371 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
372 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
373 : }
374 :
375 0 : PickleIterator iter__(reply__);
376 :
377 0 : if ((!(Read(rv, (&(reply__)), (&(iter__)))))) {
378 0 : FatalError("Error deserializing 'NPError'");
379 0 : return false;
380 : }
381 : // Sentinel = 'rv'
382 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481058)))) {
383 0 : mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
384 0 : return false;
385 : }
386 0 : (reply__).EndRead(iter__, (reply__).type());
387 :
388 0 : return true;
389 : }
390 :
391 0 : auto PPluginModuleParent::CallNP_Shutdown(NPError* rv) -> bool
392 : {
393 0 : IPC::Message* msg__ = PPluginModule::Msg_NP_Shutdown(MSG_ROUTING_CONTROL);
394 :
395 :
396 0 : (msg__)->set_interrupt();
397 :
398 :
399 0 : Message reply__;
400 :
401 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
402 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
403 : }
404 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_NP_Shutdown", OTHER);
405 0 : PPluginModule::Transition(PPluginModule::Msg_NP_Shutdown__ID, (&(mState)));
406 :
407 : bool sendok__;
408 : {
409 : AutoProfilerTracing syncIPCTracer(
410 : "IPC",
411 0 : "PPluginModule::Msg_NP_Shutdown");
412 0 : sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
413 : }
414 0 : if ((!(sendok__))) {
415 0 : return false;
416 : }
417 :
418 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
419 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
420 : }
421 :
422 0 : PickleIterator iter__(reply__);
423 :
424 0 : if ((!(Read(rv, (&(reply__)), (&(iter__)))))) {
425 0 : FatalError("Error deserializing 'NPError'");
426 0 : return false;
427 : }
428 : // Sentinel = 'rv'
429 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481058)))) {
430 0 : mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
431 0 : return false;
432 : }
433 0 : (reply__).EndRead(iter__, (reply__).type());
434 :
435 0 : return true;
436 : }
437 :
438 0 : auto PPluginModuleParent::CallOptionalFunctionsSupported(
439 : bool* aURLRedirectNotify,
440 : bool* aClearSiteData,
441 : bool* aGetSitesWithData) -> bool
442 : {
443 0 : IPC::Message* msg__ = PPluginModule::Msg_OptionalFunctionsSupported(MSG_ROUTING_CONTROL);
444 :
445 :
446 0 : (msg__)->set_interrupt();
447 :
448 :
449 0 : Message reply__;
450 :
451 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
452 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
453 : }
454 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_OptionalFunctionsSupported", OTHER);
455 0 : PPluginModule::Transition(PPluginModule::Msg_OptionalFunctionsSupported__ID, (&(mState)));
456 :
457 : bool sendok__;
458 : {
459 : AutoProfilerTracing syncIPCTracer(
460 : "IPC",
461 0 : "PPluginModule::Msg_OptionalFunctionsSupported");
462 0 : sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
463 : }
464 0 : if ((!(sendok__))) {
465 0 : return false;
466 : }
467 :
468 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
469 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
470 : }
471 :
472 0 : PickleIterator iter__(reply__);
473 :
474 0 : if ((!(Read(aURLRedirectNotify, (&(reply__)), (&(iter__)))))) {
475 0 : FatalError("Error deserializing 'bool'");
476 0 : return false;
477 : }
478 : // Sentinel = 'aURLRedirectNotify'
479 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 4040347717)))) {
480 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
481 0 : return false;
482 : }
483 0 : if ((!(Read(aClearSiteData, (&(reply__)), (&(iter__)))))) {
484 0 : FatalError("Error deserializing 'bool'");
485 0 : return false;
486 : }
487 : // Sentinel = 'aClearSiteData'
488 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 357136587)))) {
489 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
490 0 : return false;
491 : }
492 0 : if ((!(Read(aGetSitesWithData, (&(reply__)), (&(iter__)))))) {
493 0 : FatalError("Error deserializing 'bool'");
494 0 : return false;
495 : }
496 : // Sentinel = 'aGetSitesWithData'
497 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1891549156)))) {
498 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
499 0 : return false;
500 : }
501 0 : (reply__).EndRead(iter__, (reply__).type());
502 :
503 0 : return true;
504 : }
505 :
506 0 : auto PPluginModuleParent::SendNPP_ClearSiteData(
507 : const nsCString& site,
508 : const uint64_t& flags,
509 : const uint64_t& maxAge,
510 : const uint64_t& aCallbackId) -> bool
511 : {
512 0 : IPC::Message* msg__ = PPluginModule::Msg_NPP_ClearSiteData(MSG_ROUTING_CONTROL);
513 :
514 0 : Write(site, msg__);
515 : // Sentinel = 'site'
516 0 : (msg__)->WriteSentinel(925048205);
517 0 : Write(flags, msg__);
518 : // Sentinel = 'flags'
519 0 : (msg__)->WriteSentinel(2550519284);
520 0 : Write(maxAge, msg__);
521 : // Sentinel = 'maxAge'
522 0 : (msg__)->WriteSentinel(4136822029);
523 0 : Write(aCallbackId, msg__);
524 : // Sentinel = 'aCallbackId'
525 0 : (msg__)->WriteSentinel(1362998144);
526 :
527 :
528 :
529 :
530 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
531 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
532 : }
533 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_NPP_ClearSiteData", OTHER);
534 0 : PPluginModule::Transition(PPluginModule::Msg_NPP_ClearSiteData__ID, (&(mState)));
535 :
536 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
537 0 : return sendok__;
538 : }
539 :
540 0 : auto PPluginModuleParent::SendNPP_GetSitesWithData(const uint64_t& aCallbackId) -> bool
541 : {
542 0 : IPC::Message* msg__ = PPluginModule::Msg_NPP_GetSitesWithData(MSG_ROUTING_CONTROL);
543 :
544 0 : Write(aCallbackId, msg__);
545 : // Sentinel = 'aCallbackId'
546 0 : (msg__)->WriteSentinel(1362998144);
547 :
548 :
549 :
550 :
551 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
552 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
553 : }
554 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_NPP_GetSitesWithData", OTHER);
555 0 : PPluginModule::Transition(PPluginModule::Msg_NPP_GetSitesWithData__ID, (&(mState)));
556 :
557 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
558 0 : return sendok__;
559 : }
560 :
561 0 : auto PPluginModuleParent::SendSetAudioSessionData(
562 : const nsID& aID,
563 : const nsString& aDisplayName,
564 : const nsString& aIconPath) -> bool
565 : {
566 0 : IPC::Message* msg__ = PPluginModule::Msg_SetAudioSessionData(MSG_ROUTING_CONTROL);
567 :
568 0 : Write(aID, msg__);
569 : // Sentinel = 'aID'
570 0 : (msg__)->WriteSentinel(2735041849);
571 0 : Write(aDisplayName, msg__);
572 : // Sentinel = 'aDisplayName'
573 0 : (msg__)->WriteSentinel(531102644);
574 0 : Write(aIconPath, msg__);
575 : // Sentinel = 'aIconPath'
576 0 : (msg__)->WriteSentinel(2359874914);
577 :
578 :
579 :
580 :
581 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
582 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
583 : }
584 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_SetAudioSessionData", OTHER);
585 0 : PPluginModule::Transition(PPluginModule::Msg_SetAudioSessionData__ID, (&(mState)));
586 :
587 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
588 0 : return sendok__;
589 : }
590 :
591 0 : auto PPluginModuleParent::SendSetParentHangTimeout(const uint32_t& seconds) -> bool
592 : {
593 0 : IPC::Message* msg__ = PPluginModule::Msg_SetParentHangTimeout(MSG_ROUTING_CONTROL);
594 :
595 0 : Write(seconds, msg__);
596 : // Sentinel = 'seconds'
597 0 : (msg__)->WriteSentinel(3246051016);
598 :
599 :
600 :
601 :
602 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
603 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
604 : }
605 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_SetParentHangTimeout", OTHER);
606 0 : PPluginModule::Transition(PPluginModule::Msg_SetParentHangTimeout__ID, (&(mState)));
607 :
608 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
609 0 : return sendok__;
610 : }
611 :
612 0 : auto PPluginModuleParent::CallInitCrashReporter(
613 : Shmem& shmem,
614 : NativeThreadId* tid) -> bool
615 : {
616 0 : IPC::Message* msg__ = PPluginModule::Msg_InitCrashReporter(MSG_ROUTING_CONTROL);
617 :
618 0 : Write(shmem, msg__);
619 : // Sentinel = 'shmem'
620 0 : (msg__)->WriteSentinel(4252604405);
621 :
622 0 : (msg__)->set_interrupt();
623 :
624 :
625 0 : Message reply__;
626 :
627 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
628 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
629 : }
630 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_InitCrashReporter", OTHER);
631 0 : PPluginModule::Transition(PPluginModule::Msg_InitCrashReporter__ID, (&(mState)));
632 :
633 : bool sendok__;
634 : {
635 : AutoProfilerTracing syncIPCTracer(
636 : "IPC",
637 0 : "PPluginModule::Msg_InitCrashReporter");
638 0 : sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
639 : }
640 0 : if ((!(sendok__))) {
641 0 : return false;
642 : }
643 :
644 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
645 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
646 : }
647 :
648 0 : PickleIterator iter__(reply__);
649 :
650 0 : if ((!(Read(tid, (&(reply__)), (&(iter__)))))) {
651 0 : FatalError("Error deserializing 'NativeThreadId'");
652 0 : return false;
653 : }
654 : // Sentinel = 'tid'
655 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 333309880)))) {
656 0 : mozilla::ipc::SentinelReadError("Error deserializing 'NativeThreadId'");
657 0 : return false;
658 : }
659 0 : (reply__).EndRead(iter__, (reply__).type());
660 :
661 0 : return true;
662 : }
663 :
664 0 : auto PPluginModuleParent::SendSettingChanged(const PluginSettings& settings) -> bool
665 : {
666 0 : IPC::Message* msg__ = PPluginModule::Msg_SettingChanged(MSG_ROUTING_CONTROL);
667 :
668 0 : Write(settings, msg__);
669 : // Sentinel = 'settings'
670 0 : (msg__)->WriteSentinel(2402913383);
671 :
672 :
673 :
674 :
675 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
676 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
677 : }
678 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_SettingChanged", OTHER);
679 0 : PPluginModule::Transition(PPluginModule::Msg_SettingChanged__ID, (&(mState)));
680 :
681 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
682 0 : return sendok__;
683 : }
684 :
685 0 : auto PPluginModuleParent::SendNPP_SetValue_NPNVaudioDeviceChangeDetails(const NPAudioDeviceChangeDetailsIPC& changeDetails) -> bool
686 : {
687 0 : IPC::Message* msg__ = PPluginModule::Msg_NPP_SetValue_NPNVaudioDeviceChangeDetails(MSG_ROUTING_CONTROL);
688 :
689 0 : Write(changeDetails, msg__);
690 : // Sentinel = 'changeDetails'
691 0 : (msg__)->WriteSentinel(331935927);
692 :
693 :
694 :
695 :
696 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
697 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
698 : }
699 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_NPP_SetValue_NPNVaudioDeviceChangeDetails", OTHER);
700 0 : PPluginModule::Transition(PPluginModule::Msg_NPP_SetValue_NPNVaudioDeviceChangeDetails__ID, (&(mState)));
701 :
702 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
703 0 : return sendok__;
704 : }
705 :
706 0 : auto PPluginModuleParent::SendInitPluginModuleChild(const Endpoint<mozilla::plugins::PPluginModuleChild>& endpoint) -> bool
707 : {
708 0 : IPC::Message* msg__ = PPluginModule::Msg_InitPluginModuleChild(MSG_ROUTING_CONTROL);
709 :
710 0 : Write(endpoint, msg__);
711 : // Sentinel = 'endpoint'
712 0 : (msg__)->WriteSentinel(3610972515);
713 :
714 :
715 :
716 :
717 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
718 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
719 : }
720 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_InitPluginModuleChild", OTHER);
721 0 : PPluginModule::Transition(PPluginModule::Msg_InitPluginModuleChild__ID, (&(mState)));
722 :
723 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
724 0 : return sendok__;
725 : }
726 :
727 0 : auto PPluginModuleParent::GetIPCChannel() -> MessageChannel*
728 : {
729 0 : return (&(mChannel));
730 : }
731 :
732 0 : auto PPluginModuleParent::GetIPCChannel() const -> const MessageChannel*
733 : {
734 0 : return (&(mChannel));
735 : }
736 :
737 0 : auto PPluginModuleParent::RemoveManagee(
738 : int32_t aProtocolId,
739 : ProtocolBase* aListener) -> void
740 : {
741 0 : switch (aProtocolId) {
742 : case PPluginInstanceMsgStart:
743 : {
744 0 : PPluginInstanceParent* actor = static_cast<PPluginInstanceParent*>(aListener);
745 0 : auto& container = mManagedPPluginInstanceParent;
746 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
747 :
748 0 : (container).RemoveEntry(actor);
749 0 : DeallocPPluginInstanceParent(actor);
750 0 : return;
751 : }
752 : default:
753 : {
754 0 : FatalError("unreached");
755 0 : return;
756 : }
757 : }
758 : }
759 :
760 0 : auto PPluginModuleParent::OnMessageReceived(const Message& msg__) -> PPluginModuleParent::Result
761 : {
762 0 : int32_t route__ = (msg__).routing_id();
763 0 : if ((MSG_ROUTING_CONTROL) != (route__)) {
764 0 : ChannelListener* routed__ = Lookup(route__);
765 0 : if ((!(routed__))) {
766 0 : return MsgRouteError;
767 : }
768 0 : return (routed__)->OnMessageReceived(msg__);
769 : }
770 :
771 0 : switch ((msg__).type()) {
772 : case PPluginModule::Msg_ProcessNativeEventsInInterruptCall__ID:
773 : {
774 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
775 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
776 : }
777 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_ProcessNativeEventsInInterruptCall", OTHER);
778 :
779 0 : PPluginModule::Transition(PPluginModule::Msg_ProcessNativeEventsInInterruptCall__ID, (&(mState)));
780 0 : if ((!(RecvProcessNativeEventsInInterruptCall()))) {
781 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
782 : // Error handled in mozilla::ipc::IPCResult
783 0 : return MsgProcessingError;
784 : }
785 :
786 0 : return MsgProcessed;
787 : }
788 : case PPluginModule::Reply_PPluginInstanceConstructor__ID:
789 : {
790 0 : return MsgProcessed;
791 : }
792 : case PPluginModule::Msg_BackUpXResources__ID:
793 : {
794 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
795 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
796 : }
797 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_BackUpXResources", OTHER);
798 :
799 0 : PickleIterator iter__(msg__);
800 0 : FileDescriptor aXSocketFd;
801 :
802 0 : if ((!(Read((&(aXSocketFd)), (&(msg__)), (&(iter__)))))) {
803 0 : FatalError("Error deserializing 'FileDescriptor'");
804 0 : return MsgValueError;
805 : }
806 : // Sentinel = 'aXSocketFd'
807 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1448798316)))) {
808 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor'");
809 0 : return MsgValueError;
810 : }
811 0 : (msg__).EndRead(iter__, (msg__).type());
812 0 : PPluginModule::Transition(PPluginModule::Msg_BackUpXResources__ID, (&(mState)));
813 0 : if ((!(RecvBackUpXResources(mozilla::Move(aXSocketFd))))) {
814 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
815 : // Error handled in mozilla::ipc::IPCResult
816 0 : return MsgProcessingError;
817 : }
818 :
819 0 : return MsgProcessed;
820 : }
821 : case PPluginModule::Msg_PluginShowWindow__ID:
822 : {
823 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
824 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
825 : }
826 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_PluginShowWindow", OTHER);
827 :
828 0 : PickleIterator iter__(msg__);
829 : uint32_t aWindowId;
830 : bool aModal;
831 : int32_t aX;
832 : int32_t aY;
833 : size_t aWidth;
834 : size_t aHeight;
835 :
836 0 : if ((!(Read((&(aWindowId)), (&(msg__)), (&(iter__)))))) {
837 0 : FatalError("Error deserializing 'uint32_t'");
838 0 : return MsgValueError;
839 : }
840 : // Sentinel = 'aWindowId'
841 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3844940347)))) {
842 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
843 0 : return MsgValueError;
844 : }
845 0 : if ((!(Read((&(aModal)), (&(msg__)), (&(iter__)))))) {
846 0 : FatalError("Error deserializing 'bool'");
847 0 : return MsgValueError;
848 : }
849 : // Sentinel = 'aModal'
850 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1748782442)))) {
851 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
852 0 : return MsgValueError;
853 : }
854 0 : if ((!(Read((&(aX)), (&(msg__)), (&(iter__)))))) {
855 0 : FatalError("Error deserializing 'int32_t'");
856 0 : return MsgValueError;
857 : }
858 : // Sentinel = 'aX'
859 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2745208761)))) {
860 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
861 0 : return MsgValueError;
862 : }
863 0 : if ((!(Read((&(aY)), (&(msg__)), (&(iter__)))))) {
864 0 : FatalError("Error deserializing 'int32_t'");
865 0 : return MsgValueError;
866 : }
867 : // Sentinel = 'aY'
868 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2745208760)))) {
869 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
870 0 : return MsgValueError;
871 : }
872 0 : if ((!(Read((&(aWidth)), (&(msg__)), (&(iter__)))))) {
873 0 : FatalError("Error deserializing 'size_t'");
874 0 : return MsgValueError;
875 : }
876 : // Sentinel = 'aWidth'
877 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 196646625)))) {
878 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size_t'");
879 0 : return MsgValueError;
880 : }
881 0 : if ((!(Read((&(aHeight)), (&(msg__)), (&(iter__)))))) {
882 0 : FatalError("Error deserializing 'size_t'");
883 0 : return MsgValueError;
884 : }
885 : // Sentinel = 'aHeight'
886 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3588433859)))) {
887 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size_t'");
888 0 : return MsgValueError;
889 : }
890 0 : (msg__).EndRead(iter__, (msg__).type());
891 0 : PPluginModule::Transition(PPluginModule::Msg_PluginShowWindow__ID, (&(mState)));
892 0 : if ((!(RecvPluginShowWindow(mozilla::Move(aWindowId), mozilla::Move(aModal), mozilla::Move(aX), mozilla::Move(aY), mozilla::Move(aWidth), mozilla::Move(aHeight))))) {
893 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
894 : // Error handled in mozilla::ipc::IPCResult
895 0 : return MsgProcessingError;
896 : }
897 :
898 0 : return MsgProcessed;
899 : }
900 : case PPluginModule::Msg_PluginHideWindow__ID:
901 : {
902 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
903 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
904 : }
905 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_PluginHideWindow", OTHER);
906 :
907 0 : PickleIterator iter__(msg__);
908 : uint32_t aWindowId;
909 :
910 0 : if ((!(Read((&(aWindowId)), (&(msg__)), (&(iter__)))))) {
911 0 : FatalError("Error deserializing 'uint32_t'");
912 0 : return MsgValueError;
913 : }
914 : // Sentinel = 'aWindowId'
915 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3844940347)))) {
916 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
917 0 : return MsgValueError;
918 : }
919 0 : (msg__).EndRead(iter__, (msg__).type());
920 0 : PPluginModule::Transition(PPluginModule::Msg_PluginHideWindow__ID, (&(mState)));
921 0 : if ((!(RecvPluginHideWindow(mozilla::Move(aWindowId))))) {
922 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
923 : // Error handled in mozilla::ipc::IPCResult
924 0 : return MsgProcessingError;
925 : }
926 :
927 0 : return MsgProcessed;
928 : }
929 : case PPluginModule::Msg_SetCursor__ID:
930 : {
931 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
932 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
933 : }
934 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_SetCursor", OTHER);
935 :
936 0 : PickleIterator iter__(msg__);
937 : NSCursorInfo cursorInfo;
938 :
939 0 : if ((!(Read((&(cursorInfo)), (&(msg__)), (&(iter__)))))) {
940 0 : FatalError("Error deserializing 'NSCursorInfo'");
941 0 : return MsgValueError;
942 : }
943 : // Sentinel = 'cursorInfo'
944 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 351096996)))) {
945 0 : mozilla::ipc::SentinelReadError("Error deserializing 'NSCursorInfo'");
946 0 : return MsgValueError;
947 : }
948 0 : (msg__).EndRead(iter__, (msg__).type());
949 0 : PPluginModule::Transition(PPluginModule::Msg_SetCursor__ID, (&(mState)));
950 0 : if ((!(RecvSetCursor(mozilla::Move(cursorInfo))))) {
951 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
952 : // Error handled in mozilla::ipc::IPCResult
953 0 : return MsgProcessingError;
954 : }
955 :
956 0 : return MsgProcessed;
957 : }
958 : case PPluginModule::Msg_ShowCursor__ID:
959 : {
960 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
961 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
962 : }
963 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_ShowCursor", OTHER);
964 :
965 0 : PickleIterator iter__(msg__);
966 : bool show;
967 :
968 0 : if ((!(Read((&(show)), (&(msg__)), (&(iter__)))))) {
969 0 : FatalError("Error deserializing 'bool'");
970 0 : return MsgValueError;
971 : }
972 : // Sentinel = 'show'
973 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 352668679)))) {
974 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
975 0 : return MsgValueError;
976 : }
977 0 : (msg__).EndRead(iter__, (msg__).type());
978 0 : PPluginModule::Transition(PPluginModule::Msg_ShowCursor__ID, (&(mState)));
979 0 : if ((!(RecvShowCursor(mozilla::Move(show))))) {
980 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
981 : // Error handled in mozilla::ipc::IPCResult
982 0 : return MsgProcessingError;
983 : }
984 :
985 0 : return MsgProcessed;
986 : }
987 : case PPluginModule::Msg_PushCursor__ID:
988 : {
989 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
990 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
991 : }
992 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_PushCursor", OTHER);
993 :
994 0 : PickleIterator iter__(msg__);
995 : NSCursorInfo cursorInfo;
996 :
997 0 : if ((!(Read((&(cursorInfo)), (&(msg__)), (&(iter__)))))) {
998 0 : FatalError("Error deserializing 'NSCursorInfo'");
999 0 : return MsgValueError;
1000 : }
1001 : // Sentinel = 'cursorInfo'
1002 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 351096996)))) {
1003 0 : mozilla::ipc::SentinelReadError("Error deserializing 'NSCursorInfo'");
1004 0 : return MsgValueError;
1005 : }
1006 0 : (msg__).EndRead(iter__, (msg__).type());
1007 0 : PPluginModule::Transition(PPluginModule::Msg_PushCursor__ID, (&(mState)));
1008 0 : if ((!(RecvPushCursor(mozilla::Move(cursorInfo))))) {
1009 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1010 : // Error handled in mozilla::ipc::IPCResult
1011 0 : return MsgProcessingError;
1012 : }
1013 :
1014 0 : return MsgProcessed;
1015 : }
1016 : case PPluginModule::Msg_PopCursor__ID:
1017 : {
1018 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
1019 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1020 : }
1021 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_PopCursor", OTHER);
1022 :
1023 0 : PPluginModule::Transition(PPluginModule::Msg_PopCursor__ID, (&(mState)));
1024 0 : if ((!(RecvPopCursor()))) {
1025 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1026 : // Error handled in mozilla::ipc::IPCResult
1027 0 : return MsgProcessingError;
1028 : }
1029 :
1030 0 : return MsgProcessed;
1031 : }
1032 : case PPluginModule::Msg_NPN_ReloadPlugins__ID:
1033 : {
1034 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
1035 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1036 : }
1037 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_NPN_ReloadPlugins", OTHER);
1038 :
1039 0 : PickleIterator iter__(msg__);
1040 : bool aReloadPages;
1041 :
1042 0 : if ((!(Read((&(aReloadPages)), (&(msg__)), (&(iter__)))))) {
1043 0 : FatalError("Error deserializing 'bool'");
1044 0 : return MsgValueError;
1045 : }
1046 : // Sentinel = 'aReloadPages'
1047 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1141623534)))) {
1048 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
1049 0 : return MsgValueError;
1050 : }
1051 0 : (msg__).EndRead(iter__, (msg__).type());
1052 0 : PPluginModule::Transition(PPluginModule::Msg_NPN_ReloadPlugins__ID, (&(mState)));
1053 0 : if ((!(RecvNPN_ReloadPlugins(mozilla::Move(aReloadPages))))) {
1054 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1055 : // Error handled in mozilla::ipc::IPCResult
1056 0 : return MsgProcessingError;
1057 : }
1058 :
1059 0 : return MsgProcessed;
1060 : }
1061 : case PPluginModule::Msg_NotifyContentModuleDestroyed__ID:
1062 : {
1063 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
1064 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1065 : }
1066 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_NotifyContentModuleDestroyed", OTHER);
1067 :
1068 0 : PPluginModule::Transition(PPluginModule::Msg_NotifyContentModuleDestroyed__ID, (&(mState)));
1069 0 : if ((!(RecvNotifyContentModuleDestroyed()))) {
1070 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1071 : // Error handled in mozilla::ipc::IPCResult
1072 0 : return MsgProcessingError;
1073 : }
1074 :
1075 0 : return MsgProcessed;
1076 : }
1077 : case PPluginModule::Msg_ReturnClearSiteData__ID:
1078 : {
1079 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
1080 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1081 : }
1082 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_ReturnClearSiteData", OTHER);
1083 :
1084 0 : PickleIterator iter__(msg__);
1085 : NPError aRv;
1086 : uint64_t aCallbackId;
1087 :
1088 0 : if ((!(Read((&(aRv)), (&(msg__)), (&(iter__)))))) {
1089 0 : FatalError("Error deserializing 'NPError'");
1090 0 : return MsgValueError;
1091 : }
1092 : // Sentinel = 'aRv'
1093 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2742041894)))) {
1094 0 : mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
1095 0 : return MsgValueError;
1096 : }
1097 0 : if ((!(Read((&(aCallbackId)), (&(msg__)), (&(iter__)))))) {
1098 0 : FatalError("Error deserializing 'uint64_t'");
1099 0 : return MsgValueError;
1100 : }
1101 : // Sentinel = 'aCallbackId'
1102 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1362998144)))) {
1103 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
1104 0 : return MsgValueError;
1105 : }
1106 0 : (msg__).EndRead(iter__, (msg__).type());
1107 0 : PPluginModule::Transition(PPluginModule::Msg_ReturnClearSiteData__ID, (&(mState)));
1108 0 : if ((!(RecvReturnClearSiteData(mozilla::Move(aRv), mozilla::Move(aCallbackId))))) {
1109 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1110 : // Error handled in mozilla::ipc::IPCResult
1111 0 : return MsgProcessingError;
1112 : }
1113 :
1114 0 : return MsgProcessed;
1115 : }
1116 : case PPluginModule::Msg_ReturnSitesWithData__ID:
1117 : {
1118 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
1119 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1120 : }
1121 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_ReturnSitesWithData", OTHER);
1122 :
1123 0 : PickleIterator iter__(msg__);
1124 0 : nsTArray<nsCString> aSites;
1125 : uint64_t aCallbackId;
1126 :
1127 0 : if ((!(Read((&(aSites)), (&(msg__)), (&(iter__)))))) {
1128 0 : FatalError("Error deserializing 'nsTArray'");
1129 0 : return MsgValueError;
1130 : }
1131 : // Sentinel = 'aSites'
1132 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2169354461)))) {
1133 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
1134 0 : return MsgValueError;
1135 : }
1136 0 : if ((!(Read((&(aCallbackId)), (&(msg__)), (&(iter__)))))) {
1137 0 : FatalError("Error deserializing 'uint64_t'");
1138 0 : return MsgValueError;
1139 : }
1140 : // Sentinel = 'aCallbackId'
1141 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1362998144)))) {
1142 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
1143 0 : return MsgValueError;
1144 : }
1145 0 : (msg__).EndRead(iter__, (msg__).type());
1146 0 : PPluginModule::Transition(PPluginModule::Msg_ReturnSitesWithData__ID, (&(mState)));
1147 0 : if ((!(RecvReturnSitesWithData(mozilla::Move(aSites), mozilla::Move(aCallbackId))))) {
1148 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1149 : // Error handled in mozilla::ipc::IPCResult
1150 0 : return MsgProcessingError;
1151 : }
1152 :
1153 0 : return MsgProcessed;
1154 : }
1155 : default:
1156 : {
1157 0 : return MsgNotKnown;
1158 : }
1159 : case SHMEM_CREATED_MESSAGE_TYPE:
1160 : {
1161 0 : if ((!(ShmemCreated(msg__)))) {
1162 0 : return MsgPayloadError;
1163 : }
1164 0 : return MsgProcessed;
1165 : }
1166 : case SHMEM_DESTROYED_MESSAGE_TYPE:
1167 : {
1168 0 : if ((!(ShmemDestroyed(msg__)))) {
1169 0 : return MsgPayloadError;
1170 : }
1171 0 : return MsgProcessed;
1172 : }
1173 : }
1174 : }
1175 :
1176 0 : auto PPluginModuleParent::OnMessageReceived(
1177 : const Message& msg__,
1178 : Message*& reply__) -> PPluginModuleParent::Result
1179 : {
1180 0 : int32_t route__ = (msg__).routing_id();
1181 0 : if ((MSG_ROUTING_CONTROL) != (route__)) {
1182 0 : ChannelListener* routed__ = Lookup(route__);
1183 0 : if ((!(routed__))) {
1184 0 : return MsgRouteError;
1185 : }
1186 0 : return (routed__)->OnMessageReceived(msg__, reply__);
1187 : }
1188 :
1189 0 : switch ((msg__).type()) {
1190 : case PPluginModule::Msg_NPN_SetException__ID:
1191 : {
1192 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
1193 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1194 : }
1195 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_NPN_SetException", OTHER);
1196 :
1197 0 : PickleIterator iter__(msg__);
1198 0 : nsCString message;
1199 :
1200 0 : if ((!(Read((&(message)), (&(msg__)), (&(iter__)))))) {
1201 0 : FatalError("Error deserializing 'nsCString'");
1202 0 : return MsgValueError;
1203 : }
1204 : // Sentinel = 'message'
1205 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1366108954)))) {
1206 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
1207 0 : return MsgValueError;
1208 : }
1209 0 : (msg__).EndRead(iter__, (msg__).type());
1210 0 : PPluginModule::Transition(PPluginModule::Msg_NPN_SetException__ID, (&(mState)));
1211 0 : int32_t id__ = MSG_ROUTING_CONTROL;
1212 0 : if ((!(RecvNPN_SetException(mozilla::Move(message))))) {
1213 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1214 : // Error handled in mozilla::ipc::IPCResult
1215 0 : return MsgProcessingError;
1216 : }
1217 :
1218 0 : reply__ = PPluginModule::Reply_NPN_SetException(id__);
1219 :
1220 0 : (reply__)->set_sync();
1221 0 : (reply__)->set_reply();
1222 :
1223 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
1224 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1225 : }
1226 0 : return MsgProcessed;
1227 : }
1228 : default:
1229 : {
1230 0 : return MsgNotKnown;
1231 : }
1232 : }
1233 : }
1234 :
1235 0 : auto PPluginModuleParent::OnCallReceived(
1236 : const Message& msg__,
1237 : Message*& reply__) -> PPluginModuleParent::Result
1238 : {
1239 0 : int32_t route__ = (msg__).routing_id();
1240 0 : if ((MSG_ROUTING_CONTROL) != (route__)) {
1241 0 : ChannelListener* routed__ = Lookup(route__);
1242 0 : if ((!(routed__))) {
1243 0 : return MsgRouteError;
1244 : }
1245 0 : return (routed__)->OnCallReceived(msg__, reply__);
1246 : }
1247 :
1248 0 : switch ((msg__).type()) {
1249 : case PPluginModule::Msg_ProcessSomeEvents__ID:
1250 : {
1251 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
1252 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1253 : }
1254 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_ProcessSomeEvents", OTHER);
1255 :
1256 0 : PPluginModule::Transition(PPluginModule::Msg_ProcessSomeEvents__ID, (&(mState)));
1257 0 : int32_t id__ = MSG_ROUTING_CONTROL;
1258 0 : if ((!(AnswerProcessSomeEvents()))) {
1259 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1260 : // Error handled in mozilla::ipc::IPCResult
1261 0 : return MsgProcessingError;
1262 : }
1263 :
1264 0 : reply__ = PPluginModule::Reply_ProcessSomeEvents(id__);
1265 :
1266 0 : (reply__)->set_interrupt();
1267 0 : (reply__)->set_reply();
1268 :
1269 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
1270 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1271 : }
1272 0 : return MsgProcessed;
1273 : }
1274 : case PPluginModule::Msg_GetKeyState__ID:
1275 : {
1276 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
1277 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1278 : }
1279 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_GetKeyState", OTHER);
1280 :
1281 0 : PickleIterator iter__(msg__);
1282 : int32_t aVirtKey;
1283 :
1284 0 : if ((!(Read((&(aVirtKey)), (&(msg__)), (&(iter__)))))) {
1285 0 : FatalError("Error deserializing 'int32_t'");
1286 0 : return MsgValueError;
1287 : }
1288 : // Sentinel = 'aVirtKey'
1289 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3853288737)))) {
1290 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
1291 0 : return MsgValueError;
1292 : }
1293 0 : (msg__).EndRead(iter__, (msg__).type());
1294 0 : PPluginModule::Transition(PPluginModule::Msg_GetKeyState__ID, (&(mState)));
1295 0 : int32_t id__ = MSG_ROUTING_CONTROL;
1296 : int16_t aState;
1297 0 : if ((!(AnswerGetKeyState(mozilla::Move(aVirtKey), (&(aState)))))) {
1298 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1299 : // Error handled in mozilla::ipc::IPCResult
1300 0 : return MsgProcessingError;
1301 : }
1302 :
1303 0 : reply__ = PPluginModule::Reply_GetKeyState(id__);
1304 :
1305 0 : Write(aState, reply__);
1306 : // Sentinel = 'aState'
1307 0 : (reply__)->WriteSentinel(3694751962);
1308 0 : (reply__)->set_interrupt();
1309 0 : (reply__)->set_reply();
1310 :
1311 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
1312 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1313 : }
1314 0 : return MsgProcessed;
1315 : }
1316 : case PPluginModule::Msg_NPN_SetValue_NPPVpluginRequiresAudioDeviceChanges__ID:
1317 : {
1318 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
1319 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1320 : }
1321 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_NPN_SetValue_NPPVpluginRequiresAudioDeviceChanges", OTHER);
1322 :
1323 0 : PickleIterator iter__(msg__);
1324 : bool shouldRegister;
1325 :
1326 0 : if ((!(Read((&(shouldRegister)), (&(msg__)), (&(iter__)))))) {
1327 0 : FatalError("Error deserializing 'bool'");
1328 0 : return MsgValueError;
1329 : }
1330 : // Sentinel = 'shouldRegister'
1331 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 397502372)))) {
1332 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
1333 0 : return MsgValueError;
1334 : }
1335 0 : (msg__).EndRead(iter__, (msg__).type());
1336 0 : PPluginModule::Transition(PPluginModule::Msg_NPN_SetValue_NPPVpluginRequiresAudioDeviceChanges__ID, (&(mState)));
1337 0 : int32_t id__ = MSG_ROUTING_CONTROL;
1338 : NPError result;
1339 0 : if ((!(AnswerNPN_SetValue_NPPVpluginRequiresAudioDeviceChanges(mozilla::Move(shouldRegister), (&(result)))))) {
1340 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1341 : // Error handled in mozilla::ipc::IPCResult
1342 0 : return MsgProcessingError;
1343 : }
1344 :
1345 0 : reply__ = PPluginModule::Reply_NPN_SetValue_NPPVpluginRequiresAudioDeviceChanges(id__);
1346 :
1347 0 : Write(result, reply__);
1348 : // Sentinel = 'result'
1349 0 : (reply__)->WriteSentinel(3991766165);
1350 0 : (reply__)->set_interrupt();
1351 0 : (reply__)->set_reply();
1352 :
1353 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
1354 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1355 : }
1356 0 : return MsgProcessed;
1357 : }
1358 : case PPluginModule::Msg_GetFileName__ID:
1359 : {
1360 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
1361 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1362 : }
1363 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_GetFileName", OTHER);
1364 :
1365 0 : PickleIterator iter__(msg__);
1366 : GetFileNameFunc aFunc;
1367 : OpenFileNameIPC aOfnIn;
1368 :
1369 0 : if ((!(Read((&(aFunc)), (&(msg__)), (&(iter__)))))) {
1370 0 : FatalError("Error deserializing 'GetFileNameFunc'");
1371 0 : return MsgValueError;
1372 : }
1373 : // Sentinel = 'aFunc'
1374 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2248658374)))) {
1375 0 : mozilla::ipc::SentinelReadError("Error deserializing 'GetFileNameFunc'");
1376 0 : return MsgValueError;
1377 : }
1378 0 : if ((!(Read((&(aOfnIn)), (&(msg__)), (&(iter__)))))) {
1379 0 : FatalError("Error deserializing 'OpenFileNameIPC'");
1380 0 : return MsgValueError;
1381 : }
1382 : // Sentinel = 'aOfnIn'
1383 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2594274587)))) {
1384 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OpenFileNameIPC'");
1385 0 : return MsgValueError;
1386 : }
1387 0 : (msg__).EndRead(iter__, (msg__).type());
1388 0 : PPluginModule::Transition(PPluginModule::Msg_GetFileName__ID, (&(mState)));
1389 0 : int32_t id__ = MSG_ROUTING_CONTROL;
1390 : OpenFileNameRetIPC aOfnOut;
1391 : bool aResult;
1392 0 : if ((!(AnswerGetFileName(mozilla::Move(aFunc), mozilla::Move(aOfnIn), (&(aOfnOut)), (&(aResult)))))) {
1393 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1394 : // Error handled in mozilla::ipc::IPCResult
1395 0 : return MsgProcessingError;
1396 : }
1397 :
1398 0 : reply__ = PPluginModule::Reply_GetFileName(id__);
1399 :
1400 0 : Write(aOfnOut, reply__);
1401 : // Sentinel = 'aOfnOut'
1402 0 : (reply__)->WriteSentinel(2025643555);
1403 0 : Write(aResult, reply__);
1404 : // Sentinel = 'aResult'
1405 0 : (reply__)->WriteSentinel(3888726089);
1406 0 : (reply__)->set_interrupt();
1407 0 : (reply__)->set_reply();
1408 :
1409 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
1410 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1411 : }
1412 0 : return MsgProcessed;
1413 : }
1414 : case PPluginModule::Msg_SetCursorPos__ID:
1415 : {
1416 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
1417 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1418 : }
1419 0 : AUTO_PROFILER_LABEL("PPluginModule::Msg_SetCursorPos", OTHER);
1420 :
1421 0 : PickleIterator iter__(msg__);
1422 : int x;
1423 : int y;
1424 :
1425 0 : if ((!(Read((&(x)), (&(msg__)), (&(iter__)))))) {
1426 0 : FatalError("Error deserializing 'int'");
1427 0 : return MsgValueError;
1428 : }
1429 : // Sentinel = 'x'
1430 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2475144313)))) {
1431 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int'");
1432 0 : return MsgValueError;
1433 : }
1434 0 : if ((!(Read((&(y)), (&(msg__)), (&(iter__)))))) {
1435 0 : FatalError("Error deserializing 'int'");
1436 0 : return MsgValueError;
1437 : }
1438 : // Sentinel = 'y'
1439 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2603144696)))) {
1440 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int'");
1441 0 : return MsgValueError;
1442 : }
1443 0 : (msg__).EndRead(iter__, (msg__).type());
1444 0 : PPluginModule::Transition(PPluginModule::Msg_SetCursorPos__ID, (&(mState)));
1445 0 : int32_t id__ = MSG_ROUTING_CONTROL;
1446 : bool aResult;
1447 0 : if ((!(AnswerSetCursorPos(mozilla::Move(x), mozilla::Move(y), (&(aResult)))))) {
1448 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1449 : // Error handled in mozilla::ipc::IPCResult
1450 0 : return MsgProcessingError;
1451 : }
1452 :
1453 0 : reply__ = PPluginModule::Reply_SetCursorPos(id__);
1454 :
1455 0 : Write(aResult, reply__);
1456 : // Sentinel = 'aResult'
1457 0 : (reply__)->WriteSentinel(3888726089);
1458 0 : (reply__)->set_interrupt();
1459 0 : (reply__)->set_reply();
1460 :
1461 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginModuleParent")) {
1462 0 : mozilla::ipc::LogMessageForProtocol("PPluginModuleParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1463 : }
1464 0 : return MsgProcessed;
1465 : }
1466 : default:
1467 : {
1468 0 : return MsgNotKnown;
1469 : }
1470 : }
1471 : }
1472 :
1473 0 : auto PPluginModuleParent::GetProtocolTypeId() -> int32_t
1474 : {
1475 0 : return PPluginModuleMsgStart;
1476 : }
1477 :
1478 0 : auto PPluginModuleParent::OnChannelClose() -> void
1479 : {
1480 0 : DestroySubtree(NormalShutdown);
1481 0 : DeallocSubtree();
1482 0 : DeallocShmems();
1483 0 : DeallocPPluginModuleParent();
1484 0 : }
1485 :
1486 0 : auto PPluginModuleParent::OnChannelError() -> void
1487 : {
1488 0 : DestroySubtree(AbnormalShutdown);
1489 0 : DeallocSubtree();
1490 0 : DeallocShmems();
1491 0 : DeallocPPluginModuleParent();
1492 0 : }
1493 :
1494 0 : auto PPluginModuleParent::ProcessNativeEventsInInterruptCall() -> void
1495 : {
1496 : #ifdef OS_WIN
1497 : (mChannel).ProcessNativeEventsInInterruptCall();
1498 : #else
1499 0 : FatalError("This method is Windows-only");
1500 : #endif
1501 0 : }
1502 :
1503 0 : auto PPluginModuleParent::ProtocolName() const -> const char*
1504 : {
1505 0 : return "PPluginModuleParent";
1506 : }
1507 :
1508 0 : auto PPluginModuleParent::DestroySubtree(ActorDestroyReason why) -> void
1509 : {
1510 0 : ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
1511 :
1512 : {
1513 : // Recursively shutting down PPluginInstance kids
1514 0 : nsTArray<PPluginInstanceParent*> kids;
1515 : // Accumulate kids into a stable structure to iterate over
1516 0 : ManagedPPluginInstanceParent(kids);
1517 0 : for (auto& kid : kids) {
1518 : // Guarding against a child removing a sibling from the list during the iteration.
1519 0 : if ((mManagedPPluginInstanceParent).Contains(kid)) {
1520 0 : (kid)->DestroySubtree(subtreewhy);
1521 : }
1522 : }
1523 : }
1524 :
1525 : // Reject owning pending promises.
1526 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
1527 :
1528 : // Finally, destroy "us".
1529 0 : ActorDestroy(why);
1530 0 : }
1531 :
1532 0 : auto PPluginModuleParent::DeallocSubtree() -> void
1533 : {
1534 : {
1535 : // Recursively deleting PPluginInstance kids
1536 0 : for (auto iter = (mManagedPPluginInstanceParent).Iter(); (!((iter).Done())); (iter).Next()) {
1537 0 : (((iter).Get())->GetKey())->DeallocSubtree();
1538 : }
1539 :
1540 0 : for (auto iter = (mManagedPPluginInstanceParent).Iter(); (!((iter).Done())); (iter).Next()) {
1541 0 : DeallocPPluginInstanceParent(((iter).Get())->GetKey());
1542 : }
1543 0 : (mManagedPPluginInstanceParent).Clear();
1544 : }
1545 0 : }
1546 :
1547 0 : auto PPluginModuleParent::DeallocPPluginModuleParent() -> void
1548 : {
1549 0 : }
1550 :
1551 0 : auto PPluginModuleParent::Write(
1552 : const FileDescriptor& v__,
1553 : Message* msg__) -> void
1554 : {
1555 0 : FileDescriptor::PickleType pfd = (v__).ShareTo(FileDescriptor::IPDLPrivate(), OtherPid());
1556 0 : IPC::WriteParam(msg__, pfd);
1557 0 : }
1558 :
1559 0 : auto PPluginModuleParent::Read(
1560 : FileDescriptor* v__,
1561 : const Message* msg__,
1562 : PickleIterator* iter__) -> bool
1563 : {
1564 0 : FileDescriptor::PickleType pfd;
1565 0 : if ((!(IPC::ReadParam(msg__, iter__, (&(pfd)))))) {
1566 0 : return false;
1567 : }
1568 :
1569 0 : FileDescriptor fd = FileDescriptor(FileDescriptor::IPDLPrivate(), pfd);
1570 0 : if ((!((fd).IsValid()))) {
1571 0 : mozilla::ipc::ProtocolErrorBreakpoint("[PPluginModuleParent] Received an invalid file descriptor!");
1572 : }
1573 :
1574 0 : (*(v__)) = fd;
1575 0 : return true;
1576 : }
1577 :
1578 0 : auto PPluginModuleParent::Write(
1579 : const PPluginInstanceParent* v__,
1580 : Message* msg__,
1581 : bool nullable__) -> void
1582 : {
1583 : int32_t id;
1584 0 : if ((!(v__))) {
1585 0 : if ((!(nullable__))) {
1586 0 : FatalError("NULL actor value passed to non-nullable param");
1587 : }
1588 0 : id = 0;
1589 : }
1590 : else {
1591 0 : id = (v__)->Id();
1592 0 : if ((1) == (id)) {
1593 0 : FatalError("actor has been |delete|d");
1594 : }
1595 : }
1596 :
1597 0 : Write(id, msg__);
1598 0 : }
1599 :
1600 0 : auto PPluginModuleParent::Read(
1601 : PPluginInstanceParent** v__,
1602 : const Message* msg__,
1603 : PickleIterator* iter__,
1604 : bool nullable__) -> bool
1605 : {
1606 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPluginInstance", PPluginInstanceMsgStart);
1607 0 : if ((actor).isNothing()) {
1608 0 : return false;
1609 : }
1610 :
1611 0 : (*(v__)) = static_cast<PPluginInstanceParent*>((actor).value());
1612 0 : return true;
1613 : }
1614 :
1615 0 : auto PPluginModuleParent::Write(
1616 : const PluginSettings& v__,
1617 : Message* msg__) -> void
1618 : {
1619 0 : Write((v__).javascriptEnabled(), msg__);
1620 : // Sentinel = 'javascriptEnabled'
1621 0 : (msg__)->WriteSentinel(2386859081);
1622 0 : Write((v__).asdEnabled(), msg__);
1623 : // Sentinel = 'asdEnabled'
1624 0 : (msg__)->WriteSentinel(1609567717);
1625 0 : Write((v__).isOffline(), msg__);
1626 : // Sentinel = 'isOffline'
1627 0 : (msg__)->WriteSentinel(955516060);
1628 0 : Write((v__).supportsXembed(), msg__);
1629 : // Sentinel = 'supportsXembed'
1630 0 : (msg__)->WriteSentinel(3302895589);
1631 0 : Write((v__).supportsWindowless(), msg__);
1632 : // Sentinel = 'supportsWindowless'
1633 0 : (msg__)->WriteSentinel(594432401);
1634 0 : Write((v__).userAgent(), msg__);
1635 : // Sentinel = 'userAgent'
1636 0 : (msg__)->WriteSentinel(2311001113);
1637 0 : Write((v__).nativeCursorsSupported(), msg__);
1638 : // Sentinel = 'nativeCursorsSupported'
1639 0 : (msg__)->WriteSentinel(970581642);
1640 0 : }
1641 :
1642 0 : auto PPluginModuleParent::Read(
1643 : PluginSettings* v__,
1644 : const Message* msg__,
1645 : PickleIterator* iter__) -> bool
1646 : {
1647 0 : if ((!(Read((&((v__)->javascriptEnabled())), msg__, iter__)))) {
1648 0 : FatalError("Error deserializing 'javascriptEnabled' (bool) member of 'PluginSettings'");
1649 0 : return false;
1650 : }
1651 : // Sentinel = 'javascriptEnabled'
1652 0 : if ((!((msg__)->ReadSentinel(iter__, 2386859081)))) {
1653 0 : mozilla::ipc::SentinelReadError("Error deserializing 'javascriptEnabled' (bool) member of 'PluginSettings'");
1654 0 : return false;
1655 : }
1656 0 : if ((!(Read((&((v__)->asdEnabled())), msg__, iter__)))) {
1657 0 : FatalError("Error deserializing 'asdEnabled' (bool) member of 'PluginSettings'");
1658 0 : return false;
1659 : }
1660 : // Sentinel = 'asdEnabled'
1661 0 : if ((!((msg__)->ReadSentinel(iter__, 1609567717)))) {
1662 0 : mozilla::ipc::SentinelReadError("Error deserializing 'asdEnabled' (bool) member of 'PluginSettings'");
1663 0 : return false;
1664 : }
1665 0 : if ((!(Read((&((v__)->isOffline())), msg__, iter__)))) {
1666 0 : FatalError("Error deserializing 'isOffline' (bool) member of 'PluginSettings'");
1667 0 : return false;
1668 : }
1669 : // Sentinel = 'isOffline'
1670 0 : if ((!((msg__)->ReadSentinel(iter__, 955516060)))) {
1671 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isOffline' (bool) member of 'PluginSettings'");
1672 0 : return false;
1673 : }
1674 0 : if ((!(Read((&((v__)->supportsXembed())), msg__, iter__)))) {
1675 0 : FatalError("Error deserializing 'supportsXembed' (bool) member of 'PluginSettings'");
1676 0 : return false;
1677 : }
1678 : // Sentinel = 'supportsXembed'
1679 0 : if ((!((msg__)->ReadSentinel(iter__, 3302895589)))) {
1680 0 : mozilla::ipc::SentinelReadError("Error deserializing 'supportsXembed' (bool) member of 'PluginSettings'");
1681 0 : return false;
1682 : }
1683 0 : if ((!(Read((&((v__)->supportsWindowless())), msg__, iter__)))) {
1684 0 : FatalError("Error deserializing 'supportsWindowless' (bool) member of 'PluginSettings'");
1685 0 : return false;
1686 : }
1687 : // Sentinel = 'supportsWindowless'
1688 0 : if ((!((msg__)->ReadSentinel(iter__, 594432401)))) {
1689 0 : mozilla::ipc::SentinelReadError("Error deserializing 'supportsWindowless' (bool) member of 'PluginSettings'");
1690 0 : return false;
1691 : }
1692 0 : if ((!(Read((&((v__)->userAgent())), msg__, iter__)))) {
1693 0 : FatalError("Error deserializing 'userAgent' (nsCString) member of 'PluginSettings'");
1694 0 : return false;
1695 : }
1696 : // Sentinel = 'userAgent'
1697 0 : if ((!((msg__)->ReadSentinel(iter__, 2311001113)))) {
1698 0 : mozilla::ipc::SentinelReadError("Error deserializing 'userAgent' (nsCString) member of 'PluginSettings'");
1699 0 : return false;
1700 : }
1701 0 : if ((!(Read((&((v__)->nativeCursorsSupported())), msg__, iter__)))) {
1702 0 : FatalError("Error deserializing 'nativeCursorsSupported' (bool) member of 'PluginSettings'");
1703 0 : return false;
1704 : }
1705 : // Sentinel = 'nativeCursorsSupported'
1706 0 : if ((!((msg__)->ReadSentinel(iter__, 970581642)))) {
1707 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nativeCursorsSupported' (bool) member of 'PluginSettings'");
1708 0 : return false;
1709 : }
1710 0 : return true;
1711 : }
1712 :
1713 0 : auto PPluginModuleParent::Write(
1714 : Shmem& v__,
1715 : Message* msg__) -> void
1716 : {
1717 0 : IPC::WriteParam(msg__, v__);
1718 0 : (v__).RevokeRights(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
1719 0 : (v__).forget(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
1720 0 : }
1721 :
1722 0 : auto PPluginModuleParent::Read(
1723 : Shmem* v__,
1724 : const Message* msg__,
1725 : PickleIterator* iter__) -> bool
1726 : {
1727 0 : Shmem tmp;
1728 0 : if ((!(IPC::ReadParam(msg__, iter__, (&(tmp)))))) {
1729 0 : return false;
1730 : }
1731 :
1732 0 : Shmem::id_t shmemid = (tmp).Id(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
1733 0 : Shmem::SharedMemory* rawmem = LookupSharedMemory(shmemid);
1734 0 : if (rawmem) {
1735 0 : (*(v__)) = Shmem(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead(), rawmem, shmemid);
1736 0 : return true;
1737 : }
1738 0 : (*(v__)) = Shmem();
1739 0 : return true;
1740 : }
1741 :
1742 :
1743 :
1744 : } // namespace plugins
1745 : } // namespace mozilla
|