LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PWebSocketEventListenerChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 255 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 17 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/net/PWebSocketEventListenerChild.h"
       8             : 
       9             : #include "mozilla/net/PNeckoChild.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace net {
      16             : 
      17             : 
      18           0 : auto PWebSocketEventListenerChild::Recv__delete__() -> mozilla::ipc::IPCResult
      19             : {
      20           0 :     return IPC_OK();
      21             : }
      22             : 
      23           0 : auto PWebSocketEventListenerChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      24             : {
      25           0 : }
      26             : 
      27           0 : MOZ_IMPLICIT PWebSocketEventListenerChild::PWebSocketEventListenerChild() :
      28             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      29           0 :     mState(PWebSocketEventListener::__Dead)
      30             : {
      31           0 :     MOZ_COUNT_CTOR(PWebSocketEventListenerChild);
      32           0 : }
      33             : 
      34           0 : PWebSocketEventListenerChild::~PWebSocketEventListenerChild()
      35             : {
      36           0 :     MOZ_COUNT_DTOR(PWebSocketEventListenerChild);
      37           0 : }
      38             : 
      39           0 : auto PWebSocketEventListenerChild::Manager() const -> PNeckoChild*
      40             : {
      41           0 :     return static_cast<PNeckoChild*>(IProtocol::Manager());
      42             : }
      43             : 
      44           0 : auto PWebSocketEventListenerChild::SendClose() -> bool
      45             : {
      46           0 :     IPC::Message* msg__ = PWebSocketEventListener::Msg_Close(Id());
      47             : 
      48             : 
      49             : 
      50             : 
      51             : 
      52           0 :     if (mozilla::ipc::LoggingEnabledFor("PWebSocketEventListenerChild")) {
      53           0 :         mozilla::ipc::LogMessageForProtocol("PWebSocketEventListenerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      54             :     }
      55           0 :     AUTO_PROFILER_LABEL("PWebSocketEventListener::Msg_Close", OTHER);
      56           0 :     PWebSocketEventListener::Transition(PWebSocketEventListener::Msg_Close__ID, (&(mState)));
      57             : 
      58           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      59           0 :     return sendok__;
      60             : }
      61             : 
      62           0 : auto PWebSocketEventListenerChild::RemoveManagee(
      63             :         int32_t aProtocolId,
      64             :         ProtocolBase* aListener) -> void
      65             : {
      66           0 :     FatalError("unreached");
      67           0 :     return;
      68             : }
      69             : 
      70           0 : auto PWebSocketEventListenerChild::OnMessageReceived(const Message& msg__) -> PWebSocketEventListenerChild::Result
      71             : {
      72           0 :     switch ((msg__).type()) {
      73             :     case PWebSocketEventListener::Msg_WebSocketCreated__ID:
      74             :         {
      75           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebSocketEventListenerChild")) {
      76           0 :                 mozilla::ipc::LogMessageForProtocol("PWebSocketEventListenerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
      77             :             }
      78           0 :             AUTO_PROFILER_LABEL("PWebSocketEventListener::Msg_WebSocketCreated", OTHER);
      79             : 
      80           0 :             PickleIterator iter__(msg__);
      81             :             uint32_t awebSocketSerialID;
      82           0 :             nsString aURI;
      83           0 :             nsCString aProtocols;
      84             : 
      85           0 :             if ((!(Read((&(awebSocketSerialID)), (&(msg__)), (&(iter__)))))) {
      86           0 :                 FatalError("Error deserializing 'uint32_t'");
      87           0 :                 return MsgValueError;
      88             :             }
      89             :             // Sentinel = 'awebSocketSerialID'
      90           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 135035971)))) {
      91           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
      92           0 :                 return MsgValueError;
      93             :             }
      94           0 :             if ((!(Read((&(aURI)), (&(msg__)), (&(iter__)))))) {
      95           0 :                 FatalError("Error deserializing 'nsString'");
      96           0 :                 return MsgValueError;
      97             :             }
      98             :             // Sentinel = 'aURI'
      99           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2075506333)))) {
     100           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
     101           0 :                 return MsgValueError;
     102             :             }
     103           0 :             if ((!(Read((&(aProtocols)), (&(msg__)), (&(iter__)))))) {
     104           0 :                 FatalError("Error deserializing 'nsCString'");
     105           0 :                 return MsgValueError;
     106             :             }
     107             :             // Sentinel = 'aProtocols'
     108           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 630170350)))) {
     109           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     110           0 :                 return MsgValueError;
     111             :             }
     112           0 :             (msg__).EndRead(iter__, (msg__).type());
     113           0 :             PWebSocketEventListener::Transition(PWebSocketEventListener::Msg_WebSocketCreated__ID, (&(mState)));
     114           0 :             if ((!(RecvWebSocketCreated(mozilla::Move(awebSocketSerialID), mozilla::Move(aURI), mozilla::Move(aProtocols))))) {
     115           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     116             :                 // Error handled in mozilla::ipc::IPCResult
     117           0 :                 return MsgProcessingError;
     118             :             }
     119             : 
     120           0 :             return MsgProcessed;
     121             :         }
     122             :     case PWebSocketEventListener::Msg_WebSocketOpened__ID:
     123             :         {
     124           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebSocketEventListenerChild")) {
     125           0 :                 mozilla::ipc::LogMessageForProtocol("PWebSocketEventListenerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     126             :             }
     127           0 :             AUTO_PROFILER_LABEL("PWebSocketEventListener::Msg_WebSocketOpened", OTHER);
     128             : 
     129           0 :             PickleIterator iter__(msg__);
     130             :             uint32_t awebSocketSerialID;
     131           0 :             nsString aEffectiveURI;
     132           0 :             nsCString aProtocols;
     133           0 :             nsCString aExtensions;
     134             : 
     135           0 :             if ((!(Read((&(awebSocketSerialID)), (&(msg__)), (&(iter__)))))) {
     136           0 :                 FatalError("Error deserializing 'uint32_t'");
     137           0 :                 return MsgValueError;
     138             :             }
     139             :             // Sentinel = 'awebSocketSerialID'
     140           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 135035971)))) {
     141           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     142           0 :                 return MsgValueError;
     143             :             }
     144           0 :             if ((!(Read((&(aEffectiveURI)), (&(msg__)), (&(iter__)))))) {
     145           0 :                 FatalError("Error deserializing 'nsString'");
     146           0 :                 return MsgValueError;
     147             :             }
     148             :             // Sentinel = 'aEffectiveURI'
     149           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2123459951)))) {
     150           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
     151           0 :                 return MsgValueError;
     152             :             }
     153           0 :             if ((!(Read((&(aProtocols)), (&(msg__)), (&(iter__)))))) {
     154           0 :                 FatalError("Error deserializing 'nsCString'");
     155           0 :                 return MsgValueError;
     156             :             }
     157             :             // Sentinel = 'aProtocols'
     158           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 630170350)))) {
     159           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     160           0 :                 return MsgValueError;
     161             :             }
     162           0 :             if ((!(Read((&(aExtensions)), (&(msg__)), (&(iter__)))))) {
     163           0 :                 FatalError("Error deserializing 'nsCString'");
     164           0 :                 return MsgValueError;
     165             :             }
     166             :             // Sentinel = 'aExtensions'
     167           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 805668716)))) {
     168           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     169           0 :                 return MsgValueError;
     170             :             }
     171           0 :             (msg__).EndRead(iter__, (msg__).type());
     172           0 :             PWebSocketEventListener::Transition(PWebSocketEventListener::Msg_WebSocketOpened__ID, (&(mState)));
     173           0 :             if ((!(RecvWebSocketOpened(mozilla::Move(awebSocketSerialID), mozilla::Move(aEffectiveURI), mozilla::Move(aProtocols), mozilla::Move(aExtensions))))) {
     174           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     175             :                 // Error handled in mozilla::ipc::IPCResult
     176           0 :                 return MsgProcessingError;
     177             :             }
     178             : 
     179           0 :             return MsgProcessed;
     180             :         }
     181             :     case PWebSocketEventListener::Msg_WebSocketMessageAvailable__ID:
     182             :         {
     183           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebSocketEventListenerChild")) {
     184           0 :                 mozilla::ipc::LogMessageForProtocol("PWebSocketEventListenerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     185             :             }
     186           0 :             AUTO_PROFILER_LABEL("PWebSocketEventListener::Msg_WebSocketMessageAvailable", OTHER);
     187             : 
     188           0 :             PickleIterator iter__(msg__);
     189             :             uint32_t awebSocketSerialID;
     190           0 :             nsCString aData;
     191             :             uint16_t aMessageType;
     192             : 
     193           0 :             if ((!(Read((&(awebSocketSerialID)), (&(msg__)), (&(iter__)))))) {
     194           0 :                 FatalError("Error deserializing 'uint32_t'");
     195           0 :                 return MsgValueError;
     196             :             }
     197             :             // Sentinel = 'awebSocketSerialID'
     198           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 135035971)))) {
     199           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     200           0 :                 return MsgValueError;
     201             :             }
     202           0 :             if ((!(Read((&(aData)), (&(msg__)), (&(iter__)))))) {
     203           0 :                 FatalError("Error deserializing 'nsCString'");
     204           0 :                 return MsgValueError;
     205             :             }
     206             :             // Sentinel = 'aData'
     207           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3285075324)))) {
     208           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     209           0 :                 return MsgValueError;
     210             :             }
     211           0 :             if ((!(Read((&(aMessageType)), (&(msg__)), (&(iter__)))))) {
     212           0 :                 FatalError("Error deserializing 'uint16_t'");
     213           0 :                 return MsgValueError;
     214             :             }
     215             :             // Sentinel = 'aMessageType'
     216           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3343772818)))) {
     217           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint16_t'");
     218           0 :                 return MsgValueError;
     219             :             }
     220           0 :             (msg__).EndRead(iter__, (msg__).type());
     221           0 :             PWebSocketEventListener::Transition(PWebSocketEventListener::Msg_WebSocketMessageAvailable__ID, (&(mState)));
     222           0 :             if ((!(RecvWebSocketMessageAvailable(mozilla::Move(awebSocketSerialID), mozilla::Move(aData), mozilla::Move(aMessageType))))) {
     223           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     224             :                 // Error handled in mozilla::ipc::IPCResult
     225           0 :                 return MsgProcessingError;
     226             :             }
     227             : 
     228           0 :             return MsgProcessed;
     229             :         }
     230             :     case PWebSocketEventListener::Msg_WebSocketClosed__ID:
     231             :         {
     232           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebSocketEventListenerChild")) {
     233           0 :                 mozilla::ipc::LogMessageForProtocol("PWebSocketEventListenerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     234             :             }
     235           0 :             AUTO_PROFILER_LABEL("PWebSocketEventListener::Msg_WebSocketClosed", OTHER);
     236             : 
     237           0 :             PickleIterator iter__(msg__);
     238             :             uint32_t awebSocketSerialID;
     239             :             bool aWasClean;
     240             :             uint16_t aCode;
     241           0 :             nsString aReason;
     242             : 
     243           0 :             if ((!(Read((&(awebSocketSerialID)), (&(msg__)), (&(iter__)))))) {
     244           0 :                 FatalError("Error deserializing 'uint32_t'");
     245           0 :                 return MsgValueError;
     246             :             }
     247             :             // Sentinel = 'awebSocketSerialID'
     248           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 135035971)))) {
     249           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     250           0 :                 return MsgValueError;
     251             :             }
     252           0 :             if ((!(Read((&(aWasClean)), (&(msg__)), (&(iter__)))))) {
     253           0 :                 FatalError("Error deserializing 'bool'");
     254           0 :                 return MsgValueError;
     255             :             }
     256             :             // Sentinel = 'aWasClean'
     257           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1433502366)))) {
     258           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     259           0 :                 return MsgValueError;
     260             :             }
     261           0 :             if ((!(Read((&(aCode)), (&(msg__)), (&(iter__)))))) {
     262           0 :                 FatalError("Error deserializing 'uint16_t'");
     263           0 :                 return MsgValueError;
     264             :             }
     265             :             // Sentinel = 'aCode'
     266           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2698945339)))) {
     267           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint16_t'");
     268           0 :                 return MsgValueError;
     269             :             }
     270           0 :             if ((!(Read((&(aReason)), (&(msg__)), (&(iter__)))))) {
     271           0 :                 FatalError("Error deserializing 'nsString'");
     272           0 :                 return MsgValueError;
     273             :             }
     274             :             // Sentinel = 'aReason'
     275           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 829905706)))) {
     276           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
     277           0 :                 return MsgValueError;
     278             :             }
     279           0 :             (msg__).EndRead(iter__, (msg__).type());
     280           0 :             PWebSocketEventListener::Transition(PWebSocketEventListener::Msg_WebSocketClosed__ID, (&(mState)));
     281           0 :             if ((!(RecvWebSocketClosed(mozilla::Move(awebSocketSerialID), mozilla::Move(aWasClean), mozilla::Move(aCode), mozilla::Move(aReason))))) {
     282           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     283             :                 // Error handled in mozilla::ipc::IPCResult
     284           0 :                 return MsgProcessingError;
     285             :             }
     286             : 
     287           0 :             return MsgProcessed;
     288             :         }
     289             :     case PWebSocketEventListener::Msg_FrameReceived__ID:
     290             :         {
     291           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebSocketEventListenerChild")) {
     292           0 :                 mozilla::ipc::LogMessageForProtocol("PWebSocketEventListenerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     293             :             }
     294           0 :             AUTO_PROFILER_LABEL("PWebSocketEventListener::Msg_FrameReceived", OTHER);
     295             : 
     296           0 :             PickleIterator iter__(msg__);
     297             :             uint32_t aWebSocketSerialID;
     298           0 :             WebSocketFrameData aFrameData;
     299             : 
     300           0 :             if ((!(Read((&(aWebSocketSerialID)), (&(msg__)), (&(iter__)))))) {
     301           0 :                 FatalError("Error deserializing 'uint32_t'");
     302           0 :                 return MsgValueError;
     303             :             }
     304             :             // Sentinel = 'aWebSocketSerialID'
     305           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 92961123)))) {
     306           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     307           0 :                 return MsgValueError;
     308             :             }
     309           0 :             if ((!(Read((&(aFrameData)), (&(msg__)), (&(iter__)))))) {
     310           0 :                 FatalError("Error deserializing 'WebSocketFrameData'");
     311           0 :                 return MsgValueError;
     312             :             }
     313             :             // Sentinel = 'aFrameData'
     314           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 474325674)))) {
     315           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'WebSocketFrameData'");
     316           0 :                 return MsgValueError;
     317             :             }
     318           0 :             (msg__).EndRead(iter__, (msg__).type());
     319           0 :             PWebSocketEventListener::Transition(PWebSocketEventListener::Msg_FrameReceived__ID, (&(mState)));
     320           0 :             if ((!(RecvFrameReceived(mozilla::Move(aWebSocketSerialID), mozilla::Move(aFrameData))))) {
     321           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     322             :                 // Error handled in mozilla::ipc::IPCResult
     323           0 :                 return MsgProcessingError;
     324             :             }
     325             : 
     326           0 :             return MsgProcessed;
     327             :         }
     328             :     case PWebSocketEventListener::Msg_FrameSent__ID:
     329             :         {
     330           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebSocketEventListenerChild")) {
     331           0 :                 mozilla::ipc::LogMessageForProtocol("PWebSocketEventListenerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     332             :             }
     333           0 :             AUTO_PROFILER_LABEL("PWebSocketEventListener::Msg_FrameSent", OTHER);
     334             : 
     335           0 :             PickleIterator iter__(msg__);
     336             :             uint32_t aWebSocketSerialID;
     337           0 :             WebSocketFrameData aFrameData;
     338             : 
     339           0 :             if ((!(Read((&(aWebSocketSerialID)), (&(msg__)), (&(iter__)))))) {
     340           0 :                 FatalError("Error deserializing 'uint32_t'");
     341           0 :                 return MsgValueError;
     342             :             }
     343             :             // Sentinel = 'aWebSocketSerialID'
     344           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 92961123)))) {
     345           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     346           0 :                 return MsgValueError;
     347             :             }
     348           0 :             if ((!(Read((&(aFrameData)), (&(msg__)), (&(iter__)))))) {
     349           0 :                 FatalError("Error deserializing 'WebSocketFrameData'");
     350           0 :                 return MsgValueError;
     351             :             }
     352             :             // Sentinel = 'aFrameData'
     353           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 474325674)))) {
     354           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'WebSocketFrameData'");
     355           0 :                 return MsgValueError;
     356             :             }
     357           0 :             (msg__).EndRead(iter__, (msg__).type());
     358           0 :             PWebSocketEventListener::Transition(PWebSocketEventListener::Msg_FrameSent__ID, (&(mState)));
     359           0 :             if ((!(RecvFrameSent(mozilla::Move(aWebSocketSerialID), mozilla::Move(aFrameData))))) {
     360           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     361             :                 // Error handled in mozilla::ipc::IPCResult
     362           0 :                 return MsgProcessingError;
     363             :             }
     364             : 
     365           0 :             return MsgProcessed;
     366             :         }
     367             :     case PWebSocketEventListener::Msg___delete____ID:
     368             :         {
     369           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebSocketEventListenerChild")) {
     370           0 :                 mozilla::ipc::LogMessageForProtocol("PWebSocketEventListenerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     371             :             }
     372           0 :             AUTO_PROFILER_LABEL("PWebSocketEventListener::Msg___delete__", OTHER);
     373             : 
     374           0 :             PickleIterator iter__(msg__);
     375             :             PWebSocketEventListenerChild* actor;
     376             : 
     377           0 :             if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
     378           0 :                 FatalError("Error deserializing 'PWebSocketEventListenerChild'");
     379           0 :                 return MsgValueError;
     380             :             }
     381             :             // Sentinel = 'actor'
     382           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
     383           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PWebSocketEventListenerChild'");
     384           0 :                 return MsgValueError;
     385             :             }
     386           0 :             (msg__).EndRead(iter__, (msg__).type());
     387           0 :             PWebSocketEventListener::Transition(PWebSocketEventListener::Msg___delete____ID, (&(mState)));
     388           0 :             if ((!(Recv__delete__()))) {
     389           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     390             :                 // Error handled in mozilla::ipc::IPCResult
     391           0 :                 return MsgProcessingError;
     392             :             }
     393             : 
     394             : 
     395           0 :             IProtocol* mgr = (actor)->Manager();
     396           0 :             (actor)->DestroySubtree(Deletion);
     397           0 :             (actor)->DeallocSubtree();
     398           0 :             (mgr)->RemoveManagee(PWebSocketEventListenerMsgStart, actor);
     399             : 
     400           0 :             return MsgProcessed;
     401             :         }
     402             :     default:
     403             :         {
     404           0 :             return MsgNotKnown;
     405             :         }
     406             :     }
     407             : }
     408             : 
     409           0 : auto PWebSocketEventListenerChild::OnMessageReceived(
     410             :         const Message& msg__,
     411             :         Message*& reply__) -> PWebSocketEventListenerChild::Result
     412             : {
     413           0 :     return MsgNotKnown;
     414             : }
     415             : 
     416           0 : auto PWebSocketEventListenerChild::OnCallReceived(
     417             :         const Message& msg__,
     418             :         Message*& reply__) -> PWebSocketEventListenerChild::Result
     419             : {
     420           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     421             :     return MsgNotKnown;
     422             : }
     423             : 
     424           0 : auto PWebSocketEventListenerChild::GetProtocolTypeId() -> int32_t
     425             : {
     426           0 :     return PWebSocketEventListenerMsgStart;
     427             : }
     428             : 
     429           0 : auto PWebSocketEventListenerChild::ProtocolName() const -> const char*
     430             : {
     431           0 :     return "PWebSocketEventListenerChild";
     432             : }
     433             : 
     434           0 : auto PWebSocketEventListenerChild::DestroySubtree(ActorDestroyReason why) -> void
     435             : {
     436             :     // Unregister from our manager.
     437           0 :     Unregister(Id());
     438             : 
     439             :     // Reject owning pending promises.
     440           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     441             : 
     442             :     // Finally, destroy "us".
     443           0 :     ActorDestroy(why);
     444           0 : }
     445             : 
     446           0 : auto PWebSocketEventListenerChild::DeallocSubtree() -> void
     447             : {
     448           0 : }
     449             : 
     450           0 : auto PWebSocketEventListenerChild::Write(
     451             :         const PWebSocketEventListenerChild* v__,
     452             :         Message* msg__,
     453             :         bool nullable__) -> void
     454             : {
     455             :     int32_t id;
     456           0 :     if ((!(v__))) {
     457           0 :         if ((!(nullable__))) {
     458           0 :             FatalError("NULL actor value passed to non-nullable param");
     459             :         }
     460           0 :         id = 0;
     461             :     }
     462             :     else {
     463           0 :         id = (v__)->Id();
     464           0 :         if ((1) == (id)) {
     465           0 :             FatalError("actor has been |delete|d");
     466             :         }
     467             :     }
     468             : 
     469           0 :     Write(id, msg__);
     470           0 : }
     471             : 
     472           0 : auto PWebSocketEventListenerChild::Read(
     473             :         PWebSocketEventListenerChild** v__,
     474             :         const Message* msg__,
     475             :         PickleIterator* iter__,
     476             :         bool nullable__) -> bool
     477             : {
     478           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PWebSocketEventListener", PWebSocketEventListenerMsgStart);
     479           0 :     if ((actor).isNothing()) {
     480           0 :         return false;
     481             :     }
     482             : 
     483           0 :     (*(v__)) = static_cast<PWebSocketEventListenerChild*>((actor).value());
     484           0 :     return true;
     485             : }
     486             : 
     487             : 
     488             : 
     489             : } // namespace net
     490             : } // namespace mozilla

Generated by: LCOV version 1.13