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

Generated by: LCOV version 1.13