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

Generated by: LCOV version 1.13