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

Generated by: LCOV version 1.13