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

Generated by: LCOV version 1.13