LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PPluginBackgroundDestroyerChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 65 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/plugins/PPluginBackgroundDestroyerChild.h"
       8             : 
       9             : #include "mozilla/plugins/PPluginInstanceChild.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace plugins {
      16             : 
      17             : 
      18           0 : auto PPluginBackgroundDestroyerChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      19             : {
      20           0 : }
      21             : 
      22           0 : MOZ_IMPLICIT PPluginBackgroundDestroyerChild::PPluginBackgroundDestroyerChild() :
      23             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      24           0 :     mState(PPluginBackgroundDestroyer::__Dead)
      25             : {
      26           0 :     MOZ_COUNT_CTOR(PPluginBackgroundDestroyerChild);
      27           0 : }
      28             : 
      29           0 : PPluginBackgroundDestroyerChild::~PPluginBackgroundDestroyerChild()
      30             : {
      31           0 :     MOZ_COUNT_DTOR(PPluginBackgroundDestroyerChild);
      32           0 : }
      33             : 
      34           0 : auto PPluginBackgroundDestroyerChild::Manager() const -> PPluginInstanceChild*
      35             : {
      36           0 :     return static_cast<PPluginInstanceChild*>(IProtocol::Manager());
      37             : }
      38             : 
      39           0 : auto PPluginBackgroundDestroyerChild::Send__delete__(PPluginBackgroundDestroyerChild* actor) -> bool
      40             : {
      41           0 :     if ((!(actor))) {
      42           0 :         return false;
      43             :     }
      44             : 
      45           0 :     IPC::Message* msg__ = PPluginBackgroundDestroyer::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("PPluginBackgroundDestroyerChild")) {
      54           0 :         mozilla::ipc::LogMessageForProtocol("PPluginBackgroundDestroyerChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      55             :     }
      56           0 :     AUTO_PROFILER_LABEL("PPluginBackgroundDestroyer::Msg___delete__", OTHER);
      57           0 :     PPluginBackgroundDestroyer::Transition(PPluginBackgroundDestroyer::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(PPluginBackgroundDestroyerMsgStart, actor);
      65           0 :     return sendok__;
      66             : }
      67             : 
      68           0 : auto PPluginBackgroundDestroyerChild::RemoveManagee(
      69             :         int32_t aProtocolId,
      70             :         ProtocolBase* aListener) -> void
      71             : {
      72           0 :     FatalError("unreached");
      73           0 :     return;
      74             : }
      75             : 
      76           0 : auto PPluginBackgroundDestroyerChild::OnMessageReceived(const Message& msg__) -> PPluginBackgroundDestroyerChild::Result
      77             : {
      78           0 :     switch ((msg__).type()) {
      79             :     case PPluginBackgroundDestroyer::Reply___delete____ID:
      80             :         {
      81           0 :             return MsgProcessed;
      82             :         }
      83             :     default:
      84             :         {
      85           0 :             return MsgNotKnown;
      86             :         }
      87             :     }
      88             : }
      89             : 
      90           0 : auto PPluginBackgroundDestroyerChild::OnMessageReceived(
      91             :         const Message& msg__,
      92             :         Message*& reply__) -> PPluginBackgroundDestroyerChild::Result
      93             : {
      94           0 :     return MsgNotKnown;
      95             : }
      96             : 
      97           0 : auto PPluginBackgroundDestroyerChild::OnCallReceived(
      98             :         const Message& msg__,
      99             :         Message*& reply__) -> PPluginBackgroundDestroyerChild::Result
     100             : {
     101           0 :     return MsgNotKnown;
     102             : }
     103             : 
     104           0 : auto PPluginBackgroundDestroyerChild::GetProtocolTypeId() -> int32_t
     105             : {
     106           0 :     return PPluginBackgroundDestroyerMsgStart;
     107             : }
     108             : 
     109           0 : auto PPluginBackgroundDestroyerChild::ProtocolName() const -> const char*
     110             : {
     111           0 :     return "PPluginBackgroundDestroyerChild";
     112             : }
     113             : 
     114           0 : auto PPluginBackgroundDestroyerChild::DestroySubtree(ActorDestroyReason why) -> void
     115             : {
     116             :     // Unregister from our manager.
     117           0 :     Unregister(Id());
     118             : 
     119             :     // Reject owning pending promises.
     120           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     121             : 
     122             :     // Finally, destroy "us".
     123           0 :     ActorDestroy(why);
     124           0 : }
     125             : 
     126           0 : auto PPluginBackgroundDestroyerChild::DeallocSubtree() -> void
     127             : {
     128           0 : }
     129             : 
     130           0 : auto PPluginBackgroundDestroyerChild::Write(
     131             :         const PPluginBackgroundDestroyerChild* v__,
     132             :         Message* msg__,
     133             :         bool nullable__) -> void
     134             : {
     135             :     int32_t id;
     136           0 :     if ((!(v__))) {
     137           0 :         if ((!(nullable__))) {
     138           0 :             FatalError("NULL actor value passed to non-nullable param");
     139             :         }
     140           0 :         id = 0;
     141             :     }
     142             :     else {
     143           0 :         id = (v__)->Id();
     144           0 :         if ((1) == (id)) {
     145           0 :             FatalError("actor has been |delete|d");
     146             :         }
     147             :     }
     148             : 
     149           0 :     Write(id, msg__);
     150           0 : }
     151             : 
     152           0 : auto PPluginBackgroundDestroyerChild::Read(
     153             :         PPluginBackgroundDestroyerChild** v__,
     154             :         const Message* msg__,
     155             :         PickleIterator* iter__,
     156             :         bool nullable__) -> bool
     157             : {
     158           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPluginBackgroundDestroyer", PPluginBackgroundDestroyerMsgStart);
     159           0 :     if ((actor).isNothing()) {
     160           0 :         return false;
     161             :     }
     162             : 
     163           0 :     (*(v__)) = static_cast<PPluginBackgroundDestroyerChild*>((actor).value());
     164           0 :     return true;
     165             : }
     166             : 
     167             : 
     168             : 
     169             : } // namespace plugins
     170             : } // namespace mozilla

Generated by: LCOV version 1.13