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

Generated by: LCOV version 1.13