LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PPrintProgressDialogChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 121 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/embedding/PPrintProgressDialogChild.h"
       8             : 
       9             : #include "mozilla/embedding/PPrintingChild.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace embedding {
      16             : 
      17             : 
      18           0 : auto PPrintProgressDialogChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      19             : {
      20           0 : }
      21             : 
      22           0 : MOZ_IMPLICIT PPrintProgressDialogChild::PPrintProgressDialogChild() :
      23             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      24           0 :     mState(PPrintProgressDialog::__Dead)
      25             : {
      26           0 :     MOZ_COUNT_CTOR(PPrintProgressDialogChild);
      27           0 : }
      28             : 
      29           0 : PPrintProgressDialogChild::~PPrintProgressDialogChild()
      30             : {
      31           0 :     MOZ_COUNT_DTOR(PPrintProgressDialogChild);
      32           0 : }
      33             : 
      34           0 : auto PPrintProgressDialogChild::Manager() const -> PPrintingChild*
      35             : {
      36           0 :     return static_cast<PPrintingChild*>(IProtocol::Manager());
      37             : }
      38             : 
      39           0 : auto PPrintProgressDialogChild::SendStateChange(
      40             :         const long& stateFlags,
      41             :         const nsresult& status) -> bool
      42             : {
      43           0 :     IPC::Message* msg__ = PPrintProgressDialog::Msg_StateChange(Id());
      44             : 
      45           0 :     Write(stateFlags, msg__);
      46             :     // Sentinel = 'stateFlags'
      47           0 :     (msg__)->WriteSentinel(2666547646);
      48           0 :     Write(status, msg__);
      49             :     // Sentinel = 'status'
      50           0 :     (msg__)->WriteSentinel(3714608576);
      51             : 
      52             : 
      53             : 
      54             : 
      55           0 :     if (mozilla::ipc::LoggingEnabledFor("PPrintProgressDialogChild")) {
      56           0 :         mozilla::ipc::LogMessageForProtocol("PPrintProgressDialogChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      57             :     }
      58           0 :     AUTO_PROFILER_LABEL("PPrintProgressDialog::Msg_StateChange", OTHER);
      59           0 :     PPrintProgressDialog::Transition(PPrintProgressDialog::Msg_StateChange__ID, (&(mState)));
      60             : 
      61           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      62           0 :     return sendok__;
      63             : }
      64             : 
      65           0 : auto PPrintProgressDialogChild::SendProgressChange(
      66             :         const long& curSelfProgress,
      67             :         const long& maxSelfProgress,
      68             :         const long& curTotalProgress,
      69             :         const long& maxTotalProgress) -> bool
      70             : {
      71           0 :     IPC::Message* msg__ = PPrintProgressDialog::Msg_ProgressChange(Id());
      72             : 
      73           0 :     Write(curSelfProgress, msg__);
      74             :     // Sentinel = 'curSelfProgress'
      75           0 :     (msg__)->WriteSentinel(4225363786);
      76           0 :     Write(maxSelfProgress, msg__);
      77             :     // Sentinel = 'maxSelfProgress'
      78           0 :     (msg__)->WriteSentinel(3605923158);
      79           0 :     Write(curTotalProgress, msg__);
      80             :     // Sentinel = 'curTotalProgress'
      81           0 :     (msg__)->WriteSentinel(3294949245);
      82           0 :     Write(maxTotalProgress, msg__);
      83             :     // Sentinel = 'maxTotalProgress'
      84           0 :     (msg__)->WriteSentinel(2454639121);
      85             : 
      86             : 
      87             : 
      88             : 
      89           0 :     if (mozilla::ipc::LoggingEnabledFor("PPrintProgressDialogChild")) {
      90           0 :         mozilla::ipc::LogMessageForProtocol("PPrintProgressDialogChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      91             :     }
      92           0 :     AUTO_PROFILER_LABEL("PPrintProgressDialog::Msg_ProgressChange", OTHER);
      93           0 :     PPrintProgressDialog::Transition(PPrintProgressDialog::Msg_ProgressChange__ID, (&(mState)));
      94             : 
      95           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      96           0 :     return sendok__;
      97             : }
      98             : 
      99           0 : auto PPrintProgressDialogChild::SendDocTitleChange(const nsString& newTitle) -> bool
     100             : {
     101           0 :     IPC::Message* msg__ = PPrintProgressDialog::Msg_DocTitleChange(Id());
     102             : 
     103           0 :     Write(newTitle, msg__);
     104             :     // Sentinel = 'newTitle'
     105           0 :     (msg__)->WriteSentinel(2867378368);
     106             : 
     107             : 
     108             : 
     109             : 
     110           0 :     if (mozilla::ipc::LoggingEnabledFor("PPrintProgressDialogChild")) {
     111           0 :         mozilla::ipc::LogMessageForProtocol("PPrintProgressDialogChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     112             :     }
     113           0 :     AUTO_PROFILER_LABEL("PPrintProgressDialog::Msg_DocTitleChange", OTHER);
     114           0 :     PPrintProgressDialog::Transition(PPrintProgressDialog::Msg_DocTitleChange__ID, (&(mState)));
     115             : 
     116           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     117           0 :     return sendok__;
     118             : }
     119             : 
     120           0 : auto PPrintProgressDialogChild::SendDocURLChange(const nsString& newURL) -> bool
     121             : {
     122           0 :     IPC::Message* msg__ = PPrintProgressDialog::Msg_DocURLChange(Id());
     123             : 
     124           0 :     Write(newURL, msg__);
     125             :     // Sentinel = 'newURL'
     126           0 :     (msg__)->WriteSentinel(1179970083);
     127             : 
     128             : 
     129             : 
     130             : 
     131           0 :     if (mozilla::ipc::LoggingEnabledFor("PPrintProgressDialogChild")) {
     132           0 :         mozilla::ipc::LogMessageForProtocol("PPrintProgressDialogChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     133             :     }
     134           0 :     AUTO_PROFILER_LABEL("PPrintProgressDialog::Msg_DocURLChange", OTHER);
     135           0 :     PPrintProgressDialog::Transition(PPrintProgressDialog::Msg_DocURLChange__ID, (&(mState)));
     136             : 
     137           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     138           0 :     return sendok__;
     139             : }
     140             : 
     141           0 : auto PPrintProgressDialogChild::Send__delete__(PPrintProgressDialogChild* actor) -> bool
     142             : {
     143           0 :     if ((!(actor))) {
     144           0 :         return false;
     145             :     }
     146             : 
     147           0 :     IPC::Message* msg__ = PPrintProgressDialog::Msg___delete__((actor)->Id());
     148             : 
     149           0 :     (actor)->Write(actor, msg__, false);
     150             :     // Sentinel = 'actor'
     151           0 :     (msg__)->WriteSentinel(875202478);
     152             : 
     153             : 
     154             : 
     155           0 :     if (mozilla::ipc::LoggingEnabledFor("PPrintProgressDialogChild")) {
     156           0 :         mozilla::ipc::LogMessageForProtocol("PPrintProgressDialogChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     157             :     }
     158           0 :     AUTO_PROFILER_LABEL("PPrintProgressDialog::Msg___delete__", OTHER);
     159           0 :     PPrintProgressDialog::Transition(PPrintProgressDialog::Msg___delete____ID, (&((actor)->mState)));
     160             : 
     161           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
     162             : 
     163           0 :     IProtocol* mgr = (actor)->Manager();
     164           0 :     (actor)->DestroySubtree(Deletion);
     165           0 :     (actor)->DeallocSubtree();
     166           0 :     (mgr)->RemoveManagee(PPrintProgressDialogMsgStart, actor);
     167           0 :     return sendok__;
     168             : }
     169             : 
     170           0 : auto PPrintProgressDialogChild::RemoveManagee(
     171             :         int32_t aProtocolId,
     172             :         ProtocolBase* aListener) -> void
     173             : {
     174           0 :     FatalError("unreached");
     175           0 :     return;
     176             : }
     177             : 
     178           0 : auto PPrintProgressDialogChild::OnMessageReceived(const Message& msg__) -> PPrintProgressDialogChild::Result
     179             : {
     180           0 :     switch ((msg__).type()) {
     181             :     case PPrintProgressDialog::Reply___delete____ID:
     182             :         {
     183           0 :             return MsgProcessed;
     184             :         }
     185             :     case PPrintProgressDialog::Msg_DialogOpened__ID:
     186             :         {
     187           0 :             if (mozilla::ipc::LoggingEnabledFor("PPrintProgressDialogChild")) {
     188           0 :                 mozilla::ipc::LogMessageForProtocol("PPrintProgressDialogChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     189             :             }
     190           0 :             AUTO_PROFILER_LABEL("PPrintProgressDialog::Msg_DialogOpened", OTHER);
     191             : 
     192           0 :             PPrintProgressDialog::Transition(PPrintProgressDialog::Msg_DialogOpened__ID, (&(mState)));
     193           0 :             if ((!(RecvDialogOpened()))) {
     194           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     195             :                 // Error handled in mozilla::ipc::IPCResult
     196           0 :                 return MsgProcessingError;
     197             :             }
     198             : 
     199           0 :             return MsgProcessed;
     200             :         }
     201             :     default:
     202             :         {
     203           0 :             return MsgNotKnown;
     204             :         }
     205             :     }
     206             : }
     207             : 
     208           0 : auto PPrintProgressDialogChild::OnMessageReceived(
     209             :         const Message& msg__,
     210             :         Message*& reply__) -> PPrintProgressDialogChild::Result
     211             : {
     212           0 :     return MsgNotKnown;
     213             : }
     214             : 
     215           0 : auto PPrintProgressDialogChild::OnCallReceived(
     216             :         const Message& msg__,
     217             :         Message*& reply__) -> PPrintProgressDialogChild::Result
     218             : {
     219           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     220             :     return MsgNotKnown;
     221             : }
     222             : 
     223           0 : auto PPrintProgressDialogChild::GetProtocolTypeId() -> int32_t
     224             : {
     225           0 :     return PPrintProgressDialogMsgStart;
     226             : }
     227             : 
     228           0 : auto PPrintProgressDialogChild::ProtocolName() const -> const char*
     229             : {
     230           0 :     return "PPrintProgressDialogChild";
     231             : }
     232             : 
     233           0 : auto PPrintProgressDialogChild::DestroySubtree(ActorDestroyReason why) -> void
     234             : {
     235             :     // Unregister from our manager.
     236           0 :     Unregister(Id());
     237             : 
     238             :     // Reject owning pending promises.
     239           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     240             : 
     241             :     // Finally, destroy "us".
     242           0 :     ActorDestroy(why);
     243           0 : }
     244             : 
     245           0 : auto PPrintProgressDialogChild::DeallocSubtree() -> void
     246             : {
     247           0 : }
     248             : 
     249           0 : auto PPrintProgressDialogChild::Write(
     250             :         const PPrintProgressDialogChild* v__,
     251             :         Message* msg__,
     252             :         bool nullable__) -> void
     253             : {
     254             :     int32_t id;
     255           0 :     if ((!(v__))) {
     256           0 :         if ((!(nullable__))) {
     257           0 :             FatalError("NULL actor value passed to non-nullable param");
     258             :         }
     259           0 :         id = 0;
     260             :     }
     261             :     else {
     262           0 :         id = (v__)->Id();
     263           0 :         if ((1) == (id)) {
     264           0 :             FatalError("actor has been |delete|d");
     265             :         }
     266             :     }
     267             : 
     268           0 :     Write(id, msg__);
     269           0 : }
     270             : 
     271           0 : auto PPrintProgressDialogChild::Read(
     272             :         PPrintProgressDialogChild** v__,
     273             :         const Message* msg__,
     274             :         PickleIterator* iter__,
     275             :         bool nullable__) -> bool
     276             : {
     277           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPrintProgressDialog", PPrintProgressDialogMsgStart);
     278           0 :     if ((actor).isNothing()) {
     279           0 :         return false;
     280             :     }
     281             : 
     282           0 :     (*(v__)) = static_cast<PPrintProgressDialogChild*>((actor).value());
     283           0 :     return true;
     284             : }
     285             : 
     286             : 
     287             : 
     288             : } // namespace embedding
     289             : } // namespace mozilla

Generated by: LCOV version 1.13