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

Generated by: LCOV version 1.13