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

Generated by: LCOV version 1.13