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

Generated by: LCOV version 1.13