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