LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PPluginWidgetChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 150 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/plugins/PPluginWidgetChild.h"
       8             : 
       9             : #include "mozilla/dom/PBrowserChild.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace plugins {
      16             : 
      17             : 
      18           0 : auto PPluginWidgetChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      19             : {
      20           0 : }
      21             : 
      22           0 : MOZ_IMPLICIT PPluginWidgetChild::PPluginWidgetChild() :
      23             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      24           0 :     mState(PPluginWidget::__Dead)
      25             : {
      26           0 :     MOZ_COUNT_CTOR(PPluginWidgetChild);
      27           0 : }
      28             : 
      29           0 : PPluginWidgetChild::~PPluginWidgetChild()
      30             : {
      31           0 :     MOZ_COUNT_DTOR(PPluginWidgetChild);
      32           0 : }
      33             : 
      34           0 : auto PPluginWidgetChild::Manager() const -> PBrowserChild*
      35             : {
      36           0 :     return static_cast<PBrowserChild*>(IProtocol::Manager());
      37             : }
      38             : 
      39           0 : auto PPluginWidgetChild::Send__delete__(PPluginWidgetChild* actor) -> bool
      40             : {
      41           0 :     if ((!(actor))) {
      42           0 :         return false;
      43             :     }
      44             : 
      45           0 :     IPC::Message* msg__ = PPluginWidget::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("PPluginWidgetChild")) {
      54           0 :         mozilla::ipc::LogMessageForProtocol("PPluginWidgetChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      55             :     }
      56           0 :     AUTO_PROFILER_LABEL("PPluginWidget::Msg___delete__", OTHER);
      57           0 :     PPluginWidget::Transition(PPluginWidget::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(PPluginWidgetMsgStart, actor);
      65           0 :     return sendok__;
      66             : }
      67             : 
      68           0 : auto PPluginWidgetChild::SendCreate(
      69             :         nsresult* aResult,
      70             :         uint64_t* aScrollCaptureId,
      71             :         uintptr_t* aPluginInstanceId) -> bool
      72             : {
      73           0 :     IPC::Message* msg__ = PPluginWidget::Msg_Create(Id());
      74             : 
      75             : 
      76           0 :     (msg__)->set_sync();
      77             : 
      78             : 
      79           0 :     Message reply__;
      80             : 
      81           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginWidgetChild")) {
      82           0 :         mozilla::ipc::LogMessageForProtocol("PPluginWidgetChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      83             :     }
      84           0 :     AUTO_PROFILER_LABEL("PPluginWidget::Msg_Create", OTHER);
      85           0 :     PPluginWidget::Transition(PPluginWidget::Msg_Create__ID, (&(mState)));
      86             : 
      87             :     bool sendok__;
      88             :     {
      89             :         AutoProfilerTracing syncIPCTracer(
      90             :                 "IPC",
      91           0 :                 "PPluginWidget::Msg_Create");
      92           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
      93             :     }
      94           0 :     if ((!(sendok__))) {
      95           0 :         return false;
      96             :     }
      97             : 
      98           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginWidgetChild")) {
      99           0 :         mozilla::ipc::LogMessageForProtocol("PPluginWidgetChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     100             :     }
     101             : 
     102           0 :     PickleIterator iter__(reply__);
     103             : 
     104           0 :     if ((!(Read(aResult, (&(reply__)), (&(iter__)))))) {
     105           0 :         FatalError("Error deserializing 'nsresult'");
     106           0 :         return false;
     107             :     }
     108             :     // Sentinel = 'aResult'
     109           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) {
     110           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
     111           0 :         return false;
     112             :     }
     113           0 :     if ((!(Read(aScrollCaptureId, (&(reply__)), (&(iter__)))))) {
     114           0 :         FatalError("Error deserializing 'uint64_t'");
     115           0 :         return false;
     116             :     }
     117             :     // Sentinel = 'aScrollCaptureId'
     118           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3492685879)))) {
     119           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     120           0 :         return false;
     121             :     }
     122           0 :     if ((!(Read(aPluginInstanceId, (&(reply__)), (&(iter__)))))) {
     123           0 :         FatalError("Error deserializing 'uintptr_t'");
     124           0 :         return false;
     125             :     }
     126             :     // Sentinel = 'aPluginInstanceId'
     127           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2621152699)))) {
     128           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'uintptr_t'");
     129           0 :         return false;
     130             :     }
     131           0 :     (reply__).EndRead(iter__, (reply__).type());
     132             : 
     133           0 :     return true;
     134             : }
     135             : 
     136           0 : auto PPluginWidgetChild::SendSetFocus(const bool& aRaise) -> bool
     137             : {
     138           0 :     IPC::Message* msg__ = PPluginWidget::Msg_SetFocus(Id());
     139             : 
     140           0 :     Write(aRaise, msg__);
     141             :     // Sentinel = 'aRaise'
     142           0 :     (msg__)->WriteSentinel(902411529);
     143             : 
     144             : 
     145             : 
     146             : 
     147           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginWidgetChild")) {
     148           0 :         mozilla::ipc::LogMessageForProtocol("PPluginWidgetChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     149             :     }
     150           0 :     AUTO_PROFILER_LABEL("PPluginWidget::Msg_SetFocus", OTHER);
     151           0 :     PPluginWidget::Transition(PPluginWidget::Msg_SetFocus__ID, (&(mState)));
     152             : 
     153           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     154           0 :     return sendok__;
     155             : }
     156             : 
     157           0 : auto PPluginWidgetChild::SendGetNativePluginPort(uintptr_t* value) -> bool
     158             : {
     159           0 :     IPC::Message* msg__ = PPluginWidget::Msg_GetNativePluginPort(Id());
     160             : 
     161             : 
     162           0 :     (msg__)->set_sync();
     163             : 
     164             : 
     165           0 :     Message reply__;
     166             : 
     167           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginWidgetChild")) {
     168           0 :         mozilla::ipc::LogMessageForProtocol("PPluginWidgetChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     169             :     }
     170           0 :     AUTO_PROFILER_LABEL("PPluginWidget::Msg_GetNativePluginPort", OTHER);
     171           0 :     PPluginWidget::Transition(PPluginWidget::Msg_GetNativePluginPort__ID, (&(mState)));
     172             : 
     173             :     bool sendok__;
     174             :     {
     175             :         AutoProfilerTracing syncIPCTracer(
     176             :                 "IPC",
     177           0 :                 "PPluginWidget::Msg_GetNativePluginPort");
     178           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     179             :     }
     180           0 :     if ((!(sendok__))) {
     181           0 :         return false;
     182             :     }
     183             : 
     184           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginWidgetChild")) {
     185           0 :         mozilla::ipc::LogMessageForProtocol("PPluginWidgetChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     186             :     }
     187             : 
     188           0 :     PickleIterator iter__(reply__);
     189             : 
     190           0 :     if ((!(Read(value, (&(reply__)), (&(iter__)))))) {
     191           0 :         FatalError("Error deserializing 'uintptr_t'");
     192           0 :         return false;
     193             :     }
     194             :     // Sentinel = 'value'
     195           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3456818542)))) {
     196           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'uintptr_t'");
     197           0 :         return false;
     198             :     }
     199           0 :     (reply__).EndRead(iter__, (reply__).type());
     200             : 
     201           0 :     return true;
     202             : }
     203             : 
     204           0 : auto PPluginWidgetChild::SendSetNativeChildWindow(const uintptr_t& childWindow) -> bool
     205             : {
     206           0 :     IPC::Message* msg__ = PPluginWidget::Msg_SetNativeChildWindow(Id());
     207             : 
     208           0 :     Write(childWindow, msg__);
     209             :     // Sentinel = 'childWindow'
     210           0 :     (msg__)->WriteSentinel(2307824933);
     211             : 
     212           0 :     (msg__)->set_sync();
     213             : 
     214             : 
     215           0 :     Message reply__;
     216             : 
     217           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginWidgetChild")) {
     218           0 :         mozilla::ipc::LogMessageForProtocol("PPluginWidgetChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     219             :     }
     220           0 :     AUTO_PROFILER_LABEL("PPluginWidget::Msg_SetNativeChildWindow", OTHER);
     221           0 :     PPluginWidget::Transition(PPluginWidget::Msg_SetNativeChildWindow__ID, (&(mState)));
     222             : 
     223             :     bool sendok__;
     224             :     {
     225             :         AutoProfilerTracing syncIPCTracer(
     226             :                 "IPC",
     227           0 :                 "PPluginWidget::Msg_SetNativeChildWindow");
     228           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     229             :     }
     230           0 :     if ((!(sendok__))) {
     231           0 :         return false;
     232             :     }
     233             : 
     234           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginWidgetChild")) {
     235           0 :         mozilla::ipc::LogMessageForProtocol("PPluginWidgetChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     236             :     }
     237             : 
     238           0 :     return true;
     239             : }
     240             : 
     241           0 : auto PPluginWidgetChild::RemoveManagee(
     242             :         int32_t aProtocolId,
     243             :         ProtocolBase* aListener) -> void
     244             : {
     245           0 :     FatalError("unreached");
     246           0 :     return;
     247             : }
     248             : 
     249           0 : auto PPluginWidgetChild::OnMessageReceived(const Message& msg__) -> PPluginWidgetChild::Result
     250             : {
     251           0 :     switch ((msg__).type()) {
     252             :     case PPluginWidget::Reply___delete____ID:
     253             :         {
     254           0 :             return MsgProcessed;
     255             :         }
     256             :     default:
     257             :         {
     258           0 :             return MsgNotKnown;
     259             :         }
     260             :     }
     261             : }
     262             : 
     263           0 : auto PPluginWidgetChild::OnMessageReceived(
     264             :         const Message& msg__,
     265             :         Message*& reply__) -> PPluginWidgetChild::Result
     266             : {
     267           0 :     return MsgNotKnown;
     268             : }
     269             : 
     270           0 : auto PPluginWidgetChild::OnCallReceived(
     271             :         const Message& msg__,
     272             :         Message*& reply__) -> PPluginWidgetChild::Result
     273             : {
     274           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     275             :     return MsgNotKnown;
     276             : }
     277             : 
     278           0 : auto PPluginWidgetChild::GetProtocolTypeId() -> int32_t
     279             : {
     280           0 :     return PPluginWidgetMsgStart;
     281             : }
     282             : 
     283           0 : auto PPluginWidgetChild::ProtocolName() const -> const char*
     284             : {
     285           0 :     return "PPluginWidgetChild";
     286             : }
     287             : 
     288           0 : auto PPluginWidgetChild::DestroySubtree(ActorDestroyReason why) -> void
     289             : {
     290             :     // Unregister from our manager.
     291           0 :     Unregister(Id());
     292             : 
     293             :     // Reject owning pending promises.
     294           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     295             : 
     296             :     // Finally, destroy "us".
     297           0 :     ActorDestroy(why);
     298           0 : }
     299             : 
     300           0 : auto PPluginWidgetChild::DeallocSubtree() -> void
     301             : {
     302           0 : }
     303             : 
     304           0 : auto PPluginWidgetChild::Write(
     305             :         const PPluginWidgetChild* v__,
     306             :         Message* msg__,
     307             :         bool nullable__) -> void
     308             : {
     309             :     int32_t id;
     310           0 :     if ((!(v__))) {
     311           0 :         if ((!(nullable__))) {
     312           0 :             FatalError("NULL actor value passed to non-nullable param");
     313             :         }
     314           0 :         id = 0;
     315             :     }
     316             :     else {
     317           0 :         id = (v__)->Id();
     318           0 :         if ((1) == (id)) {
     319           0 :             FatalError("actor has been |delete|d");
     320             :         }
     321             :     }
     322             : 
     323           0 :     Write(id, msg__);
     324           0 : }
     325             : 
     326           0 : auto PPluginWidgetChild::Read(
     327             :         PPluginWidgetChild** v__,
     328             :         const Message* msg__,
     329             :         PickleIterator* iter__,
     330             :         bool nullable__) -> bool
     331             : {
     332           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPluginWidget", PPluginWidgetMsgStart);
     333           0 :     if ((actor).isNothing()) {
     334           0 :         return false;
     335             :     }
     336             : 
     337           0 :     (*(v__)) = static_cast<PPluginWidgetChild*>((actor).value());
     338           0 :     return true;
     339             : }
     340             : 
     341             : 
     342             : 
     343             : } // namespace plugins
     344             : } // namespace mozilla

Generated by: LCOV version 1.13