LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PStunAddrsRequestParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 86 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 16 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/PStunAddrsRequestParent.h"
       8             : 
       9             : #include "mozilla/net/PNeckoParent.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace net {
      16             : 
      17             : 
      18           0 : auto PStunAddrsRequestParent::Recv__delete__() -> mozilla::ipc::IPCResult
      19             : {
      20           0 :     return IPC_OK();
      21             : }
      22             : 
      23             : 
      24           0 : MOZ_IMPLICIT PStunAddrsRequestParent::PStunAddrsRequestParent() :
      25             :     mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
      26           0 :     mState(PStunAddrsRequest::__Dead)
      27             : {
      28           0 :     MOZ_COUNT_CTOR(PStunAddrsRequestParent);
      29           0 : }
      30             : 
      31           0 : PStunAddrsRequestParent::~PStunAddrsRequestParent()
      32             : {
      33           0 :     MOZ_COUNT_DTOR(PStunAddrsRequestParent);
      34           0 : }
      35             : 
      36           0 : auto PStunAddrsRequestParent::Manager() const -> PNeckoParent*
      37             : {
      38           0 :     return static_cast<PNeckoParent*>(IProtocol::Manager());
      39             : }
      40             : 
      41           0 : auto PStunAddrsRequestParent::SendOnStunAddrsAvailable(const NrIceStunAddrArray& iceStunAddrs) -> bool
      42             : {
      43           0 :     IPC::Message* msg__ = PStunAddrsRequest::Msg_OnStunAddrsAvailable(Id());
      44             : 
      45           0 :     Write(iceStunAddrs, msg__);
      46             :     // Sentinel = 'iceStunAddrs'
      47           0 :     (msg__)->WriteSentinel(2257180203);
      48             : 
      49             : 
      50             : 
      51             : 
      52           0 :     if (mozilla::ipc::LoggingEnabledFor("PStunAddrsRequestParent")) {
      53           0 :         mozilla::ipc::LogMessageForProtocol("PStunAddrsRequestParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      54             :     }
      55           0 :     AUTO_PROFILER_LABEL("PStunAddrsRequest::Msg_OnStunAddrsAvailable", OTHER);
      56           0 :     PStunAddrsRequest::Transition(PStunAddrsRequest::Msg_OnStunAddrsAvailable__ID, (&(mState)));
      57             : 
      58           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      59           0 :     return sendok__;
      60             : }
      61             : 
      62           0 : auto PStunAddrsRequestParent::RemoveManagee(
      63             :         int32_t aProtocolId,
      64             :         ProtocolBase* aListener) -> void
      65             : {
      66           0 :     FatalError("unreached");
      67           0 :     return;
      68             : }
      69             : 
      70           0 : auto PStunAddrsRequestParent::OnMessageReceived(const Message& msg__) -> PStunAddrsRequestParent::Result
      71             : {
      72           0 :     switch ((msg__).type()) {
      73             :     case PStunAddrsRequest::Msg_GetStunAddrs__ID:
      74             :         {
      75           0 :             if (mozilla::ipc::LoggingEnabledFor("PStunAddrsRequestParent")) {
      76           0 :                 mozilla::ipc::LogMessageForProtocol("PStunAddrsRequestParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
      77             :             }
      78           0 :             AUTO_PROFILER_LABEL("PStunAddrsRequest::Msg_GetStunAddrs", OTHER);
      79             : 
      80           0 :             PStunAddrsRequest::Transition(PStunAddrsRequest::Msg_GetStunAddrs__ID, (&(mState)));
      81           0 :             if ((!(RecvGetStunAddrs()))) {
      82           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
      83             :                 // Error handled in mozilla::ipc::IPCResult
      84           0 :                 return MsgProcessingError;
      85             :             }
      86             : 
      87           0 :             return MsgProcessed;
      88             :         }
      89             :     case PStunAddrsRequest::Msg___delete____ID:
      90             :         {
      91           0 :             if (mozilla::ipc::LoggingEnabledFor("PStunAddrsRequestParent")) {
      92           0 :                 mozilla::ipc::LogMessageForProtocol("PStunAddrsRequestParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
      93             :             }
      94           0 :             AUTO_PROFILER_LABEL("PStunAddrsRequest::Msg___delete__", OTHER);
      95             : 
      96           0 :             PickleIterator iter__(msg__);
      97             :             PStunAddrsRequestParent* actor;
      98             : 
      99           0 :             if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
     100           0 :                 FatalError("Error deserializing 'PStunAddrsRequestParent'");
     101           0 :                 return MsgValueError;
     102             :             }
     103             :             // Sentinel = 'actor'
     104           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
     105           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PStunAddrsRequestParent'");
     106           0 :                 return MsgValueError;
     107             :             }
     108           0 :             (msg__).EndRead(iter__, (msg__).type());
     109           0 :             PStunAddrsRequest::Transition(PStunAddrsRequest::Msg___delete____ID, (&(mState)));
     110           0 :             if ((!(Recv__delete__()))) {
     111           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     112             :                 // Error handled in mozilla::ipc::IPCResult
     113           0 :                 return MsgProcessingError;
     114             :             }
     115             : 
     116             : 
     117           0 :             IProtocol* mgr = (actor)->Manager();
     118           0 :             (actor)->DestroySubtree(Deletion);
     119           0 :             (actor)->DeallocSubtree();
     120           0 :             (mgr)->RemoveManagee(PStunAddrsRequestMsgStart, actor);
     121             : 
     122           0 :             return MsgProcessed;
     123             :         }
     124             :     default:
     125             :         {
     126           0 :             return MsgNotKnown;
     127             :         }
     128             :     }
     129             : }
     130             : 
     131           0 : auto PStunAddrsRequestParent::OnMessageReceived(
     132             :         const Message& msg__,
     133             :         Message*& reply__) -> PStunAddrsRequestParent::Result
     134             : {
     135           0 :     return MsgNotKnown;
     136             : }
     137             : 
     138           0 : auto PStunAddrsRequestParent::OnCallReceived(
     139             :         const Message& msg__,
     140             :         Message*& reply__) -> PStunAddrsRequestParent::Result
     141             : {
     142           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     143             :     return MsgNotKnown;
     144             : }
     145             : 
     146           0 : auto PStunAddrsRequestParent::GetProtocolTypeId() -> int32_t
     147             : {
     148           0 :     return PStunAddrsRequestMsgStart;
     149             : }
     150             : 
     151           0 : auto PStunAddrsRequestParent::ProtocolName() const -> const char*
     152             : {
     153           0 :     return "PStunAddrsRequestParent";
     154             : }
     155             : 
     156           0 : auto PStunAddrsRequestParent::DestroySubtree(ActorDestroyReason why) -> void
     157             : {
     158             :     // Unregister from our manager.
     159           0 :     Unregister(Id());
     160             : 
     161             :     // Reject owning pending promises.
     162           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     163             : 
     164             :     // Finally, destroy "us".
     165           0 :     ActorDestroy(why);
     166           0 : }
     167             : 
     168           0 : auto PStunAddrsRequestParent::DeallocSubtree() -> void
     169             : {
     170           0 : }
     171             : 
     172           0 : auto PStunAddrsRequestParent::Write(
     173             :         const PStunAddrsRequestParent* v__,
     174             :         Message* msg__,
     175             :         bool nullable__) -> void
     176             : {
     177             :     int32_t id;
     178           0 :     if ((!(v__))) {
     179           0 :         if ((!(nullable__))) {
     180           0 :             FatalError("NULL actor value passed to non-nullable param");
     181             :         }
     182           0 :         id = 0;
     183             :     }
     184             :     else {
     185           0 :         id = (v__)->Id();
     186           0 :         if ((1) == (id)) {
     187           0 :             FatalError("actor has been |delete|d");
     188             :         }
     189             :     }
     190             : 
     191           0 :     Write(id, msg__);
     192           0 : }
     193             : 
     194           0 : auto PStunAddrsRequestParent::Read(
     195             :         PStunAddrsRequestParent** v__,
     196             :         const Message* msg__,
     197             :         PickleIterator* iter__,
     198             :         bool nullable__) -> bool
     199             : {
     200           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PStunAddrsRequest", PStunAddrsRequestMsgStart);
     201           0 :     if ((actor).isNothing()) {
     202           0 :         return false;
     203             :     }
     204             : 
     205           0 :     (*(v__)) = static_cast<PStunAddrsRequestParent*>((actor).value());
     206           0 :     return true;
     207             : }
     208             : 
     209             : 
     210             : 
     211             : } // namespace net
     212             : } // namespace mozilla

Generated by: LCOV version 1.13