LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PWebBrowserPersistDocumentParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1140 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 84 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //
       2             : // Automatically generated by ipdlc.
       3             : // Edit at your own risk
       4             : //
       5             : 
       6             : 
       7             : #include "mozilla/PWebBrowserPersistDocumentParent.h"
       8             : 
       9             : #include "mozilla/dom/PContentParent.h"
      10             : #include "mozilla/PWebBrowserPersistResourcesParent.h"
      11             : #include "mozilla/PWebBrowserPersistSerializeParent.h"
      12             : #include "mozilla/ipc/PFileDescriptorSetParent.h"
      13             : #include "mozilla/ipc/PChildToParentStreamParent.h"
      14             : #include "mozilla/ipc/PParentToChildStreamParent.h"
      15             : 
      16             : #include "nsIFile.h"
      17             : #include "GeckoProfiler.h"
      18             : 
      19             : namespace mozilla {
      20             : 
      21             : 
      22             : 
      23           0 : MOZ_IMPLICIT PWebBrowserPersistDocumentParent::PWebBrowserPersistDocumentParent() :
      24             :     mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
      25           0 :     mState(PWebBrowserPersistDocument::__Dead)
      26             : {
      27           0 :     MOZ_COUNT_CTOR(PWebBrowserPersistDocumentParent);
      28           0 : }
      29             : 
      30           0 : PWebBrowserPersistDocumentParent::~PWebBrowserPersistDocumentParent()
      31             : {
      32           0 :     MOZ_COUNT_DTOR(PWebBrowserPersistDocumentParent);
      33           0 : }
      34             : 
      35           0 : auto PWebBrowserPersistDocumentParent::Manager() const -> PContentParent*
      36             : {
      37           0 :     return static_cast<PContentParent*>(IProtocol::Manager());
      38             : }
      39             : 
      40           0 : auto PWebBrowserPersistDocumentParent::ManagedPWebBrowserPersistResourcesParent(nsTArray<PWebBrowserPersistResourcesParent*>& aArr) const -> void
      41             : {
      42           0 :     (mManagedPWebBrowserPersistResourcesParent).ToArray(aArr);
      43           0 : }
      44             : 
      45           0 : auto PWebBrowserPersistDocumentParent::ManagedPWebBrowserPersistResourcesParent() const -> const ManagedContainer<PWebBrowserPersistResourcesParent>&
      46             : {
      47           0 :     return mManagedPWebBrowserPersistResourcesParent;
      48             : }
      49             : 
      50           0 : auto PWebBrowserPersistDocumentParent::ManagedPWebBrowserPersistSerializeParent(nsTArray<PWebBrowserPersistSerializeParent*>& aArr) const -> void
      51             : {
      52           0 :     (mManagedPWebBrowserPersistSerializeParent).ToArray(aArr);
      53           0 : }
      54             : 
      55           0 : auto PWebBrowserPersistDocumentParent::ManagedPWebBrowserPersistSerializeParent() const -> const ManagedContainer<PWebBrowserPersistSerializeParent>&
      56             : {
      57           0 :     return mManagedPWebBrowserPersistSerializeParent;
      58             : }
      59             : 
      60           0 : auto PWebBrowserPersistDocumentParent::SendSetPersistFlags(const uint32_t& aNewFlags) -> bool
      61             : {
      62           0 :     IPC::Message* msg__ = PWebBrowserPersistDocument::Msg_SetPersistFlags(Id());
      63             : 
      64           0 :     Write(aNewFlags, msg__);
      65             :     // Sentinel = 'aNewFlags'
      66           0 :     (msg__)->WriteSentinel(4032949079);
      67             : 
      68             : 
      69             : 
      70             : 
      71           0 :     if (mozilla::ipc::LoggingEnabledFor("PWebBrowserPersistDocumentParent")) {
      72           0 :         mozilla::ipc::LogMessageForProtocol("PWebBrowserPersistDocumentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      73             :     }
      74           0 :     AUTO_PROFILER_LABEL("PWebBrowserPersistDocument::Msg_SetPersistFlags", OTHER);
      75           0 :     PWebBrowserPersistDocument::Transition(PWebBrowserPersistDocument::Msg_SetPersistFlags__ID, (&(mState)));
      76             : 
      77           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      78           0 :     return sendok__;
      79             : }
      80             : 
      81           0 : auto PWebBrowserPersistDocumentParent::SendPWebBrowserPersistResourcesConstructor() -> PWebBrowserPersistResourcesParent*
      82             : {
      83           0 :     return SendPWebBrowserPersistResourcesConstructor(AllocPWebBrowserPersistResourcesParent());
      84             : }
      85             : 
      86           0 : auto PWebBrowserPersistDocumentParent::SendPWebBrowserPersistResourcesConstructor(PWebBrowserPersistResourcesParent* actor) -> PWebBrowserPersistResourcesParent*
      87             : {
      88           0 :     if ((!(actor))) {
      89           0 :         NS_WARNING("Error constructing actor PWebBrowserPersistResourcesParent");
      90           0 :         return nullptr;
      91             :     }
      92           0 :     (actor)->SetManager(this);
      93           0 :     Register(actor);
      94           0 :     (actor)->SetIPCChannel(GetIPCChannel());
      95           0 :     (mManagedPWebBrowserPersistResourcesParent).PutEntry(actor);
      96           0 :     (actor)->mState = mozilla::PWebBrowserPersistResources::__Start;
      97             : 
      98           0 :     IPC::Message* msg__ = PWebBrowserPersistDocument::Msg_PWebBrowserPersistResourcesConstructor(Id());
      99             : 
     100           0 :     Write(actor, msg__, false);
     101             :     // Sentinel = 'actor'
     102           0 :     (msg__)->WriteSentinel(875202478);
     103             : 
     104           0 :     (msg__)->set_constructor();
     105             : 
     106             : 
     107           0 :     if (mozilla::ipc::LoggingEnabledFor("PWebBrowserPersistDocumentParent")) {
     108           0 :         mozilla::ipc::LogMessageForProtocol("PWebBrowserPersistDocumentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     109             :     }
     110           0 :     AUTO_PROFILER_LABEL("PWebBrowserPersistDocument::Msg_PWebBrowserPersistResourcesConstructor", OTHER);
     111           0 :     PWebBrowserPersistDocument::Transition(PWebBrowserPersistDocument::Msg_PWebBrowserPersistResourcesConstructor__ID, (&(mState)));
     112             : 
     113           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     114           0 :     if ((!(sendok__))) {
     115           0 :         IProtocol* mgr = (actor)->Manager();
     116           0 :         (actor)->DestroySubtree(FailedConstructor);
     117           0 :         (actor)->DeallocSubtree();
     118           0 :         (mgr)->RemoveManagee(PWebBrowserPersistResourcesMsgStart, actor);
     119           0 :         return nullptr;
     120             :     }
     121           0 :     return actor;
     122             : }
     123             : 
     124           0 : auto PWebBrowserPersistDocumentParent::SendPWebBrowserPersistSerializeConstructor(
     125             :         const WebBrowserPersistURIMap& aMap,
     126             :         const nsCString& aRequestedContentType,
     127             :         const uint32_t& aEncoderFlags,
     128             :         const uint32_t& aWrapColumn) -> PWebBrowserPersistSerializeParent*
     129             : {
     130           0 :     return SendPWebBrowserPersistSerializeConstructor(AllocPWebBrowserPersistSerializeParent(aMap, aRequestedContentType, aEncoderFlags, aWrapColumn), aMap, aRequestedContentType, aEncoderFlags, aWrapColumn);
     131             : }
     132             : 
     133           0 : auto PWebBrowserPersistDocumentParent::SendPWebBrowserPersistSerializeConstructor(
     134             :         PWebBrowserPersistSerializeParent* actor,
     135             :         const WebBrowserPersistURIMap& aMap,
     136             :         const nsCString& aRequestedContentType,
     137             :         const uint32_t& aEncoderFlags,
     138             :         const uint32_t& aWrapColumn) -> PWebBrowserPersistSerializeParent*
     139             : {
     140           0 :     if ((!(actor))) {
     141           0 :         NS_WARNING("Error constructing actor PWebBrowserPersistSerializeParent");
     142           0 :         return nullptr;
     143             :     }
     144           0 :     (actor)->SetManager(this);
     145           0 :     Register(actor);
     146           0 :     (actor)->SetIPCChannel(GetIPCChannel());
     147           0 :     (mManagedPWebBrowserPersistSerializeParent).PutEntry(actor);
     148           0 :     (actor)->mState = mozilla::PWebBrowserPersistSerialize::__Start;
     149             : 
     150           0 :     IPC::Message* msg__ = PWebBrowserPersistDocument::Msg_PWebBrowserPersistSerializeConstructor(Id());
     151             : 
     152           0 :     Write(actor, msg__, false);
     153             :     // Sentinel = 'actor'
     154           0 :     (msg__)->WriteSentinel(875202478);
     155           0 :     Write(aMap, msg__);
     156             :     // Sentinel = 'aMap'
     157           0 :     (msg__)->WriteSentinel(3570578933);
     158           0 :     Write(aRequestedContentType, msg__);
     159             :     // Sentinel = 'aRequestedContentType'
     160           0 :     (msg__)->WriteSentinel(193281947);
     161           0 :     Write(aEncoderFlags, msg__);
     162             :     // Sentinel = 'aEncoderFlags'
     163           0 :     (msg__)->WriteSentinel(1146908877);
     164           0 :     Write(aWrapColumn, msg__);
     165             :     // Sentinel = 'aWrapColumn'
     166           0 :     (msg__)->WriteSentinel(3600022264);
     167             : 
     168           0 :     (msg__)->set_constructor();
     169             : 
     170             : 
     171           0 :     if (mozilla::ipc::LoggingEnabledFor("PWebBrowserPersistDocumentParent")) {
     172           0 :         mozilla::ipc::LogMessageForProtocol("PWebBrowserPersistDocumentParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     173             :     }
     174           0 :     AUTO_PROFILER_LABEL("PWebBrowserPersistDocument::Msg_PWebBrowserPersistSerializeConstructor", OTHER);
     175           0 :     PWebBrowserPersistDocument::Transition(PWebBrowserPersistDocument::Msg_PWebBrowserPersistSerializeConstructor__ID, (&(mState)));
     176             : 
     177           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     178           0 :     if ((!(sendok__))) {
     179           0 :         IProtocol* mgr = (actor)->Manager();
     180           0 :         (actor)->DestroySubtree(FailedConstructor);
     181           0 :         (actor)->DeallocSubtree();
     182           0 :         (mgr)->RemoveManagee(PWebBrowserPersistSerializeMsgStart, actor);
     183           0 :         return nullptr;
     184             :     }
     185           0 :     return actor;
     186             : }
     187             : 
     188           0 : auto PWebBrowserPersistDocumentParent::Send__delete__(PWebBrowserPersistDocumentParent* actor) -> bool
     189             : {
     190           0 :     if ((!(actor))) {
     191           0 :         return false;
     192             :     }
     193             : 
     194           0 :     IPC::Message* msg__ = PWebBrowserPersistDocument::Msg___delete__((actor)->Id());
     195             : 
     196           0 :     (actor)->Write(actor, msg__, false);
     197             :     // Sentinel = 'actor'
     198           0 :     (msg__)->WriteSentinel(875202478);
     199             : 
     200             : 
     201             : 
     202           0 :     if (mozilla::ipc::LoggingEnabledFor("PWebBrowserPersistDocumentParent")) {
     203           0 :         mozilla::ipc::LogMessageForProtocol("PWebBrowserPersistDocumentParent", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     204             :     }
     205           0 :     AUTO_PROFILER_LABEL("PWebBrowserPersistDocument::Msg___delete__", OTHER);
     206           0 :     PWebBrowserPersistDocument::Transition(PWebBrowserPersistDocument::Msg___delete____ID, (&((actor)->mState)));
     207             : 
     208           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
     209             : 
     210           0 :     IProtocol* mgr = (actor)->Manager();
     211           0 :     (actor)->DestroySubtree(Deletion);
     212           0 :     (actor)->DeallocSubtree();
     213           0 :     (mgr)->RemoveManagee(PWebBrowserPersistDocumentMsgStart, actor);
     214           0 :     return sendok__;
     215             : }
     216             : 
     217           0 : auto PWebBrowserPersistDocumentParent::RemoveManagee(
     218             :         int32_t aProtocolId,
     219             :         ProtocolBase* aListener) -> void
     220             : {
     221           0 :     switch (aProtocolId) {
     222             :     case PWebBrowserPersistResourcesMsgStart:
     223             :         {
     224           0 :             PWebBrowserPersistResourcesParent* actor = static_cast<PWebBrowserPersistResourcesParent*>(aListener);
     225           0 :             auto& container = mManagedPWebBrowserPersistResourcesParent;
     226           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
     227             : 
     228           0 :             (container).RemoveEntry(actor);
     229           0 :             DeallocPWebBrowserPersistResourcesParent(actor);
     230           0 :             return;
     231             :         }
     232             :     case PWebBrowserPersistSerializeMsgStart:
     233             :         {
     234           0 :             PWebBrowserPersistSerializeParent* actor = static_cast<PWebBrowserPersistSerializeParent*>(aListener);
     235           0 :             auto& container = mManagedPWebBrowserPersistSerializeParent;
     236           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
     237             : 
     238           0 :             (container).RemoveEntry(actor);
     239           0 :             DeallocPWebBrowserPersistSerializeParent(actor);
     240           0 :             return;
     241             :         }
     242             :     default:
     243             :         {
     244           0 :             FatalError("unreached");
     245           0 :             return;
     246             :         }
     247             :     }
     248             : }
     249             : 
     250           0 : auto PWebBrowserPersistDocumentParent::OnMessageReceived(const Message& msg__) -> PWebBrowserPersistDocumentParent::Result
     251             : {
     252           0 :     switch ((msg__).type()) {
     253             :     case PWebBrowserPersistDocument::Msg_Attributes__ID:
     254             :         {
     255           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebBrowserPersistDocumentParent")) {
     256           0 :                 mozilla::ipc::LogMessageForProtocol("PWebBrowserPersistDocumentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     257             :             }
     258           0 :             AUTO_PROFILER_LABEL("PWebBrowserPersistDocument::Msg_Attributes", OTHER);
     259             : 
     260           0 :             PickleIterator iter__(msg__);
     261           0 :             WebBrowserPersistDocumentAttrs aAttrs;
     262           0 :             OptionalIPCStream stream;
     263             : 
     264           0 :             if ((!(Read((&(aAttrs)), (&(msg__)), (&(iter__)))))) {
     265           0 :                 FatalError("Error deserializing 'WebBrowserPersistDocumentAttrs'");
     266           0 :                 return MsgValueError;
     267             :             }
     268             :             // Sentinel = 'aAttrs'
     269           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2405661289)))) {
     270           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'WebBrowserPersistDocumentAttrs'");
     271           0 :                 return MsgValueError;
     272             :             }
     273           0 :             if ((!(Read((&(stream)), (&(msg__)), (&(iter__)))))) {
     274           0 :                 FatalError("Error deserializing 'OptionalIPCStream'");
     275           0 :                 return MsgValueError;
     276             :             }
     277             :             // Sentinel = 'stream'
     278           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4152748422)))) {
     279           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'OptionalIPCStream'");
     280           0 :                 return MsgValueError;
     281             :             }
     282           0 :             (msg__).EndRead(iter__, (msg__).type());
     283           0 :             PWebBrowserPersistDocument::Transition(PWebBrowserPersistDocument::Msg_Attributes__ID, (&(mState)));
     284           0 :             if ((!(RecvAttributes(mozilla::Move(aAttrs), mozilla::Move(stream))))) {
     285           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     286             :                 // Error handled in mozilla::ipc::IPCResult
     287           0 :                 return MsgProcessingError;
     288             :             }
     289             : 
     290           0 :             return MsgProcessed;
     291             :         }
     292             :     case PWebBrowserPersistDocument::Msg_InitFailure__ID:
     293             :         {
     294           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebBrowserPersistDocumentParent")) {
     295           0 :                 mozilla::ipc::LogMessageForProtocol("PWebBrowserPersistDocumentParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     296             :             }
     297           0 :             AUTO_PROFILER_LABEL("PWebBrowserPersistDocument::Msg_InitFailure", OTHER);
     298             : 
     299           0 :             PickleIterator iter__(msg__);
     300             :             nsresult aStatus;
     301             : 
     302           0 :             if ((!(Read((&(aStatus)), (&(msg__)), (&(iter__)))))) {
     303           0 :                 FatalError("Error deserializing 'nsresult'");
     304           0 :                 return MsgValueError;
     305             :             }
     306             :             // Sentinel = 'aStatus'
     307           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 236002576)))) {
     308           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
     309           0 :                 return MsgValueError;
     310             :             }
     311           0 :             (msg__).EndRead(iter__, (msg__).type());
     312           0 :             PWebBrowserPersistDocument::Transition(PWebBrowserPersistDocument::Msg_InitFailure__ID, (&(mState)));
     313           0 :             if ((!(RecvInitFailure(mozilla::Move(aStatus))))) {
     314           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     315             :                 // Error handled in mozilla::ipc::IPCResult
     316           0 :                 return MsgProcessingError;
     317             :             }
     318             : 
     319           0 :             return MsgProcessed;
     320             :         }
     321             :     case PWebBrowserPersistDocument::Reply_PWebBrowserPersistResourcesConstructor__ID:
     322             :         {
     323           0 :             return MsgProcessed;
     324             :         }
     325             :     case PWebBrowserPersistDocument::Reply_PWebBrowserPersistSerializeConstructor__ID:
     326             :         {
     327           0 :             return MsgProcessed;
     328             :         }
     329             :     case PWebBrowserPersistDocument::Reply___delete____ID:
     330             :         {
     331           0 :             return MsgProcessed;
     332             :         }
     333             :     default:
     334             :         {
     335           0 :             return MsgNotKnown;
     336             :         }
     337             :     }
     338             : }
     339             : 
     340           0 : auto PWebBrowserPersistDocumentParent::OnMessageReceived(
     341             :         const Message& msg__,
     342             :         Message*& reply__) -> PWebBrowserPersistDocumentParent::Result
     343             : {
     344           0 :     return MsgNotKnown;
     345             : }
     346             : 
     347           0 : auto PWebBrowserPersistDocumentParent::OnCallReceived(
     348             :         const Message& msg__,
     349             :         Message*& reply__) -> PWebBrowserPersistDocumentParent::Result
     350             : {
     351           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     352             :     return MsgNotKnown;
     353             : }
     354             : 
     355           0 : auto PWebBrowserPersistDocumentParent::GetProtocolTypeId() -> int32_t
     356             : {
     357           0 :     return PWebBrowserPersistDocumentMsgStart;
     358             : }
     359             : 
     360           0 : auto PWebBrowserPersistDocumentParent::ProtocolName() const -> const char*
     361             : {
     362           0 :     return "PWebBrowserPersistDocumentParent";
     363             : }
     364             : 
     365           0 : auto PWebBrowserPersistDocumentParent::DestroySubtree(ActorDestroyReason why) -> void
     366             : {
     367             :     // Unregister from our manager.
     368           0 :     Unregister(Id());
     369             : 
     370           0 :     ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
     371             : 
     372             :     {
     373             :         // Recursively shutting down PWebBrowserPersistResources kids
     374           0 :         nsTArray<PWebBrowserPersistResourcesParent*> kids;
     375             :         // Accumulate kids into a stable structure to iterate over
     376           0 :         ManagedPWebBrowserPersistResourcesParent(kids);
     377           0 :         for (auto& kid : kids) {
     378             :             // Guarding against a child removing a sibling from the list during the iteration.
     379           0 :             if ((mManagedPWebBrowserPersistResourcesParent).Contains(kid)) {
     380           0 :                 (kid)->DestroySubtree(subtreewhy);
     381             :             }
     382             :         }
     383             :     }
     384             :     {
     385             :         // Recursively shutting down PWebBrowserPersistSerialize kids
     386           0 :         nsTArray<PWebBrowserPersistSerializeParent*> kids;
     387             :         // Accumulate kids into a stable structure to iterate over
     388           0 :         ManagedPWebBrowserPersistSerializeParent(kids);
     389           0 :         for (auto& kid : kids) {
     390             :             // Guarding against a child removing a sibling from the list during the iteration.
     391           0 :             if ((mManagedPWebBrowserPersistSerializeParent).Contains(kid)) {
     392           0 :                 (kid)->DestroySubtree(subtreewhy);
     393             :             }
     394             :         }
     395             :     }
     396             : 
     397             :     // Reject owning pending promises.
     398           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     399             : 
     400             :     // Finally, destroy "us".
     401           0 :     ActorDestroy(why);
     402           0 : }
     403             : 
     404           0 : auto PWebBrowserPersistDocumentParent::DeallocSubtree() -> void
     405             : {
     406             :     {
     407             :         // Recursively deleting PWebBrowserPersistResources kids
     408           0 :         for (auto iter = (mManagedPWebBrowserPersistResourcesParent).Iter(); (!((iter).Done())); (iter).Next()) {
     409           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
     410             :         }
     411             : 
     412           0 :         for (auto iter = (mManagedPWebBrowserPersistResourcesParent).Iter(); (!((iter).Done())); (iter).Next()) {
     413           0 :             DeallocPWebBrowserPersistResourcesParent(((iter).Get())->GetKey());
     414             :         }
     415           0 :         (mManagedPWebBrowserPersistResourcesParent).Clear();
     416             :     }
     417             :     {
     418             :         // Recursively deleting PWebBrowserPersistSerialize kids
     419           0 :         for (auto iter = (mManagedPWebBrowserPersistSerializeParent).Iter(); (!((iter).Done())); (iter).Next()) {
     420           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
     421             :         }
     422             : 
     423           0 :         for (auto iter = (mManagedPWebBrowserPersistSerializeParent).Iter(); (!((iter).Done())); (iter).Next()) {
     424           0 :             DeallocPWebBrowserPersistSerializeParent(((iter).Get())->GetKey());
     425             :         }
     426           0 :         (mManagedPWebBrowserPersistSerializeParent).Clear();
     427             :     }
     428           0 : }
     429             : 
     430           0 : auto PWebBrowserPersistDocumentParent::Write(
     431             :         const WebBrowserPersistURIMapEntry& v__,
     432             :         Message* msg__) -> void
     433             : {
     434           0 :     Write((v__).mapFrom(), msg__);
     435             :     // Sentinel = 'mapFrom'
     436           0 :     (msg__)->WriteSentinel(2234736001);
     437           0 :     Write((v__).mapTo(), msg__);
     438             :     // Sentinel = 'mapTo'
     439           0 :     (msg__)->WriteSentinel(4068146524);
     440           0 : }
     441             : 
     442           0 : auto PWebBrowserPersistDocumentParent::Read(
     443             :         WebBrowserPersistURIMapEntry* v__,
     444             :         const Message* msg__,
     445             :         PickleIterator* iter__) -> bool
     446             : {
     447           0 :     if ((!(Read((&((v__)->mapFrom())), msg__, iter__)))) {
     448           0 :         FatalError("Error deserializing 'mapFrom' (nsCString) member of 'WebBrowserPersistURIMapEntry'");
     449           0 :         return false;
     450             :     }
     451             :     // Sentinel = 'mapFrom'
     452           0 :     if ((!((msg__)->ReadSentinel(iter__, 2234736001)))) {
     453           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mapFrom' (nsCString) member of 'WebBrowserPersistURIMapEntry'");
     454           0 :         return false;
     455             :     }
     456           0 :     if ((!(Read((&((v__)->mapTo())), msg__, iter__)))) {
     457           0 :         FatalError("Error deserializing 'mapTo' (nsCString) member of 'WebBrowserPersistURIMapEntry'");
     458           0 :         return false;
     459             :     }
     460             :     // Sentinel = 'mapTo'
     461           0 :     if ((!((msg__)->ReadSentinel(iter__, 4068146524)))) {
     462           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mapTo' (nsCString) member of 'WebBrowserPersistURIMapEntry'");
     463           0 :         return false;
     464             :     }
     465           0 :     return true;
     466             : }
     467             : 
     468           0 : auto PWebBrowserPersistDocumentParent::Write(
     469             :         const nsTArray<InputStreamParams>& v__,
     470             :         Message* msg__) -> void
     471             : {
     472           0 :     uint32_t length = (v__).Length();
     473           0 :     Write(length, msg__);
     474             :     // Sentinel = ('length', 'InputStreamParams[]')
     475           0 :     (msg__)->WriteSentinel(348334258);
     476             : 
     477           0 :     for (auto& elem : v__) {
     478           0 :         Write(elem, msg__);
     479             :         // Sentinel = 'InputStreamParams[]'
     480           0 :         (msg__)->WriteSentinel(2927715197);
     481             :     }
     482           0 : }
     483             : 
     484           0 : auto PWebBrowserPersistDocumentParent::Read(
     485             :         nsTArray<InputStreamParams>* v__,
     486             :         const Message* msg__,
     487             :         PickleIterator* iter__) -> bool
     488             : {
     489           0 :     nsTArray<InputStreamParams> fa;
     490             :     uint32_t length;
     491           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
     492           0 :         mozilla::ipc::ArrayLengthReadError("InputStreamParams[]");
     493           0 :         return false;
     494             :     }
     495             :     // Sentinel = ('length', 'InputStreamParams[]')
     496           0 :     if ((!((msg__)->ReadSentinel(iter__, 348334258)))) {
     497           0 :         mozilla::ipc::SentinelReadError("InputStreamParams[]");
     498           0 :         return false;
     499             :     }
     500             : 
     501           0 :     InputStreamParams* elems = (fa).AppendElements(length);
     502           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
     503           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
     504           0 :             FatalError("Error deserializing 'InputStreamParams[i]'");
     505           0 :             return false;
     506             :         }
     507             :         // Sentinel = 'InputStreamParams[]'
     508           0 :         if ((!((msg__)->ReadSentinel(iter__, 2927715197)))) {
     509           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'InputStreamParams[i]'");
     510           0 :             return false;
     511             :         }
     512             :     }
     513           0 :     (v__)->SwapElements(fa);
     514           0 :     return true;
     515             : }
     516             : 
     517           0 : auto PWebBrowserPersistDocumentParent::Write(
     518             :         const OptionalInputStreamParams& v__,
     519             :         Message* msg__) -> void
     520             : {
     521             :     typedef OptionalInputStreamParams type__;
     522           0 :     Write(int((v__).type()), msg__);
     523             :     // Sentinel = 'OptionalInputStreamParams'
     524           0 :     (msg__)->WriteSentinel(1355174443);
     525             : 
     526           0 :     switch ((v__).type()) {
     527             :     case type__::Tvoid_t:
     528             :         {
     529           0 :             Write((v__).get_void_t(), msg__);
     530             :             // Sentinel = 'Tvoid_t'
     531           0 :             (msg__)->WriteSentinel(3041273328);
     532           0 :             return;
     533             :         }
     534             :     case type__::TInputStreamParams:
     535             :         {
     536           0 :             Write((v__).get_InputStreamParams(), msg__);
     537             :             // Sentinel = 'TInputStreamParams'
     538           0 :             (msg__)->WriteSentinel(55652096);
     539           0 :             return;
     540             :         }
     541             :     default:
     542             :         {
     543           0 :             FatalError("unknown union type");
     544           0 :             return;
     545             :         }
     546             :     }
     547             : }
     548             : 
     549           0 : auto PWebBrowserPersistDocumentParent::Read(
     550             :         OptionalInputStreamParams* v__,
     551             :         const Message* msg__,
     552             :         PickleIterator* iter__) -> bool
     553             : {
     554             :     typedef OptionalInputStreamParams type__;
     555             :     int type;
     556           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     557           0 :         mozilla::ipc::UnionTypeReadError("OptionalInputStreamParams");
     558           0 :         return false;
     559             :     }
     560             :     // Sentinel = 'OptionalInputStreamParams'
     561           0 :     if ((!((msg__)->ReadSentinel(iter__, 1355174443)))) {
     562           0 :         mozilla::ipc::SentinelReadError("OptionalInputStreamParams");
     563           0 :         return false;
     564             :     }
     565             : 
     566           0 :     switch (type) {
     567             :     case type__::Tvoid_t:
     568             :         {
     569             :             void_t tmp = void_t();
     570           0 :             (*(v__)) = tmp;
     571           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
     572           0 :                 FatalError("Error deserializing Union type");
     573           0 :                 return false;
     574             :             }
     575             :             // Sentinel = 'Tvoid_t'
     576           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
     577           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     578           0 :                 return false;
     579             :             }
     580           0 :             return true;
     581             :         }
     582             :     case type__::TInputStreamParams:
     583             :         {
     584           0 :             InputStreamParams tmp = InputStreamParams();
     585           0 :             (*(v__)) = tmp;
     586           0 :             if ((!(Read((&((v__)->get_InputStreamParams())), msg__, iter__)))) {
     587           0 :                 FatalError("Error deserializing Union type");
     588           0 :                 return false;
     589             :             }
     590             :             // Sentinel = 'TInputStreamParams'
     591           0 :             if ((!((msg__)->ReadSentinel(iter__, 55652096)))) {
     592           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     593           0 :                 return false;
     594             :             }
     595           0 :             return true;
     596             :         }
     597             :     default:
     598             :         {
     599           0 :             FatalError("unknown union type");
     600           0 :             return false;
     601             :         }
     602             :     }
     603             : }
     604             : 
     605           0 : auto PWebBrowserPersistDocumentParent::Write(
     606             :         const PWebBrowserPersistSerializeParent* v__,
     607             :         Message* msg__,
     608             :         bool nullable__) -> void
     609             : {
     610             :     int32_t id;
     611           0 :     if ((!(v__))) {
     612           0 :         if ((!(nullable__))) {
     613           0 :             FatalError("NULL actor value passed to non-nullable param");
     614             :         }
     615           0 :         id = 0;
     616             :     }
     617             :     else {
     618           0 :         id = (v__)->Id();
     619           0 :         if ((1) == (id)) {
     620           0 :             FatalError("actor has been |delete|d");
     621             :         }
     622             :     }
     623             : 
     624           0 :     Write(id, msg__);
     625           0 : }
     626             : 
     627           0 : auto PWebBrowserPersistDocumentParent::Read(
     628             :         PWebBrowserPersistSerializeParent** v__,
     629             :         const Message* msg__,
     630             :         PickleIterator* iter__,
     631             :         bool nullable__) -> bool
     632             : {
     633           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PWebBrowserPersistSerialize", PWebBrowserPersistSerializeMsgStart);
     634           0 :     if ((actor).isNothing()) {
     635           0 :         return false;
     636             :     }
     637             : 
     638           0 :     (*(v__)) = static_cast<PWebBrowserPersistSerializeParent*>((actor).value());
     639           0 :     return true;
     640             : }
     641             : 
     642           0 : auto PWebBrowserPersistDocumentParent::Write(
     643             :         const IPCRemoteStream& v__,
     644             :         Message* msg__) -> void
     645             : {
     646           0 :     Write((v__).delayedStart(), msg__);
     647             :     // Sentinel = 'delayedStart'
     648           0 :     (msg__)->WriteSentinel(1491822294);
     649           0 :     Write((v__).stream(), msg__);
     650             :     // Sentinel = 'stream'
     651           0 :     (msg__)->WriteSentinel(4152748422);
     652           0 : }
     653             : 
     654           0 : auto PWebBrowserPersistDocumentParent::Read(
     655             :         IPCRemoteStream* v__,
     656             :         const Message* msg__,
     657             :         PickleIterator* iter__) -> bool
     658             : {
     659           0 :     if ((!(Read((&((v__)->delayedStart())), msg__, iter__)))) {
     660           0 :         FatalError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
     661           0 :         return false;
     662             :     }
     663             :     // Sentinel = 'delayedStart'
     664           0 :     if ((!((msg__)->ReadSentinel(iter__, 1491822294)))) {
     665           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
     666           0 :         return false;
     667             :     }
     668           0 :     if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
     669           0 :         FatalError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
     670           0 :         return false;
     671             :     }
     672             :     // Sentinel = 'stream'
     673           0 :     if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
     674           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
     675           0 :         return false;
     676             :     }
     677           0 :     return true;
     678             : }
     679             : 
     680           0 : auto PWebBrowserPersistDocumentParent::Write(
     681             :         const FileInputStreamParams& v__,
     682             :         Message* msg__) -> void
     683             : {
     684           0 :     Write((v__).fileDescriptorIndex(), msg__);
     685             :     // Sentinel = 'fileDescriptorIndex'
     686           0 :     (msg__)->WriteSentinel(587329112);
     687           0 :     Write((v__).behaviorFlags(), msg__);
     688             :     // Sentinel = 'behaviorFlags'
     689           0 :     (msg__)->WriteSentinel(2404401962);
     690           0 :     Write((v__).ioFlags(), msg__);
     691             :     // Sentinel = 'ioFlags'
     692           0 :     (msg__)->WriteSentinel(1483009730);
     693           0 : }
     694             : 
     695           0 : auto PWebBrowserPersistDocumentParent::Read(
     696             :         FileInputStreamParams* v__,
     697             :         const Message* msg__,
     698             :         PickleIterator* iter__) -> bool
     699             : {
     700           0 :     if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
     701           0 :         FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
     702           0 :         return false;
     703             :     }
     704             :     // Sentinel = 'fileDescriptorIndex'
     705           0 :     if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
     706           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
     707           0 :         return false;
     708             :     }
     709           0 :     if ((!(Read((&((v__)->behaviorFlags())), msg__, iter__)))) {
     710           0 :         FatalError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
     711           0 :         return false;
     712             :     }
     713             :     // Sentinel = 'behaviorFlags'
     714           0 :     if ((!((msg__)->ReadSentinel(iter__, 2404401962)))) {
     715           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
     716           0 :         return false;
     717             :     }
     718           0 :     if ((!(Read((&((v__)->ioFlags())), msg__, iter__)))) {
     719           0 :         FatalError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
     720           0 :         return false;
     721             :     }
     722             :     // Sentinel = 'ioFlags'
     723           0 :     if ((!((msg__)->ReadSentinel(iter__, 1483009730)))) {
     724           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
     725           0 :         return false;
     726             :     }
     727           0 :     return true;
     728             : }
     729             : 
     730           0 : auto PWebBrowserPersistDocumentParent::Write(
     731             :         const PWebBrowserPersistDocumentParent* v__,
     732             :         Message* msg__,
     733             :         bool nullable__) -> void
     734             : {
     735             :     int32_t id;
     736           0 :     if ((!(v__))) {
     737           0 :         if ((!(nullable__))) {
     738           0 :             FatalError("NULL actor value passed to non-nullable param");
     739             :         }
     740           0 :         id = 0;
     741             :     }
     742             :     else {
     743           0 :         id = (v__)->Id();
     744           0 :         if ((1) == (id)) {
     745           0 :             FatalError("actor has been |delete|d");
     746             :         }
     747             :     }
     748             : 
     749           0 :     Write(id, msg__);
     750           0 : }
     751             : 
     752           0 : auto PWebBrowserPersistDocumentParent::Read(
     753             :         PWebBrowserPersistDocumentParent** v__,
     754             :         const Message* msg__,
     755             :         PickleIterator* iter__,
     756             :         bool nullable__) -> bool
     757             : {
     758           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PWebBrowserPersistDocument", PWebBrowserPersistDocumentMsgStart);
     759           0 :     if ((actor).isNothing()) {
     760           0 :         return false;
     761             :     }
     762             : 
     763           0 :     (*(v__)) = static_cast<PWebBrowserPersistDocumentParent*>((actor).value());
     764           0 :     return true;
     765             : }
     766             : 
     767           0 : auto PWebBrowserPersistDocumentParent::Write(
     768             :         const IPCBlobInputStreamParams& v__,
     769             :         Message* msg__) -> void
     770             : {
     771           0 :     Write((v__).id(), msg__);
     772             :     // Sentinel = 'id'
     773           0 :     (msg__)->WriteSentinel(2794505629);
     774           0 : }
     775             : 
     776           0 : auto PWebBrowserPersistDocumentParent::Read(
     777             :         IPCBlobInputStreamParams* v__,
     778             :         const Message* msg__,
     779             :         PickleIterator* iter__) -> bool
     780             : {
     781           0 :     if ((!(Read((&((v__)->id())), msg__, iter__)))) {
     782           0 :         FatalError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
     783           0 :         return false;
     784             :     }
     785             :     // Sentinel = 'id'
     786           0 :     if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
     787           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
     788           0 :         return false;
     789             :     }
     790           0 :     return true;
     791             : }
     792             : 
     793           0 : auto PWebBrowserPersistDocumentParent::Write(
     794             :         const WebBrowserPersistDocumentAttrs& v__,
     795             :         Message* msg__) -> void
     796             : {
     797           0 :     Write((v__).isPrivate(), msg__);
     798             :     // Sentinel = 'isPrivate'
     799           0 :     (msg__)->WriteSentinel(4033294520);
     800           0 :     Write((v__).documentURI(), msg__);
     801             :     // Sentinel = 'documentURI'
     802           0 :     (msg__)->WriteSentinel(3585823520);
     803           0 :     Write((v__).baseURI(), msg__);
     804             :     // Sentinel = 'baseURI'
     805           0 :     (msg__)->WriteSentinel(1836705256);
     806           0 :     Write((v__).contentType(), msg__);
     807             :     // Sentinel = 'contentType'
     808           0 :     (msg__)->WriteSentinel(2092571716);
     809           0 :     Write((v__).characterSet(), msg__);
     810             :     // Sentinel = 'characterSet'
     811           0 :     (msg__)->WriteSentinel(2220949387);
     812           0 :     Write((v__).title(), msg__);
     813             :     // Sentinel = 'title'
     814           0 :     (msg__)->WriteSentinel(4272139303);
     815           0 :     Write((v__).referrer(), msg__);
     816             :     // Sentinel = 'referrer'
     817           0 :     (msg__)->WriteSentinel(3770987113);
     818           0 :     Write((v__).contentDisposition(), msg__);
     819             :     // Sentinel = 'contentDisposition'
     820           0 :     (msg__)->WriteSentinel(2551304062);
     821           0 :     Write((v__).cacheKey(), msg__);
     822             :     // Sentinel = 'cacheKey'
     823           0 :     (msg__)->WriteSentinel(249191363);
     824           0 :     Write((v__).persistFlags(), msg__);
     825             :     // Sentinel = 'persistFlags'
     826           0 :     (msg__)->WriteSentinel(276845325);
     827           0 : }
     828             : 
     829           0 : auto PWebBrowserPersistDocumentParent::Read(
     830             :         WebBrowserPersistDocumentAttrs* v__,
     831             :         const Message* msg__,
     832             :         PickleIterator* iter__) -> bool
     833             : {
     834           0 :     if ((!(Read((&((v__)->isPrivate())), msg__, iter__)))) {
     835           0 :         FatalError("Error deserializing 'isPrivate' (bool) member of 'WebBrowserPersistDocumentAttrs'");
     836           0 :         return false;
     837             :     }
     838             :     // Sentinel = 'isPrivate'
     839           0 :     if ((!((msg__)->ReadSentinel(iter__, 4033294520)))) {
     840           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isPrivate' (bool) member of 'WebBrowserPersistDocumentAttrs'");
     841           0 :         return false;
     842             :     }
     843           0 :     if ((!(Read((&((v__)->documentURI())), msg__, iter__)))) {
     844           0 :         FatalError("Error deserializing 'documentURI' (nsCString) member of 'WebBrowserPersistDocumentAttrs'");
     845           0 :         return false;
     846             :     }
     847             :     // Sentinel = 'documentURI'
     848           0 :     if ((!((msg__)->ReadSentinel(iter__, 3585823520)))) {
     849           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'documentURI' (nsCString) member of 'WebBrowserPersistDocumentAttrs'");
     850           0 :         return false;
     851             :     }
     852           0 :     if ((!(Read((&((v__)->baseURI())), msg__, iter__)))) {
     853           0 :         FatalError("Error deserializing 'baseURI' (nsCString) member of 'WebBrowserPersistDocumentAttrs'");
     854           0 :         return false;
     855             :     }
     856             :     // Sentinel = 'baseURI'
     857           0 :     if ((!((msg__)->ReadSentinel(iter__, 1836705256)))) {
     858           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'baseURI' (nsCString) member of 'WebBrowserPersistDocumentAttrs'");
     859           0 :         return false;
     860             :     }
     861           0 :     if ((!(Read((&((v__)->contentType())), msg__, iter__)))) {
     862           0 :         FatalError("Error deserializing 'contentType' (nsCString) member of 'WebBrowserPersistDocumentAttrs'");
     863           0 :         return false;
     864             :     }
     865             :     // Sentinel = 'contentType'
     866           0 :     if ((!((msg__)->ReadSentinel(iter__, 2092571716)))) {
     867           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'contentType' (nsCString) member of 'WebBrowserPersistDocumentAttrs'");
     868           0 :         return false;
     869             :     }
     870           0 :     if ((!(Read((&((v__)->characterSet())), msg__, iter__)))) {
     871           0 :         FatalError("Error deserializing 'characterSet' (nsCString) member of 'WebBrowserPersistDocumentAttrs'");
     872           0 :         return false;
     873             :     }
     874             :     // Sentinel = 'characterSet'
     875           0 :     if ((!((msg__)->ReadSentinel(iter__, 2220949387)))) {
     876           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'characterSet' (nsCString) member of 'WebBrowserPersistDocumentAttrs'");
     877           0 :         return false;
     878             :     }
     879           0 :     if ((!(Read((&((v__)->title())), msg__, iter__)))) {
     880           0 :         FatalError("Error deserializing 'title' (nsString) member of 'WebBrowserPersistDocumentAttrs'");
     881           0 :         return false;
     882             :     }
     883             :     // Sentinel = 'title'
     884           0 :     if ((!((msg__)->ReadSentinel(iter__, 4272139303)))) {
     885           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'title' (nsString) member of 'WebBrowserPersistDocumentAttrs'");
     886           0 :         return false;
     887             :     }
     888           0 :     if ((!(Read((&((v__)->referrer())), msg__, iter__)))) {
     889           0 :         FatalError("Error deserializing 'referrer' (nsString) member of 'WebBrowserPersistDocumentAttrs'");
     890           0 :         return false;
     891             :     }
     892             :     // Sentinel = 'referrer'
     893           0 :     if ((!((msg__)->ReadSentinel(iter__, 3770987113)))) {
     894           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'referrer' (nsString) member of 'WebBrowserPersistDocumentAttrs'");
     895           0 :         return false;
     896             :     }
     897           0 :     if ((!(Read((&((v__)->contentDisposition())), msg__, iter__)))) {
     898           0 :         FatalError("Error deserializing 'contentDisposition' (nsString) member of 'WebBrowserPersistDocumentAttrs'");
     899           0 :         return false;
     900             :     }
     901             :     // Sentinel = 'contentDisposition'
     902           0 :     if ((!((msg__)->ReadSentinel(iter__, 2551304062)))) {
     903           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'contentDisposition' (nsString) member of 'WebBrowserPersistDocumentAttrs'");
     904           0 :         return false;
     905             :     }
     906           0 :     if ((!(Read((&((v__)->cacheKey())), msg__, iter__)))) {
     907           0 :         FatalError("Error deserializing 'cacheKey' (uint32_t) member of 'WebBrowserPersistDocumentAttrs'");
     908           0 :         return false;
     909             :     }
     910             :     // Sentinel = 'cacheKey'
     911           0 :     if ((!((msg__)->ReadSentinel(iter__, 249191363)))) {
     912           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'cacheKey' (uint32_t) member of 'WebBrowserPersistDocumentAttrs'");
     913           0 :         return false;
     914             :     }
     915           0 :     if ((!(Read((&((v__)->persistFlags())), msg__, iter__)))) {
     916           0 :         FatalError("Error deserializing 'persistFlags' (uint32_t) member of 'WebBrowserPersistDocumentAttrs'");
     917           0 :         return false;
     918             :     }
     919             :     // Sentinel = 'persistFlags'
     920           0 :     if ((!((msg__)->ReadSentinel(iter__, 276845325)))) {
     921           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'persistFlags' (uint32_t) member of 'WebBrowserPersistDocumentAttrs'");
     922           0 :         return false;
     923             :     }
     924           0 :     return true;
     925             : }
     926             : 
     927           0 : auto PWebBrowserPersistDocumentParent::Write(
     928             :         const PWebBrowserPersistResourcesParent* v__,
     929             :         Message* msg__,
     930             :         bool nullable__) -> void
     931             : {
     932             :     int32_t id;
     933           0 :     if ((!(v__))) {
     934           0 :         if ((!(nullable__))) {
     935           0 :             FatalError("NULL actor value passed to non-nullable param");
     936             :         }
     937           0 :         id = 0;
     938             :     }
     939             :     else {
     940           0 :         id = (v__)->Id();
     941           0 :         if ((1) == (id)) {
     942           0 :             FatalError("actor has been |delete|d");
     943             :         }
     944             :     }
     945             : 
     946           0 :     Write(id, msg__);
     947           0 : }
     948             : 
     949           0 : auto PWebBrowserPersistDocumentParent::Read(
     950             :         PWebBrowserPersistResourcesParent** v__,
     951             :         const Message* msg__,
     952             :         PickleIterator* iter__,
     953             :         bool nullable__) -> bool
     954             : {
     955           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PWebBrowserPersistResources", PWebBrowserPersistResourcesMsgStart);
     956           0 :     if ((actor).isNothing()) {
     957           0 :         return false;
     958             :     }
     959             : 
     960           0 :     (*(v__)) = static_cast<PWebBrowserPersistResourcesParent*>((actor).value());
     961           0 :     return true;
     962             : }
     963             : 
     964           0 : auto PWebBrowserPersistDocumentParent::Write(
     965             :         const InputStreamParamsWithFds& v__,
     966             :         Message* msg__) -> void
     967             : {
     968           0 :     Write((v__).stream(), msg__);
     969             :     // Sentinel = 'stream'
     970           0 :     (msg__)->WriteSentinel(4152748422);
     971           0 :     Write((v__).optionalFds(), msg__);
     972             :     // Sentinel = 'optionalFds'
     973           0 :     (msg__)->WriteSentinel(1021803302);
     974           0 : }
     975             : 
     976           0 : auto PWebBrowserPersistDocumentParent::Read(
     977             :         InputStreamParamsWithFds* v__,
     978             :         const Message* msg__,
     979             :         PickleIterator* iter__) -> bool
     980             : {
     981           0 :     if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
     982           0 :         FatalError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
     983           0 :         return false;
     984             :     }
     985             :     // Sentinel = 'stream'
     986           0 :     if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
     987           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
     988           0 :         return false;
     989             :     }
     990           0 :     if ((!(Read((&((v__)->optionalFds())), msg__, iter__)))) {
     991           0 :         FatalError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
     992           0 :         return false;
     993             :     }
     994             :     // Sentinel = 'optionalFds'
     995           0 :     if ((!((msg__)->ReadSentinel(iter__, 1021803302)))) {
     996           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
     997           0 :         return false;
     998             :     }
     999           0 :     return true;
    1000             : }
    1001             : 
    1002           0 : auto PWebBrowserPersistDocumentParent::Write(
    1003             :         const nsTArray<FileDescriptor>& v__,
    1004             :         Message* msg__) -> void
    1005             : {
    1006           0 :     uint32_t length = (v__).Length();
    1007           0 :     Write(length, msg__);
    1008             :     // Sentinel = ('length', 'FileDescriptor[]')
    1009           0 :     (msg__)->WriteSentinel(1697726450);
    1010             : 
    1011           0 :     for (auto& elem : v__) {
    1012           0 :         Write(elem, msg__);
    1013             :         // Sentinel = 'FileDescriptor[]'
    1014           0 :         (msg__)->WriteSentinel(1630221245);
    1015             :     }
    1016           0 : }
    1017             : 
    1018           0 : auto PWebBrowserPersistDocumentParent::Read(
    1019             :         nsTArray<FileDescriptor>* v__,
    1020             :         const Message* msg__,
    1021             :         PickleIterator* iter__) -> bool
    1022             : {
    1023           0 :     nsTArray<FileDescriptor> fa;
    1024             :     uint32_t length;
    1025           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    1026           0 :         mozilla::ipc::ArrayLengthReadError("FileDescriptor[]");
    1027           0 :         return false;
    1028             :     }
    1029             :     // Sentinel = ('length', 'FileDescriptor[]')
    1030           0 :     if ((!((msg__)->ReadSentinel(iter__, 1697726450)))) {
    1031           0 :         mozilla::ipc::SentinelReadError("FileDescriptor[]");
    1032           0 :         return false;
    1033             :     }
    1034             : 
    1035           0 :     FileDescriptor* elems = (fa).AppendElements(length);
    1036           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    1037           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    1038           0 :             FatalError("Error deserializing 'FileDescriptor[i]'");
    1039           0 :             return false;
    1040             :         }
    1041             :         // Sentinel = 'FileDescriptor[]'
    1042           0 :         if ((!((msg__)->ReadSentinel(iter__, 1630221245)))) {
    1043           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor[i]'");
    1044           0 :             return false;
    1045             :         }
    1046             :     }
    1047           0 :     (v__)->SwapElements(fa);
    1048           0 :     return true;
    1049             : }
    1050             : 
    1051           0 : auto PWebBrowserPersistDocumentParent::Write(
    1052             :         const nsTArray<HeaderEntry>& v__,
    1053             :         Message* msg__) -> void
    1054             : {
    1055           0 :     uint32_t length = (v__).Length();
    1056           0 :     Write(length, msg__);
    1057             :     // Sentinel = ('length', 'HeaderEntry[]')
    1058           0 :     (msg__)->WriteSentinel(2689457705);
    1059             : 
    1060           0 :     for (auto& elem : v__) {
    1061           0 :         Write(elem, msg__);
    1062             :         // Sentinel = 'HeaderEntry[]'
    1063           0 :         (msg__)->WriteSentinel(454836120);
    1064             :     }
    1065           0 : }
    1066             : 
    1067           0 : auto PWebBrowserPersistDocumentParent::Read(
    1068             :         nsTArray<HeaderEntry>* v__,
    1069             :         const Message* msg__,
    1070             :         PickleIterator* iter__) -> bool
    1071             : {
    1072           0 :     nsTArray<HeaderEntry> fa;
    1073             :     uint32_t length;
    1074           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    1075           0 :         mozilla::ipc::ArrayLengthReadError("HeaderEntry[]");
    1076           0 :         return false;
    1077             :     }
    1078             :     // Sentinel = ('length', 'HeaderEntry[]')
    1079           0 :     if ((!((msg__)->ReadSentinel(iter__, 2689457705)))) {
    1080           0 :         mozilla::ipc::SentinelReadError("HeaderEntry[]");
    1081           0 :         return false;
    1082             :     }
    1083             : 
    1084           0 :     HeaderEntry* elems = (fa).AppendElements(length);
    1085           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    1086           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    1087           0 :             FatalError("Error deserializing 'HeaderEntry[i]'");
    1088           0 :             return false;
    1089             :         }
    1090             :         // Sentinel = 'HeaderEntry[]'
    1091           0 :         if ((!((msg__)->ReadSentinel(iter__, 454836120)))) {
    1092           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'HeaderEntry[i]'");
    1093           0 :             return false;
    1094             :         }
    1095             :     }
    1096           0 :     (v__)->SwapElements(fa);
    1097           0 :     return true;
    1098             : }
    1099             : 
    1100           0 : auto PWebBrowserPersistDocumentParent::Write(
    1101             :         const SlicedInputStreamParams& v__,
    1102             :         Message* msg__) -> void
    1103             : {
    1104           0 :     Write((v__).stream(), msg__);
    1105             :     // Sentinel = 'stream'
    1106           0 :     (msg__)->WriteSentinel(4152748422);
    1107           0 :     Write((v__).start(), msg__);
    1108             :     // Sentinel = 'start'
    1109           0 :     (msg__)->WriteSentinel(2088644401);
    1110           0 :     Write((v__).length(), msg__);
    1111             :     // Sentinel = 'length'
    1112           0 :     (msg__)->WriteSentinel(1726618354);
    1113           0 :     Write((v__).curPos(), msg__);
    1114             :     // Sentinel = 'curPos'
    1115           0 :     (msg__)->WriteSentinel(4042140974);
    1116           0 :     Write((v__).closed(), msg__);
    1117             :     // Sentinel = 'closed'
    1118           0 :     (msg__)->WriteSentinel(561249462);
    1119           0 : }
    1120             : 
    1121           0 : auto PWebBrowserPersistDocumentParent::Read(
    1122             :         SlicedInputStreamParams* v__,
    1123             :         const Message* msg__,
    1124             :         PickleIterator* iter__) -> bool
    1125             : {
    1126           0 :     if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
    1127           0 :         FatalError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
    1128           0 :         return false;
    1129             :     }
    1130             :     // Sentinel = 'stream'
    1131           0 :     if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
    1132           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
    1133           0 :         return false;
    1134             :     }
    1135           0 :     if ((!(Read((&((v__)->start())), msg__, iter__)))) {
    1136           0 :         FatalError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
    1137           0 :         return false;
    1138             :     }
    1139             :     // Sentinel = 'start'
    1140           0 :     if ((!((msg__)->ReadSentinel(iter__, 2088644401)))) {
    1141           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
    1142           0 :         return false;
    1143             :     }
    1144           0 :     if ((!(Read((&((v__)->length())), msg__, iter__)))) {
    1145           0 :         FatalError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
    1146           0 :         return false;
    1147             :     }
    1148             :     // Sentinel = 'length'
    1149           0 :     if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
    1150           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
    1151           0 :         return false;
    1152             :     }
    1153           0 :     if ((!(Read((&((v__)->curPos())), msg__, iter__)))) {
    1154           0 :         FatalError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
    1155           0 :         return false;
    1156             :     }
    1157             :     // Sentinel = 'curPos'
    1158           0 :     if ((!((msg__)->ReadSentinel(iter__, 4042140974)))) {
    1159           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
    1160           0 :         return false;
    1161             :     }
    1162           0 :     if ((!(Read((&((v__)->closed())), msg__, iter__)))) {
    1163           0 :         FatalError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
    1164           0 :         return false;
    1165             :     }
    1166             :     // Sentinel = 'closed'
    1167           0 :     if ((!((msg__)->ReadSentinel(iter__, 561249462)))) {
    1168           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
    1169           0 :         return false;
    1170             :     }
    1171           0 :     return true;
    1172             : }
    1173             : 
    1174           0 : auto PWebBrowserPersistDocumentParent::Write(
    1175             :         const IPCRemoteStreamType& v__,
    1176             :         Message* msg__) -> void
    1177             : {
    1178             :     typedef IPCRemoteStreamType type__;
    1179           0 :     Write(int((v__).type()), msg__);
    1180             :     // Sentinel = 'IPCRemoteStreamType'
    1181           0 :     (msg__)->WriteSentinel(391674895);
    1182             : 
    1183           0 :     switch ((v__).type()) {
    1184             :     case type__::TPChildToParentStreamParent:
    1185             :         {
    1186           0 :             Write((v__).get_PChildToParentStreamParent(), msg__, false);
    1187             :             // Sentinel = 'TPChildToParentStreamParent'
    1188           0 :             (msg__)->WriteSentinel(2724777622);
    1189           0 :             return;
    1190             :         }
    1191             :     case type__::TPChildToParentStreamChild:
    1192             :         {
    1193           0 :             FatalError("wrong side!");
    1194           0 :             return;
    1195             :         }
    1196             :     case type__::TPParentToChildStreamParent:
    1197             :         {
    1198           0 :             Write((v__).get_PParentToChildStreamParent(), msg__, false);
    1199             :             // Sentinel = 'TPParentToChildStreamParent'
    1200           0 :             (msg__)->WriteSentinel(3335986876);
    1201           0 :             return;
    1202             :         }
    1203             :     case type__::TPParentToChildStreamChild:
    1204             :         {
    1205           0 :             FatalError("wrong side!");
    1206           0 :             return;
    1207             :         }
    1208             :     default:
    1209             :         {
    1210           0 :             FatalError("unknown union type");
    1211           0 :             return;
    1212             :         }
    1213             :     }
    1214             : }
    1215             : 
    1216           0 : auto PWebBrowserPersistDocumentParent::Read(
    1217             :         IPCRemoteStreamType* v__,
    1218             :         const Message* msg__,
    1219             :         PickleIterator* iter__) -> bool
    1220             : {
    1221             :     typedef IPCRemoteStreamType type__;
    1222             :     int type;
    1223           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1224           0 :         mozilla::ipc::UnionTypeReadError("IPCRemoteStreamType");
    1225           0 :         return false;
    1226             :     }
    1227             :     // Sentinel = 'IPCRemoteStreamType'
    1228           0 :     if ((!((msg__)->ReadSentinel(iter__, 391674895)))) {
    1229           0 :         mozilla::ipc::SentinelReadError("IPCRemoteStreamType");
    1230           0 :         return false;
    1231             :     }
    1232             : 
    1233           0 :     switch (type) {
    1234             :     case type__::TPChildToParentStreamParent:
    1235             :         {
    1236           0 :             return false;
    1237             :         }
    1238             :     case type__::TPChildToParentStreamChild:
    1239             :         {
    1240           0 :             PChildToParentStreamParent* tmp = nullptr;
    1241           0 :             (*(v__)) = tmp;
    1242           0 :             if ((!(Read((&((v__)->get_PChildToParentStreamParent())), msg__, iter__, false)))) {
    1243           0 :                 FatalError("Error deserializing Union type");
    1244           0 :                 return false;
    1245             :             }
    1246             :             // Sentinel = 'TPChildToParentStreamChild'
    1247           0 :             if ((!((msg__)->ReadSentinel(iter__, 1882094295)))) {
    1248           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1249           0 :                 return false;
    1250             :             }
    1251           0 :             return true;
    1252             :         }
    1253             :     case type__::TPParentToChildStreamParent:
    1254             :         {
    1255           0 :             return false;
    1256             :         }
    1257             :     case type__::TPParentToChildStreamChild:
    1258             :         {
    1259           0 :             PParentToChildStreamParent* tmp = nullptr;
    1260           0 :             (*(v__)) = tmp;
    1261           0 :             if ((!(Read((&((v__)->get_PParentToChildStreamParent())), msg__, iter__, false)))) {
    1262           0 :                 FatalError("Error deserializing Union type");
    1263           0 :                 return false;
    1264             :             }
    1265             :             // Sentinel = 'TPParentToChildStreamChild'
    1266           0 :             if ((!((msg__)->ReadSentinel(iter__, 190098493)))) {
    1267           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1268           0 :                 return false;
    1269             :             }
    1270           0 :             return true;
    1271             :         }
    1272             :     default:
    1273             :         {
    1274           0 :             FatalError("unknown union type");
    1275           0 :             return false;
    1276             :         }
    1277             :     }
    1278             : }
    1279             : 
    1280           0 : auto PWebBrowserPersistDocumentParent::Write(
    1281             :         const TemporaryFileInputStreamParams& v__,
    1282             :         Message* msg__) -> void
    1283             : {
    1284           0 :     Write((v__).fileDescriptorIndex(), msg__);
    1285             :     // Sentinel = 'fileDescriptorIndex'
    1286           0 :     (msg__)->WriteSentinel(587329112);
    1287           0 :     Write((v__).startPos(), msg__);
    1288             :     // Sentinel = 'startPos'
    1289           0 :     (msg__)->WriteSentinel(557207962);
    1290           0 :     Write((v__).endPos(), msg__);
    1291             :     // Sentinel = 'endPos'
    1292           0 :     (msg__)->WriteSentinel(881536245);
    1293           0 : }
    1294             : 
    1295           0 : auto PWebBrowserPersistDocumentParent::Read(
    1296             :         TemporaryFileInputStreamParams* v__,
    1297             :         const Message* msg__,
    1298             :         PickleIterator* iter__) -> bool
    1299             : {
    1300           0 :     if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
    1301           0 :         FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
    1302           0 :         return false;
    1303             :     }
    1304             :     // Sentinel = 'fileDescriptorIndex'
    1305           0 :     if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
    1306           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
    1307           0 :         return false;
    1308             :     }
    1309           0 :     if ((!(Read((&((v__)->startPos())), msg__, iter__)))) {
    1310           0 :         FatalError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
    1311           0 :         return false;
    1312             :     }
    1313             :     // Sentinel = 'startPos'
    1314           0 :     if ((!((msg__)->ReadSentinel(iter__, 557207962)))) {
    1315           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
    1316           0 :         return false;
    1317             :     }
    1318           0 :     if ((!(Read((&((v__)->endPos())), msg__, iter__)))) {
    1319           0 :         FatalError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
    1320           0 :         return false;
    1321             :     }
    1322             :     // Sentinel = 'endPos'
    1323           0 :     if ((!((msg__)->ReadSentinel(iter__, 881536245)))) {
    1324           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
    1325           0 :         return false;
    1326             :     }
    1327           0 :     return true;
    1328             : }
    1329             : 
    1330           0 : auto PWebBrowserPersistDocumentParent::Write(
    1331             :         const WebBrowserPersistURIMap& v__,
    1332             :         Message* msg__) -> void
    1333             : {
    1334           0 :     Write((v__).mapURIs(), msg__);
    1335             :     // Sentinel = 'mapURIs'
    1336           0 :     (msg__)->WriteSentinel(1481862252);
    1337           0 :     Write((v__).targetBaseURI(), msg__);
    1338             :     // Sentinel = 'targetBaseURI'
    1339           0 :     (msg__)->WriteSentinel(1355746871);
    1340           0 : }
    1341             : 
    1342           0 : auto PWebBrowserPersistDocumentParent::Read(
    1343             :         WebBrowserPersistURIMap* v__,
    1344             :         const Message* msg__,
    1345             :         PickleIterator* iter__) -> bool
    1346             : {
    1347           0 :     if ((!(Read((&((v__)->mapURIs())), msg__, iter__)))) {
    1348           0 :         FatalError("Error deserializing 'mapURIs' (WebBrowserPersistURIMapEntry[]) member of 'WebBrowserPersistURIMap'");
    1349           0 :         return false;
    1350             :     }
    1351             :     // Sentinel = 'mapURIs'
    1352           0 :     if ((!((msg__)->ReadSentinel(iter__, 1481862252)))) {
    1353           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mapURIs' (WebBrowserPersistURIMapEntry[]) member of 'WebBrowserPersistURIMap'");
    1354           0 :         return false;
    1355             :     }
    1356           0 :     if ((!(Read((&((v__)->targetBaseURI())), msg__, iter__)))) {
    1357           0 :         FatalError("Error deserializing 'targetBaseURI' (nsCString) member of 'WebBrowserPersistURIMap'");
    1358           0 :         return false;
    1359             :     }
    1360             :     // Sentinel = 'targetBaseURI'
    1361           0 :     if ((!((msg__)->ReadSentinel(iter__, 1355746871)))) {
    1362           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'targetBaseURI' (nsCString) member of 'WebBrowserPersistURIMap'");
    1363           0 :         return false;
    1364             :     }
    1365           0 :     return true;
    1366             : }
    1367             : 
    1368           0 : auto PWebBrowserPersistDocumentParent::Write(
    1369             :         const MIMEInputStreamParams& v__,
    1370             :         Message* msg__) -> void
    1371             : {
    1372           0 :     Write((v__).optionalStream(), msg__);
    1373             :     // Sentinel = 'optionalStream'
    1374           0 :     (msg__)->WriteSentinel(1003718562);
    1375           0 :     Write((v__).headers(), msg__);
    1376             :     // Sentinel = 'headers'
    1377           0 :     (msg__)->WriteSentinel(4284175217);
    1378           0 :     Write((v__).startedReading(), msg__);
    1379             :     // Sentinel = 'startedReading'
    1380           0 :     (msg__)->WriteSentinel(1906875903);
    1381           0 : }
    1382             : 
    1383           0 : auto PWebBrowserPersistDocumentParent::Read(
    1384             :         MIMEInputStreamParams* v__,
    1385             :         const Message* msg__,
    1386             :         PickleIterator* iter__) -> bool
    1387             : {
    1388           0 :     if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
    1389           0 :         FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
    1390           0 :         return false;
    1391             :     }
    1392             :     // Sentinel = 'optionalStream'
    1393           0 :     if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
    1394           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
    1395           0 :         return false;
    1396             :     }
    1397           0 :     if ((!(Read((&((v__)->headers())), msg__, iter__)))) {
    1398           0 :         FatalError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
    1399           0 :         return false;
    1400             :     }
    1401             :     // Sentinel = 'headers'
    1402           0 :     if ((!((msg__)->ReadSentinel(iter__, 4284175217)))) {
    1403           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
    1404           0 :         return false;
    1405             :     }
    1406           0 :     if ((!(Read((&((v__)->startedReading())), msg__, iter__)))) {
    1407           0 :         FatalError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
    1408           0 :         return false;
    1409             :     }
    1410             :     // Sentinel = 'startedReading'
    1411           0 :     if ((!((msg__)->ReadSentinel(iter__, 1906875903)))) {
    1412           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
    1413           0 :         return false;
    1414             :     }
    1415           0 :     return true;
    1416             : }
    1417             : 
    1418           0 : auto PWebBrowserPersistDocumentParent::Write(
    1419             :         const nsTArray<WebBrowserPersistURIMapEntry>& v__,
    1420             :         Message* msg__) -> void
    1421             : {
    1422           0 :     uint32_t length = (v__).Length();
    1423           0 :     Write(length, msg__);
    1424             :     // Sentinel = ('length', 'WebBrowserPersistURIMapEntry[]')
    1425           0 :     (msg__)->WriteSentinel(1891413945);
    1426             : 
    1427           0 :     for (auto& elem : v__) {
    1428           0 :         Write(elem, msg__);
    1429             :         // Sentinel = 'WebBrowserPersistURIMapEntry[]'
    1430           0 :         (msg__)->WriteSentinel(2694758984);
    1431             :     }
    1432           0 : }
    1433             : 
    1434           0 : auto PWebBrowserPersistDocumentParent::Read(
    1435             :         nsTArray<WebBrowserPersistURIMapEntry>* v__,
    1436             :         const Message* msg__,
    1437             :         PickleIterator* iter__) -> bool
    1438             : {
    1439           0 :     nsTArray<WebBrowserPersistURIMapEntry> fa;
    1440             :     uint32_t length;
    1441           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    1442           0 :         mozilla::ipc::ArrayLengthReadError("WebBrowserPersistURIMapEntry[]");
    1443           0 :         return false;
    1444             :     }
    1445             :     // Sentinel = ('length', 'WebBrowserPersistURIMapEntry[]')
    1446           0 :     if ((!((msg__)->ReadSentinel(iter__, 1891413945)))) {
    1447           0 :         mozilla::ipc::SentinelReadError("WebBrowserPersistURIMapEntry[]");
    1448           0 :         return false;
    1449             :     }
    1450             : 
    1451           0 :     WebBrowserPersistURIMapEntry* elems = (fa).AppendElements(length);
    1452           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    1453           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    1454           0 :             FatalError("Error deserializing 'WebBrowserPersistURIMapEntry[i]'");
    1455           0 :             return false;
    1456             :         }
    1457             :         // Sentinel = 'WebBrowserPersistURIMapEntry[]'
    1458           0 :         if ((!((msg__)->ReadSentinel(iter__, 2694758984)))) {
    1459           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'WebBrowserPersistURIMapEntry[i]'");
    1460           0 :             return false;
    1461             :         }
    1462             :     }
    1463           0 :     (v__)->SwapElements(fa);
    1464           0 :     return true;
    1465             : }
    1466             : 
    1467           0 : auto PWebBrowserPersistDocumentParent::Write(
    1468             :         const InputStreamParams& v__,
    1469             :         Message* msg__) -> void
    1470             : {
    1471             :     typedef InputStreamParams type__;
    1472           0 :     Write(int((v__).type()), msg__);
    1473             :     // Sentinel = 'InputStreamParams'
    1474           0 :     (msg__)->WriteSentinel(4114814015);
    1475             : 
    1476           0 :     switch ((v__).type()) {
    1477             :     case type__::TStringInputStreamParams:
    1478             :         {
    1479           0 :             Write((v__).get_StringInputStreamParams(), msg__);
    1480             :             // Sentinel = 'TStringInputStreamParams'
    1481           0 :             (msg__)->WriteSentinel(3395831651);
    1482           0 :             return;
    1483             :         }
    1484             :     case type__::TFileInputStreamParams:
    1485             :         {
    1486           0 :             Write((v__).get_FileInputStreamParams(), msg__);
    1487             :             // Sentinel = 'TFileInputStreamParams'
    1488           0 :             (msg__)->WriteSentinel(2543620282);
    1489           0 :             return;
    1490             :         }
    1491             :     case type__::TTemporaryFileInputStreamParams:
    1492             :         {
    1493           0 :             Write((v__).get_TemporaryFileInputStreamParams(), msg__);
    1494             :             // Sentinel = 'TTemporaryFileInputStreamParams'
    1495           0 :             (msg__)->WriteSentinel(587771548);
    1496           0 :             return;
    1497             :         }
    1498             :     case type__::TBufferedInputStreamParams:
    1499             :         {
    1500           0 :             Write((v__).get_BufferedInputStreamParams(), msg__);
    1501             :             // Sentinel = 'TBufferedInputStreamParams'
    1502           0 :             (msg__)->WriteSentinel(1698289307);
    1503           0 :             return;
    1504             :         }
    1505             :     case type__::TMIMEInputStreamParams:
    1506             :         {
    1507           0 :             Write((v__).get_MIMEInputStreamParams(), msg__);
    1508             :             // Sentinel = 'TMIMEInputStreamParams'
    1509           0 :             (msg__)->WriteSentinel(1948001964);
    1510           0 :             return;
    1511             :         }
    1512             :     case type__::TMultiplexInputStreamParams:
    1513             :         {
    1514           0 :             Write((v__).get_MultiplexInputStreamParams(), msg__);
    1515             :             // Sentinel = 'TMultiplexInputStreamParams'
    1516           0 :             (msg__)->WriteSentinel(3317853213);
    1517           0 :             return;
    1518             :         }
    1519             :     case type__::TSlicedInputStreamParams:
    1520             :         {
    1521           0 :             Write((v__).get_SlicedInputStreamParams(), msg__);
    1522             :             // Sentinel = 'TSlicedInputStreamParams'
    1523           0 :             (msg__)->WriteSentinel(445810472);
    1524           0 :             return;
    1525             :         }
    1526             :     case type__::TIPCBlobInputStreamParams:
    1527             :         {
    1528           0 :             Write((v__).get_IPCBlobInputStreamParams(), msg__);
    1529             :             // Sentinel = 'TIPCBlobInputStreamParams'
    1530           0 :             (msg__)->WriteSentinel(2436989998);
    1531           0 :             return;
    1532             :         }
    1533             :     default:
    1534             :         {
    1535           0 :             FatalError("unknown union type");
    1536           0 :             return;
    1537             :         }
    1538             :     }
    1539             : }
    1540             : 
    1541           0 : auto PWebBrowserPersistDocumentParent::Read(
    1542             :         InputStreamParams* v__,
    1543             :         const Message* msg__,
    1544             :         PickleIterator* iter__) -> bool
    1545             : {
    1546             :     typedef InputStreamParams type__;
    1547             :     int type;
    1548           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1549           0 :         mozilla::ipc::UnionTypeReadError("InputStreamParams");
    1550           0 :         return false;
    1551             :     }
    1552             :     // Sentinel = 'InputStreamParams'
    1553           0 :     if ((!((msg__)->ReadSentinel(iter__, 4114814015)))) {
    1554           0 :         mozilla::ipc::SentinelReadError("InputStreamParams");
    1555           0 :         return false;
    1556             :     }
    1557             : 
    1558           0 :     switch (type) {
    1559             :     case type__::TStringInputStreamParams:
    1560             :         {
    1561           0 :             StringInputStreamParams tmp = StringInputStreamParams();
    1562           0 :             (*(v__)) = tmp;
    1563           0 :             if ((!(Read((&((v__)->get_StringInputStreamParams())), msg__, iter__)))) {
    1564           0 :                 FatalError("Error deserializing Union type");
    1565           0 :                 return false;
    1566             :             }
    1567             :             // Sentinel = 'TStringInputStreamParams'
    1568           0 :             if ((!((msg__)->ReadSentinel(iter__, 3395831651)))) {
    1569           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1570           0 :                 return false;
    1571             :             }
    1572           0 :             return true;
    1573             :         }
    1574             :     case type__::TFileInputStreamParams:
    1575             :         {
    1576           0 :             FileInputStreamParams tmp = FileInputStreamParams();
    1577           0 :             (*(v__)) = tmp;
    1578           0 :             if ((!(Read((&((v__)->get_FileInputStreamParams())), msg__, iter__)))) {
    1579           0 :                 FatalError("Error deserializing Union type");
    1580           0 :                 return false;
    1581             :             }
    1582             :             // Sentinel = 'TFileInputStreamParams'
    1583           0 :             if ((!((msg__)->ReadSentinel(iter__, 2543620282)))) {
    1584           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1585           0 :                 return false;
    1586             :             }
    1587           0 :             return true;
    1588             :         }
    1589             :     case type__::TTemporaryFileInputStreamParams:
    1590             :         {
    1591           0 :             TemporaryFileInputStreamParams tmp = TemporaryFileInputStreamParams();
    1592           0 :             (*(v__)) = tmp;
    1593           0 :             if ((!(Read((&((v__)->get_TemporaryFileInputStreamParams())), msg__, iter__)))) {
    1594           0 :                 FatalError("Error deserializing Union type");
    1595           0 :                 return false;
    1596             :             }
    1597             :             // Sentinel = 'TTemporaryFileInputStreamParams'
    1598           0 :             if ((!((msg__)->ReadSentinel(iter__, 587771548)))) {
    1599           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1600           0 :                 return false;
    1601             :             }
    1602           0 :             return true;
    1603             :         }
    1604             :     case type__::TBufferedInputStreamParams:
    1605             :         {
    1606           0 :             BufferedInputStreamParams tmp = BufferedInputStreamParams();
    1607           0 :             (*(v__)) = tmp;
    1608           0 :             if ((!(Read((&((v__)->get_BufferedInputStreamParams())), msg__, iter__)))) {
    1609           0 :                 FatalError("Error deserializing Union type");
    1610           0 :                 return false;
    1611             :             }
    1612             :             // Sentinel = 'TBufferedInputStreamParams'
    1613           0 :             if ((!((msg__)->ReadSentinel(iter__, 1698289307)))) {
    1614           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1615           0 :                 return false;
    1616             :             }
    1617           0 :             return true;
    1618             :         }
    1619             :     case type__::TMIMEInputStreamParams:
    1620             :         {
    1621           0 :             MIMEInputStreamParams tmp = MIMEInputStreamParams();
    1622           0 :             (*(v__)) = tmp;
    1623           0 :             if ((!(Read((&((v__)->get_MIMEInputStreamParams())), msg__, iter__)))) {
    1624           0 :                 FatalError("Error deserializing Union type");
    1625           0 :                 return false;
    1626             :             }
    1627             :             // Sentinel = 'TMIMEInputStreamParams'
    1628           0 :             if ((!((msg__)->ReadSentinel(iter__, 1948001964)))) {
    1629           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1630           0 :                 return false;
    1631             :             }
    1632           0 :             return true;
    1633             :         }
    1634             :     case type__::TMultiplexInputStreamParams:
    1635             :         {
    1636           0 :             MultiplexInputStreamParams tmp = MultiplexInputStreamParams();
    1637           0 :             (*(v__)) = tmp;
    1638           0 :             if ((!(Read((&((v__)->get_MultiplexInputStreamParams())), msg__, iter__)))) {
    1639           0 :                 FatalError("Error deserializing Union type");
    1640           0 :                 return false;
    1641             :             }
    1642             :             // Sentinel = 'TMultiplexInputStreamParams'
    1643           0 :             if ((!((msg__)->ReadSentinel(iter__, 3317853213)))) {
    1644           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1645           0 :                 return false;
    1646             :             }
    1647           0 :             return true;
    1648             :         }
    1649             :     case type__::TSlicedInputStreamParams:
    1650             :         {
    1651           0 :             SlicedInputStreamParams tmp = SlicedInputStreamParams();
    1652           0 :             (*(v__)) = tmp;
    1653           0 :             if ((!(Read((&((v__)->get_SlicedInputStreamParams())), msg__, iter__)))) {
    1654           0 :                 FatalError("Error deserializing Union type");
    1655           0 :                 return false;
    1656             :             }
    1657             :             // Sentinel = 'TSlicedInputStreamParams'
    1658           0 :             if ((!((msg__)->ReadSentinel(iter__, 445810472)))) {
    1659           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1660           0 :                 return false;
    1661             :             }
    1662           0 :             return true;
    1663             :         }
    1664             :     case type__::TIPCBlobInputStreamParams:
    1665             :         {
    1666           0 :             IPCBlobInputStreamParams tmp = IPCBlobInputStreamParams();
    1667           0 :             (*(v__)) = tmp;
    1668           0 :             if ((!(Read((&((v__)->get_IPCBlobInputStreamParams())), msg__, iter__)))) {
    1669           0 :                 FatalError("Error deserializing Union type");
    1670           0 :                 return false;
    1671             :             }
    1672             :             // Sentinel = 'TIPCBlobInputStreamParams'
    1673           0 :             if ((!((msg__)->ReadSentinel(iter__, 2436989998)))) {
    1674           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1675           0 :                 return false;
    1676             :             }
    1677           0 :             return true;
    1678             :         }
    1679             :     default:
    1680             :         {
    1681           0 :             FatalError("unknown union type");
    1682           0 :             return false;
    1683             :         }
    1684             :     }
    1685             : }
    1686             : 
    1687           0 : auto PWebBrowserPersistDocumentParent::Write(
    1688             :         const PParentToChildStreamParent* v__,
    1689             :         Message* msg__,
    1690             :         bool nullable__) -> void
    1691             : {
    1692             :     int32_t id;
    1693           0 :     if ((!(v__))) {
    1694           0 :         if ((!(nullable__))) {
    1695           0 :             FatalError("NULL actor value passed to non-nullable param");
    1696             :         }
    1697           0 :         id = 0;
    1698             :     }
    1699             :     else {
    1700           0 :         id = (v__)->Id();
    1701           0 :         if ((1) == (id)) {
    1702           0 :             FatalError("actor has been |delete|d");
    1703             :         }
    1704             :     }
    1705             : 
    1706           0 :     Write(id, msg__);
    1707           0 : }
    1708             : 
    1709           0 : auto PWebBrowserPersistDocumentParent::Read(
    1710             :         PParentToChildStreamParent** v__,
    1711             :         const Message* msg__,
    1712             :         PickleIterator* iter__,
    1713             :         bool nullable__) -> bool
    1714             : {
    1715           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PParentToChildStream", PParentToChildStreamMsgStart);
    1716           0 :     if ((actor).isNothing()) {
    1717           0 :         return false;
    1718             :     }
    1719             : 
    1720           0 :     (*(v__)) = static_cast<PParentToChildStreamParent*>((actor).value());
    1721           0 :     return true;
    1722             : }
    1723             : 
    1724           0 : auto PWebBrowserPersistDocumentParent::Write(
    1725             :         const IPCStream& v__,
    1726             :         Message* msg__) -> void
    1727             : {
    1728             :     typedef IPCStream type__;
    1729           0 :     Write(int((v__).type()), msg__);
    1730             :     // Sentinel = 'IPCStream'
    1731           0 :     (msg__)->WriteSentinel(442610715);
    1732             : 
    1733           0 :     switch ((v__).type()) {
    1734             :     case type__::TInputStreamParamsWithFds:
    1735             :         {
    1736           0 :             Write((v__).get_InputStreamParamsWithFds(), msg__);
    1737             :             // Sentinel = 'TInputStreamParamsWithFds'
    1738           0 :             (msg__)->WriteSentinel(2170706066);
    1739           0 :             return;
    1740             :         }
    1741             :     case type__::TIPCRemoteStream:
    1742             :         {
    1743           0 :             Write((v__).get_IPCRemoteStream(), msg__);
    1744             :             // Sentinel = 'TIPCRemoteStream'
    1745           0 :             (msg__)->WriteSentinel(2978132448);
    1746           0 :             return;
    1747             :         }
    1748             :     default:
    1749             :         {
    1750           0 :             FatalError("unknown union type");
    1751           0 :             return;
    1752             :         }
    1753             :     }
    1754             : }
    1755             : 
    1756           0 : auto PWebBrowserPersistDocumentParent::Read(
    1757             :         IPCStream* v__,
    1758             :         const Message* msg__,
    1759             :         PickleIterator* iter__) -> bool
    1760             : {
    1761             :     typedef IPCStream type__;
    1762             :     int type;
    1763           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1764           0 :         mozilla::ipc::UnionTypeReadError("IPCStream");
    1765           0 :         return false;
    1766             :     }
    1767             :     // Sentinel = 'IPCStream'
    1768           0 :     if ((!((msg__)->ReadSentinel(iter__, 442610715)))) {
    1769           0 :         mozilla::ipc::SentinelReadError("IPCStream");
    1770           0 :         return false;
    1771             :     }
    1772             : 
    1773           0 :     switch (type) {
    1774             :     case type__::TInputStreamParamsWithFds:
    1775             :         {
    1776           0 :             InputStreamParamsWithFds tmp = InputStreamParamsWithFds();
    1777           0 :             (*(v__)) = tmp;
    1778           0 :             if ((!(Read((&((v__)->get_InputStreamParamsWithFds())), msg__, iter__)))) {
    1779           0 :                 FatalError("Error deserializing Union type");
    1780           0 :                 return false;
    1781             :             }
    1782             :             // Sentinel = 'TInputStreamParamsWithFds'
    1783           0 :             if ((!((msg__)->ReadSentinel(iter__, 2170706066)))) {
    1784           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1785           0 :                 return false;
    1786             :             }
    1787           0 :             return true;
    1788             :         }
    1789             :     case type__::TIPCRemoteStream:
    1790             :         {
    1791           0 :             IPCRemoteStream tmp = IPCRemoteStream();
    1792           0 :             (*(v__)) = tmp;
    1793           0 :             if ((!(Read((&((v__)->get_IPCRemoteStream())), msg__, iter__)))) {
    1794           0 :                 FatalError("Error deserializing Union type");
    1795           0 :                 return false;
    1796             :             }
    1797             :             // Sentinel = 'TIPCRemoteStream'
    1798           0 :             if ((!((msg__)->ReadSentinel(iter__, 2978132448)))) {
    1799           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1800           0 :                 return false;
    1801             :             }
    1802           0 :             return true;
    1803             :         }
    1804             :     default:
    1805             :         {
    1806           0 :             FatalError("unknown union type");
    1807           0 :             return false;
    1808             :         }
    1809             :     }
    1810             : }
    1811             : 
    1812           0 : auto PWebBrowserPersistDocumentParent::Write(
    1813             :         const OptionalIPCStream& v__,
    1814             :         Message* msg__) -> void
    1815             : {
    1816             :     typedef OptionalIPCStream type__;
    1817           0 :     Write(int((v__).type()), msg__);
    1818             :     // Sentinel = 'OptionalIPCStream'
    1819           0 :     (msg__)->WriteSentinel(3815982647);
    1820             : 
    1821           0 :     switch ((v__).type()) {
    1822             :     case type__::TIPCStream:
    1823             :         {
    1824           0 :             Write((v__).get_IPCStream(), msg__);
    1825             :             // Sentinel = 'TIPCStream'
    1826           0 :             (msg__)->WriteSentinel(40701900);
    1827           0 :             return;
    1828             :         }
    1829             :     case type__::Tvoid_t:
    1830             :         {
    1831           0 :             Write((v__).get_void_t(), msg__);
    1832             :             // Sentinel = 'Tvoid_t'
    1833           0 :             (msg__)->WriteSentinel(3041273328);
    1834           0 :             return;
    1835             :         }
    1836             :     default:
    1837             :         {
    1838           0 :             FatalError("unknown union type");
    1839           0 :             return;
    1840             :         }
    1841             :     }
    1842             : }
    1843             : 
    1844           0 : auto PWebBrowserPersistDocumentParent::Read(
    1845             :         OptionalIPCStream* v__,
    1846             :         const Message* msg__,
    1847             :         PickleIterator* iter__) -> bool
    1848             : {
    1849             :     typedef OptionalIPCStream type__;
    1850             :     int type;
    1851           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1852           0 :         mozilla::ipc::UnionTypeReadError("OptionalIPCStream");
    1853           0 :         return false;
    1854             :     }
    1855             :     // Sentinel = 'OptionalIPCStream'
    1856           0 :     if ((!((msg__)->ReadSentinel(iter__, 3815982647)))) {
    1857           0 :         mozilla::ipc::SentinelReadError("OptionalIPCStream");
    1858           0 :         return false;
    1859             :     }
    1860             : 
    1861           0 :     switch (type) {
    1862             :     case type__::TIPCStream:
    1863             :         {
    1864           0 :             IPCStream tmp = IPCStream();
    1865           0 :             (*(v__)) = tmp;
    1866           0 :             if ((!(Read((&((v__)->get_IPCStream())), msg__, iter__)))) {
    1867           0 :                 FatalError("Error deserializing Union type");
    1868           0 :                 return false;
    1869             :             }
    1870             :             // Sentinel = 'TIPCStream'
    1871           0 :             if ((!((msg__)->ReadSentinel(iter__, 40701900)))) {
    1872           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1873           0 :                 return false;
    1874             :             }
    1875           0 :             return true;
    1876             :         }
    1877             :     case type__::Tvoid_t:
    1878             :         {
    1879             :             void_t tmp = void_t();
    1880           0 :             (*(v__)) = tmp;
    1881           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
    1882           0 :                 FatalError("Error deserializing Union type");
    1883           0 :                 return false;
    1884             :             }
    1885             :             // Sentinel = 'Tvoid_t'
    1886           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
    1887           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1888           0 :                 return false;
    1889             :             }
    1890           0 :             return true;
    1891             :         }
    1892             :     default:
    1893             :         {
    1894           0 :             FatalError("unknown union type");
    1895           0 :             return false;
    1896             :         }
    1897             :     }
    1898             : }
    1899             : 
    1900           0 : auto PWebBrowserPersistDocumentParent::Write(
    1901             :         const StringInputStreamParams& v__,
    1902             :         Message* msg__) -> void
    1903             : {
    1904           0 :     Write((v__).data(), msg__);
    1905             :     // Sentinel = 'data'
    1906           0 :     (msg__)->WriteSentinel(843352540);
    1907           0 : }
    1908             : 
    1909           0 : auto PWebBrowserPersistDocumentParent::Read(
    1910             :         StringInputStreamParams* v__,
    1911             :         const Message* msg__,
    1912             :         PickleIterator* iter__) -> bool
    1913             : {
    1914           0 :     if ((!(Read((&((v__)->data())), msg__, iter__)))) {
    1915           0 :         FatalError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
    1916           0 :         return false;
    1917             :     }
    1918             :     // Sentinel = 'data'
    1919           0 :     if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
    1920           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
    1921           0 :         return false;
    1922             :     }
    1923           0 :     return true;
    1924             : }
    1925             : 
    1926           0 : auto PWebBrowserPersistDocumentParent::Write(
    1927             :         const MultiplexInputStreamParams& v__,
    1928             :         Message* msg__) -> void
    1929             : {
    1930           0 :     Write((v__).streams(), msg__);
    1931             :     // Sentinel = 'streams'
    1932           0 :     (msg__)->WriteSentinel(4240383220);
    1933           0 :     Write((v__).currentStream(), msg__);
    1934             :     // Sentinel = 'currentStream'
    1935           0 :     (msg__)->WriteSentinel(682778074);
    1936           0 :     Write((v__).status(), msg__);
    1937             :     // Sentinel = 'status'
    1938           0 :     (msg__)->WriteSentinel(3714608576);
    1939           0 :     Write((v__).startedReadingCurrent(), msg__);
    1940             :     // Sentinel = 'startedReadingCurrent'
    1941           0 :     (msg__)->WriteSentinel(970542033);
    1942           0 : }
    1943             : 
    1944           0 : auto PWebBrowserPersistDocumentParent::Read(
    1945             :         MultiplexInputStreamParams* v__,
    1946             :         const Message* msg__,
    1947             :         PickleIterator* iter__) -> bool
    1948             : {
    1949           0 :     if ((!(Read((&((v__)->streams())), msg__, iter__)))) {
    1950           0 :         FatalError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
    1951           0 :         return false;
    1952             :     }
    1953             :     // Sentinel = 'streams'
    1954           0 :     if ((!((msg__)->ReadSentinel(iter__, 4240383220)))) {
    1955           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
    1956           0 :         return false;
    1957             :     }
    1958           0 :     if ((!(Read((&((v__)->currentStream())), msg__, iter__)))) {
    1959           0 :         FatalError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
    1960           0 :         return false;
    1961             :     }
    1962             :     // Sentinel = 'currentStream'
    1963           0 :     if ((!((msg__)->ReadSentinel(iter__, 682778074)))) {
    1964           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
    1965           0 :         return false;
    1966             :     }
    1967           0 :     if ((!(Read((&((v__)->status())), msg__, iter__)))) {
    1968           0 :         FatalError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
    1969           0 :         return false;
    1970             :     }
    1971             :     // Sentinel = 'status'
    1972           0 :     if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
    1973           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
    1974           0 :         return false;
    1975             :     }
    1976           0 :     if ((!(Read((&((v__)->startedReadingCurrent())), msg__, iter__)))) {
    1977           0 :         FatalError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
    1978           0 :         return false;
    1979             :     }
    1980             :     // Sentinel = 'startedReadingCurrent'
    1981           0 :     if ((!((msg__)->ReadSentinel(iter__, 970542033)))) {
    1982           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
    1983           0 :         return false;
    1984             :     }
    1985           0 :     return true;
    1986             : }
    1987             : 
    1988           0 : auto PWebBrowserPersistDocumentParent::Write(
    1989             :         const PFileDescriptorSetParent* v__,
    1990             :         Message* msg__,
    1991             :         bool nullable__) -> void
    1992             : {
    1993             :     int32_t id;
    1994           0 :     if ((!(v__))) {
    1995           0 :         if ((!(nullable__))) {
    1996           0 :             FatalError("NULL actor value passed to non-nullable param");
    1997             :         }
    1998           0 :         id = 0;
    1999             :     }
    2000             :     else {
    2001           0 :         id = (v__)->Id();
    2002           0 :         if ((1) == (id)) {
    2003           0 :             FatalError("actor has been |delete|d");
    2004             :         }
    2005             :     }
    2006             : 
    2007           0 :     Write(id, msg__);
    2008           0 : }
    2009             : 
    2010           0 : auto PWebBrowserPersistDocumentParent::Read(
    2011             :         PFileDescriptorSetParent** v__,
    2012             :         const Message* msg__,
    2013             :         PickleIterator* iter__,
    2014             :         bool nullable__) -> bool
    2015             : {
    2016           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PFileDescriptorSet", PFileDescriptorSetMsgStart);
    2017           0 :     if ((actor).isNothing()) {
    2018           0 :         return false;
    2019             :     }
    2020             : 
    2021           0 :     (*(v__)) = static_cast<PFileDescriptorSetParent*>((actor).value());
    2022           0 :     return true;
    2023             : }
    2024             : 
    2025           0 : auto PWebBrowserPersistDocumentParent::Write(
    2026             :         const OptionalFileDescriptorSet& v__,
    2027             :         Message* msg__) -> void
    2028             : {
    2029             :     typedef OptionalFileDescriptorSet type__;
    2030           0 :     Write(int((v__).type()), msg__);
    2031             :     // Sentinel = 'OptionalFileDescriptorSet'
    2032           0 :     (msg__)->WriteSentinel(955222862);
    2033             : 
    2034           0 :     switch ((v__).type()) {
    2035             :     case type__::TPFileDescriptorSetParent:
    2036             :         {
    2037           0 :             Write((v__).get_PFileDescriptorSetParent(), msg__, false);
    2038             :             // Sentinel = 'TPFileDescriptorSetParent'
    2039           0 :             (msg__)->WriteSentinel(143041934);
    2040           0 :             return;
    2041             :         }
    2042             :     case type__::TPFileDescriptorSetChild:
    2043             :         {
    2044           0 :             FatalError("wrong side!");
    2045           0 :             return;
    2046             :         }
    2047             :     case type__::TArrayOfFileDescriptor:
    2048             :         {
    2049           0 :             Write((v__).get_ArrayOfFileDescriptor(), msg__);
    2050             :             // Sentinel = 'TArrayOfFileDescriptor'
    2051           0 :             (msg__)->WriteSentinel(2366096715);
    2052           0 :             return;
    2053             :         }
    2054             :     case type__::Tvoid_t:
    2055             :         {
    2056           0 :             Write((v__).get_void_t(), msg__);
    2057             :             // Sentinel = 'Tvoid_t'
    2058           0 :             (msg__)->WriteSentinel(3041273328);
    2059           0 :             return;
    2060             :         }
    2061             :     default:
    2062             :         {
    2063           0 :             FatalError("unknown union type");
    2064           0 :             return;
    2065             :         }
    2066             :     }
    2067             : }
    2068             : 
    2069           0 : auto PWebBrowserPersistDocumentParent::Read(
    2070             :         OptionalFileDescriptorSet* v__,
    2071             :         const Message* msg__,
    2072             :         PickleIterator* iter__) -> bool
    2073             : {
    2074             :     typedef OptionalFileDescriptorSet type__;
    2075             :     int type;
    2076           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    2077           0 :         mozilla::ipc::UnionTypeReadError("OptionalFileDescriptorSet");
    2078           0 :         return false;
    2079             :     }
    2080             :     // Sentinel = 'OptionalFileDescriptorSet'
    2081           0 :     if ((!((msg__)->ReadSentinel(iter__, 955222862)))) {
    2082           0 :         mozilla::ipc::SentinelReadError("OptionalFileDescriptorSet");
    2083           0 :         return false;
    2084             :     }
    2085             : 
    2086           0 :     switch (type) {
    2087             :     case type__::TPFileDescriptorSetParent:
    2088             :         {
    2089           0 :             return false;
    2090             :         }
    2091             :     case type__::TPFileDescriptorSetChild:
    2092             :         {
    2093           0 :             PFileDescriptorSetParent* tmp = nullptr;
    2094           0 :             (*(v__)) = tmp;
    2095           0 :             if ((!(Read((&((v__)->get_PFileDescriptorSetParent())), msg__, iter__, false)))) {
    2096           0 :                 FatalError("Error deserializing Union type");
    2097           0 :                 return false;
    2098             :             }
    2099             :             // Sentinel = 'TPFileDescriptorSetChild'
    2100           0 :             if ((!((msg__)->ReadSentinel(iter__, 3477929935)))) {
    2101           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2102           0 :                 return false;
    2103             :             }
    2104           0 :             return true;
    2105             :         }
    2106             :     case type__::TArrayOfFileDescriptor:
    2107             :         {
    2108           0 :             nsTArray<FileDescriptor> tmp;
    2109           0 :             (*(v__)) = tmp;
    2110           0 :             if ((!(Read((&((v__)->get_ArrayOfFileDescriptor())), msg__, iter__)))) {
    2111           0 :                 FatalError("Error deserializing Union type");
    2112           0 :                 return false;
    2113             :             }
    2114             :             // Sentinel = 'TArrayOfFileDescriptor'
    2115           0 :             if ((!((msg__)->ReadSentinel(iter__, 2366096715)))) {
    2116           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2117           0 :                 return false;
    2118             :             }
    2119           0 :             return true;
    2120             :         }
    2121             :     case type__::Tvoid_t:
    2122             :         {
    2123             :             void_t tmp = void_t();
    2124           0 :             (*(v__)) = tmp;
    2125           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
    2126           0 :                 FatalError("Error deserializing Union type");
    2127           0 :                 return false;
    2128             :             }
    2129             :             // Sentinel = 'Tvoid_t'
    2130           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
    2131           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2132           0 :                 return false;
    2133             :             }
    2134           0 :             return true;
    2135             :         }
    2136             :     default:
    2137             :         {
    2138           0 :             FatalError("unknown union type");
    2139           0 :             return false;
    2140             :         }
    2141             :     }
    2142             : }
    2143             : 
    2144           0 : auto PWebBrowserPersistDocumentParent::Write(
    2145             :         const FileDescriptor& v__,
    2146             :         Message* msg__) -> void
    2147             : {
    2148           0 :     FileDescriptor::PickleType pfd = (v__).ShareTo(FileDescriptor::IPDLPrivate(), OtherPid());
    2149           0 :     IPC::WriteParam(msg__, pfd);
    2150           0 : }
    2151             : 
    2152           0 : auto PWebBrowserPersistDocumentParent::Read(
    2153             :         FileDescriptor* v__,
    2154             :         const Message* msg__,
    2155             :         PickleIterator* iter__) -> bool
    2156             : {
    2157           0 :     FileDescriptor::PickleType pfd;
    2158           0 :     if ((!(IPC::ReadParam(msg__, iter__, (&(pfd)))))) {
    2159           0 :         return false;
    2160             :     }
    2161             : 
    2162           0 :     FileDescriptor fd = FileDescriptor(FileDescriptor::IPDLPrivate(), pfd);
    2163           0 :     if ((!((fd).IsValid()))) {
    2164           0 :         mozilla::ipc::ProtocolErrorBreakpoint("[PWebBrowserPersistDocumentParent] Received an invalid file descriptor!");
    2165             :     }
    2166             : 
    2167           0 :     (*(v__)) = fd;
    2168           0 :     return true;
    2169             : }
    2170             : 
    2171           0 : auto PWebBrowserPersistDocumentParent::Write(
    2172             :         const BufferedInputStreamParams& v__,
    2173             :         Message* msg__) -> void
    2174             : {
    2175           0 :     Write((v__).optionalStream(), msg__);
    2176             :     // Sentinel = 'optionalStream'
    2177           0 :     (msg__)->WriteSentinel(1003718562);
    2178           0 :     Write((v__).bufferSize(), msg__);
    2179             :     // Sentinel = 'bufferSize'
    2180           0 :     (msg__)->WriteSentinel(3444538779);
    2181           0 : }
    2182             : 
    2183           0 : auto PWebBrowserPersistDocumentParent::Read(
    2184             :         BufferedInputStreamParams* v__,
    2185             :         const Message* msg__,
    2186             :         PickleIterator* iter__) -> bool
    2187             : {
    2188           0 :     if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
    2189           0 :         FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
    2190           0 :         return false;
    2191             :     }
    2192             :     // Sentinel = 'optionalStream'
    2193           0 :     if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
    2194           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
    2195           0 :         return false;
    2196             :     }
    2197           0 :     if ((!(Read((&((v__)->bufferSize())), msg__, iter__)))) {
    2198           0 :         FatalError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
    2199           0 :         return false;
    2200             :     }
    2201             :     // Sentinel = 'bufferSize'
    2202           0 :     if ((!((msg__)->ReadSentinel(iter__, 3444538779)))) {
    2203           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
    2204           0 :         return false;
    2205             :     }
    2206           0 :     return true;
    2207             : }
    2208             : 
    2209           0 : auto PWebBrowserPersistDocumentParent::Write(
    2210             :         const HeaderEntry& v__,
    2211             :         Message* msg__) -> void
    2212             : {
    2213           0 :     Write((v__).name(), msg__);
    2214             :     // Sentinel = 'name'
    2215           0 :     (msg__)->WriteSentinel(15034981);
    2216           0 :     Write((v__).value(), msg__);
    2217             :     // Sentinel = 'value'
    2218           0 :     (msg__)->WriteSentinel(3456818542);
    2219           0 : }
    2220             : 
    2221           0 : auto PWebBrowserPersistDocumentParent::Read(
    2222             :         HeaderEntry* v__,
    2223             :         const Message* msg__,
    2224             :         PickleIterator* iter__) -> bool
    2225             : {
    2226           0 :     if ((!(Read((&((v__)->name())), msg__, iter__)))) {
    2227           0 :         FatalError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
    2228           0 :         return false;
    2229             :     }
    2230             :     // Sentinel = 'name'
    2231           0 :     if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
    2232           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
    2233           0 :         return false;
    2234             :     }
    2235           0 :     if ((!(Read((&((v__)->value())), msg__, iter__)))) {
    2236           0 :         FatalError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
    2237           0 :         return false;
    2238             :     }
    2239             :     // Sentinel = 'value'
    2240           0 :     if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
    2241           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
    2242           0 :         return false;
    2243             :     }
    2244           0 :     return true;
    2245             : }
    2246             : 
    2247           0 : auto PWebBrowserPersistDocumentParent::Write(
    2248             :         const PChildToParentStreamParent* v__,
    2249             :         Message* msg__,
    2250             :         bool nullable__) -> void
    2251             : {
    2252             :     int32_t id;
    2253           0 :     if ((!(v__))) {
    2254           0 :         if ((!(nullable__))) {
    2255           0 :             FatalError("NULL actor value passed to non-nullable param");
    2256             :         }
    2257           0 :         id = 0;
    2258             :     }
    2259             :     else {
    2260           0 :         id = (v__)->Id();
    2261           0 :         if ((1) == (id)) {
    2262           0 :             FatalError("actor has been |delete|d");
    2263             :         }
    2264             :     }
    2265             : 
    2266           0 :     Write(id, msg__);
    2267           0 : }
    2268             : 
    2269           0 : auto PWebBrowserPersistDocumentParent::Read(
    2270             :         PChildToParentStreamParent** v__,
    2271             :         const Message* msg__,
    2272             :         PickleIterator* iter__,
    2273             :         bool nullable__) -> bool
    2274             : {
    2275           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PChildToParentStream", PChildToParentStreamMsgStart);
    2276           0 :     if ((actor).isNothing()) {
    2277           0 :         return false;
    2278             :     }
    2279             : 
    2280           0 :     (*(v__)) = static_cast<PChildToParentStreamParent*>((actor).value());
    2281           0 :     return true;
    2282             : }
    2283             : 
    2284             : 
    2285             : 
    2286             : } // namespace mozilla

Generated by: LCOV version 1.13