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