LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PPrintingParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 4 1057 0.4 %
Date: 2017-07-14 16:53:18 Functions: 1 39 2.6 %
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/PPrintingParent.h"
       8             : 
       9             : #include "mozilla/dom/PContentParent.h"
      10             : #include "mozilla/dom/PBrowserParent.h"
      11             : #include "mozilla/embedding/PPrintProgressDialogParent.h"
      12             : #include "mozilla/embedding/PPrintSettingsDialogParent.h"
      13             : #include "mozilla/layout/PRemotePrintJobParent.h"
      14             : 
      15             : #include "nsIFile.h"
      16             : #include "GeckoProfiler.h"
      17             : 
      18             : namespace mozilla {
      19             : namespace embedding {
      20             : 
      21             : 
      22           0 : auto PPrintingParent::RecvPPrintProgressDialogConstructor(PPrintProgressDialogParent* actor) -> mozilla::ipc::IPCResult
      23             : {
      24           0 :     return IPC_OK();
      25             : }
      26             : 
      27           0 : auto PPrintingParent::RecvPPrintSettingsDialogConstructor(PPrintSettingsDialogParent* actor) -> mozilla::ipc::IPCResult
      28             : {
      29           0 :     return IPC_OK();
      30             : }
      31             : 
      32             : 
      33           1 : MOZ_IMPLICIT PPrintingParent::PPrintingParent() :
      34             :     mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
      35           1 :     mState(PPrinting::__Dead)
      36             : {
      37           1 :     MOZ_COUNT_CTOR(PPrintingParent);
      38           1 : }
      39             : 
      40           0 : PPrintingParent::~PPrintingParent()
      41             : {
      42           0 :     MOZ_COUNT_DTOR(PPrintingParent);
      43           0 : }
      44             : 
      45           0 : auto PPrintingParent::Manager() const -> PContentParent*
      46             : {
      47           0 :     return static_cast<PContentParent*>(IProtocol::Manager());
      48             : }
      49             : 
      50           0 : auto PPrintingParent::ManagedPPrintProgressDialogParent(nsTArray<PPrintProgressDialogParent*>& aArr) const -> void
      51             : {
      52           0 :     (mManagedPPrintProgressDialogParent).ToArray(aArr);
      53           0 : }
      54             : 
      55           0 : auto PPrintingParent::ManagedPPrintProgressDialogParent() const -> const ManagedContainer<PPrintProgressDialogParent>&
      56             : {
      57           0 :     return mManagedPPrintProgressDialogParent;
      58             : }
      59             : 
      60           0 : auto PPrintingParent::ManagedPPrintSettingsDialogParent(nsTArray<PPrintSettingsDialogParent*>& aArr) const -> void
      61             : {
      62           0 :     (mManagedPPrintSettingsDialogParent).ToArray(aArr);
      63           0 : }
      64             : 
      65           0 : auto PPrintingParent::ManagedPPrintSettingsDialogParent() const -> const ManagedContainer<PPrintSettingsDialogParent>&
      66             : {
      67           0 :     return mManagedPPrintSettingsDialogParent;
      68             : }
      69             : 
      70           0 : auto PPrintingParent::ManagedPRemotePrintJobParent(nsTArray<PRemotePrintJobParent*>& aArr) const -> void
      71             : {
      72           0 :     (mManagedPRemotePrintJobParent).ToArray(aArr);
      73           0 : }
      74             : 
      75           0 : auto PPrintingParent::ManagedPRemotePrintJobParent() const -> const ManagedContainer<PRemotePrintJobParent>&
      76             : {
      77           0 :     return mManagedPRemotePrintJobParent;
      78             : }
      79             : 
      80           0 : auto PPrintingParent::SendPRemotePrintJobConstructor() -> PRemotePrintJobParent*
      81             : {
      82           0 :     return SendPRemotePrintJobConstructor(AllocPRemotePrintJobParent());
      83             : }
      84             : 
      85           0 : auto PPrintingParent::SendPRemotePrintJobConstructor(PRemotePrintJobParent* actor) -> PRemotePrintJobParent*
      86             : {
      87           0 :     if ((!(actor))) {
      88           0 :         NS_WARNING("Error constructing actor PRemotePrintJobParent");
      89           0 :         return nullptr;
      90             :     }
      91           0 :     (actor)->SetManager(this);
      92           0 :     Register(actor);
      93           0 :     (actor)->SetIPCChannel(GetIPCChannel());
      94           0 :     (mManagedPRemotePrintJobParent).PutEntry(actor);
      95           0 :     (actor)->mState = mozilla::layout::PRemotePrintJob::__Start;
      96             : 
      97           0 :     IPC::Message* msg__ = PPrinting::Msg_PRemotePrintJobConstructor(Id());
      98             : 
      99           0 :     Write(actor, msg__, false);
     100             :     // Sentinel = 'actor'
     101           0 :     (msg__)->WriteSentinel(875202478);
     102             : 
     103           0 :     (msg__)->set_constructor();
     104             : 
     105             : 
     106           0 :     if (mozilla::ipc::LoggingEnabledFor("PPrintingParent")) {
     107           0 :         mozilla::ipc::LogMessageForProtocol("PPrintingParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     108             :     }
     109           0 :     AUTO_PROFILER_LABEL("PPrinting::Msg_PRemotePrintJobConstructor", OTHER);
     110           0 :     PPrinting::Transition(PPrinting::Msg_PRemotePrintJobConstructor__ID, (&(mState)));
     111             : 
     112           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     113           0 :     if ((!(sendok__))) {
     114           0 :         IProtocol* mgr = (actor)->Manager();
     115           0 :         (actor)->DestroySubtree(FailedConstructor);
     116           0 :         (actor)->DeallocSubtree();
     117           0 :         (mgr)->RemoveManagee(PRemotePrintJobMsgStart, actor);
     118           0 :         return nullptr;
     119             :     }
     120           0 :     return actor;
     121             : }
     122             : 
     123           0 : auto PPrintingParent::Send__delete__(PPrintingParent* actor) -> bool
     124             : {
     125           0 :     if ((!(actor))) {
     126           0 :         return false;
     127             :     }
     128             : 
     129           0 :     IPC::Message* msg__ = PPrinting::Msg___delete__((actor)->Id());
     130             : 
     131           0 :     (actor)->Write(actor, msg__, false);
     132             :     // Sentinel = 'actor'
     133           0 :     (msg__)->WriteSentinel(875202478);
     134             : 
     135             : 
     136             : 
     137           0 :     if (mozilla::ipc::LoggingEnabledFor("PPrintingParent")) {
     138           0 :         mozilla::ipc::LogMessageForProtocol("PPrintingParent", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     139             :     }
     140           0 :     AUTO_PROFILER_LABEL("PPrinting::Msg___delete__", OTHER);
     141           0 :     PPrinting::Transition(PPrinting::Msg___delete____ID, (&((actor)->mState)));
     142             : 
     143           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
     144             : 
     145           0 :     IProtocol* mgr = (actor)->Manager();
     146           0 :     (actor)->DestroySubtree(Deletion);
     147           0 :     (actor)->DeallocSubtree();
     148           0 :     (mgr)->RemoveManagee(PPrintingMsgStart, actor);
     149           0 :     return sendok__;
     150             : }
     151             : 
     152           0 : auto PPrintingParent::RemoveManagee(
     153             :         int32_t aProtocolId,
     154             :         ProtocolBase* aListener) -> void
     155             : {
     156           0 :     switch (aProtocolId) {
     157             :     case PPrintProgressDialogMsgStart:
     158             :         {
     159           0 :             PPrintProgressDialogParent* actor = static_cast<PPrintProgressDialogParent*>(aListener);
     160           0 :             auto& container = mManagedPPrintProgressDialogParent;
     161           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
     162             : 
     163           0 :             (container).RemoveEntry(actor);
     164           0 :             DeallocPPrintProgressDialogParent(actor);
     165           0 :             return;
     166             :         }
     167             :     case PPrintSettingsDialogMsgStart:
     168             :         {
     169           0 :             PPrintSettingsDialogParent* actor = static_cast<PPrintSettingsDialogParent*>(aListener);
     170           0 :             auto& container = mManagedPPrintSettingsDialogParent;
     171           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
     172             : 
     173           0 :             (container).RemoveEntry(actor);
     174           0 :             DeallocPPrintSettingsDialogParent(actor);
     175           0 :             return;
     176             :         }
     177             :     case PRemotePrintJobMsgStart:
     178             :         {
     179           0 :             PRemotePrintJobParent* actor = static_cast<PRemotePrintJobParent*>(aListener);
     180           0 :             auto& container = mManagedPRemotePrintJobParent;
     181           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
     182             : 
     183           0 :             (container).RemoveEntry(actor);
     184           0 :             DeallocPRemotePrintJobParent(actor);
     185           0 :             return;
     186             :         }
     187             :     default:
     188             :         {
     189           0 :             FatalError("unreached");
     190           0 :             return;
     191             :         }
     192             :     }
     193             : }
     194             : 
     195           0 : auto PPrintingParent::OnMessageReceived(const Message& msg__) -> PPrintingParent::Result
     196             : {
     197           0 :     switch ((msg__).type()) {
     198             :     case PPrinting::Msg_ShowProgress__ID:
     199             :         {
     200           0 :             if (mozilla::ipc::LoggingEnabledFor("PPrintingParent")) {
     201           0 :                 mozilla::ipc::LogMessageForProtocol("PPrintingParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     202             :             }
     203           0 :             AUTO_PROFILER_LABEL("PPrinting::Msg_ShowProgress", OTHER);
     204             : 
     205           0 :             PickleIterator iter__(msg__);
     206             :             PBrowserParent* browser;
     207             :             PPrintProgressDialogParent* printProgressDialog;
     208             :             PRemotePrintJobParent* remotePrintJob;
     209             :             bool isForPrinting;
     210             : 
     211           0 :             if ((!(Read((&(browser)), (&(msg__)), (&(iter__)), false)))) {
     212           0 :                 FatalError("Error deserializing 'PBrowserParent'");
     213           0 :                 return MsgValueError;
     214             :             }
     215             :             // Sentinel = 'browser'
     216           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2836343679)))) {
     217           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserParent'");
     218           0 :                 return MsgValueError;
     219             :             }
     220           0 :             if ((!(Read((&(printProgressDialog)), (&(msg__)), (&(iter__)), false)))) {
     221           0 :                 FatalError("Error deserializing 'PPrintProgressDialogParent'");
     222           0 :                 return MsgValueError;
     223             :             }
     224             :             // Sentinel = 'printProgressDialog'
     225           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1704049755)))) {
     226           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PPrintProgressDialogParent'");
     227           0 :                 return MsgValueError;
     228             :             }
     229           0 :             if ((!(Read((&(remotePrintJob)), (&(msg__)), (&(iter__)), true)))) {
     230           0 :                 FatalError("Error deserializing 'PRemotePrintJobParent'");
     231           0 :                 return MsgValueError;
     232             :             }
     233             :             // Sentinel = 'remotePrintJob'
     234           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2408336150)))) {
     235           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PRemotePrintJobParent'");
     236           0 :                 return MsgValueError;
     237             :             }
     238           0 :             if ((!(Read((&(isForPrinting)), (&(msg__)), (&(iter__)))))) {
     239           0 :                 FatalError("Error deserializing 'bool'");
     240           0 :                 return MsgValueError;
     241             :             }
     242             :             // Sentinel = 'isForPrinting'
     243           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2165625195)))) {
     244           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     245           0 :                 return MsgValueError;
     246             :             }
     247           0 :             (msg__).EndRead(iter__, (msg__).type());
     248           0 :             PPrinting::Transition(PPrinting::Msg_ShowProgress__ID, (&(mState)));
     249           0 :             if ((!(RecvShowProgress(mozilla::Move(browser), mozilla::Move(printProgressDialog), mozilla::Move(remotePrintJob), mozilla::Move(isForPrinting))))) {
     250           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     251             :                 // Error handled in mozilla::ipc::IPCResult
     252           0 :                 return MsgProcessingError;
     253             :             }
     254             : 
     255           0 :             return MsgProcessed;
     256             :         }
     257             :     case PPrinting::Msg_ShowPrintDialog__ID:
     258             :         {
     259           0 :             if (mozilla::ipc::LoggingEnabledFor("PPrintingParent")) {
     260           0 :                 mozilla::ipc::LogMessageForProtocol("PPrintingParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     261             :             }
     262           0 :             AUTO_PROFILER_LABEL("PPrinting::Msg_ShowPrintDialog", OTHER);
     263             : 
     264           0 :             PickleIterator iter__(msg__);
     265             :             PPrintSettingsDialogParent* dialog;
     266             :             PBrowserParent* browser;
     267           0 :             PrintData settings;
     268             : 
     269           0 :             if ((!(Read((&(dialog)), (&(msg__)), (&(iter__)), false)))) {
     270           0 :                 FatalError("Error deserializing 'PPrintSettingsDialogParent'");
     271           0 :                 return MsgValueError;
     272             :             }
     273             :             // Sentinel = 'dialog'
     274           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4200953590)))) {
     275           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PPrintSettingsDialogParent'");
     276           0 :                 return MsgValueError;
     277             :             }
     278           0 :             if ((!(Read((&(browser)), (&(msg__)), (&(iter__)), true)))) {
     279           0 :                 FatalError("Error deserializing 'PBrowserParent'");
     280           0 :                 return MsgValueError;
     281             :             }
     282             :             // Sentinel = 'browser'
     283           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2836343679)))) {
     284           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserParent'");
     285           0 :                 return MsgValueError;
     286             :             }
     287           0 :             if ((!(Read((&(settings)), (&(msg__)), (&(iter__)))))) {
     288           0 :                 FatalError("Error deserializing 'PrintData'");
     289           0 :                 return MsgValueError;
     290             :             }
     291             :             // Sentinel = 'settings'
     292           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2402913383)))) {
     293           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PrintData'");
     294           0 :                 return MsgValueError;
     295             :             }
     296           0 :             (msg__).EndRead(iter__, (msg__).type());
     297           0 :             PPrinting::Transition(PPrinting::Msg_ShowPrintDialog__ID, (&(mState)));
     298           0 :             if ((!(RecvShowPrintDialog(mozilla::Move(dialog), mozilla::Move(browser), mozilla::Move(settings))))) {
     299           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     300             :                 // Error handled in mozilla::ipc::IPCResult
     301           0 :                 return MsgProcessingError;
     302             :             }
     303             : 
     304           0 :             return MsgProcessed;
     305             :         }
     306             :     case PPrinting::Msg_PPrintProgressDialogConstructor__ID:
     307             :         {
     308           0 :             if (mozilla::ipc::LoggingEnabledFor("PPrintingParent")) {
     309           0 :                 mozilla::ipc::LogMessageForProtocol("PPrintingParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     310             :             }
     311           0 :             AUTO_PROFILER_LABEL("PPrinting::Msg_PPrintProgressDialogConstructor", OTHER);
     312             : 
     313           0 :             PickleIterator iter__(msg__);
     314             :             ActorHandle handle__;
     315             :             PPrintProgressDialogParent* actor;
     316             : 
     317           0 :             if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
     318           0 :                 FatalError("Error deserializing 'ActorHandle'");
     319           0 :                 return MsgValueError;
     320             :             }
     321             :             // Sentinel = 'actor'
     322           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
     323           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
     324           0 :                 return MsgValueError;
     325             :             }
     326           0 :             (msg__).EndRead(iter__, (msg__).type());
     327           0 :             PPrinting::Transition(PPrinting::Msg_PPrintProgressDialogConstructor__ID, (&(mState)));
     328           0 :             actor = AllocPPrintProgressDialogParent();
     329           0 :             if ((!(actor))) {
     330           0 :                 NS_WARNING("Error constructing actor PPrintProgressDialogParent");
     331           0 :                 return MsgValueError;
     332             :             }
     333           0 :             (actor)->SetManager(this);
     334           0 :             RegisterID(actor, (handle__).mId);
     335           0 :             (actor)->SetIPCChannel(GetIPCChannel());
     336           0 :             (mManagedPPrintProgressDialogParent).PutEntry(actor);
     337           0 :             (actor)->mState = mozilla::embedding::PPrintProgressDialog::__Start;
     338             : 
     339           0 :             if ((!(RecvPPrintProgressDialogConstructor(mozilla::Move(actor))))) {
     340           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     341             :                 // Error handled in mozilla::ipc::IPCResult
     342           0 :                 return MsgProcessingError;
     343             :             }
     344             : 
     345           0 :             return MsgProcessed;
     346             :         }
     347             :     case PPrinting::Msg_PPrintSettingsDialogConstructor__ID:
     348             :         {
     349           0 :             if (mozilla::ipc::LoggingEnabledFor("PPrintingParent")) {
     350           0 :                 mozilla::ipc::LogMessageForProtocol("PPrintingParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     351             :             }
     352           0 :             AUTO_PROFILER_LABEL("PPrinting::Msg_PPrintSettingsDialogConstructor", OTHER);
     353             : 
     354           0 :             PickleIterator iter__(msg__);
     355             :             ActorHandle handle__;
     356             :             PPrintSettingsDialogParent* actor;
     357             : 
     358           0 :             if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
     359           0 :                 FatalError("Error deserializing 'ActorHandle'");
     360           0 :                 return MsgValueError;
     361             :             }
     362             :             // Sentinel = 'actor'
     363           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
     364           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
     365           0 :                 return MsgValueError;
     366             :             }
     367           0 :             (msg__).EndRead(iter__, (msg__).type());
     368           0 :             PPrinting::Transition(PPrinting::Msg_PPrintSettingsDialogConstructor__ID, (&(mState)));
     369           0 :             actor = AllocPPrintSettingsDialogParent();
     370           0 :             if ((!(actor))) {
     371           0 :                 NS_WARNING("Error constructing actor PPrintSettingsDialogParent");
     372           0 :                 return MsgValueError;
     373             :             }
     374           0 :             (actor)->SetManager(this);
     375           0 :             RegisterID(actor, (handle__).mId);
     376           0 :             (actor)->SetIPCChannel(GetIPCChannel());
     377           0 :             (mManagedPPrintSettingsDialogParent).PutEntry(actor);
     378           0 :             (actor)->mState = mozilla::embedding::PPrintSettingsDialog::__Start;
     379             : 
     380           0 :             if ((!(RecvPPrintSettingsDialogConstructor(mozilla::Move(actor))))) {
     381           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     382             :                 // Error handled in mozilla::ipc::IPCResult
     383           0 :                 return MsgProcessingError;
     384             :             }
     385             : 
     386           0 :             return MsgProcessed;
     387             :         }
     388             :     case PPrinting::Reply_PRemotePrintJobConstructor__ID:
     389             :         {
     390           0 :             return MsgProcessed;
     391             :         }
     392             :     case PPrinting::Reply___delete____ID:
     393             :         {
     394           0 :             return MsgProcessed;
     395             :         }
     396             :     default:
     397             :         {
     398           0 :             return MsgNotKnown;
     399             :         }
     400             :     }
     401             : }
     402             : 
     403           0 : auto PPrintingParent::OnMessageReceived(
     404             :         const Message& msg__,
     405             :         Message*& reply__) -> PPrintingParent::Result
     406             : {
     407           0 :     switch ((msg__).type()) {
     408             :     case PPrinting::Msg_SavePrintSettings__ID:
     409             :         {
     410           0 :             if (mozilla::ipc::LoggingEnabledFor("PPrintingParent")) {
     411           0 :                 mozilla::ipc::LogMessageForProtocol("PPrintingParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     412             :             }
     413           0 :             AUTO_PROFILER_LABEL("PPrinting::Msg_SavePrintSettings", OTHER);
     414             : 
     415           0 :             PickleIterator iter__(msg__);
     416           0 :             PrintData settings;
     417             :             bool usePrinterNamePrefix;
     418             :             uint32_t flags;
     419             : 
     420           0 :             if ((!(Read((&(settings)), (&(msg__)), (&(iter__)))))) {
     421           0 :                 FatalError("Error deserializing 'PrintData'");
     422           0 :                 return MsgValueError;
     423             :             }
     424             :             // Sentinel = 'settings'
     425           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2402913383)))) {
     426           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PrintData'");
     427           0 :                 return MsgValueError;
     428             :             }
     429           0 :             if ((!(Read((&(usePrinterNamePrefix)), (&(msg__)), (&(iter__)))))) {
     430           0 :                 FatalError("Error deserializing 'bool'");
     431           0 :                 return MsgValueError;
     432             :             }
     433             :             // Sentinel = 'usePrinterNamePrefix'
     434           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1614756826)))) {
     435           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     436           0 :                 return MsgValueError;
     437             :             }
     438           0 :             if ((!(Read((&(flags)), (&(msg__)), (&(iter__)))))) {
     439           0 :                 FatalError("Error deserializing 'uint32_t'");
     440           0 :                 return MsgValueError;
     441             :             }
     442             :             // Sentinel = 'flags'
     443           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2550519284)))) {
     444           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     445           0 :                 return MsgValueError;
     446             :             }
     447           0 :             (msg__).EndRead(iter__, (msg__).type());
     448           0 :             PPrinting::Transition(PPrinting::Msg_SavePrintSettings__ID, (&(mState)));
     449           0 :             int32_t id__ = Id();
     450             :             nsresult rv;
     451           0 :             if ((!(RecvSavePrintSettings(mozilla::Move(settings), mozilla::Move(usePrinterNamePrefix), mozilla::Move(flags), (&(rv)))))) {
     452           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     453             :                 // Error handled in mozilla::ipc::IPCResult
     454           0 :                 return MsgProcessingError;
     455             :             }
     456             : 
     457           0 :             reply__ = PPrinting::Reply_SavePrintSettings(id__);
     458             : 
     459           0 :             Write(rv, reply__);
     460             :             // Sentinel = 'rv'
     461           0 :             (reply__)->WriteSentinel(702481058);
     462           0 :             (reply__)->set_sync();
     463           0 :             (reply__)->set_reply();
     464             : 
     465           0 :             if (mozilla::ipc::LoggingEnabledFor("PPrintingParent")) {
     466           0 :                 mozilla::ipc::LogMessageForProtocol("PPrintingParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
     467             :             }
     468           0 :             return MsgProcessed;
     469             :         }
     470             :     default:
     471             :         {
     472           0 :             return MsgNotKnown;
     473             :         }
     474             :     }
     475             : }
     476             : 
     477           0 : auto PPrintingParent::OnCallReceived(
     478             :         const Message& msg__,
     479             :         Message*& reply__) -> PPrintingParent::Result
     480             : {
     481           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     482             :     return MsgNotKnown;
     483             : }
     484             : 
     485           0 : auto PPrintingParent::GetProtocolTypeId() -> int32_t
     486             : {
     487           0 :     return PPrintingMsgStart;
     488             : }
     489             : 
     490           0 : auto PPrintingParent::ProtocolName() const -> const char*
     491             : {
     492           0 :     return "PPrintingParent";
     493             : }
     494             : 
     495           0 : auto PPrintingParent::DestroySubtree(ActorDestroyReason why) -> void
     496             : {
     497             :     // Unregister from our manager.
     498           0 :     Unregister(Id());
     499             : 
     500           0 :     ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
     501             : 
     502             :     {
     503             :         // Recursively shutting down PPrintProgressDialog kids
     504           0 :         nsTArray<PPrintProgressDialogParent*> kids;
     505             :         // Accumulate kids into a stable structure to iterate over
     506           0 :         ManagedPPrintProgressDialogParent(kids);
     507           0 :         for (auto& kid : kids) {
     508             :             // Guarding against a child removing a sibling from the list during the iteration.
     509           0 :             if ((mManagedPPrintProgressDialogParent).Contains(kid)) {
     510           0 :                 (kid)->DestroySubtree(subtreewhy);
     511             :             }
     512             :         }
     513             :     }
     514             :     {
     515             :         // Recursively shutting down PPrintSettingsDialog kids
     516           0 :         nsTArray<PPrintSettingsDialogParent*> kids;
     517             :         // Accumulate kids into a stable structure to iterate over
     518           0 :         ManagedPPrintSettingsDialogParent(kids);
     519           0 :         for (auto& kid : kids) {
     520             :             // Guarding against a child removing a sibling from the list during the iteration.
     521           0 :             if ((mManagedPPrintSettingsDialogParent).Contains(kid)) {
     522           0 :                 (kid)->DestroySubtree(subtreewhy);
     523             :             }
     524             :         }
     525             :     }
     526             :     {
     527             :         // Recursively shutting down PRemotePrintJob kids
     528           0 :         nsTArray<PRemotePrintJobParent*> kids;
     529             :         // Accumulate kids into a stable structure to iterate over
     530           0 :         ManagedPRemotePrintJobParent(kids);
     531           0 :         for (auto& kid : kids) {
     532             :             // Guarding against a child removing a sibling from the list during the iteration.
     533           0 :             if ((mManagedPRemotePrintJobParent).Contains(kid)) {
     534           0 :                 (kid)->DestroySubtree(subtreewhy);
     535             :             }
     536             :         }
     537             :     }
     538             : 
     539             :     // Reject owning pending promises.
     540           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     541             : 
     542             :     // Finally, destroy "us".
     543           0 :     ActorDestroy(why);
     544           0 : }
     545             : 
     546           0 : auto PPrintingParent::DeallocSubtree() -> void
     547             : {
     548             :     {
     549             :         // Recursively deleting PPrintProgressDialog kids
     550           0 :         for (auto iter = (mManagedPPrintProgressDialogParent).Iter(); (!((iter).Done())); (iter).Next()) {
     551           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
     552             :         }
     553             : 
     554           0 :         for (auto iter = (mManagedPPrintProgressDialogParent).Iter(); (!((iter).Done())); (iter).Next()) {
     555           0 :             DeallocPPrintProgressDialogParent(((iter).Get())->GetKey());
     556             :         }
     557           0 :         (mManagedPPrintProgressDialogParent).Clear();
     558             :     }
     559             :     {
     560             :         // Recursively deleting PPrintSettingsDialog kids
     561           0 :         for (auto iter = (mManagedPPrintSettingsDialogParent).Iter(); (!((iter).Done())); (iter).Next()) {
     562           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
     563             :         }
     564             : 
     565           0 :         for (auto iter = (mManagedPPrintSettingsDialogParent).Iter(); (!((iter).Done())); (iter).Next()) {
     566           0 :             DeallocPPrintSettingsDialogParent(((iter).Get())->GetKey());
     567             :         }
     568           0 :         (mManagedPPrintSettingsDialogParent).Clear();
     569             :     }
     570             :     {
     571             :         // Recursively deleting PRemotePrintJob kids
     572           0 :         for (auto iter = (mManagedPRemotePrintJobParent).Iter(); (!((iter).Done())); (iter).Next()) {
     573           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
     574             :         }
     575             : 
     576           0 :         for (auto iter = (mManagedPRemotePrintJobParent).Iter(); (!((iter).Done())); (iter).Next()) {
     577           0 :             DeallocPRemotePrintJobParent(((iter).Get())->GetKey());
     578             :         }
     579           0 :         (mManagedPRemotePrintJobParent).Clear();
     580             :     }
     581           0 : }
     582             : 
     583           0 : auto PPrintingParent::Write(
     584             :         const CStringKeyValue& v__,
     585             :         Message* msg__) -> void
     586             : {
     587           0 :     Write((v__).key(), msg__);
     588             :     // Sentinel = 'key'
     589           0 :     (msg__)->WriteSentinel(35142870);
     590           0 :     Write((v__).value(), msg__);
     591             :     // Sentinel = 'value'
     592           0 :     (msg__)->WriteSentinel(3456818542);
     593           0 : }
     594             : 
     595           0 : auto PPrintingParent::Read(
     596             :         CStringKeyValue* v__,
     597             :         const Message* msg__,
     598             :         PickleIterator* iter__) -> bool
     599             : {
     600           0 :     if ((!(Read((&((v__)->key())), msg__, iter__)))) {
     601           0 :         FatalError("Error deserializing 'key' (nsCString) member of 'CStringKeyValue'");
     602           0 :         return false;
     603             :     }
     604             :     // Sentinel = 'key'
     605           0 :     if ((!((msg__)->ReadSentinel(iter__, 35142870)))) {
     606           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'key' (nsCString) member of 'CStringKeyValue'");
     607           0 :         return false;
     608             :     }
     609           0 :     if ((!(Read((&((v__)->value())), msg__, iter__)))) {
     610           0 :         FatalError("Error deserializing 'value' (nsCString) member of 'CStringKeyValue'");
     611           0 :         return false;
     612             :     }
     613             :     // Sentinel = 'value'
     614           0 :     if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
     615           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'CStringKeyValue'");
     616           0 :         return false;
     617             :     }
     618           0 :     return true;
     619             : }
     620             : 
     621           0 : auto PPrintingParent::Write(
     622             :         const PrintData& v__,
     623             :         Message* msg__) -> void
     624             : {
     625           0 :     Write((v__).remotePrintJobParent(), msg__, true);
     626             :     // Sentinel = 'remotePrintJob'
     627           0 :     (msg__)->WriteSentinel(2408336150);
     628             :     // skipping actor field that's meaningless on this side
     629           0 :     Write((v__).startPageRange(), msg__);
     630             :     // Sentinel = 'startPageRange'
     631           0 :     (msg__)->WriteSentinel(1740949386);
     632           0 :     Write((v__).endPageRange(), msg__);
     633             :     // Sentinel = 'endPageRange'
     634           0 :     (msg__)->WriteSentinel(953063629);
     635           0 :     Write((v__).edgeTop(), msg__);
     636             :     // Sentinel = 'edgeTop'
     637           0 :     (msg__)->WriteSentinel(2921361411);
     638           0 :     Write((v__).edgeLeft(), msg__);
     639             :     // Sentinel = 'edgeLeft'
     640           0 :     (msg__)->WriteSentinel(2945930184);
     641           0 :     Write((v__).edgeBottom(), msg__);
     642             :     // Sentinel = 'edgeBottom'
     643           0 :     (msg__)->WriteSentinel(1887667460);
     644           0 :     Write((v__).edgeRight(), msg__);
     645             :     // Sentinel = 'edgeRight'
     646           0 :     (msg__)->WriteSentinel(157215326);
     647           0 :     Write((v__).marginTop(), msg__);
     648             :     // Sentinel = 'marginTop'
     649           0 :     (msg__)->WriteSentinel(2523949818);
     650           0 :     Write((v__).marginLeft(), msg__);
     651             :     // Sentinel = 'marginLeft'
     652           0 :     (msg__)->WriteSentinel(628365747);
     653           0 :     Write((v__).marginBottom(), msg__);
     654             :     // Sentinel = 'marginBottom'
     655           0 :     (msg__)->WriteSentinel(585974827);
     656           0 :     Write((v__).marginRight(), msg__);
     657             :     // Sentinel = 'marginRight'
     658           0 :     (msg__)->WriteSentinel(3106079639);
     659           0 :     Write((v__).unwriteableMarginTop(), msg__);
     660             :     // Sentinel = 'unwriteableMarginTop'
     661           0 :     (msg__)->WriteSentinel(4054023201);
     662           0 :     Write((v__).unwriteableMarginLeft(), msg__);
     663             :     // Sentinel = 'unwriteableMarginLeft'
     664           0 :     (msg__)->WriteSentinel(2112040842);
     665           0 :     Write((v__).unwriteableMarginBottom(), msg__);
     666             :     // Sentinel = 'unwriteableMarginBottom'
     667           0 :     (msg__)->WriteSentinel(2888689354);
     668           0 :     Write((v__).unwriteableMarginRight(), msg__);
     669             :     // Sentinel = 'unwriteableMarginRight'
     670           0 :     (msg__)->WriteSentinel(1561009124);
     671           0 :     Write((v__).scaling(), msg__);
     672             :     // Sentinel = 'scaling'
     673           0 :     (msg__)->WriteSentinel(215329360);
     674           0 :     Write((v__).printBGColors(), msg__);
     675             :     // Sentinel = 'printBGColors'
     676           0 :     (msg__)->WriteSentinel(3124494641);
     677           0 :     Write((v__).printBGImages(), msg__);
     678             :     // Sentinel = 'printBGImages'
     679           0 :     (msg__)->WriteSentinel(2911202491);
     680           0 :     Write((v__).printRange(), msg__);
     681             :     // Sentinel = 'printRange'
     682           0 :     (msg__)->WriteSentinel(1358535918);
     683           0 :     Write((v__).title(), msg__);
     684             :     // Sentinel = 'title'
     685           0 :     (msg__)->WriteSentinel(4272139303);
     686           0 :     Write((v__).docURL(), msg__);
     687             :     // Sentinel = 'docURL'
     688           0 :     (msg__)->WriteSentinel(4181982195);
     689           0 :     Write((v__).headerStrLeft(), msg__);
     690             :     // Sentinel = 'headerStrLeft'
     691           0 :     (msg__)->WriteSentinel(1878864390);
     692           0 :     Write((v__).headerStrCenter(), msg__);
     693             :     // Sentinel = 'headerStrCenter'
     694           0 :     (msg__)->WriteSentinel(126520924);
     695           0 :     Write((v__).headerStrRight(), msg__);
     696             :     // Sentinel = 'headerStrRight'
     697           0 :     (msg__)->WriteSentinel(2894716248);
     698           0 :     Write((v__).footerStrLeft(), msg__);
     699             :     // Sentinel = 'footerStrLeft'
     700           0 :     (msg__)->WriteSentinel(3329009408);
     701           0 :     Write((v__).footerStrCenter(), msg__);
     702             :     // Sentinel = 'footerStrCenter'
     703           0 :     (msg__)->WriteSentinel(898252666);
     704           0 :     Write((v__).footerStrRight(), msg__);
     705             :     // Sentinel = 'footerStrRight'
     706           0 :     (msg__)->WriteSentinel(2223010342);
     707           0 :     Write((v__).howToEnableFrameUI(), msg__);
     708             :     // Sentinel = 'howToEnableFrameUI'
     709           0 :     (msg__)->WriteSentinel(2883217655);
     710           0 :     Write((v__).isCancelled(), msg__);
     711             :     // Sentinel = 'isCancelled'
     712           0 :     (msg__)->WriteSentinel(1702075666);
     713           0 :     Write((v__).printFrameTypeUsage(), msg__);
     714             :     // Sentinel = 'printFrameTypeUsage'
     715           0 :     (msg__)->WriteSentinel(3503383418);
     716           0 :     Write((v__).printFrameType(), msg__);
     717             :     // Sentinel = 'printFrameType'
     718           0 :     (msg__)->WriteSentinel(2385437026);
     719           0 :     Write((v__).printSilent(), msg__);
     720             :     // Sentinel = 'printSilent'
     721           0 :     (msg__)->WriteSentinel(664247649);
     722           0 :     Write((v__).shrinkToFit(), msg__);
     723             :     // Sentinel = 'shrinkToFit'
     724           0 :     (msg__)->WriteSentinel(1889342798);
     725           0 :     Write((v__).showPrintProgress(), msg__);
     726             :     // Sentinel = 'showPrintProgress'
     727           0 :     (msg__)->WriteSentinel(4220456964);
     728           0 :     Write((v__).paperName(), msg__);
     729             :     // Sentinel = 'paperName'
     730           0 :     (msg__)->WriteSentinel(2193092426);
     731           0 :     Write((v__).paperData(), msg__);
     732             :     // Sentinel = 'paperData'
     733           0 :     (msg__)->WriteSentinel(4062004975);
     734           0 :     Write((v__).paperWidth(), msg__);
     735             :     // Sentinel = 'paperWidth'
     736           0 :     (msg__)->WriteSentinel(3003064432);
     737           0 :     Write((v__).paperHeight(), msg__);
     738             :     // Sentinel = 'paperHeight'
     739           0 :     (msg__)->WriteSentinel(2702009104);
     740           0 :     Write((v__).paperSizeUnit(), msg__);
     741             :     // Sentinel = 'paperSizeUnit'
     742           0 :     (msg__)->WriteSentinel(1555914182);
     743           0 :     Write((v__).printReversed(), msg__);
     744             :     // Sentinel = 'printReversed'
     745           0 :     (msg__)->WriteSentinel(2750785978);
     746           0 :     Write((v__).printInColor(), msg__);
     747             :     // Sentinel = 'printInColor'
     748           0 :     (msg__)->WriteSentinel(3912554141);
     749           0 :     Write((v__).orientation(), msg__);
     750             :     // Sentinel = 'orientation'
     751           0 :     (msg__)->WriteSentinel(759639429);
     752           0 :     Write((v__).numCopies(), msg__);
     753             :     // Sentinel = 'numCopies'
     754           0 :     (msg__)->WriteSentinel(207039186);
     755           0 :     Write((v__).printerName(), msg__);
     756             :     // Sentinel = 'printerName'
     757           0 :     (msg__)->WriteSentinel(114568230);
     758           0 :     Write((v__).printToFile(), msg__);
     759             :     // Sentinel = 'printToFile'
     760           0 :     (msg__)->WriteSentinel(1740131543);
     761           0 :     Write((v__).toFileName(), msg__);
     762             :     // Sentinel = 'toFileName'
     763           0 :     (msg__)->WriteSentinel(1204763262);
     764           0 :     Write((v__).outputFormat(), msg__);
     765             :     // Sentinel = 'outputFormat'
     766           0 :     (msg__)->WriteSentinel(1831305826);
     767           0 :     Write((v__).printPageDelay(), msg__);
     768             :     // Sentinel = 'printPageDelay'
     769           0 :     (msg__)->WriteSentinel(3763987991);
     770           0 :     Write((v__).resolution(), msg__);
     771             :     // Sentinel = 'resolution'
     772           0 :     (msg__)->WriteSentinel(4077768700);
     773           0 :     Write((v__).duplex(), msg__);
     774             :     // Sentinel = 'duplex'
     775           0 :     (msg__)->WriteSentinel(411036200);
     776           0 :     Write((v__).isInitializedFromPrinter(), msg__);
     777             :     // Sentinel = 'isInitializedFromPrinter'
     778           0 :     (msg__)->WriteSentinel(934901298);
     779           0 :     Write((v__).isInitializedFromPrefs(), msg__);
     780             :     // Sentinel = 'isInitializedFromPrefs'
     781           0 :     (msg__)->WriteSentinel(1549019882);
     782           0 :     Write((v__).optionFlags(), msg__);
     783             :     // Sentinel = 'optionFlags'
     784           0 :     (msg__)->WriteSentinel(977126139);
     785           0 :     Write((v__).driverName(), msg__);
     786             :     // Sentinel = 'driverName'
     787           0 :     (msg__)->WriteSentinel(4069408885);
     788           0 :     Write((v__).deviceName(), msg__);
     789             :     // Sentinel = 'deviceName'
     790           0 :     (msg__)->WriteSentinel(1005543041);
     791           0 :     Write((v__).printableWidthInInches(), msg__);
     792             :     // Sentinel = 'printableWidthInInches'
     793           0 :     (msg__)->WriteSentinel(3490618936);
     794           0 :     Write((v__).printableHeightInInches(), msg__);
     795             :     // Sentinel = 'printableHeightInInches'
     796           0 :     (msg__)->WriteSentinel(2512821318);
     797           0 :     Write((v__).isFramesetDocument(), msg__);
     798             :     // Sentinel = 'isFramesetDocument'
     799           0 :     (msg__)->WriteSentinel(2749193424);
     800           0 :     Write((v__).isFramesetFrameSelected(), msg__);
     801             :     // Sentinel = 'isFramesetFrameSelected'
     802           0 :     (msg__)->WriteSentinel(3597767852);
     803           0 :     Write((v__).isIFrameSelected(), msg__);
     804             :     // Sentinel = 'isIFrameSelected'
     805           0 :     (msg__)->WriteSentinel(43475451);
     806           0 :     Write((v__).isRangeSelection(), msg__);
     807             :     // Sentinel = 'isRangeSelection'
     808           0 :     (msg__)->WriteSentinel(1332533775);
     809           0 :     Write((v__).devModeData(), msg__);
     810             :     // Sentinel = 'devModeData'
     811           0 :     (msg__)->WriteSentinel(115925043);
     812           0 :     Write((v__).GTKPrintSettings(), msg__);
     813             :     // Sentinel = 'GTKPrintSettings'
     814           0 :     (msg__)->WriteSentinel(3468906358);
     815           0 :     Write((v__).printJobName(), msg__);
     816             :     // Sentinel = 'printJobName'
     817           0 :     (msg__)->WriteSentinel(2875659923);
     818           0 :     Write((v__).printAllPages(), msg__);
     819             :     // Sentinel = 'printAllPages'
     820           0 :     (msg__)->WriteSentinel(1278004999);
     821           0 :     Write((v__).mustCollate(), msg__);
     822             :     // Sentinel = 'mustCollate'
     823           0 :     (msg__)->WriteSentinel(1240412784);
     824           0 :     Write((v__).disposition(), msg__);
     825             :     // Sentinel = 'disposition'
     826           0 :     (msg__)->WriteSentinel(143184598);
     827           0 :     Write((v__).pagesAcross(), msg__);
     828             :     // Sentinel = 'pagesAcross'
     829           0 :     (msg__)->WriteSentinel(2231447816);
     830           0 :     Write((v__).pagesDown(), msg__);
     831             :     // Sentinel = 'pagesDown'
     832           0 :     (msg__)->WriteSentinel(2238219045);
     833           0 :     Write((v__).printTime(), msg__);
     834             :     // Sentinel = 'printTime'
     835           0 :     (msg__)->WriteSentinel(1825405227);
     836           0 :     Write((v__).detailedErrorReporting(), msg__);
     837             :     // Sentinel = 'detailedErrorReporting'
     838           0 :     (msg__)->WriteSentinel(2470597122);
     839           0 :     Write((v__).faxNumber(), msg__);
     840             :     // Sentinel = 'faxNumber'
     841           0 :     (msg__)->WriteSentinel(286348047);
     842           0 :     Write((v__).addHeaderAndFooter(), msg__);
     843             :     // Sentinel = 'addHeaderAndFooter'
     844           0 :     (msg__)->WriteSentinel(936511658);
     845           0 :     Write((v__).fileNameExtensionHidden(), msg__);
     846             :     // Sentinel = 'fileNameExtensionHidden'
     847           0 :     (msg__)->WriteSentinel(3429991713);
     848           0 :     Write((v__).scalingFactor(), msg__);
     849             :     // Sentinel = 'scalingFactor'
     850           0 :     (msg__)->WriteSentinel(759930239);
     851           0 :     Write((v__).widthScale(), msg__);
     852             :     // Sentinel = 'widthScale'
     853           0 :     (msg__)->WriteSentinel(692534408);
     854           0 :     Write((v__).heightScale(), msg__);
     855             :     // Sentinel = 'heightScale'
     856           0 :     (msg__)->WriteSentinel(1007139770);
     857           0 :     Write((v__).adjustedPaperWidth(), msg__);
     858             :     // Sentinel = 'adjustedPaperWidth'
     859           0 :     (msg__)->WriteSentinel(2163992630);
     860           0 :     Write((v__).adjustedPaperHeight(), msg__);
     861             :     // Sentinel = 'adjustedPaperHeight'
     862           0 :     (msg__)->WriteSentinel(3110257834);
     863           0 : }
     864             : 
     865           0 : auto PPrintingParent::Read(
     866             :         PrintData* v__,
     867             :         const Message* msg__,
     868             :         PickleIterator* iter__) -> bool
     869             : {
     870           0 :     if ((!(Read((&((v__)->remotePrintJobParent())), msg__, iter__, true)))) {
     871           0 :         FatalError("Error deserializing 'remotePrintJobParent' (PRemotePrintJob) member of 'PrintData'");
     872           0 :         return false;
     873             :     }
     874             :     // Sentinel = 'remotePrintJob'
     875           0 :     if ((!((msg__)->ReadSentinel(iter__, 2408336150)))) {
     876           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'remotePrintJobParent' (PRemotePrintJob) member of 'PrintData'");
     877           0 :         return false;
     878             :     }
     879             :     // skipping actor field that's meaningless on this side
     880           0 :     if ((!(Read((&((v__)->startPageRange())), msg__, iter__)))) {
     881           0 :         FatalError("Error deserializing 'startPageRange' (int32_t) member of 'PrintData'");
     882           0 :         return false;
     883             :     }
     884             :     // Sentinel = 'startPageRange'
     885           0 :     if ((!((msg__)->ReadSentinel(iter__, 1740949386)))) {
     886           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'startPageRange' (int32_t) member of 'PrintData'");
     887           0 :         return false;
     888             :     }
     889           0 :     if ((!(Read((&((v__)->endPageRange())), msg__, iter__)))) {
     890           0 :         FatalError("Error deserializing 'endPageRange' (int32_t) member of 'PrintData'");
     891           0 :         return false;
     892             :     }
     893             :     // Sentinel = 'endPageRange'
     894           0 :     if ((!((msg__)->ReadSentinel(iter__, 953063629)))) {
     895           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'endPageRange' (int32_t) member of 'PrintData'");
     896           0 :         return false;
     897             :     }
     898           0 :     if ((!(Read((&((v__)->edgeTop())), msg__, iter__)))) {
     899           0 :         FatalError("Error deserializing 'edgeTop' (double) member of 'PrintData'");
     900           0 :         return false;
     901             :     }
     902             :     // Sentinel = 'edgeTop'
     903           0 :     if ((!((msg__)->ReadSentinel(iter__, 2921361411)))) {
     904           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'edgeTop' (double) member of 'PrintData'");
     905           0 :         return false;
     906             :     }
     907           0 :     if ((!(Read((&((v__)->edgeLeft())), msg__, iter__)))) {
     908           0 :         FatalError("Error deserializing 'edgeLeft' (double) member of 'PrintData'");
     909           0 :         return false;
     910             :     }
     911             :     // Sentinel = 'edgeLeft'
     912           0 :     if ((!((msg__)->ReadSentinel(iter__, 2945930184)))) {
     913           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'edgeLeft' (double) member of 'PrintData'");
     914           0 :         return false;
     915             :     }
     916           0 :     if ((!(Read((&((v__)->edgeBottom())), msg__, iter__)))) {
     917           0 :         FatalError("Error deserializing 'edgeBottom' (double) member of 'PrintData'");
     918           0 :         return false;
     919             :     }
     920             :     // Sentinel = 'edgeBottom'
     921           0 :     if ((!((msg__)->ReadSentinel(iter__, 1887667460)))) {
     922           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'edgeBottom' (double) member of 'PrintData'");
     923           0 :         return false;
     924             :     }
     925           0 :     if ((!(Read((&((v__)->edgeRight())), msg__, iter__)))) {
     926           0 :         FatalError("Error deserializing 'edgeRight' (double) member of 'PrintData'");
     927           0 :         return false;
     928             :     }
     929             :     // Sentinel = 'edgeRight'
     930           0 :     if ((!((msg__)->ReadSentinel(iter__, 157215326)))) {
     931           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'edgeRight' (double) member of 'PrintData'");
     932           0 :         return false;
     933             :     }
     934           0 :     if ((!(Read((&((v__)->marginTop())), msg__, iter__)))) {
     935           0 :         FatalError("Error deserializing 'marginTop' (double) member of 'PrintData'");
     936           0 :         return false;
     937             :     }
     938             :     // Sentinel = 'marginTop'
     939           0 :     if ((!((msg__)->ReadSentinel(iter__, 2523949818)))) {
     940           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'marginTop' (double) member of 'PrintData'");
     941           0 :         return false;
     942             :     }
     943           0 :     if ((!(Read((&((v__)->marginLeft())), msg__, iter__)))) {
     944           0 :         FatalError("Error deserializing 'marginLeft' (double) member of 'PrintData'");
     945           0 :         return false;
     946             :     }
     947             :     // Sentinel = 'marginLeft'
     948           0 :     if ((!((msg__)->ReadSentinel(iter__, 628365747)))) {
     949           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'marginLeft' (double) member of 'PrintData'");
     950           0 :         return false;
     951             :     }
     952           0 :     if ((!(Read((&((v__)->marginBottom())), msg__, iter__)))) {
     953           0 :         FatalError("Error deserializing 'marginBottom' (double) member of 'PrintData'");
     954           0 :         return false;
     955             :     }
     956             :     // Sentinel = 'marginBottom'
     957           0 :     if ((!((msg__)->ReadSentinel(iter__, 585974827)))) {
     958           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'marginBottom' (double) member of 'PrintData'");
     959           0 :         return false;
     960             :     }
     961           0 :     if ((!(Read((&((v__)->marginRight())), msg__, iter__)))) {
     962           0 :         FatalError("Error deserializing 'marginRight' (double) member of 'PrintData'");
     963           0 :         return false;
     964             :     }
     965             :     // Sentinel = 'marginRight'
     966           0 :     if ((!((msg__)->ReadSentinel(iter__, 3106079639)))) {
     967           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'marginRight' (double) member of 'PrintData'");
     968           0 :         return false;
     969             :     }
     970           0 :     if ((!(Read((&((v__)->unwriteableMarginTop())), msg__, iter__)))) {
     971           0 :         FatalError("Error deserializing 'unwriteableMarginTop' (double) member of 'PrintData'");
     972           0 :         return false;
     973             :     }
     974             :     // Sentinel = 'unwriteableMarginTop'
     975           0 :     if ((!((msg__)->ReadSentinel(iter__, 4054023201)))) {
     976           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'unwriteableMarginTop' (double) member of 'PrintData'");
     977           0 :         return false;
     978             :     }
     979           0 :     if ((!(Read((&((v__)->unwriteableMarginLeft())), msg__, iter__)))) {
     980           0 :         FatalError("Error deserializing 'unwriteableMarginLeft' (double) member of 'PrintData'");
     981           0 :         return false;
     982             :     }
     983             :     // Sentinel = 'unwriteableMarginLeft'
     984           0 :     if ((!((msg__)->ReadSentinel(iter__, 2112040842)))) {
     985           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'unwriteableMarginLeft' (double) member of 'PrintData'");
     986           0 :         return false;
     987             :     }
     988           0 :     if ((!(Read((&((v__)->unwriteableMarginBottom())), msg__, iter__)))) {
     989           0 :         FatalError("Error deserializing 'unwriteableMarginBottom' (double) member of 'PrintData'");
     990           0 :         return false;
     991             :     }
     992             :     // Sentinel = 'unwriteableMarginBottom'
     993           0 :     if ((!((msg__)->ReadSentinel(iter__, 2888689354)))) {
     994           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'unwriteableMarginBottom' (double) member of 'PrintData'");
     995           0 :         return false;
     996             :     }
     997           0 :     if ((!(Read((&((v__)->unwriteableMarginRight())), msg__, iter__)))) {
     998           0 :         FatalError("Error deserializing 'unwriteableMarginRight' (double) member of 'PrintData'");
     999           0 :         return false;
    1000             :     }
    1001             :     // Sentinel = 'unwriteableMarginRight'
    1002           0 :     if ((!((msg__)->ReadSentinel(iter__, 1561009124)))) {
    1003           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'unwriteableMarginRight' (double) member of 'PrintData'");
    1004           0 :         return false;
    1005             :     }
    1006           0 :     if ((!(Read((&((v__)->scaling())), msg__, iter__)))) {
    1007           0 :         FatalError("Error deserializing 'scaling' (double) member of 'PrintData'");
    1008           0 :         return false;
    1009             :     }
    1010             :     // Sentinel = 'scaling'
    1011           0 :     if ((!((msg__)->ReadSentinel(iter__, 215329360)))) {
    1012           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'scaling' (double) member of 'PrintData'");
    1013           0 :         return false;
    1014             :     }
    1015           0 :     if ((!(Read((&((v__)->printBGColors())), msg__, iter__)))) {
    1016           0 :         FatalError("Error deserializing 'printBGColors' (bool) member of 'PrintData'");
    1017           0 :         return false;
    1018             :     }
    1019             :     // Sentinel = 'printBGColors'
    1020           0 :     if ((!((msg__)->ReadSentinel(iter__, 3124494641)))) {
    1021           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'printBGColors' (bool) member of 'PrintData'");
    1022           0 :         return false;
    1023             :     }
    1024           0 :     if ((!(Read((&((v__)->printBGImages())), msg__, iter__)))) {
    1025           0 :         FatalError("Error deserializing 'printBGImages' (bool) member of 'PrintData'");
    1026           0 :         return false;
    1027             :     }
    1028             :     // Sentinel = 'printBGImages'
    1029           0 :     if ((!((msg__)->ReadSentinel(iter__, 2911202491)))) {
    1030           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'printBGImages' (bool) member of 'PrintData'");
    1031           0 :         return false;
    1032             :     }
    1033           0 :     if ((!(Read((&((v__)->printRange())), msg__, iter__)))) {
    1034           0 :         FatalError("Error deserializing 'printRange' (short) member of 'PrintData'");
    1035           0 :         return false;
    1036             :     }
    1037             :     // Sentinel = 'printRange'
    1038           0 :     if ((!((msg__)->ReadSentinel(iter__, 1358535918)))) {
    1039           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'printRange' (short) member of 'PrintData'");
    1040           0 :         return false;
    1041             :     }
    1042           0 :     if ((!(Read((&((v__)->title())), msg__, iter__)))) {
    1043           0 :         FatalError("Error deserializing 'title' (nsString) member of 'PrintData'");
    1044           0 :         return false;
    1045             :     }
    1046             :     // Sentinel = 'title'
    1047           0 :     if ((!((msg__)->ReadSentinel(iter__, 4272139303)))) {
    1048           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'title' (nsString) member of 'PrintData'");
    1049           0 :         return false;
    1050             :     }
    1051           0 :     if ((!(Read((&((v__)->docURL())), msg__, iter__)))) {
    1052           0 :         FatalError("Error deserializing 'docURL' (nsString) member of 'PrintData'");
    1053           0 :         return false;
    1054             :     }
    1055             :     // Sentinel = 'docURL'
    1056           0 :     if ((!((msg__)->ReadSentinel(iter__, 4181982195)))) {
    1057           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'docURL' (nsString) member of 'PrintData'");
    1058           0 :         return false;
    1059             :     }
    1060           0 :     if ((!(Read((&((v__)->headerStrLeft())), msg__, iter__)))) {
    1061           0 :         FatalError("Error deserializing 'headerStrLeft' (nsString) member of 'PrintData'");
    1062           0 :         return false;
    1063             :     }
    1064             :     // Sentinel = 'headerStrLeft'
    1065           0 :     if ((!((msg__)->ReadSentinel(iter__, 1878864390)))) {
    1066           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'headerStrLeft' (nsString) member of 'PrintData'");
    1067           0 :         return false;
    1068             :     }
    1069           0 :     if ((!(Read((&((v__)->headerStrCenter())), msg__, iter__)))) {
    1070           0 :         FatalError("Error deserializing 'headerStrCenter' (nsString) member of 'PrintData'");
    1071           0 :         return false;
    1072             :     }
    1073             :     // Sentinel = 'headerStrCenter'
    1074           0 :     if ((!((msg__)->ReadSentinel(iter__, 126520924)))) {
    1075           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'headerStrCenter' (nsString) member of 'PrintData'");
    1076           0 :         return false;
    1077             :     }
    1078           0 :     if ((!(Read((&((v__)->headerStrRight())), msg__, iter__)))) {
    1079           0 :         FatalError("Error deserializing 'headerStrRight' (nsString) member of 'PrintData'");
    1080           0 :         return false;
    1081             :     }
    1082             :     // Sentinel = 'headerStrRight'
    1083           0 :     if ((!((msg__)->ReadSentinel(iter__, 2894716248)))) {
    1084           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'headerStrRight' (nsString) member of 'PrintData'");
    1085           0 :         return false;
    1086             :     }
    1087           0 :     if ((!(Read((&((v__)->footerStrLeft())), msg__, iter__)))) {
    1088           0 :         FatalError("Error deserializing 'footerStrLeft' (nsString) member of 'PrintData'");
    1089           0 :         return false;
    1090             :     }
    1091             :     // Sentinel = 'footerStrLeft'
    1092           0 :     if ((!((msg__)->ReadSentinel(iter__, 3329009408)))) {
    1093           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'footerStrLeft' (nsString) member of 'PrintData'");
    1094           0 :         return false;
    1095             :     }
    1096           0 :     if ((!(Read((&((v__)->footerStrCenter())), msg__, iter__)))) {
    1097           0 :         FatalError("Error deserializing 'footerStrCenter' (nsString) member of 'PrintData'");
    1098           0 :         return false;
    1099             :     }
    1100             :     // Sentinel = 'footerStrCenter'
    1101           0 :     if ((!((msg__)->ReadSentinel(iter__, 898252666)))) {
    1102           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'footerStrCenter' (nsString) member of 'PrintData'");
    1103           0 :         return false;
    1104             :     }
    1105           0 :     if ((!(Read((&((v__)->footerStrRight())), msg__, iter__)))) {
    1106           0 :         FatalError("Error deserializing 'footerStrRight' (nsString) member of 'PrintData'");
    1107           0 :         return false;
    1108             :     }
    1109             :     // Sentinel = 'footerStrRight'
    1110           0 :     if ((!((msg__)->ReadSentinel(iter__, 2223010342)))) {
    1111           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'footerStrRight' (nsString) member of 'PrintData'");
    1112           0 :         return false;
    1113             :     }
    1114           0 :     if ((!(Read((&((v__)->howToEnableFrameUI())), msg__, iter__)))) {
    1115           0 :         FatalError("Error deserializing 'howToEnableFrameUI' (short) member of 'PrintData'");
    1116           0 :         return false;
    1117             :     }
    1118             :     // Sentinel = 'howToEnableFrameUI'
    1119           0 :     if ((!((msg__)->ReadSentinel(iter__, 2883217655)))) {
    1120           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'howToEnableFrameUI' (short) member of 'PrintData'");
    1121           0 :         return false;
    1122             :     }
    1123           0 :     if ((!(Read((&((v__)->isCancelled())), msg__, iter__)))) {
    1124           0 :         FatalError("Error deserializing 'isCancelled' (bool) member of 'PrintData'");
    1125           0 :         return false;
    1126             :     }
    1127             :     // Sentinel = 'isCancelled'
    1128           0 :     if ((!((msg__)->ReadSentinel(iter__, 1702075666)))) {
    1129           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isCancelled' (bool) member of 'PrintData'");
    1130           0 :         return false;
    1131             :     }
    1132           0 :     if ((!(Read((&((v__)->printFrameTypeUsage())), msg__, iter__)))) {
    1133           0 :         FatalError("Error deserializing 'printFrameTypeUsage' (short) member of 'PrintData'");
    1134           0 :         return false;
    1135             :     }
    1136             :     // Sentinel = 'printFrameTypeUsage'
    1137           0 :     if ((!((msg__)->ReadSentinel(iter__, 3503383418)))) {
    1138           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'printFrameTypeUsage' (short) member of 'PrintData'");
    1139           0 :         return false;
    1140             :     }
    1141           0 :     if ((!(Read((&((v__)->printFrameType())), msg__, iter__)))) {
    1142           0 :         FatalError("Error deserializing 'printFrameType' (short) member of 'PrintData'");
    1143           0 :         return false;
    1144             :     }
    1145             :     // Sentinel = 'printFrameType'
    1146           0 :     if ((!((msg__)->ReadSentinel(iter__, 2385437026)))) {
    1147           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'printFrameType' (short) member of 'PrintData'");
    1148           0 :         return false;
    1149             :     }
    1150           0 :     if ((!(Read((&((v__)->printSilent())), msg__, iter__)))) {
    1151           0 :         FatalError("Error deserializing 'printSilent' (bool) member of 'PrintData'");
    1152           0 :         return false;
    1153             :     }
    1154             :     // Sentinel = 'printSilent'
    1155           0 :     if ((!((msg__)->ReadSentinel(iter__, 664247649)))) {
    1156           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'printSilent' (bool) member of 'PrintData'");
    1157           0 :         return false;
    1158             :     }
    1159           0 :     if ((!(Read((&((v__)->shrinkToFit())), msg__, iter__)))) {
    1160           0 :         FatalError("Error deserializing 'shrinkToFit' (bool) member of 'PrintData'");
    1161           0 :         return false;
    1162             :     }
    1163             :     // Sentinel = 'shrinkToFit'
    1164           0 :     if ((!((msg__)->ReadSentinel(iter__, 1889342798)))) {
    1165           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'shrinkToFit' (bool) member of 'PrintData'");
    1166           0 :         return false;
    1167             :     }
    1168           0 :     if ((!(Read((&((v__)->showPrintProgress())), msg__, iter__)))) {
    1169           0 :         FatalError("Error deserializing 'showPrintProgress' (bool) member of 'PrintData'");
    1170           0 :         return false;
    1171             :     }
    1172             :     // Sentinel = 'showPrintProgress'
    1173           0 :     if ((!((msg__)->ReadSentinel(iter__, 4220456964)))) {
    1174           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'showPrintProgress' (bool) member of 'PrintData'");
    1175           0 :         return false;
    1176             :     }
    1177           0 :     if ((!(Read((&((v__)->paperName())), msg__, iter__)))) {
    1178           0 :         FatalError("Error deserializing 'paperName' (nsString) member of 'PrintData'");
    1179           0 :         return false;
    1180             :     }
    1181             :     // Sentinel = 'paperName'
    1182           0 :     if ((!((msg__)->ReadSentinel(iter__, 2193092426)))) {
    1183           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'paperName' (nsString) member of 'PrintData'");
    1184           0 :         return false;
    1185             :     }
    1186           0 :     if ((!(Read((&((v__)->paperData())), msg__, iter__)))) {
    1187           0 :         FatalError("Error deserializing 'paperData' (short) member of 'PrintData'");
    1188           0 :         return false;
    1189             :     }
    1190             :     // Sentinel = 'paperData'
    1191           0 :     if ((!((msg__)->ReadSentinel(iter__, 4062004975)))) {
    1192           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'paperData' (short) member of 'PrintData'");
    1193           0 :         return false;
    1194             :     }
    1195           0 :     if ((!(Read((&((v__)->paperWidth())), msg__, iter__)))) {
    1196           0 :         FatalError("Error deserializing 'paperWidth' (double) member of 'PrintData'");
    1197           0 :         return false;
    1198             :     }
    1199             :     // Sentinel = 'paperWidth'
    1200           0 :     if ((!((msg__)->ReadSentinel(iter__, 3003064432)))) {
    1201           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'paperWidth' (double) member of 'PrintData'");
    1202           0 :         return false;
    1203             :     }
    1204           0 :     if ((!(Read((&((v__)->paperHeight())), msg__, iter__)))) {
    1205           0 :         FatalError("Error deserializing 'paperHeight' (double) member of 'PrintData'");
    1206           0 :         return false;
    1207             :     }
    1208             :     // Sentinel = 'paperHeight'
    1209           0 :     if ((!((msg__)->ReadSentinel(iter__, 2702009104)))) {
    1210           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'paperHeight' (double) member of 'PrintData'");
    1211           0 :         return false;
    1212             :     }
    1213           0 :     if ((!(Read((&((v__)->paperSizeUnit())), msg__, iter__)))) {
    1214           0 :         FatalError("Error deserializing 'paperSizeUnit' (short) member of 'PrintData'");
    1215           0 :         return false;
    1216             :     }
    1217             :     // Sentinel = 'paperSizeUnit'
    1218           0 :     if ((!((msg__)->ReadSentinel(iter__, 1555914182)))) {
    1219           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'paperSizeUnit' (short) member of 'PrintData'");
    1220           0 :         return false;
    1221             :     }
    1222           0 :     if ((!(Read((&((v__)->printReversed())), msg__, iter__)))) {
    1223           0 :         FatalError("Error deserializing 'printReversed' (bool) member of 'PrintData'");
    1224           0 :         return false;
    1225             :     }
    1226             :     // Sentinel = 'printReversed'
    1227           0 :     if ((!((msg__)->ReadSentinel(iter__, 2750785978)))) {
    1228           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'printReversed' (bool) member of 'PrintData'");
    1229           0 :         return false;
    1230             :     }
    1231           0 :     if ((!(Read((&((v__)->printInColor())), msg__, iter__)))) {
    1232           0 :         FatalError("Error deserializing 'printInColor' (bool) member of 'PrintData'");
    1233           0 :         return false;
    1234             :     }
    1235             :     // Sentinel = 'printInColor'
    1236           0 :     if ((!((msg__)->ReadSentinel(iter__, 3912554141)))) {
    1237           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'printInColor' (bool) member of 'PrintData'");
    1238           0 :         return false;
    1239             :     }
    1240           0 :     if ((!(Read((&((v__)->orientation())), msg__, iter__)))) {
    1241           0 :         FatalError("Error deserializing 'orientation' (int32_t) member of 'PrintData'");
    1242           0 :         return false;
    1243             :     }
    1244             :     // Sentinel = 'orientation'
    1245           0 :     if ((!((msg__)->ReadSentinel(iter__, 759639429)))) {
    1246           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'orientation' (int32_t) member of 'PrintData'");
    1247           0 :         return false;
    1248             :     }
    1249           0 :     if ((!(Read((&((v__)->numCopies())), msg__, iter__)))) {
    1250           0 :         FatalError("Error deserializing 'numCopies' (int32_t) member of 'PrintData'");
    1251           0 :         return false;
    1252             :     }
    1253             :     // Sentinel = 'numCopies'
    1254           0 :     if ((!((msg__)->ReadSentinel(iter__, 207039186)))) {
    1255           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'numCopies' (int32_t) member of 'PrintData'");
    1256           0 :         return false;
    1257             :     }
    1258           0 :     if ((!(Read((&((v__)->printerName())), msg__, iter__)))) {
    1259           0 :         FatalError("Error deserializing 'printerName' (nsString) member of 'PrintData'");
    1260           0 :         return false;
    1261             :     }
    1262             :     // Sentinel = 'printerName'
    1263           0 :     if ((!((msg__)->ReadSentinel(iter__, 114568230)))) {
    1264           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'printerName' (nsString) member of 'PrintData'");
    1265           0 :         return false;
    1266             :     }
    1267           0 :     if ((!(Read((&((v__)->printToFile())), msg__, iter__)))) {
    1268           0 :         FatalError("Error deserializing 'printToFile' (bool) member of 'PrintData'");
    1269           0 :         return false;
    1270             :     }
    1271             :     // Sentinel = 'printToFile'
    1272           0 :     if ((!((msg__)->ReadSentinel(iter__, 1740131543)))) {
    1273           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'printToFile' (bool) member of 'PrintData'");
    1274           0 :         return false;
    1275             :     }
    1276           0 :     if ((!(Read((&((v__)->toFileName())), msg__, iter__)))) {
    1277           0 :         FatalError("Error deserializing 'toFileName' (nsString) member of 'PrintData'");
    1278           0 :         return false;
    1279             :     }
    1280             :     // Sentinel = 'toFileName'
    1281           0 :     if ((!((msg__)->ReadSentinel(iter__, 1204763262)))) {
    1282           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'toFileName' (nsString) member of 'PrintData'");
    1283           0 :         return false;
    1284             :     }
    1285           0 :     if ((!(Read((&((v__)->outputFormat())), msg__, iter__)))) {
    1286           0 :         FatalError("Error deserializing 'outputFormat' (short) member of 'PrintData'");
    1287           0 :         return false;
    1288             :     }
    1289             :     // Sentinel = 'outputFormat'
    1290           0 :     if ((!((msg__)->ReadSentinel(iter__, 1831305826)))) {
    1291           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'outputFormat' (short) member of 'PrintData'");
    1292           0 :         return false;
    1293             :     }
    1294           0 :     if ((!(Read((&((v__)->printPageDelay())), msg__, iter__)))) {
    1295           0 :         FatalError("Error deserializing 'printPageDelay' (int32_t) member of 'PrintData'");
    1296           0 :         return false;
    1297             :     }
    1298             :     // Sentinel = 'printPageDelay'
    1299           0 :     if ((!((msg__)->ReadSentinel(iter__, 3763987991)))) {
    1300           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'printPageDelay' (int32_t) member of 'PrintData'");
    1301           0 :         return false;
    1302             :     }
    1303           0 :     if ((!(Read((&((v__)->resolution())), msg__, iter__)))) {
    1304           0 :         FatalError("Error deserializing 'resolution' (int32_t) member of 'PrintData'");
    1305           0 :         return false;
    1306             :     }
    1307             :     // Sentinel = 'resolution'
    1308           0 :     if ((!((msg__)->ReadSentinel(iter__, 4077768700)))) {
    1309           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'resolution' (int32_t) member of 'PrintData'");
    1310           0 :         return false;
    1311             :     }
    1312           0 :     if ((!(Read((&((v__)->duplex())), msg__, iter__)))) {
    1313           0 :         FatalError("Error deserializing 'duplex' (int32_t) member of 'PrintData'");
    1314           0 :         return false;
    1315             :     }
    1316             :     // Sentinel = 'duplex'
    1317           0 :     if ((!((msg__)->ReadSentinel(iter__, 411036200)))) {
    1318           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'duplex' (int32_t) member of 'PrintData'");
    1319           0 :         return false;
    1320             :     }
    1321           0 :     if ((!(Read((&((v__)->isInitializedFromPrinter())), msg__, iter__)))) {
    1322           0 :         FatalError("Error deserializing 'isInitializedFromPrinter' (bool) member of 'PrintData'");
    1323           0 :         return false;
    1324             :     }
    1325             :     // Sentinel = 'isInitializedFromPrinter'
    1326           0 :     if ((!((msg__)->ReadSentinel(iter__, 934901298)))) {
    1327           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isInitializedFromPrinter' (bool) member of 'PrintData'");
    1328           0 :         return false;
    1329             :     }
    1330           0 :     if ((!(Read((&((v__)->isInitializedFromPrefs())), msg__, iter__)))) {
    1331           0 :         FatalError("Error deserializing 'isInitializedFromPrefs' (bool) member of 'PrintData'");
    1332           0 :         return false;
    1333             :     }
    1334             :     // Sentinel = 'isInitializedFromPrefs'
    1335           0 :     if ((!((msg__)->ReadSentinel(iter__, 1549019882)))) {
    1336           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isInitializedFromPrefs' (bool) member of 'PrintData'");
    1337           0 :         return false;
    1338             :     }
    1339           0 :     if ((!(Read((&((v__)->optionFlags())), msg__, iter__)))) {
    1340           0 :         FatalError("Error deserializing 'optionFlags' (int32_t) member of 'PrintData'");
    1341           0 :         return false;
    1342             :     }
    1343             :     // Sentinel = 'optionFlags'
    1344           0 :     if ((!((msg__)->ReadSentinel(iter__, 977126139)))) {
    1345           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'optionFlags' (int32_t) member of 'PrintData'");
    1346           0 :         return false;
    1347             :     }
    1348           0 :     if ((!(Read((&((v__)->driverName())), msg__, iter__)))) {
    1349           0 :         FatalError("Error deserializing 'driverName' (nsString) member of 'PrintData'");
    1350           0 :         return false;
    1351             :     }
    1352             :     // Sentinel = 'driverName'
    1353           0 :     if ((!((msg__)->ReadSentinel(iter__, 4069408885)))) {
    1354           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'driverName' (nsString) member of 'PrintData'");
    1355           0 :         return false;
    1356             :     }
    1357           0 :     if ((!(Read((&((v__)->deviceName())), msg__, iter__)))) {
    1358           0 :         FatalError("Error deserializing 'deviceName' (nsString) member of 'PrintData'");
    1359           0 :         return false;
    1360             :     }
    1361             :     // Sentinel = 'deviceName'
    1362           0 :     if ((!((msg__)->ReadSentinel(iter__, 1005543041)))) {
    1363           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'deviceName' (nsString) member of 'PrintData'");
    1364           0 :         return false;
    1365             :     }
    1366           0 :     if ((!(Read((&((v__)->printableWidthInInches())), msg__, iter__)))) {
    1367           0 :         FatalError("Error deserializing 'printableWidthInInches' (double) member of 'PrintData'");
    1368           0 :         return false;
    1369             :     }
    1370             :     // Sentinel = 'printableWidthInInches'
    1371           0 :     if ((!((msg__)->ReadSentinel(iter__, 3490618936)))) {
    1372           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'printableWidthInInches' (double) member of 'PrintData'");
    1373           0 :         return false;
    1374             :     }
    1375           0 :     if ((!(Read((&((v__)->printableHeightInInches())), msg__, iter__)))) {
    1376           0 :         FatalError("Error deserializing 'printableHeightInInches' (double) member of 'PrintData'");
    1377           0 :         return false;
    1378             :     }
    1379             :     // Sentinel = 'printableHeightInInches'
    1380           0 :     if ((!((msg__)->ReadSentinel(iter__, 2512821318)))) {
    1381           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'printableHeightInInches' (double) member of 'PrintData'");
    1382           0 :         return false;
    1383             :     }
    1384           0 :     if ((!(Read((&((v__)->isFramesetDocument())), msg__, iter__)))) {
    1385           0 :         FatalError("Error deserializing 'isFramesetDocument' (bool) member of 'PrintData'");
    1386           0 :         return false;
    1387             :     }
    1388             :     // Sentinel = 'isFramesetDocument'
    1389           0 :     if ((!((msg__)->ReadSentinel(iter__, 2749193424)))) {
    1390           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isFramesetDocument' (bool) member of 'PrintData'");
    1391           0 :         return false;
    1392             :     }
    1393           0 :     if ((!(Read((&((v__)->isFramesetFrameSelected())), msg__, iter__)))) {
    1394           0 :         FatalError("Error deserializing 'isFramesetFrameSelected' (bool) member of 'PrintData'");
    1395           0 :         return false;
    1396             :     }
    1397             :     // Sentinel = 'isFramesetFrameSelected'
    1398           0 :     if ((!((msg__)->ReadSentinel(iter__, 3597767852)))) {
    1399           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isFramesetFrameSelected' (bool) member of 'PrintData'");
    1400           0 :         return false;
    1401             :     }
    1402           0 :     if ((!(Read((&((v__)->isIFrameSelected())), msg__, iter__)))) {
    1403           0 :         FatalError("Error deserializing 'isIFrameSelected' (bool) member of 'PrintData'");
    1404           0 :         return false;
    1405             :     }
    1406             :     // Sentinel = 'isIFrameSelected'
    1407           0 :     if ((!((msg__)->ReadSentinel(iter__, 43475451)))) {
    1408           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isIFrameSelected' (bool) member of 'PrintData'");
    1409           0 :         return false;
    1410             :     }
    1411           0 :     if ((!(Read((&((v__)->isRangeSelection())), msg__, iter__)))) {
    1412           0 :         FatalError("Error deserializing 'isRangeSelection' (bool) member of 'PrintData'");
    1413           0 :         return false;
    1414             :     }
    1415             :     // Sentinel = 'isRangeSelection'
    1416           0 :     if ((!((msg__)->ReadSentinel(iter__, 1332533775)))) {
    1417           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isRangeSelection' (bool) member of 'PrintData'");
    1418           0 :         return false;
    1419             :     }
    1420           0 :     if ((!(Read((&((v__)->devModeData())), msg__, iter__)))) {
    1421           0 :         FatalError("Error deserializing 'devModeData' (uint8_t[]) member of 'PrintData'");
    1422           0 :         return false;
    1423             :     }
    1424             :     // Sentinel = 'devModeData'
    1425           0 :     if ((!((msg__)->ReadSentinel(iter__, 115925043)))) {
    1426           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'devModeData' (uint8_t[]) member of 'PrintData'");
    1427           0 :         return false;
    1428             :     }
    1429           0 :     if ((!(Read((&((v__)->GTKPrintSettings())), msg__, iter__)))) {
    1430           0 :         FatalError("Error deserializing 'GTKPrintSettings' (CStringKeyValue[]) member of 'PrintData'");
    1431           0 :         return false;
    1432             :     }
    1433             :     // Sentinel = 'GTKPrintSettings'
    1434           0 :     if ((!((msg__)->ReadSentinel(iter__, 3468906358)))) {
    1435           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'GTKPrintSettings' (CStringKeyValue[]) member of 'PrintData'");
    1436           0 :         return false;
    1437             :     }
    1438           0 :     if ((!(Read((&((v__)->printJobName())), msg__, iter__)))) {
    1439           0 :         FatalError("Error deserializing 'printJobName' (nsString) member of 'PrintData'");
    1440           0 :         return false;
    1441             :     }
    1442             :     // Sentinel = 'printJobName'
    1443           0 :     if ((!((msg__)->ReadSentinel(iter__, 2875659923)))) {
    1444           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'printJobName' (nsString) member of 'PrintData'");
    1445           0 :         return false;
    1446             :     }
    1447           0 :     if ((!(Read((&((v__)->printAllPages())), msg__, iter__)))) {
    1448           0 :         FatalError("Error deserializing 'printAllPages' (bool) member of 'PrintData'");
    1449           0 :         return false;
    1450             :     }
    1451             :     // Sentinel = 'printAllPages'
    1452           0 :     if ((!((msg__)->ReadSentinel(iter__, 1278004999)))) {
    1453           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'printAllPages' (bool) member of 'PrintData'");
    1454           0 :         return false;
    1455             :     }
    1456           0 :     if ((!(Read((&((v__)->mustCollate())), msg__, iter__)))) {
    1457           0 :         FatalError("Error deserializing 'mustCollate' (bool) member of 'PrintData'");
    1458           0 :         return false;
    1459             :     }
    1460             :     // Sentinel = 'mustCollate'
    1461           0 :     if ((!((msg__)->ReadSentinel(iter__, 1240412784)))) {
    1462           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mustCollate' (bool) member of 'PrintData'");
    1463           0 :         return false;
    1464             :     }
    1465           0 :     if ((!(Read((&((v__)->disposition())), msg__, iter__)))) {
    1466           0 :         FatalError("Error deserializing 'disposition' (nsString) member of 'PrintData'");
    1467           0 :         return false;
    1468             :     }
    1469             :     // Sentinel = 'disposition'
    1470           0 :     if ((!((msg__)->ReadSentinel(iter__, 143184598)))) {
    1471           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'disposition' (nsString) member of 'PrintData'");
    1472           0 :         return false;
    1473             :     }
    1474           0 :     if ((!(Read((&((v__)->pagesAcross())), msg__, iter__)))) {
    1475           0 :         FatalError("Error deserializing 'pagesAcross' (short) member of 'PrintData'");
    1476           0 :         return false;
    1477             :     }
    1478             :     // Sentinel = 'pagesAcross'
    1479           0 :     if ((!((msg__)->ReadSentinel(iter__, 2231447816)))) {
    1480           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'pagesAcross' (short) member of 'PrintData'");
    1481           0 :         return false;
    1482             :     }
    1483           0 :     if ((!(Read((&((v__)->pagesDown())), msg__, iter__)))) {
    1484           0 :         FatalError("Error deserializing 'pagesDown' (short) member of 'PrintData'");
    1485           0 :         return false;
    1486             :     }
    1487             :     // Sentinel = 'pagesDown'
    1488           0 :     if ((!((msg__)->ReadSentinel(iter__, 2238219045)))) {
    1489           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'pagesDown' (short) member of 'PrintData'");
    1490           0 :         return false;
    1491             :     }
    1492           0 :     if ((!(Read((&((v__)->printTime())), msg__, iter__)))) {
    1493           0 :         FatalError("Error deserializing 'printTime' (double) member of 'PrintData'");
    1494           0 :         return false;
    1495             :     }
    1496             :     // Sentinel = 'printTime'
    1497           0 :     if ((!((msg__)->ReadSentinel(iter__, 1825405227)))) {
    1498           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'printTime' (double) member of 'PrintData'");
    1499           0 :         return false;
    1500             :     }
    1501           0 :     if ((!(Read((&((v__)->detailedErrorReporting())), msg__, iter__)))) {
    1502           0 :         FatalError("Error deserializing 'detailedErrorReporting' (bool) member of 'PrintData'");
    1503           0 :         return false;
    1504             :     }
    1505             :     // Sentinel = 'detailedErrorReporting'
    1506           0 :     if ((!((msg__)->ReadSentinel(iter__, 2470597122)))) {
    1507           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'detailedErrorReporting' (bool) member of 'PrintData'");
    1508           0 :         return false;
    1509             :     }
    1510           0 :     if ((!(Read((&((v__)->faxNumber())), msg__, iter__)))) {
    1511           0 :         FatalError("Error deserializing 'faxNumber' (nsString) member of 'PrintData'");
    1512           0 :         return false;
    1513             :     }
    1514             :     // Sentinel = 'faxNumber'
    1515           0 :     if ((!((msg__)->ReadSentinel(iter__, 286348047)))) {
    1516           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'faxNumber' (nsString) member of 'PrintData'");
    1517           0 :         return false;
    1518             :     }
    1519           0 :     if ((!(Read((&((v__)->addHeaderAndFooter())), msg__, iter__)))) {
    1520           0 :         FatalError("Error deserializing 'addHeaderAndFooter' (bool) member of 'PrintData'");
    1521           0 :         return false;
    1522             :     }
    1523             :     // Sentinel = 'addHeaderAndFooter'
    1524           0 :     if ((!((msg__)->ReadSentinel(iter__, 936511658)))) {
    1525           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'addHeaderAndFooter' (bool) member of 'PrintData'");
    1526           0 :         return false;
    1527             :     }
    1528           0 :     if ((!(Read((&((v__)->fileNameExtensionHidden())), msg__, iter__)))) {
    1529           0 :         FatalError("Error deserializing 'fileNameExtensionHidden' (bool) member of 'PrintData'");
    1530           0 :         return false;
    1531             :     }
    1532             :     // Sentinel = 'fileNameExtensionHidden'
    1533           0 :     if ((!((msg__)->ReadSentinel(iter__, 3429991713)))) {
    1534           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fileNameExtensionHidden' (bool) member of 'PrintData'");
    1535           0 :         return false;
    1536             :     }
    1537           0 :     if ((!(Read((&((v__)->scalingFactor())), msg__, iter__)))) {
    1538           0 :         FatalError("Error deserializing 'scalingFactor' (float) member of 'PrintData'");
    1539           0 :         return false;
    1540             :     }
    1541             :     // Sentinel = 'scalingFactor'
    1542           0 :     if ((!((msg__)->ReadSentinel(iter__, 759930239)))) {
    1543           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'scalingFactor' (float) member of 'PrintData'");
    1544           0 :         return false;
    1545             :     }
    1546           0 :     if ((!(Read((&((v__)->widthScale())), msg__, iter__)))) {
    1547           0 :         FatalError("Error deserializing 'widthScale' (float) member of 'PrintData'");
    1548           0 :         return false;
    1549             :     }
    1550             :     // Sentinel = 'widthScale'
    1551           0 :     if ((!((msg__)->ReadSentinel(iter__, 692534408)))) {
    1552           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'widthScale' (float) member of 'PrintData'");
    1553           0 :         return false;
    1554             :     }
    1555           0 :     if ((!(Read((&((v__)->heightScale())), msg__, iter__)))) {
    1556           0 :         FatalError("Error deserializing 'heightScale' (float) member of 'PrintData'");
    1557           0 :         return false;
    1558             :     }
    1559             :     // Sentinel = 'heightScale'
    1560           0 :     if ((!((msg__)->ReadSentinel(iter__, 1007139770)))) {
    1561           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'heightScale' (float) member of 'PrintData'");
    1562           0 :         return false;
    1563             :     }
    1564           0 :     if ((!(Read((&((v__)->adjustedPaperWidth())), msg__, iter__)))) {
    1565           0 :         FatalError("Error deserializing 'adjustedPaperWidth' (double) member of 'PrintData'");
    1566           0 :         return false;
    1567             :     }
    1568             :     // Sentinel = 'adjustedPaperWidth'
    1569           0 :     if ((!((msg__)->ReadSentinel(iter__, 2163992630)))) {
    1570           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'adjustedPaperWidth' (double) member of 'PrintData'");
    1571           0 :         return false;
    1572             :     }
    1573           0 :     if ((!(Read((&((v__)->adjustedPaperHeight())), msg__, iter__)))) {
    1574           0 :         FatalError("Error deserializing 'adjustedPaperHeight' (double) member of 'PrintData'");
    1575           0 :         return false;
    1576             :     }
    1577             :     // Sentinel = 'adjustedPaperHeight'
    1578           0 :     if ((!((msg__)->ReadSentinel(iter__, 3110257834)))) {
    1579           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'adjustedPaperHeight' (double) member of 'PrintData'");
    1580           0 :         return false;
    1581             :     }
    1582           0 :     return true;
    1583             : }
    1584             : 
    1585           0 : auto PPrintingParent::Write(
    1586             :         const PBrowserParent* v__,
    1587             :         Message* msg__,
    1588             :         bool nullable__) -> void
    1589             : {
    1590             :     int32_t id;
    1591           0 :     if ((!(v__))) {
    1592           0 :         if ((!(nullable__))) {
    1593           0 :             FatalError("NULL actor value passed to non-nullable param");
    1594             :         }
    1595           0 :         id = 0;
    1596             :     }
    1597             :     else {
    1598           0 :         id = (v__)->Id();
    1599           0 :         if ((1) == (id)) {
    1600           0 :             FatalError("actor has been |delete|d");
    1601             :         }
    1602             :     }
    1603             : 
    1604           0 :     Write(id, msg__);
    1605           0 : }
    1606             : 
    1607           0 : auto PPrintingParent::Read(
    1608             :         PBrowserParent** v__,
    1609             :         const Message* msg__,
    1610             :         PickleIterator* iter__,
    1611             :         bool nullable__) -> bool
    1612             : {
    1613           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBrowser", PBrowserMsgStart);
    1614           0 :     if ((actor).isNothing()) {
    1615           0 :         return false;
    1616             :     }
    1617             : 
    1618           0 :     (*(v__)) = static_cast<PBrowserParent*>((actor).value());
    1619           0 :     return true;
    1620             : }
    1621             : 
    1622           0 : auto PPrintingParent::Write(
    1623             :         const PPrintingParent* v__,
    1624             :         Message* msg__,
    1625             :         bool nullable__) -> void
    1626             : {
    1627             :     int32_t id;
    1628           0 :     if ((!(v__))) {
    1629           0 :         if ((!(nullable__))) {
    1630           0 :             FatalError("NULL actor value passed to non-nullable param");
    1631             :         }
    1632           0 :         id = 0;
    1633             :     }
    1634             :     else {
    1635           0 :         id = (v__)->Id();
    1636           0 :         if ((1) == (id)) {
    1637           0 :             FatalError("actor has been |delete|d");
    1638             :         }
    1639             :     }
    1640             : 
    1641           0 :     Write(id, msg__);
    1642           0 : }
    1643             : 
    1644           0 : auto PPrintingParent::Read(
    1645             :         PPrintingParent** v__,
    1646             :         const Message* msg__,
    1647             :         PickleIterator* iter__,
    1648             :         bool nullable__) -> bool
    1649             : {
    1650           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPrinting", PPrintingMsgStart);
    1651           0 :     if ((actor).isNothing()) {
    1652           0 :         return false;
    1653             :     }
    1654             : 
    1655           0 :     (*(v__)) = static_cast<PPrintingParent*>((actor).value());
    1656           0 :     return true;
    1657             : }
    1658             : 
    1659           0 : auto PPrintingParent::Write(
    1660             :         const PPrintProgressDialogParent* v__,
    1661             :         Message* msg__,
    1662             :         bool nullable__) -> void
    1663             : {
    1664             :     int32_t id;
    1665           0 :     if ((!(v__))) {
    1666           0 :         if ((!(nullable__))) {
    1667           0 :             FatalError("NULL actor value passed to non-nullable param");
    1668             :         }
    1669           0 :         id = 0;
    1670             :     }
    1671             :     else {
    1672           0 :         id = (v__)->Id();
    1673           0 :         if ((1) == (id)) {
    1674           0 :             FatalError("actor has been |delete|d");
    1675             :         }
    1676             :     }
    1677             : 
    1678           0 :     Write(id, msg__);
    1679           0 : }
    1680             : 
    1681           0 : auto PPrintingParent::Read(
    1682             :         PPrintProgressDialogParent** v__,
    1683             :         const Message* msg__,
    1684             :         PickleIterator* iter__,
    1685             :         bool nullable__) -> bool
    1686             : {
    1687           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPrintProgressDialog", PPrintProgressDialogMsgStart);
    1688           0 :     if ((actor).isNothing()) {
    1689           0 :         return false;
    1690             :     }
    1691             : 
    1692           0 :     (*(v__)) = static_cast<PPrintProgressDialogParent*>((actor).value());
    1693           0 :     return true;
    1694             : }
    1695             : 
    1696           0 : auto PPrintingParent::Write(
    1697             :         const nsTArray<CStringKeyValue>& v__,
    1698             :         Message* msg__) -> void
    1699             : {
    1700           0 :     uint32_t length = (v__).Length();
    1701           0 :     Write(length, msg__);
    1702             :     // Sentinel = ('length', 'CStringKeyValue[]')
    1703           0 :     (msg__)->WriteSentinel(1519554322);
    1704             : 
    1705           0 :     for (auto& elem : v__) {
    1706           0 :         Write(elem, msg__);
    1707             :         // Sentinel = 'CStringKeyValue[]'
    1708           0 :         (msg__)->WriteSentinel(166419805);
    1709             :     }
    1710           0 : }
    1711             : 
    1712           0 : auto PPrintingParent::Read(
    1713             :         nsTArray<CStringKeyValue>* v__,
    1714             :         const Message* msg__,
    1715             :         PickleIterator* iter__) -> bool
    1716             : {
    1717           0 :     nsTArray<CStringKeyValue> fa;
    1718             :     uint32_t length;
    1719           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    1720           0 :         mozilla::ipc::ArrayLengthReadError("CStringKeyValue[]");
    1721           0 :         return false;
    1722             :     }
    1723             :     // Sentinel = ('length', 'CStringKeyValue[]')
    1724           0 :     if ((!((msg__)->ReadSentinel(iter__, 1519554322)))) {
    1725           0 :         mozilla::ipc::SentinelReadError("CStringKeyValue[]");
    1726           0 :         return false;
    1727             :     }
    1728             : 
    1729           0 :     CStringKeyValue* elems = (fa).AppendElements(length);
    1730           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    1731           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    1732           0 :             FatalError("Error deserializing 'CStringKeyValue[i]'");
    1733           0 :             return false;
    1734             :         }
    1735             :         // Sentinel = 'CStringKeyValue[]'
    1736           0 :         if ((!((msg__)->ReadSentinel(iter__, 166419805)))) {
    1737           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'CStringKeyValue[i]'");
    1738           0 :             return false;
    1739             :         }
    1740             :     }
    1741           0 :     (v__)->SwapElements(fa);
    1742           0 :     return true;
    1743             : }
    1744             : 
    1745           0 : auto PPrintingParent::Write(
    1746             :         const PPrintSettingsDialogParent* v__,
    1747             :         Message* msg__,
    1748             :         bool nullable__) -> void
    1749             : {
    1750             :     int32_t id;
    1751           0 :     if ((!(v__))) {
    1752           0 :         if ((!(nullable__))) {
    1753           0 :             FatalError("NULL actor value passed to non-nullable param");
    1754             :         }
    1755           0 :         id = 0;
    1756             :     }
    1757             :     else {
    1758           0 :         id = (v__)->Id();
    1759           0 :         if ((1) == (id)) {
    1760           0 :             FatalError("actor has been |delete|d");
    1761             :         }
    1762             :     }
    1763             : 
    1764           0 :     Write(id, msg__);
    1765           0 : }
    1766             : 
    1767           0 : auto PPrintingParent::Read(
    1768             :         PPrintSettingsDialogParent** v__,
    1769             :         const Message* msg__,
    1770             :         PickleIterator* iter__,
    1771             :         bool nullable__) -> bool
    1772             : {
    1773           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPrintSettingsDialog", PPrintSettingsDialogMsgStart);
    1774           0 :     if ((actor).isNothing()) {
    1775           0 :         return false;
    1776             :     }
    1777             : 
    1778           0 :     (*(v__)) = static_cast<PPrintSettingsDialogParent*>((actor).value());
    1779           0 :     return true;
    1780             : }
    1781             : 
    1782           0 : auto PPrintingParent::Write(
    1783             :         const PRemotePrintJobParent* v__,
    1784             :         Message* msg__,
    1785             :         bool nullable__) -> void
    1786             : {
    1787             :     int32_t id;
    1788           0 :     if ((!(v__))) {
    1789           0 :         if ((!(nullable__))) {
    1790           0 :             FatalError("NULL actor value passed to non-nullable param");
    1791             :         }
    1792           0 :         id = 0;
    1793             :     }
    1794             :     else {
    1795           0 :         id = (v__)->Id();
    1796           0 :         if ((1) == (id)) {
    1797           0 :             FatalError("actor has been |delete|d");
    1798             :         }
    1799             :     }
    1800             : 
    1801           0 :     Write(id, msg__);
    1802           0 : }
    1803             : 
    1804           0 : auto PPrintingParent::Read(
    1805             :         PRemotePrintJobParent** v__,
    1806             :         const Message* msg__,
    1807             :         PickleIterator* iter__,
    1808             :         bool nullable__) -> bool
    1809             : {
    1810           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PRemotePrintJob", PRemotePrintJobMsgStart);
    1811           0 :     if ((actor).isNothing()) {
    1812           0 :         return false;
    1813             :     }
    1814             : 
    1815           0 :     (*(v__)) = static_cast<PRemotePrintJobParent*>((actor).value());
    1816           0 :     return true;
    1817             : }
    1818             : 
    1819             : 
    1820             : 
    1821             : } // namespace embedding
    1822             : } // namespace mozilla

Generated by: LCOV version 1.13