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

Generated by: LCOV version 1.13