LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PWebSocketParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 2155 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 117 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/net/PWebSocketParent.h"
       8             : #include "SerializedLoadContext.h"
       9             : #include "ipc/IPCMessageUtils.h"
      10             : 
      11             : #include "mozilla/net/PNeckoParent.h"
      12             : #include "mozilla/dom/PBrowserParent.h"
      13             : #include "mozilla/net/PTransportProviderParent.h"
      14             : #include "mozilla/ipc/PFileDescriptorSetParent.h"
      15             : #include "mozilla/ipc/PChildToParentStreamParent.h"
      16             : #include "mozilla/ipc/PParentToChildStreamParent.h"
      17             : 
      18             : #include "nsIFile.h"
      19             : #include "GeckoProfiler.h"
      20             : 
      21             : namespace mozilla {
      22             : namespace net {
      23             : 
      24             : 
      25             : 
      26           0 : MOZ_IMPLICIT PWebSocketParent::PWebSocketParent() :
      27             :     mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
      28           0 :     mState(PWebSocket::__Dead)
      29             : {
      30           0 :     MOZ_COUNT_CTOR(PWebSocketParent);
      31           0 : }
      32             : 
      33           0 : PWebSocketParent::~PWebSocketParent()
      34             : {
      35           0 :     MOZ_COUNT_DTOR(PWebSocketParent);
      36           0 : }
      37             : 
      38           0 : auto PWebSocketParent::Manager() const -> PNeckoParent*
      39             : {
      40           0 :     return static_cast<PNeckoParent*>(IProtocol::Manager());
      41             : }
      42             : 
      43           0 : auto PWebSocketParent::SendOnStart(
      44             :         const nsCString& aProtocol,
      45             :         const nsCString& aExtensions,
      46             :         const nsString& aEffectiveURL,
      47             :         const bool& aEncrypted) -> bool
      48             : {
      49           0 :     IPC::Message* msg__ = PWebSocket::Msg_OnStart(Id());
      50             : 
      51           0 :     Write(aProtocol, msg__);
      52             :     // Sentinel = 'aProtocol'
      53           0 :     (msg__)->WriteSentinel(3505310484);
      54           0 :     Write(aExtensions, msg__);
      55             :     // Sentinel = 'aExtensions'
      56           0 :     (msg__)->WriteSentinel(805668716);
      57           0 :     Write(aEffectiveURL, msg__);
      58             :     // Sentinel = 'aEffectiveURL'
      59           0 :     (msg__)->WriteSentinel(2123459946);
      60           0 :     Write(aEncrypted, msg__);
      61             :     // Sentinel = 'aEncrypted'
      62           0 :     (msg__)->WriteSentinel(3962043913);
      63             : 
      64             : 
      65             : 
      66             : 
      67           0 :     if (mozilla::ipc::LoggingEnabledFor("PWebSocketParent")) {
      68           0 :         mozilla::ipc::LogMessageForProtocol("PWebSocketParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      69             :     }
      70           0 :     AUTO_PROFILER_LABEL("PWebSocket::Msg_OnStart", OTHER);
      71           0 :     PWebSocket::Transition(PWebSocket::Msg_OnStart__ID, (&(mState)));
      72             : 
      73           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      74           0 :     return sendok__;
      75             : }
      76             : 
      77           0 : auto PWebSocketParent::SendOnStop(const nsresult& aStatusCode) -> bool
      78             : {
      79           0 :     IPC::Message* msg__ = PWebSocket::Msg_OnStop(Id());
      80             : 
      81           0 :     Write(aStatusCode, msg__);
      82             :     // Sentinel = 'aStatusCode'
      83           0 :     (msg__)->WriteSentinel(3484261911);
      84             : 
      85             : 
      86             : 
      87             : 
      88           0 :     if (mozilla::ipc::LoggingEnabledFor("PWebSocketParent")) {
      89           0 :         mozilla::ipc::LogMessageForProtocol("PWebSocketParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      90             :     }
      91           0 :     AUTO_PROFILER_LABEL("PWebSocket::Msg_OnStop", OTHER);
      92           0 :     PWebSocket::Transition(PWebSocket::Msg_OnStop__ID, (&(mState)));
      93             : 
      94           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      95           0 :     return sendok__;
      96             : }
      97             : 
      98           0 : auto PWebSocketParent::SendOnMessageAvailable(const nsCString& aMsg) -> bool
      99             : {
     100           0 :     IPC::Message* msg__ = PWebSocket::Msg_OnMessageAvailable(Id());
     101             : 
     102           0 :     Write(aMsg, msg__);
     103             :     // Sentinel = 'aMsg'
     104           0 :     (msg__)->WriteSentinel(3584578888);
     105             : 
     106             : 
     107             : 
     108             : 
     109           0 :     if (mozilla::ipc::LoggingEnabledFor("PWebSocketParent")) {
     110           0 :         mozilla::ipc::LogMessageForProtocol("PWebSocketParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     111             :     }
     112           0 :     AUTO_PROFILER_LABEL("PWebSocket::Msg_OnMessageAvailable", OTHER);
     113           0 :     PWebSocket::Transition(PWebSocket::Msg_OnMessageAvailable__ID, (&(mState)));
     114             : 
     115           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     116           0 :     return sendok__;
     117             : }
     118             : 
     119           0 : auto PWebSocketParent::SendOnBinaryMessageAvailable(const nsCString& aMsg) -> bool
     120             : {
     121           0 :     IPC::Message* msg__ = PWebSocket::Msg_OnBinaryMessageAvailable(Id());
     122             : 
     123           0 :     Write(aMsg, msg__);
     124             :     // Sentinel = 'aMsg'
     125           0 :     (msg__)->WriteSentinel(3584578888);
     126             : 
     127             : 
     128             : 
     129             : 
     130           0 :     if (mozilla::ipc::LoggingEnabledFor("PWebSocketParent")) {
     131           0 :         mozilla::ipc::LogMessageForProtocol("PWebSocketParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     132             :     }
     133           0 :     AUTO_PROFILER_LABEL("PWebSocket::Msg_OnBinaryMessageAvailable", OTHER);
     134           0 :     PWebSocket::Transition(PWebSocket::Msg_OnBinaryMessageAvailable__ID, (&(mState)));
     135             : 
     136           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     137           0 :     return sendok__;
     138             : }
     139             : 
     140           0 : auto PWebSocketParent::SendOnAcknowledge(const uint32_t& aSize) -> bool
     141             : {
     142           0 :     IPC::Message* msg__ = PWebSocket::Msg_OnAcknowledge(Id());
     143             : 
     144           0 :     Write(aSize, msg__);
     145             :     // Sentinel = 'aSize'
     146           0 :     (msg__)->WriteSentinel(2556665555);
     147             : 
     148             : 
     149             : 
     150             : 
     151           0 :     if (mozilla::ipc::LoggingEnabledFor("PWebSocketParent")) {
     152           0 :         mozilla::ipc::LogMessageForProtocol("PWebSocketParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     153             :     }
     154           0 :     AUTO_PROFILER_LABEL("PWebSocket::Msg_OnAcknowledge", OTHER);
     155           0 :     PWebSocket::Transition(PWebSocket::Msg_OnAcknowledge__ID, (&(mState)));
     156             : 
     157           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     158           0 :     return sendok__;
     159             : }
     160             : 
     161           0 : auto PWebSocketParent::SendOnServerClose(
     162             :         const uint16_t& code,
     163             :         const nsCString& aReason) -> bool
     164             : {
     165           0 :     IPC::Message* msg__ = PWebSocket::Msg_OnServerClose(Id());
     166             : 
     167           0 :     Write(code, msg__);
     168             :     // Sentinel = 'code'
     169           0 :     (msg__)->WriteSentinel(3318913027);
     170           0 :     Write(aReason, msg__);
     171             :     // Sentinel = 'aReason'
     172           0 :     (msg__)->WriteSentinel(829905706);
     173             : 
     174             : 
     175             : 
     176             : 
     177           0 :     if (mozilla::ipc::LoggingEnabledFor("PWebSocketParent")) {
     178           0 :         mozilla::ipc::LogMessageForProtocol("PWebSocketParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     179             :     }
     180           0 :     AUTO_PROFILER_LABEL("PWebSocket::Msg_OnServerClose", OTHER);
     181           0 :     PWebSocket::Transition(PWebSocket::Msg_OnServerClose__ID, (&(mState)));
     182             : 
     183           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     184           0 :     return sendok__;
     185             : }
     186             : 
     187           0 : auto PWebSocketParent::Send__delete__(PWebSocketParent* actor) -> bool
     188             : {
     189           0 :     if ((!(actor))) {
     190           0 :         return false;
     191             :     }
     192             : 
     193           0 :     IPC::Message* msg__ = PWebSocket::Msg___delete__((actor)->Id());
     194             : 
     195           0 :     (actor)->Write(actor, msg__, false);
     196             :     // Sentinel = 'actor'
     197           0 :     (msg__)->WriteSentinel(875202478);
     198             : 
     199             : 
     200             : 
     201           0 :     if (mozilla::ipc::LoggingEnabledFor("PWebSocketParent")) {
     202           0 :         mozilla::ipc::LogMessageForProtocol("PWebSocketParent", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     203             :     }
     204           0 :     AUTO_PROFILER_LABEL("PWebSocket::Msg___delete__", OTHER);
     205           0 :     PWebSocket::Transition(PWebSocket::Msg___delete____ID, (&((actor)->mState)));
     206             : 
     207           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
     208             : 
     209           0 :     IProtocol* mgr = (actor)->Manager();
     210           0 :     (actor)->DestroySubtree(Deletion);
     211           0 :     (actor)->DeallocSubtree();
     212           0 :     (mgr)->RemoveManagee(PWebSocketMsgStart, actor);
     213           0 :     return sendok__;
     214             : }
     215             : 
     216           0 : auto PWebSocketParent::RemoveManagee(
     217             :         int32_t aProtocolId,
     218             :         ProtocolBase* aListener) -> void
     219             : {
     220           0 :     FatalError("unreached");
     221           0 :     return;
     222             : }
     223             : 
     224           0 : auto PWebSocketParent::OnMessageReceived(const Message& msg__) -> PWebSocketParent::Result
     225             : {
     226           0 :     switch ((msg__).type()) {
     227             :     case PWebSocket::Msg_AsyncOpen__ID:
     228             :         {
     229           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebSocketParent")) {
     230           0 :                 mozilla::ipc::LogMessageForProtocol("PWebSocketParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     231             :             }
     232           0 :             AUTO_PROFILER_LABEL("PWebSocket::Msg_AsyncOpen", OTHER);
     233             : 
     234           0 :             PickleIterator iter__(msg__);
     235           0 :             OptionalURIParams aURI;
     236           0 :             nsCString aOrigin;
     237             :             uint64_t aInnerWindowID;
     238           0 :             nsCString aProtocol;
     239             :             bool aSecure;
     240             :             uint32_t aPingInterval;
     241             :             bool aClientSetPingInterval;
     242             :             uint32_t aPingTimeout;
     243             :             bool aClientSetPingTimeout;
     244           0 :             OptionalLoadInfoArgs aLoadInfoArgs;
     245           0 :             OptionalTransportProvider aProvider;
     246           0 :             nsCString aNegotiatedExtensions;
     247             : 
     248           0 :             if ((!(Read((&(aURI)), (&(msg__)), (&(iter__)))))) {
     249           0 :                 FatalError("Error deserializing 'OptionalURIParams'");
     250           0 :                 return MsgValueError;
     251             :             }
     252             :             // Sentinel = 'aURI'
     253           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2075506333)))) {
     254           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'");
     255           0 :                 return MsgValueError;
     256             :             }
     257           0 :             if ((!(Read((&(aOrigin)), (&(msg__)), (&(iter__)))))) {
     258           0 :                 FatalError("Error deserializing 'nsCString'");
     259           0 :                 return MsgValueError;
     260             :             }
     261             :             // Sentinel = 'aOrigin'
     262           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2118207704)))) {
     263           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     264           0 :                 return MsgValueError;
     265             :             }
     266           0 :             if ((!(Read((&(aInnerWindowID)), (&(msg__)), (&(iter__)))))) {
     267           0 :                 FatalError("Error deserializing 'uint64_t'");
     268           0 :                 return MsgValueError;
     269             :             }
     270             :             // Sentinel = 'aInnerWindowID'
     271           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3059251422)))) {
     272           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     273           0 :                 return MsgValueError;
     274             :             }
     275           0 :             if ((!(Read((&(aProtocol)), (&(msg__)), (&(iter__)))))) {
     276           0 :                 FatalError("Error deserializing 'nsCString'");
     277           0 :                 return MsgValueError;
     278             :             }
     279             :             // Sentinel = 'aProtocol'
     280           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3505310484)))) {
     281           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     282           0 :                 return MsgValueError;
     283             :             }
     284           0 :             if ((!(Read((&(aSecure)), (&(msg__)), (&(iter__)))))) {
     285           0 :                 FatalError("Error deserializing 'bool'");
     286           0 :                 return MsgValueError;
     287             :             }
     288             :             // Sentinel = 'aSecure'
     289           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4071505201)))) {
     290           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     291           0 :                 return MsgValueError;
     292             :             }
     293           0 :             if ((!(Read((&(aPingInterval)), (&(msg__)), (&(iter__)))))) {
     294           0 :                 FatalError("Error deserializing 'uint32_t'");
     295           0 :                 return MsgValueError;
     296             :             }
     297             :             // Sentinel = 'aPingInterval'
     298           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 407028319)))) {
     299           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     300           0 :                 return MsgValueError;
     301             :             }
     302           0 :             if ((!(Read((&(aClientSetPingInterval)), (&(msg__)), (&(iter__)))))) {
     303           0 :                 FatalError("Error deserializing 'bool'");
     304           0 :                 return MsgValueError;
     305             :             }
     306             :             // Sentinel = 'aClientSetPingInterval'
     307           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3486439937)))) {
     308           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     309           0 :                 return MsgValueError;
     310             :             }
     311           0 :             if ((!(Read((&(aPingTimeout)), (&(msg__)), (&(iter__)))))) {
     312           0 :                 FatalError("Error deserializing 'uint32_t'");
     313           0 :                 return MsgValueError;
     314             :             }
     315             :             // Sentinel = 'aPingTimeout'
     316           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1400185874)))) {
     317           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     318           0 :                 return MsgValueError;
     319             :             }
     320           0 :             if ((!(Read((&(aClientSetPingTimeout)), (&(msg__)), (&(iter__)))))) {
     321           0 :                 FatalError("Error deserializing 'bool'");
     322           0 :                 return MsgValueError;
     323             :             }
     324             :             // Sentinel = 'aClientSetPingTimeout'
     325           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2731101232)))) {
     326           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     327           0 :                 return MsgValueError;
     328             :             }
     329           0 :             if ((!(Read((&(aLoadInfoArgs)), (&(msg__)), (&(iter__)))))) {
     330           0 :                 FatalError("Error deserializing 'OptionalLoadInfoArgs'");
     331           0 :                 return MsgValueError;
     332             :             }
     333             :             // Sentinel = 'aLoadInfoArgs'
     334           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3659468731)))) {
     335           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'OptionalLoadInfoArgs'");
     336           0 :                 return MsgValueError;
     337             :             }
     338           0 :             if ((!(Read((&(aProvider)), (&(msg__)), (&(iter__)))))) {
     339           0 :                 FatalError("Error deserializing 'OptionalTransportProvider'");
     340           0 :                 return MsgValueError;
     341             :             }
     342             :             // Sentinel = 'aProvider'
     343           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4112742927)))) {
     344           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'OptionalTransportProvider'");
     345           0 :                 return MsgValueError;
     346             :             }
     347           0 :             if ((!(Read((&(aNegotiatedExtensions)), (&(msg__)), (&(iter__)))))) {
     348           0 :                 FatalError("Error deserializing 'nsCString'");
     349           0 :                 return MsgValueError;
     350             :             }
     351             :             // Sentinel = 'aNegotiatedExtensions'
     352           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2751189790)))) {
     353           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     354           0 :                 return MsgValueError;
     355             :             }
     356           0 :             (msg__).EndRead(iter__, (msg__).type());
     357           0 :             PWebSocket::Transition(PWebSocket::Msg_AsyncOpen__ID, (&(mState)));
     358           0 :             if ((!(RecvAsyncOpen(mozilla::Move(aURI), mozilla::Move(aOrigin), mozilla::Move(aInnerWindowID), mozilla::Move(aProtocol), mozilla::Move(aSecure), mozilla::Move(aPingInterval), mozilla::Move(aClientSetPingInterval), mozilla::Move(aPingTimeout), mozilla::Move(aClientSetPingTimeout), mozilla::Move(aLoadInfoArgs), mozilla::Move(aProvider), mozilla::Move(aNegotiatedExtensions))))) {
     359           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     360             :                 // Error handled in mozilla::ipc::IPCResult
     361           0 :                 return MsgProcessingError;
     362             :             }
     363             : 
     364           0 :             return MsgProcessed;
     365             :         }
     366             :     case PWebSocket::Msg_Close__ID:
     367             :         {
     368           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebSocketParent")) {
     369           0 :                 mozilla::ipc::LogMessageForProtocol("PWebSocketParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     370             :             }
     371           0 :             AUTO_PROFILER_LABEL("PWebSocket::Msg_Close", OTHER);
     372             : 
     373           0 :             PickleIterator iter__(msg__);
     374             :             uint16_t code;
     375           0 :             nsCString reason;
     376             : 
     377           0 :             if ((!(Read((&(code)), (&(msg__)), (&(iter__)))))) {
     378           0 :                 FatalError("Error deserializing 'uint16_t'");
     379           0 :                 return MsgValueError;
     380             :             }
     381             :             // Sentinel = 'code'
     382           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3318913027)))) {
     383           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint16_t'");
     384           0 :                 return MsgValueError;
     385             :             }
     386           0 :             if ((!(Read((&(reason)), (&(msg__)), (&(iter__)))))) {
     387           0 :                 FatalError("Error deserializing 'nsCString'");
     388           0 :                 return MsgValueError;
     389             :             }
     390             :             // Sentinel = 'reason'
     391           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4151390930)))) {
     392           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     393           0 :                 return MsgValueError;
     394             :             }
     395           0 :             (msg__).EndRead(iter__, (msg__).type());
     396           0 :             PWebSocket::Transition(PWebSocket::Msg_Close__ID, (&(mState)));
     397           0 :             if ((!(RecvClose(mozilla::Move(code), mozilla::Move(reason))))) {
     398           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     399             :                 // Error handled in mozilla::ipc::IPCResult
     400           0 :                 return MsgProcessingError;
     401             :             }
     402             : 
     403           0 :             return MsgProcessed;
     404             :         }
     405             :     case PWebSocket::Msg_SendMsg__ID:
     406             :         {
     407           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebSocketParent")) {
     408           0 :                 mozilla::ipc::LogMessageForProtocol("PWebSocketParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     409             :             }
     410           0 :             AUTO_PROFILER_LABEL("PWebSocket::Msg_SendMsg", OTHER);
     411             : 
     412           0 :             PickleIterator iter__(msg__);
     413           0 :             nsCString aMsg;
     414             : 
     415           0 :             if ((!(Read((&(aMsg)), (&(msg__)), (&(iter__)))))) {
     416           0 :                 FatalError("Error deserializing 'nsCString'");
     417           0 :                 return MsgValueError;
     418             :             }
     419             :             // Sentinel = 'aMsg'
     420           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3584578888)))) {
     421           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     422           0 :                 return MsgValueError;
     423             :             }
     424           0 :             (msg__).EndRead(iter__, (msg__).type());
     425           0 :             PWebSocket::Transition(PWebSocket::Msg_SendMsg__ID, (&(mState)));
     426           0 :             if ((!(RecvSendMsg(mozilla::Move(aMsg))))) {
     427           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     428             :                 // Error handled in mozilla::ipc::IPCResult
     429           0 :                 return MsgProcessingError;
     430             :             }
     431             : 
     432           0 :             return MsgProcessed;
     433             :         }
     434             :     case PWebSocket::Msg_SendBinaryMsg__ID:
     435             :         {
     436           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebSocketParent")) {
     437           0 :                 mozilla::ipc::LogMessageForProtocol("PWebSocketParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     438             :             }
     439           0 :             AUTO_PROFILER_LABEL("PWebSocket::Msg_SendBinaryMsg", OTHER);
     440             : 
     441           0 :             PickleIterator iter__(msg__);
     442           0 :             nsCString aMsg;
     443             : 
     444           0 :             if ((!(Read((&(aMsg)), (&(msg__)), (&(iter__)))))) {
     445           0 :                 FatalError("Error deserializing 'nsCString'");
     446           0 :                 return MsgValueError;
     447             :             }
     448             :             // Sentinel = 'aMsg'
     449           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3584578888)))) {
     450           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     451           0 :                 return MsgValueError;
     452             :             }
     453           0 :             (msg__).EndRead(iter__, (msg__).type());
     454           0 :             PWebSocket::Transition(PWebSocket::Msg_SendBinaryMsg__ID, (&(mState)));
     455           0 :             if ((!(RecvSendBinaryMsg(mozilla::Move(aMsg))))) {
     456           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     457             :                 // Error handled in mozilla::ipc::IPCResult
     458           0 :                 return MsgProcessingError;
     459             :             }
     460             : 
     461           0 :             return MsgProcessed;
     462             :         }
     463             :     case PWebSocket::Msg_SendBinaryStream__ID:
     464             :         {
     465           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebSocketParent")) {
     466           0 :                 mozilla::ipc::LogMessageForProtocol("PWebSocketParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     467             :             }
     468           0 :             AUTO_PROFILER_LABEL("PWebSocket::Msg_SendBinaryStream", OTHER);
     469             : 
     470           0 :             PickleIterator iter__(msg__);
     471           0 :             IPCStream aStream;
     472             :             uint32_t aLength;
     473             : 
     474           0 :             if ((!(Read((&(aStream)), (&(msg__)), (&(iter__)))))) {
     475           0 :                 FatalError("Error deserializing 'IPCStream'");
     476           0 :                 return MsgValueError;
     477             :             }
     478             :             // Sentinel = 'aStream'
     479           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3415320318)))) {
     480           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'IPCStream'");
     481           0 :                 return MsgValueError;
     482             :             }
     483           0 :             if ((!(Read((&(aLength)), (&(msg__)), (&(iter__)))))) {
     484           0 :                 FatalError("Error deserializing 'uint32_t'");
     485           0 :                 return MsgValueError;
     486             :             }
     487             :             // Sentinel = 'aLength'
     488           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2696905790)))) {
     489           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     490           0 :                 return MsgValueError;
     491             :             }
     492           0 :             (msg__).EndRead(iter__, (msg__).type());
     493           0 :             PWebSocket::Transition(PWebSocket::Msg_SendBinaryStream__ID, (&(mState)));
     494           0 :             if ((!(RecvSendBinaryStream(mozilla::Move(aStream), mozilla::Move(aLength))))) {
     495           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     496             :                 // Error handled in mozilla::ipc::IPCResult
     497           0 :                 return MsgProcessingError;
     498             :             }
     499             : 
     500           0 :             return MsgProcessed;
     501             :         }
     502             :     case PWebSocket::Msg_DeleteSelf__ID:
     503             :         {
     504           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebSocketParent")) {
     505           0 :                 mozilla::ipc::LogMessageForProtocol("PWebSocketParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     506             :             }
     507           0 :             AUTO_PROFILER_LABEL("PWebSocket::Msg_DeleteSelf", OTHER);
     508             : 
     509           0 :             PWebSocket::Transition(PWebSocket::Msg_DeleteSelf__ID, (&(mState)));
     510           0 :             if ((!(RecvDeleteSelf()))) {
     511           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     512             :                 // Error handled in mozilla::ipc::IPCResult
     513           0 :                 return MsgProcessingError;
     514             :             }
     515             : 
     516           0 :             return MsgProcessed;
     517             :         }
     518             :     case PWebSocket::Reply___delete____ID:
     519             :         {
     520           0 :             return MsgProcessed;
     521             :         }
     522             :     default:
     523             :         {
     524           0 :             return MsgNotKnown;
     525             :         }
     526             :     }
     527             : }
     528             : 
     529           0 : auto PWebSocketParent::OnMessageReceived(
     530             :         const Message& msg__,
     531             :         Message*& reply__) -> PWebSocketParent::Result
     532             : {
     533           0 :     return MsgNotKnown;
     534             : }
     535             : 
     536           0 : auto PWebSocketParent::OnCallReceived(
     537             :         const Message& msg__,
     538             :         Message*& reply__) -> PWebSocketParent::Result
     539             : {
     540           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     541             :     return MsgNotKnown;
     542             : }
     543             : 
     544           0 : auto PWebSocketParent::GetProtocolTypeId() -> int32_t
     545             : {
     546           0 :     return PWebSocketMsgStart;
     547             : }
     548             : 
     549           0 : auto PWebSocketParent::ProtocolName() const -> const char*
     550             : {
     551           0 :     return "PWebSocketParent";
     552             : }
     553             : 
     554           0 : auto PWebSocketParent::DestroySubtree(ActorDestroyReason why) -> void
     555             : {
     556             :     // Unregister from our manager.
     557           0 :     Unregister(Id());
     558             : 
     559             :     // Reject owning pending promises.
     560           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     561             : 
     562             :     // Finally, destroy "us".
     563           0 :     ActorDestroy(why);
     564           0 : }
     565             : 
     566           0 : auto PWebSocketParent::DeallocSubtree() -> void
     567             : {
     568           0 : }
     569             : 
     570           0 : auto PWebSocketParent::Write(
     571             :         const SystemPrincipalInfo& v__,
     572             :         Message* msg__) -> void
     573             : {
     574           0 : }
     575             : 
     576           0 : auto PWebSocketParent::Read(
     577             :         SystemPrincipalInfo* v__,
     578             :         const Message* msg__,
     579             :         PickleIterator* iter__) -> bool
     580             : {
     581           0 :     return true;
     582             : }
     583             : 
     584           0 : auto PWebSocketParent::Write(
     585             :         const nsTArray<PrincipalInfo>& v__,
     586             :         Message* msg__) -> void
     587             : {
     588           0 :     uint32_t length = (v__).Length();
     589           0 :     Write(length, msg__);
     590             :     // Sentinel = ('length', 'PrincipalInfo[]')
     591           0 :     (msg__)->WriteSentinel(1032188126);
     592             : 
     593           0 :     for (auto& elem : v__) {
     594           0 :         Write(elem, msg__);
     595             :         // Sentinel = 'PrincipalInfo[]'
     596           0 :         (msg__)->WriteSentinel(413380193);
     597             :     }
     598           0 : }
     599             : 
     600           0 : auto PWebSocketParent::Read(
     601             :         nsTArray<PrincipalInfo>* v__,
     602             :         const Message* msg__,
     603             :         PickleIterator* iter__) -> bool
     604             : {
     605           0 :     nsTArray<PrincipalInfo> fa;
     606             :     uint32_t length;
     607           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
     608           0 :         mozilla::ipc::ArrayLengthReadError("PrincipalInfo[]");
     609           0 :         return false;
     610             :     }
     611             :     // Sentinel = ('length', 'PrincipalInfo[]')
     612           0 :     if ((!((msg__)->ReadSentinel(iter__, 1032188126)))) {
     613           0 :         mozilla::ipc::SentinelReadError("PrincipalInfo[]");
     614           0 :         return false;
     615             :     }
     616             : 
     617           0 :     PrincipalInfo* elems = (fa).AppendElements(length);
     618           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
     619           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
     620           0 :             FatalError("Error deserializing 'PrincipalInfo[i]'");
     621           0 :             return false;
     622             :         }
     623             :         // Sentinel = 'PrincipalInfo[]'
     624           0 :         if ((!((msg__)->ReadSentinel(iter__, 413380193)))) {
     625           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo[i]'");
     626           0 :             return false;
     627             :         }
     628             :     }
     629           0 :     (v__)->SwapElements(fa);
     630           0 :     return true;
     631             : }
     632             : 
     633           0 : auto PWebSocketParent::Write(
     634             :         const IPCBlobInputStreamParams& v__,
     635             :         Message* msg__) -> void
     636             : {
     637           0 :     Write((v__).id(), msg__);
     638             :     // Sentinel = 'id'
     639           0 :     (msg__)->WriteSentinel(2794505629);
     640           0 : }
     641             : 
     642           0 : auto PWebSocketParent::Read(
     643             :         IPCBlobInputStreamParams* v__,
     644             :         const Message* msg__,
     645             :         PickleIterator* iter__) -> bool
     646             : {
     647           0 :     if ((!(Read((&((v__)->id())), msg__, iter__)))) {
     648           0 :         FatalError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
     649           0 :         return false;
     650             :     }
     651             :     // Sentinel = 'id'
     652           0 :     if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
     653           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
     654           0 :         return false;
     655             :     }
     656           0 :     return true;
     657             : }
     658             : 
     659           0 : auto PWebSocketParent::Write(
     660             :         const BufferedInputStreamParams& v__,
     661             :         Message* msg__) -> void
     662             : {
     663           0 :     Write((v__).optionalStream(), msg__);
     664             :     // Sentinel = 'optionalStream'
     665           0 :     (msg__)->WriteSentinel(1003718562);
     666           0 :     Write((v__).bufferSize(), msg__);
     667             :     // Sentinel = 'bufferSize'
     668           0 :     (msg__)->WriteSentinel(3444538779);
     669           0 : }
     670             : 
     671           0 : auto PWebSocketParent::Read(
     672             :         BufferedInputStreamParams* v__,
     673             :         const Message* msg__,
     674             :         PickleIterator* iter__) -> bool
     675             : {
     676           0 :     if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
     677           0 :         FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
     678           0 :         return false;
     679             :     }
     680             :     // Sentinel = 'optionalStream'
     681           0 :     if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
     682           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
     683           0 :         return false;
     684             :     }
     685           0 :     if ((!(Read((&((v__)->bufferSize())), msg__, iter__)))) {
     686           0 :         FatalError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
     687           0 :         return false;
     688             :     }
     689             :     // Sentinel = 'bufferSize'
     690           0 :     if ((!((msg__)->ReadSentinel(iter__, 3444538779)))) {
     691           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
     692           0 :         return false;
     693             :     }
     694           0 :     return true;
     695             : }
     696             : 
     697           0 : auto PWebSocketParent::Write(
     698             :         const nsTArray<InputStreamParams>& v__,
     699             :         Message* msg__) -> void
     700             : {
     701           0 :     uint32_t length = (v__).Length();
     702           0 :     Write(length, msg__);
     703             :     // Sentinel = ('length', 'InputStreamParams[]')
     704           0 :     (msg__)->WriteSentinel(348334258);
     705             : 
     706           0 :     for (auto& elem : v__) {
     707           0 :         Write(elem, msg__);
     708             :         // Sentinel = 'InputStreamParams[]'
     709           0 :         (msg__)->WriteSentinel(2927715197);
     710             :     }
     711           0 : }
     712             : 
     713           0 : auto PWebSocketParent::Read(
     714             :         nsTArray<InputStreamParams>* v__,
     715             :         const Message* msg__,
     716             :         PickleIterator* iter__) -> bool
     717             : {
     718           0 :     nsTArray<InputStreamParams> fa;
     719             :     uint32_t length;
     720           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
     721           0 :         mozilla::ipc::ArrayLengthReadError("InputStreamParams[]");
     722           0 :         return false;
     723             :     }
     724             :     // Sentinel = ('length', 'InputStreamParams[]')
     725           0 :     if ((!((msg__)->ReadSentinel(iter__, 348334258)))) {
     726           0 :         mozilla::ipc::SentinelReadError("InputStreamParams[]");
     727           0 :         return false;
     728             :     }
     729             : 
     730           0 :     InputStreamParams* elems = (fa).AppendElements(length);
     731           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
     732           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
     733           0 :             FatalError("Error deserializing 'InputStreamParams[i]'");
     734           0 :             return false;
     735             :         }
     736             :         // Sentinel = 'InputStreamParams[]'
     737           0 :         if ((!((msg__)->ReadSentinel(iter__, 2927715197)))) {
     738           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'InputStreamParams[i]'");
     739           0 :             return false;
     740             :         }
     741             :     }
     742           0 :     (v__)->SwapElements(fa);
     743           0 :     return true;
     744             : }
     745             : 
     746           0 : auto PWebSocketParent::Write(
     747             :         const OptionalURIParams& v__,
     748             :         Message* msg__) -> void
     749             : {
     750             :     typedef OptionalURIParams type__;
     751           0 :     Write(int((v__).type()), msg__);
     752             :     // Sentinel = 'OptionalURIParams'
     753           0 :     (msg__)->WriteSentinel(1977079525);
     754             : 
     755           0 :     switch ((v__).type()) {
     756             :     case type__::Tvoid_t:
     757             :         {
     758           0 :             Write((v__).get_void_t(), msg__);
     759             :             // Sentinel = 'Tvoid_t'
     760           0 :             (msg__)->WriteSentinel(3041273328);
     761           0 :             return;
     762             :         }
     763             :     case type__::TURIParams:
     764             :         {
     765           0 :             Write((v__).get_URIParams(), msg__);
     766             :             // Sentinel = 'TURIParams'
     767           0 :             (msg__)->WriteSentinel(1132652062);
     768           0 :             return;
     769             :         }
     770             :     default:
     771             :         {
     772           0 :             FatalError("unknown union type");
     773           0 :             return;
     774             :         }
     775             :     }
     776             : }
     777             : 
     778           0 : auto PWebSocketParent::Read(
     779             :         OptionalURIParams* v__,
     780             :         const Message* msg__,
     781             :         PickleIterator* iter__) -> bool
     782             : {
     783             :     typedef OptionalURIParams type__;
     784             :     int type;
     785           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     786           0 :         mozilla::ipc::UnionTypeReadError("OptionalURIParams");
     787           0 :         return false;
     788             :     }
     789             :     // Sentinel = 'OptionalURIParams'
     790           0 :     if ((!((msg__)->ReadSentinel(iter__, 1977079525)))) {
     791           0 :         mozilla::ipc::SentinelReadError("OptionalURIParams");
     792           0 :         return false;
     793             :     }
     794             : 
     795           0 :     switch (type) {
     796             :     case type__::Tvoid_t:
     797             :         {
     798             :             void_t tmp = void_t();
     799           0 :             (*(v__)) = tmp;
     800           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
     801           0 :                 FatalError("Error deserializing Union type");
     802           0 :                 return false;
     803             :             }
     804             :             // Sentinel = 'Tvoid_t'
     805           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
     806           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     807           0 :                 return false;
     808             :             }
     809           0 :             return true;
     810             :         }
     811             :     case type__::TURIParams:
     812             :         {
     813           0 :             URIParams tmp = URIParams();
     814           0 :             (*(v__)) = tmp;
     815           0 :             if ((!(Read((&((v__)->get_URIParams())), msg__, iter__)))) {
     816           0 :                 FatalError("Error deserializing Union type");
     817           0 :                 return false;
     818             :             }
     819             :             // Sentinel = 'TURIParams'
     820           0 :             if ((!((msg__)->ReadSentinel(iter__, 1132652062)))) {
     821           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     822           0 :                 return false;
     823             :             }
     824           0 :             return true;
     825             :         }
     826             :     default:
     827             :         {
     828           0 :             FatalError("unknown union type");
     829           0 :             return false;
     830             :         }
     831             :     }
     832             : }
     833             : 
     834           0 : auto PWebSocketParent::Write(
     835             :         const ContentPrincipalInfoOriginNoSuffix& v__,
     836             :         Message* msg__) -> void
     837             : {
     838             :     typedef ContentPrincipalInfoOriginNoSuffix type__;
     839           0 :     Write(int((v__).type()), msg__);
     840             :     // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
     841           0 :     (msg__)->WriteSentinel(2442066713);
     842             : 
     843           0 :     switch ((v__).type()) {
     844             :     case type__::TnsCString:
     845             :         {
     846           0 :             Write((v__).get_nsCString(), msg__);
     847             :             // Sentinel = 'TnsCString'
     848           0 :             (msg__)->WriteSentinel(2427411293);
     849           0 :             return;
     850             :         }
     851             :     case type__::Tvoid_t:
     852             :         {
     853           0 :             Write((v__).get_void_t(), msg__);
     854             :             // Sentinel = 'Tvoid_t'
     855           0 :             (msg__)->WriteSentinel(3041273328);
     856           0 :             return;
     857             :         }
     858             :     default:
     859             :         {
     860           0 :             FatalError("unknown union type");
     861           0 :             return;
     862             :         }
     863             :     }
     864             : }
     865             : 
     866           0 : auto PWebSocketParent::Read(
     867             :         ContentPrincipalInfoOriginNoSuffix* v__,
     868             :         const Message* msg__,
     869             :         PickleIterator* iter__) -> bool
     870             : {
     871             :     typedef ContentPrincipalInfoOriginNoSuffix type__;
     872             :     int type;
     873           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     874           0 :         mozilla::ipc::UnionTypeReadError("ContentPrincipalInfoOriginNoSuffix");
     875           0 :         return false;
     876             :     }
     877             :     // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
     878           0 :     if ((!((msg__)->ReadSentinel(iter__, 2442066713)))) {
     879           0 :         mozilla::ipc::SentinelReadError("ContentPrincipalInfoOriginNoSuffix");
     880           0 :         return false;
     881             :     }
     882             : 
     883           0 :     switch (type) {
     884             :     case type__::TnsCString:
     885             :         {
     886           0 :             nsCString tmp = nsCString();
     887           0 :             (*(v__)) = tmp;
     888           0 :             if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
     889           0 :                 FatalError("Error deserializing Union type");
     890           0 :                 return false;
     891             :             }
     892             :             // Sentinel = 'TnsCString'
     893           0 :             if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
     894           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     895           0 :                 return false;
     896             :             }
     897           0 :             return true;
     898             :         }
     899             :     case type__::Tvoid_t:
     900             :         {
     901             :             void_t tmp = void_t();
     902           0 :             (*(v__)) = tmp;
     903           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
     904           0 :                 FatalError("Error deserializing Union type");
     905           0 :                 return false;
     906             :             }
     907             :             // Sentinel = 'Tvoid_t'
     908           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
     909           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     910           0 :                 return false;
     911             :             }
     912           0 :             return true;
     913             :         }
     914             :     default:
     915             :         {
     916           0 :             FatalError("unknown union type");
     917           0 :             return false;
     918             :         }
     919             :     }
     920             : }
     921             : 
     922           0 : auto PWebSocketParent::Write(
     923             :         const StandardURLParams& v__,
     924             :         Message* msg__) -> void
     925             : {
     926           0 :     Write((v__).urlType(), msg__);
     927             :     // Sentinel = 'urlType'
     928           0 :     (msg__)->WriteSentinel(4149428228);
     929           0 :     Write((v__).port(), msg__);
     930             :     // Sentinel = 'port'
     931           0 :     (msg__)->WriteSentinel(3633211549);
     932           0 :     Write((v__).defaultPort(), msg__);
     933             :     // Sentinel = 'defaultPort'
     934           0 :     (msg__)->WriteSentinel(599318897);
     935           0 :     Write((v__).spec(), msg__);
     936             :     // Sentinel = 'spec'
     937           0 :     (msg__)->WriteSentinel(1630740541);
     938           0 :     Write((v__).scheme(), msg__);
     939             :     // Sentinel = 'scheme'
     940           0 :     (msg__)->WriteSentinel(3619238715);
     941           0 :     Write((v__).authority(), msg__);
     942             :     // Sentinel = 'authority'
     943           0 :     (msg__)->WriteSentinel(1669684878);
     944           0 :     Write((v__).username(), msg__);
     945             :     // Sentinel = 'username'
     946           0 :     (msg__)->WriteSentinel(689225024);
     947           0 :     Write((v__).password(), msg__);
     948             :     // Sentinel = 'password'
     949           0 :     (msg__)->WriteSentinel(2527534683);
     950           0 :     Write((v__).host(), msg__);
     951             :     // Sentinel = 'host'
     952           0 :     (msg__)->WriteSentinel(4070301394);
     953           0 :     Write((v__).path(), msg__);
     954             :     // Sentinel = 'path'
     955           0 :     (msg__)->WriteSentinel(913629401);
     956           0 :     Write((v__).filePath(), msg__);
     957             :     // Sentinel = 'filePath'
     958           0 :     (msg__)->WriteSentinel(4122896455);
     959           0 :     Write((v__).directory(), msg__);
     960             :     // Sentinel = 'directory'
     961           0 :     (msg__)->WriteSentinel(1201172472);
     962           0 :     Write((v__).baseName(), msg__);
     963             :     // Sentinel = 'baseName'
     964           0 :     (msg__)->WriteSentinel(2448877418);
     965           0 :     Write((v__).extension(), msg__);
     966             :     // Sentinel = 'extension'
     967           0 :     (msg__)->WriteSentinel(3211853542);
     968           0 :     Write((v__).query(), msg__);
     969             :     // Sentinel = 'query'
     970           0 :     (msg__)->WriteSentinel(4249802777);
     971           0 :     Write((v__).ref(), msg__);
     972             :     // Sentinel = 'ref'
     973           0 :     (msg__)->WriteSentinel(2626476732);
     974           0 :     Write((v__).originCharset(), msg__);
     975             :     // Sentinel = 'originCharset'
     976           0 :     (msg__)->WriteSentinel(1320725495);
     977           0 :     Write((v__).isMutable(), msg__);
     978             :     // Sentinel = 'isMutable'
     979           0 :     (msg__)->WriteSentinel(3552466783);
     980           0 :     Write((v__).supportsFileURL(), msg__);
     981             :     // Sentinel = 'supportsFileURL'
     982           0 :     (msg__)->WriteSentinel(1871785710);
     983           0 : }
     984             : 
     985           0 : auto PWebSocketParent::Read(
     986             :         StandardURLParams* v__,
     987             :         const Message* msg__,
     988             :         PickleIterator* iter__) -> bool
     989             : {
     990           0 :     if ((!(Read((&((v__)->urlType())), msg__, iter__)))) {
     991           0 :         FatalError("Error deserializing 'urlType' (uint32_t) member of 'StandardURLParams'");
     992           0 :         return false;
     993             :     }
     994             :     // Sentinel = 'urlType'
     995           0 :     if ((!((msg__)->ReadSentinel(iter__, 4149428228)))) {
     996           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'urlType' (uint32_t) member of 'StandardURLParams'");
     997           0 :         return false;
     998             :     }
     999           0 :     if ((!(Read((&((v__)->port())), msg__, iter__)))) {
    1000           0 :         FatalError("Error deserializing 'port' (int32_t) member of 'StandardURLParams'");
    1001           0 :         return false;
    1002             :     }
    1003             :     // Sentinel = 'port'
    1004           0 :     if ((!((msg__)->ReadSentinel(iter__, 3633211549)))) {
    1005           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'port' (int32_t) member of 'StandardURLParams'");
    1006           0 :         return false;
    1007             :     }
    1008           0 :     if ((!(Read((&((v__)->defaultPort())), msg__, iter__)))) {
    1009           0 :         FatalError("Error deserializing 'defaultPort' (int32_t) member of 'StandardURLParams'");
    1010           0 :         return false;
    1011             :     }
    1012             :     // Sentinel = 'defaultPort'
    1013           0 :     if ((!((msg__)->ReadSentinel(iter__, 599318897)))) {
    1014           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'defaultPort' (int32_t) member of 'StandardURLParams'");
    1015           0 :         return false;
    1016             :     }
    1017           0 :     if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
    1018           0 :         FatalError("Error deserializing 'spec' (nsCString) member of 'StandardURLParams'");
    1019           0 :         return false;
    1020             :     }
    1021             :     // Sentinel = 'spec'
    1022           0 :     if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
    1023           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'StandardURLParams'");
    1024           0 :         return false;
    1025             :     }
    1026           0 :     if ((!(Read((&((v__)->scheme())), msg__, iter__)))) {
    1027           0 :         FatalError("Error deserializing 'scheme' (StandardURLSegment) member of 'StandardURLParams'");
    1028           0 :         return false;
    1029             :     }
    1030             :     // Sentinel = 'scheme'
    1031           0 :     if ((!((msg__)->ReadSentinel(iter__, 3619238715)))) {
    1032           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'scheme' (StandardURLSegment) member of 'StandardURLParams'");
    1033           0 :         return false;
    1034             :     }
    1035           0 :     if ((!(Read((&((v__)->authority())), msg__, iter__)))) {
    1036           0 :         FatalError("Error deserializing 'authority' (StandardURLSegment) member of 'StandardURLParams'");
    1037           0 :         return false;
    1038             :     }
    1039             :     // Sentinel = 'authority'
    1040           0 :     if ((!((msg__)->ReadSentinel(iter__, 1669684878)))) {
    1041           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'authority' (StandardURLSegment) member of 'StandardURLParams'");
    1042           0 :         return false;
    1043             :     }
    1044           0 :     if ((!(Read((&((v__)->username())), msg__, iter__)))) {
    1045           0 :         FatalError("Error deserializing 'username' (StandardURLSegment) member of 'StandardURLParams'");
    1046           0 :         return false;
    1047             :     }
    1048             :     // Sentinel = 'username'
    1049           0 :     if ((!((msg__)->ReadSentinel(iter__, 689225024)))) {
    1050           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'username' (StandardURLSegment) member of 'StandardURLParams'");
    1051           0 :         return false;
    1052             :     }
    1053           0 :     if ((!(Read((&((v__)->password())), msg__, iter__)))) {
    1054           0 :         FatalError("Error deserializing 'password' (StandardURLSegment) member of 'StandardURLParams'");
    1055           0 :         return false;
    1056             :     }
    1057             :     // Sentinel = 'password'
    1058           0 :     if ((!((msg__)->ReadSentinel(iter__, 2527534683)))) {
    1059           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'password' (StandardURLSegment) member of 'StandardURLParams'");
    1060           0 :         return false;
    1061             :     }
    1062           0 :     if ((!(Read((&((v__)->host())), msg__, iter__)))) {
    1063           0 :         FatalError("Error deserializing 'host' (StandardURLSegment) member of 'StandardURLParams'");
    1064           0 :         return false;
    1065             :     }
    1066             :     // Sentinel = 'host'
    1067           0 :     if ((!((msg__)->ReadSentinel(iter__, 4070301394)))) {
    1068           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'host' (StandardURLSegment) member of 'StandardURLParams'");
    1069           0 :         return false;
    1070             :     }
    1071           0 :     if ((!(Read((&((v__)->path())), msg__, iter__)))) {
    1072           0 :         FatalError("Error deserializing 'path' (StandardURLSegment) member of 'StandardURLParams'");
    1073           0 :         return false;
    1074             :     }
    1075             :     // Sentinel = 'path'
    1076           0 :     if ((!((msg__)->ReadSentinel(iter__, 913629401)))) {
    1077           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'path' (StandardURLSegment) member of 'StandardURLParams'");
    1078           0 :         return false;
    1079             :     }
    1080           0 :     if ((!(Read((&((v__)->filePath())), msg__, iter__)))) {
    1081           0 :         FatalError("Error deserializing 'filePath' (StandardURLSegment) member of 'StandardURLParams'");
    1082           0 :         return false;
    1083             :     }
    1084             :     // Sentinel = 'filePath'
    1085           0 :     if ((!((msg__)->ReadSentinel(iter__, 4122896455)))) {
    1086           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'filePath' (StandardURLSegment) member of 'StandardURLParams'");
    1087           0 :         return false;
    1088             :     }
    1089           0 :     if ((!(Read((&((v__)->directory())), msg__, iter__)))) {
    1090           0 :         FatalError("Error deserializing 'directory' (StandardURLSegment) member of 'StandardURLParams'");
    1091           0 :         return false;
    1092             :     }
    1093             :     // Sentinel = 'directory'
    1094           0 :     if ((!((msg__)->ReadSentinel(iter__, 1201172472)))) {
    1095           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'directory' (StandardURLSegment) member of 'StandardURLParams'");
    1096           0 :         return false;
    1097             :     }
    1098           0 :     if ((!(Read((&((v__)->baseName())), msg__, iter__)))) {
    1099           0 :         FatalError("Error deserializing 'baseName' (StandardURLSegment) member of 'StandardURLParams'");
    1100           0 :         return false;
    1101             :     }
    1102             :     // Sentinel = 'baseName'
    1103           0 :     if ((!((msg__)->ReadSentinel(iter__, 2448877418)))) {
    1104           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'baseName' (StandardURLSegment) member of 'StandardURLParams'");
    1105           0 :         return false;
    1106             :     }
    1107           0 :     if ((!(Read((&((v__)->extension())), msg__, iter__)))) {
    1108           0 :         FatalError("Error deserializing 'extension' (StandardURLSegment) member of 'StandardURLParams'");
    1109           0 :         return false;
    1110             :     }
    1111             :     // Sentinel = 'extension'
    1112           0 :     if ((!((msg__)->ReadSentinel(iter__, 3211853542)))) {
    1113           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'extension' (StandardURLSegment) member of 'StandardURLParams'");
    1114           0 :         return false;
    1115             :     }
    1116           0 :     if ((!(Read((&((v__)->query())), msg__, iter__)))) {
    1117           0 :         FatalError("Error deserializing 'query' (StandardURLSegment) member of 'StandardURLParams'");
    1118           0 :         return false;
    1119             :     }
    1120             :     // Sentinel = 'query'
    1121           0 :     if ((!((msg__)->ReadSentinel(iter__, 4249802777)))) {
    1122           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'query' (StandardURLSegment) member of 'StandardURLParams'");
    1123           0 :         return false;
    1124             :     }
    1125           0 :     if ((!(Read((&((v__)->ref())), msg__, iter__)))) {
    1126           0 :         FatalError("Error deserializing 'ref' (StandardURLSegment) member of 'StandardURLParams'");
    1127           0 :         return false;
    1128             :     }
    1129             :     // Sentinel = 'ref'
    1130           0 :     if ((!((msg__)->ReadSentinel(iter__, 2626476732)))) {
    1131           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ref' (StandardURLSegment) member of 'StandardURLParams'");
    1132           0 :         return false;
    1133             :     }
    1134           0 :     if ((!(Read((&((v__)->originCharset())), msg__, iter__)))) {
    1135           0 :         FatalError("Error deserializing 'originCharset' (nsCString) member of 'StandardURLParams'");
    1136           0 :         return false;
    1137             :     }
    1138             :     // Sentinel = 'originCharset'
    1139           0 :     if ((!((msg__)->ReadSentinel(iter__, 1320725495)))) {
    1140           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'originCharset' (nsCString) member of 'StandardURLParams'");
    1141           0 :         return false;
    1142             :     }
    1143           0 :     if ((!(Read((&((v__)->isMutable())), msg__, iter__)))) {
    1144           0 :         FatalError("Error deserializing 'isMutable' (bool) member of 'StandardURLParams'");
    1145           0 :         return false;
    1146             :     }
    1147             :     // Sentinel = 'isMutable'
    1148           0 :     if ((!((msg__)->ReadSentinel(iter__, 3552466783)))) {
    1149           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isMutable' (bool) member of 'StandardURLParams'");
    1150           0 :         return false;
    1151             :     }
    1152           0 :     if ((!(Read((&((v__)->supportsFileURL())), msg__, iter__)))) {
    1153           0 :         FatalError("Error deserializing 'supportsFileURL' (bool) member of 'StandardURLParams'");
    1154           0 :         return false;
    1155             :     }
    1156             :     // Sentinel = 'supportsFileURL'
    1157           0 :     if ((!((msg__)->ReadSentinel(iter__, 1871785710)))) {
    1158           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'supportsFileURL' (bool) member of 'StandardURLParams'");
    1159           0 :         return false;
    1160             :     }
    1161           0 :     return true;
    1162             : }
    1163             : 
    1164           0 : auto PWebSocketParent::Write(
    1165             :         const OptionalInputStreamParams& v__,
    1166             :         Message* msg__) -> void
    1167             : {
    1168             :     typedef OptionalInputStreamParams type__;
    1169           0 :     Write(int((v__).type()), msg__);
    1170             :     // Sentinel = 'OptionalInputStreamParams'
    1171           0 :     (msg__)->WriteSentinel(1355174443);
    1172             : 
    1173           0 :     switch ((v__).type()) {
    1174             :     case type__::Tvoid_t:
    1175             :         {
    1176           0 :             Write((v__).get_void_t(), msg__);
    1177             :             // Sentinel = 'Tvoid_t'
    1178           0 :             (msg__)->WriteSentinel(3041273328);
    1179           0 :             return;
    1180             :         }
    1181             :     case type__::TInputStreamParams:
    1182             :         {
    1183           0 :             Write((v__).get_InputStreamParams(), msg__);
    1184             :             // Sentinel = 'TInputStreamParams'
    1185           0 :             (msg__)->WriteSentinel(55652096);
    1186           0 :             return;
    1187             :         }
    1188             :     default:
    1189             :         {
    1190           0 :             FatalError("unknown union type");
    1191           0 :             return;
    1192             :         }
    1193             :     }
    1194             : }
    1195             : 
    1196           0 : auto PWebSocketParent::Read(
    1197             :         OptionalInputStreamParams* v__,
    1198             :         const Message* msg__,
    1199             :         PickleIterator* iter__) -> bool
    1200             : {
    1201             :     typedef OptionalInputStreamParams type__;
    1202             :     int type;
    1203           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1204           0 :         mozilla::ipc::UnionTypeReadError("OptionalInputStreamParams");
    1205           0 :         return false;
    1206             :     }
    1207             :     // Sentinel = 'OptionalInputStreamParams'
    1208           0 :     if ((!((msg__)->ReadSentinel(iter__, 1355174443)))) {
    1209           0 :         mozilla::ipc::SentinelReadError("OptionalInputStreamParams");
    1210           0 :         return false;
    1211             :     }
    1212             : 
    1213           0 :     switch (type) {
    1214             :     case type__::Tvoid_t:
    1215             :         {
    1216             :             void_t tmp = void_t();
    1217           0 :             (*(v__)) = tmp;
    1218           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
    1219           0 :                 FatalError("Error deserializing Union type");
    1220           0 :                 return false;
    1221             :             }
    1222             :             // Sentinel = 'Tvoid_t'
    1223           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
    1224           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1225           0 :                 return false;
    1226             :             }
    1227           0 :             return true;
    1228             :         }
    1229             :     case type__::TInputStreamParams:
    1230             :         {
    1231           0 :             InputStreamParams tmp = InputStreamParams();
    1232           0 :             (*(v__)) = tmp;
    1233           0 :             if ((!(Read((&((v__)->get_InputStreamParams())), msg__, iter__)))) {
    1234           0 :                 FatalError("Error deserializing Union type");
    1235           0 :                 return false;
    1236             :             }
    1237             :             // Sentinel = 'TInputStreamParams'
    1238           0 :             if ((!((msg__)->ReadSentinel(iter__, 55652096)))) {
    1239           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1240           0 :                 return false;
    1241             :             }
    1242           0 :             return true;
    1243             :         }
    1244             :     default:
    1245             :         {
    1246           0 :             FatalError("unknown union type");
    1247           0 :             return false;
    1248             :         }
    1249             :     }
    1250             : }
    1251             : 
    1252           0 : auto PWebSocketParent::Write(
    1253             :         const IPCRemoteStream& v__,
    1254             :         Message* msg__) -> void
    1255             : {
    1256           0 :     Write((v__).delayedStart(), msg__);
    1257             :     // Sentinel = 'delayedStart'
    1258           0 :     (msg__)->WriteSentinel(1491822294);
    1259           0 :     Write((v__).stream(), msg__);
    1260             :     // Sentinel = 'stream'
    1261           0 :     (msg__)->WriteSentinel(4152748422);
    1262           0 : }
    1263             : 
    1264           0 : auto PWebSocketParent::Read(
    1265             :         IPCRemoteStream* v__,
    1266             :         const Message* msg__,
    1267             :         PickleIterator* iter__) -> bool
    1268             : {
    1269           0 :     if ((!(Read((&((v__)->delayedStart())), msg__, iter__)))) {
    1270           0 :         FatalError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
    1271           0 :         return false;
    1272             :     }
    1273             :     // Sentinel = 'delayedStart'
    1274           0 :     if ((!((msg__)->ReadSentinel(iter__, 1491822294)))) {
    1275           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
    1276           0 :         return false;
    1277             :     }
    1278           0 :     if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
    1279           0 :         FatalError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
    1280           0 :         return false;
    1281             :     }
    1282             :     // Sentinel = 'stream'
    1283           0 :     if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
    1284           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
    1285           0 :         return false;
    1286             :     }
    1287           0 :     return true;
    1288             : }
    1289             : 
    1290           0 : auto PWebSocketParent::Write(
    1291             :         const URIParams& v__,
    1292             :         Message* msg__) -> void
    1293             : {
    1294             :     typedef URIParams type__;
    1295           0 :     Write(int((v__).type()), msg__);
    1296             :     // Sentinel = 'URIParams'
    1297           0 :     (msg__)->WriteSentinel(1039516337);
    1298             : 
    1299           0 :     switch ((v__).type()) {
    1300             :     case type__::TSimpleURIParams:
    1301             :         {
    1302           0 :             Write((v__).get_SimpleURIParams(), msg__);
    1303             :             // Sentinel = 'TSimpleURIParams'
    1304           0 :             (msg__)->WriteSentinel(4028607586);
    1305           0 :             return;
    1306             :         }
    1307             :     case type__::TStandardURLParams:
    1308             :         {
    1309           0 :             Write((v__).get_StandardURLParams(), msg__);
    1310             :             // Sentinel = 'TStandardURLParams'
    1311           0 :             (msg__)->WriteSentinel(248174578);
    1312           0 :             return;
    1313             :         }
    1314             :     case type__::TJARURIParams:
    1315             :         {
    1316           0 :             Write((v__).get_JARURIParams(), msg__);
    1317             :             // Sentinel = 'TJARURIParams'
    1318           0 :             (msg__)->WriteSentinel(3404434792);
    1319           0 :             return;
    1320             :         }
    1321             :     case type__::TIconURIParams:
    1322             :         {
    1323           0 :             Write((v__).get_IconURIParams(), msg__);
    1324             :             // Sentinel = 'TIconURIParams'
    1325           0 :             (msg__)->WriteSentinel(1824279023);
    1326           0 :             return;
    1327             :         }
    1328             :     case type__::TNullPrincipalURIParams:
    1329             :         {
    1330           0 :             Write((v__).get_NullPrincipalURIParams(), msg__);
    1331             :             // Sentinel = 'TNullPrincipalURIParams'
    1332           0 :             (msg__)->WriteSentinel(216801182);
    1333           0 :             return;
    1334             :         }
    1335             :     case type__::TJSURIParams:
    1336             :         {
    1337           0 :             Write((v__).get_JSURIParams(), msg__);
    1338             :             // Sentinel = 'TJSURIParams'
    1339           0 :             (msg__)->WriteSentinel(32222119);
    1340           0 :             return;
    1341             :         }
    1342             :     case type__::TSimpleNestedURIParams:
    1343             :         {
    1344           0 :             Write((v__).get_SimpleNestedURIParams(), msg__);
    1345             :             // Sentinel = 'TSimpleNestedURIParams'
    1346           0 :             (msg__)->WriteSentinel(3192238307);
    1347           0 :             return;
    1348             :         }
    1349             :     case type__::THostObjectURIParams:
    1350             :         {
    1351           0 :             Write((v__).get_HostObjectURIParams(), msg__);
    1352             :             // Sentinel = 'THostObjectURIParams'
    1353           0 :             (msg__)->WriteSentinel(1307971301);
    1354           0 :             return;
    1355             :         }
    1356             :     default:
    1357             :         {
    1358           0 :             FatalError("unknown union type");
    1359           0 :             return;
    1360             :         }
    1361             :     }
    1362             : }
    1363             : 
    1364           0 : auto PWebSocketParent::Read(
    1365             :         URIParams* v__,
    1366             :         const Message* msg__,
    1367             :         PickleIterator* iter__) -> bool
    1368             : {
    1369             :     typedef URIParams type__;
    1370             :     int type;
    1371           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1372           0 :         mozilla::ipc::UnionTypeReadError("URIParams");
    1373           0 :         return false;
    1374             :     }
    1375             :     // Sentinel = 'URIParams'
    1376           0 :     if ((!((msg__)->ReadSentinel(iter__, 1039516337)))) {
    1377           0 :         mozilla::ipc::SentinelReadError("URIParams");
    1378           0 :         return false;
    1379             :     }
    1380             : 
    1381           0 :     switch (type) {
    1382             :     case type__::TSimpleURIParams:
    1383             :         {
    1384           0 :             SimpleURIParams tmp = SimpleURIParams();
    1385           0 :             (*(v__)) = tmp;
    1386           0 :             if ((!(Read((&((v__)->get_SimpleURIParams())), msg__, iter__)))) {
    1387           0 :                 FatalError("Error deserializing Union type");
    1388           0 :                 return false;
    1389             :             }
    1390             :             // Sentinel = 'TSimpleURIParams'
    1391           0 :             if ((!((msg__)->ReadSentinel(iter__, 4028607586)))) {
    1392           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1393           0 :                 return false;
    1394             :             }
    1395           0 :             return true;
    1396             :         }
    1397             :     case type__::TStandardURLParams:
    1398             :         {
    1399           0 :             StandardURLParams tmp = StandardURLParams();
    1400           0 :             (*(v__)) = tmp;
    1401           0 :             if ((!(Read((&((v__)->get_StandardURLParams())), msg__, iter__)))) {
    1402           0 :                 FatalError("Error deserializing Union type");
    1403           0 :                 return false;
    1404             :             }
    1405             :             // Sentinel = 'TStandardURLParams'
    1406           0 :             if ((!((msg__)->ReadSentinel(iter__, 248174578)))) {
    1407           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1408           0 :                 return false;
    1409             :             }
    1410           0 :             return true;
    1411             :         }
    1412             :     case type__::TJARURIParams:
    1413             :         {
    1414           0 :             JARURIParams tmp = JARURIParams();
    1415           0 :             (*(v__)) = tmp;
    1416           0 :             if ((!(Read((&((v__)->get_JARURIParams())), msg__, iter__)))) {
    1417           0 :                 FatalError("Error deserializing Union type");
    1418           0 :                 return false;
    1419             :             }
    1420             :             // Sentinel = 'TJARURIParams'
    1421           0 :             if ((!((msg__)->ReadSentinel(iter__, 3404434792)))) {
    1422           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1423           0 :                 return false;
    1424             :             }
    1425           0 :             return true;
    1426             :         }
    1427             :     case type__::TIconURIParams:
    1428             :         {
    1429           0 :             IconURIParams tmp = IconURIParams();
    1430           0 :             (*(v__)) = tmp;
    1431           0 :             if ((!(Read((&((v__)->get_IconURIParams())), msg__, iter__)))) {
    1432           0 :                 FatalError("Error deserializing Union type");
    1433           0 :                 return false;
    1434             :             }
    1435             :             // Sentinel = 'TIconURIParams'
    1436           0 :             if ((!((msg__)->ReadSentinel(iter__, 1824279023)))) {
    1437           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1438           0 :                 return false;
    1439             :             }
    1440           0 :             return true;
    1441             :         }
    1442             :     case type__::TNullPrincipalURIParams:
    1443             :         {
    1444           0 :             NullPrincipalURIParams tmp = NullPrincipalURIParams();
    1445           0 :             (*(v__)) = tmp;
    1446           0 :             if ((!(Read((&((v__)->get_NullPrincipalURIParams())), msg__, iter__)))) {
    1447           0 :                 FatalError("Error deserializing Union type");
    1448           0 :                 return false;
    1449             :             }
    1450             :             // Sentinel = 'TNullPrincipalURIParams'
    1451           0 :             if ((!((msg__)->ReadSentinel(iter__, 216801182)))) {
    1452           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1453           0 :                 return false;
    1454             :             }
    1455           0 :             return true;
    1456             :         }
    1457             :     case type__::TJSURIParams:
    1458             :         {
    1459           0 :             JSURIParams tmp = JSURIParams();
    1460           0 :             (*(v__)) = tmp;
    1461           0 :             if ((!(Read((&((v__)->get_JSURIParams())), msg__, iter__)))) {
    1462           0 :                 FatalError("Error deserializing Union type");
    1463           0 :                 return false;
    1464             :             }
    1465             :             // Sentinel = 'TJSURIParams'
    1466           0 :             if ((!((msg__)->ReadSentinel(iter__, 32222119)))) {
    1467           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1468           0 :                 return false;
    1469             :             }
    1470           0 :             return true;
    1471             :         }
    1472             :     case type__::TSimpleNestedURIParams:
    1473             :         {
    1474           0 :             SimpleNestedURIParams tmp = SimpleNestedURIParams();
    1475           0 :             (*(v__)) = tmp;
    1476           0 :             if ((!(Read((&((v__)->get_SimpleNestedURIParams())), msg__, iter__)))) {
    1477           0 :                 FatalError("Error deserializing Union type");
    1478           0 :                 return false;
    1479             :             }
    1480             :             // Sentinel = 'TSimpleNestedURIParams'
    1481           0 :             if ((!((msg__)->ReadSentinel(iter__, 3192238307)))) {
    1482           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1483           0 :                 return false;
    1484             :             }
    1485           0 :             return true;
    1486             :         }
    1487             :     case type__::THostObjectURIParams:
    1488             :         {
    1489           0 :             HostObjectURIParams tmp = HostObjectURIParams();
    1490           0 :             (*(v__)) = tmp;
    1491           0 :             if ((!(Read((&((v__)->get_HostObjectURIParams())), msg__, iter__)))) {
    1492           0 :                 FatalError("Error deserializing Union type");
    1493           0 :                 return false;
    1494             :             }
    1495             :             // Sentinel = 'THostObjectURIParams'
    1496           0 :             if ((!((msg__)->ReadSentinel(iter__, 1307971301)))) {
    1497           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1498           0 :                 return false;
    1499             :             }
    1500           0 :             return true;
    1501             :         }
    1502             :     default:
    1503             :         {
    1504           0 :             FatalError("unknown union type");
    1505           0 :             return false;
    1506             :         }
    1507             :     }
    1508             : }
    1509             : 
    1510           0 : auto PWebSocketParent::Write(
    1511             :         const RedirectHistoryEntryInfo& v__,
    1512             :         Message* msg__) -> void
    1513             : {
    1514           0 :     Write((v__).principalInfo(), msg__);
    1515             :     // Sentinel = 'principalInfo'
    1516           0 :     (msg__)->WriteSentinel(3386633731);
    1517           0 :     Write((v__).referrerUri(), msg__);
    1518             :     // Sentinel = 'referrerUri'
    1519           0 :     (msg__)->WriteSentinel(622910354);
    1520           0 :     Write((v__).remoteAddress(), msg__);
    1521             :     // Sentinel = 'remoteAddress'
    1522           0 :     (msg__)->WriteSentinel(3204520231);
    1523           0 : }
    1524             : 
    1525           0 : auto PWebSocketParent::Read(
    1526             :         RedirectHistoryEntryInfo* v__,
    1527             :         const Message* msg__,
    1528             :         PickleIterator* iter__) -> bool
    1529             : {
    1530           0 :     if ((!(Read((&((v__)->principalInfo())), msg__, iter__)))) {
    1531           0 :         FatalError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'RedirectHistoryEntryInfo'");
    1532           0 :         return false;
    1533             :     }
    1534             :     // Sentinel = 'principalInfo'
    1535           0 :     if ((!((msg__)->ReadSentinel(iter__, 3386633731)))) {
    1536           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'RedirectHistoryEntryInfo'");
    1537           0 :         return false;
    1538             :     }
    1539           0 :     if ((!(Read((&((v__)->referrerUri())), msg__, iter__)))) {
    1540           0 :         FatalError("Error deserializing 'referrerUri' (OptionalURIParams) member of 'RedirectHistoryEntryInfo'");
    1541           0 :         return false;
    1542             :     }
    1543             :     // Sentinel = 'referrerUri'
    1544           0 :     if ((!((msg__)->ReadSentinel(iter__, 622910354)))) {
    1545           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'referrerUri' (OptionalURIParams) member of 'RedirectHistoryEntryInfo'");
    1546           0 :         return false;
    1547             :     }
    1548           0 :     if ((!(Read((&((v__)->remoteAddress())), msg__, iter__)))) {
    1549           0 :         FatalError("Error deserializing 'remoteAddress' (nsCString) member of 'RedirectHistoryEntryInfo'");
    1550           0 :         return false;
    1551             :     }
    1552             :     // Sentinel = 'remoteAddress'
    1553           0 :     if ((!((msg__)->ReadSentinel(iter__, 3204520231)))) {
    1554           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'remoteAddress' (nsCString) member of 'RedirectHistoryEntryInfo'");
    1555           0 :         return false;
    1556             :     }
    1557           0 :     return true;
    1558             : }
    1559             : 
    1560           0 : auto PWebSocketParent::Write(
    1561             :         const nsTArray<FileDescriptor>& v__,
    1562             :         Message* msg__) -> void
    1563             : {
    1564           0 :     uint32_t length = (v__).Length();
    1565           0 :     Write(length, msg__);
    1566             :     // Sentinel = ('length', 'FileDescriptor[]')
    1567           0 :     (msg__)->WriteSentinel(1697726450);
    1568             : 
    1569           0 :     for (auto& elem : v__) {
    1570           0 :         Write(elem, msg__);
    1571             :         // Sentinel = 'FileDescriptor[]'
    1572           0 :         (msg__)->WriteSentinel(1630221245);
    1573             :     }
    1574           0 : }
    1575             : 
    1576           0 : auto PWebSocketParent::Read(
    1577             :         nsTArray<FileDescriptor>* v__,
    1578             :         const Message* msg__,
    1579             :         PickleIterator* iter__) -> bool
    1580             : {
    1581           0 :     nsTArray<FileDescriptor> fa;
    1582             :     uint32_t length;
    1583           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    1584           0 :         mozilla::ipc::ArrayLengthReadError("FileDescriptor[]");
    1585           0 :         return false;
    1586             :     }
    1587             :     // Sentinel = ('length', 'FileDescriptor[]')
    1588           0 :     if ((!((msg__)->ReadSentinel(iter__, 1697726450)))) {
    1589           0 :         mozilla::ipc::SentinelReadError("FileDescriptor[]");
    1590           0 :         return false;
    1591             :     }
    1592             : 
    1593           0 :     FileDescriptor* elems = (fa).AppendElements(length);
    1594           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    1595           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    1596           0 :             FatalError("Error deserializing 'FileDescriptor[i]'");
    1597           0 :             return false;
    1598             :         }
    1599             :         // Sentinel = 'FileDescriptor[]'
    1600           0 :         if ((!((msg__)->ReadSentinel(iter__, 1630221245)))) {
    1601           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor[i]'");
    1602           0 :             return false;
    1603             :         }
    1604             :     }
    1605           0 :     (v__)->SwapElements(fa);
    1606           0 :     return true;
    1607             : }
    1608             : 
    1609           0 : auto PWebSocketParent::Write(
    1610             :         const FileInputStreamParams& v__,
    1611             :         Message* msg__) -> void
    1612             : {
    1613           0 :     Write((v__).fileDescriptorIndex(), msg__);
    1614             :     // Sentinel = 'fileDescriptorIndex'
    1615           0 :     (msg__)->WriteSentinel(587329112);
    1616           0 :     Write((v__).behaviorFlags(), msg__);
    1617             :     // Sentinel = 'behaviorFlags'
    1618           0 :     (msg__)->WriteSentinel(2404401962);
    1619           0 :     Write((v__).ioFlags(), msg__);
    1620             :     // Sentinel = 'ioFlags'
    1621           0 :     (msg__)->WriteSentinel(1483009730);
    1622           0 : }
    1623             : 
    1624           0 : auto PWebSocketParent::Read(
    1625             :         FileInputStreamParams* v__,
    1626             :         const Message* msg__,
    1627             :         PickleIterator* iter__) -> bool
    1628             : {
    1629           0 :     if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
    1630           0 :         FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
    1631           0 :         return false;
    1632             :     }
    1633             :     // Sentinel = 'fileDescriptorIndex'
    1634           0 :     if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
    1635           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
    1636           0 :         return false;
    1637             :     }
    1638           0 :     if ((!(Read((&((v__)->behaviorFlags())), msg__, iter__)))) {
    1639           0 :         FatalError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
    1640           0 :         return false;
    1641             :     }
    1642             :     // Sentinel = 'behaviorFlags'
    1643           0 :     if ((!((msg__)->ReadSentinel(iter__, 2404401962)))) {
    1644           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
    1645           0 :         return false;
    1646             :     }
    1647           0 :     if ((!(Read((&((v__)->ioFlags())), msg__, iter__)))) {
    1648           0 :         FatalError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
    1649           0 :         return false;
    1650             :     }
    1651             :     // Sentinel = 'ioFlags'
    1652           0 :     if ((!((msg__)->ReadSentinel(iter__, 1483009730)))) {
    1653           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
    1654           0 :         return false;
    1655             :     }
    1656           0 :     return true;
    1657             : }
    1658             : 
    1659           0 : auto PWebSocketParent::Write(
    1660             :         const SimpleNestedURIParams& v__,
    1661             :         Message* msg__) -> void
    1662             : {
    1663           0 :     Write((v__).simpleParams(), msg__);
    1664             :     // Sentinel = 'simpleParams'
    1665           0 :     (msg__)->WriteSentinel(3404291700);
    1666           0 :     Write((v__).innerURI(), msg__);
    1667             :     // Sentinel = 'innerURI'
    1668           0 :     (msg__)->WriteSentinel(2573245334);
    1669           0 : }
    1670             : 
    1671           0 : auto PWebSocketParent::Read(
    1672             :         SimpleNestedURIParams* v__,
    1673             :         const Message* msg__,
    1674             :         PickleIterator* iter__) -> bool
    1675             : {
    1676           0 :     if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
    1677           0 :         FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'SimpleNestedURIParams'");
    1678           0 :         return false;
    1679             :     }
    1680             :     // Sentinel = 'simpleParams'
    1681           0 :     if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
    1682           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'SimpleNestedURIParams'");
    1683           0 :         return false;
    1684             :     }
    1685           0 :     if ((!(Read((&((v__)->innerURI())), msg__, iter__)))) {
    1686           0 :         FatalError("Error deserializing 'innerURI' (URIParams) member of 'SimpleNestedURIParams'");
    1687           0 :         return false;
    1688             :     }
    1689             :     // Sentinel = 'innerURI'
    1690           0 :     if ((!((msg__)->ReadSentinel(iter__, 2573245334)))) {
    1691           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'innerURI' (URIParams) member of 'SimpleNestedURIParams'");
    1692           0 :         return false;
    1693             :     }
    1694           0 :     return true;
    1695             : }
    1696             : 
    1697           0 : auto PWebSocketParent::Write(
    1698             :         const OptionalPrincipalInfo& v__,
    1699             :         Message* msg__) -> void
    1700             : {
    1701             :     typedef OptionalPrincipalInfo type__;
    1702           0 :     Write(int((v__).type()), msg__);
    1703             :     // Sentinel = 'OptionalPrincipalInfo'
    1704           0 :     (msg__)->WriteSentinel(3041452007);
    1705             : 
    1706           0 :     switch ((v__).type()) {
    1707             :     case type__::Tvoid_t:
    1708             :         {
    1709           0 :             Write((v__).get_void_t(), msg__);
    1710             :             // Sentinel = 'Tvoid_t'
    1711           0 :             (msg__)->WriteSentinel(3041273328);
    1712           0 :             return;
    1713             :         }
    1714             :     case type__::TPrincipalInfo:
    1715             :         {
    1716           0 :             Write((v__).get_PrincipalInfo(), msg__);
    1717             :             // Sentinel = 'TPrincipalInfo'
    1718           0 :             (msg__)->WriteSentinel(1396743580);
    1719           0 :             return;
    1720             :         }
    1721             :     default:
    1722             :         {
    1723           0 :             FatalError("unknown union type");
    1724           0 :             return;
    1725             :         }
    1726             :     }
    1727             : }
    1728             : 
    1729           0 : auto PWebSocketParent::Read(
    1730             :         OptionalPrincipalInfo* v__,
    1731             :         const Message* msg__,
    1732             :         PickleIterator* iter__) -> bool
    1733             : {
    1734             :     typedef OptionalPrincipalInfo type__;
    1735             :     int type;
    1736           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1737           0 :         mozilla::ipc::UnionTypeReadError("OptionalPrincipalInfo");
    1738           0 :         return false;
    1739             :     }
    1740             :     // Sentinel = 'OptionalPrincipalInfo'
    1741           0 :     if ((!((msg__)->ReadSentinel(iter__, 3041452007)))) {
    1742           0 :         mozilla::ipc::SentinelReadError("OptionalPrincipalInfo");
    1743           0 :         return false;
    1744             :     }
    1745             : 
    1746           0 :     switch (type) {
    1747             :     case type__::Tvoid_t:
    1748             :         {
    1749             :             void_t tmp = void_t();
    1750           0 :             (*(v__)) = tmp;
    1751           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
    1752           0 :                 FatalError("Error deserializing Union type");
    1753           0 :                 return false;
    1754             :             }
    1755             :             // Sentinel = 'Tvoid_t'
    1756           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
    1757           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1758           0 :                 return false;
    1759             :             }
    1760           0 :             return true;
    1761             :         }
    1762             :     case type__::TPrincipalInfo:
    1763             :         {
    1764           0 :             PrincipalInfo tmp = PrincipalInfo();
    1765           0 :             (*(v__)) = tmp;
    1766           0 :             if ((!(Read((&((v__)->get_PrincipalInfo())), msg__, iter__)))) {
    1767           0 :                 FatalError("Error deserializing Union type");
    1768           0 :                 return false;
    1769             :             }
    1770             :             // Sentinel = 'TPrincipalInfo'
    1771           0 :             if ((!((msg__)->ReadSentinel(iter__, 1396743580)))) {
    1772           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1773           0 :                 return false;
    1774             :             }
    1775           0 :             return true;
    1776             :         }
    1777             :     default:
    1778             :         {
    1779           0 :             FatalError("unknown union type");
    1780           0 :             return false;
    1781             :         }
    1782             :     }
    1783             : }
    1784             : 
    1785           0 : auto PWebSocketParent::Write(
    1786             :         const FileDescriptor& v__,
    1787             :         Message* msg__) -> void
    1788             : {
    1789           0 :     FileDescriptor::PickleType pfd = (v__).ShareTo(FileDescriptor::IPDLPrivate(), OtherPid());
    1790           0 :     IPC::WriteParam(msg__, pfd);
    1791           0 : }
    1792             : 
    1793           0 : auto PWebSocketParent::Read(
    1794             :         FileDescriptor* v__,
    1795             :         const Message* msg__,
    1796             :         PickleIterator* iter__) -> bool
    1797             : {
    1798           0 :     FileDescriptor::PickleType pfd;
    1799           0 :     if ((!(IPC::ReadParam(msg__, iter__, (&(pfd)))))) {
    1800           0 :         return false;
    1801             :     }
    1802             : 
    1803           0 :     FileDescriptor fd = FileDescriptor(FileDescriptor::IPDLPrivate(), pfd);
    1804           0 :     if ((!((fd).IsValid()))) {
    1805           0 :         mozilla::ipc::ProtocolErrorBreakpoint("[PWebSocketParent] Received an invalid file descriptor!");
    1806             :     }
    1807             : 
    1808           0 :     (*(v__)) = fd;
    1809           0 :     return true;
    1810             : }
    1811             : 
    1812           0 : auto PWebSocketParent::Write(
    1813             :         const ExpandedPrincipalInfo& v__,
    1814             :         Message* msg__) -> void
    1815             : {
    1816           0 :     Write((v__).attrs(), msg__);
    1817             :     // Sentinel = 'attrs'
    1818           0 :     (msg__)->WriteSentinel(3014987797);
    1819           0 :     Write((v__).whitelist(), msg__);
    1820             :     // Sentinel = 'whitelist'
    1821           0 :     (msg__)->WriteSentinel(3731637258);
    1822           0 : }
    1823             : 
    1824           0 : auto PWebSocketParent::Read(
    1825             :         ExpandedPrincipalInfo* v__,
    1826             :         const Message* msg__,
    1827             :         PickleIterator* iter__) -> bool
    1828             : {
    1829           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
    1830           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
    1831           0 :         return false;
    1832             :     }
    1833             :     // Sentinel = 'attrs'
    1834           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
    1835           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
    1836           0 :         return false;
    1837             :     }
    1838           0 :     if ((!(Read((&((v__)->whitelist())), msg__, iter__)))) {
    1839           0 :         FatalError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
    1840           0 :         return false;
    1841             :     }
    1842             :     // Sentinel = 'whitelist'
    1843           0 :     if ((!((msg__)->ReadSentinel(iter__, 3731637258)))) {
    1844           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
    1845           0 :         return false;
    1846             :     }
    1847           0 :     return true;
    1848             : }
    1849             : 
    1850           0 : auto PWebSocketParent::Write(
    1851             :         const JSURIParams& v__,
    1852             :         Message* msg__) -> void
    1853             : {
    1854           0 :     Write((v__).simpleParams(), msg__);
    1855             :     // Sentinel = 'simpleParams'
    1856           0 :     (msg__)->WriteSentinel(3404291700);
    1857           0 :     Write((v__).baseURI(), msg__);
    1858             :     // Sentinel = 'baseURI'
    1859           0 :     (msg__)->WriteSentinel(1836705256);
    1860           0 : }
    1861             : 
    1862           0 : auto PWebSocketParent::Read(
    1863             :         JSURIParams* v__,
    1864             :         const Message* msg__,
    1865             :         PickleIterator* iter__) -> bool
    1866             : {
    1867           0 :     if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
    1868           0 :         FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'JSURIParams'");
    1869           0 :         return false;
    1870             :     }
    1871             :     // Sentinel = 'simpleParams'
    1872           0 :     if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
    1873           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'JSURIParams'");
    1874           0 :         return false;
    1875             :     }
    1876           0 :     if ((!(Read((&((v__)->baseURI())), msg__, iter__)))) {
    1877           0 :         FatalError("Error deserializing 'baseURI' (OptionalURIParams) member of 'JSURIParams'");
    1878           0 :         return false;
    1879             :     }
    1880             :     // Sentinel = 'baseURI'
    1881           0 :     if ((!((msg__)->ReadSentinel(iter__, 1836705256)))) {
    1882           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'baseURI' (OptionalURIParams) member of 'JSURIParams'");
    1883           0 :         return false;
    1884             :     }
    1885           0 :     return true;
    1886             : }
    1887             : 
    1888           0 : auto PWebSocketParent::Write(
    1889             :         const HostObjectURIParams& v__,
    1890             :         Message* msg__) -> void
    1891             : {
    1892           0 :     Write((v__).simpleParams(), msg__);
    1893             :     // Sentinel = 'simpleParams'
    1894           0 :     (msg__)->WriteSentinel(3404291700);
    1895           0 :     Write((v__).principal(), msg__);
    1896             :     // Sentinel = 'principal'
    1897           0 :     (msg__)->WriteSentinel(732240927);
    1898           0 : }
    1899             : 
    1900           0 : auto PWebSocketParent::Read(
    1901             :         HostObjectURIParams* v__,
    1902             :         const Message* msg__,
    1903             :         PickleIterator* iter__) -> bool
    1904             : {
    1905           0 :     if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
    1906           0 :         FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'HostObjectURIParams'");
    1907           0 :         return false;
    1908             :     }
    1909             :     // Sentinel = 'simpleParams'
    1910           0 :     if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
    1911           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'HostObjectURIParams'");
    1912           0 :         return false;
    1913             :     }
    1914           0 :     if ((!(Read((&((v__)->principal())), msg__, iter__)))) {
    1915           0 :         FatalError("Error deserializing 'principal' (OptionalPrincipalInfo) member of 'HostObjectURIParams'");
    1916           0 :         return false;
    1917             :     }
    1918             :     // Sentinel = 'principal'
    1919           0 :     if ((!((msg__)->ReadSentinel(iter__, 732240927)))) {
    1920           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'principal' (OptionalPrincipalInfo) member of 'HostObjectURIParams'");
    1921           0 :         return false;
    1922             :     }
    1923           0 :     return true;
    1924             : }
    1925             : 
    1926           0 : auto PWebSocketParent::Write(
    1927             :         const InputStreamParamsWithFds& v__,
    1928             :         Message* msg__) -> void
    1929             : {
    1930           0 :     Write((v__).stream(), msg__);
    1931             :     // Sentinel = 'stream'
    1932           0 :     (msg__)->WriteSentinel(4152748422);
    1933           0 :     Write((v__).optionalFds(), msg__);
    1934             :     // Sentinel = 'optionalFds'
    1935           0 :     (msg__)->WriteSentinel(1021803302);
    1936           0 : }
    1937             : 
    1938           0 : auto PWebSocketParent::Read(
    1939             :         InputStreamParamsWithFds* v__,
    1940             :         const Message* msg__,
    1941             :         PickleIterator* iter__) -> bool
    1942             : {
    1943           0 :     if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
    1944           0 :         FatalError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
    1945           0 :         return false;
    1946             :     }
    1947             :     // Sentinel = 'stream'
    1948           0 :     if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
    1949           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
    1950           0 :         return false;
    1951             :     }
    1952           0 :     if ((!(Read((&((v__)->optionalFds())), msg__, iter__)))) {
    1953           0 :         FatalError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
    1954           0 :         return false;
    1955             :     }
    1956             :     // Sentinel = 'optionalFds'
    1957           0 :     if ((!((msg__)->ReadSentinel(iter__, 1021803302)))) {
    1958           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
    1959           0 :         return false;
    1960             :     }
    1961           0 :     return true;
    1962             : }
    1963             : 
    1964           0 : auto PWebSocketParent::Write(
    1965             :         const PWebSocketParent* v__,
    1966             :         Message* msg__,
    1967             :         bool nullable__) -> void
    1968             : {
    1969             :     int32_t id;
    1970           0 :     if ((!(v__))) {
    1971           0 :         if ((!(nullable__))) {
    1972           0 :             FatalError("NULL actor value passed to non-nullable param");
    1973             :         }
    1974           0 :         id = 0;
    1975             :     }
    1976             :     else {
    1977           0 :         id = (v__)->Id();
    1978           0 :         if ((1) == (id)) {
    1979           0 :             FatalError("actor has been |delete|d");
    1980             :         }
    1981             :     }
    1982             : 
    1983           0 :     Write(id, msg__);
    1984           0 : }
    1985             : 
    1986           0 : auto PWebSocketParent::Read(
    1987             :         PWebSocketParent** v__,
    1988             :         const Message* msg__,
    1989             :         PickleIterator* iter__,
    1990             :         bool nullable__) -> bool
    1991             : {
    1992           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PWebSocket", PWebSocketMsgStart);
    1993           0 :     if ((actor).isNothing()) {
    1994           0 :         return false;
    1995             :     }
    1996             : 
    1997           0 :     (*(v__)) = static_cast<PWebSocketParent*>((actor).value());
    1998           0 :     return true;
    1999             : }
    2000             : 
    2001           0 : auto PWebSocketParent::Write(
    2002             :         const PTransportProviderParent* v__,
    2003             :         Message* msg__,
    2004             :         bool nullable__) -> void
    2005             : {
    2006             :     int32_t id;
    2007           0 :     if ((!(v__))) {
    2008           0 :         if ((!(nullable__))) {
    2009           0 :             FatalError("NULL actor value passed to non-nullable param");
    2010             :         }
    2011           0 :         id = 0;
    2012             :     }
    2013             :     else {
    2014           0 :         id = (v__)->Id();
    2015           0 :         if ((1) == (id)) {
    2016           0 :             FatalError("actor has been |delete|d");
    2017             :         }
    2018             :     }
    2019             : 
    2020           0 :     Write(id, msg__);
    2021           0 : }
    2022             : 
    2023           0 : auto PWebSocketParent::Read(
    2024             :         PTransportProviderParent** v__,
    2025             :         const Message* msg__,
    2026             :         PickleIterator* iter__,
    2027             :         bool nullable__) -> bool
    2028             : {
    2029           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PTransportProvider", PTransportProviderMsgStart);
    2030           0 :     if ((actor).isNothing()) {
    2031           0 :         return false;
    2032             :     }
    2033             : 
    2034           0 :     (*(v__)) = static_cast<PTransportProviderParent*>((actor).value());
    2035           0 :     return true;
    2036             : }
    2037             : 
    2038           0 : auto PWebSocketParent::Write(
    2039             :         const IPCRemoteStreamType& v__,
    2040             :         Message* msg__) -> void
    2041             : {
    2042             :     typedef IPCRemoteStreamType type__;
    2043           0 :     Write(int((v__).type()), msg__);
    2044             :     // Sentinel = 'IPCRemoteStreamType'
    2045           0 :     (msg__)->WriteSentinel(391674895);
    2046             : 
    2047           0 :     switch ((v__).type()) {
    2048             :     case type__::TPChildToParentStreamParent:
    2049             :         {
    2050           0 :             Write((v__).get_PChildToParentStreamParent(), msg__, false);
    2051             :             // Sentinel = 'TPChildToParentStreamParent'
    2052           0 :             (msg__)->WriteSentinel(2724777622);
    2053           0 :             return;
    2054             :         }
    2055             :     case type__::TPChildToParentStreamChild:
    2056             :         {
    2057           0 :             FatalError("wrong side!");
    2058           0 :             return;
    2059             :         }
    2060             :     case type__::TPParentToChildStreamParent:
    2061             :         {
    2062           0 :             Write((v__).get_PParentToChildStreamParent(), msg__, false);
    2063             :             // Sentinel = 'TPParentToChildStreamParent'
    2064           0 :             (msg__)->WriteSentinel(3335986876);
    2065           0 :             return;
    2066             :         }
    2067             :     case type__::TPParentToChildStreamChild:
    2068             :         {
    2069           0 :             FatalError("wrong side!");
    2070           0 :             return;
    2071             :         }
    2072             :     default:
    2073             :         {
    2074           0 :             FatalError("unknown union type");
    2075           0 :             return;
    2076             :         }
    2077             :     }
    2078             : }
    2079             : 
    2080           0 : auto PWebSocketParent::Read(
    2081             :         IPCRemoteStreamType* v__,
    2082             :         const Message* msg__,
    2083             :         PickleIterator* iter__) -> bool
    2084             : {
    2085             :     typedef IPCRemoteStreamType type__;
    2086             :     int type;
    2087           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    2088           0 :         mozilla::ipc::UnionTypeReadError("IPCRemoteStreamType");
    2089           0 :         return false;
    2090             :     }
    2091             :     // Sentinel = 'IPCRemoteStreamType'
    2092           0 :     if ((!((msg__)->ReadSentinel(iter__, 391674895)))) {
    2093           0 :         mozilla::ipc::SentinelReadError("IPCRemoteStreamType");
    2094           0 :         return false;
    2095             :     }
    2096             : 
    2097           0 :     switch (type) {
    2098             :     case type__::TPChildToParentStreamParent:
    2099             :         {
    2100           0 :             return false;
    2101             :         }
    2102             :     case type__::TPChildToParentStreamChild:
    2103             :         {
    2104           0 :             PChildToParentStreamParent* tmp = nullptr;
    2105           0 :             (*(v__)) = tmp;
    2106           0 :             if ((!(Read((&((v__)->get_PChildToParentStreamParent())), msg__, iter__, false)))) {
    2107           0 :                 FatalError("Error deserializing Union type");
    2108           0 :                 return false;
    2109             :             }
    2110             :             // Sentinel = 'TPChildToParentStreamChild'
    2111           0 :             if ((!((msg__)->ReadSentinel(iter__, 1882094295)))) {
    2112           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2113           0 :                 return false;
    2114             :             }
    2115           0 :             return true;
    2116             :         }
    2117             :     case type__::TPParentToChildStreamParent:
    2118             :         {
    2119           0 :             return false;
    2120             :         }
    2121             :     case type__::TPParentToChildStreamChild:
    2122             :         {
    2123           0 :             PParentToChildStreamParent* tmp = nullptr;
    2124           0 :             (*(v__)) = tmp;
    2125           0 :             if ((!(Read((&((v__)->get_PParentToChildStreamParent())), msg__, iter__, false)))) {
    2126           0 :                 FatalError("Error deserializing Union type");
    2127           0 :                 return false;
    2128             :             }
    2129             :             // Sentinel = 'TPParentToChildStreamChild'
    2130           0 :             if ((!((msg__)->ReadSentinel(iter__, 190098493)))) {
    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 PWebSocketParent::Write(
    2145             :         const nsTArray<HeaderEntry>& v__,
    2146             :         Message* msg__) -> void
    2147             : {
    2148           0 :     uint32_t length = (v__).Length();
    2149           0 :     Write(length, msg__);
    2150             :     // Sentinel = ('length', 'HeaderEntry[]')
    2151           0 :     (msg__)->WriteSentinel(2689457705);
    2152             : 
    2153           0 :     for (auto& elem : v__) {
    2154           0 :         Write(elem, msg__);
    2155             :         // Sentinel = 'HeaderEntry[]'
    2156           0 :         (msg__)->WriteSentinel(454836120);
    2157             :     }
    2158           0 : }
    2159             : 
    2160           0 : auto PWebSocketParent::Read(
    2161             :         nsTArray<HeaderEntry>* v__,
    2162             :         const Message* msg__,
    2163             :         PickleIterator* iter__) -> bool
    2164             : {
    2165           0 :     nsTArray<HeaderEntry> fa;
    2166             :     uint32_t length;
    2167           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    2168           0 :         mozilla::ipc::ArrayLengthReadError("HeaderEntry[]");
    2169           0 :         return false;
    2170             :     }
    2171             :     // Sentinel = ('length', 'HeaderEntry[]')
    2172           0 :     if ((!((msg__)->ReadSentinel(iter__, 2689457705)))) {
    2173           0 :         mozilla::ipc::SentinelReadError("HeaderEntry[]");
    2174           0 :         return false;
    2175             :     }
    2176             : 
    2177           0 :     HeaderEntry* elems = (fa).AppendElements(length);
    2178           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    2179           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    2180           0 :             FatalError("Error deserializing 'HeaderEntry[i]'");
    2181           0 :             return false;
    2182             :         }
    2183             :         // Sentinel = 'HeaderEntry[]'
    2184           0 :         if ((!((msg__)->ReadSentinel(iter__, 454836120)))) {
    2185           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'HeaderEntry[i]'");
    2186           0 :             return false;
    2187             :         }
    2188             :     }
    2189           0 :     (v__)->SwapElements(fa);
    2190           0 :     return true;
    2191             : }
    2192             : 
    2193           0 : auto PWebSocketParent::Write(
    2194             :         const HeaderEntry& v__,
    2195             :         Message* msg__) -> void
    2196             : {
    2197           0 :     Write((v__).name(), msg__);
    2198             :     // Sentinel = 'name'
    2199           0 :     (msg__)->WriteSentinel(15034981);
    2200           0 :     Write((v__).value(), msg__);
    2201             :     // Sentinel = 'value'
    2202           0 :     (msg__)->WriteSentinel(3456818542);
    2203           0 : }
    2204             : 
    2205           0 : auto PWebSocketParent::Read(
    2206             :         HeaderEntry* v__,
    2207             :         const Message* msg__,
    2208             :         PickleIterator* iter__) -> bool
    2209             : {
    2210           0 :     if ((!(Read((&((v__)->name())), msg__, iter__)))) {
    2211           0 :         FatalError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
    2212           0 :         return false;
    2213             :     }
    2214             :     // Sentinel = 'name'
    2215           0 :     if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
    2216           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
    2217           0 :         return false;
    2218             :     }
    2219           0 :     if ((!(Read((&((v__)->value())), msg__, iter__)))) {
    2220           0 :         FatalError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
    2221           0 :         return false;
    2222             :     }
    2223             :     // Sentinel = 'value'
    2224           0 :     if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
    2225           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
    2226           0 :         return false;
    2227             :     }
    2228           0 :     return true;
    2229             : }
    2230             : 
    2231           0 : auto PWebSocketParent::Write(
    2232             :         const SlicedInputStreamParams& v__,
    2233             :         Message* msg__) -> void
    2234             : {
    2235           0 :     Write((v__).stream(), msg__);
    2236             :     // Sentinel = 'stream'
    2237           0 :     (msg__)->WriteSentinel(4152748422);
    2238           0 :     Write((v__).start(), msg__);
    2239             :     // Sentinel = 'start'
    2240           0 :     (msg__)->WriteSentinel(2088644401);
    2241           0 :     Write((v__).length(), msg__);
    2242             :     // Sentinel = 'length'
    2243           0 :     (msg__)->WriteSentinel(1726618354);
    2244           0 :     Write((v__).curPos(), msg__);
    2245             :     // Sentinel = 'curPos'
    2246           0 :     (msg__)->WriteSentinel(4042140974);
    2247           0 :     Write((v__).closed(), msg__);
    2248             :     // Sentinel = 'closed'
    2249           0 :     (msg__)->WriteSentinel(561249462);
    2250           0 : }
    2251             : 
    2252           0 : auto PWebSocketParent::Read(
    2253             :         SlicedInputStreamParams* v__,
    2254             :         const Message* msg__,
    2255             :         PickleIterator* iter__) -> bool
    2256             : {
    2257           0 :     if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
    2258           0 :         FatalError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
    2259           0 :         return false;
    2260             :     }
    2261             :     // Sentinel = 'stream'
    2262           0 :     if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
    2263           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
    2264           0 :         return false;
    2265             :     }
    2266           0 :     if ((!(Read((&((v__)->start())), msg__, iter__)))) {
    2267           0 :         FatalError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
    2268           0 :         return false;
    2269             :     }
    2270             :     // Sentinel = 'start'
    2271           0 :     if ((!((msg__)->ReadSentinel(iter__, 2088644401)))) {
    2272           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
    2273           0 :         return false;
    2274             :     }
    2275           0 :     if ((!(Read((&((v__)->length())), msg__, iter__)))) {
    2276           0 :         FatalError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
    2277           0 :         return false;
    2278             :     }
    2279             :     // Sentinel = 'length'
    2280           0 :     if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
    2281           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
    2282           0 :         return false;
    2283             :     }
    2284           0 :     if ((!(Read((&((v__)->curPos())), msg__, iter__)))) {
    2285           0 :         FatalError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
    2286           0 :         return false;
    2287             :     }
    2288             :     // Sentinel = 'curPos'
    2289           0 :     if ((!((msg__)->ReadSentinel(iter__, 4042140974)))) {
    2290           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
    2291           0 :         return false;
    2292             :     }
    2293           0 :     if ((!(Read((&((v__)->closed())), msg__, iter__)))) {
    2294           0 :         FatalError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
    2295           0 :         return false;
    2296             :     }
    2297             :     // Sentinel = 'closed'
    2298           0 :     if ((!((msg__)->ReadSentinel(iter__, 561249462)))) {
    2299           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
    2300           0 :         return false;
    2301             :     }
    2302           0 :     return true;
    2303             : }
    2304             : 
    2305           0 : auto PWebSocketParent::Write(
    2306             :         const PrincipalInfo& v__,
    2307             :         Message* msg__) -> void
    2308             : {
    2309             :     typedef PrincipalInfo type__;
    2310           0 :     Write(int((v__).type()), msg__);
    2311             :     // Sentinel = 'PrincipalInfo'
    2312           0 :     (msg__)->WriteSentinel(4194518819);
    2313             : 
    2314           0 :     switch ((v__).type()) {
    2315             :     case type__::TContentPrincipalInfo:
    2316             :         {
    2317           0 :             Write((v__).get_ContentPrincipalInfo(), msg__);
    2318             :             // Sentinel = 'TContentPrincipalInfo'
    2319           0 :             (msg__)->WriteSentinel(3677342258);
    2320           0 :             return;
    2321             :         }
    2322             :     case type__::TSystemPrincipalInfo:
    2323             :         {
    2324           0 :             Write((v__).get_SystemPrincipalInfo(), msg__);
    2325             :             // Sentinel = 'TSystemPrincipalInfo'
    2326           0 :             (msg__)->WriteSentinel(3590603679);
    2327           0 :             return;
    2328             :         }
    2329             :     case type__::TNullPrincipalInfo:
    2330             :         {
    2331           0 :             Write((v__).get_NullPrincipalInfo(), msg__);
    2332             :             // Sentinel = 'TNullPrincipalInfo'
    2333           0 :             (msg__)->WriteSentinel(3477774965);
    2334           0 :             return;
    2335             :         }
    2336             :     case type__::TExpandedPrincipalInfo:
    2337             :         {
    2338           0 :             Write((v__).get_ExpandedPrincipalInfo(), msg__);
    2339             :             // Sentinel = 'TExpandedPrincipalInfo'
    2340           0 :             (msg__)->WriteSentinel(589324917);
    2341           0 :             return;
    2342             :         }
    2343             :     default:
    2344             :         {
    2345           0 :             FatalError("unknown union type");
    2346           0 :             return;
    2347             :         }
    2348             :     }
    2349             : }
    2350             : 
    2351           0 : auto PWebSocketParent::Read(
    2352             :         PrincipalInfo* v__,
    2353             :         const Message* msg__,
    2354             :         PickleIterator* iter__) -> bool
    2355             : {
    2356             :     typedef PrincipalInfo type__;
    2357             :     int type;
    2358           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    2359           0 :         mozilla::ipc::UnionTypeReadError("PrincipalInfo");
    2360           0 :         return false;
    2361             :     }
    2362             :     // Sentinel = 'PrincipalInfo'
    2363           0 :     if ((!((msg__)->ReadSentinel(iter__, 4194518819)))) {
    2364           0 :         mozilla::ipc::SentinelReadError("PrincipalInfo");
    2365           0 :         return false;
    2366             :     }
    2367             : 
    2368           0 :     switch (type) {
    2369             :     case type__::TContentPrincipalInfo:
    2370             :         {
    2371           0 :             ContentPrincipalInfo tmp = ContentPrincipalInfo();
    2372           0 :             (*(v__)) = tmp;
    2373           0 :             if ((!(Read((&((v__)->get_ContentPrincipalInfo())), msg__, iter__)))) {
    2374           0 :                 FatalError("Error deserializing Union type");
    2375           0 :                 return false;
    2376             :             }
    2377             :             // Sentinel = 'TContentPrincipalInfo'
    2378           0 :             if ((!((msg__)->ReadSentinel(iter__, 3677342258)))) {
    2379           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2380           0 :                 return false;
    2381             :             }
    2382           0 :             return true;
    2383             :         }
    2384             :     case type__::TSystemPrincipalInfo:
    2385             :         {
    2386           0 :             SystemPrincipalInfo tmp = SystemPrincipalInfo();
    2387           0 :             (*(v__)) = tmp;
    2388           0 :             if ((!(Read((&((v__)->get_SystemPrincipalInfo())), msg__, iter__)))) {
    2389           0 :                 FatalError("Error deserializing Union type");
    2390           0 :                 return false;
    2391             :             }
    2392             :             // Sentinel = 'TSystemPrincipalInfo'
    2393           0 :             if ((!((msg__)->ReadSentinel(iter__, 3590603679)))) {
    2394           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2395           0 :                 return false;
    2396             :             }
    2397           0 :             return true;
    2398             :         }
    2399             :     case type__::TNullPrincipalInfo:
    2400             :         {
    2401           0 :             NullPrincipalInfo tmp = NullPrincipalInfo();
    2402           0 :             (*(v__)) = tmp;
    2403           0 :             if ((!(Read((&((v__)->get_NullPrincipalInfo())), msg__, iter__)))) {
    2404           0 :                 FatalError("Error deserializing Union type");
    2405           0 :                 return false;
    2406             :             }
    2407             :             // Sentinel = 'TNullPrincipalInfo'
    2408           0 :             if ((!((msg__)->ReadSentinel(iter__, 3477774965)))) {
    2409           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2410           0 :                 return false;
    2411             :             }
    2412           0 :             return true;
    2413             :         }
    2414             :     case type__::TExpandedPrincipalInfo:
    2415             :         {
    2416           0 :             ExpandedPrincipalInfo tmp = ExpandedPrincipalInfo();
    2417           0 :             (*(v__)) = tmp;
    2418           0 :             if ((!(Read((&((v__)->get_ExpandedPrincipalInfo())), msg__, iter__)))) {
    2419           0 :                 FatalError("Error deserializing Union type");
    2420           0 :                 return false;
    2421             :             }
    2422             :             // Sentinel = 'TExpandedPrincipalInfo'
    2423           0 :             if ((!((msg__)->ReadSentinel(iter__, 589324917)))) {
    2424           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2425           0 :                 return false;
    2426             :             }
    2427           0 :             return true;
    2428             :         }
    2429             :     default:
    2430             :         {
    2431           0 :             FatalError("unknown union type");
    2432           0 :             return false;
    2433             :         }
    2434             :     }
    2435             : }
    2436             : 
    2437           0 : auto PWebSocketParent::Write(
    2438             :         const TemporaryFileInputStreamParams& v__,
    2439             :         Message* msg__) -> void
    2440             : {
    2441           0 :     Write((v__).fileDescriptorIndex(), msg__);
    2442             :     // Sentinel = 'fileDescriptorIndex'
    2443           0 :     (msg__)->WriteSentinel(587329112);
    2444           0 :     Write((v__).startPos(), msg__);
    2445             :     // Sentinel = 'startPos'
    2446           0 :     (msg__)->WriteSentinel(557207962);
    2447           0 :     Write((v__).endPos(), msg__);
    2448             :     // Sentinel = 'endPos'
    2449           0 :     (msg__)->WriteSentinel(881536245);
    2450           0 : }
    2451             : 
    2452           0 : auto PWebSocketParent::Read(
    2453             :         TemporaryFileInputStreamParams* v__,
    2454             :         const Message* msg__,
    2455             :         PickleIterator* iter__) -> bool
    2456             : {
    2457           0 :     if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
    2458           0 :         FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
    2459           0 :         return false;
    2460             :     }
    2461             :     // Sentinel = 'fileDescriptorIndex'
    2462           0 :     if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
    2463           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
    2464           0 :         return false;
    2465             :     }
    2466           0 :     if ((!(Read((&((v__)->startPos())), msg__, iter__)))) {
    2467           0 :         FatalError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
    2468           0 :         return false;
    2469             :     }
    2470             :     // Sentinel = 'startPos'
    2471           0 :     if ((!((msg__)->ReadSentinel(iter__, 557207962)))) {
    2472           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
    2473           0 :         return false;
    2474             :     }
    2475           0 :     if ((!(Read((&((v__)->endPos())), msg__, iter__)))) {
    2476           0 :         FatalError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
    2477           0 :         return false;
    2478             :     }
    2479             :     // Sentinel = 'endPos'
    2480           0 :     if ((!((msg__)->ReadSentinel(iter__, 881536245)))) {
    2481           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
    2482           0 :         return false;
    2483             :     }
    2484           0 :     return true;
    2485             : }
    2486             : 
    2487           0 : auto PWebSocketParent::Write(
    2488             :         const IPCStream& v__,
    2489             :         Message* msg__) -> void
    2490             : {
    2491             :     typedef IPCStream type__;
    2492           0 :     Write(int((v__).type()), msg__);
    2493             :     // Sentinel = 'IPCStream'
    2494           0 :     (msg__)->WriteSentinel(442610715);
    2495             : 
    2496           0 :     switch ((v__).type()) {
    2497             :     case type__::TInputStreamParamsWithFds:
    2498             :         {
    2499           0 :             Write((v__).get_InputStreamParamsWithFds(), msg__);
    2500             :             // Sentinel = 'TInputStreamParamsWithFds'
    2501           0 :             (msg__)->WriteSentinel(2170706066);
    2502           0 :             return;
    2503             :         }
    2504             :     case type__::TIPCRemoteStream:
    2505             :         {
    2506           0 :             Write((v__).get_IPCRemoteStream(), msg__);
    2507             :             // Sentinel = 'TIPCRemoteStream'
    2508           0 :             (msg__)->WriteSentinel(2978132448);
    2509           0 :             return;
    2510             :         }
    2511             :     default:
    2512             :         {
    2513           0 :             FatalError("unknown union type");
    2514           0 :             return;
    2515             :         }
    2516             :     }
    2517             : }
    2518             : 
    2519           0 : auto PWebSocketParent::Read(
    2520             :         IPCStream* v__,
    2521             :         const Message* msg__,
    2522             :         PickleIterator* iter__) -> bool
    2523             : {
    2524             :     typedef IPCStream type__;
    2525             :     int type;
    2526           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    2527           0 :         mozilla::ipc::UnionTypeReadError("IPCStream");
    2528           0 :         return false;
    2529             :     }
    2530             :     // Sentinel = 'IPCStream'
    2531           0 :     if ((!((msg__)->ReadSentinel(iter__, 442610715)))) {
    2532           0 :         mozilla::ipc::SentinelReadError("IPCStream");
    2533           0 :         return false;
    2534             :     }
    2535             : 
    2536           0 :     switch (type) {
    2537             :     case type__::TInputStreamParamsWithFds:
    2538             :         {
    2539           0 :             InputStreamParamsWithFds tmp = InputStreamParamsWithFds();
    2540           0 :             (*(v__)) = tmp;
    2541           0 :             if ((!(Read((&((v__)->get_InputStreamParamsWithFds())), msg__, iter__)))) {
    2542           0 :                 FatalError("Error deserializing Union type");
    2543           0 :                 return false;
    2544             :             }
    2545             :             // Sentinel = 'TInputStreamParamsWithFds'
    2546           0 :             if ((!((msg__)->ReadSentinel(iter__, 2170706066)))) {
    2547           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2548           0 :                 return false;
    2549             :             }
    2550           0 :             return true;
    2551             :         }
    2552             :     case type__::TIPCRemoteStream:
    2553             :         {
    2554           0 :             IPCRemoteStream tmp = IPCRemoteStream();
    2555           0 :             (*(v__)) = tmp;
    2556           0 :             if ((!(Read((&((v__)->get_IPCRemoteStream())), msg__, iter__)))) {
    2557           0 :                 FatalError("Error deserializing Union type");
    2558           0 :                 return false;
    2559             :             }
    2560             :             // Sentinel = 'TIPCRemoteStream'
    2561           0 :             if ((!((msg__)->ReadSentinel(iter__, 2978132448)))) {
    2562           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2563           0 :                 return false;
    2564             :             }
    2565           0 :             return true;
    2566             :         }
    2567             :     default:
    2568             :         {
    2569           0 :             FatalError("unknown union type");
    2570           0 :             return false;
    2571             :         }
    2572             :     }
    2573             : }
    2574             : 
    2575           0 : auto PWebSocketParent::Write(
    2576             :         const JARURIParams& v__,
    2577             :         Message* msg__) -> void
    2578             : {
    2579           0 :     Write((v__).jarFile(), msg__);
    2580             :     // Sentinel = 'jarFile'
    2581           0 :     (msg__)->WriteSentinel(1572070078);
    2582           0 :     Write((v__).jarEntry(), msg__);
    2583             :     // Sentinel = 'jarEntry'
    2584           0 :     (msg__)->WriteSentinel(941016033);
    2585           0 :     Write((v__).charset(), msg__);
    2586             :     // Sentinel = 'charset'
    2587           0 :     (msg__)->WriteSentinel(1551550891);
    2588           0 : }
    2589             : 
    2590           0 : auto PWebSocketParent::Read(
    2591             :         JARURIParams* v__,
    2592             :         const Message* msg__,
    2593             :         PickleIterator* iter__) -> bool
    2594             : {
    2595           0 :     if ((!(Read((&((v__)->jarFile())), msg__, iter__)))) {
    2596           0 :         FatalError("Error deserializing 'jarFile' (URIParams) member of 'JARURIParams'");
    2597           0 :         return false;
    2598             :     }
    2599             :     // Sentinel = 'jarFile'
    2600           0 :     if ((!((msg__)->ReadSentinel(iter__, 1572070078)))) {
    2601           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'jarFile' (URIParams) member of 'JARURIParams'");
    2602           0 :         return false;
    2603             :     }
    2604           0 :     if ((!(Read((&((v__)->jarEntry())), msg__, iter__)))) {
    2605           0 :         FatalError("Error deserializing 'jarEntry' (URIParams) member of 'JARURIParams'");
    2606           0 :         return false;
    2607             :     }
    2608             :     // Sentinel = 'jarEntry'
    2609           0 :     if ((!((msg__)->ReadSentinel(iter__, 941016033)))) {
    2610           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'jarEntry' (URIParams) member of 'JARURIParams'");
    2611           0 :         return false;
    2612             :     }
    2613           0 :     if ((!(Read((&((v__)->charset())), msg__, iter__)))) {
    2614           0 :         FatalError("Error deserializing 'charset' (nsCString) member of 'JARURIParams'");
    2615           0 :         return false;
    2616             :     }
    2617             :     // Sentinel = 'charset'
    2618           0 :     if ((!((msg__)->ReadSentinel(iter__, 1551550891)))) {
    2619           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'charset' (nsCString) member of 'JARURIParams'");
    2620           0 :         return false;
    2621             :     }
    2622           0 :     return true;
    2623             : }
    2624             : 
    2625           0 : auto PWebSocketParent::Write(
    2626             :         const ContentPrincipalInfo& v__,
    2627             :         Message* msg__) -> void
    2628             : {
    2629           0 :     Write((v__).attrs(), msg__);
    2630             :     // Sentinel = 'attrs'
    2631           0 :     (msg__)->WriteSentinel(3014987797);
    2632           0 :     Write((v__).originNoSuffix(), msg__);
    2633             :     // Sentinel = 'originNoSuffix'
    2634           0 :     (msg__)->WriteSentinel(2833071422);
    2635           0 :     Write((v__).spec(), msg__);
    2636             :     // Sentinel = 'spec'
    2637           0 :     (msg__)->WriteSentinel(1630740541);
    2638           0 : }
    2639             : 
    2640           0 : auto PWebSocketParent::Read(
    2641             :         ContentPrincipalInfo* v__,
    2642             :         const Message* msg__,
    2643             :         PickleIterator* iter__) -> bool
    2644             : {
    2645           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
    2646           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
    2647           0 :         return false;
    2648             :     }
    2649             :     // Sentinel = 'attrs'
    2650           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
    2651           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
    2652           0 :         return false;
    2653             :     }
    2654           0 :     if ((!(Read((&((v__)->originNoSuffix())), msg__, iter__)))) {
    2655           0 :         FatalError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
    2656           0 :         return false;
    2657             :     }
    2658             :     // Sentinel = 'originNoSuffix'
    2659           0 :     if ((!((msg__)->ReadSentinel(iter__, 2833071422)))) {
    2660           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
    2661           0 :         return false;
    2662             :     }
    2663           0 :     if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
    2664           0 :         FatalError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
    2665           0 :         return false;
    2666             :     }
    2667             :     // Sentinel = 'spec'
    2668           0 :     if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
    2669           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
    2670           0 :         return false;
    2671             :     }
    2672           0 :     return true;
    2673             : }
    2674             : 
    2675           0 : auto PWebSocketParent::Write(
    2676             :         const PParentToChildStreamParent* v__,
    2677             :         Message* msg__,
    2678             :         bool nullable__) -> void
    2679             : {
    2680             :     int32_t id;
    2681           0 :     if ((!(v__))) {
    2682           0 :         if ((!(nullable__))) {
    2683           0 :             FatalError("NULL actor value passed to non-nullable param");
    2684             :         }
    2685           0 :         id = 0;
    2686             :     }
    2687             :     else {
    2688           0 :         id = (v__)->Id();
    2689           0 :         if ((1) == (id)) {
    2690           0 :             FatalError("actor has been |delete|d");
    2691             :         }
    2692             :     }
    2693             : 
    2694           0 :     Write(id, msg__);
    2695           0 : }
    2696             : 
    2697           0 : auto PWebSocketParent::Read(
    2698             :         PParentToChildStreamParent** v__,
    2699             :         const Message* msg__,
    2700             :         PickleIterator* iter__,
    2701             :         bool nullable__) -> bool
    2702             : {
    2703           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PParentToChildStream", PParentToChildStreamMsgStart);
    2704           0 :     if ((actor).isNothing()) {
    2705           0 :         return false;
    2706             :     }
    2707             : 
    2708           0 :     (*(v__)) = static_cast<PParentToChildStreamParent*>((actor).value());
    2709           0 :     return true;
    2710             : }
    2711             : 
    2712           0 : auto PWebSocketParent::Write(
    2713             :         const MultiplexInputStreamParams& v__,
    2714             :         Message* msg__) -> void
    2715             : {
    2716           0 :     Write((v__).streams(), msg__);
    2717             :     // Sentinel = 'streams'
    2718           0 :     (msg__)->WriteSentinel(4240383220);
    2719           0 :     Write((v__).currentStream(), msg__);
    2720             :     // Sentinel = 'currentStream'
    2721           0 :     (msg__)->WriteSentinel(682778074);
    2722           0 :     Write((v__).status(), msg__);
    2723             :     // Sentinel = 'status'
    2724           0 :     (msg__)->WriteSentinel(3714608576);
    2725           0 :     Write((v__).startedReadingCurrent(), msg__);
    2726             :     // Sentinel = 'startedReadingCurrent'
    2727           0 :     (msg__)->WriteSentinel(970542033);
    2728           0 : }
    2729             : 
    2730           0 : auto PWebSocketParent::Read(
    2731             :         MultiplexInputStreamParams* v__,
    2732             :         const Message* msg__,
    2733             :         PickleIterator* iter__) -> bool
    2734             : {
    2735           0 :     if ((!(Read((&((v__)->streams())), msg__, iter__)))) {
    2736           0 :         FatalError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
    2737           0 :         return false;
    2738             :     }
    2739             :     // Sentinel = 'streams'
    2740           0 :     if ((!((msg__)->ReadSentinel(iter__, 4240383220)))) {
    2741           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
    2742           0 :         return false;
    2743             :     }
    2744           0 :     if ((!(Read((&((v__)->currentStream())), msg__, iter__)))) {
    2745           0 :         FatalError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
    2746           0 :         return false;
    2747             :     }
    2748             :     // Sentinel = 'currentStream'
    2749           0 :     if ((!((msg__)->ReadSentinel(iter__, 682778074)))) {
    2750           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
    2751           0 :         return false;
    2752             :     }
    2753           0 :     if ((!(Read((&((v__)->status())), msg__, iter__)))) {
    2754           0 :         FatalError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
    2755           0 :         return false;
    2756             :     }
    2757             :     // Sentinel = 'status'
    2758           0 :     if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
    2759           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
    2760           0 :         return false;
    2761             :     }
    2762           0 :     if ((!(Read((&((v__)->startedReadingCurrent())), msg__, iter__)))) {
    2763           0 :         FatalError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
    2764           0 :         return false;
    2765             :     }
    2766             :     // Sentinel = 'startedReadingCurrent'
    2767           0 :     if ((!((msg__)->ReadSentinel(iter__, 970542033)))) {
    2768           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
    2769           0 :         return false;
    2770             :     }
    2771           0 :     return true;
    2772             : }
    2773             : 
    2774           0 : auto PWebSocketParent::Write(
    2775             :         const MIMEInputStreamParams& v__,
    2776             :         Message* msg__) -> void
    2777             : {
    2778           0 :     Write((v__).optionalStream(), msg__);
    2779             :     // Sentinel = 'optionalStream'
    2780           0 :     (msg__)->WriteSentinel(1003718562);
    2781           0 :     Write((v__).headers(), msg__);
    2782             :     // Sentinel = 'headers'
    2783           0 :     (msg__)->WriteSentinel(4284175217);
    2784           0 :     Write((v__).startedReading(), msg__);
    2785             :     // Sentinel = 'startedReading'
    2786           0 :     (msg__)->WriteSentinel(1906875903);
    2787           0 : }
    2788             : 
    2789           0 : auto PWebSocketParent::Read(
    2790             :         MIMEInputStreamParams* v__,
    2791             :         const Message* msg__,
    2792             :         PickleIterator* iter__) -> bool
    2793             : {
    2794           0 :     if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
    2795           0 :         FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
    2796           0 :         return false;
    2797             :     }
    2798             :     // Sentinel = 'optionalStream'
    2799           0 :     if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
    2800           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
    2801           0 :         return false;
    2802             :     }
    2803           0 :     if ((!(Read((&((v__)->headers())), msg__, iter__)))) {
    2804           0 :         FatalError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
    2805           0 :         return false;
    2806             :     }
    2807             :     // Sentinel = 'headers'
    2808           0 :     if ((!((msg__)->ReadSentinel(iter__, 4284175217)))) {
    2809           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
    2810           0 :         return false;
    2811             :     }
    2812           0 :     if ((!(Read((&((v__)->startedReading())), msg__, iter__)))) {
    2813           0 :         FatalError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
    2814           0 :         return false;
    2815             :     }
    2816             :     // Sentinel = 'startedReading'
    2817           0 :     if ((!((msg__)->ReadSentinel(iter__, 1906875903)))) {
    2818           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
    2819           0 :         return false;
    2820             :     }
    2821           0 :     return true;
    2822             : }
    2823             : 
    2824           0 : auto PWebSocketParent::Write(
    2825             :         const OptionalLoadInfoArgs& v__,
    2826             :         Message* msg__) -> void
    2827             : {
    2828             :     typedef OptionalLoadInfoArgs type__;
    2829           0 :     Write(int((v__).type()), msg__);
    2830             :     // Sentinel = 'OptionalLoadInfoArgs'
    2831           0 :     (msg__)->WriteSentinel(1063815263);
    2832             : 
    2833           0 :     switch ((v__).type()) {
    2834             :     case type__::Tvoid_t:
    2835             :         {
    2836           0 :             Write((v__).get_void_t(), msg__);
    2837             :             // Sentinel = 'Tvoid_t'
    2838           0 :             (msg__)->WriteSentinel(3041273328);
    2839           0 :             return;
    2840             :         }
    2841             :     case type__::TLoadInfoArgs:
    2842             :         {
    2843           0 :             Write((v__).get_LoadInfoArgs(), msg__);
    2844             :             // Sentinel = 'TLoadInfoArgs'
    2845           0 :             (msg__)->WriteSentinel(3550797606);
    2846           0 :             return;
    2847             :         }
    2848             :     default:
    2849             :         {
    2850           0 :             FatalError("unknown union type");
    2851           0 :             return;
    2852             :         }
    2853             :     }
    2854             : }
    2855             : 
    2856           0 : auto PWebSocketParent::Read(
    2857             :         OptionalLoadInfoArgs* v__,
    2858             :         const Message* msg__,
    2859             :         PickleIterator* iter__) -> bool
    2860             : {
    2861             :     typedef OptionalLoadInfoArgs type__;
    2862             :     int type;
    2863           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    2864           0 :         mozilla::ipc::UnionTypeReadError("OptionalLoadInfoArgs");
    2865           0 :         return false;
    2866             :     }
    2867             :     // Sentinel = 'OptionalLoadInfoArgs'
    2868           0 :     if ((!((msg__)->ReadSentinel(iter__, 1063815263)))) {
    2869           0 :         mozilla::ipc::SentinelReadError("OptionalLoadInfoArgs");
    2870           0 :         return false;
    2871             :     }
    2872             : 
    2873           0 :     switch (type) {
    2874             :     case type__::Tvoid_t:
    2875             :         {
    2876             :             void_t tmp = void_t();
    2877           0 :             (*(v__)) = tmp;
    2878           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
    2879           0 :                 FatalError("Error deserializing Union type");
    2880           0 :                 return false;
    2881             :             }
    2882             :             // Sentinel = 'Tvoid_t'
    2883           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
    2884           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2885           0 :                 return false;
    2886             :             }
    2887           0 :             return true;
    2888             :         }
    2889             :     case type__::TLoadInfoArgs:
    2890             :         {
    2891           0 :             LoadInfoArgs tmp = LoadInfoArgs();
    2892           0 :             (*(v__)) = tmp;
    2893           0 :             if ((!(Read((&((v__)->get_LoadInfoArgs())), msg__, iter__)))) {
    2894           0 :                 FatalError("Error deserializing Union type");
    2895           0 :                 return false;
    2896             :             }
    2897             :             // Sentinel = 'TLoadInfoArgs'
    2898           0 :             if ((!((msg__)->ReadSentinel(iter__, 3550797606)))) {
    2899           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2900           0 :                 return false;
    2901             :             }
    2902           0 :             return true;
    2903             :         }
    2904             :     default:
    2905             :         {
    2906           0 :             FatalError("unknown union type");
    2907           0 :             return false;
    2908             :         }
    2909             :     }
    2910             : }
    2911             : 
    2912           0 : auto PWebSocketParent::Write(
    2913             :         const SimpleURIParams& v__,
    2914             :         Message* msg__) -> void
    2915             : {
    2916           0 :     Write((v__).scheme(), msg__);
    2917             :     // Sentinel = 'scheme'
    2918           0 :     (msg__)->WriteSentinel(3619238715);
    2919           0 :     Write((v__).path(), msg__);
    2920             :     // Sentinel = 'path'
    2921           0 :     (msg__)->WriteSentinel(913629401);
    2922           0 :     Write((v__).ref(), msg__);
    2923             :     // Sentinel = 'ref'
    2924           0 :     (msg__)->WriteSentinel(2626476732);
    2925           0 :     Write((v__).query(), msg__);
    2926             :     // Sentinel = 'query'
    2927           0 :     (msg__)->WriteSentinel(4249802777);
    2928           0 :     Write((v__).isMutable(), msg__);
    2929             :     // Sentinel = 'isMutable'
    2930           0 :     (msg__)->WriteSentinel(3552466783);
    2931           0 : }
    2932             : 
    2933           0 : auto PWebSocketParent::Read(
    2934             :         SimpleURIParams* v__,
    2935             :         const Message* msg__,
    2936             :         PickleIterator* iter__) -> bool
    2937             : {
    2938           0 :     if ((!(Read((&((v__)->scheme())), msg__, iter__)))) {
    2939           0 :         FatalError("Error deserializing 'scheme' (nsCString) member of 'SimpleURIParams'");
    2940           0 :         return false;
    2941             :     }
    2942             :     // Sentinel = 'scheme'
    2943           0 :     if ((!((msg__)->ReadSentinel(iter__, 3619238715)))) {
    2944           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'scheme' (nsCString) member of 'SimpleURIParams'");
    2945           0 :         return false;
    2946             :     }
    2947           0 :     if ((!(Read((&((v__)->path())), msg__, iter__)))) {
    2948           0 :         FatalError("Error deserializing 'path' (nsCString) member of 'SimpleURIParams'");
    2949           0 :         return false;
    2950             :     }
    2951             :     // Sentinel = 'path'
    2952           0 :     if ((!((msg__)->ReadSentinel(iter__, 913629401)))) {
    2953           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'path' (nsCString) member of 'SimpleURIParams'");
    2954           0 :         return false;
    2955             :     }
    2956           0 :     if ((!(Read((&((v__)->ref())), msg__, iter__)))) {
    2957           0 :         FatalError("Error deserializing 'ref' (nsCString) member of 'SimpleURIParams'");
    2958           0 :         return false;
    2959             :     }
    2960             :     // Sentinel = 'ref'
    2961           0 :     if ((!((msg__)->ReadSentinel(iter__, 2626476732)))) {
    2962           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ref' (nsCString) member of 'SimpleURIParams'");
    2963           0 :         return false;
    2964             :     }
    2965           0 :     if ((!(Read((&((v__)->query())), msg__, iter__)))) {
    2966           0 :         FatalError("Error deserializing 'query' (nsCString) member of 'SimpleURIParams'");
    2967           0 :         return false;
    2968             :     }
    2969             :     // Sentinel = 'query'
    2970           0 :     if ((!((msg__)->ReadSentinel(iter__, 4249802777)))) {
    2971           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'query' (nsCString) member of 'SimpleURIParams'");
    2972           0 :         return false;
    2973             :     }
    2974           0 :     if ((!(Read((&((v__)->isMutable())), msg__, iter__)))) {
    2975           0 :         FatalError("Error deserializing 'isMutable' (bool) member of 'SimpleURIParams'");
    2976           0 :         return false;
    2977             :     }
    2978             :     // Sentinel = 'isMutable'
    2979           0 :     if ((!((msg__)->ReadSentinel(iter__, 3552466783)))) {
    2980           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isMutable' (bool) member of 'SimpleURIParams'");
    2981           0 :         return false;
    2982             :     }
    2983           0 :     return true;
    2984             : }
    2985             : 
    2986           0 : auto PWebSocketParent::Write(
    2987             :         const StringInputStreamParams& v__,
    2988             :         Message* msg__) -> void
    2989             : {
    2990           0 :     Write((v__).data(), msg__);
    2991             :     // Sentinel = 'data'
    2992           0 :     (msg__)->WriteSentinel(843352540);
    2993           0 : }
    2994             : 
    2995           0 : auto PWebSocketParent::Read(
    2996             :         StringInputStreamParams* v__,
    2997             :         const Message* msg__,
    2998             :         PickleIterator* iter__) -> bool
    2999             : {
    3000           0 :     if ((!(Read((&((v__)->data())), msg__, iter__)))) {
    3001           0 :         FatalError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
    3002           0 :         return false;
    3003             :     }
    3004             :     // Sentinel = 'data'
    3005           0 :     if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
    3006           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
    3007           0 :         return false;
    3008             :     }
    3009           0 :     return true;
    3010             : }
    3011             : 
    3012           0 : auto PWebSocketParent::Write(
    3013             :         const NullPrincipalURIParams& v__,
    3014             :         Message* msg__) -> void
    3015             : {
    3016           0 : }
    3017             : 
    3018           0 : auto PWebSocketParent::Read(
    3019             :         NullPrincipalURIParams* v__,
    3020             :         const Message* msg__,
    3021             :         PickleIterator* iter__) -> bool
    3022             : {
    3023           0 :     return true;
    3024             : }
    3025             : 
    3026           0 : auto PWebSocketParent::Write(
    3027             :         const IconURIParams& v__,
    3028             :         Message* msg__) -> void
    3029             : {
    3030           0 :     Write((v__).uri(), msg__);
    3031             :     // Sentinel = 'uri'
    3032           0 :     (msg__)->WriteSentinel(1453210605);
    3033           0 :     Write((v__).size(), msg__);
    3034             :     // Sentinel = 'size'
    3035           0 :     (msg__)->WriteSentinel(931048223);
    3036           0 :     Write((v__).contentType(), msg__);
    3037             :     // Sentinel = 'contentType'
    3038           0 :     (msg__)->WriteSentinel(2092571716);
    3039           0 :     Write((v__).fileName(), msg__);
    3040             :     // Sentinel = 'fileName'
    3041           0 :     (msg__)->WriteSentinel(3833449039);
    3042           0 :     Write((v__).stockIcon(), msg__);
    3043             :     // Sentinel = 'stockIcon'
    3044           0 :     (msg__)->WriteSentinel(3601770784);
    3045           0 :     Write((v__).iconSize(), msg__);
    3046             :     // Sentinel = 'iconSize'
    3047           0 :     (msg__)->WriteSentinel(2585310920);
    3048           0 :     Write((v__).iconState(), msg__);
    3049             :     // Sentinel = 'iconState'
    3050           0 :     (msg__)->WriteSentinel(3444306207);
    3051           0 : }
    3052             : 
    3053           0 : auto PWebSocketParent::Read(
    3054             :         IconURIParams* v__,
    3055             :         const Message* msg__,
    3056             :         PickleIterator* iter__) -> bool
    3057             : {
    3058           0 :     if ((!(Read((&((v__)->uri())), msg__, iter__)))) {
    3059           0 :         FatalError("Error deserializing 'uri' (OptionalURIParams) member of 'IconURIParams'");
    3060           0 :         return false;
    3061             :     }
    3062             :     // Sentinel = 'uri'
    3063           0 :     if ((!((msg__)->ReadSentinel(iter__, 1453210605)))) {
    3064           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'uri' (OptionalURIParams) member of 'IconURIParams'");
    3065           0 :         return false;
    3066             :     }
    3067           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
    3068           0 :         FatalError("Error deserializing 'size' (uint32_t) member of 'IconURIParams'");
    3069           0 :         return false;
    3070             :     }
    3071             :     // Sentinel = 'size'
    3072           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
    3073           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (uint32_t) member of 'IconURIParams'");
    3074           0 :         return false;
    3075             :     }
    3076           0 :     if ((!(Read((&((v__)->contentType())), msg__, iter__)))) {
    3077           0 :         FatalError("Error deserializing 'contentType' (nsCString) member of 'IconURIParams'");
    3078           0 :         return false;
    3079             :     }
    3080             :     // Sentinel = 'contentType'
    3081           0 :     if ((!((msg__)->ReadSentinel(iter__, 2092571716)))) {
    3082           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'contentType' (nsCString) member of 'IconURIParams'");
    3083           0 :         return false;
    3084             :     }
    3085           0 :     if ((!(Read((&((v__)->fileName())), msg__, iter__)))) {
    3086           0 :         FatalError("Error deserializing 'fileName' (nsCString) member of 'IconURIParams'");
    3087           0 :         return false;
    3088             :     }
    3089             :     // Sentinel = 'fileName'
    3090           0 :     if ((!((msg__)->ReadSentinel(iter__, 3833449039)))) {
    3091           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fileName' (nsCString) member of 'IconURIParams'");
    3092           0 :         return false;
    3093             :     }
    3094           0 :     if ((!(Read((&((v__)->stockIcon())), msg__, iter__)))) {
    3095           0 :         FatalError("Error deserializing 'stockIcon' (nsCString) member of 'IconURIParams'");
    3096           0 :         return false;
    3097             :     }
    3098             :     // Sentinel = 'stockIcon'
    3099           0 :     if ((!((msg__)->ReadSentinel(iter__, 3601770784)))) {
    3100           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'stockIcon' (nsCString) member of 'IconURIParams'");
    3101           0 :         return false;
    3102             :     }
    3103           0 :     if ((!(Read((&((v__)->iconSize())), msg__, iter__)))) {
    3104           0 :         FatalError("Error deserializing 'iconSize' (int32_t) member of 'IconURIParams'");
    3105           0 :         return false;
    3106             :     }
    3107             :     // Sentinel = 'iconSize'
    3108           0 :     if ((!((msg__)->ReadSentinel(iter__, 2585310920)))) {
    3109           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'iconSize' (int32_t) member of 'IconURIParams'");
    3110           0 :         return false;
    3111             :     }
    3112           0 :     if ((!(Read((&((v__)->iconState())), msg__, iter__)))) {
    3113           0 :         FatalError("Error deserializing 'iconState' (int32_t) member of 'IconURIParams'");
    3114           0 :         return false;
    3115             :     }
    3116             :     // Sentinel = 'iconState'
    3117           0 :     if ((!((msg__)->ReadSentinel(iter__, 3444306207)))) {
    3118           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'iconState' (int32_t) member of 'IconURIParams'");
    3119           0 :         return false;
    3120             :     }
    3121           0 :     return true;
    3122             : }
    3123             : 
    3124           0 : auto PWebSocketParent::Write(
    3125             :         const PFileDescriptorSetParent* v__,
    3126             :         Message* msg__,
    3127             :         bool nullable__) -> void
    3128             : {
    3129             :     int32_t id;
    3130           0 :     if ((!(v__))) {
    3131           0 :         if ((!(nullable__))) {
    3132           0 :             FatalError("NULL actor value passed to non-nullable param");
    3133             :         }
    3134           0 :         id = 0;
    3135             :     }
    3136             :     else {
    3137           0 :         id = (v__)->Id();
    3138           0 :         if ((1) == (id)) {
    3139           0 :             FatalError("actor has been |delete|d");
    3140             :         }
    3141             :     }
    3142             : 
    3143           0 :     Write(id, msg__);
    3144           0 : }
    3145             : 
    3146           0 : auto PWebSocketParent::Read(
    3147             :         PFileDescriptorSetParent** v__,
    3148             :         const Message* msg__,
    3149             :         PickleIterator* iter__,
    3150             :         bool nullable__) -> bool
    3151             : {
    3152           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PFileDescriptorSet", PFileDescriptorSetMsgStart);
    3153           0 :     if ((actor).isNothing()) {
    3154           0 :         return false;
    3155             :     }
    3156             : 
    3157           0 :     (*(v__)) = static_cast<PFileDescriptorSetParent*>((actor).value());
    3158           0 :     return true;
    3159             : }
    3160             : 
    3161           0 : auto PWebSocketParent::Write(
    3162             :         const OptionalFileDescriptorSet& v__,
    3163             :         Message* msg__) -> void
    3164             : {
    3165             :     typedef OptionalFileDescriptorSet type__;
    3166           0 :     Write(int((v__).type()), msg__);
    3167             :     // Sentinel = 'OptionalFileDescriptorSet'
    3168           0 :     (msg__)->WriteSentinel(955222862);
    3169             : 
    3170           0 :     switch ((v__).type()) {
    3171             :     case type__::TPFileDescriptorSetParent:
    3172             :         {
    3173           0 :             Write((v__).get_PFileDescriptorSetParent(), msg__, false);
    3174             :             // Sentinel = 'TPFileDescriptorSetParent'
    3175           0 :             (msg__)->WriteSentinel(143041934);
    3176           0 :             return;
    3177             :         }
    3178             :     case type__::TPFileDescriptorSetChild:
    3179             :         {
    3180           0 :             FatalError("wrong side!");
    3181           0 :             return;
    3182             :         }
    3183             :     case type__::TArrayOfFileDescriptor:
    3184             :         {
    3185           0 :             Write((v__).get_ArrayOfFileDescriptor(), msg__);
    3186             :             // Sentinel = 'TArrayOfFileDescriptor'
    3187           0 :             (msg__)->WriteSentinel(2366096715);
    3188           0 :             return;
    3189             :         }
    3190             :     case type__::Tvoid_t:
    3191             :         {
    3192           0 :             Write((v__).get_void_t(), msg__);
    3193             :             // Sentinel = 'Tvoid_t'
    3194           0 :             (msg__)->WriteSentinel(3041273328);
    3195           0 :             return;
    3196             :         }
    3197             :     default:
    3198             :         {
    3199           0 :             FatalError("unknown union type");
    3200           0 :             return;
    3201             :         }
    3202             :     }
    3203             : }
    3204             : 
    3205           0 : auto PWebSocketParent::Read(
    3206             :         OptionalFileDescriptorSet* v__,
    3207             :         const Message* msg__,
    3208             :         PickleIterator* iter__) -> bool
    3209             : {
    3210             :     typedef OptionalFileDescriptorSet type__;
    3211             :     int type;
    3212           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    3213           0 :         mozilla::ipc::UnionTypeReadError("OptionalFileDescriptorSet");
    3214           0 :         return false;
    3215             :     }
    3216             :     // Sentinel = 'OptionalFileDescriptorSet'
    3217           0 :     if ((!((msg__)->ReadSentinel(iter__, 955222862)))) {
    3218           0 :         mozilla::ipc::SentinelReadError("OptionalFileDescriptorSet");
    3219           0 :         return false;
    3220             :     }
    3221             : 
    3222           0 :     switch (type) {
    3223             :     case type__::TPFileDescriptorSetParent:
    3224             :         {
    3225           0 :             return false;
    3226             :         }
    3227             :     case type__::TPFileDescriptorSetChild:
    3228             :         {
    3229           0 :             PFileDescriptorSetParent* tmp = nullptr;
    3230           0 :             (*(v__)) = tmp;
    3231           0 :             if ((!(Read((&((v__)->get_PFileDescriptorSetParent())), msg__, iter__, false)))) {
    3232           0 :                 FatalError("Error deserializing Union type");
    3233           0 :                 return false;
    3234             :             }
    3235             :             // Sentinel = 'TPFileDescriptorSetChild'
    3236           0 :             if ((!((msg__)->ReadSentinel(iter__, 3477929935)))) {
    3237           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3238           0 :                 return false;
    3239             :             }
    3240           0 :             return true;
    3241             :         }
    3242             :     case type__::TArrayOfFileDescriptor:
    3243             :         {
    3244           0 :             nsTArray<FileDescriptor> tmp;
    3245           0 :             (*(v__)) = tmp;
    3246           0 :             if ((!(Read((&((v__)->get_ArrayOfFileDescriptor())), msg__, iter__)))) {
    3247           0 :                 FatalError("Error deserializing Union type");
    3248           0 :                 return false;
    3249             :             }
    3250             :             // Sentinel = 'TArrayOfFileDescriptor'
    3251           0 :             if ((!((msg__)->ReadSentinel(iter__, 2366096715)))) {
    3252           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3253           0 :                 return false;
    3254             :             }
    3255           0 :             return true;
    3256             :         }
    3257             :     case type__::Tvoid_t:
    3258             :         {
    3259             :             void_t tmp = void_t();
    3260           0 :             (*(v__)) = tmp;
    3261           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
    3262           0 :                 FatalError("Error deserializing Union type");
    3263           0 :                 return false;
    3264             :             }
    3265             :             // Sentinel = 'Tvoid_t'
    3266           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
    3267           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3268           0 :                 return false;
    3269             :             }
    3270           0 :             return true;
    3271             :         }
    3272             :     default:
    3273             :         {
    3274           0 :             FatalError("unknown union type");
    3275           0 :             return false;
    3276             :         }
    3277             :     }
    3278             : }
    3279             : 
    3280           0 : auto PWebSocketParent::Write(
    3281             :         const OptionalTransportProvider& v__,
    3282             :         Message* msg__) -> void
    3283             : {
    3284             :     typedef OptionalTransportProvider type__;
    3285           0 :     Write(int((v__).type()), msg__);
    3286             :     // Sentinel = 'OptionalTransportProvider'
    3287           0 :     (msg__)->WriteSentinel(1388363017);
    3288             : 
    3289           0 :     switch ((v__).type()) {
    3290             :     case type__::TPTransportProviderParent:
    3291             :         {
    3292           0 :             Write((v__).get_PTransportProviderParent(), msg__, false);
    3293             :             // Sentinel = 'TPTransportProviderParent'
    3294           0 :             (msg__)->WriteSentinel(3404110961);
    3295           0 :             return;
    3296             :         }
    3297             :     case type__::TPTransportProviderChild:
    3298             :         {
    3299           0 :             FatalError("wrong side!");
    3300           0 :             return;
    3301             :         }
    3302             :     case type__::Tvoid_t:
    3303             :         {
    3304           0 :             Write((v__).get_void_t(), msg__);
    3305             :             // Sentinel = 'Tvoid_t'
    3306           0 :             (msg__)->WriteSentinel(3041273328);
    3307           0 :             return;
    3308             :         }
    3309             :     default:
    3310             :         {
    3311           0 :             FatalError("unknown union type");
    3312           0 :             return;
    3313             :         }
    3314             :     }
    3315             : }
    3316             : 
    3317           0 : auto PWebSocketParent::Read(
    3318             :         OptionalTransportProvider* v__,
    3319             :         const Message* msg__,
    3320             :         PickleIterator* iter__) -> bool
    3321             : {
    3322             :     typedef OptionalTransportProvider type__;
    3323             :     int type;
    3324           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    3325           0 :         mozilla::ipc::UnionTypeReadError("OptionalTransportProvider");
    3326           0 :         return false;
    3327             :     }
    3328             :     // Sentinel = 'OptionalTransportProvider'
    3329           0 :     if ((!((msg__)->ReadSentinel(iter__, 1388363017)))) {
    3330           0 :         mozilla::ipc::SentinelReadError("OptionalTransportProvider");
    3331           0 :         return false;
    3332             :     }
    3333             : 
    3334           0 :     switch (type) {
    3335             :     case type__::TPTransportProviderParent:
    3336             :         {
    3337           0 :             return false;
    3338             :         }
    3339             :     case type__::TPTransportProviderChild:
    3340             :         {
    3341           0 :             PTransportProviderParent* tmp = nullptr;
    3342           0 :             (*(v__)) = tmp;
    3343           0 :             if ((!(Read((&((v__)->get_PTransportProviderParent())), msg__, iter__, false)))) {
    3344           0 :                 FatalError("Error deserializing Union type");
    3345           0 :                 return false;
    3346             :             }
    3347             :             // Sentinel = 'TPTransportProviderChild'
    3348           0 :             if ((!((msg__)->ReadSentinel(iter__, 827320754)))) {
    3349           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3350           0 :                 return false;
    3351             :             }
    3352           0 :             return true;
    3353             :         }
    3354             :     case type__::Tvoid_t:
    3355             :         {
    3356             :             void_t tmp = void_t();
    3357           0 :             (*(v__)) = tmp;
    3358           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
    3359           0 :                 FatalError("Error deserializing Union type");
    3360           0 :                 return false;
    3361             :             }
    3362             :             // Sentinel = 'Tvoid_t'
    3363           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
    3364           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3365           0 :                 return false;
    3366             :             }
    3367           0 :             return true;
    3368             :         }
    3369             :     default:
    3370             :         {
    3371           0 :             FatalError("unknown union type");
    3372           0 :             return false;
    3373             :         }
    3374             :     }
    3375             : }
    3376             : 
    3377           0 : auto PWebSocketParent::Write(
    3378             :         const nsTArray<RedirectHistoryEntryInfo>& v__,
    3379             :         Message* msg__) -> void
    3380             : {
    3381           0 :     uint32_t length = (v__).Length();
    3382           0 :     Write(length, msg__);
    3383             :     // Sentinel = ('length', 'RedirectHistoryEntryInfo[]')
    3384           0 :     (msg__)->WriteSentinel(2482278523);
    3385             : 
    3386           0 :     for (auto& elem : v__) {
    3387           0 :         Write(elem, msg__);
    3388             :         // Sentinel = 'RedirectHistoryEntryInfo[]'
    3389           0 :         (msg__)->WriteSentinel(2694829470);
    3390             :     }
    3391           0 : }
    3392             : 
    3393           0 : auto PWebSocketParent::Read(
    3394             :         nsTArray<RedirectHistoryEntryInfo>* v__,
    3395             :         const Message* msg__,
    3396             :         PickleIterator* iter__) -> bool
    3397             : {
    3398           0 :     nsTArray<RedirectHistoryEntryInfo> fa;
    3399             :     uint32_t length;
    3400           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    3401           0 :         mozilla::ipc::ArrayLengthReadError("RedirectHistoryEntryInfo[]");
    3402           0 :         return false;
    3403             :     }
    3404             :     // Sentinel = ('length', 'RedirectHistoryEntryInfo[]')
    3405           0 :     if ((!((msg__)->ReadSentinel(iter__, 2482278523)))) {
    3406           0 :         mozilla::ipc::SentinelReadError("RedirectHistoryEntryInfo[]");
    3407           0 :         return false;
    3408             :     }
    3409             : 
    3410           0 :     RedirectHistoryEntryInfo* elems = (fa).AppendElements(length);
    3411           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    3412           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    3413           0 :             FatalError("Error deserializing 'RedirectHistoryEntryInfo[i]'");
    3414           0 :             return false;
    3415             :         }
    3416             :         // Sentinel = 'RedirectHistoryEntryInfo[]'
    3417           0 :         if ((!((msg__)->ReadSentinel(iter__, 2694829470)))) {
    3418           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'RedirectHistoryEntryInfo[i]'");
    3419           0 :             return false;
    3420             :         }
    3421             :     }
    3422           0 :     (v__)->SwapElements(fa);
    3423           0 :     return true;
    3424             : }
    3425             : 
    3426           0 : auto PWebSocketParent::Write(
    3427             :         const InputStreamParams& v__,
    3428             :         Message* msg__) -> void
    3429             : {
    3430             :     typedef InputStreamParams type__;
    3431           0 :     Write(int((v__).type()), msg__);
    3432             :     // Sentinel = 'InputStreamParams'
    3433           0 :     (msg__)->WriteSentinel(4114814015);
    3434             : 
    3435           0 :     switch ((v__).type()) {
    3436             :     case type__::TStringInputStreamParams:
    3437             :         {
    3438           0 :             Write((v__).get_StringInputStreamParams(), msg__);
    3439             :             // Sentinel = 'TStringInputStreamParams'
    3440           0 :             (msg__)->WriteSentinel(3395831651);
    3441           0 :             return;
    3442             :         }
    3443             :     case type__::TFileInputStreamParams:
    3444             :         {
    3445           0 :             Write((v__).get_FileInputStreamParams(), msg__);
    3446             :             // Sentinel = 'TFileInputStreamParams'
    3447           0 :             (msg__)->WriteSentinel(2543620282);
    3448           0 :             return;
    3449             :         }
    3450             :     case type__::TTemporaryFileInputStreamParams:
    3451             :         {
    3452           0 :             Write((v__).get_TemporaryFileInputStreamParams(), msg__);
    3453             :             // Sentinel = 'TTemporaryFileInputStreamParams'
    3454           0 :             (msg__)->WriteSentinel(587771548);
    3455           0 :             return;
    3456             :         }
    3457             :     case type__::TBufferedInputStreamParams:
    3458             :         {
    3459           0 :             Write((v__).get_BufferedInputStreamParams(), msg__);
    3460             :             // Sentinel = 'TBufferedInputStreamParams'
    3461           0 :             (msg__)->WriteSentinel(1698289307);
    3462           0 :             return;
    3463             :         }
    3464             :     case type__::TMIMEInputStreamParams:
    3465             :         {
    3466           0 :             Write((v__).get_MIMEInputStreamParams(), msg__);
    3467             :             // Sentinel = 'TMIMEInputStreamParams'
    3468           0 :             (msg__)->WriteSentinel(1948001964);
    3469           0 :             return;
    3470             :         }
    3471             :     case type__::TMultiplexInputStreamParams:
    3472             :         {
    3473           0 :             Write((v__).get_MultiplexInputStreamParams(), msg__);
    3474             :             // Sentinel = 'TMultiplexInputStreamParams'
    3475           0 :             (msg__)->WriteSentinel(3317853213);
    3476           0 :             return;
    3477             :         }
    3478             :     case type__::TSlicedInputStreamParams:
    3479             :         {
    3480           0 :             Write((v__).get_SlicedInputStreamParams(), msg__);
    3481             :             // Sentinel = 'TSlicedInputStreamParams'
    3482           0 :             (msg__)->WriteSentinel(445810472);
    3483           0 :             return;
    3484             :         }
    3485             :     case type__::TIPCBlobInputStreamParams:
    3486             :         {
    3487           0 :             Write((v__).get_IPCBlobInputStreamParams(), msg__);
    3488             :             // Sentinel = 'TIPCBlobInputStreamParams'
    3489           0 :             (msg__)->WriteSentinel(2436989998);
    3490           0 :             return;
    3491             :         }
    3492             :     default:
    3493             :         {
    3494           0 :             FatalError("unknown union type");
    3495           0 :             return;
    3496             :         }
    3497             :     }
    3498             : }
    3499             : 
    3500           0 : auto PWebSocketParent::Read(
    3501             :         InputStreamParams* v__,
    3502             :         const Message* msg__,
    3503             :         PickleIterator* iter__) -> bool
    3504             : {
    3505             :     typedef InputStreamParams type__;
    3506             :     int type;
    3507           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    3508           0 :         mozilla::ipc::UnionTypeReadError("InputStreamParams");
    3509           0 :         return false;
    3510             :     }
    3511             :     // Sentinel = 'InputStreamParams'
    3512           0 :     if ((!((msg__)->ReadSentinel(iter__, 4114814015)))) {
    3513           0 :         mozilla::ipc::SentinelReadError("InputStreamParams");
    3514           0 :         return false;
    3515             :     }
    3516             : 
    3517           0 :     switch (type) {
    3518             :     case type__::TStringInputStreamParams:
    3519             :         {
    3520           0 :             StringInputStreamParams tmp = StringInputStreamParams();
    3521           0 :             (*(v__)) = tmp;
    3522           0 :             if ((!(Read((&((v__)->get_StringInputStreamParams())), msg__, iter__)))) {
    3523           0 :                 FatalError("Error deserializing Union type");
    3524           0 :                 return false;
    3525             :             }
    3526             :             // Sentinel = 'TStringInputStreamParams'
    3527           0 :             if ((!((msg__)->ReadSentinel(iter__, 3395831651)))) {
    3528           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3529           0 :                 return false;
    3530             :             }
    3531           0 :             return true;
    3532             :         }
    3533             :     case type__::TFileInputStreamParams:
    3534             :         {
    3535           0 :             FileInputStreamParams tmp = FileInputStreamParams();
    3536           0 :             (*(v__)) = tmp;
    3537           0 :             if ((!(Read((&((v__)->get_FileInputStreamParams())), msg__, iter__)))) {
    3538           0 :                 FatalError("Error deserializing Union type");
    3539           0 :                 return false;
    3540             :             }
    3541             :             // Sentinel = 'TFileInputStreamParams'
    3542           0 :             if ((!((msg__)->ReadSentinel(iter__, 2543620282)))) {
    3543           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3544           0 :                 return false;
    3545             :             }
    3546           0 :             return true;
    3547             :         }
    3548             :     case type__::TTemporaryFileInputStreamParams:
    3549             :         {
    3550           0 :             TemporaryFileInputStreamParams tmp = TemporaryFileInputStreamParams();
    3551           0 :             (*(v__)) = tmp;
    3552           0 :             if ((!(Read((&((v__)->get_TemporaryFileInputStreamParams())), msg__, iter__)))) {
    3553           0 :                 FatalError("Error deserializing Union type");
    3554           0 :                 return false;
    3555             :             }
    3556             :             // Sentinel = 'TTemporaryFileInputStreamParams'
    3557           0 :             if ((!((msg__)->ReadSentinel(iter__, 587771548)))) {
    3558           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3559           0 :                 return false;
    3560             :             }
    3561           0 :             return true;
    3562             :         }
    3563             :     case type__::TBufferedInputStreamParams:
    3564             :         {
    3565           0 :             BufferedInputStreamParams tmp = BufferedInputStreamParams();
    3566           0 :             (*(v__)) = tmp;
    3567           0 :             if ((!(Read((&((v__)->get_BufferedInputStreamParams())), msg__, iter__)))) {
    3568           0 :                 FatalError("Error deserializing Union type");
    3569           0 :                 return false;
    3570             :             }
    3571             :             // Sentinel = 'TBufferedInputStreamParams'
    3572           0 :             if ((!((msg__)->ReadSentinel(iter__, 1698289307)))) {
    3573           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3574           0 :                 return false;
    3575             :             }
    3576           0 :             return true;
    3577             :         }
    3578             :     case type__::TMIMEInputStreamParams:
    3579             :         {
    3580           0 :             MIMEInputStreamParams tmp = MIMEInputStreamParams();
    3581           0 :             (*(v__)) = tmp;
    3582           0 :             if ((!(Read((&((v__)->get_MIMEInputStreamParams())), msg__, iter__)))) {
    3583           0 :                 FatalError("Error deserializing Union type");
    3584           0 :                 return false;
    3585             :             }
    3586             :             // Sentinel = 'TMIMEInputStreamParams'
    3587           0 :             if ((!((msg__)->ReadSentinel(iter__, 1948001964)))) {
    3588           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3589           0 :                 return false;
    3590             :             }
    3591           0 :             return true;
    3592             :         }
    3593             :     case type__::TMultiplexInputStreamParams:
    3594             :         {
    3595           0 :             MultiplexInputStreamParams tmp = MultiplexInputStreamParams();
    3596           0 :             (*(v__)) = tmp;
    3597           0 :             if ((!(Read((&((v__)->get_MultiplexInputStreamParams())), msg__, iter__)))) {
    3598           0 :                 FatalError("Error deserializing Union type");
    3599           0 :                 return false;
    3600             :             }
    3601             :             // Sentinel = 'TMultiplexInputStreamParams'
    3602           0 :             if ((!((msg__)->ReadSentinel(iter__, 3317853213)))) {
    3603           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3604           0 :                 return false;
    3605             :             }
    3606           0 :             return true;
    3607             :         }
    3608             :     case type__::TSlicedInputStreamParams:
    3609             :         {
    3610           0 :             SlicedInputStreamParams tmp = SlicedInputStreamParams();
    3611           0 :             (*(v__)) = tmp;
    3612           0 :             if ((!(Read((&((v__)->get_SlicedInputStreamParams())), msg__, iter__)))) {
    3613           0 :                 FatalError("Error deserializing Union type");
    3614           0 :                 return false;
    3615             :             }
    3616             :             // Sentinel = 'TSlicedInputStreamParams'
    3617           0 :             if ((!((msg__)->ReadSentinel(iter__, 445810472)))) {
    3618           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3619           0 :                 return false;
    3620             :             }
    3621           0 :             return true;
    3622             :         }
    3623             :     case type__::TIPCBlobInputStreamParams:
    3624             :         {
    3625           0 :             IPCBlobInputStreamParams tmp = IPCBlobInputStreamParams();
    3626           0 :             (*(v__)) = tmp;
    3627           0 :             if ((!(Read((&((v__)->get_IPCBlobInputStreamParams())), msg__, iter__)))) {
    3628           0 :                 FatalError("Error deserializing Union type");
    3629           0 :                 return false;
    3630             :             }
    3631             :             // Sentinel = 'TIPCBlobInputStreamParams'
    3632           0 :             if ((!((msg__)->ReadSentinel(iter__, 2436989998)))) {
    3633           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3634           0 :                 return false;
    3635             :             }
    3636           0 :             return true;
    3637             :         }
    3638             :     default:
    3639             :         {
    3640           0 :             FatalError("unknown union type");
    3641           0 :             return false;
    3642             :         }
    3643             :     }
    3644             : }
    3645             : 
    3646           0 : auto PWebSocketParent::Write(
    3647             :         const LoadInfoArgs& v__,
    3648             :         Message* msg__) -> void
    3649             : {
    3650           0 :     Write((v__).requestingPrincipalInfo(), msg__);
    3651             :     // Sentinel = 'requestingPrincipalInfo'
    3652           0 :     (msg__)->WriteSentinel(3181737698);
    3653           0 :     Write((v__).triggeringPrincipalInfo(), msg__);
    3654             :     // Sentinel = 'triggeringPrincipalInfo'
    3655           0 :     (msg__)->WriteSentinel(4145483429);
    3656           0 :     Write((v__).principalToInheritInfo(), msg__);
    3657             :     // Sentinel = 'principalToInheritInfo'
    3658           0 :     (msg__)->WriteSentinel(3087636212);
    3659           0 :     Write((v__).sandboxedLoadingPrincipalInfo(), msg__);
    3660             :     // Sentinel = 'sandboxedLoadingPrincipalInfo'
    3661           0 :     (msg__)->WriteSentinel(3064871301);
    3662           0 :     Write((v__).resultPrincipalURI(), msg__);
    3663             :     // Sentinel = 'resultPrincipalURI'
    3664           0 :     (msg__)->WriteSentinel(4283562701);
    3665           0 :     Write((v__).securityFlags(), msg__);
    3666             :     // Sentinel = 'securityFlags'
    3667           0 :     (msg__)->WriteSentinel(1948430358);
    3668           0 :     Write((v__).contentPolicyType(), msg__);
    3669             :     // Sentinel = 'contentPolicyType'
    3670           0 :     (msg__)->WriteSentinel(3089607692);
    3671           0 :     Write((v__).tainting(), msg__);
    3672             :     // Sentinel = 'tainting'
    3673           0 :     (msg__)->WriteSentinel(2959281848);
    3674           0 :     Write((v__).upgradeInsecureRequests(), msg__);
    3675             :     // Sentinel = 'upgradeInsecureRequests'
    3676           0 :     (msg__)->WriteSentinel(220885803);
    3677           0 :     Write((v__).verifySignedContent(), msg__);
    3678             :     // Sentinel = 'verifySignedContent'
    3679           0 :     (msg__)->WriteSentinel(4254189773);
    3680           0 :     Write((v__).enforceSRI(), msg__);
    3681             :     // Sentinel = 'enforceSRI'
    3682           0 :     (msg__)->WriteSentinel(3434063852);
    3683           0 :     Write((v__).forceInheritPrincipalDropped(), msg__);
    3684             :     // Sentinel = 'forceInheritPrincipalDropped'
    3685           0 :     (msg__)->WriteSentinel(2486717930);
    3686           0 :     Write((v__).innerWindowID(), msg__);
    3687             :     // Sentinel = 'innerWindowID'
    3688           0 :     (msg__)->WriteSentinel(4018103366);
    3689           0 :     Write((v__).outerWindowID(), msg__);
    3690             :     // Sentinel = 'outerWindowID'
    3691           0 :     (msg__)->WriteSentinel(2801565535);
    3692           0 :     Write((v__).parentOuterWindowID(), msg__);
    3693             :     // Sentinel = 'parentOuterWindowID'
    3694           0 :     (msg__)->WriteSentinel(1687557921);
    3695           0 :     Write((v__).frameOuterWindowID(), msg__);
    3696             :     // Sentinel = 'frameOuterWindowID'
    3697           0 :     (msg__)->WriteSentinel(2873618957);
    3698           0 :     Write((v__).enforceSecurity(), msg__);
    3699             :     // Sentinel = 'enforceSecurity'
    3700           0 :     (msg__)->WriteSentinel(646099439);
    3701           0 :     Write((v__).initialSecurityCheckDone(), msg__);
    3702             :     // Sentinel = 'initialSecurityCheckDone'
    3703           0 :     (msg__)->WriteSentinel(872070054);
    3704           0 :     Write((v__).isInThirdPartyContext(), msg__);
    3705             :     // Sentinel = 'isInThirdPartyContext'
    3706           0 :     (msg__)->WriteSentinel(525088520);
    3707           0 :     Write((v__).originAttributes(), msg__);
    3708             :     // Sentinel = 'originAttributes'
    3709           0 :     (msg__)->WriteSentinel(2655275965);
    3710           0 :     Write((v__).redirectChainIncludingInternalRedirects(), msg__);
    3711             :     // Sentinel = 'redirectChainIncludingInternalRedirects'
    3712           0 :     (msg__)->WriteSentinel(967904109);
    3713           0 :     Write((v__).redirectChain(), msg__);
    3714             :     // Sentinel = 'redirectChain'
    3715           0 :     (msg__)->WriteSentinel(2550711462);
    3716           0 :     Write((v__).corsUnsafeHeaders(), msg__);
    3717             :     // Sentinel = 'corsUnsafeHeaders'
    3718           0 :     (msg__)->WriteSentinel(2369694136);
    3719           0 :     Write((v__).forcePreflight(), msg__);
    3720             :     // Sentinel = 'forcePreflight'
    3721           0 :     (msg__)->WriteSentinel(2198503272);
    3722           0 :     Write((v__).isPreflight(), msg__);
    3723             :     // Sentinel = 'isPreflight'
    3724           0 :     (msg__)->WriteSentinel(3402379662);
    3725           0 :     Write((v__).forceHSTSPriming(), msg__);
    3726             :     // Sentinel = 'forceHSTSPriming'
    3727           0 :     (msg__)->WriteSentinel(1123937751);
    3728           0 :     Write((v__).mixedContentWouldBlock(), msg__);
    3729             :     // Sentinel = 'mixedContentWouldBlock'
    3730           0 :     (msg__)->WriteSentinel(3609505564);
    3731           0 :     Write((v__).isHSTSPriming(), msg__);
    3732             :     // Sentinel = 'isHSTSPriming'
    3733           0 :     (msg__)->WriteSentinel(3794927777);
    3734           0 :     Write((v__).isHSTSPrimingUpgrade(), msg__);
    3735             :     // Sentinel = 'isHSTSPrimingUpgrade'
    3736           0 :     (msg__)->WriteSentinel(3851270092);
    3737           0 : }
    3738             : 
    3739           0 : auto PWebSocketParent::Read(
    3740             :         LoadInfoArgs* v__,
    3741             :         const Message* msg__,
    3742             :         PickleIterator* iter__) -> bool
    3743             : {
    3744           0 :     if ((!(Read((&((v__)->requestingPrincipalInfo())), msg__, iter__)))) {
    3745           0 :         FatalError("Error deserializing 'requestingPrincipalInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
    3746           0 :         return false;
    3747             :     }
    3748             :     // Sentinel = 'requestingPrincipalInfo'
    3749           0 :     if ((!((msg__)->ReadSentinel(iter__, 3181737698)))) {
    3750           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'requestingPrincipalInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
    3751           0 :         return false;
    3752             :     }
    3753           0 :     if ((!(Read((&((v__)->triggeringPrincipalInfo())), msg__, iter__)))) {
    3754           0 :         FatalError("Error deserializing 'triggeringPrincipalInfo' (PrincipalInfo) member of 'LoadInfoArgs'");
    3755           0 :         return false;
    3756             :     }
    3757             :     // Sentinel = 'triggeringPrincipalInfo'
    3758           0 :     if ((!((msg__)->ReadSentinel(iter__, 4145483429)))) {
    3759           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'triggeringPrincipalInfo' (PrincipalInfo) member of 'LoadInfoArgs'");
    3760           0 :         return false;
    3761             :     }
    3762           0 :     if ((!(Read((&((v__)->principalToInheritInfo())), msg__, iter__)))) {
    3763           0 :         FatalError("Error deserializing 'principalToInheritInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
    3764           0 :         return false;
    3765             :     }
    3766             :     // Sentinel = 'principalToInheritInfo'
    3767           0 :     if ((!((msg__)->ReadSentinel(iter__, 3087636212)))) {
    3768           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'principalToInheritInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
    3769           0 :         return false;
    3770             :     }
    3771           0 :     if ((!(Read((&((v__)->sandboxedLoadingPrincipalInfo())), msg__, iter__)))) {
    3772           0 :         FatalError("Error deserializing 'sandboxedLoadingPrincipalInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
    3773           0 :         return false;
    3774             :     }
    3775             :     // Sentinel = 'sandboxedLoadingPrincipalInfo'
    3776           0 :     if ((!((msg__)->ReadSentinel(iter__, 3064871301)))) {
    3777           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sandboxedLoadingPrincipalInfo' (OptionalPrincipalInfo) member of 'LoadInfoArgs'");
    3778           0 :         return false;
    3779             :     }
    3780           0 :     if ((!(Read((&((v__)->resultPrincipalURI())), msg__, iter__)))) {
    3781           0 :         FatalError("Error deserializing 'resultPrincipalURI' (OptionalURIParams) member of 'LoadInfoArgs'");
    3782           0 :         return false;
    3783             :     }
    3784             :     // Sentinel = 'resultPrincipalURI'
    3785           0 :     if ((!((msg__)->ReadSentinel(iter__, 4283562701)))) {
    3786           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'resultPrincipalURI' (OptionalURIParams) member of 'LoadInfoArgs'");
    3787           0 :         return false;
    3788             :     }
    3789           0 :     if ((!(Read((&((v__)->securityFlags())), msg__, iter__)))) {
    3790           0 :         FatalError("Error deserializing 'securityFlags' (uint32_t) member of 'LoadInfoArgs'");
    3791           0 :         return false;
    3792             :     }
    3793             :     // Sentinel = 'securityFlags'
    3794           0 :     if ((!((msg__)->ReadSentinel(iter__, 1948430358)))) {
    3795           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'securityFlags' (uint32_t) member of 'LoadInfoArgs'");
    3796           0 :         return false;
    3797             :     }
    3798           0 :     if ((!(Read((&((v__)->contentPolicyType())), msg__, iter__)))) {
    3799           0 :         FatalError("Error deserializing 'contentPolicyType' (uint32_t) member of 'LoadInfoArgs'");
    3800           0 :         return false;
    3801             :     }
    3802             :     // Sentinel = 'contentPolicyType'
    3803           0 :     if ((!((msg__)->ReadSentinel(iter__, 3089607692)))) {
    3804           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'contentPolicyType' (uint32_t) member of 'LoadInfoArgs'");
    3805           0 :         return false;
    3806             :     }
    3807           0 :     if ((!(Read((&((v__)->tainting())), msg__, iter__)))) {
    3808           0 :         FatalError("Error deserializing 'tainting' (uint32_t) member of 'LoadInfoArgs'");
    3809           0 :         return false;
    3810             :     }
    3811             :     // Sentinel = 'tainting'
    3812           0 :     if ((!((msg__)->ReadSentinel(iter__, 2959281848)))) {
    3813           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'tainting' (uint32_t) member of 'LoadInfoArgs'");
    3814           0 :         return false;
    3815             :     }
    3816           0 :     if ((!(Read((&((v__)->upgradeInsecureRequests())), msg__, iter__)))) {
    3817           0 :         FatalError("Error deserializing 'upgradeInsecureRequests' (bool) member of 'LoadInfoArgs'");
    3818           0 :         return false;
    3819             :     }
    3820             :     // Sentinel = 'upgradeInsecureRequests'
    3821           0 :     if ((!((msg__)->ReadSentinel(iter__, 220885803)))) {
    3822           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'upgradeInsecureRequests' (bool) member of 'LoadInfoArgs'");
    3823           0 :         return false;
    3824             :     }
    3825           0 :     if ((!(Read((&((v__)->verifySignedContent())), msg__, iter__)))) {
    3826           0 :         FatalError("Error deserializing 'verifySignedContent' (bool) member of 'LoadInfoArgs'");
    3827           0 :         return false;
    3828             :     }
    3829             :     // Sentinel = 'verifySignedContent'
    3830           0 :     if ((!((msg__)->ReadSentinel(iter__, 4254189773)))) {
    3831           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'verifySignedContent' (bool) member of 'LoadInfoArgs'");
    3832           0 :         return false;
    3833             :     }
    3834           0 :     if ((!(Read((&((v__)->enforceSRI())), msg__, iter__)))) {
    3835           0 :         FatalError("Error deserializing 'enforceSRI' (bool) member of 'LoadInfoArgs'");
    3836           0 :         return false;
    3837             :     }
    3838             :     // Sentinel = 'enforceSRI'
    3839           0 :     if ((!((msg__)->ReadSentinel(iter__, 3434063852)))) {
    3840           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'enforceSRI' (bool) member of 'LoadInfoArgs'");
    3841           0 :         return false;
    3842             :     }
    3843           0 :     if ((!(Read((&((v__)->forceInheritPrincipalDropped())), msg__, iter__)))) {
    3844           0 :         FatalError("Error deserializing 'forceInheritPrincipalDropped' (bool) member of 'LoadInfoArgs'");
    3845           0 :         return false;
    3846             :     }
    3847             :     // Sentinel = 'forceInheritPrincipalDropped'
    3848           0 :     if ((!((msg__)->ReadSentinel(iter__, 2486717930)))) {
    3849           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'forceInheritPrincipalDropped' (bool) member of 'LoadInfoArgs'");
    3850           0 :         return false;
    3851             :     }
    3852           0 :     if ((!(Read((&((v__)->innerWindowID())), msg__, iter__)))) {
    3853           0 :         FatalError("Error deserializing 'innerWindowID' (uint64_t) member of 'LoadInfoArgs'");
    3854           0 :         return false;
    3855             :     }
    3856             :     // Sentinel = 'innerWindowID'
    3857           0 :     if ((!((msg__)->ReadSentinel(iter__, 4018103366)))) {
    3858           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'innerWindowID' (uint64_t) member of 'LoadInfoArgs'");
    3859           0 :         return false;
    3860             :     }
    3861           0 :     if ((!(Read((&((v__)->outerWindowID())), msg__, iter__)))) {
    3862           0 :         FatalError("Error deserializing 'outerWindowID' (uint64_t) member of 'LoadInfoArgs'");
    3863           0 :         return false;
    3864             :     }
    3865             :     // Sentinel = 'outerWindowID'
    3866           0 :     if ((!((msg__)->ReadSentinel(iter__, 2801565535)))) {
    3867           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'outerWindowID' (uint64_t) member of 'LoadInfoArgs'");
    3868           0 :         return false;
    3869             :     }
    3870           0 :     if ((!(Read((&((v__)->parentOuterWindowID())), msg__, iter__)))) {
    3871           0 :         FatalError("Error deserializing 'parentOuterWindowID' (uint64_t) member of 'LoadInfoArgs'");
    3872           0 :         return false;
    3873             :     }
    3874             :     // Sentinel = 'parentOuterWindowID'
    3875           0 :     if ((!((msg__)->ReadSentinel(iter__, 1687557921)))) {
    3876           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'parentOuterWindowID' (uint64_t) member of 'LoadInfoArgs'");
    3877           0 :         return false;
    3878             :     }
    3879           0 :     if ((!(Read((&((v__)->frameOuterWindowID())), msg__, iter__)))) {
    3880           0 :         FatalError("Error deserializing 'frameOuterWindowID' (uint64_t) member of 'LoadInfoArgs'");
    3881           0 :         return false;
    3882             :     }
    3883             :     // Sentinel = 'frameOuterWindowID'
    3884           0 :     if ((!((msg__)->ReadSentinel(iter__, 2873618957)))) {
    3885           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'frameOuterWindowID' (uint64_t) member of 'LoadInfoArgs'");
    3886           0 :         return false;
    3887             :     }
    3888           0 :     if ((!(Read((&((v__)->enforceSecurity())), msg__, iter__)))) {
    3889           0 :         FatalError("Error deserializing 'enforceSecurity' (bool) member of 'LoadInfoArgs'");
    3890           0 :         return false;
    3891             :     }
    3892             :     // Sentinel = 'enforceSecurity'
    3893           0 :     if ((!((msg__)->ReadSentinel(iter__, 646099439)))) {
    3894           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'enforceSecurity' (bool) member of 'LoadInfoArgs'");
    3895           0 :         return false;
    3896             :     }
    3897           0 :     if ((!(Read((&((v__)->initialSecurityCheckDone())), msg__, iter__)))) {
    3898           0 :         FatalError("Error deserializing 'initialSecurityCheckDone' (bool) member of 'LoadInfoArgs'");
    3899           0 :         return false;
    3900             :     }
    3901             :     // Sentinel = 'initialSecurityCheckDone'
    3902           0 :     if ((!((msg__)->ReadSentinel(iter__, 872070054)))) {
    3903           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'initialSecurityCheckDone' (bool) member of 'LoadInfoArgs'");
    3904           0 :         return false;
    3905             :     }
    3906           0 :     if ((!(Read((&((v__)->isInThirdPartyContext())), msg__, iter__)))) {
    3907           0 :         FatalError("Error deserializing 'isInThirdPartyContext' (bool) member of 'LoadInfoArgs'");
    3908           0 :         return false;
    3909             :     }
    3910             :     // Sentinel = 'isInThirdPartyContext'
    3911           0 :     if ((!((msg__)->ReadSentinel(iter__, 525088520)))) {
    3912           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isInThirdPartyContext' (bool) member of 'LoadInfoArgs'");
    3913           0 :         return false;
    3914             :     }
    3915           0 :     if ((!(Read((&((v__)->originAttributes())), msg__, iter__)))) {
    3916           0 :         FatalError("Error deserializing 'originAttributes' (OriginAttributes) member of 'LoadInfoArgs'");
    3917           0 :         return false;
    3918             :     }
    3919             :     // Sentinel = 'originAttributes'
    3920           0 :     if ((!((msg__)->ReadSentinel(iter__, 2655275965)))) {
    3921           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'originAttributes' (OriginAttributes) member of 'LoadInfoArgs'");
    3922           0 :         return false;
    3923             :     }
    3924           0 :     if ((!(Read((&((v__)->redirectChainIncludingInternalRedirects())), msg__, iter__)))) {
    3925           0 :         FatalError("Error deserializing 'redirectChainIncludingInternalRedirects' (RedirectHistoryEntryInfo[]) member of 'LoadInfoArgs'");
    3926           0 :         return false;
    3927             :     }
    3928             :     // Sentinel = 'redirectChainIncludingInternalRedirects'
    3929           0 :     if ((!((msg__)->ReadSentinel(iter__, 967904109)))) {
    3930           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'redirectChainIncludingInternalRedirects' (RedirectHistoryEntryInfo[]) member of 'LoadInfoArgs'");
    3931           0 :         return false;
    3932             :     }
    3933           0 :     if ((!(Read((&((v__)->redirectChain())), msg__, iter__)))) {
    3934           0 :         FatalError("Error deserializing 'redirectChain' (RedirectHistoryEntryInfo[]) member of 'LoadInfoArgs'");
    3935           0 :         return false;
    3936             :     }
    3937             :     // Sentinel = 'redirectChain'
    3938           0 :     if ((!((msg__)->ReadSentinel(iter__, 2550711462)))) {
    3939           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'redirectChain' (RedirectHistoryEntryInfo[]) member of 'LoadInfoArgs'");
    3940           0 :         return false;
    3941             :     }
    3942           0 :     if ((!(Read((&((v__)->corsUnsafeHeaders())), msg__, iter__)))) {
    3943           0 :         FatalError("Error deserializing 'corsUnsafeHeaders' (nsCString[]) member of 'LoadInfoArgs'");
    3944           0 :         return false;
    3945             :     }
    3946             :     // Sentinel = 'corsUnsafeHeaders'
    3947           0 :     if ((!((msg__)->ReadSentinel(iter__, 2369694136)))) {
    3948           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'corsUnsafeHeaders' (nsCString[]) member of 'LoadInfoArgs'");
    3949           0 :         return false;
    3950             :     }
    3951           0 :     if ((!(Read((&((v__)->forcePreflight())), msg__, iter__)))) {
    3952           0 :         FatalError("Error deserializing 'forcePreflight' (bool) member of 'LoadInfoArgs'");
    3953           0 :         return false;
    3954             :     }
    3955             :     // Sentinel = 'forcePreflight'
    3956           0 :     if ((!((msg__)->ReadSentinel(iter__, 2198503272)))) {
    3957           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'forcePreflight' (bool) member of 'LoadInfoArgs'");
    3958           0 :         return false;
    3959             :     }
    3960           0 :     if ((!(Read((&((v__)->isPreflight())), msg__, iter__)))) {
    3961           0 :         FatalError("Error deserializing 'isPreflight' (bool) member of 'LoadInfoArgs'");
    3962           0 :         return false;
    3963             :     }
    3964             :     // Sentinel = 'isPreflight'
    3965           0 :     if ((!((msg__)->ReadSentinel(iter__, 3402379662)))) {
    3966           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isPreflight' (bool) member of 'LoadInfoArgs'");
    3967           0 :         return false;
    3968             :     }
    3969           0 :     if ((!(Read((&((v__)->forceHSTSPriming())), msg__, iter__)))) {
    3970           0 :         FatalError("Error deserializing 'forceHSTSPriming' (bool) member of 'LoadInfoArgs'");
    3971           0 :         return false;
    3972             :     }
    3973             :     // Sentinel = 'forceHSTSPriming'
    3974           0 :     if ((!((msg__)->ReadSentinel(iter__, 1123937751)))) {
    3975           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'forceHSTSPriming' (bool) member of 'LoadInfoArgs'");
    3976           0 :         return false;
    3977             :     }
    3978           0 :     if ((!(Read((&((v__)->mixedContentWouldBlock())), msg__, iter__)))) {
    3979           0 :         FatalError("Error deserializing 'mixedContentWouldBlock' (bool) member of 'LoadInfoArgs'");
    3980           0 :         return false;
    3981             :     }
    3982             :     // Sentinel = 'mixedContentWouldBlock'
    3983           0 :     if ((!((msg__)->ReadSentinel(iter__, 3609505564)))) {
    3984           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mixedContentWouldBlock' (bool) member of 'LoadInfoArgs'");
    3985           0 :         return false;
    3986             :     }
    3987           0 :     if ((!(Read((&((v__)->isHSTSPriming())), msg__, iter__)))) {
    3988           0 :         FatalError("Error deserializing 'isHSTSPriming' (bool) member of 'LoadInfoArgs'");
    3989           0 :         return false;
    3990             :     }
    3991             :     // Sentinel = 'isHSTSPriming'
    3992           0 :     if ((!((msg__)->ReadSentinel(iter__, 3794927777)))) {
    3993           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isHSTSPriming' (bool) member of 'LoadInfoArgs'");
    3994           0 :         return false;
    3995             :     }
    3996           0 :     if ((!(Read((&((v__)->isHSTSPrimingUpgrade())), msg__, iter__)))) {
    3997           0 :         FatalError("Error deserializing 'isHSTSPrimingUpgrade' (bool) member of 'LoadInfoArgs'");
    3998           0 :         return false;
    3999             :     }
    4000             :     // Sentinel = 'isHSTSPrimingUpgrade'
    4001           0 :     if ((!((msg__)->ReadSentinel(iter__, 3851270092)))) {
    4002           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isHSTSPrimingUpgrade' (bool) member of 'LoadInfoArgs'");
    4003           0 :         return false;
    4004             :     }
    4005           0 :     return true;
    4006             : }
    4007             : 
    4008           0 : auto PWebSocketParent::Write(
    4009             :         const NullPrincipalInfo& v__,
    4010             :         Message* msg__) -> void
    4011             : {
    4012           0 :     Write((v__).attrs(), msg__);
    4013             :     // Sentinel = 'attrs'
    4014           0 :     (msg__)->WriteSentinel(3014987797);
    4015           0 :     Write((v__).spec(), msg__);
    4016             :     // Sentinel = 'spec'
    4017           0 :     (msg__)->WriteSentinel(1630740541);
    4018           0 : }
    4019             : 
    4020           0 : auto PWebSocketParent::Read(
    4021             :         NullPrincipalInfo* v__,
    4022             :         const Message* msg__,
    4023             :         PickleIterator* iter__) -> bool
    4024             : {
    4025           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
    4026           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
    4027           0 :         return false;
    4028             :     }
    4029             :     // Sentinel = 'attrs'
    4030           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
    4031           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
    4032           0 :         return false;
    4033             :     }
    4034           0 :     if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
    4035           0 :         FatalError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
    4036           0 :         return false;
    4037             :     }
    4038             :     // Sentinel = 'spec'
    4039           0 :     if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
    4040           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
    4041           0 :         return false;
    4042             :     }
    4043           0 :     return true;
    4044             : }
    4045             : 
    4046           0 : auto PWebSocketParent::Write(
    4047             :         const StandardURLSegment& v__,
    4048             :         Message* msg__) -> void
    4049             : {
    4050           0 :     Write((v__).position(), msg__);
    4051             :     // Sentinel = 'position'
    4052           0 :     (msg__)->WriteSentinel(50847225);
    4053           0 :     Write((v__).length(), msg__);
    4054             :     // Sentinel = 'length'
    4055           0 :     (msg__)->WriteSentinel(1726618354);
    4056           0 : }
    4057             : 
    4058           0 : auto PWebSocketParent::Read(
    4059             :         StandardURLSegment* v__,
    4060             :         const Message* msg__,
    4061             :         PickleIterator* iter__) -> bool
    4062             : {
    4063           0 :     if ((!(Read((&((v__)->position())), msg__, iter__)))) {
    4064           0 :         FatalError("Error deserializing 'position' (uint32_t) member of 'StandardURLSegment'");
    4065           0 :         return false;
    4066             :     }
    4067             :     // Sentinel = 'position'
    4068           0 :     if ((!((msg__)->ReadSentinel(iter__, 50847225)))) {
    4069           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'position' (uint32_t) member of 'StandardURLSegment'");
    4070           0 :         return false;
    4071             :     }
    4072           0 :     if ((!(Read((&((v__)->length())), msg__, iter__)))) {
    4073           0 :         FatalError("Error deserializing 'length' (int32_t) member of 'StandardURLSegment'");
    4074           0 :         return false;
    4075             :     }
    4076             :     // Sentinel = 'length'
    4077           0 :     if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
    4078           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'length' (int32_t) member of 'StandardURLSegment'");
    4079           0 :         return false;
    4080             :     }
    4081           0 :     return true;
    4082             : }
    4083             : 
    4084           0 : auto PWebSocketParent::Write(
    4085             :         const PChildToParentStreamParent* v__,
    4086             :         Message* msg__,
    4087             :         bool nullable__) -> void
    4088             : {
    4089             :     int32_t id;
    4090           0 :     if ((!(v__))) {
    4091           0 :         if ((!(nullable__))) {
    4092           0 :             FatalError("NULL actor value passed to non-nullable param");
    4093             :         }
    4094           0 :         id = 0;
    4095             :     }
    4096             :     else {
    4097           0 :         id = (v__)->Id();
    4098           0 :         if ((1) == (id)) {
    4099           0 :             FatalError("actor has been |delete|d");
    4100             :         }
    4101             :     }
    4102             : 
    4103           0 :     Write(id, msg__);
    4104           0 : }
    4105             : 
    4106           0 : auto PWebSocketParent::Read(
    4107             :         PChildToParentStreamParent** v__,
    4108             :         const Message* msg__,
    4109             :         PickleIterator* iter__,
    4110             :         bool nullable__) -> bool
    4111             : {
    4112           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PChildToParentStream", PChildToParentStreamMsgStart);
    4113           0 :     if ((actor).isNothing()) {
    4114           0 :         return false;
    4115             :     }
    4116             : 
    4117           0 :     (*(v__)) = static_cast<PChildToParentStreamParent*>((actor).value());
    4118           0 :     return true;
    4119             : }
    4120             : 
    4121             : 
    4122             : 
    4123             : } // namespace net
    4124             : } // namespace mozilla

Generated by: LCOV version 1.13