LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PPresentationParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 718 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 45 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/dom/PPresentationParent.h"
       8             : #include "mozilla/dom/PermissionMessageUtils.h"
       9             : 
      10             : #include "mozilla/dom/PContentParent.h"
      11             : #include "mozilla/dom/PPresentationRequestParent.h"
      12             : #include "mozilla/dom/PPresentationBuilderParent.h"
      13             : 
      14             : #include "nsIFile.h"
      15             : #include "GeckoProfiler.h"
      16             : 
      17             : namespace mozilla {
      18             : namespace dom {
      19             : 
      20             : 
      21           0 : auto PPresentationParent::Recv__delete__() -> mozilla::ipc::IPCResult
      22             : {
      23           0 :     return IPC_OK();
      24             : }
      25             : 
      26           0 : auto PPresentationParent::RecvPPresentationRequestConstructor(
      27             :         PPresentationRequestParent* actor,
      28             :         const PresentationIPCRequest& aRequest) -> mozilla::ipc::IPCResult
      29             : {
      30           0 :     return IPC_OK();
      31             : }
      32             : 
      33             : 
      34           0 : MOZ_IMPLICIT PPresentationParent::PPresentationParent() :
      35             :     mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
      36           0 :     mState(PPresentation::__Dead)
      37             : {
      38           0 :     MOZ_COUNT_CTOR(PPresentationParent);
      39           0 : }
      40             : 
      41           0 : PPresentationParent::~PPresentationParent()
      42             : {
      43           0 :     MOZ_COUNT_DTOR(PPresentationParent);
      44           0 : }
      45             : 
      46           0 : auto PPresentationParent::Manager() const -> PContentParent*
      47             : {
      48           0 :     return static_cast<PContentParent*>(IProtocol::Manager());
      49             : }
      50             : 
      51           0 : auto PPresentationParent::ManagedPPresentationBuilderParent(nsTArray<PPresentationBuilderParent*>& aArr) const -> void
      52             : {
      53           0 :     (mManagedPPresentationBuilderParent).ToArray(aArr);
      54           0 : }
      55             : 
      56           0 : auto PPresentationParent::ManagedPPresentationBuilderParent() const -> const ManagedContainer<PPresentationBuilderParent>&
      57             : {
      58           0 :     return mManagedPPresentationBuilderParent;
      59             : }
      60             : 
      61           0 : auto PPresentationParent::ManagedPPresentationRequestParent(nsTArray<PPresentationRequestParent*>& aArr) const -> void
      62             : {
      63           0 :     (mManagedPPresentationRequestParent).ToArray(aArr);
      64           0 : }
      65             : 
      66           0 : auto PPresentationParent::ManagedPPresentationRequestParent() const -> const ManagedContainer<PPresentationRequestParent>&
      67             : {
      68           0 :     return mManagedPPresentationRequestParent;
      69             : }
      70             : 
      71           0 : auto PPresentationParent::SendNotifyAvailableChange(
      72             :         const nsTArray<nsString>& aAvailabilityUrls,
      73             :         const bool& aAvailable) -> bool
      74             : {
      75           0 :     IPC::Message* msg__ = PPresentation::Msg_NotifyAvailableChange(Id());
      76             : 
      77           0 :     Write(aAvailabilityUrls, msg__);
      78             :     // Sentinel = 'aAvailabilityUrls'
      79           0 :     (msg__)->WriteSentinel(4288475919);
      80           0 :     Write(aAvailable, msg__);
      81             :     // Sentinel = 'aAvailable'
      82           0 :     (msg__)->WriteSentinel(1825731316);
      83             : 
      84             : 
      85             : 
      86             : 
      87           0 :     if (mozilla::ipc::LoggingEnabledFor("PPresentationParent")) {
      88           0 :         mozilla::ipc::LogMessageForProtocol("PPresentationParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      89             :     }
      90           0 :     AUTO_PROFILER_LABEL("PPresentation::Msg_NotifyAvailableChange", OTHER);
      91           0 :     PPresentation::Transition(PPresentation::Msg_NotifyAvailableChange__ID, (&(mState)));
      92             : 
      93           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      94           0 :     return sendok__;
      95             : }
      96             : 
      97           0 : auto PPresentationParent::SendNotifySessionStateChange(
      98             :         const nsString& aSessionId,
      99             :         const uint16_t& aState,
     100             :         const nsresult& aReason) -> bool
     101             : {
     102           0 :     IPC::Message* msg__ = PPresentation::Msg_NotifySessionStateChange(Id());
     103             : 
     104           0 :     Write(aSessionId, msg__);
     105             :     // Sentinel = 'aSessionId'
     106           0 :     (msg__)->WriteSentinel(725794242);
     107           0 :     Write(aState, msg__);
     108             :     // Sentinel = 'aState'
     109           0 :     (msg__)->WriteSentinel(3694751962);
     110           0 :     Write(aReason, msg__);
     111             :     // Sentinel = 'aReason'
     112           0 :     (msg__)->WriteSentinel(829905706);
     113             : 
     114             : 
     115             : 
     116             : 
     117           0 :     if (mozilla::ipc::LoggingEnabledFor("PPresentationParent")) {
     118           0 :         mozilla::ipc::LogMessageForProtocol("PPresentationParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     119             :     }
     120           0 :     AUTO_PROFILER_LABEL("PPresentation::Msg_NotifySessionStateChange", OTHER);
     121           0 :     PPresentation::Transition(PPresentation::Msg_NotifySessionStateChange__ID, (&(mState)));
     122             : 
     123           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     124           0 :     return sendok__;
     125             : }
     126             : 
     127           0 : auto PPresentationParent::SendNotifyMessage(
     128             :         const nsString& aSessionId,
     129             :         const nsCString& aData,
     130             :         const bool& aIsBinary) -> bool
     131             : {
     132           0 :     IPC::Message* msg__ = PPresentation::Msg_NotifyMessage(Id());
     133             : 
     134           0 :     Write(aSessionId, msg__);
     135             :     // Sentinel = 'aSessionId'
     136           0 :     (msg__)->WriteSentinel(725794242);
     137           0 :     Write(aData, msg__);
     138             :     // Sentinel = 'aData'
     139           0 :     (msg__)->WriteSentinel(3285075324);
     140           0 :     Write(aIsBinary, msg__);
     141             :     // Sentinel = 'aIsBinary'
     142           0 :     (msg__)->WriteSentinel(2416980823);
     143             : 
     144             : 
     145             : 
     146             : 
     147           0 :     if (mozilla::ipc::LoggingEnabledFor("PPresentationParent")) {
     148           0 :         mozilla::ipc::LogMessageForProtocol("PPresentationParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     149             :     }
     150           0 :     AUTO_PROFILER_LABEL("PPresentation::Msg_NotifyMessage", OTHER);
     151           0 :     PPresentation::Transition(PPresentation::Msg_NotifyMessage__ID, (&(mState)));
     152             : 
     153           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     154           0 :     return sendok__;
     155             : }
     156             : 
     157           0 : auto PPresentationParent::SendNotifySessionConnect(
     158             :         const uint64_t& aWindowId,
     159             :         const nsString& aSessionId) -> bool
     160             : {
     161           0 :     IPC::Message* msg__ = PPresentation::Msg_NotifySessionConnect(Id());
     162             : 
     163           0 :     Write(aWindowId, msg__);
     164             :     // Sentinel = 'aWindowId'
     165           0 :     (msg__)->WriteSentinel(3844940347);
     166           0 :     Write(aSessionId, msg__);
     167             :     // Sentinel = 'aSessionId'
     168           0 :     (msg__)->WriteSentinel(725794242);
     169             : 
     170             : 
     171             : 
     172             : 
     173           0 :     if (mozilla::ipc::LoggingEnabledFor("PPresentationParent")) {
     174           0 :         mozilla::ipc::LogMessageForProtocol("PPresentationParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     175             :     }
     176           0 :     AUTO_PROFILER_LABEL("PPresentation::Msg_NotifySessionConnect", OTHER);
     177           0 :     PPresentation::Transition(PPresentation::Msg_NotifySessionConnect__ID, (&(mState)));
     178             : 
     179           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     180           0 :     return sendok__;
     181             : }
     182             : 
     183           0 : auto PPresentationParent::SendNotifyCloseSessionTransport(
     184             :         const nsString& aSessionId,
     185             :         const uint8_t& aRole,
     186             :         const nsresult& aReason) -> bool
     187             : {
     188           0 :     IPC::Message* msg__ = PPresentation::Msg_NotifyCloseSessionTransport(Id());
     189             : 
     190           0 :     Write(aSessionId, msg__);
     191             :     // Sentinel = 'aSessionId'
     192           0 :     (msg__)->WriteSentinel(725794242);
     193           0 :     Write(aRole, msg__);
     194             :     // Sentinel = 'aRole'
     195           0 :     (msg__)->WriteSentinel(985916136);
     196           0 :     Write(aReason, msg__);
     197             :     // Sentinel = 'aReason'
     198           0 :     (msg__)->WriteSentinel(829905706);
     199             : 
     200             : 
     201             : 
     202             : 
     203           0 :     if (mozilla::ipc::LoggingEnabledFor("PPresentationParent")) {
     204           0 :         mozilla::ipc::LogMessageForProtocol("PPresentationParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     205             :     }
     206           0 :     AUTO_PROFILER_LABEL("PPresentation::Msg_NotifyCloseSessionTransport", OTHER);
     207           0 :     PPresentation::Transition(PPresentation::Msg_NotifyCloseSessionTransport__ID, (&(mState)));
     208             : 
     209           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     210           0 :     return sendok__;
     211             : }
     212             : 
     213           0 : auto PPresentationParent::SendPPresentationBuilderConstructor(
     214             :         const nsString& aSessionId,
     215             :         const uint8_t& aRole) -> PPresentationBuilderParent*
     216             : {
     217           0 :     return SendPPresentationBuilderConstructor(AllocPPresentationBuilderParent(aSessionId, aRole), aSessionId, aRole);
     218             : }
     219             : 
     220           0 : auto PPresentationParent::SendPPresentationBuilderConstructor(
     221             :         PPresentationBuilderParent* actor,
     222             :         const nsString& aSessionId,
     223             :         const uint8_t& aRole) -> PPresentationBuilderParent*
     224             : {
     225           0 :     if ((!(actor))) {
     226           0 :         NS_WARNING("Error constructing actor PPresentationBuilderParent");
     227           0 :         return nullptr;
     228             :     }
     229           0 :     (actor)->SetManager(this);
     230           0 :     Register(actor);
     231           0 :     (actor)->SetIPCChannel(GetIPCChannel());
     232           0 :     (mManagedPPresentationBuilderParent).PutEntry(actor);
     233           0 :     (actor)->mState = mozilla::dom::PPresentationBuilder::__Start;
     234             : 
     235           0 :     IPC::Message* msg__ = PPresentation::Msg_PPresentationBuilderConstructor(Id());
     236             : 
     237           0 :     Write(actor, msg__, false);
     238             :     // Sentinel = 'actor'
     239           0 :     (msg__)->WriteSentinel(875202478);
     240           0 :     Write(aSessionId, msg__);
     241             :     // Sentinel = 'aSessionId'
     242           0 :     (msg__)->WriteSentinel(725794242);
     243           0 :     Write(aRole, msg__);
     244             :     // Sentinel = 'aRole'
     245           0 :     (msg__)->WriteSentinel(985916136);
     246             : 
     247           0 :     (msg__)->set_constructor();
     248             : 
     249             : 
     250           0 :     if (mozilla::ipc::LoggingEnabledFor("PPresentationParent")) {
     251           0 :         mozilla::ipc::LogMessageForProtocol("PPresentationParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     252             :     }
     253           0 :     AUTO_PROFILER_LABEL("PPresentation::Msg_PPresentationBuilderConstructor", OTHER);
     254           0 :     PPresentation::Transition(PPresentation::Msg_PPresentationBuilderConstructor__ID, (&(mState)));
     255             : 
     256           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     257           0 :     if ((!(sendok__))) {
     258           0 :         IProtocol* mgr = (actor)->Manager();
     259           0 :         (actor)->DestroySubtree(FailedConstructor);
     260           0 :         (actor)->DeallocSubtree();
     261           0 :         (mgr)->RemoveManagee(PPresentationBuilderMsgStart, actor);
     262           0 :         return nullptr;
     263             :     }
     264           0 :     return actor;
     265             : }
     266             : 
     267           0 : auto PPresentationParent::RemoveManagee(
     268             :         int32_t aProtocolId,
     269             :         ProtocolBase* aListener) -> void
     270             : {
     271           0 :     switch (aProtocolId) {
     272             :     case PPresentationBuilderMsgStart:
     273             :         {
     274           0 :             PPresentationBuilderParent* actor = static_cast<PPresentationBuilderParent*>(aListener);
     275           0 :             auto& container = mManagedPPresentationBuilderParent;
     276           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
     277             : 
     278           0 :             (container).RemoveEntry(actor);
     279           0 :             DeallocPPresentationBuilderParent(actor);
     280           0 :             return;
     281             :         }
     282             :     case PPresentationRequestMsgStart:
     283             :         {
     284           0 :             PPresentationRequestParent* actor = static_cast<PPresentationRequestParent*>(aListener);
     285           0 :             auto& container = mManagedPPresentationRequestParent;
     286           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
     287             : 
     288           0 :             (container).RemoveEntry(actor);
     289           0 :             DeallocPPresentationRequestParent(actor);
     290           0 :             return;
     291             :         }
     292             :     default:
     293             :         {
     294           0 :             FatalError("unreached");
     295           0 :             return;
     296             :         }
     297             :     }
     298             : }
     299             : 
     300           0 : auto PPresentationParent::OnMessageReceived(const Message& msg__) -> PPresentationParent::Result
     301             : {
     302           0 :     switch ((msg__).type()) {
     303             :     case PPresentation::Reply_PPresentationBuilderConstructor__ID:
     304             :         {
     305           0 :             return MsgProcessed;
     306             :         }
     307             :     case PPresentation::Msg___delete____ID:
     308             :         {
     309           0 :             if (mozilla::ipc::LoggingEnabledFor("PPresentationParent")) {
     310           0 :                 mozilla::ipc::LogMessageForProtocol("PPresentationParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     311             :             }
     312           0 :             AUTO_PROFILER_LABEL("PPresentation::Msg___delete__", OTHER);
     313             : 
     314           0 :             PickleIterator iter__(msg__);
     315             :             PPresentationParent* actor;
     316             : 
     317           0 :             if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
     318           0 :                 FatalError("Error deserializing 'PPresentationParent'");
     319           0 :                 return MsgValueError;
     320             :             }
     321             :             // Sentinel = 'actor'
     322           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
     323           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PPresentationParent'");
     324           0 :                 return MsgValueError;
     325             :             }
     326           0 :             (msg__).EndRead(iter__, (msg__).type());
     327           0 :             PPresentation::Transition(PPresentation::Msg___delete____ID, (&(mState)));
     328           0 :             if ((!(Recv__delete__()))) {
     329           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     330             :                 // Error handled in mozilla::ipc::IPCResult
     331           0 :                 return MsgProcessingError;
     332             :             }
     333             : 
     334             : 
     335           0 :             IProtocol* mgr = (actor)->Manager();
     336           0 :             (actor)->DestroySubtree(Deletion);
     337           0 :             (actor)->DeallocSubtree();
     338           0 :             (mgr)->RemoveManagee(PPresentationMsgStart, actor);
     339             : 
     340           0 :             return MsgProcessed;
     341             :         }
     342             :     case PPresentation::Msg_RegisterAvailabilityHandler__ID:
     343             :         {
     344           0 :             if (mozilla::ipc::LoggingEnabledFor("PPresentationParent")) {
     345           0 :                 mozilla::ipc::LogMessageForProtocol("PPresentationParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     346             :             }
     347           0 :             AUTO_PROFILER_LABEL("PPresentation::Msg_RegisterAvailabilityHandler", OTHER);
     348             : 
     349           0 :             PickleIterator iter__(msg__);
     350           0 :             nsTArray<nsString> aAvailabilityUrls;
     351             : 
     352           0 :             if ((!(Read((&(aAvailabilityUrls)), (&(msg__)), (&(iter__)))))) {
     353           0 :                 FatalError("Error deserializing 'nsTArray'");
     354           0 :                 return MsgValueError;
     355             :             }
     356             :             // Sentinel = 'aAvailabilityUrls'
     357           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4288475919)))) {
     358           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     359           0 :                 return MsgValueError;
     360             :             }
     361           0 :             (msg__).EndRead(iter__, (msg__).type());
     362           0 :             PPresentation::Transition(PPresentation::Msg_RegisterAvailabilityHandler__ID, (&(mState)));
     363           0 :             if ((!(RecvRegisterAvailabilityHandler(mozilla::Move(aAvailabilityUrls))))) {
     364           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     365             :                 // Error handled in mozilla::ipc::IPCResult
     366           0 :                 return MsgProcessingError;
     367             :             }
     368             : 
     369           0 :             return MsgProcessed;
     370             :         }
     371             :     case PPresentation::Msg_UnregisterAvailabilityHandler__ID:
     372             :         {
     373           0 :             if (mozilla::ipc::LoggingEnabledFor("PPresentationParent")) {
     374           0 :                 mozilla::ipc::LogMessageForProtocol("PPresentationParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     375             :             }
     376           0 :             AUTO_PROFILER_LABEL("PPresentation::Msg_UnregisterAvailabilityHandler", OTHER);
     377             : 
     378           0 :             PickleIterator iter__(msg__);
     379           0 :             nsTArray<nsString> aAvailabilityUrls;
     380             : 
     381           0 :             if ((!(Read((&(aAvailabilityUrls)), (&(msg__)), (&(iter__)))))) {
     382           0 :                 FatalError("Error deserializing 'nsTArray'");
     383           0 :                 return MsgValueError;
     384             :             }
     385             :             // Sentinel = 'aAvailabilityUrls'
     386           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4288475919)))) {
     387           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     388           0 :                 return MsgValueError;
     389             :             }
     390           0 :             (msg__).EndRead(iter__, (msg__).type());
     391           0 :             PPresentation::Transition(PPresentation::Msg_UnregisterAvailabilityHandler__ID, (&(mState)));
     392           0 :             if ((!(RecvUnregisterAvailabilityHandler(mozilla::Move(aAvailabilityUrls))))) {
     393           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     394             :                 // Error handled in mozilla::ipc::IPCResult
     395           0 :                 return MsgProcessingError;
     396             :             }
     397             : 
     398           0 :             return MsgProcessed;
     399             :         }
     400             :     case PPresentation::Msg_RegisterSessionHandler__ID:
     401             :         {
     402           0 :             if (mozilla::ipc::LoggingEnabledFor("PPresentationParent")) {
     403           0 :                 mozilla::ipc::LogMessageForProtocol("PPresentationParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     404             :             }
     405           0 :             AUTO_PROFILER_LABEL("PPresentation::Msg_RegisterSessionHandler", OTHER);
     406             : 
     407           0 :             PickleIterator iter__(msg__);
     408           0 :             nsString aSessionId;
     409             :             uint8_t aRole;
     410             : 
     411           0 :             if ((!(Read((&(aSessionId)), (&(msg__)), (&(iter__)))))) {
     412           0 :                 FatalError("Error deserializing 'nsString'");
     413           0 :                 return MsgValueError;
     414             :             }
     415             :             // Sentinel = 'aSessionId'
     416           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 725794242)))) {
     417           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
     418           0 :                 return MsgValueError;
     419             :             }
     420           0 :             if ((!(Read((&(aRole)), (&(msg__)), (&(iter__)))))) {
     421           0 :                 FatalError("Error deserializing 'uint8_t'");
     422           0 :                 return MsgValueError;
     423             :             }
     424             :             // Sentinel = 'aRole'
     425           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 985916136)))) {
     426           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint8_t'");
     427           0 :                 return MsgValueError;
     428             :             }
     429           0 :             (msg__).EndRead(iter__, (msg__).type());
     430           0 :             PPresentation::Transition(PPresentation::Msg_RegisterSessionHandler__ID, (&(mState)));
     431           0 :             if ((!(RecvRegisterSessionHandler(mozilla::Move(aSessionId), mozilla::Move(aRole))))) {
     432           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     433             :                 // Error handled in mozilla::ipc::IPCResult
     434           0 :                 return MsgProcessingError;
     435             :             }
     436             : 
     437           0 :             return MsgProcessed;
     438             :         }
     439             :     case PPresentation::Msg_UnregisterSessionHandler__ID:
     440             :         {
     441           0 :             if (mozilla::ipc::LoggingEnabledFor("PPresentationParent")) {
     442           0 :                 mozilla::ipc::LogMessageForProtocol("PPresentationParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     443             :             }
     444           0 :             AUTO_PROFILER_LABEL("PPresentation::Msg_UnregisterSessionHandler", OTHER);
     445             : 
     446           0 :             PickleIterator iter__(msg__);
     447           0 :             nsString aSessionId;
     448             :             uint8_t aRole;
     449             : 
     450           0 :             if ((!(Read((&(aSessionId)), (&(msg__)), (&(iter__)))))) {
     451           0 :                 FatalError("Error deserializing 'nsString'");
     452           0 :                 return MsgValueError;
     453             :             }
     454             :             // Sentinel = 'aSessionId'
     455           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 725794242)))) {
     456           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
     457           0 :                 return MsgValueError;
     458             :             }
     459           0 :             if ((!(Read((&(aRole)), (&(msg__)), (&(iter__)))))) {
     460           0 :                 FatalError("Error deserializing 'uint8_t'");
     461           0 :                 return MsgValueError;
     462             :             }
     463             :             // Sentinel = 'aRole'
     464           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 985916136)))) {
     465           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint8_t'");
     466           0 :                 return MsgValueError;
     467             :             }
     468           0 :             (msg__).EndRead(iter__, (msg__).type());
     469           0 :             PPresentation::Transition(PPresentation::Msg_UnregisterSessionHandler__ID, (&(mState)));
     470           0 :             if ((!(RecvUnregisterSessionHandler(mozilla::Move(aSessionId), mozilla::Move(aRole))))) {
     471           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     472             :                 // Error handled in mozilla::ipc::IPCResult
     473           0 :                 return MsgProcessingError;
     474             :             }
     475             : 
     476           0 :             return MsgProcessed;
     477             :         }
     478             :     case PPresentation::Msg_RegisterRespondingHandler__ID:
     479             :         {
     480           0 :             if (mozilla::ipc::LoggingEnabledFor("PPresentationParent")) {
     481           0 :                 mozilla::ipc::LogMessageForProtocol("PPresentationParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     482             :             }
     483           0 :             AUTO_PROFILER_LABEL("PPresentation::Msg_RegisterRespondingHandler", OTHER);
     484             : 
     485           0 :             PickleIterator iter__(msg__);
     486             :             uint64_t aWindowId;
     487             : 
     488           0 :             if ((!(Read((&(aWindowId)), (&(msg__)), (&(iter__)))))) {
     489           0 :                 FatalError("Error deserializing 'uint64_t'");
     490           0 :                 return MsgValueError;
     491             :             }
     492             :             // Sentinel = 'aWindowId'
     493           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3844940347)))) {
     494           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     495           0 :                 return MsgValueError;
     496             :             }
     497           0 :             (msg__).EndRead(iter__, (msg__).type());
     498           0 :             PPresentation::Transition(PPresentation::Msg_RegisterRespondingHandler__ID, (&(mState)));
     499           0 :             if ((!(RecvRegisterRespondingHandler(mozilla::Move(aWindowId))))) {
     500           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     501             :                 // Error handled in mozilla::ipc::IPCResult
     502           0 :                 return MsgProcessingError;
     503             :             }
     504             : 
     505           0 :             return MsgProcessed;
     506             :         }
     507             :     case PPresentation::Msg_UnregisterRespondingHandler__ID:
     508             :         {
     509           0 :             if (mozilla::ipc::LoggingEnabledFor("PPresentationParent")) {
     510           0 :                 mozilla::ipc::LogMessageForProtocol("PPresentationParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     511             :             }
     512           0 :             AUTO_PROFILER_LABEL("PPresentation::Msg_UnregisterRespondingHandler", OTHER);
     513             : 
     514           0 :             PickleIterator iter__(msg__);
     515             :             uint64_t aWindowId;
     516             : 
     517           0 :             if ((!(Read((&(aWindowId)), (&(msg__)), (&(iter__)))))) {
     518           0 :                 FatalError("Error deserializing 'uint64_t'");
     519           0 :                 return MsgValueError;
     520             :             }
     521             :             // Sentinel = 'aWindowId'
     522           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3844940347)))) {
     523           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     524           0 :                 return MsgValueError;
     525             :             }
     526           0 :             (msg__).EndRead(iter__, (msg__).type());
     527           0 :             PPresentation::Transition(PPresentation::Msg_UnregisterRespondingHandler__ID, (&(mState)));
     528           0 :             if ((!(RecvUnregisterRespondingHandler(mozilla::Move(aWindowId))))) {
     529           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     530             :                 // Error handled in mozilla::ipc::IPCResult
     531           0 :                 return MsgProcessingError;
     532             :             }
     533             : 
     534           0 :             return MsgProcessed;
     535             :         }
     536             :     case PPresentation::Msg_PPresentationRequestConstructor__ID:
     537             :         {
     538           0 :             if (mozilla::ipc::LoggingEnabledFor("PPresentationParent")) {
     539           0 :                 mozilla::ipc::LogMessageForProtocol("PPresentationParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     540             :             }
     541           0 :             AUTO_PROFILER_LABEL("PPresentation::Msg_PPresentationRequestConstructor", OTHER);
     542             : 
     543           0 :             PickleIterator iter__(msg__);
     544             :             ActorHandle handle__;
     545             :             PPresentationRequestParent* actor;
     546           0 :             PresentationIPCRequest aRequest;
     547             : 
     548           0 :             if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
     549           0 :                 FatalError("Error deserializing 'ActorHandle'");
     550           0 :                 return MsgValueError;
     551             :             }
     552             :             // Sentinel = 'actor'
     553           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
     554           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
     555           0 :                 return MsgValueError;
     556             :             }
     557           0 :             if ((!(Read((&(aRequest)), (&(msg__)), (&(iter__)))))) {
     558           0 :                 FatalError("Error deserializing 'PresentationIPCRequest'");
     559           0 :                 return MsgValueError;
     560             :             }
     561             :             // Sentinel = 'aRequest'
     562           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1227940332)))) {
     563           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PresentationIPCRequest'");
     564           0 :                 return MsgValueError;
     565             :             }
     566           0 :             (msg__).EndRead(iter__, (msg__).type());
     567           0 :             PPresentation::Transition(PPresentation::Msg_PPresentationRequestConstructor__ID, (&(mState)));
     568           0 :             actor = AllocPPresentationRequestParent(aRequest);
     569           0 :             if ((!(actor))) {
     570           0 :                 NS_WARNING("Error constructing actor PPresentationRequestParent");
     571           0 :                 return MsgValueError;
     572             :             }
     573           0 :             (actor)->SetManager(this);
     574           0 :             RegisterID(actor, (handle__).mId);
     575           0 :             (actor)->SetIPCChannel(GetIPCChannel());
     576           0 :             (mManagedPPresentationRequestParent).PutEntry(actor);
     577           0 :             (actor)->mState = mozilla::dom::PPresentationRequest::__Start;
     578             : 
     579           0 :             if ((!(RecvPPresentationRequestConstructor(mozilla::Move(actor), mozilla::Move(aRequest))))) {
     580           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     581             :                 // Error handled in mozilla::ipc::IPCResult
     582           0 :                 return MsgProcessingError;
     583             :             }
     584             : 
     585           0 :             return MsgProcessed;
     586             :         }
     587             :     case PPresentation::Msg_NotifyReceiverReady__ID:
     588             :         {
     589           0 :             if (mozilla::ipc::LoggingEnabledFor("PPresentationParent")) {
     590           0 :                 mozilla::ipc::LogMessageForProtocol("PPresentationParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     591             :             }
     592           0 :             AUTO_PROFILER_LABEL("PPresentation::Msg_NotifyReceiverReady", OTHER);
     593             : 
     594           0 :             PickleIterator iter__(msg__);
     595           0 :             nsString aSessionId;
     596             :             uint64_t aWindowId;
     597             :             bool aIsLoading;
     598             : 
     599           0 :             if ((!(Read((&(aSessionId)), (&(msg__)), (&(iter__)))))) {
     600           0 :                 FatalError("Error deserializing 'nsString'");
     601           0 :                 return MsgValueError;
     602             :             }
     603             :             // Sentinel = 'aSessionId'
     604           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 725794242)))) {
     605           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
     606           0 :                 return MsgValueError;
     607             :             }
     608           0 :             if ((!(Read((&(aWindowId)), (&(msg__)), (&(iter__)))))) {
     609           0 :                 FatalError("Error deserializing 'uint64_t'");
     610           0 :                 return MsgValueError;
     611             :             }
     612             :             // Sentinel = 'aWindowId'
     613           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3844940347)))) {
     614           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     615           0 :                 return MsgValueError;
     616             :             }
     617           0 :             if ((!(Read((&(aIsLoading)), (&(msg__)), (&(iter__)))))) {
     618           0 :                 FatalError("Error deserializing 'bool'");
     619           0 :                 return MsgValueError;
     620             :             }
     621             :             // Sentinel = 'aIsLoading'
     622           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3674007961)))) {
     623           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     624           0 :                 return MsgValueError;
     625             :             }
     626           0 :             (msg__).EndRead(iter__, (msg__).type());
     627           0 :             PPresentation::Transition(PPresentation::Msg_NotifyReceiverReady__ID, (&(mState)));
     628           0 :             if ((!(RecvNotifyReceiverReady(mozilla::Move(aSessionId), mozilla::Move(aWindowId), mozilla::Move(aIsLoading))))) {
     629           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     630             :                 // Error handled in mozilla::ipc::IPCResult
     631           0 :                 return MsgProcessingError;
     632             :             }
     633             : 
     634           0 :             return MsgProcessed;
     635             :         }
     636             :     case PPresentation::Msg_NotifyTransportClosed__ID:
     637             :         {
     638           0 :             if (mozilla::ipc::LoggingEnabledFor("PPresentationParent")) {
     639           0 :                 mozilla::ipc::LogMessageForProtocol("PPresentationParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     640             :             }
     641           0 :             AUTO_PROFILER_LABEL("PPresentation::Msg_NotifyTransportClosed", OTHER);
     642             : 
     643           0 :             PickleIterator iter__(msg__);
     644           0 :             nsString aSessionId;
     645             :             uint8_t aRole;
     646             :             nsresult aReason;
     647             : 
     648           0 :             if ((!(Read((&(aSessionId)), (&(msg__)), (&(iter__)))))) {
     649           0 :                 FatalError("Error deserializing 'nsString'");
     650           0 :                 return MsgValueError;
     651             :             }
     652             :             // Sentinel = 'aSessionId'
     653           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 725794242)))) {
     654           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
     655           0 :                 return MsgValueError;
     656             :             }
     657           0 :             if ((!(Read((&(aRole)), (&(msg__)), (&(iter__)))))) {
     658           0 :                 FatalError("Error deserializing 'uint8_t'");
     659           0 :                 return MsgValueError;
     660             :             }
     661             :             // Sentinel = 'aRole'
     662           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 985916136)))) {
     663           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint8_t'");
     664           0 :                 return MsgValueError;
     665             :             }
     666           0 :             if ((!(Read((&(aReason)), (&(msg__)), (&(iter__)))))) {
     667           0 :                 FatalError("Error deserializing 'nsresult'");
     668           0 :                 return MsgValueError;
     669             :             }
     670             :             // Sentinel = 'aReason'
     671           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 829905706)))) {
     672           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
     673           0 :                 return MsgValueError;
     674             :             }
     675           0 :             (msg__).EndRead(iter__, (msg__).type());
     676           0 :             PPresentation::Transition(PPresentation::Msg_NotifyTransportClosed__ID, (&(mState)));
     677           0 :             if ((!(RecvNotifyTransportClosed(mozilla::Move(aSessionId), mozilla::Move(aRole), mozilla::Move(aReason))))) {
     678           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     679             :                 // Error handled in mozilla::ipc::IPCResult
     680           0 :                 return MsgProcessingError;
     681             :             }
     682             : 
     683           0 :             return MsgProcessed;
     684             :         }
     685             :     default:
     686             :         {
     687           0 :             return MsgNotKnown;
     688             :         }
     689             :     }
     690             : }
     691             : 
     692           0 : auto PPresentationParent::OnMessageReceived(
     693             :         const Message& msg__,
     694             :         Message*& reply__) -> PPresentationParent::Result
     695             : {
     696           0 :     return MsgNotKnown;
     697             : }
     698             : 
     699           0 : auto PPresentationParent::OnCallReceived(
     700             :         const Message& msg__,
     701             :         Message*& reply__) -> PPresentationParent::Result
     702             : {
     703           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     704             :     return MsgNotKnown;
     705             : }
     706             : 
     707           0 : auto PPresentationParent::GetProtocolTypeId() -> int32_t
     708             : {
     709           0 :     return PPresentationMsgStart;
     710             : }
     711             : 
     712           0 : auto PPresentationParent::ProtocolName() const -> const char*
     713             : {
     714           0 :     return "PPresentationParent";
     715             : }
     716             : 
     717           0 : auto PPresentationParent::DestroySubtree(ActorDestroyReason why) -> void
     718             : {
     719             :     // Unregister from our manager.
     720           0 :     Unregister(Id());
     721             : 
     722           0 :     ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
     723             : 
     724             :     {
     725             :         // Recursively shutting down PPresentationBuilder kids
     726           0 :         nsTArray<PPresentationBuilderParent*> kids;
     727             :         // Accumulate kids into a stable structure to iterate over
     728           0 :         ManagedPPresentationBuilderParent(kids);
     729           0 :         for (auto& kid : kids) {
     730             :             // Guarding against a child removing a sibling from the list during the iteration.
     731           0 :             if ((mManagedPPresentationBuilderParent).Contains(kid)) {
     732           0 :                 (kid)->DestroySubtree(subtreewhy);
     733             :             }
     734             :         }
     735             :     }
     736             :     {
     737             :         // Recursively shutting down PPresentationRequest kids
     738           0 :         nsTArray<PPresentationRequestParent*> kids;
     739             :         // Accumulate kids into a stable structure to iterate over
     740           0 :         ManagedPPresentationRequestParent(kids);
     741           0 :         for (auto& kid : kids) {
     742             :             // Guarding against a child removing a sibling from the list during the iteration.
     743           0 :             if ((mManagedPPresentationRequestParent).Contains(kid)) {
     744           0 :                 (kid)->DestroySubtree(subtreewhy);
     745             :             }
     746             :         }
     747             :     }
     748             : 
     749             :     // Reject owning pending promises.
     750           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     751             : 
     752             :     // Finally, destroy "us".
     753           0 :     ActorDestroy(why);
     754           0 : }
     755             : 
     756           0 : auto PPresentationParent::DeallocSubtree() -> void
     757             : {
     758             :     {
     759             :         // Recursively deleting PPresentationBuilder kids
     760           0 :         for (auto iter = (mManagedPPresentationBuilderParent).Iter(); (!((iter).Done())); (iter).Next()) {
     761           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
     762             :         }
     763             : 
     764           0 :         for (auto iter = (mManagedPPresentationBuilderParent).Iter(); (!((iter).Done())); (iter).Next()) {
     765           0 :             DeallocPPresentationBuilderParent(((iter).Get())->GetKey());
     766             :         }
     767           0 :         (mManagedPPresentationBuilderParent).Clear();
     768             :     }
     769             :     {
     770             :         // Recursively deleting PPresentationRequest kids
     771           0 :         for (auto iter = (mManagedPPresentationRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
     772           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
     773             :         }
     774             : 
     775           0 :         for (auto iter = (mManagedPPresentationRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
     776           0 :             DeallocPPresentationRequestParent(((iter).Get())->GetKey());
     777             :         }
     778           0 :         (mManagedPPresentationRequestParent).Clear();
     779             :     }
     780           0 : }
     781             : 
     782           0 : auto PPresentationParent::Write(
     783             :         const PPresentationRequestParent* v__,
     784             :         Message* msg__,
     785             :         bool nullable__) -> void
     786             : {
     787             :     int32_t id;
     788           0 :     if ((!(v__))) {
     789           0 :         if ((!(nullable__))) {
     790           0 :             FatalError("NULL actor value passed to non-nullable param");
     791             :         }
     792           0 :         id = 0;
     793             :     }
     794             :     else {
     795           0 :         id = (v__)->Id();
     796           0 :         if ((1) == (id)) {
     797           0 :             FatalError("actor has been |delete|d");
     798             :         }
     799             :     }
     800             : 
     801           0 :     Write(id, msg__);
     802           0 : }
     803             : 
     804           0 : auto PPresentationParent::Read(
     805             :         PPresentationRequestParent** v__,
     806             :         const Message* msg__,
     807             :         PickleIterator* iter__,
     808             :         bool nullable__) -> bool
     809             : {
     810           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPresentationRequest", PPresentationRequestMsgStart);
     811           0 :     if ((actor).isNothing()) {
     812           0 :         return false;
     813             :     }
     814             : 
     815           0 :     (*(v__)) = static_cast<PPresentationRequestParent*>((actor).value());
     816           0 :     return true;
     817             : }
     818             : 
     819           0 : auto PPresentationParent::Write(
     820             :         const CloseSessionRequest& v__,
     821             :         Message* msg__) -> void
     822             : {
     823           0 :     Write((v__).sessionId(), msg__);
     824             :     // Sentinel = 'sessionId'
     825           0 :     (msg__)->WriteSentinel(1042236402);
     826           0 :     Write((v__).role(), msg__);
     827             :     // Sentinel = 'role'
     828           0 :     (msg__)->WriteSentinel(336463796);
     829           0 :     Write((v__).closedReason(), msg__);
     830             :     // Sentinel = 'closedReason'
     831           0 :     (msg__)->WriteSentinel(2214814184);
     832           0 : }
     833             : 
     834           0 : auto PPresentationParent::Read(
     835             :         CloseSessionRequest* v__,
     836             :         const Message* msg__,
     837             :         PickleIterator* iter__) -> bool
     838             : {
     839           0 :     if ((!(Read((&((v__)->sessionId())), msg__, iter__)))) {
     840           0 :         FatalError("Error deserializing 'sessionId' (nsString) member of 'CloseSessionRequest'");
     841           0 :         return false;
     842             :     }
     843             :     // Sentinel = 'sessionId'
     844           0 :     if ((!((msg__)->ReadSentinel(iter__, 1042236402)))) {
     845           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sessionId' (nsString) member of 'CloseSessionRequest'");
     846           0 :         return false;
     847             :     }
     848           0 :     if ((!(Read((&((v__)->role())), msg__, iter__)))) {
     849           0 :         FatalError("Error deserializing 'role' (uint8_t) member of 'CloseSessionRequest'");
     850           0 :         return false;
     851             :     }
     852             :     // Sentinel = 'role'
     853           0 :     if ((!((msg__)->ReadSentinel(iter__, 336463796)))) {
     854           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'role' (uint8_t) member of 'CloseSessionRequest'");
     855           0 :         return false;
     856             :     }
     857           0 :     if ((!(Read((&((v__)->closedReason())), msg__, iter__)))) {
     858           0 :         FatalError("Error deserializing 'closedReason' (uint8_t) member of 'CloseSessionRequest'");
     859           0 :         return false;
     860             :     }
     861             :     // Sentinel = 'closedReason'
     862           0 :     if ((!((msg__)->ReadSentinel(iter__, 2214814184)))) {
     863           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'closedReason' (uint8_t) member of 'CloseSessionRequest'");
     864           0 :         return false;
     865             :     }
     866           0 :     return true;
     867             : }
     868             : 
     869           0 : auto PPresentationParent::Write(
     870             :         const SendSessionMessageRequest& v__,
     871             :         Message* msg__) -> void
     872             : {
     873           0 :     Write((v__).sessionId(), msg__);
     874             :     // Sentinel = 'sessionId'
     875           0 :     (msg__)->WriteSentinel(1042236402);
     876           0 :     Write((v__).role(), msg__);
     877             :     // Sentinel = 'role'
     878           0 :     (msg__)->WriteSentinel(336463796);
     879           0 :     Write((v__).data(), msg__);
     880             :     // Sentinel = 'data'
     881           0 :     (msg__)->WriteSentinel(843352540);
     882           0 : }
     883             : 
     884           0 : auto PPresentationParent::Read(
     885             :         SendSessionMessageRequest* v__,
     886             :         const Message* msg__,
     887             :         PickleIterator* iter__) -> bool
     888             : {
     889           0 :     if ((!(Read((&((v__)->sessionId())), msg__, iter__)))) {
     890           0 :         FatalError("Error deserializing 'sessionId' (nsString) member of 'SendSessionMessageRequest'");
     891           0 :         return false;
     892             :     }
     893             :     // Sentinel = 'sessionId'
     894           0 :     if ((!((msg__)->ReadSentinel(iter__, 1042236402)))) {
     895           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sessionId' (nsString) member of 'SendSessionMessageRequest'");
     896           0 :         return false;
     897             :     }
     898           0 :     if ((!(Read((&((v__)->role())), msg__, iter__)))) {
     899           0 :         FatalError("Error deserializing 'role' (uint8_t) member of 'SendSessionMessageRequest'");
     900           0 :         return false;
     901             :     }
     902             :     // Sentinel = 'role'
     903           0 :     if ((!((msg__)->ReadSentinel(iter__, 336463796)))) {
     904           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'role' (uint8_t) member of 'SendSessionMessageRequest'");
     905           0 :         return false;
     906             :     }
     907           0 :     if ((!(Read((&((v__)->data())), msg__, iter__)))) {
     908           0 :         FatalError("Error deserializing 'data' (nsString) member of 'SendSessionMessageRequest'");
     909           0 :         return false;
     910             :     }
     911             :     // Sentinel = 'data'
     912           0 :     if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
     913           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'data' (nsString) member of 'SendSessionMessageRequest'");
     914           0 :         return false;
     915             :     }
     916           0 :     return true;
     917             : }
     918             : 
     919           0 : auto PPresentationParent::Write(
     920             :         const PPresentationBuilderParent* v__,
     921             :         Message* msg__,
     922             :         bool nullable__) -> void
     923             : {
     924             :     int32_t id;
     925           0 :     if ((!(v__))) {
     926           0 :         if ((!(nullable__))) {
     927           0 :             FatalError("NULL actor value passed to non-nullable param");
     928             :         }
     929           0 :         id = 0;
     930             :     }
     931             :     else {
     932           0 :         id = (v__)->Id();
     933           0 :         if ((1) == (id)) {
     934           0 :             FatalError("actor has been |delete|d");
     935             :         }
     936             :     }
     937             : 
     938           0 :     Write(id, msg__);
     939           0 : }
     940             : 
     941           0 : auto PPresentationParent::Read(
     942             :         PPresentationBuilderParent** v__,
     943             :         const Message* msg__,
     944             :         PickleIterator* iter__,
     945             :         bool nullable__) -> bool
     946             : {
     947           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPresentationBuilder", PPresentationBuilderMsgStart);
     948           0 :     if ((actor).isNothing()) {
     949           0 :         return false;
     950             :     }
     951             : 
     952           0 :     (*(v__)) = static_cast<PPresentationBuilderParent*>((actor).value());
     953           0 :     return true;
     954             : }
     955             : 
     956           0 : auto PPresentationParent::Write(
     957             :         const StartSessionRequest& v__,
     958             :         Message* msg__) -> void
     959             : {
     960           0 :     Write((v__).urls(), msg__);
     961             :     // Sentinel = 'urls'
     962           0 :     (msg__)->WriteSentinel(4188095734);
     963           0 :     Write((v__).sessionId(), msg__);
     964             :     // Sentinel = 'sessionId'
     965           0 :     (msg__)->WriteSentinel(1042236402);
     966           0 :     Write((v__).origin(), msg__);
     967             :     // Sentinel = 'origin'
     968           0 :     (msg__)->WriteSentinel(1429924608);
     969           0 :     Write((v__).deviceId(), msg__);
     970             :     // Sentinel = 'deviceId'
     971           0 :     (msg__)->WriteSentinel(4280533);
     972           0 :     Write((v__).windowId(), msg__);
     973             :     // Sentinel = 'windowId'
     974           0 :     (msg__)->WriteSentinel(719502035);
     975           0 :     Write((v__).tabId(), msg__);
     976             :     // Sentinel = 'tabId'
     977           0 :     (msg__)->WriteSentinel(3419081923);
     978           0 :     Write((v__).principal(), msg__);
     979             :     // Sentinel = 'principal'
     980           0 :     (msg__)->WriteSentinel(732240927);
     981           0 : }
     982             : 
     983           0 : auto PPresentationParent::Read(
     984             :         StartSessionRequest* v__,
     985             :         const Message* msg__,
     986             :         PickleIterator* iter__) -> bool
     987             : {
     988           0 :     if ((!(Read((&((v__)->urls())), msg__, iter__)))) {
     989           0 :         FatalError("Error deserializing 'urls' (nsString[]) member of 'StartSessionRequest'");
     990           0 :         return false;
     991             :     }
     992             :     // Sentinel = 'urls'
     993           0 :     if ((!((msg__)->ReadSentinel(iter__, 4188095734)))) {
     994           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'urls' (nsString[]) member of 'StartSessionRequest'");
     995           0 :         return false;
     996             :     }
     997           0 :     if ((!(Read((&((v__)->sessionId())), msg__, iter__)))) {
     998           0 :         FatalError("Error deserializing 'sessionId' (nsString) member of 'StartSessionRequest'");
     999           0 :         return false;
    1000             :     }
    1001             :     // Sentinel = 'sessionId'
    1002           0 :     if ((!((msg__)->ReadSentinel(iter__, 1042236402)))) {
    1003           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sessionId' (nsString) member of 'StartSessionRequest'");
    1004           0 :         return false;
    1005             :     }
    1006           0 :     if ((!(Read((&((v__)->origin())), msg__, iter__)))) {
    1007           0 :         FatalError("Error deserializing 'origin' (nsString) member of 'StartSessionRequest'");
    1008           0 :         return false;
    1009             :     }
    1010             :     // Sentinel = 'origin'
    1011           0 :     if ((!((msg__)->ReadSentinel(iter__, 1429924608)))) {
    1012           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'origin' (nsString) member of 'StartSessionRequest'");
    1013           0 :         return false;
    1014             :     }
    1015           0 :     if ((!(Read((&((v__)->deviceId())), msg__, iter__)))) {
    1016           0 :         FatalError("Error deserializing 'deviceId' (nsString) member of 'StartSessionRequest'");
    1017           0 :         return false;
    1018             :     }
    1019             :     // Sentinel = 'deviceId'
    1020           0 :     if ((!((msg__)->ReadSentinel(iter__, 4280533)))) {
    1021           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'deviceId' (nsString) member of 'StartSessionRequest'");
    1022           0 :         return false;
    1023             :     }
    1024           0 :     if ((!(Read((&((v__)->windowId())), msg__, iter__)))) {
    1025           0 :         FatalError("Error deserializing 'windowId' (uint64_t) member of 'StartSessionRequest'");
    1026           0 :         return false;
    1027             :     }
    1028             :     // Sentinel = 'windowId'
    1029           0 :     if ((!((msg__)->ReadSentinel(iter__, 719502035)))) {
    1030           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'windowId' (uint64_t) member of 'StartSessionRequest'");
    1031           0 :         return false;
    1032             :     }
    1033           0 :     if ((!(Read((&((v__)->tabId())), msg__, iter__)))) {
    1034           0 :         FatalError("Error deserializing 'tabId' (TabId) member of 'StartSessionRequest'");
    1035           0 :         return false;
    1036             :     }
    1037             :     // Sentinel = 'tabId'
    1038           0 :     if ((!((msg__)->ReadSentinel(iter__, 3419081923)))) {
    1039           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'tabId' (TabId) member of 'StartSessionRequest'");
    1040           0 :         return false;
    1041             :     }
    1042           0 :     if ((!(Read((&((v__)->principal())), msg__, iter__)))) {
    1043           0 :         FatalError("Error deserializing 'principal' (Principal) member of 'StartSessionRequest'");
    1044           0 :         return false;
    1045             :     }
    1046             :     // Sentinel = 'principal'
    1047           0 :     if ((!((msg__)->ReadSentinel(iter__, 732240927)))) {
    1048           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'principal' (Principal) member of 'StartSessionRequest'");
    1049           0 :         return false;
    1050             :     }
    1051           0 :     return true;
    1052             : }
    1053             : 
    1054           0 : auto PPresentationParent::Write(
    1055             :         const TerminateSessionRequest& v__,
    1056             :         Message* msg__) -> void
    1057             : {
    1058           0 :     Write((v__).sessionId(), msg__);
    1059             :     // Sentinel = 'sessionId'
    1060           0 :     (msg__)->WriteSentinel(1042236402);
    1061           0 :     Write((v__).role(), msg__);
    1062             :     // Sentinel = 'role'
    1063           0 :     (msg__)->WriteSentinel(336463796);
    1064           0 : }
    1065             : 
    1066           0 : auto PPresentationParent::Read(
    1067             :         TerminateSessionRequest* v__,
    1068             :         const Message* msg__,
    1069             :         PickleIterator* iter__) -> bool
    1070             : {
    1071           0 :     if ((!(Read((&((v__)->sessionId())), msg__, iter__)))) {
    1072           0 :         FatalError("Error deserializing 'sessionId' (nsString) member of 'TerminateSessionRequest'");
    1073           0 :         return false;
    1074             :     }
    1075             :     // Sentinel = 'sessionId'
    1076           0 :     if ((!((msg__)->ReadSentinel(iter__, 1042236402)))) {
    1077           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sessionId' (nsString) member of 'TerminateSessionRequest'");
    1078           0 :         return false;
    1079             :     }
    1080           0 :     if ((!(Read((&((v__)->role())), msg__, iter__)))) {
    1081           0 :         FatalError("Error deserializing 'role' (uint8_t) member of 'TerminateSessionRequest'");
    1082           0 :         return false;
    1083             :     }
    1084             :     // Sentinel = 'role'
    1085           0 :     if ((!((msg__)->ReadSentinel(iter__, 336463796)))) {
    1086           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'role' (uint8_t) member of 'TerminateSessionRequest'");
    1087           0 :         return false;
    1088             :     }
    1089           0 :     return true;
    1090             : }
    1091             : 
    1092           0 : auto PPresentationParent::Write(
    1093             :         const ReconnectSessionRequest& v__,
    1094             :         Message* msg__) -> void
    1095             : {
    1096           0 :     Write((v__).urls(), msg__);
    1097             :     // Sentinel = 'urls'
    1098           0 :     (msg__)->WriteSentinel(4188095734);
    1099           0 :     Write((v__).sessionId(), msg__);
    1100             :     // Sentinel = 'sessionId'
    1101           0 :     (msg__)->WriteSentinel(1042236402);
    1102           0 :     Write((v__).role(), msg__);
    1103             :     // Sentinel = 'role'
    1104           0 :     (msg__)->WriteSentinel(336463796);
    1105           0 : }
    1106             : 
    1107           0 : auto PPresentationParent::Read(
    1108             :         ReconnectSessionRequest* v__,
    1109             :         const Message* msg__,
    1110             :         PickleIterator* iter__) -> bool
    1111             : {
    1112           0 :     if ((!(Read((&((v__)->urls())), msg__, iter__)))) {
    1113           0 :         FatalError("Error deserializing 'urls' (nsString[]) member of 'ReconnectSessionRequest'");
    1114           0 :         return false;
    1115             :     }
    1116             :     // Sentinel = 'urls'
    1117           0 :     if ((!((msg__)->ReadSentinel(iter__, 4188095734)))) {
    1118           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'urls' (nsString[]) member of 'ReconnectSessionRequest'");
    1119           0 :         return false;
    1120             :     }
    1121           0 :     if ((!(Read((&((v__)->sessionId())), msg__, iter__)))) {
    1122           0 :         FatalError("Error deserializing 'sessionId' (nsString) member of 'ReconnectSessionRequest'");
    1123           0 :         return false;
    1124             :     }
    1125             :     // Sentinel = 'sessionId'
    1126           0 :     if ((!((msg__)->ReadSentinel(iter__, 1042236402)))) {
    1127           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sessionId' (nsString) member of 'ReconnectSessionRequest'");
    1128           0 :         return false;
    1129             :     }
    1130           0 :     if ((!(Read((&((v__)->role())), msg__, iter__)))) {
    1131           0 :         FatalError("Error deserializing 'role' (uint8_t) member of 'ReconnectSessionRequest'");
    1132           0 :         return false;
    1133             :     }
    1134             :     // Sentinel = 'role'
    1135           0 :     if ((!((msg__)->ReadSentinel(iter__, 336463796)))) {
    1136           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'role' (uint8_t) member of 'ReconnectSessionRequest'");
    1137           0 :         return false;
    1138             :     }
    1139           0 :     return true;
    1140             : }
    1141             : 
    1142           0 : auto PPresentationParent::Write(
    1143             :         const BuildTransportRequest& v__,
    1144             :         Message* msg__) -> void
    1145             : {
    1146           0 :     Write((v__).sessionId(), msg__);
    1147             :     // Sentinel = 'sessionId'
    1148           0 :     (msg__)->WriteSentinel(1042236402);
    1149           0 :     Write((v__).role(), msg__);
    1150             :     // Sentinel = 'role'
    1151           0 :     (msg__)->WriteSentinel(336463796);
    1152           0 : }
    1153             : 
    1154           0 : auto PPresentationParent::Read(
    1155             :         BuildTransportRequest* v__,
    1156             :         const Message* msg__,
    1157             :         PickleIterator* iter__) -> bool
    1158             : {
    1159           0 :     if ((!(Read((&((v__)->sessionId())), msg__, iter__)))) {
    1160           0 :         FatalError("Error deserializing 'sessionId' (nsString) member of 'BuildTransportRequest'");
    1161           0 :         return false;
    1162             :     }
    1163             :     // Sentinel = 'sessionId'
    1164           0 :     if ((!((msg__)->ReadSentinel(iter__, 1042236402)))) {
    1165           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sessionId' (nsString) member of 'BuildTransportRequest'");
    1166           0 :         return false;
    1167             :     }
    1168           0 :     if ((!(Read((&((v__)->role())), msg__, iter__)))) {
    1169           0 :         FatalError("Error deserializing 'role' (uint8_t) member of 'BuildTransportRequest'");
    1170           0 :         return false;
    1171             :     }
    1172             :     // Sentinel = 'role'
    1173           0 :     if ((!((msg__)->ReadSentinel(iter__, 336463796)))) {
    1174           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'role' (uint8_t) member of 'BuildTransportRequest'");
    1175           0 :         return false;
    1176             :     }
    1177           0 :     return true;
    1178             : }
    1179             : 
    1180           0 : auto PPresentationParent::Write(
    1181             :         const PPresentationParent* v__,
    1182             :         Message* msg__,
    1183             :         bool nullable__) -> void
    1184             : {
    1185             :     int32_t id;
    1186           0 :     if ((!(v__))) {
    1187           0 :         if ((!(nullable__))) {
    1188           0 :             FatalError("NULL actor value passed to non-nullable param");
    1189             :         }
    1190           0 :         id = 0;
    1191             :     }
    1192             :     else {
    1193           0 :         id = (v__)->Id();
    1194           0 :         if ((1) == (id)) {
    1195           0 :             FatalError("actor has been |delete|d");
    1196             :         }
    1197             :     }
    1198             : 
    1199           0 :     Write(id, msg__);
    1200           0 : }
    1201             : 
    1202           0 : auto PPresentationParent::Read(
    1203             :         PPresentationParent** v__,
    1204             :         const Message* msg__,
    1205             :         PickleIterator* iter__,
    1206             :         bool nullable__) -> bool
    1207             : {
    1208           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPresentation", PPresentationMsgStart);
    1209           0 :     if ((actor).isNothing()) {
    1210           0 :         return false;
    1211             :     }
    1212             : 
    1213           0 :     (*(v__)) = static_cast<PPresentationParent*>((actor).value());
    1214           0 :     return true;
    1215             : }
    1216             : 
    1217           0 : auto PPresentationParent::Write(
    1218             :         const PresentationIPCRequest& v__,
    1219             :         Message* msg__) -> void
    1220             : {
    1221             :     typedef PresentationIPCRequest type__;
    1222           0 :     Write(int((v__).type()), msg__);
    1223             :     // Sentinel = 'PresentationIPCRequest'
    1224           0 :     (msg__)->WriteSentinel(3554848447);
    1225             : 
    1226           0 :     switch ((v__).type()) {
    1227             :     case type__::TStartSessionRequest:
    1228             :         {
    1229           0 :             Write((v__).get_StartSessionRequest(), msg__);
    1230             :             // Sentinel = 'TStartSessionRequest'
    1231           0 :             (msg__)->WriteSentinel(269678931);
    1232           0 :             return;
    1233             :         }
    1234             :     case type__::TSendSessionMessageRequest:
    1235             :         {
    1236           0 :             Write((v__).get_SendSessionMessageRequest(), msg__);
    1237             :             // Sentinel = 'TSendSessionMessageRequest'
    1238           0 :             (msg__)->WriteSentinel(886231308);
    1239           0 :             return;
    1240             :         }
    1241             :     case type__::TCloseSessionRequest:
    1242             :         {
    1243           0 :             Write((v__).get_CloseSessionRequest(), msg__);
    1244             :             // Sentinel = 'TCloseSessionRequest'
    1245           0 :             (msg__)->WriteSentinel(2782916467);
    1246           0 :             return;
    1247             :         }
    1248             :     case type__::TTerminateSessionRequest:
    1249             :         {
    1250           0 :             Write((v__).get_TerminateSessionRequest(), msg__);
    1251             :             // Sentinel = 'TTerminateSessionRequest'
    1252           0 :             (msg__)->WriteSentinel(2948099270);
    1253           0 :             return;
    1254             :         }
    1255             :     case type__::TReconnectSessionRequest:
    1256             :         {
    1257           0 :             Write((v__).get_ReconnectSessionRequest(), msg__);
    1258             :             // Sentinel = 'TReconnectSessionRequest'
    1259           0 :             (msg__)->WriteSentinel(615109452);
    1260           0 :             return;
    1261             :         }
    1262             :     case type__::TBuildTransportRequest:
    1263             :         {
    1264           0 :             Write((v__).get_BuildTransportRequest(), msg__);
    1265             :             // Sentinel = 'TBuildTransportRequest'
    1266           0 :             (msg__)->WriteSentinel(690786476);
    1267           0 :             return;
    1268             :         }
    1269             :     default:
    1270             :         {
    1271           0 :             FatalError("unknown union type");
    1272           0 :             return;
    1273             :         }
    1274             :     }
    1275             : }
    1276             : 
    1277           0 : auto PPresentationParent::Read(
    1278             :         PresentationIPCRequest* v__,
    1279             :         const Message* msg__,
    1280             :         PickleIterator* iter__) -> bool
    1281             : {
    1282             :     typedef PresentationIPCRequest type__;
    1283             :     int type;
    1284           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1285           0 :         mozilla::ipc::UnionTypeReadError("PresentationIPCRequest");
    1286           0 :         return false;
    1287             :     }
    1288             :     // Sentinel = 'PresentationIPCRequest'
    1289           0 :     if ((!((msg__)->ReadSentinel(iter__, 3554848447)))) {
    1290           0 :         mozilla::ipc::SentinelReadError("PresentationIPCRequest");
    1291           0 :         return false;
    1292             :     }
    1293             : 
    1294           0 :     switch (type) {
    1295             :     case type__::TStartSessionRequest:
    1296             :         {
    1297           0 :             StartSessionRequest tmp = StartSessionRequest();
    1298           0 :             (*(v__)) = tmp;
    1299           0 :             if ((!(Read((&((v__)->get_StartSessionRequest())), msg__, iter__)))) {
    1300           0 :                 FatalError("Error deserializing Union type");
    1301           0 :                 return false;
    1302             :             }
    1303             :             // Sentinel = 'TStartSessionRequest'
    1304           0 :             if ((!((msg__)->ReadSentinel(iter__, 269678931)))) {
    1305           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1306           0 :                 return false;
    1307             :             }
    1308           0 :             return true;
    1309             :         }
    1310             :     case type__::TSendSessionMessageRequest:
    1311             :         {
    1312           0 :             SendSessionMessageRequest tmp = SendSessionMessageRequest();
    1313           0 :             (*(v__)) = tmp;
    1314           0 :             if ((!(Read((&((v__)->get_SendSessionMessageRequest())), msg__, iter__)))) {
    1315           0 :                 FatalError("Error deserializing Union type");
    1316           0 :                 return false;
    1317             :             }
    1318             :             // Sentinel = 'TSendSessionMessageRequest'
    1319           0 :             if ((!((msg__)->ReadSentinel(iter__, 886231308)))) {
    1320           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1321           0 :                 return false;
    1322             :             }
    1323           0 :             return true;
    1324             :         }
    1325             :     case type__::TCloseSessionRequest:
    1326             :         {
    1327           0 :             CloseSessionRequest tmp = CloseSessionRequest();
    1328           0 :             (*(v__)) = tmp;
    1329           0 :             if ((!(Read((&((v__)->get_CloseSessionRequest())), msg__, iter__)))) {
    1330           0 :                 FatalError("Error deserializing Union type");
    1331           0 :                 return false;
    1332             :             }
    1333             :             // Sentinel = 'TCloseSessionRequest'
    1334           0 :             if ((!((msg__)->ReadSentinel(iter__, 2782916467)))) {
    1335           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1336           0 :                 return false;
    1337             :             }
    1338           0 :             return true;
    1339             :         }
    1340             :     case type__::TTerminateSessionRequest:
    1341             :         {
    1342           0 :             TerminateSessionRequest tmp = TerminateSessionRequest();
    1343           0 :             (*(v__)) = tmp;
    1344           0 :             if ((!(Read((&((v__)->get_TerminateSessionRequest())), msg__, iter__)))) {
    1345           0 :                 FatalError("Error deserializing Union type");
    1346           0 :                 return false;
    1347             :             }
    1348             :             // Sentinel = 'TTerminateSessionRequest'
    1349           0 :             if ((!((msg__)->ReadSentinel(iter__, 2948099270)))) {
    1350           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1351           0 :                 return false;
    1352             :             }
    1353           0 :             return true;
    1354             :         }
    1355             :     case type__::TReconnectSessionRequest:
    1356             :         {
    1357           0 :             ReconnectSessionRequest tmp = ReconnectSessionRequest();
    1358           0 :             (*(v__)) = tmp;
    1359           0 :             if ((!(Read((&((v__)->get_ReconnectSessionRequest())), msg__, iter__)))) {
    1360           0 :                 FatalError("Error deserializing Union type");
    1361           0 :                 return false;
    1362             :             }
    1363             :             // Sentinel = 'TReconnectSessionRequest'
    1364           0 :             if ((!((msg__)->ReadSentinel(iter__, 615109452)))) {
    1365           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1366           0 :                 return false;
    1367             :             }
    1368           0 :             return true;
    1369             :         }
    1370             :     case type__::TBuildTransportRequest:
    1371             :         {
    1372           0 :             BuildTransportRequest tmp = BuildTransportRequest();
    1373           0 :             (*(v__)) = tmp;
    1374           0 :             if ((!(Read((&((v__)->get_BuildTransportRequest())), msg__, iter__)))) {
    1375           0 :                 FatalError("Error deserializing Union type");
    1376           0 :                 return false;
    1377             :             }
    1378             :             // Sentinel = 'TBuildTransportRequest'
    1379           0 :             if ((!((msg__)->ReadSentinel(iter__, 690786476)))) {
    1380           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1381           0 :                 return false;
    1382             :             }
    1383           0 :             return true;
    1384             :         }
    1385             :     default:
    1386             :         {
    1387           0 :             FatalError("unknown union type");
    1388           0 :             return false;
    1389             :         }
    1390             :     }
    1391             : }
    1392             : 
    1393             : 
    1394             : 
    1395             : } // namespace dom
    1396             : } // namespace mozilla

Generated by: LCOV version 1.13