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