Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/plugins/PPluginScriptableObjectParent.h"
8 : #include "ipc/IPCMessageUtils.h"
9 :
10 : #include "mozilla/plugins/PPluginInstanceParent.h"
11 :
12 : #include "nsIFile.h"
13 : #include "GeckoProfiler.h"
14 :
15 : namespace mozilla {
16 : namespace plugins {
17 :
18 :
19 0 : auto PPluginScriptableObjectParent::Recv__delete__() -> mozilla::ipc::IPCResult
20 : {
21 0 : return IPC_OK();
22 : }
23 :
24 :
25 0 : MOZ_IMPLICIT PPluginScriptableObjectParent::PPluginScriptableObjectParent() :
26 : mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
27 0 : mState(PPluginScriptableObject::__Dead)
28 : {
29 0 : MOZ_COUNT_CTOR(PPluginScriptableObjectParent);
30 0 : }
31 :
32 0 : PPluginScriptableObjectParent::~PPluginScriptableObjectParent()
33 : {
34 0 : MOZ_COUNT_DTOR(PPluginScriptableObjectParent);
35 0 : }
36 :
37 0 : auto PPluginScriptableObjectParent::Manager() const -> PPluginInstanceParent*
38 : {
39 0 : return static_cast<PPluginInstanceParent*>(IProtocol::Manager());
40 : }
41 :
42 0 : auto PPluginScriptableObjectParent::Send__delete__(PPluginScriptableObjectParent* actor) -> bool
43 : {
44 0 : if ((!(actor))) {
45 0 : return false;
46 : }
47 :
48 0 : IPC::Message* msg__ = PPluginScriptableObject::Msg___delete__((actor)->Id());
49 :
50 0 : (actor)->Write(actor, msg__, false);
51 : // Sentinel = 'actor'
52 0 : (msg__)->WriteSentinel(875202478);
53 :
54 :
55 :
56 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
57 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
58 : }
59 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg___delete__", OTHER);
60 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg___delete____ID, (&((actor)->mState)));
61 :
62 0 : bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
63 :
64 0 : IProtocol* mgr = (actor)->Manager();
65 0 : (actor)->DestroySubtree(Deletion);
66 0 : (actor)->DeallocSubtree();
67 0 : (mgr)->RemoveManagee(PPluginScriptableObjectMsgStart, actor);
68 0 : return sendok__;
69 : }
70 :
71 0 : auto PPluginScriptableObjectParent::CallInvalidate() -> bool
72 : {
73 0 : IPC::Message* msg__ = PPluginScriptableObject::Msg_Invalidate(Id());
74 :
75 :
76 0 : (msg__)->set_interrupt();
77 :
78 :
79 0 : Message reply__;
80 :
81 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
82 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
83 : }
84 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Invalidate", OTHER);
85 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Invalidate__ID, (&(mState)));
86 :
87 : bool sendok__;
88 : {
89 : AutoProfilerTracing syncIPCTracer(
90 : "IPC",
91 0 : "PPluginScriptableObject::Msg_Invalidate");
92 0 : sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
93 : }
94 0 : if ((!(sendok__))) {
95 0 : return false;
96 : }
97 :
98 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
99 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
100 : }
101 :
102 0 : return true;
103 : }
104 :
105 0 : auto PPluginScriptableObjectParent::CallHasMethod(
106 : const PluginIdentifier& aId,
107 : bool* aHasMethod) -> bool
108 : {
109 0 : IPC::Message* msg__ = PPluginScriptableObject::Msg_HasMethod(Id());
110 :
111 0 : Write(aId, msg__);
112 : // Sentinel = 'aId'
113 0 : (msg__)->WriteSentinel(2735041817);
114 :
115 0 : (msg__)->set_interrupt();
116 :
117 :
118 0 : Message reply__;
119 :
120 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
121 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
122 : }
123 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_HasMethod", OTHER);
124 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_HasMethod__ID, (&(mState)));
125 :
126 : bool sendok__;
127 : {
128 : AutoProfilerTracing syncIPCTracer(
129 : "IPC",
130 0 : "PPluginScriptableObject::Msg_HasMethod");
131 0 : sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
132 : }
133 0 : if ((!(sendok__))) {
134 0 : return false;
135 : }
136 :
137 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
138 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
139 : }
140 :
141 0 : PickleIterator iter__(reply__);
142 :
143 0 : if ((!(Read(aHasMethod, (&(reply__)), (&(iter__)))))) {
144 0 : FatalError("Error deserializing 'bool'");
145 0 : return false;
146 : }
147 : // Sentinel = 'aHasMethod'
148 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3301641726)))) {
149 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
150 0 : return false;
151 : }
152 0 : (reply__).EndRead(iter__, (reply__).type());
153 :
154 0 : return true;
155 : }
156 :
157 0 : auto PPluginScriptableObjectParent::CallInvoke(
158 : const PluginIdentifier& aId,
159 : const nsTArray<Variant>& aArgs,
160 : Variant* aResult,
161 : bool* aSuccess) -> bool
162 : {
163 0 : IPC::Message* msg__ = PPluginScriptableObject::Msg_Invoke(Id());
164 :
165 0 : Write(aId, msg__);
166 : // Sentinel = 'aId'
167 0 : (msg__)->WriteSentinel(2735041817);
168 0 : Write(aArgs, msg__);
169 : // Sentinel = 'aArgs'
170 0 : (msg__)->WriteSentinel(424150951);
171 :
172 0 : (msg__)->set_interrupt();
173 :
174 :
175 0 : Message reply__;
176 :
177 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
178 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
179 : }
180 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Invoke", OTHER);
181 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Invoke__ID, (&(mState)));
182 :
183 : bool sendok__;
184 : {
185 : AutoProfilerTracing syncIPCTracer(
186 : "IPC",
187 0 : "PPluginScriptableObject::Msg_Invoke");
188 0 : sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
189 : }
190 0 : if ((!(sendok__))) {
191 0 : return false;
192 : }
193 :
194 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
195 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
196 : }
197 :
198 0 : PickleIterator iter__(reply__);
199 :
200 0 : if ((!(Read(aResult, (&(reply__)), (&(iter__)))))) {
201 0 : FatalError("Error deserializing 'Variant'");
202 0 : return false;
203 : }
204 : // Sentinel = 'aResult'
205 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) {
206 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Variant'");
207 0 : return false;
208 : }
209 0 : if ((!(Read(aSuccess, (&(reply__)), (&(iter__)))))) {
210 0 : FatalError("Error deserializing 'bool'");
211 0 : return false;
212 : }
213 : // Sentinel = 'aSuccess'
214 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
215 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
216 0 : return false;
217 : }
218 0 : (reply__).EndRead(iter__, (reply__).type());
219 :
220 0 : return true;
221 : }
222 :
223 0 : auto PPluginScriptableObjectParent::CallInvokeDefault(
224 : const nsTArray<Variant>& aArgs,
225 : Variant* aResult,
226 : bool* aSuccess) -> bool
227 : {
228 0 : IPC::Message* msg__ = PPluginScriptableObject::Msg_InvokeDefault(Id());
229 :
230 0 : Write(aArgs, msg__);
231 : // Sentinel = 'aArgs'
232 0 : (msg__)->WriteSentinel(424150951);
233 :
234 0 : (msg__)->set_interrupt();
235 :
236 :
237 0 : Message reply__;
238 :
239 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
240 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
241 : }
242 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_InvokeDefault", OTHER);
243 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_InvokeDefault__ID, (&(mState)));
244 :
245 : bool sendok__;
246 : {
247 : AutoProfilerTracing syncIPCTracer(
248 : "IPC",
249 0 : "PPluginScriptableObject::Msg_InvokeDefault");
250 0 : sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
251 : }
252 0 : if ((!(sendok__))) {
253 0 : return false;
254 : }
255 :
256 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
257 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
258 : }
259 :
260 0 : PickleIterator iter__(reply__);
261 :
262 0 : if ((!(Read(aResult, (&(reply__)), (&(iter__)))))) {
263 0 : FatalError("Error deserializing 'Variant'");
264 0 : return false;
265 : }
266 : // Sentinel = 'aResult'
267 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) {
268 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Variant'");
269 0 : return false;
270 : }
271 0 : if ((!(Read(aSuccess, (&(reply__)), (&(iter__)))))) {
272 0 : FatalError("Error deserializing 'bool'");
273 0 : return false;
274 : }
275 : // Sentinel = 'aSuccess'
276 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
277 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
278 0 : return false;
279 : }
280 0 : (reply__).EndRead(iter__, (reply__).type());
281 :
282 0 : return true;
283 : }
284 :
285 0 : auto PPluginScriptableObjectParent::CallHasProperty(
286 : const PluginIdentifier& aId,
287 : bool* aHasProperty) -> bool
288 : {
289 0 : IPC::Message* msg__ = PPluginScriptableObject::Msg_HasProperty(Id());
290 :
291 0 : Write(aId, msg__);
292 : // Sentinel = 'aId'
293 0 : (msg__)->WriteSentinel(2735041817);
294 :
295 0 : (msg__)->set_interrupt();
296 :
297 :
298 0 : Message reply__;
299 :
300 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
301 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
302 : }
303 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_HasProperty", OTHER);
304 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_HasProperty__ID, (&(mState)));
305 :
306 : bool sendok__;
307 : {
308 : AutoProfilerTracing syncIPCTracer(
309 : "IPC",
310 0 : "PPluginScriptableObject::Msg_HasProperty");
311 0 : sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
312 : }
313 0 : if ((!(sendok__))) {
314 0 : return false;
315 : }
316 :
317 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
318 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
319 : }
320 :
321 0 : PickleIterator iter__(reply__);
322 :
323 0 : if ((!(Read(aHasProperty, (&(reply__)), (&(iter__)))))) {
324 0 : FatalError("Error deserializing 'bool'");
325 0 : return false;
326 : }
327 : // Sentinel = 'aHasProperty'
328 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 581499552)))) {
329 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
330 0 : return false;
331 : }
332 0 : (reply__).EndRead(iter__, (reply__).type());
333 :
334 0 : return true;
335 : }
336 :
337 0 : auto PPluginScriptableObjectParent::CallSetProperty(
338 : const PluginIdentifier& aId,
339 : const Variant& aValue,
340 : bool* aSuccess) -> bool
341 : {
342 0 : IPC::Message* msg__ = PPluginScriptableObject::Msg_SetProperty(Id());
343 :
344 0 : Write(aId, msg__);
345 : // Sentinel = 'aId'
346 0 : (msg__)->WriteSentinel(2735041817);
347 0 : Write(aValue, msg__);
348 : // Sentinel = 'aValue'
349 0 : (msg__)->WriteSentinel(2522186438);
350 :
351 0 : (msg__)->set_interrupt();
352 :
353 :
354 0 : Message reply__;
355 :
356 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
357 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
358 : }
359 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_SetProperty", OTHER);
360 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_SetProperty__ID, (&(mState)));
361 :
362 : bool sendok__;
363 : {
364 : AutoProfilerTracing syncIPCTracer(
365 : "IPC",
366 0 : "PPluginScriptableObject::Msg_SetProperty");
367 0 : sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
368 : }
369 0 : if ((!(sendok__))) {
370 0 : return false;
371 : }
372 :
373 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
374 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
375 : }
376 :
377 0 : PickleIterator iter__(reply__);
378 :
379 0 : if ((!(Read(aSuccess, (&(reply__)), (&(iter__)))))) {
380 0 : FatalError("Error deserializing 'bool'");
381 0 : return false;
382 : }
383 : // Sentinel = 'aSuccess'
384 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
385 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
386 0 : return false;
387 : }
388 0 : (reply__).EndRead(iter__, (reply__).type());
389 :
390 0 : return true;
391 : }
392 :
393 0 : auto PPluginScriptableObjectParent::CallRemoveProperty(
394 : const PluginIdentifier& aId,
395 : bool* aSuccess) -> bool
396 : {
397 0 : IPC::Message* msg__ = PPluginScriptableObject::Msg_RemoveProperty(Id());
398 :
399 0 : Write(aId, msg__);
400 : // Sentinel = 'aId'
401 0 : (msg__)->WriteSentinel(2735041817);
402 :
403 0 : (msg__)->set_interrupt();
404 :
405 :
406 0 : Message reply__;
407 :
408 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
409 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
410 : }
411 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_RemoveProperty", OTHER);
412 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_RemoveProperty__ID, (&(mState)));
413 :
414 : bool sendok__;
415 : {
416 : AutoProfilerTracing syncIPCTracer(
417 : "IPC",
418 0 : "PPluginScriptableObject::Msg_RemoveProperty");
419 0 : sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
420 : }
421 0 : if ((!(sendok__))) {
422 0 : return false;
423 : }
424 :
425 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
426 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
427 : }
428 :
429 0 : PickleIterator iter__(reply__);
430 :
431 0 : if ((!(Read(aSuccess, (&(reply__)), (&(iter__)))))) {
432 0 : FatalError("Error deserializing 'bool'");
433 0 : return false;
434 : }
435 : // Sentinel = 'aSuccess'
436 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
437 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
438 0 : return false;
439 : }
440 0 : (reply__).EndRead(iter__, (reply__).type());
441 :
442 0 : return true;
443 : }
444 :
445 0 : auto PPluginScriptableObjectParent::CallEnumerate(
446 : nsTArray<PluginIdentifier>* aProperties,
447 : bool* aSuccess) -> bool
448 : {
449 0 : IPC::Message* msg__ = PPluginScriptableObject::Msg_Enumerate(Id());
450 :
451 :
452 0 : (msg__)->set_interrupt();
453 :
454 :
455 0 : Message reply__;
456 :
457 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
458 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
459 : }
460 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Enumerate", OTHER);
461 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Enumerate__ID, (&(mState)));
462 :
463 : bool sendok__;
464 : {
465 : AutoProfilerTracing syncIPCTracer(
466 : "IPC",
467 0 : "PPluginScriptableObject::Msg_Enumerate");
468 0 : sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
469 : }
470 0 : if ((!(sendok__))) {
471 0 : return false;
472 : }
473 :
474 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
475 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
476 : }
477 :
478 0 : PickleIterator iter__(reply__);
479 :
480 0 : if ((!(Read(aProperties, (&(reply__)), (&(iter__)))))) {
481 0 : FatalError("Error deserializing 'nsTArray'");
482 0 : return false;
483 : }
484 : // Sentinel = 'aProperties'
485 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 4118837589)))) {
486 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
487 0 : return false;
488 : }
489 0 : if ((!(Read(aSuccess, (&(reply__)), (&(iter__)))))) {
490 0 : FatalError("Error deserializing 'bool'");
491 0 : return false;
492 : }
493 : // Sentinel = 'aSuccess'
494 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
495 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
496 0 : return false;
497 : }
498 0 : (reply__).EndRead(iter__, (reply__).type());
499 :
500 0 : return true;
501 : }
502 :
503 0 : auto PPluginScriptableObjectParent::CallConstruct(
504 : const nsTArray<Variant>& aArgs,
505 : Variant* aResult,
506 : bool* aSuccess) -> bool
507 : {
508 0 : IPC::Message* msg__ = PPluginScriptableObject::Msg_Construct(Id());
509 :
510 0 : Write(aArgs, msg__);
511 : // Sentinel = 'aArgs'
512 0 : (msg__)->WriteSentinel(424150951);
513 :
514 0 : (msg__)->set_interrupt();
515 :
516 :
517 0 : Message reply__;
518 :
519 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
520 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
521 : }
522 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Construct", OTHER);
523 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Construct__ID, (&(mState)));
524 :
525 : bool sendok__;
526 : {
527 : AutoProfilerTracing syncIPCTracer(
528 : "IPC",
529 0 : "PPluginScriptableObject::Msg_Construct");
530 0 : sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
531 : }
532 0 : if ((!(sendok__))) {
533 0 : return false;
534 : }
535 :
536 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
537 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
538 : }
539 :
540 0 : PickleIterator iter__(reply__);
541 :
542 0 : if ((!(Read(aResult, (&(reply__)), (&(iter__)))))) {
543 0 : FatalError("Error deserializing 'Variant'");
544 0 : return false;
545 : }
546 : // Sentinel = 'aResult'
547 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) {
548 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Variant'");
549 0 : return false;
550 : }
551 0 : if ((!(Read(aSuccess, (&(reply__)), (&(iter__)))))) {
552 0 : FatalError("Error deserializing 'bool'");
553 0 : return false;
554 : }
555 : // Sentinel = 'aSuccess'
556 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
557 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
558 0 : return false;
559 : }
560 0 : (reply__).EndRead(iter__, (reply__).type());
561 :
562 0 : return true;
563 : }
564 :
565 0 : auto PPluginScriptableObjectParent::SendProtect() -> bool
566 : {
567 0 : IPC::Message* msg__ = PPluginScriptableObject::Msg_Protect(Id());
568 :
569 :
570 :
571 :
572 :
573 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
574 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
575 : }
576 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Protect", OTHER);
577 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Protect__ID, (&(mState)));
578 :
579 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
580 0 : return sendok__;
581 : }
582 :
583 0 : auto PPluginScriptableObjectParent::SendUnprotect() -> bool
584 : {
585 0 : IPC::Message* msg__ = PPluginScriptableObject::Msg_Unprotect(Id());
586 :
587 :
588 :
589 :
590 :
591 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
592 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
593 : }
594 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Unprotect", OTHER);
595 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Unprotect__ID, (&(mState)));
596 :
597 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
598 0 : return sendok__;
599 : }
600 :
601 0 : auto PPluginScriptableObjectParent::CallGetChildProperty(
602 : const PluginIdentifier& aId,
603 : bool* aHasProperty,
604 : bool* aHasMethod,
605 : Variant* aResult,
606 : bool* aSuccess) -> bool
607 : {
608 0 : IPC::Message* msg__ = PPluginScriptableObject::Msg_GetChildProperty(Id());
609 :
610 0 : Write(aId, msg__);
611 : // Sentinel = 'aId'
612 0 : (msg__)->WriteSentinel(2735041817);
613 :
614 0 : (msg__)->set_interrupt();
615 :
616 :
617 0 : Message reply__;
618 :
619 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
620 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
621 : }
622 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_GetChildProperty", OTHER);
623 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_GetChildProperty__ID, (&(mState)));
624 :
625 : bool sendok__;
626 : {
627 : AutoProfilerTracing syncIPCTracer(
628 : "IPC",
629 0 : "PPluginScriptableObject::Msg_GetChildProperty");
630 0 : sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
631 : }
632 0 : if ((!(sendok__))) {
633 0 : return false;
634 : }
635 :
636 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
637 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
638 : }
639 :
640 0 : PickleIterator iter__(reply__);
641 :
642 0 : if ((!(Read(aHasProperty, (&(reply__)), (&(iter__)))))) {
643 0 : FatalError("Error deserializing 'bool'");
644 0 : return false;
645 : }
646 : // Sentinel = 'aHasProperty'
647 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 581499552)))) {
648 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
649 0 : return false;
650 : }
651 0 : if ((!(Read(aHasMethod, (&(reply__)), (&(iter__)))))) {
652 0 : FatalError("Error deserializing 'bool'");
653 0 : return false;
654 : }
655 : // Sentinel = 'aHasMethod'
656 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3301641726)))) {
657 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
658 0 : return false;
659 : }
660 0 : if ((!(Read(aResult, (&(reply__)), (&(iter__)))))) {
661 0 : FatalError("Error deserializing 'Variant'");
662 0 : return false;
663 : }
664 : // Sentinel = 'aResult'
665 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) {
666 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Variant'");
667 0 : return false;
668 : }
669 0 : if ((!(Read(aSuccess, (&(reply__)), (&(iter__)))))) {
670 0 : FatalError("Error deserializing 'bool'");
671 0 : return false;
672 : }
673 : // Sentinel = 'aSuccess'
674 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
675 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
676 0 : return false;
677 : }
678 0 : (reply__).EndRead(iter__, (reply__).type());
679 :
680 0 : return true;
681 : }
682 :
683 0 : auto PPluginScriptableObjectParent::RemoveManagee(
684 : int32_t aProtocolId,
685 : ProtocolBase* aListener) -> void
686 : {
687 0 : FatalError("unreached");
688 0 : return;
689 : }
690 :
691 0 : auto PPluginScriptableObjectParent::OnMessageReceived(const Message& msg__) -> PPluginScriptableObjectParent::Result
692 : {
693 0 : switch ((msg__).type()) {
694 : case PPluginScriptableObject::Reply___delete____ID:
695 : {
696 0 : return MsgProcessed;
697 : }
698 : case PPluginScriptableObject::Msg___delete____ID:
699 : {
700 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
701 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
702 : }
703 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg___delete__", OTHER);
704 :
705 0 : PickleIterator iter__(msg__);
706 : PPluginScriptableObjectParent* actor;
707 :
708 0 : if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
709 0 : FatalError("Error deserializing 'PPluginScriptableObjectParent'");
710 0 : return MsgValueError;
711 : }
712 : // Sentinel = 'actor'
713 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
714 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PPluginScriptableObjectParent'");
715 0 : return MsgValueError;
716 : }
717 0 : (msg__).EndRead(iter__, (msg__).type());
718 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg___delete____ID, (&(mState)));
719 0 : if ((!(Recv__delete__()))) {
720 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
721 : // Error handled in mozilla::ipc::IPCResult
722 0 : return MsgProcessingError;
723 : }
724 :
725 :
726 0 : IProtocol* mgr = (actor)->Manager();
727 0 : (actor)->DestroySubtree(Deletion);
728 0 : (actor)->DeallocSubtree();
729 0 : (mgr)->RemoveManagee(PPluginScriptableObjectMsgStart, actor);
730 :
731 0 : return MsgProcessed;
732 : }
733 : case PPluginScriptableObject::Msg_Protect__ID:
734 : {
735 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
736 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
737 : }
738 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Protect", OTHER);
739 :
740 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Protect__ID, (&(mState)));
741 0 : if ((!(RecvProtect()))) {
742 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
743 : // Error handled in mozilla::ipc::IPCResult
744 0 : return MsgProcessingError;
745 : }
746 :
747 0 : return MsgProcessed;
748 : }
749 : case PPluginScriptableObject::Msg_Unprotect__ID:
750 : {
751 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
752 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
753 : }
754 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Unprotect", OTHER);
755 :
756 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Unprotect__ID, (&(mState)));
757 0 : if ((!(RecvUnprotect()))) {
758 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
759 : // Error handled in mozilla::ipc::IPCResult
760 0 : return MsgProcessingError;
761 : }
762 :
763 0 : return MsgProcessed;
764 : }
765 : default:
766 : {
767 0 : return MsgNotKnown;
768 : }
769 : }
770 : }
771 :
772 0 : auto PPluginScriptableObjectParent::OnMessageReceived(
773 : const Message& msg__,
774 : Message*& reply__) -> PPluginScriptableObjectParent::Result
775 : {
776 0 : return MsgNotKnown;
777 : }
778 :
779 0 : auto PPluginScriptableObjectParent::OnCallReceived(
780 : const Message& msg__,
781 : Message*& reply__) -> PPluginScriptableObjectParent::Result
782 : {
783 0 : switch ((msg__).type()) {
784 : case PPluginScriptableObject::Msg_NPN_Evaluate__ID:
785 : {
786 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
787 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
788 : }
789 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_NPN_Evaluate", OTHER);
790 :
791 0 : PickleIterator iter__(msg__);
792 0 : nsCString aScript;
793 :
794 0 : if ((!(Read((&(aScript)), (&(msg__)), (&(iter__)))))) {
795 0 : FatalError("Error deserializing 'nsCString'");
796 0 : return MsgValueError;
797 : }
798 : // Sentinel = 'aScript'
799 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 579042475)))) {
800 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
801 0 : return MsgValueError;
802 : }
803 0 : (msg__).EndRead(iter__, (msg__).type());
804 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_NPN_Evaluate__ID, (&(mState)));
805 0 : int32_t id__ = Id();
806 0 : Variant aResult;
807 : bool aSuccess;
808 0 : if ((!(AnswerNPN_Evaluate(mozilla::Move(aScript), (&(aResult)), (&(aSuccess)))))) {
809 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
810 : // Error handled in mozilla::ipc::IPCResult
811 0 : return MsgProcessingError;
812 : }
813 :
814 0 : reply__ = PPluginScriptableObject::Reply_NPN_Evaluate(id__);
815 :
816 0 : Write(aResult, reply__);
817 : // Sentinel = 'aResult'
818 0 : (reply__)->WriteSentinel(3888726089);
819 0 : Write(aSuccess, reply__);
820 : // Sentinel = 'aSuccess'
821 0 : (reply__)->WriteSentinel(2132928722);
822 0 : (reply__)->set_interrupt();
823 0 : (reply__)->set_reply();
824 :
825 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
826 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
827 : }
828 0 : return MsgProcessed;
829 : }
830 : case PPluginScriptableObject::Msg_HasMethod__ID:
831 : {
832 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
833 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
834 : }
835 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_HasMethod", OTHER);
836 :
837 0 : PickleIterator iter__(msg__);
838 0 : PluginIdentifier aId;
839 :
840 0 : if ((!(Read((&(aId)), (&(msg__)), (&(iter__)))))) {
841 0 : FatalError("Error deserializing 'PluginIdentifier'");
842 0 : return MsgValueError;
843 : }
844 : // Sentinel = 'aId'
845 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
846 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier'");
847 0 : return MsgValueError;
848 : }
849 0 : (msg__).EndRead(iter__, (msg__).type());
850 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_HasMethod__ID, (&(mState)));
851 0 : int32_t id__ = Id();
852 : bool aHasMethod;
853 0 : if ((!(AnswerHasMethod(mozilla::Move(aId), (&(aHasMethod)))))) {
854 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
855 : // Error handled in mozilla::ipc::IPCResult
856 0 : return MsgProcessingError;
857 : }
858 :
859 0 : reply__ = PPluginScriptableObject::Reply_HasMethod(id__);
860 :
861 0 : Write(aHasMethod, reply__);
862 : // Sentinel = 'aHasMethod'
863 0 : (reply__)->WriteSentinel(3301641726);
864 0 : (reply__)->set_interrupt();
865 0 : (reply__)->set_reply();
866 :
867 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
868 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
869 : }
870 0 : return MsgProcessed;
871 : }
872 : case PPluginScriptableObject::Msg_Invoke__ID:
873 : {
874 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
875 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
876 : }
877 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Invoke", OTHER);
878 :
879 0 : PickleIterator iter__(msg__);
880 0 : PluginIdentifier aId;
881 0 : nsTArray<Variant> aArgs;
882 :
883 0 : if ((!(Read((&(aId)), (&(msg__)), (&(iter__)))))) {
884 0 : FatalError("Error deserializing 'PluginIdentifier'");
885 0 : return MsgValueError;
886 : }
887 : // Sentinel = 'aId'
888 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
889 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier'");
890 0 : return MsgValueError;
891 : }
892 0 : if ((!(Read((&(aArgs)), (&(msg__)), (&(iter__)))))) {
893 0 : FatalError("Error deserializing 'nsTArray'");
894 0 : return MsgValueError;
895 : }
896 : // Sentinel = 'aArgs'
897 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 424150951)))) {
898 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
899 0 : return MsgValueError;
900 : }
901 0 : (msg__).EndRead(iter__, (msg__).type());
902 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Invoke__ID, (&(mState)));
903 0 : int32_t id__ = Id();
904 0 : Variant aResult;
905 : bool aSuccess;
906 0 : if ((!(AnswerInvoke(mozilla::Move(aId), mozilla::Move(aArgs), (&(aResult)), (&(aSuccess)))))) {
907 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
908 : // Error handled in mozilla::ipc::IPCResult
909 0 : return MsgProcessingError;
910 : }
911 :
912 0 : reply__ = PPluginScriptableObject::Reply_Invoke(id__);
913 :
914 0 : Write(aResult, reply__);
915 : // Sentinel = 'aResult'
916 0 : (reply__)->WriteSentinel(3888726089);
917 0 : Write(aSuccess, reply__);
918 : // Sentinel = 'aSuccess'
919 0 : (reply__)->WriteSentinel(2132928722);
920 0 : (reply__)->set_interrupt();
921 0 : (reply__)->set_reply();
922 :
923 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
924 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
925 : }
926 0 : return MsgProcessed;
927 : }
928 : case PPluginScriptableObject::Msg_InvokeDefault__ID:
929 : {
930 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
931 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
932 : }
933 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_InvokeDefault", OTHER);
934 :
935 0 : PickleIterator iter__(msg__);
936 0 : nsTArray<Variant> aArgs;
937 :
938 0 : if ((!(Read((&(aArgs)), (&(msg__)), (&(iter__)))))) {
939 0 : FatalError("Error deserializing 'nsTArray'");
940 0 : return MsgValueError;
941 : }
942 : // Sentinel = 'aArgs'
943 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 424150951)))) {
944 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
945 0 : return MsgValueError;
946 : }
947 0 : (msg__).EndRead(iter__, (msg__).type());
948 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_InvokeDefault__ID, (&(mState)));
949 0 : int32_t id__ = Id();
950 0 : Variant aResult;
951 : bool aSuccess;
952 0 : if ((!(AnswerInvokeDefault(mozilla::Move(aArgs), (&(aResult)), (&(aSuccess)))))) {
953 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
954 : // Error handled in mozilla::ipc::IPCResult
955 0 : return MsgProcessingError;
956 : }
957 :
958 0 : reply__ = PPluginScriptableObject::Reply_InvokeDefault(id__);
959 :
960 0 : Write(aResult, reply__);
961 : // Sentinel = 'aResult'
962 0 : (reply__)->WriteSentinel(3888726089);
963 0 : Write(aSuccess, reply__);
964 : // Sentinel = 'aSuccess'
965 0 : (reply__)->WriteSentinel(2132928722);
966 0 : (reply__)->set_interrupt();
967 0 : (reply__)->set_reply();
968 :
969 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
970 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
971 : }
972 0 : return MsgProcessed;
973 : }
974 : case PPluginScriptableObject::Msg_HasProperty__ID:
975 : {
976 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
977 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
978 : }
979 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_HasProperty", OTHER);
980 :
981 0 : PickleIterator iter__(msg__);
982 0 : PluginIdentifier aId;
983 :
984 0 : if ((!(Read((&(aId)), (&(msg__)), (&(iter__)))))) {
985 0 : FatalError("Error deserializing 'PluginIdentifier'");
986 0 : return MsgValueError;
987 : }
988 : // Sentinel = 'aId'
989 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
990 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier'");
991 0 : return MsgValueError;
992 : }
993 0 : (msg__).EndRead(iter__, (msg__).type());
994 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_HasProperty__ID, (&(mState)));
995 0 : int32_t id__ = Id();
996 : bool aHasProperty;
997 0 : if ((!(AnswerHasProperty(mozilla::Move(aId), (&(aHasProperty)))))) {
998 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
999 : // Error handled in mozilla::ipc::IPCResult
1000 0 : return MsgProcessingError;
1001 : }
1002 :
1003 0 : reply__ = PPluginScriptableObject::Reply_HasProperty(id__);
1004 :
1005 0 : Write(aHasProperty, reply__);
1006 : // Sentinel = 'aHasProperty'
1007 0 : (reply__)->WriteSentinel(581499552);
1008 0 : (reply__)->set_interrupt();
1009 0 : (reply__)->set_reply();
1010 :
1011 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
1012 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1013 : }
1014 0 : return MsgProcessed;
1015 : }
1016 : case PPluginScriptableObject::Msg_SetProperty__ID:
1017 : {
1018 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
1019 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1020 : }
1021 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_SetProperty", OTHER);
1022 :
1023 0 : PickleIterator iter__(msg__);
1024 0 : PluginIdentifier aId;
1025 0 : Variant aValue;
1026 :
1027 0 : if ((!(Read((&(aId)), (&(msg__)), (&(iter__)))))) {
1028 0 : FatalError("Error deserializing 'PluginIdentifier'");
1029 0 : return MsgValueError;
1030 : }
1031 : // Sentinel = 'aId'
1032 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
1033 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier'");
1034 0 : return MsgValueError;
1035 : }
1036 0 : if ((!(Read((&(aValue)), (&(msg__)), (&(iter__)))))) {
1037 0 : FatalError("Error deserializing 'Variant'");
1038 0 : return MsgValueError;
1039 : }
1040 : // Sentinel = 'aValue'
1041 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2522186438)))) {
1042 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Variant'");
1043 0 : return MsgValueError;
1044 : }
1045 0 : (msg__).EndRead(iter__, (msg__).type());
1046 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_SetProperty__ID, (&(mState)));
1047 0 : int32_t id__ = Id();
1048 : bool aSuccess;
1049 0 : if ((!(AnswerSetProperty(mozilla::Move(aId), mozilla::Move(aValue), (&(aSuccess)))))) {
1050 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1051 : // Error handled in mozilla::ipc::IPCResult
1052 0 : return MsgProcessingError;
1053 : }
1054 :
1055 0 : reply__ = PPluginScriptableObject::Reply_SetProperty(id__);
1056 :
1057 0 : Write(aSuccess, reply__);
1058 : // Sentinel = 'aSuccess'
1059 0 : (reply__)->WriteSentinel(2132928722);
1060 0 : (reply__)->set_interrupt();
1061 0 : (reply__)->set_reply();
1062 :
1063 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
1064 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1065 : }
1066 0 : return MsgProcessed;
1067 : }
1068 : case PPluginScriptableObject::Msg_RemoveProperty__ID:
1069 : {
1070 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
1071 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1072 : }
1073 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_RemoveProperty", OTHER);
1074 :
1075 0 : PickleIterator iter__(msg__);
1076 0 : PluginIdentifier aId;
1077 :
1078 0 : if ((!(Read((&(aId)), (&(msg__)), (&(iter__)))))) {
1079 0 : FatalError("Error deserializing 'PluginIdentifier'");
1080 0 : return MsgValueError;
1081 : }
1082 : // Sentinel = 'aId'
1083 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
1084 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier'");
1085 0 : return MsgValueError;
1086 : }
1087 0 : (msg__).EndRead(iter__, (msg__).type());
1088 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_RemoveProperty__ID, (&(mState)));
1089 0 : int32_t id__ = Id();
1090 : bool aSuccess;
1091 0 : if ((!(AnswerRemoveProperty(mozilla::Move(aId), (&(aSuccess)))))) {
1092 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1093 : // Error handled in mozilla::ipc::IPCResult
1094 0 : return MsgProcessingError;
1095 : }
1096 :
1097 0 : reply__ = PPluginScriptableObject::Reply_RemoveProperty(id__);
1098 :
1099 0 : Write(aSuccess, reply__);
1100 : // Sentinel = 'aSuccess'
1101 0 : (reply__)->WriteSentinel(2132928722);
1102 0 : (reply__)->set_interrupt();
1103 0 : (reply__)->set_reply();
1104 :
1105 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
1106 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1107 : }
1108 0 : return MsgProcessed;
1109 : }
1110 : case PPluginScriptableObject::Msg_Enumerate__ID:
1111 : {
1112 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
1113 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1114 : }
1115 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Enumerate", OTHER);
1116 :
1117 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Enumerate__ID, (&(mState)));
1118 0 : int32_t id__ = Id();
1119 0 : nsTArray<PluginIdentifier> aProperties;
1120 : bool aSuccess;
1121 0 : if ((!(AnswerEnumerate((&(aProperties)), (&(aSuccess)))))) {
1122 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1123 : // Error handled in mozilla::ipc::IPCResult
1124 0 : return MsgProcessingError;
1125 : }
1126 :
1127 0 : reply__ = PPluginScriptableObject::Reply_Enumerate(id__);
1128 :
1129 0 : Write(aProperties, reply__);
1130 : // Sentinel = 'aProperties'
1131 0 : (reply__)->WriteSentinel(4118837589);
1132 0 : Write(aSuccess, reply__);
1133 : // Sentinel = 'aSuccess'
1134 0 : (reply__)->WriteSentinel(2132928722);
1135 0 : (reply__)->set_interrupt();
1136 0 : (reply__)->set_reply();
1137 :
1138 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
1139 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1140 : }
1141 0 : return MsgProcessed;
1142 : }
1143 : case PPluginScriptableObject::Msg_Construct__ID:
1144 : {
1145 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
1146 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1147 : }
1148 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Construct", OTHER);
1149 :
1150 0 : PickleIterator iter__(msg__);
1151 0 : nsTArray<Variant> aArgs;
1152 :
1153 0 : if ((!(Read((&(aArgs)), (&(msg__)), (&(iter__)))))) {
1154 0 : FatalError("Error deserializing 'nsTArray'");
1155 0 : return MsgValueError;
1156 : }
1157 : // Sentinel = 'aArgs'
1158 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 424150951)))) {
1159 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
1160 0 : return MsgValueError;
1161 : }
1162 0 : (msg__).EndRead(iter__, (msg__).type());
1163 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Construct__ID, (&(mState)));
1164 0 : int32_t id__ = Id();
1165 0 : Variant aResult;
1166 : bool aSuccess;
1167 0 : if ((!(AnswerConstruct(mozilla::Move(aArgs), (&(aResult)), (&(aSuccess)))))) {
1168 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1169 : // Error handled in mozilla::ipc::IPCResult
1170 0 : return MsgProcessingError;
1171 : }
1172 :
1173 0 : reply__ = PPluginScriptableObject::Reply_Construct(id__);
1174 :
1175 0 : Write(aResult, reply__);
1176 : // Sentinel = 'aResult'
1177 0 : (reply__)->WriteSentinel(3888726089);
1178 0 : Write(aSuccess, reply__);
1179 : // Sentinel = 'aSuccess'
1180 0 : (reply__)->WriteSentinel(2132928722);
1181 0 : (reply__)->set_interrupt();
1182 0 : (reply__)->set_reply();
1183 :
1184 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
1185 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1186 : }
1187 0 : return MsgProcessed;
1188 : }
1189 : case PPluginScriptableObject::Msg_GetParentProperty__ID:
1190 : {
1191 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
1192 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1193 : }
1194 0 : AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_GetParentProperty", OTHER);
1195 :
1196 0 : PickleIterator iter__(msg__);
1197 0 : PluginIdentifier aId;
1198 :
1199 0 : if ((!(Read((&(aId)), (&(msg__)), (&(iter__)))))) {
1200 0 : FatalError("Error deserializing 'PluginIdentifier'");
1201 0 : return MsgValueError;
1202 : }
1203 : // Sentinel = 'aId'
1204 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
1205 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier'");
1206 0 : return MsgValueError;
1207 : }
1208 0 : (msg__).EndRead(iter__, (msg__).type());
1209 0 : PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_GetParentProperty__ID, (&(mState)));
1210 0 : int32_t id__ = Id();
1211 0 : Variant aResult;
1212 : bool aSuccess;
1213 0 : if ((!(AnswerGetParentProperty(mozilla::Move(aId), (&(aResult)), (&(aSuccess)))))) {
1214 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1215 : // Error handled in mozilla::ipc::IPCResult
1216 0 : return MsgProcessingError;
1217 : }
1218 :
1219 0 : reply__ = PPluginScriptableObject::Reply_GetParentProperty(id__);
1220 :
1221 0 : Write(aResult, reply__);
1222 : // Sentinel = 'aResult'
1223 0 : (reply__)->WriteSentinel(3888726089);
1224 0 : Write(aSuccess, reply__);
1225 : // Sentinel = 'aSuccess'
1226 0 : (reply__)->WriteSentinel(2132928722);
1227 0 : (reply__)->set_interrupt();
1228 0 : (reply__)->set_reply();
1229 :
1230 0 : if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectParent")) {
1231 0 : mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1232 : }
1233 0 : return MsgProcessed;
1234 : }
1235 : default:
1236 : {
1237 0 : return MsgNotKnown;
1238 : }
1239 : }
1240 : }
1241 :
1242 0 : auto PPluginScriptableObjectParent::GetProtocolTypeId() -> int32_t
1243 : {
1244 0 : return PPluginScriptableObjectMsgStart;
1245 : }
1246 :
1247 0 : auto PPluginScriptableObjectParent::ProtocolName() const -> const char*
1248 : {
1249 0 : return "PPluginScriptableObjectParent";
1250 : }
1251 :
1252 0 : auto PPluginScriptableObjectParent::DestroySubtree(ActorDestroyReason why) -> void
1253 : {
1254 : // Unregister from our manager.
1255 0 : Unregister(Id());
1256 :
1257 : // Reject owning pending promises.
1258 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
1259 :
1260 : // Finally, destroy "us".
1261 0 : ActorDestroy(why);
1262 0 : }
1263 :
1264 0 : auto PPluginScriptableObjectParent::DeallocSubtree() -> void
1265 : {
1266 0 : }
1267 :
1268 0 : auto PPluginScriptableObjectParent::Write(
1269 : const nsTArray<PluginIdentifier>& v__,
1270 : Message* msg__) -> void
1271 : {
1272 0 : uint32_t length = (v__).Length();
1273 0 : Write(length, msg__);
1274 : // Sentinel = ('length', 'PluginIdentifier[]')
1275 0 : (msg__)->WriteSentinel(4289331859);
1276 :
1277 0 : for (auto& elem : v__) {
1278 0 : Write(elem, msg__);
1279 : // Sentinel = 'PluginIdentifier[]'
1280 0 : (msg__)->WriteSentinel(2171637862);
1281 : }
1282 0 : }
1283 :
1284 0 : auto PPluginScriptableObjectParent::Read(
1285 : nsTArray<PluginIdentifier>* v__,
1286 : const Message* msg__,
1287 : PickleIterator* iter__) -> bool
1288 : {
1289 0 : nsTArray<PluginIdentifier> fa;
1290 : uint32_t length;
1291 0 : if ((!(Read((&(length)), msg__, iter__)))) {
1292 0 : mozilla::ipc::ArrayLengthReadError("PluginIdentifier[]");
1293 0 : return false;
1294 : }
1295 : // Sentinel = ('length', 'PluginIdentifier[]')
1296 0 : if ((!((msg__)->ReadSentinel(iter__, 4289331859)))) {
1297 0 : mozilla::ipc::SentinelReadError("PluginIdentifier[]");
1298 0 : return false;
1299 : }
1300 :
1301 0 : PluginIdentifier* elems = (fa).AppendElements(length);
1302 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
1303 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
1304 0 : FatalError("Error deserializing 'PluginIdentifier[i]'");
1305 0 : return false;
1306 : }
1307 : // Sentinel = 'PluginIdentifier[]'
1308 0 : if ((!((msg__)->ReadSentinel(iter__, 2171637862)))) {
1309 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier[i]'");
1310 0 : return false;
1311 : }
1312 : }
1313 0 : (v__)->SwapElements(fa);
1314 0 : return true;
1315 : }
1316 :
1317 0 : auto PPluginScriptableObjectParent::Write(
1318 : const nsTArray<Variant>& v__,
1319 : Message* msg__) -> void
1320 : {
1321 0 : uint32_t length = (v__).Length();
1322 0 : Write(length, msg__);
1323 : // Sentinel = ('length', 'Variant[]')
1324 0 : (msg__)->WriteSentinel(2816733807);
1325 :
1326 0 : for (auto& elem : v__) {
1327 0 : Write(elem, msg__);
1328 : // Sentinel = 'Variant[]'
1329 0 : (msg__)->WriteSentinel(1087857434);
1330 : }
1331 0 : }
1332 :
1333 0 : auto PPluginScriptableObjectParent::Read(
1334 : nsTArray<Variant>* v__,
1335 : const Message* msg__,
1336 : PickleIterator* iter__) -> bool
1337 : {
1338 0 : nsTArray<Variant> fa;
1339 : uint32_t length;
1340 0 : if ((!(Read((&(length)), msg__, iter__)))) {
1341 0 : mozilla::ipc::ArrayLengthReadError("Variant[]");
1342 0 : return false;
1343 : }
1344 : // Sentinel = ('length', 'Variant[]')
1345 0 : if ((!((msg__)->ReadSentinel(iter__, 2816733807)))) {
1346 0 : mozilla::ipc::SentinelReadError("Variant[]");
1347 0 : return false;
1348 : }
1349 :
1350 0 : Variant* elems = (fa).AppendElements(length);
1351 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
1352 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
1353 0 : FatalError("Error deserializing 'Variant[i]'");
1354 0 : return false;
1355 : }
1356 : // Sentinel = 'Variant[]'
1357 0 : if ((!((msg__)->ReadSentinel(iter__, 1087857434)))) {
1358 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Variant[i]'");
1359 0 : return false;
1360 : }
1361 : }
1362 0 : (v__)->SwapElements(fa);
1363 0 : return true;
1364 : }
1365 :
1366 0 : auto PPluginScriptableObjectParent::Write(
1367 : const PPluginScriptableObjectParent* v__,
1368 : Message* msg__,
1369 : bool nullable__) -> void
1370 : {
1371 : int32_t id;
1372 0 : if ((!(v__))) {
1373 0 : if ((!(nullable__))) {
1374 0 : FatalError("NULL actor value passed to non-nullable param");
1375 : }
1376 0 : id = 0;
1377 : }
1378 : else {
1379 0 : id = (v__)->Id();
1380 0 : if ((1) == (id)) {
1381 0 : FatalError("actor has been |delete|d");
1382 : }
1383 : }
1384 :
1385 0 : Write(id, msg__);
1386 0 : }
1387 :
1388 0 : auto PPluginScriptableObjectParent::Read(
1389 : PPluginScriptableObjectParent** v__,
1390 : const Message* msg__,
1391 : PickleIterator* iter__,
1392 : bool nullable__) -> bool
1393 : {
1394 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPluginScriptableObject", PPluginScriptableObjectMsgStart);
1395 0 : if ((actor).isNothing()) {
1396 0 : return false;
1397 : }
1398 :
1399 0 : (*(v__)) = static_cast<PPluginScriptableObjectParent*>((actor).value());
1400 0 : return true;
1401 : }
1402 :
1403 0 : auto PPluginScriptableObjectParent::Write(
1404 : const PluginIdentifier& v__,
1405 : Message* msg__) -> void
1406 : {
1407 : typedef PluginIdentifier type__;
1408 0 : Write(int((v__).type()), msg__);
1409 : // Sentinel = 'PluginIdentifier'
1410 0 : (msg__)->WriteSentinel(2215615288);
1411 :
1412 0 : switch ((v__).type()) {
1413 : case type__::TnsCString:
1414 : {
1415 0 : Write((v__).get_nsCString(), msg__);
1416 : // Sentinel = 'TnsCString'
1417 0 : (msg__)->WriteSentinel(2427411293);
1418 0 : return;
1419 : }
1420 : case type__::Tint32_t:
1421 : {
1422 0 : Write((v__).get_int32_t(), msg__);
1423 : // Sentinel = 'Tint32_t'
1424 0 : (msg__)->WriteSentinel(4219052577);
1425 0 : return;
1426 : }
1427 : default:
1428 : {
1429 0 : FatalError("unknown union type");
1430 0 : return;
1431 : }
1432 : }
1433 : }
1434 :
1435 0 : auto PPluginScriptableObjectParent::Read(
1436 : PluginIdentifier* v__,
1437 : const Message* msg__,
1438 : PickleIterator* iter__) -> bool
1439 : {
1440 : typedef PluginIdentifier type__;
1441 : int type;
1442 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1443 0 : mozilla::ipc::UnionTypeReadError("PluginIdentifier");
1444 0 : return false;
1445 : }
1446 : // Sentinel = 'PluginIdentifier'
1447 0 : if ((!((msg__)->ReadSentinel(iter__, 2215615288)))) {
1448 0 : mozilla::ipc::SentinelReadError("PluginIdentifier");
1449 0 : return false;
1450 : }
1451 :
1452 0 : switch (type) {
1453 : case type__::TnsCString:
1454 : {
1455 0 : nsCString tmp = nsCString();
1456 0 : (*(v__)) = tmp;
1457 0 : if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
1458 0 : FatalError("Error deserializing Union type");
1459 0 : return false;
1460 : }
1461 : // Sentinel = 'TnsCString'
1462 0 : if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
1463 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1464 0 : return false;
1465 : }
1466 0 : return true;
1467 : }
1468 : case type__::Tint32_t:
1469 : {
1470 0 : int32_t tmp = int32_t();
1471 0 : (*(v__)) = tmp;
1472 0 : if ((!(Read((&((v__)->get_int32_t())), msg__, iter__)))) {
1473 0 : FatalError("Error deserializing Union type");
1474 0 : return false;
1475 : }
1476 : // Sentinel = 'Tint32_t'
1477 0 : if ((!((msg__)->ReadSentinel(iter__, 4219052577)))) {
1478 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1479 0 : return false;
1480 : }
1481 0 : return true;
1482 : }
1483 : default:
1484 : {
1485 0 : FatalError("unknown union type");
1486 0 : return false;
1487 : }
1488 : }
1489 : }
1490 :
1491 0 : auto PPluginScriptableObjectParent::Write(
1492 : const Variant& v__,
1493 : Message* msg__) -> void
1494 : {
1495 : typedef Variant type__;
1496 0 : Write(int((v__).type()), msg__);
1497 : // Sentinel = 'Variant'
1498 0 : (msg__)->WriteSentinel(2341468588);
1499 :
1500 0 : switch ((v__).type()) {
1501 : case type__::Tvoid_t:
1502 : {
1503 0 : Write((v__).get_void_t(), msg__);
1504 : // Sentinel = 'Tvoid_t'
1505 0 : (msg__)->WriteSentinel(3041273328);
1506 0 : return;
1507 : }
1508 : case type__::Tnull_t:
1509 : {
1510 0 : Write((v__).get_null_t(), msg__);
1511 : // Sentinel = 'Tnull_t'
1512 0 : (msg__)->WriteSentinel(3731137201);
1513 0 : return;
1514 : }
1515 : case type__::Tbool:
1516 : {
1517 0 : Write((v__).get_bool(), msg__);
1518 : // Sentinel = 'Tbool'
1519 0 : (msg__)->WriteSentinel(1958350201);
1520 0 : return;
1521 : }
1522 : case type__::Tint:
1523 : {
1524 0 : Write((v__).get_int(), msg__);
1525 : // Sentinel = 'Tint'
1526 0 : (msg__)->WriteSentinel(1229956739);
1527 0 : return;
1528 : }
1529 : case type__::Tdouble:
1530 : {
1531 0 : Write((v__).get_double(), msg__);
1532 : // Sentinel = 'Tdouble'
1533 0 : (msg__)->WriteSentinel(3456933244);
1534 0 : return;
1535 : }
1536 : case type__::TnsCString:
1537 : {
1538 0 : Write((v__).get_nsCString(), msg__);
1539 : // Sentinel = 'TnsCString'
1540 0 : (msg__)->WriteSentinel(2427411293);
1541 0 : return;
1542 : }
1543 : case type__::TPPluginScriptableObjectParent:
1544 : {
1545 0 : Write((v__).get_PPluginScriptableObjectParent(), msg__, true);
1546 : // Sentinel = 'TPPluginScriptableObjectParent'
1547 0 : (msg__)->WriteSentinel(4046794731);
1548 0 : return;
1549 : }
1550 : case type__::TPPluginScriptableObjectChild:
1551 : {
1552 0 : FatalError("wrong side!");
1553 0 : return;
1554 : }
1555 : default:
1556 : {
1557 0 : FatalError("unknown union type");
1558 0 : return;
1559 : }
1560 : }
1561 : }
1562 :
1563 0 : auto PPluginScriptableObjectParent::Read(
1564 : Variant* v__,
1565 : const Message* msg__,
1566 : PickleIterator* iter__) -> bool
1567 : {
1568 : typedef Variant type__;
1569 : int type;
1570 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1571 0 : mozilla::ipc::UnionTypeReadError("Variant");
1572 0 : return false;
1573 : }
1574 : // Sentinel = 'Variant'
1575 0 : if ((!((msg__)->ReadSentinel(iter__, 2341468588)))) {
1576 0 : mozilla::ipc::SentinelReadError("Variant");
1577 0 : return false;
1578 : }
1579 :
1580 0 : switch (type) {
1581 : case type__::Tvoid_t:
1582 : {
1583 : void_t tmp = void_t();
1584 0 : (*(v__)) = tmp;
1585 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
1586 0 : FatalError("Error deserializing Union type");
1587 0 : return false;
1588 : }
1589 : // Sentinel = 'Tvoid_t'
1590 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
1591 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1592 0 : return false;
1593 : }
1594 0 : return true;
1595 : }
1596 : case type__::Tnull_t:
1597 : {
1598 : null_t tmp = null_t();
1599 0 : (*(v__)) = tmp;
1600 0 : if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
1601 0 : FatalError("Error deserializing Union type");
1602 0 : return false;
1603 : }
1604 : // Sentinel = 'Tnull_t'
1605 0 : if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
1606 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1607 0 : return false;
1608 : }
1609 0 : return true;
1610 : }
1611 : case type__::Tbool:
1612 : {
1613 0 : bool tmp = bool();
1614 0 : (*(v__)) = tmp;
1615 0 : if ((!(Read((&((v__)->get_bool())), msg__, iter__)))) {
1616 0 : FatalError("Error deserializing Union type");
1617 0 : return false;
1618 : }
1619 : // Sentinel = 'Tbool'
1620 0 : if ((!((msg__)->ReadSentinel(iter__, 1958350201)))) {
1621 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1622 0 : return false;
1623 : }
1624 0 : return true;
1625 : }
1626 : case type__::Tint:
1627 : {
1628 0 : int tmp = int();
1629 0 : (*(v__)) = tmp;
1630 0 : if ((!(Read((&((v__)->get_int())), msg__, iter__)))) {
1631 0 : FatalError("Error deserializing Union type");
1632 0 : return false;
1633 : }
1634 : // Sentinel = 'Tint'
1635 0 : if ((!((msg__)->ReadSentinel(iter__, 1229956739)))) {
1636 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1637 0 : return false;
1638 : }
1639 0 : return true;
1640 : }
1641 : case type__::Tdouble:
1642 : {
1643 0 : double tmp = double();
1644 0 : (*(v__)) = tmp;
1645 0 : if ((!(Read((&((v__)->get_double())), msg__, iter__)))) {
1646 0 : FatalError("Error deserializing Union type");
1647 0 : return false;
1648 : }
1649 : // Sentinel = 'Tdouble'
1650 0 : if ((!((msg__)->ReadSentinel(iter__, 3456933244)))) {
1651 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1652 0 : return false;
1653 : }
1654 0 : return true;
1655 : }
1656 : case type__::TnsCString:
1657 : {
1658 0 : nsCString tmp = nsCString();
1659 0 : (*(v__)) = tmp;
1660 0 : if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
1661 0 : FatalError("Error deserializing Union type");
1662 0 : return false;
1663 : }
1664 : // Sentinel = 'TnsCString'
1665 0 : if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
1666 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1667 0 : return false;
1668 : }
1669 0 : return true;
1670 : }
1671 : case type__::TPPluginScriptableObjectParent:
1672 : {
1673 0 : return false;
1674 : }
1675 : case type__::TPPluginScriptableObjectChild:
1676 : {
1677 0 : PPluginScriptableObjectParent* tmp = nullptr;
1678 0 : (*(v__)) = tmp;
1679 0 : if ((!(Read((&((v__)->get_PPluginScriptableObjectParent())), msg__, iter__, true)))) {
1680 0 : FatalError("Error deserializing Union type");
1681 0 : return false;
1682 : }
1683 : // Sentinel = 'TPPluginScriptableObjectChild'
1684 0 : if ((!((msg__)->ReadSentinel(iter__, 4061745976)))) {
1685 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1686 0 : return false;
1687 : }
1688 0 : return true;
1689 : }
1690 : default:
1691 : {
1692 0 : FatalError("unknown union type");
1693 0 : return false;
1694 : }
1695 : }
1696 : }
1697 :
1698 :
1699 :
1700 : } // namespace plugins
1701 : } // namespace mozilla
|