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

Generated by: LCOV version 1.13