LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PDocumentRendererChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 69 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/ipc/PDocumentRendererChild.h"
       8             : 
       9             : #include "mozilla/dom/PBrowserChild.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace ipc {
      16             : 
      17             : 
      18           0 : auto PDocumentRendererChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      19             : {
      20           0 : }
      21             : 
      22           0 : MOZ_IMPLICIT PDocumentRendererChild::PDocumentRendererChild() :
      23             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      24           0 :     mState(PDocumentRenderer::__Dead)
      25             : {
      26           0 :     MOZ_COUNT_CTOR(PDocumentRendererChild);
      27           0 : }
      28             : 
      29           0 : PDocumentRendererChild::~PDocumentRendererChild()
      30             : {
      31           0 :     MOZ_COUNT_DTOR(PDocumentRendererChild);
      32           0 : }
      33             : 
      34           0 : auto PDocumentRendererChild::Manager() const -> PBrowserChild*
      35             : {
      36           0 :     return static_cast<PBrowserChild*>(IProtocol::Manager());
      37             : }
      38             : 
      39           0 : auto PDocumentRendererChild::Send__delete__(
      40             :         PDocumentRendererChild* actor,
      41             :         const nsIntSize& renderedSize,
      42             :         const nsCString& data) -> bool
      43             : {
      44           0 :     if ((!(actor))) {
      45           0 :         return false;
      46             :     }
      47             : 
      48           0 :     IPC::Message* msg__ = PDocumentRenderer::Msg___delete__((actor)->Id());
      49             : 
      50           0 :     (actor)->Write(actor, msg__, false);
      51             :     // Sentinel = 'actor'
      52           0 :     (msg__)->WriteSentinel(875202478);
      53           0 :     (actor)->Write(renderedSize, msg__);
      54             :     // Sentinel = 'renderedSize'
      55           0 :     (msg__)->WriteSentinel(1383758716);
      56           0 :     (actor)->Write(data, msg__);
      57             :     // Sentinel = 'data'
      58           0 :     (msg__)->WriteSentinel(843352540);
      59             : 
      60             : 
      61             : 
      62           0 :     if (mozilla::ipc::LoggingEnabledFor("PDocumentRendererChild")) {
      63           0 :         mozilla::ipc::LogMessageForProtocol("PDocumentRendererChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      64             :     }
      65           0 :     AUTO_PROFILER_LABEL("PDocumentRenderer::Msg___delete__", OTHER);
      66           0 :     PDocumentRenderer::Transition(PDocumentRenderer::Msg___delete____ID, (&((actor)->mState)));
      67             : 
      68           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
      69             : 
      70           0 :     IProtocol* mgr = (actor)->Manager();
      71           0 :     (actor)->DestroySubtree(Deletion);
      72           0 :     (actor)->DeallocSubtree();
      73           0 :     (mgr)->RemoveManagee(PDocumentRendererMsgStart, actor);
      74           0 :     return sendok__;
      75             : }
      76             : 
      77           0 : auto PDocumentRendererChild::RemoveManagee(
      78             :         int32_t aProtocolId,
      79             :         ProtocolBase* aListener) -> void
      80             : {
      81           0 :     FatalError("unreached");
      82           0 :     return;
      83             : }
      84             : 
      85           0 : auto PDocumentRendererChild::OnMessageReceived(const Message& msg__) -> PDocumentRendererChild::Result
      86             : {
      87           0 :     switch ((msg__).type()) {
      88             :     case PDocumentRenderer::Reply___delete____ID:
      89             :         {
      90           0 :             return MsgProcessed;
      91             :         }
      92             :     default:
      93             :         {
      94           0 :             return MsgNotKnown;
      95             :         }
      96             :     }
      97             : }
      98             : 
      99           0 : auto PDocumentRendererChild::OnMessageReceived(
     100             :         const Message& msg__,
     101             :         Message*& reply__) -> PDocumentRendererChild::Result
     102             : {
     103           0 :     return MsgNotKnown;
     104             : }
     105             : 
     106           0 : auto PDocumentRendererChild::OnCallReceived(
     107             :         const Message& msg__,
     108             :         Message*& reply__) -> PDocumentRendererChild::Result
     109             : {
     110           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     111             :     return MsgNotKnown;
     112             : }
     113             : 
     114           0 : auto PDocumentRendererChild::GetProtocolTypeId() -> int32_t
     115             : {
     116           0 :     return PDocumentRendererMsgStart;
     117             : }
     118             : 
     119           0 : auto PDocumentRendererChild::ProtocolName() const -> const char*
     120             : {
     121           0 :     return "PDocumentRendererChild";
     122             : }
     123             : 
     124           0 : auto PDocumentRendererChild::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 PDocumentRendererChild::DeallocSubtree() -> void
     137             : {
     138           0 : }
     139             : 
     140           0 : auto PDocumentRendererChild::Write(
     141             :         const PDocumentRendererChild* 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 PDocumentRendererChild::Read(
     163             :         PDocumentRendererChild** v__,
     164             :         const Message* msg__,
     165             :         PickleIterator* iter__,
     166             :         bool nullable__) -> bool
     167             : {
     168           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PDocumentRenderer", PDocumentRendererMsgStart);
     169           0 :     if ((actor).isNothing()) {
     170           0 :         return false;
     171             :     }
     172             : 
     173           0 :     (*(v__)) = static_cast<PDocumentRendererChild*>((actor).value());
     174           0 :     return true;
     175             : }
     176             : 
     177             : 
     178             : 
     179             : } // namespace ipc
     180             : } // namespace mozilla

Generated by: LCOV version 1.13