LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PRemotePrintJobParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 240 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 18 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/layout/PRemotePrintJobParent.h"
       8             : 
       9             : #include "mozilla/embedding/PPrintingParent.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace layout {
      16             : 
      17             : 
      18             : 
      19           0 : MOZ_IMPLICIT PRemotePrintJobParent::PRemotePrintJobParent() :
      20             :     mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
      21           0 :     mState(PRemotePrintJob::__Dead)
      22             : {
      23           0 :     MOZ_COUNT_CTOR(PRemotePrintJobParent);
      24           0 : }
      25             : 
      26           0 : PRemotePrintJobParent::~PRemotePrintJobParent()
      27             : {
      28           0 :     MOZ_COUNT_DTOR(PRemotePrintJobParent);
      29           0 : }
      30             : 
      31           0 : auto PRemotePrintJobParent::Manager() const -> PPrintingParent*
      32             : {
      33           0 :     return static_cast<PPrintingParent*>(IProtocol::Manager());
      34             : }
      35             : 
      36           0 : auto PRemotePrintJobParent::SendAbortPrint(const nsresult& aRv) -> bool
      37             : {
      38           0 :     IPC::Message* msg__ = PRemotePrintJob::Msg_AbortPrint(Id());
      39             : 
      40           0 :     Write(aRv, msg__);
      41             :     // Sentinel = 'aRv'
      42           0 :     (msg__)->WriteSentinel(2742041894);
      43             : 
      44             : 
      45             : 
      46             : 
      47           0 :     if (mozilla::ipc::LoggingEnabledFor("PRemotePrintJobParent")) {
      48           0 :         mozilla::ipc::LogMessageForProtocol("PRemotePrintJobParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      49             :     }
      50           0 :     AUTO_PROFILER_LABEL("PRemotePrintJob::Msg_AbortPrint", OTHER);
      51           0 :     PRemotePrintJob::Transition(PRemotePrintJob::Msg_AbortPrint__ID, (&(mState)));
      52             : 
      53           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      54           0 :     return sendok__;
      55             : }
      56             : 
      57           0 : auto PRemotePrintJobParent::SendPrintInitializationResult(const nsresult& aRv) -> bool
      58             : {
      59           0 :     IPC::Message* msg__ = PRemotePrintJob::Msg_PrintInitializationResult(Id());
      60             : 
      61           0 :     Write(aRv, msg__);
      62             :     // Sentinel = 'aRv'
      63           0 :     (msg__)->WriteSentinel(2742041894);
      64             : 
      65             : 
      66             : 
      67             : 
      68           0 :     if (mozilla::ipc::LoggingEnabledFor("PRemotePrintJobParent")) {
      69           0 :         mozilla::ipc::LogMessageForProtocol("PRemotePrintJobParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      70             :     }
      71           0 :     AUTO_PROFILER_LABEL("PRemotePrintJob::Msg_PrintInitializationResult", OTHER);
      72           0 :     PRemotePrintJob::Transition(PRemotePrintJob::Msg_PrintInitializationResult__ID, (&(mState)));
      73             : 
      74           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      75           0 :     return sendok__;
      76             : }
      77             : 
      78           0 : auto PRemotePrintJobParent::SendPageProcessed() -> bool
      79             : {
      80           0 :     IPC::Message* msg__ = PRemotePrintJob::Msg_PageProcessed(Id());
      81             : 
      82             : 
      83             : 
      84             : 
      85             : 
      86           0 :     if (mozilla::ipc::LoggingEnabledFor("PRemotePrintJobParent")) {
      87           0 :         mozilla::ipc::LogMessageForProtocol("PRemotePrintJobParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      88             :     }
      89           0 :     AUTO_PROFILER_LABEL("PRemotePrintJob::Msg_PageProcessed", OTHER);
      90           0 :     PRemotePrintJob::Transition(PRemotePrintJob::Msg_PageProcessed__ID, (&(mState)));
      91             : 
      92           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      93           0 :     return sendok__;
      94             : }
      95             : 
      96           0 : auto PRemotePrintJobParent::Send__delete__(PRemotePrintJobParent* actor) -> bool
      97             : {
      98           0 :     if ((!(actor))) {
      99           0 :         return false;
     100             :     }
     101             : 
     102           0 :     IPC::Message* msg__ = PRemotePrintJob::Msg___delete__((actor)->Id());
     103             : 
     104           0 :     (actor)->Write(actor, msg__, false);
     105             :     // Sentinel = 'actor'
     106           0 :     (msg__)->WriteSentinel(875202478);
     107             : 
     108             : 
     109             : 
     110           0 :     if (mozilla::ipc::LoggingEnabledFor("PRemotePrintJobParent")) {
     111           0 :         mozilla::ipc::LogMessageForProtocol("PRemotePrintJobParent", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     112             :     }
     113           0 :     AUTO_PROFILER_LABEL("PRemotePrintJob::Msg___delete__", OTHER);
     114           0 :     PRemotePrintJob::Transition(PRemotePrintJob::Msg___delete____ID, (&((actor)->mState)));
     115             : 
     116           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
     117             : 
     118           0 :     IProtocol* mgr = (actor)->Manager();
     119           0 :     (actor)->DestroySubtree(Deletion);
     120           0 :     (actor)->DeallocSubtree();
     121           0 :     (mgr)->RemoveManagee(PRemotePrintJobMsgStart, actor);
     122           0 :     return sendok__;
     123             : }
     124             : 
     125           0 : auto PRemotePrintJobParent::RemoveManagee(
     126             :         int32_t aProtocolId,
     127             :         ProtocolBase* aListener) -> void
     128             : {
     129           0 :     FatalError("unreached");
     130           0 :     return;
     131             : }
     132             : 
     133           0 : auto PRemotePrintJobParent::OnMessageReceived(const Message& msg__) -> PRemotePrintJobParent::Result
     134             : {
     135           0 :     switch ((msg__).type()) {
     136             :     case PRemotePrintJob::Msg_AbortPrint__ID:
     137             :         {
     138           0 :             if (mozilla::ipc::LoggingEnabledFor("PRemotePrintJobParent")) {
     139           0 :                 mozilla::ipc::LogMessageForProtocol("PRemotePrintJobParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     140             :             }
     141           0 :             AUTO_PROFILER_LABEL("PRemotePrintJob::Msg_AbortPrint", OTHER);
     142             : 
     143           0 :             PickleIterator iter__(msg__);
     144             :             nsresult aRv;
     145             : 
     146           0 :             if ((!(Read((&(aRv)), (&(msg__)), (&(iter__)))))) {
     147           0 :                 FatalError("Error deserializing 'nsresult'");
     148           0 :                 return MsgValueError;
     149             :             }
     150             :             // Sentinel = 'aRv'
     151           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2742041894)))) {
     152           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
     153           0 :                 return MsgValueError;
     154             :             }
     155           0 :             (msg__).EndRead(iter__, (msg__).type());
     156           0 :             PRemotePrintJob::Transition(PRemotePrintJob::Msg_AbortPrint__ID, (&(mState)));
     157           0 :             if ((!(RecvAbortPrint(mozilla::Move(aRv))))) {
     158           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     159             :                 // Error handled in mozilla::ipc::IPCResult
     160           0 :                 return MsgProcessingError;
     161             :             }
     162             : 
     163           0 :             return MsgProcessed;
     164             :         }
     165             :     case PRemotePrintJob::Msg_InitializePrint__ID:
     166             :         {
     167           0 :             if (mozilla::ipc::LoggingEnabledFor("PRemotePrintJobParent")) {
     168           0 :                 mozilla::ipc::LogMessageForProtocol("PRemotePrintJobParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     169             :             }
     170           0 :             AUTO_PROFILER_LABEL("PRemotePrintJob::Msg_InitializePrint", OTHER);
     171             : 
     172           0 :             PickleIterator iter__(msg__);
     173           0 :             nsString aDocumentTitle;
     174           0 :             nsString aPrintToFile;
     175             :             int32_t aStartPage;
     176             :             int32_t aEndPage;
     177             : 
     178           0 :             if ((!(Read((&(aDocumentTitle)), (&(msg__)), (&(iter__)))))) {
     179           0 :                 FatalError("Error deserializing 'nsString'");
     180           0 :                 return MsgValueError;
     181             :             }
     182             :             // Sentinel = 'aDocumentTitle'
     183           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1351873518)))) {
     184           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
     185           0 :                 return MsgValueError;
     186             :             }
     187           0 :             if ((!(Read((&(aPrintToFile)), (&(msg__)), (&(iter__)))))) {
     188           0 :                 FatalError("Error deserializing 'nsString'");
     189           0 :                 return MsgValueError;
     190             :             }
     191             :             // Sentinel = 'aPrintToFile'
     192           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 977976703)))) {
     193           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
     194           0 :                 return MsgValueError;
     195             :             }
     196           0 :             if ((!(Read((&(aStartPage)), (&(msg__)), (&(iter__)))))) {
     197           0 :                 FatalError("Error deserializing 'int32_t'");
     198           0 :                 return MsgValueError;
     199             :             }
     200             :             // Sentinel = 'aStartPage'
     201           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1865995324)))) {
     202           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
     203           0 :                 return MsgValueError;
     204             :             }
     205           0 :             if ((!(Read((&(aEndPage)), (&(msg__)), (&(iter__)))))) {
     206           0 :                 FatalError("Error deserializing 'int32_t'");
     207           0 :                 return MsgValueError;
     208             :             }
     209             :             // Sentinel = 'aEndPage'
     210           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2700499489)))) {
     211           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
     212           0 :                 return MsgValueError;
     213             :             }
     214           0 :             (msg__).EndRead(iter__, (msg__).type());
     215           0 :             PRemotePrintJob::Transition(PRemotePrintJob::Msg_InitializePrint__ID, (&(mState)));
     216           0 :             if ((!(RecvInitializePrint(mozilla::Move(aDocumentTitle), mozilla::Move(aPrintToFile), mozilla::Move(aStartPage), mozilla::Move(aEndPage))))) {
     217           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     218             :                 // Error handled in mozilla::ipc::IPCResult
     219           0 :                 return MsgProcessingError;
     220             :             }
     221             : 
     222           0 :             return MsgProcessed;
     223             :         }
     224             :     case PRemotePrintJob::Msg_ProcessPage__ID:
     225             :         {
     226           0 :             if (mozilla::ipc::LoggingEnabledFor("PRemotePrintJobParent")) {
     227           0 :                 mozilla::ipc::LogMessageForProtocol("PRemotePrintJobParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     228             :             }
     229           0 :             AUTO_PROFILER_LABEL("PRemotePrintJob::Msg_ProcessPage", OTHER);
     230             : 
     231           0 :             PickleIterator iter__(msg__);
     232           0 :             nsCString aPageFileName;
     233             : 
     234           0 :             if ((!(Read((&(aPageFileName)), (&(msg__)), (&(iter__)))))) {
     235           0 :                 FatalError("Error deserializing 'nsCString'");
     236           0 :                 return MsgValueError;
     237             :             }
     238             :             // Sentinel = 'aPageFileName'
     239           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2438363810)))) {
     240           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     241           0 :                 return MsgValueError;
     242             :             }
     243           0 :             (msg__).EndRead(iter__, (msg__).type());
     244           0 :             PRemotePrintJob::Transition(PRemotePrintJob::Msg_ProcessPage__ID, (&(mState)));
     245           0 :             if ((!(RecvProcessPage(mozilla::Move(aPageFileName))))) {
     246           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     247             :                 // Error handled in mozilla::ipc::IPCResult
     248           0 :                 return MsgProcessingError;
     249             :             }
     250             : 
     251           0 :             return MsgProcessed;
     252             :         }
     253             :     case PRemotePrintJob::Msg_FinalizePrint__ID:
     254             :         {
     255           0 :             if (mozilla::ipc::LoggingEnabledFor("PRemotePrintJobParent")) {
     256           0 :                 mozilla::ipc::LogMessageForProtocol("PRemotePrintJobParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     257             :             }
     258           0 :             AUTO_PROFILER_LABEL("PRemotePrintJob::Msg_FinalizePrint", OTHER);
     259             : 
     260           0 :             PRemotePrintJob::Transition(PRemotePrintJob::Msg_FinalizePrint__ID, (&(mState)));
     261           0 :             if ((!(RecvFinalizePrint()))) {
     262           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     263             :                 // Error handled in mozilla::ipc::IPCResult
     264           0 :                 return MsgProcessingError;
     265             :             }
     266             : 
     267           0 :             return MsgProcessed;
     268             :         }
     269             :     case PRemotePrintJob::Msg_StateChange__ID:
     270             :         {
     271           0 :             if (mozilla::ipc::LoggingEnabledFor("PRemotePrintJobParent")) {
     272           0 :                 mozilla::ipc::LogMessageForProtocol("PRemotePrintJobParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     273             :             }
     274           0 :             AUTO_PROFILER_LABEL("PRemotePrintJob::Msg_StateChange", OTHER);
     275             : 
     276           0 :             PickleIterator iter__(msg__);
     277             :             long aStateFlags;
     278             :             nsresult aStatus;
     279             : 
     280           0 :             if ((!(Read((&(aStateFlags)), (&(msg__)), (&(iter__)))))) {
     281           0 :                 FatalError("Error deserializing 'long'");
     282           0 :                 return MsgValueError;
     283             :             }
     284             :             // Sentinel = 'aStateFlags'
     285           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4037748614)))) {
     286           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'long'");
     287           0 :                 return MsgValueError;
     288             :             }
     289           0 :             if ((!(Read((&(aStatus)), (&(msg__)), (&(iter__)))))) {
     290           0 :                 FatalError("Error deserializing 'nsresult'");
     291           0 :                 return MsgValueError;
     292             :             }
     293             :             // Sentinel = 'aStatus'
     294           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 236002576)))) {
     295           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
     296           0 :                 return MsgValueError;
     297             :             }
     298           0 :             (msg__).EndRead(iter__, (msg__).type());
     299           0 :             PRemotePrintJob::Transition(PRemotePrintJob::Msg_StateChange__ID, (&(mState)));
     300           0 :             if ((!(RecvStateChange(mozilla::Move(aStateFlags), mozilla::Move(aStatus))))) {
     301           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     302             :                 // Error handled in mozilla::ipc::IPCResult
     303           0 :                 return MsgProcessingError;
     304             :             }
     305             : 
     306           0 :             return MsgProcessed;
     307             :         }
     308             :     case PRemotePrintJob::Msg_ProgressChange__ID:
     309             :         {
     310           0 :             if (mozilla::ipc::LoggingEnabledFor("PRemotePrintJobParent")) {
     311           0 :                 mozilla::ipc::LogMessageForProtocol("PRemotePrintJobParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     312             :             }
     313           0 :             AUTO_PROFILER_LABEL("PRemotePrintJob::Msg_ProgressChange", OTHER);
     314             : 
     315           0 :             PickleIterator iter__(msg__);
     316             :             long aCurSelfProgress;
     317             :             long aMaxSelfProgress;
     318             :             long aCurTotalProgress;
     319             :             long aMaxTotalProgress;
     320             : 
     321           0 :             if ((!(Read((&(aCurSelfProgress)), (&(msg__)), (&(iter__)))))) {
     322           0 :                 FatalError("Error deserializing 'long'");
     323           0 :                 return MsgValueError;
     324             :             }
     325             :             // Sentinel = 'aCurSelfProgress'
     326           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3889538918)))) {
     327           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'long'");
     328           0 :                 return MsgValueError;
     329             :             }
     330           0 :             if ((!(Read((&(aMaxSelfProgress)), (&(msg__)), (&(iter__)))))) {
     331           0 :                 FatalError("Error deserializing 'long'");
     332           0 :                 return MsgValueError;
     333             :             }
     334             :             // Sentinel = 'aMaxSelfProgress'
     335           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2579322770)))) {
     336           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'long'");
     337           0 :                 return MsgValueError;
     338             :             }
     339           0 :             if ((!(Read((&(aCurTotalProgress)), (&(msg__)), (&(iter__)))))) {
     340           0 :                 FatalError("Error deserializing 'long'");
     341           0 :                 return MsgValueError;
     342             :             }
     343             :             // Sentinel = 'aCurTotalProgress'
     344           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3893274129)))) {
     345           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'long'");
     346           0 :                 return MsgValueError;
     347             :             }
     348           0 :             if ((!(Read((&(aMaxTotalProgress)), (&(msg__)), (&(iter__)))))) {
     349           0 :                 FatalError("Error deserializing 'long'");
     350           0 :                 return MsgValueError;
     351             :             }
     352             :             // Sentinel = 'aMaxTotalProgress'
     353           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1178224797)))) {
     354           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'long'");
     355           0 :                 return MsgValueError;
     356             :             }
     357           0 :             (msg__).EndRead(iter__, (msg__).type());
     358           0 :             PRemotePrintJob::Transition(PRemotePrintJob::Msg_ProgressChange__ID, (&(mState)));
     359           0 :             if ((!(RecvProgressChange(mozilla::Move(aCurSelfProgress), mozilla::Move(aMaxSelfProgress), mozilla::Move(aCurTotalProgress), mozilla::Move(aMaxTotalProgress))))) {
     360           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     361             :                 // Error handled in mozilla::ipc::IPCResult
     362           0 :                 return MsgProcessingError;
     363             :             }
     364             : 
     365           0 :             return MsgProcessed;
     366             :         }
     367             :     case PRemotePrintJob::Msg_StatusChange__ID:
     368             :         {
     369           0 :             if (mozilla::ipc::LoggingEnabledFor("PRemotePrintJobParent")) {
     370           0 :                 mozilla::ipc::LogMessageForProtocol("PRemotePrintJobParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     371             :             }
     372           0 :             AUTO_PROFILER_LABEL("PRemotePrintJob::Msg_StatusChange", OTHER);
     373             : 
     374           0 :             PickleIterator iter__(msg__);
     375             :             nsresult aStatus;
     376             : 
     377           0 :             if ((!(Read((&(aStatus)), (&(msg__)), (&(iter__)))))) {
     378           0 :                 FatalError("Error deserializing 'nsresult'");
     379           0 :                 return MsgValueError;
     380             :             }
     381             :             // Sentinel = 'aStatus'
     382           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 236002576)))) {
     383           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
     384           0 :                 return MsgValueError;
     385             :             }
     386           0 :             (msg__).EndRead(iter__, (msg__).type());
     387           0 :             PRemotePrintJob::Transition(PRemotePrintJob::Msg_StatusChange__ID, (&(mState)));
     388           0 :             if ((!(RecvStatusChange(mozilla::Move(aStatus))))) {
     389           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     390             :                 // Error handled in mozilla::ipc::IPCResult
     391           0 :                 return MsgProcessingError;
     392             :             }
     393             : 
     394           0 :             return MsgProcessed;
     395             :         }
     396             :     case PRemotePrintJob::Reply___delete____ID:
     397             :         {
     398           0 :             return MsgProcessed;
     399             :         }
     400             :     default:
     401             :         {
     402           0 :             return MsgNotKnown;
     403             :         }
     404             :     }
     405             : }
     406             : 
     407           0 : auto PRemotePrintJobParent::OnMessageReceived(
     408             :         const Message& msg__,
     409             :         Message*& reply__) -> PRemotePrintJobParent::Result
     410             : {
     411           0 :     return MsgNotKnown;
     412             : }
     413             : 
     414           0 : auto PRemotePrintJobParent::OnCallReceived(
     415             :         const Message& msg__,
     416             :         Message*& reply__) -> PRemotePrintJobParent::Result
     417             : {
     418           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     419             :     return MsgNotKnown;
     420             : }
     421             : 
     422           0 : auto PRemotePrintJobParent::GetProtocolTypeId() -> int32_t
     423             : {
     424           0 :     return PRemotePrintJobMsgStart;
     425             : }
     426             : 
     427           0 : auto PRemotePrintJobParent::ProtocolName() const -> const char*
     428             : {
     429           0 :     return "PRemotePrintJobParent";
     430             : }
     431             : 
     432           0 : auto PRemotePrintJobParent::DestroySubtree(ActorDestroyReason why) -> void
     433             : {
     434             :     // Unregister from our manager.
     435           0 :     Unregister(Id());
     436             : 
     437             :     // Reject owning pending promises.
     438           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     439             : 
     440             :     // Finally, destroy "us".
     441           0 :     ActorDestroy(why);
     442           0 : }
     443             : 
     444           0 : auto PRemotePrintJobParent::DeallocSubtree() -> void
     445             : {
     446           0 : }
     447             : 
     448           0 : auto PRemotePrintJobParent::Write(
     449             :         const PRemotePrintJobParent* v__,
     450             :         Message* msg__,
     451             :         bool nullable__) -> void
     452             : {
     453             :     int32_t id;
     454           0 :     if ((!(v__))) {
     455           0 :         if ((!(nullable__))) {
     456           0 :             FatalError("NULL actor value passed to non-nullable param");
     457             :         }
     458           0 :         id = 0;
     459             :     }
     460             :     else {
     461           0 :         id = (v__)->Id();
     462           0 :         if ((1) == (id)) {
     463           0 :             FatalError("actor has been |delete|d");
     464             :         }
     465             :     }
     466             : 
     467           0 :     Write(id, msg__);
     468           0 : }
     469             : 
     470           0 : auto PRemotePrintJobParent::Read(
     471             :         PRemotePrintJobParent** v__,
     472             :         const Message* msg__,
     473             :         PickleIterator* iter__,
     474             :         bool nullable__) -> bool
     475             : {
     476           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PRemotePrintJob", PRemotePrintJobMsgStart);
     477           0 :     if ((actor).isNothing()) {
     478           0 :         return false;
     479             :     }
     480             : 
     481           0 :     (*(v__)) = static_cast<PRemotePrintJobParent*>((actor).value());
     482           0 :     return true;
     483             : }
     484             : 
     485             : 
     486             : 
     487             : } // namespace layout
     488             : } // namespace mozilla

Generated by: LCOV version 1.13