LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PGMPDecryptorChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 523 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 34 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //
       2             : // Automatically generated by ipdlc.
       3             : // Edit at your own risk
       4             : //
       5             : 
       6             : 
       7             : #include "mozilla/gmp/PGMPDecryptorChild.h"
       8             : 
       9             : #include "mozilla/gmp/PGMPContentChild.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace gmp {
      16             : 
      17             : 
      18           0 : auto PGMPDecryptorChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      19             : {
      20           0 : }
      21             : 
      22           0 : MOZ_IMPLICIT PGMPDecryptorChild::PGMPDecryptorChild() :
      23             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      24           0 :     mState(PGMPDecryptor::__Dead)
      25             : {
      26           0 :     MOZ_COUNT_CTOR(PGMPDecryptorChild);
      27           0 : }
      28             : 
      29           0 : PGMPDecryptorChild::~PGMPDecryptorChild()
      30             : {
      31           0 :     MOZ_COUNT_DTOR(PGMPDecryptorChild);
      32           0 : }
      33             : 
      34           0 : auto PGMPDecryptorChild::Manager() const -> PGMPContentChild*
      35             : {
      36           0 :     return static_cast<PGMPContentChild*>(IProtocol::Manager());
      37             : }
      38             : 
      39           0 : auto PGMPDecryptorChild::Send__delete__(PGMPDecryptorChild* actor) -> bool
      40             : {
      41           0 :     if ((!(actor))) {
      42           0 :         return false;
      43             :     }
      44             : 
      45           0 :     IPC::Message* msg__ = PGMPDecryptor::Msg___delete__((actor)->Id());
      46             : 
      47           0 :     (actor)->Write(actor, msg__, false);
      48             :     // Sentinel = 'actor'
      49           0 :     (msg__)->WriteSentinel(875202478);
      50             : 
      51             : 
      52             : 
      53           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
      54           0 :         mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      55             :     }
      56           0 :     AUTO_PROFILER_LABEL("PGMPDecryptor::Msg___delete__", OTHER);
      57           0 :     PGMPDecryptor::Transition(PGMPDecryptor::Msg___delete____ID, (&((actor)->mState)));
      58             : 
      59           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
      60             : 
      61           0 :     IProtocol* mgr = (actor)->Manager();
      62           0 :     (actor)->DestroySubtree(Deletion);
      63           0 :     (actor)->DeallocSubtree();
      64           0 :     (mgr)->RemoveManagee(PGMPDecryptorMsgStart, actor);
      65           0 :     return sendok__;
      66             : }
      67             : 
      68           0 : auto PGMPDecryptorChild::SendSetDecryptorId(const uint32_t& aId) -> bool
      69             : {
      70           0 :     IPC::Message* msg__ = PGMPDecryptor::Msg_SetDecryptorId(Id());
      71             : 
      72           0 :     Write(aId, msg__);
      73             :     // Sentinel = 'aId'
      74           0 :     (msg__)->WriteSentinel(2735041817);
      75             : 
      76             : 
      77             : 
      78             : 
      79           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
      80           0 :         mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      81             :     }
      82           0 :     AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_SetDecryptorId", OTHER);
      83           0 :     PGMPDecryptor::Transition(PGMPDecryptor::Msg_SetDecryptorId__ID, (&(mState)));
      84             : 
      85           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      86           0 :     return sendok__;
      87             : }
      88             : 
      89           0 : auto PGMPDecryptorChild::SendSetSessionId(
      90             :         const uint32_t& aCreateSessionToken,
      91             :         const nsCString& aSessionId) -> bool
      92             : {
      93           0 :     IPC::Message* msg__ = PGMPDecryptor::Msg_SetSessionId(Id());
      94             : 
      95           0 :     Write(aCreateSessionToken, msg__);
      96             :     // Sentinel = 'aCreateSessionToken'
      97           0 :     (msg__)->WriteSentinel(4272054301);
      98           0 :     Write(aSessionId, msg__);
      99             :     // Sentinel = 'aSessionId'
     100           0 :     (msg__)->WriteSentinel(725794242);
     101             : 
     102             : 
     103             : 
     104             : 
     105           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     106           0 :         mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     107             :     }
     108           0 :     AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_SetSessionId", OTHER);
     109           0 :     PGMPDecryptor::Transition(PGMPDecryptor::Msg_SetSessionId__ID, (&(mState)));
     110             : 
     111           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     112           0 :     return sendok__;
     113             : }
     114             : 
     115           0 : auto PGMPDecryptorChild::SendResolveLoadSessionPromise(
     116             :         const uint32_t& aPromiseId,
     117             :         const bool& aSuccess) -> bool
     118             : {
     119           0 :     IPC::Message* msg__ = PGMPDecryptor::Msg_ResolveLoadSessionPromise(Id());
     120             : 
     121           0 :     Write(aPromiseId, msg__);
     122             :     // Sentinel = 'aPromiseId'
     123           0 :     (msg__)->WriteSentinel(1396174085);
     124           0 :     Write(aSuccess, msg__);
     125             :     // Sentinel = 'aSuccess'
     126           0 :     (msg__)->WriteSentinel(2132928722);
     127             : 
     128             : 
     129             : 
     130             : 
     131           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     132           0 :         mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     133             :     }
     134           0 :     AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_ResolveLoadSessionPromise", OTHER);
     135           0 :     PGMPDecryptor::Transition(PGMPDecryptor::Msg_ResolveLoadSessionPromise__ID, (&(mState)));
     136             : 
     137           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     138           0 :     return sendok__;
     139             : }
     140             : 
     141           0 : auto PGMPDecryptorChild::SendResolvePromise(const uint32_t& aPromiseId) -> bool
     142             : {
     143           0 :     IPC::Message* msg__ = PGMPDecryptor::Msg_ResolvePromise(Id());
     144             : 
     145           0 :     Write(aPromiseId, msg__);
     146             :     // Sentinel = 'aPromiseId'
     147           0 :     (msg__)->WriteSentinel(1396174085);
     148             : 
     149             : 
     150             : 
     151             : 
     152           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     153           0 :         mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     154             :     }
     155           0 :     AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_ResolvePromise", OTHER);
     156           0 :     PGMPDecryptor::Transition(PGMPDecryptor::Msg_ResolvePromise__ID, (&(mState)));
     157             : 
     158           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     159           0 :     return sendok__;
     160             : }
     161             : 
     162           0 : auto PGMPDecryptorChild::SendRejectPromise(
     163             :         const uint32_t& aPromiseId,
     164             :         const GMPDOMException& aDOMExceptionCode,
     165             :         const nsCString& aMessage) -> bool
     166             : {
     167           0 :     IPC::Message* msg__ = PGMPDecryptor::Msg_RejectPromise(Id());
     168             : 
     169           0 :     Write(aPromiseId, msg__);
     170             :     // Sentinel = 'aPromiseId'
     171           0 :     (msg__)->WriteSentinel(1396174085);
     172           0 :     Write(aDOMExceptionCode, msg__);
     173             :     // Sentinel = 'aDOMExceptionCode'
     174           0 :     (msg__)->WriteSentinel(1177088860);
     175           0 :     Write(aMessage, msg__);
     176             :     // Sentinel = 'aMessage'
     177           0 :     (msg__)->WriteSentinel(3453110902);
     178             : 
     179             : 
     180             : 
     181             : 
     182           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     183           0 :         mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     184             :     }
     185           0 :     AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_RejectPromise", OTHER);
     186           0 :     PGMPDecryptor::Transition(PGMPDecryptor::Msg_RejectPromise__ID, (&(mState)));
     187             : 
     188           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     189           0 :     return sendok__;
     190             : }
     191             : 
     192           0 : auto PGMPDecryptorChild::SendSessionMessage(
     193             :         const nsCString& aSessionId,
     194             :         const GMPSessionMessageType& aMessageType,
     195             :         const nsTArray<uint8_t>& aMessage) -> bool
     196             : {
     197           0 :     IPC::Message* msg__ = PGMPDecryptor::Msg_SessionMessage(Id());
     198             : 
     199           0 :     Write(aSessionId, msg__);
     200             :     // Sentinel = 'aSessionId'
     201           0 :     (msg__)->WriteSentinel(725794242);
     202           0 :     Write(aMessageType, msg__);
     203             :     // Sentinel = 'aMessageType'
     204           0 :     (msg__)->WriteSentinel(3343772818);
     205           0 :     Write(aMessage, msg__);
     206             :     // Sentinel = 'aMessage'
     207           0 :     (msg__)->WriteSentinel(3453110902);
     208             : 
     209             : 
     210             : 
     211             : 
     212           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     213           0 :         mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     214             :     }
     215           0 :     AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_SessionMessage", OTHER);
     216           0 :     PGMPDecryptor::Transition(PGMPDecryptor::Msg_SessionMessage__ID, (&(mState)));
     217             : 
     218           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     219           0 :     return sendok__;
     220             : }
     221             : 
     222           0 : auto PGMPDecryptorChild::SendExpirationChange(
     223             :         const nsCString& aSessionId,
     224             :         const double& aExpiryTime) -> bool
     225             : {
     226           0 :     IPC::Message* msg__ = PGMPDecryptor::Msg_ExpirationChange(Id());
     227             : 
     228           0 :     Write(aSessionId, msg__);
     229             :     // Sentinel = 'aSessionId'
     230           0 :     (msg__)->WriteSentinel(725794242);
     231           0 :     Write(aExpiryTime, msg__);
     232             :     // Sentinel = 'aExpiryTime'
     233           0 :     (msg__)->WriteSentinel(864162640);
     234             : 
     235             : 
     236             : 
     237             : 
     238           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     239           0 :         mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     240             :     }
     241           0 :     AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_ExpirationChange", OTHER);
     242           0 :     PGMPDecryptor::Transition(PGMPDecryptor::Msg_ExpirationChange__ID, (&(mState)));
     243             : 
     244           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     245           0 :     return sendok__;
     246             : }
     247             : 
     248           0 : auto PGMPDecryptorChild::SendSessionClosed(const nsCString& aSessionId) -> bool
     249             : {
     250           0 :     IPC::Message* msg__ = PGMPDecryptor::Msg_SessionClosed(Id());
     251             : 
     252           0 :     Write(aSessionId, msg__);
     253             :     // Sentinel = 'aSessionId'
     254           0 :     (msg__)->WriteSentinel(725794242);
     255             : 
     256             : 
     257             : 
     258             : 
     259           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     260           0 :         mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     261             :     }
     262           0 :     AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_SessionClosed", OTHER);
     263           0 :     PGMPDecryptor::Transition(PGMPDecryptor::Msg_SessionClosed__ID, (&(mState)));
     264             : 
     265           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     266           0 :     return sendok__;
     267             : }
     268             : 
     269           0 : auto PGMPDecryptorChild::SendSessionError(
     270             :         const nsCString& aSessionId,
     271             :         const GMPDOMException& aDOMExceptionCode,
     272             :         const uint32_t& aSystemCode,
     273             :         const nsCString& aMessage) -> bool
     274             : {
     275           0 :     IPC::Message* msg__ = PGMPDecryptor::Msg_SessionError(Id());
     276             : 
     277           0 :     Write(aSessionId, msg__);
     278             :     // Sentinel = 'aSessionId'
     279           0 :     (msg__)->WriteSentinel(725794242);
     280           0 :     Write(aDOMExceptionCode, msg__);
     281             :     // Sentinel = 'aDOMExceptionCode'
     282           0 :     (msg__)->WriteSentinel(1177088860);
     283           0 :     Write(aSystemCode, msg__);
     284             :     // Sentinel = 'aSystemCode'
     285           0 :     (msg__)->WriteSentinel(2991479206);
     286           0 :     Write(aMessage, msg__);
     287             :     // Sentinel = 'aMessage'
     288           0 :     (msg__)->WriteSentinel(3453110902);
     289             : 
     290             : 
     291             : 
     292             : 
     293           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     294           0 :         mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     295             :     }
     296           0 :     AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_SessionError", OTHER);
     297           0 :     PGMPDecryptor::Transition(PGMPDecryptor::Msg_SessionError__ID, (&(mState)));
     298             : 
     299           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     300           0 :     return sendok__;
     301             : }
     302             : 
     303           0 : auto PGMPDecryptorChild::SendDecrypted(
     304             :         const uint32_t& aId,
     305             :         const GMPErr& aResult,
     306             :         const nsTArray<uint8_t>& aBuffer) -> bool
     307             : {
     308           0 :     IPC::Message* msg__ = PGMPDecryptor::Msg_Decrypted(Id());
     309             : 
     310           0 :     Write(aId, msg__);
     311             :     // Sentinel = 'aId'
     312           0 :     (msg__)->WriteSentinel(2735041817);
     313           0 :     Write(aResult, msg__);
     314             :     // Sentinel = 'aResult'
     315           0 :     (msg__)->WriteSentinel(3888726089);
     316           0 :     Write(aBuffer, msg__);
     317             :     // Sentinel = 'aBuffer'
     318           0 :     (msg__)->WriteSentinel(35469444);
     319             : 
     320             : 
     321             : 
     322             : 
     323           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     324           0 :         mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     325             :     }
     326           0 :     AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_Decrypted", OTHER);
     327           0 :     PGMPDecryptor::Transition(PGMPDecryptor::Msg_Decrypted__ID, (&(mState)));
     328             : 
     329           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     330           0 :     return sendok__;
     331             : }
     332             : 
     333           0 : auto PGMPDecryptorChild::SendShutdown() -> bool
     334             : {
     335           0 :     IPC::Message* msg__ = PGMPDecryptor::Msg_Shutdown(Id());
     336             : 
     337             : 
     338             : 
     339             : 
     340             : 
     341           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     342           0 :         mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     343             :     }
     344           0 :     AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_Shutdown", OTHER);
     345           0 :     PGMPDecryptor::Transition(PGMPDecryptor::Msg_Shutdown__ID, (&(mState)));
     346             : 
     347           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     348           0 :     return sendok__;
     349             : }
     350             : 
     351           0 : auto PGMPDecryptorChild::SendBatchedKeyStatusChanged(
     352             :         const nsCString& aSessionId,
     353             :         const nsTArray<GMPKeyInformation>& aKeyInfos) -> bool
     354             : {
     355           0 :     IPC::Message* msg__ = PGMPDecryptor::Msg_BatchedKeyStatusChanged(Id());
     356             : 
     357           0 :     Write(aSessionId, msg__);
     358             :     // Sentinel = 'aSessionId'
     359           0 :     (msg__)->WriteSentinel(725794242);
     360           0 :     Write(aKeyInfos, msg__);
     361             :     // Sentinel = 'aKeyInfos'
     362           0 :     (msg__)->WriteSentinel(2722758264);
     363             : 
     364             : 
     365             : 
     366             : 
     367           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     368           0 :         mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     369             :     }
     370           0 :     AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_BatchedKeyStatusChanged", OTHER);
     371           0 :     PGMPDecryptor::Transition(PGMPDecryptor::Msg_BatchedKeyStatusChanged__ID, (&(mState)));
     372             : 
     373           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     374           0 :     return sendok__;
     375             : }
     376             : 
     377           0 : auto PGMPDecryptorChild::RemoveManagee(
     378             :         int32_t aProtocolId,
     379             :         ProtocolBase* aListener) -> void
     380             : {
     381           0 :     FatalError("unreached");
     382           0 :     return;
     383             : }
     384             : 
     385           0 : auto PGMPDecryptorChild::OnMessageReceived(const Message& msg__) -> PGMPDecryptorChild::Result
     386             : {
     387           0 :     switch ((msg__).type()) {
     388             :     case PGMPDecryptor::Msg_Init__ID:
     389             :         {
     390           0 :             if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     391           0 :                 mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     392             :             }
     393           0 :             AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_Init", OTHER);
     394             : 
     395           0 :             PickleIterator iter__(msg__);
     396             :             bool aDistinctiveIdentifierRequired;
     397             :             bool aPersistentStateRequired;
     398             : 
     399           0 :             if ((!(Read((&(aDistinctiveIdentifierRequired)), (&(msg__)), (&(iter__)))))) {
     400           0 :                 FatalError("Error deserializing 'bool'");
     401           0 :                 return MsgValueError;
     402             :             }
     403             :             // Sentinel = 'aDistinctiveIdentifierRequired'
     404           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2071028981)))) {
     405           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     406           0 :                 return MsgValueError;
     407             :             }
     408           0 :             if ((!(Read((&(aPersistentStateRequired)), (&(msg__)), (&(iter__)))))) {
     409           0 :                 FatalError("Error deserializing 'bool'");
     410           0 :                 return MsgValueError;
     411             :             }
     412             :             // Sentinel = 'aPersistentStateRequired'
     413           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1104457810)))) {
     414           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     415           0 :                 return MsgValueError;
     416             :             }
     417           0 :             (msg__).EndRead(iter__, (msg__).type());
     418           0 :             PGMPDecryptor::Transition(PGMPDecryptor::Msg_Init__ID, (&(mState)));
     419           0 :             if ((!(RecvInit(mozilla::Move(aDistinctiveIdentifierRequired), mozilla::Move(aPersistentStateRequired))))) {
     420           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     421             :                 // Error handled in mozilla::ipc::IPCResult
     422           0 :                 return MsgProcessingError;
     423             :             }
     424             : 
     425           0 :             return MsgProcessed;
     426             :         }
     427             :     case PGMPDecryptor::Msg_CreateSession__ID:
     428             :         {
     429           0 :             if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     430           0 :                 mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     431             :             }
     432           0 :             AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_CreateSession", OTHER);
     433             : 
     434           0 :             PickleIterator iter__(msg__);
     435             :             uint32_t aCreateSessionToken;
     436             :             uint32_t aPromiseId;
     437           0 :             nsCString aInitDataType;
     438           0 :             nsTArray<uint8_t> aInitData;
     439             :             GMPSessionType aSessionType;
     440             : 
     441           0 :             if ((!(Read((&(aCreateSessionToken)), (&(msg__)), (&(iter__)))))) {
     442           0 :                 FatalError("Error deserializing 'uint32_t'");
     443           0 :                 return MsgValueError;
     444             :             }
     445             :             // Sentinel = 'aCreateSessionToken'
     446           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4272054301)))) {
     447           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     448           0 :                 return MsgValueError;
     449             :             }
     450           0 :             if ((!(Read((&(aPromiseId)), (&(msg__)), (&(iter__)))))) {
     451           0 :                 FatalError("Error deserializing 'uint32_t'");
     452           0 :                 return MsgValueError;
     453             :             }
     454             :             // Sentinel = 'aPromiseId'
     455           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1396174085)))) {
     456           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     457           0 :                 return MsgValueError;
     458             :             }
     459           0 :             if ((!(Read((&(aInitDataType)), (&(msg__)), (&(iter__)))))) {
     460           0 :                 FatalError("Error deserializing 'nsCString'");
     461           0 :                 return MsgValueError;
     462             :             }
     463             :             // Sentinel = 'aInitDataType'
     464           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3194748458)))) {
     465           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     466           0 :                 return MsgValueError;
     467             :             }
     468           0 :             if ((!(Read((&(aInitData)), (&(msg__)), (&(iter__)))))) {
     469           0 :                 FatalError("Error deserializing 'nsTArray'");
     470           0 :                 return MsgValueError;
     471             :             }
     472             :             // Sentinel = 'aInitData'
     473           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 897514454)))) {
     474           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     475           0 :                 return MsgValueError;
     476             :             }
     477           0 :             if ((!(Read((&(aSessionType)), (&(msg__)), (&(iter__)))))) {
     478           0 :                 FatalError("Error deserializing 'GMPSessionType'");
     479           0 :                 return MsgValueError;
     480             :             }
     481             :             // Sentinel = 'aSessionType'
     482           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2018610683)))) {
     483           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'GMPSessionType'");
     484           0 :                 return MsgValueError;
     485             :             }
     486           0 :             (msg__).EndRead(iter__, (msg__).type());
     487           0 :             PGMPDecryptor::Transition(PGMPDecryptor::Msg_CreateSession__ID, (&(mState)));
     488           0 :             if ((!(RecvCreateSession(mozilla::Move(aCreateSessionToken), mozilla::Move(aPromiseId), mozilla::Move(aInitDataType), mozilla::Move(aInitData), mozilla::Move(aSessionType))))) {
     489           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     490             :                 // Error handled in mozilla::ipc::IPCResult
     491           0 :                 return MsgProcessingError;
     492             :             }
     493             : 
     494           0 :             return MsgProcessed;
     495             :         }
     496             :     case PGMPDecryptor::Msg_LoadSession__ID:
     497             :         {
     498           0 :             if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     499           0 :                 mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     500             :             }
     501           0 :             AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_LoadSession", OTHER);
     502             : 
     503           0 :             PickleIterator iter__(msg__);
     504             :             uint32_t aPromiseId;
     505           0 :             nsCString aSessionId;
     506             : 
     507           0 :             if ((!(Read((&(aPromiseId)), (&(msg__)), (&(iter__)))))) {
     508           0 :                 FatalError("Error deserializing 'uint32_t'");
     509           0 :                 return MsgValueError;
     510             :             }
     511             :             // Sentinel = 'aPromiseId'
     512           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1396174085)))) {
     513           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     514           0 :                 return MsgValueError;
     515             :             }
     516           0 :             if ((!(Read((&(aSessionId)), (&(msg__)), (&(iter__)))))) {
     517           0 :                 FatalError("Error deserializing 'nsCString'");
     518           0 :                 return MsgValueError;
     519             :             }
     520             :             // Sentinel = 'aSessionId'
     521           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 725794242)))) {
     522           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     523           0 :                 return MsgValueError;
     524             :             }
     525           0 :             (msg__).EndRead(iter__, (msg__).type());
     526           0 :             PGMPDecryptor::Transition(PGMPDecryptor::Msg_LoadSession__ID, (&(mState)));
     527           0 :             if ((!(RecvLoadSession(mozilla::Move(aPromiseId), mozilla::Move(aSessionId))))) {
     528           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     529             :                 // Error handled in mozilla::ipc::IPCResult
     530           0 :                 return MsgProcessingError;
     531             :             }
     532             : 
     533           0 :             return MsgProcessed;
     534             :         }
     535             :     case PGMPDecryptor::Msg_UpdateSession__ID:
     536             :         {
     537           0 :             if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     538           0 :                 mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     539             :             }
     540           0 :             AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_UpdateSession", OTHER);
     541             : 
     542           0 :             PickleIterator iter__(msg__);
     543             :             uint32_t aPromiseId;
     544           0 :             nsCString aSessionId;
     545           0 :             nsTArray<uint8_t> aResponse;
     546             : 
     547           0 :             if ((!(Read((&(aPromiseId)), (&(msg__)), (&(iter__)))))) {
     548           0 :                 FatalError("Error deserializing 'uint32_t'");
     549           0 :                 return MsgValueError;
     550             :             }
     551             :             // Sentinel = 'aPromiseId'
     552           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1396174085)))) {
     553           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     554           0 :                 return MsgValueError;
     555             :             }
     556           0 :             if ((!(Read((&(aSessionId)), (&(msg__)), (&(iter__)))))) {
     557           0 :                 FatalError("Error deserializing 'nsCString'");
     558           0 :                 return MsgValueError;
     559             :             }
     560             :             // Sentinel = 'aSessionId'
     561           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 725794242)))) {
     562           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     563           0 :                 return MsgValueError;
     564             :             }
     565           0 :             if ((!(Read((&(aResponse)), (&(msg__)), (&(iter__)))))) {
     566           0 :                 FatalError("Error deserializing 'nsTArray'");
     567           0 :                 return MsgValueError;
     568             :             }
     569             :             // Sentinel = 'aResponse'
     570           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4228544409)))) {
     571           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     572           0 :                 return MsgValueError;
     573             :             }
     574           0 :             (msg__).EndRead(iter__, (msg__).type());
     575           0 :             PGMPDecryptor::Transition(PGMPDecryptor::Msg_UpdateSession__ID, (&(mState)));
     576           0 :             if ((!(RecvUpdateSession(mozilla::Move(aPromiseId), mozilla::Move(aSessionId), mozilla::Move(aResponse))))) {
     577           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     578             :                 // Error handled in mozilla::ipc::IPCResult
     579           0 :                 return MsgProcessingError;
     580             :             }
     581             : 
     582           0 :             return MsgProcessed;
     583             :         }
     584             :     case PGMPDecryptor::Msg_CloseSession__ID:
     585             :         {
     586           0 :             if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     587           0 :                 mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     588             :             }
     589           0 :             AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_CloseSession", OTHER);
     590             : 
     591           0 :             PickleIterator iter__(msg__);
     592             :             uint32_t aPromiseId;
     593           0 :             nsCString aSessionId;
     594             : 
     595           0 :             if ((!(Read((&(aPromiseId)), (&(msg__)), (&(iter__)))))) {
     596           0 :                 FatalError("Error deserializing 'uint32_t'");
     597           0 :                 return MsgValueError;
     598             :             }
     599             :             // Sentinel = 'aPromiseId'
     600           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1396174085)))) {
     601           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     602           0 :                 return MsgValueError;
     603             :             }
     604           0 :             if ((!(Read((&(aSessionId)), (&(msg__)), (&(iter__)))))) {
     605           0 :                 FatalError("Error deserializing 'nsCString'");
     606           0 :                 return MsgValueError;
     607             :             }
     608             :             // Sentinel = 'aSessionId'
     609           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 725794242)))) {
     610           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     611           0 :                 return MsgValueError;
     612             :             }
     613           0 :             (msg__).EndRead(iter__, (msg__).type());
     614           0 :             PGMPDecryptor::Transition(PGMPDecryptor::Msg_CloseSession__ID, (&(mState)));
     615           0 :             if ((!(RecvCloseSession(mozilla::Move(aPromiseId), mozilla::Move(aSessionId))))) {
     616           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     617             :                 // Error handled in mozilla::ipc::IPCResult
     618           0 :                 return MsgProcessingError;
     619             :             }
     620             : 
     621           0 :             return MsgProcessed;
     622             :         }
     623             :     case PGMPDecryptor::Msg_RemoveSession__ID:
     624             :         {
     625           0 :             if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     626           0 :                 mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     627             :             }
     628           0 :             AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_RemoveSession", OTHER);
     629             : 
     630           0 :             PickleIterator iter__(msg__);
     631             :             uint32_t aPromiseId;
     632           0 :             nsCString aSessionId;
     633             : 
     634           0 :             if ((!(Read((&(aPromiseId)), (&(msg__)), (&(iter__)))))) {
     635           0 :                 FatalError("Error deserializing 'uint32_t'");
     636           0 :                 return MsgValueError;
     637             :             }
     638             :             // Sentinel = 'aPromiseId'
     639           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1396174085)))) {
     640           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     641           0 :                 return MsgValueError;
     642             :             }
     643           0 :             if ((!(Read((&(aSessionId)), (&(msg__)), (&(iter__)))))) {
     644           0 :                 FatalError("Error deserializing 'nsCString'");
     645           0 :                 return MsgValueError;
     646             :             }
     647             :             // Sentinel = 'aSessionId'
     648           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 725794242)))) {
     649           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     650           0 :                 return MsgValueError;
     651             :             }
     652           0 :             (msg__).EndRead(iter__, (msg__).type());
     653           0 :             PGMPDecryptor::Transition(PGMPDecryptor::Msg_RemoveSession__ID, (&(mState)));
     654           0 :             if ((!(RecvRemoveSession(mozilla::Move(aPromiseId), mozilla::Move(aSessionId))))) {
     655           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     656             :                 // Error handled in mozilla::ipc::IPCResult
     657           0 :                 return MsgProcessingError;
     658             :             }
     659             : 
     660           0 :             return MsgProcessed;
     661             :         }
     662             :     case PGMPDecryptor::Msg_SetServerCertificate__ID:
     663             :         {
     664           0 :             if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     665           0 :                 mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     666             :             }
     667           0 :             AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_SetServerCertificate", OTHER);
     668             : 
     669           0 :             PickleIterator iter__(msg__);
     670             :             uint32_t aPromiseId;
     671           0 :             nsTArray<uint8_t> aServerCert;
     672             : 
     673           0 :             if ((!(Read((&(aPromiseId)), (&(msg__)), (&(iter__)))))) {
     674           0 :                 FatalError("Error deserializing 'uint32_t'");
     675           0 :                 return MsgValueError;
     676             :             }
     677             :             // Sentinel = 'aPromiseId'
     678           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1396174085)))) {
     679           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     680           0 :                 return MsgValueError;
     681             :             }
     682           0 :             if ((!(Read((&(aServerCert)), (&(msg__)), (&(iter__)))))) {
     683           0 :                 FatalError("Error deserializing 'nsTArray'");
     684           0 :                 return MsgValueError;
     685             :             }
     686             :             // Sentinel = 'aServerCert'
     687           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 370477549)))) {
     688           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     689           0 :                 return MsgValueError;
     690             :             }
     691           0 :             (msg__).EndRead(iter__, (msg__).type());
     692           0 :             PGMPDecryptor::Transition(PGMPDecryptor::Msg_SetServerCertificate__ID, (&(mState)));
     693           0 :             if ((!(RecvSetServerCertificate(mozilla::Move(aPromiseId), mozilla::Move(aServerCert))))) {
     694           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     695             :                 // Error handled in mozilla::ipc::IPCResult
     696           0 :                 return MsgProcessingError;
     697             :             }
     698             : 
     699           0 :             return MsgProcessed;
     700             :         }
     701             :     case PGMPDecryptor::Msg_Decrypt__ID:
     702             :         {
     703           0 :             if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     704           0 :                 mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     705             :             }
     706           0 :             AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_Decrypt", OTHER);
     707             : 
     708           0 :             PickleIterator iter__(msg__);
     709             :             uint32_t aId;
     710           0 :             nsTArray<uint8_t> aBuffer;
     711           0 :             GMPDecryptionData aMetadata;
     712             : 
     713           0 :             if ((!(Read((&(aId)), (&(msg__)), (&(iter__)))))) {
     714           0 :                 FatalError("Error deserializing 'uint32_t'");
     715           0 :                 return MsgValueError;
     716             :             }
     717             :             // Sentinel = 'aId'
     718           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
     719           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     720           0 :                 return MsgValueError;
     721             :             }
     722           0 :             if ((!(Read((&(aBuffer)), (&(msg__)), (&(iter__)))))) {
     723           0 :                 FatalError("Error deserializing 'nsTArray'");
     724           0 :                 return MsgValueError;
     725             :             }
     726             :             // Sentinel = 'aBuffer'
     727           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 35469444)))) {
     728           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     729           0 :                 return MsgValueError;
     730             :             }
     731           0 :             if ((!(Read((&(aMetadata)), (&(msg__)), (&(iter__)))))) {
     732           0 :                 FatalError("Error deserializing 'GMPDecryptionData'");
     733           0 :                 return MsgValueError;
     734             :             }
     735             :             // Sentinel = 'aMetadata'
     736           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2898605475)))) {
     737           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'GMPDecryptionData'");
     738           0 :                 return MsgValueError;
     739             :             }
     740           0 :             (msg__).EndRead(iter__, (msg__).type());
     741           0 :             PGMPDecryptor::Transition(PGMPDecryptor::Msg_Decrypt__ID, (&(mState)));
     742           0 :             if ((!(RecvDecrypt(mozilla::Move(aId), mozilla::Move(aBuffer), mozilla::Move(aMetadata))))) {
     743           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     744             :                 // Error handled in mozilla::ipc::IPCResult
     745           0 :                 return MsgProcessingError;
     746             :             }
     747             : 
     748           0 :             return MsgProcessed;
     749             :         }
     750             :     case PGMPDecryptor::Msg_DecryptingComplete__ID:
     751             :         {
     752           0 :             if (mozilla::ipc::LoggingEnabledFor("PGMPDecryptorChild")) {
     753           0 :                 mozilla::ipc::LogMessageForProtocol("PGMPDecryptorChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     754             :             }
     755           0 :             AUTO_PROFILER_LABEL("PGMPDecryptor::Msg_DecryptingComplete", OTHER);
     756             : 
     757           0 :             PGMPDecryptor::Transition(PGMPDecryptor::Msg_DecryptingComplete__ID, (&(mState)));
     758           0 :             if ((!(RecvDecryptingComplete()))) {
     759           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     760             :                 // Error handled in mozilla::ipc::IPCResult
     761           0 :                 return MsgProcessingError;
     762             :             }
     763             : 
     764           0 :             return MsgProcessed;
     765             :         }
     766             :     case PGMPDecryptor::Reply___delete____ID:
     767             :         {
     768           0 :             return MsgProcessed;
     769             :         }
     770             :     default:
     771             :         {
     772           0 :             return MsgNotKnown;
     773             :         }
     774             :     }
     775             : }
     776             : 
     777           0 : auto PGMPDecryptorChild::OnMessageReceived(
     778             :         const Message& msg__,
     779             :         Message*& reply__) -> PGMPDecryptorChild::Result
     780             : {
     781           0 :     return MsgNotKnown;
     782             : }
     783             : 
     784           0 : auto PGMPDecryptorChild::OnCallReceived(
     785             :         const Message& msg__,
     786             :         Message*& reply__) -> PGMPDecryptorChild::Result
     787             : {
     788           0 :     return MsgNotKnown;
     789             : }
     790             : 
     791           0 : auto PGMPDecryptorChild::GetProtocolTypeId() -> int32_t
     792             : {
     793           0 :     return PGMPDecryptorMsgStart;
     794             : }
     795             : 
     796           0 : auto PGMPDecryptorChild::ProtocolName() const -> const char*
     797             : {
     798           0 :     return "PGMPDecryptorChild";
     799             : }
     800             : 
     801           0 : auto PGMPDecryptorChild::DestroySubtree(ActorDestroyReason why) -> void
     802             : {
     803             :     // Unregister from our manager.
     804           0 :     Unregister(Id());
     805             : 
     806             :     // Reject owning pending promises.
     807           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     808             : 
     809             :     // Finally, destroy "us".
     810           0 :     ActorDestroy(why);
     811           0 : }
     812             : 
     813           0 : auto PGMPDecryptorChild::DeallocSubtree() -> void
     814             : {
     815           0 : }
     816             : 
     817           0 : auto PGMPDecryptorChild::Write(
     818             :         const GMPDecryptionData& v__,
     819             :         Message* msg__) -> void
     820             : {
     821           0 :     Write((v__).mKeyId(), msg__);
     822             :     // Sentinel = 'mKeyId'
     823           0 :     (msg__)->WriteSentinel(3981028119);
     824           0 :     Write((v__).mIV(), msg__);
     825             :     // Sentinel = 'mIV'
     826           0 :     (msg__)->WriteSentinel(2012943167);
     827           0 :     Write((v__).mClearBytes(), msg__);
     828             :     // Sentinel = 'mClearBytes'
     829           0 :     (msg__)->WriteSentinel(2207723306);
     830           0 :     Write((v__).mCipherBytes(), msg__);
     831             :     // Sentinel = 'mCipherBytes'
     832           0 :     (msg__)->WriteSentinel(2558919233);
     833           0 :     Write((v__).mSessionIds(), msg__);
     834             :     // Sentinel = 'mSessionIds'
     835           0 :     (msg__)->WriteSentinel(2015252892);
     836           0 : }
     837             : 
     838           0 : auto PGMPDecryptorChild::Read(
     839             :         GMPDecryptionData* v__,
     840             :         const Message* msg__,
     841             :         PickleIterator* iter__) -> bool
     842             : {
     843           0 :     if ((!(Read((&((v__)->mKeyId())), msg__, iter__)))) {
     844           0 :         FatalError("Error deserializing 'mKeyId' (uint8_t[]) member of 'GMPDecryptionData'");
     845           0 :         return false;
     846             :     }
     847             :     // Sentinel = 'mKeyId'
     848           0 :     if ((!((msg__)->ReadSentinel(iter__, 3981028119)))) {
     849           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mKeyId' (uint8_t[]) member of 'GMPDecryptionData'");
     850           0 :         return false;
     851             :     }
     852           0 :     if ((!(Read((&((v__)->mIV())), msg__, iter__)))) {
     853           0 :         FatalError("Error deserializing 'mIV' (uint8_t[]) member of 'GMPDecryptionData'");
     854           0 :         return false;
     855             :     }
     856             :     // Sentinel = 'mIV'
     857           0 :     if ((!((msg__)->ReadSentinel(iter__, 2012943167)))) {
     858           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mIV' (uint8_t[]) member of 'GMPDecryptionData'");
     859           0 :         return false;
     860             :     }
     861           0 :     if ((!(Read((&((v__)->mClearBytes())), msg__, iter__)))) {
     862           0 :         FatalError("Error deserializing 'mClearBytes' (uint16_t[]) member of 'GMPDecryptionData'");
     863           0 :         return false;
     864             :     }
     865             :     // Sentinel = 'mClearBytes'
     866           0 :     if ((!((msg__)->ReadSentinel(iter__, 2207723306)))) {
     867           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mClearBytes' (uint16_t[]) member of 'GMPDecryptionData'");
     868           0 :         return false;
     869             :     }
     870           0 :     if ((!(Read((&((v__)->mCipherBytes())), msg__, iter__)))) {
     871           0 :         FatalError("Error deserializing 'mCipherBytes' (uint32_t[]) member of 'GMPDecryptionData'");
     872           0 :         return false;
     873             :     }
     874             :     // Sentinel = 'mCipherBytes'
     875           0 :     if ((!((msg__)->ReadSentinel(iter__, 2558919233)))) {
     876           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mCipherBytes' (uint32_t[]) member of 'GMPDecryptionData'");
     877           0 :         return false;
     878             :     }
     879           0 :     if ((!(Read((&((v__)->mSessionIds())), msg__, iter__)))) {
     880           0 :         FatalError("Error deserializing 'mSessionIds' (nsCString[]) member of 'GMPDecryptionData'");
     881           0 :         return false;
     882             :     }
     883             :     // Sentinel = 'mSessionIds'
     884           0 :     if ((!((msg__)->ReadSentinel(iter__, 2015252892)))) {
     885           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mSessionIds' (nsCString[]) member of 'GMPDecryptionData'");
     886           0 :         return false;
     887             :     }
     888           0 :     return true;
     889             : }
     890             : 
     891           0 : auto PGMPDecryptorChild::Write(
     892             :         const nsTArray<GMPKeyInformation>& v__,
     893             :         Message* msg__) -> void
     894             : {
     895           0 :     uint32_t length = (v__).Length();
     896           0 :     Write(length, msg__);
     897             :     // Sentinel = ('length', 'GMPKeyInformation[]')
     898           0 :     (msg__)->WriteSentinel(1816615355);
     899             : 
     900           0 :     for (auto& elem : v__) {
     901           0 :         Write(elem, msg__);
     902             :         // Sentinel = 'GMPKeyInformation[]'
     903           0 :         (msg__)->WriteSentinel(2141605854);
     904             :     }
     905           0 : }
     906             : 
     907           0 : auto PGMPDecryptorChild::Read(
     908             :         nsTArray<GMPKeyInformation>* v__,
     909             :         const Message* msg__,
     910             :         PickleIterator* iter__) -> bool
     911             : {
     912           0 :     nsTArray<GMPKeyInformation> fa;
     913             :     uint32_t length;
     914           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
     915           0 :         mozilla::ipc::ArrayLengthReadError("GMPKeyInformation[]");
     916           0 :         return false;
     917             :     }
     918             :     // Sentinel = ('length', 'GMPKeyInformation[]')
     919           0 :     if ((!((msg__)->ReadSentinel(iter__, 1816615355)))) {
     920           0 :         mozilla::ipc::SentinelReadError("GMPKeyInformation[]");
     921           0 :         return false;
     922             :     }
     923             : 
     924           0 :     GMPKeyInformation* elems = (fa).AppendElements(length);
     925           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
     926           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
     927           0 :             FatalError("Error deserializing 'GMPKeyInformation[i]'");
     928           0 :             return false;
     929             :         }
     930             :         // Sentinel = 'GMPKeyInformation[]'
     931           0 :         if ((!((msg__)->ReadSentinel(iter__, 2141605854)))) {
     932           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'GMPKeyInformation[i]'");
     933           0 :             return false;
     934             :         }
     935             :     }
     936           0 :     (v__)->SwapElements(fa);
     937           0 :     return true;
     938             : }
     939             : 
     940           0 : auto PGMPDecryptorChild::Write(
     941             :         const GMPKeyInformation& v__,
     942             :         Message* msg__) -> void
     943             : {
     944           0 :     Write((v__).keyId(), msg__);
     945             :     // Sentinel = 'keyId'
     946           0 :     (msg__)->WriteSentinel(948857603);
     947           0 :     Write((v__).status(), msg__);
     948             :     // Sentinel = 'status'
     949           0 :     (msg__)->WriteSentinel(3714608576);
     950           0 : }
     951             : 
     952           0 : auto PGMPDecryptorChild::Read(
     953             :         GMPKeyInformation* v__,
     954             :         const Message* msg__,
     955             :         PickleIterator* iter__) -> bool
     956             : {
     957           0 :     if ((!(Read((&((v__)->keyId())), msg__, iter__)))) {
     958           0 :         FatalError("Error deserializing 'keyId' (uint8_t[]) member of 'GMPKeyInformation'");
     959           0 :         return false;
     960             :     }
     961             :     // Sentinel = 'keyId'
     962           0 :     if ((!((msg__)->ReadSentinel(iter__, 948857603)))) {
     963           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'keyId' (uint8_t[]) member of 'GMPKeyInformation'");
     964           0 :         return false;
     965             :     }
     966           0 :     if ((!(Read((&((v__)->status())), msg__, iter__)))) {
     967           0 :         FatalError("Error deserializing 'status' (GMPMediaKeyStatus) member of 'GMPKeyInformation'");
     968           0 :         return false;
     969             :     }
     970             :     // Sentinel = 'status'
     971           0 :     if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
     972           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'status' (GMPMediaKeyStatus) member of 'GMPKeyInformation'");
     973           0 :         return false;
     974             :     }
     975           0 :     return true;
     976             : }
     977             : 
     978           0 : auto PGMPDecryptorChild::Write(
     979             :         const PGMPDecryptorChild* v__,
     980             :         Message* msg__,
     981             :         bool nullable__) -> void
     982             : {
     983             :     int32_t id;
     984           0 :     if ((!(v__))) {
     985           0 :         if ((!(nullable__))) {
     986           0 :             FatalError("NULL actor value passed to non-nullable param");
     987             :         }
     988           0 :         id = 0;
     989             :     }
     990             :     else {
     991           0 :         id = (v__)->Id();
     992           0 :         if ((1) == (id)) {
     993           0 :             FatalError("actor has been |delete|d");
     994             :         }
     995             :     }
     996             : 
     997           0 :     Write(id, msg__);
     998           0 : }
     999             : 
    1000           0 : auto PGMPDecryptorChild::Read(
    1001             :         PGMPDecryptorChild** v__,
    1002             :         const Message* msg__,
    1003             :         PickleIterator* iter__,
    1004             :         bool nullable__) -> bool
    1005             : {
    1006           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PGMPDecryptor", PGMPDecryptorMsgStart);
    1007           0 :     if ((actor).isNothing()) {
    1008           0 :         return false;
    1009             :     }
    1010             : 
    1011           0 :     (*(v__)) = static_cast<PGMPDecryptorChild*>((actor).value());
    1012           0 :     return true;
    1013             : }
    1014             : 
    1015             : 
    1016             : 
    1017             : } // namespace gmp
    1018             : } // namespace mozilla

Generated by: LCOV version 1.13