LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PExternalHelperAppChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 166 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 24 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/dom/PExternalHelperAppChild.h"
       8             : 
       9             : #include "mozilla/dom/PBrowserChild.h"
      10             : #include "mozilla/dom/PContentChild.h"
      11             : #include "mozilla/net/PChannelDiverterChild.h"
      12             : 
      13             : #include "nsIFile.h"
      14             : #include "GeckoProfiler.h"
      15             : 
      16             : namespace mozilla {
      17             : namespace dom {
      18             : 
      19             : 
      20           0 : auto PExternalHelperAppChild::Recv__delete__() -> mozilla::ipc::IPCResult
      21             : {
      22           0 :     return IPC_OK();
      23             : }
      24             : 
      25           0 : auto PExternalHelperAppChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      26             : {
      27           0 : }
      28             : 
      29           0 : MOZ_IMPLICIT PExternalHelperAppChild::PExternalHelperAppChild() :
      30             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      31           0 :     mState(PExternalHelperApp::__Dead)
      32             : {
      33           0 :     MOZ_COUNT_CTOR(PExternalHelperAppChild);
      34           0 : }
      35             : 
      36           0 : PExternalHelperAppChild::~PExternalHelperAppChild()
      37             : {
      38           0 :     MOZ_COUNT_DTOR(PExternalHelperAppChild);
      39           0 : }
      40             : 
      41           0 : auto PExternalHelperAppChild::Manager() const -> PContentChild*
      42             : {
      43           0 :     return static_cast<PContentChild*>(IProtocol::Manager());
      44             : }
      45             : 
      46           0 : auto PExternalHelperAppChild::SendOnStartRequest(
      47             :         const nsCString& entityID,
      48             :         PBrowserChild* windowContext) -> bool
      49             : {
      50           0 :     IPC::Message* msg__ = PExternalHelperApp::Msg_OnStartRequest(Id());
      51             : 
      52           0 :     Write(entityID, msg__);
      53             :     // Sentinel = 'entityID'
      54           0 :     (msg__)->WriteSentinel(245743354);
      55           0 :     Write(windowContext, msg__, false);
      56             :     // Sentinel = 'windowContext'
      57           0 :     (msg__)->WriteSentinel(3429612728);
      58             : 
      59             : 
      60             : 
      61             : 
      62           0 :     if (mozilla::ipc::LoggingEnabledFor("PExternalHelperAppChild")) {
      63           0 :         mozilla::ipc::LogMessageForProtocol("PExternalHelperAppChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      64             :     }
      65           0 :     AUTO_PROFILER_LABEL("PExternalHelperApp::Msg_OnStartRequest", OTHER);
      66           0 :     PExternalHelperApp::Transition(PExternalHelperApp::Msg_OnStartRequest__ID, (&(mState)));
      67             : 
      68           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      69           0 :     return sendok__;
      70             : }
      71             : 
      72           0 : auto PExternalHelperAppChild::SendOnDataAvailable(
      73             :         const nsCString& data,
      74             :         const uint64_t& offset,
      75             :         const uint32_t& count) -> bool
      76             : {
      77           0 :     IPC::Message* msg__ = PExternalHelperApp::Msg_OnDataAvailable(Id());
      78             : 
      79           0 :     Write(data, msg__);
      80             :     // Sentinel = 'data'
      81           0 :     (msg__)->WriteSentinel(843352540);
      82           0 :     Write(offset, msg__);
      83             :     // Sentinel = 'offset'
      84           0 :     (msg__)->WriteSentinel(1369947863);
      85           0 :     Write(count, msg__);
      86             :     // Sentinel = 'count'
      87           0 :     (msg__)->WriteSentinel(2126421856);
      88             : 
      89             : 
      90             : 
      91             : 
      92           0 :     if (mozilla::ipc::LoggingEnabledFor("PExternalHelperAppChild")) {
      93           0 :         mozilla::ipc::LogMessageForProtocol("PExternalHelperAppChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      94             :     }
      95           0 :     AUTO_PROFILER_LABEL("PExternalHelperApp::Msg_OnDataAvailable", OTHER);
      96           0 :     PExternalHelperApp::Transition(PExternalHelperApp::Msg_OnDataAvailable__ID, (&(mState)));
      97             : 
      98           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      99           0 :     return sendok__;
     100             : }
     101             : 
     102           0 : auto PExternalHelperAppChild::SendOnStopRequest(const nsresult& code) -> bool
     103             : {
     104           0 :     IPC::Message* msg__ = PExternalHelperApp::Msg_OnStopRequest(Id());
     105             : 
     106           0 :     Write(code, msg__);
     107             :     // Sentinel = 'code'
     108           0 :     (msg__)->WriteSentinel(3318913027);
     109             : 
     110             : 
     111             : 
     112             : 
     113           0 :     if (mozilla::ipc::LoggingEnabledFor("PExternalHelperAppChild")) {
     114           0 :         mozilla::ipc::LogMessageForProtocol("PExternalHelperAppChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     115             :     }
     116           0 :     AUTO_PROFILER_LABEL("PExternalHelperApp::Msg_OnStopRequest", OTHER);
     117           0 :     PExternalHelperApp::Transition(PExternalHelperApp::Msg_OnStopRequest__ID, (&(mState)));
     118             : 
     119           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     120           0 :     return sendok__;
     121             : }
     122             : 
     123           0 : auto PExternalHelperAppChild::SendDivertToParentUsing(
     124             :         PChannelDiverterChild* diverter,
     125             :         PBrowserChild* windowContext) -> bool
     126             : {
     127           0 :     IPC::Message* msg__ = PExternalHelperApp::Msg_DivertToParentUsing(Id());
     128             : 
     129           0 :     Write(diverter, msg__, false);
     130             :     // Sentinel = 'diverter'
     131           0 :     (msg__)->WriteSentinel(1783530825);
     132           0 :     Write(windowContext, msg__, false);
     133             :     // Sentinel = 'windowContext'
     134           0 :     (msg__)->WriteSentinel(3429612728);
     135             : 
     136             : 
     137             : 
     138             : 
     139           0 :     if (mozilla::ipc::LoggingEnabledFor("PExternalHelperAppChild")) {
     140           0 :         mozilla::ipc::LogMessageForProtocol("PExternalHelperAppChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     141             :     }
     142           0 :     AUTO_PROFILER_LABEL("PExternalHelperApp::Msg_DivertToParentUsing", OTHER);
     143           0 :     PExternalHelperApp::Transition(PExternalHelperApp::Msg_DivertToParentUsing__ID, (&(mState)));
     144             : 
     145           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     146           0 :     return sendok__;
     147             : }
     148             : 
     149           0 : auto PExternalHelperAppChild::RemoveManagee(
     150             :         int32_t aProtocolId,
     151             :         ProtocolBase* aListener) -> void
     152             : {
     153           0 :     FatalError("unreached");
     154           0 :     return;
     155             : }
     156             : 
     157           0 : auto PExternalHelperAppChild::OnMessageReceived(const Message& msg__) -> PExternalHelperAppChild::Result
     158             : {
     159           0 :     switch ((msg__).type()) {
     160             :     case PExternalHelperApp::Msg_Cancel__ID:
     161             :         {
     162           0 :             if (mozilla::ipc::LoggingEnabledFor("PExternalHelperAppChild")) {
     163           0 :                 mozilla::ipc::LogMessageForProtocol("PExternalHelperAppChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     164             :             }
     165           0 :             AUTO_PROFILER_LABEL("PExternalHelperApp::Msg_Cancel", OTHER);
     166             : 
     167           0 :             PickleIterator iter__(msg__);
     168             :             nsresult aStatus;
     169             : 
     170           0 :             if ((!(Read((&(aStatus)), (&(msg__)), (&(iter__)))))) {
     171           0 :                 FatalError("Error deserializing 'nsresult'");
     172           0 :                 return MsgValueError;
     173             :             }
     174             :             // Sentinel = 'aStatus'
     175           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 236002576)))) {
     176           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
     177           0 :                 return MsgValueError;
     178             :             }
     179           0 :             (msg__).EndRead(iter__, (msg__).type());
     180           0 :             PExternalHelperApp::Transition(PExternalHelperApp::Msg_Cancel__ID, (&(mState)));
     181           0 :             if ((!(RecvCancel(mozilla::Move(aStatus))))) {
     182           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     183             :                 // Error handled in mozilla::ipc::IPCResult
     184           0 :                 return MsgProcessingError;
     185             :             }
     186             : 
     187           0 :             return MsgProcessed;
     188             :         }
     189             :     case PExternalHelperApp::Msg___delete____ID:
     190             :         {
     191           0 :             if (mozilla::ipc::LoggingEnabledFor("PExternalHelperAppChild")) {
     192           0 :                 mozilla::ipc::LogMessageForProtocol("PExternalHelperAppChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     193             :             }
     194           0 :             AUTO_PROFILER_LABEL("PExternalHelperApp::Msg___delete__", OTHER);
     195             : 
     196           0 :             PickleIterator iter__(msg__);
     197             :             PExternalHelperAppChild* actor;
     198             : 
     199           0 :             if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
     200           0 :                 FatalError("Error deserializing 'PExternalHelperAppChild'");
     201           0 :                 return MsgValueError;
     202             :             }
     203             :             // Sentinel = 'actor'
     204           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
     205           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PExternalHelperAppChild'");
     206           0 :                 return MsgValueError;
     207             :             }
     208           0 :             (msg__).EndRead(iter__, (msg__).type());
     209           0 :             PExternalHelperApp::Transition(PExternalHelperApp::Msg___delete____ID, (&(mState)));
     210           0 :             if ((!(Recv__delete__()))) {
     211           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     212             :                 // Error handled in mozilla::ipc::IPCResult
     213           0 :                 return MsgProcessingError;
     214             :             }
     215             : 
     216             : 
     217           0 :             IProtocol* mgr = (actor)->Manager();
     218           0 :             (actor)->DestroySubtree(Deletion);
     219           0 :             (actor)->DeallocSubtree();
     220           0 :             (mgr)->RemoveManagee(PExternalHelperAppMsgStart, actor);
     221             : 
     222           0 :             return MsgProcessed;
     223             :         }
     224             :     default:
     225             :         {
     226           0 :             return MsgNotKnown;
     227             :         }
     228             :     }
     229             : }
     230             : 
     231           0 : auto PExternalHelperAppChild::OnMessageReceived(
     232             :         const Message& msg__,
     233             :         Message*& reply__) -> PExternalHelperAppChild::Result
     234             : {
     235           0 :     return MsgNotKnown;
     236             : }
     237             : 
     238           0 : auto PExternalHelperAppChild::OnCallReceived(
     239             :         const Message& msg__,
     240             :         Message*& reply__) -> PExternalHelperAppChild::Result
     241             : {
     242           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     243             :     return MsgNotKnown;
     244             : }
     245             : 
     246           0 : auto PExternalHelperAppChild::GetProtocolTypeId() -> int32_t
     247             : {
     248           0 :     return PExternalHelperAppMsgStart;
     249             : }
     250             : 
     251           0 : auto PExternalHelperAppChild::ProtocolName() const -> const char*
     252             : {
     253           0 :     return "PExternalHelperAppChild";
     254             : }
     255             : 
     256           0 : auto PExternalHelperAppChild::DestroySubtree(ActorDestroyReason why) -> void
     257             : {
     258             :     // Unregister from our manager.
     259           0 :     Unregister(Id());
     260             : 
     261             :     // Reject owning pending promises.
     262           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     263             : 
     264             :     // Finally, destroy "us".
     265           0 :     ActorDestroy(why);
     266           0 : }
     267             : 
     268           0 : auto PExternalHelperAppChild::DeallocSubtree() -> void
     269             : {
     270           0 : }
     271             : 
     272           0 : auto PExternalHelperAppChild::Write(
     273             :         const PExternalHelperAppChild* v__,
     274             :         Message* msg__,
     275             :         bool nullable__) -> void
     276             : {
     277             :     int32_t id;
     278           0 :     if ((!(v__))) {
     279           0 :         if ((!(nullable__))) {
     280           0 :             FatalError("NULL actor value passed to non-nullable param");
     281             :         }
     282           0 :         id = 0;
     283             :     }
     284             :     else {
     285           0 :         id = (v__)->Id();
     286           0 :         if ((1) == (id)) {
     287           0 :             FatalError("actor has been |delete|d");
     288             :         }
     289             :     }
     290             : 
     291           0 :     Write(id, msg__);
     292           0 : }
     293             : 
     294           0 : auto PExternalHelperAppChild::Read(
     295             :         PExternalHelperAppChild** v__,
     296             :         const Message* msg__,
     297             :         PickleIterator* iter__,
     298             :         bool nullable__) -> bool
     299             : {
     300           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PExternalHelperApp", PExternalHelperAppMsgStart);
     301           0 :     if ((actor).isNothing()) {
     302           0 :         return false;
     303             :     }
     304             : 
     305           0 :     (*(v__)) = static_cast<PExternalHelperAppChild*>((actor).value());
     306           0 :     return true;
     307             : }
     308             : 
     309           0 : auto PExternalHelperAppChild::Write(
     310             :         const PBrowserChild* v__,
     311             :         Message* msg__,
     312             :         bool nullable__) -> void
     313             : {
     314             :     int32_t id;
     315           0 :     if ((!(v__))) {
     316           0 :         if ((!(nullable__))) {
     317           0 :             FatalError("NULL actor value passed to non-nullable param");
     318             :         }
     319           0 :         id = 0;
     320             :     }
     321             :     else {
     322           0 :         id = (v__)->Id();
     323           0 :         if ((1) == (id)) {
     324           0 :             FatalError("actor has been |delete|d");
     325             :         }
     326             :     }
     327             : 
     328           0 :     Write(id, msg__);
     329           0 : }
     330             : 
     331           0 : auto PExternalHelperAppChild::Read(
     332             :         PBrowserChild** v__,
     333             :         const Message* msg__,
     334             :         PickleIterator* iter__,
     335             :         bool nullable__) -> bool
     336             : {
     337           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBrowser", PBrowserMsgStart);
     338           0 :     if ((actor).isNothing()) {
     339           0 :         return false;
     340             :     }
     341             : 
     342           0 :     (*(v__)) = static_cast<PBrowserChild*>((actor).value());
     343           0 :     return true;
     344             : }
     345             : 
     346           0 : auto PExternalHelperAppChild::Write(
     347             :         const PChannelDiverterChild* v__,
     348             :         Message* msg__,
     349             :         bool nullable__) -> void
     350             : {
     351             :     int32_t id;
     352           0 :     if ((!(v__))) {
     353           0 :         if ((!(nullable__))) {
     354           0 :             FatalError("NULL actor value passed to non-nullable param");
     355             :         }
     356           0 :         id = 0;
     357             :     }
     358             :     else {
     359           0 :         id = (v__)->Id();
     360           0 :         if ((1) == (id)) {
     361           0 :             FatalError("actor has been |delete|d");
     362             :         }
     363             :     }
     364             : 
     365           0 :     Write(id, msg__);
     366           0 : }
     367             : 
     368           0 : auto PExternalHelperAppChild::Read(
     369             :         PChannelDiverterChild** v__,
     370             :         const Message* msg__,
     371             :         PickleIterator* iter__,
     372             :         bool nullable__) -> bool
     373             : {
     374           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PChannelDiverter", PChannelDiverterMsgStart);
     375           0 :     if ((actor).isNothing()) {
     376           0 :         return false;
     377             :     }
     378             : 
     379           0 :     (*(v__)) = static_cast<PChannelDiverterChild*>((actor).value());
     380           0 :     return true;
     381             : }
     382             : 
     383             : 
     384             : 
     385             : } // namespace dom
     386             : } // namespace mozilla

Generated by: LCOV version 1.13