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