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

Generated by: LCOV version 1.13