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