//
// Automatically generated by ipdlc.
// Edit at your own risk
//


#include "mozilla/net/PHttpConnectionMgrChild.h"
#include "mozilla/AntiTrackingIPCUtils.h"
#include "mozilla/ProfilerLabels.h"
#include "mozilla/TimeStamp.h"
#include "mozilla/dom/ConsoleReportIPCUtils.h"
#include "mozilla/dom/DomSecurityIPCUtils.h"
#include "mozilla/dom/FetchIPCTypes.h"
#include "mozilla/dom/NavigationAPIIPCUtils.h"
#include "mozilla/dom/PermissionsPolicyUtils.h"
#include "mozilla/dom/PropertyBagUtils.h"
#include "mozilla/dom/ReferrerInfoUtils.h"
#include "mozilla/dom/RemoteType.h"
#include "mozilla/dom/SessionHistoryEntry.h"
#include "mozilla/ipc/URIUtils.h"
#include "mozilla/net/CacheInfoIPCTypes.h"
#include "mozilla/net/ClassOfService.h"
#include "mozilla/net/HttpConnectionMgrChild.h"
#include "mozilla/net/NeckoMessageUtils.h"
#include "nsDOMNavigationTiming.h"
#include "nsDocShellLoadState.h"
#include "nsHttp.h"
#include "nsHttpResponseHead.h"
#include "nsIPropertyBag2.h"

#include "mozilla/net/PAltSvcTransactionChild.h"
#include "mozilla/net/PSocketProcessChild.h"
#include "mozilla/net/PHttpTransactionChild.h"

#include "ipc/IPCMessageUtils.h"
#include "ipc/IPCMessageUtilsSpecializations.h"
#include "nsIFile.h"
#include "mozilla/ipc/Endpoint.h"
#include "mozilla/ipc/ProtocolMessageUtils.h"
#include "mozilla/ipc/ProtocolUtils.h"
#include "mozilla/ipc/ShmemMessageUtils.h"
#include "mozilla/ipc/TaintingIPCUtils.h"

namespace mozilla {
namespace net {


auto PHttpConnectionMgrChild::Recv__delete__() -> mozilla::ipc::IPCResult
{
    return IPC_OK();
}

MOZ_IMPLICIT PHttpConnectionMgrChild::PHttpConnectionMgrChild() :
    mozilla::ipc::IRefCountedProtocol(kProtocolId, mozilla::ipc::ChildSide)
{
    MOZ_COUNT_CTOR(PHttpConnectionMgrChild);
}

PHttpConnectionMgrChild::~PHttpConnectionMgrChild()
{
    MOZ_COUNT_DTOR(PHttpConnectionMgrChild);
}

auto PHttpConnectionMgrChild::ActorAlloc() -> void
{
    AddRef();
}

auto PHttpConnectionMgrChild::ActorDealloc() -> void
{
    Release();
}

auto PHttpConnectionMgrChild::OtherPid() const -> ::base::ProcessId
{
    ::base::ProcessId pid =
        ::mozilla::ipc::IProtocol::ToplevelProtocol()->OtherPidMaybeInvalid();
    MOZ_RELEASE_ASSERT(pid != ::base::kInvalidProcessId);
    return pid;
}

auto PHttpConnectionMgrChild::OtherChildID() const -> ::GeckoChildID
{
    ::GeckoChildID childID =
        ::mozilla::ipc::IProtocol::ToplevelProtocol()->OtherChildIDMaybeInvalid();
    MOZ_RELEASE_ASSERT(childID != -1);
    return childID;
}

auto PHttpConnectionMgrChild::OtherEndpointProcInfo() const -> ::mozilla::ipc::EndpointProcInfo
{
    return ::mozilla::ipc::EndpointProcInfo{OtherPid(), OtherChildID()};
}

auto PHttpConnectionMgrChild::Manager() const -> PSocketProcessChild*
{
    return static_cast<PSocketProcessChild*>(IProtocol::Manager());
}

auto PHttpConnectionMgrChild::ManagedProtocolIds() const -> mozilla::Span<mozilla::ipc::ProtocolId const>
{
    return {};
}

auto PHttpConnectionMgrChild::GetManagedActors(mozilla::ipc::ProtocolId aProtocol) -> UntypedManagedContainer*
{
    switch (aProtocol) {
    default:
        return nullptr;
    }
}

auto PHttpConnectionMgrChild::DeallocManagee(
        mozilla::ipc::ProtocolId aProtocolId,
        IProtocol* aListener) -> void
{
    FatalError("unreached");
    return;
}

auto PHttpConnectionMgrChild::OnMessageReceived(const Message& msg__) -> PHttpConnectionMgrChild::Result
{
    if (!CanSend()) {
        if (mozilla::ipc::LoggingEnabledFor("PHttpConnectionMgr", mozilla::ipc::ChildSide)) {
            mozilla::ipc::LogMessageForProtocol(
                "PHttpConnectionMgrChild",
                this->ToplevelProtocol()->OtherPidMaybeInvalid(),
                "Ignored message for dead actor",
                (&(msg__))->type(),
                mozilla::ipc::MessageDirection::eSending);
        }
        return MsgProcessed;

    }
    switch (msg__.type()) {
    case MANAGED_ENDPOINT_BOUND_MESSAGE_TYPE:
        {
            if (!mAwaitingManagedEndpointBind) {
                NS_WARNING("Unexpected managed endpoint lifecycle message after actor bound!");
                return MsgNotAllowed;
            }
            mAwaitingManagedEndpointBind = false;
            return MsgProcessed;
        }
    case MANAGED_ENDPOINT_DROPPED_MESSAGE_TYPE:
        {
            if (!mAwaitingManagedEndpointBind) {
                NS_WARNING("Unexpected managed endpoint lifecycle message after actor bound!");
                return MsgNotAllowed;
            }
            mAwaitingManagedEndpointBind = false;
            this->ActorDisconnected(ManagedEndpointDropped);
            return MsgProcessed;
        }
    case PHttpConnectionMgr::Msg___delete____ID:
        {
            if (mozilla::ipc::LoggingEnabledFor("PHttpConnectionMgr", mozilla::ipc::ChildSide)) {
                mozilla::ipc::LogMessageForProtocol(
                    "PHttpConnectionMgrChild",
                    this->ToplevelProtocol()->OtherPidMaybeInvalid(),
                    "Received ",
                    (&(msg__))->type(),
                    mozilla::ipc::MessageDirection::eReceiving);
            }
            AUTO_PROFILER_LABEL("PHttpConnectionMgr::Msg___delete__", OTHER);

            DoomSubtree();
            mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::net::HttpConnectionMgrChild*>(this))->Recv__delete__();
            if ((!(__ok))) {
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
                // Error handled in mozilla::ipc::IPCResult
                return MsgProcessingError;
            }


            this->ActorDisconnected(Deletion);

            return MsgProcessed;
        }
    case PHttpConnectionMgr::Msg_DoShiftReloadConnectionCleanupWithConnInfo__ID:
        {
            if (mozilla::ipc::LoggingEnabledFor("PHttpConnectionMgr", mozilla::ipc::ChildSide)) {
                mozilla::ipc::LogMessageForProtocol(
                    "PHttpConnectionMgrChild",
                    this->ToplevelProtocol()->OtherPidMaybeInvalid(),
                    "Received ",
                    (&(msg__))->type(),
                    mozilla::ipc::MessageDirection::eReceiving);
            }
            AUTO_PROFILER_LABEL("PHttpConnectionMgr::Msg_DoShiftReloadConnectionCleanupWithConnInfo", OTHER);

            IPC::MessageReader reader__{
                    msg__,
                    this};

            auto maybe__aArgs = IPC::ReadParam<HttpConnectionInfoCloneArgs>((&(reader__)));
            if (!maybe__aArgs) {
                FatalError("Error deserializing 'HttpConnectionInfoCloneArgs'");
                return MsgValueError;

            }
            auto& aArgs = *maybe__aArgs;
            // Sentinel = 'aArgs'
            if ((!(((&(reader__)))->ReadSentinel(92602863)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'HttpConnectionInfoCloneArgs'");
                return MsgValueError;
            }
            reader__.EndRead();
            mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::net::HttpConnectionMgrChild*>(this))->RecvDoShiftReloadConnectionCleanupWithConnInfo(std::move(aArgs));
            if ((!(__ok))) {
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
                // Error handled in mozilla::ipc::IPCResult
                return MsgProcessingError;
            }

            return MsgProcessed;
        }
    case PHttpConnectionMgr::Msg_UpdateCurrentBrowserId__ID:
        {
            if (mozilla::ipc::LoggingEnabledFor("PHttpConnectionMgr", mozilla::ipc::ChildSide)) {
                mozilla::ipc::LogMessageForProtocol(
                    "PHttpConnectionMgrChild",
                    this->ToplevelProtocol()->OtherPidMaybeInvalid(),
                    "Received ",
                    (&(msg__))->type(),
                    mozilla::ipc::MessageDirection::eReceiving);
            }
            AUTO_PROFILER_LABEL("PHttpConnectionMgr::Msg_UpdateCurrentBrowserId", OTHER);

            IPC::MessageReader reader__{
                    msg__,
                    this};

            auto maybe__aId = IPC::ReadParam<uint64_t>((&(reader__)));
            if (!maybe__aId) {
                FatalError("Error deserializing 'uint64_t'");
                return MsgValueError;

            }
            auto& aId = *maybe__aId;
            // Sentinel = 'aId'
            if ((!(((&(reader__)))->ReadSentinel(35389711)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
                return MsgValueError;
            }
            reader__.EndRead();
            mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::net::HttpConnectionMgrChild*>(this))->RecvUpdateCurrentBrowserId(std::move(aId));
            if ((!(__ok))) {
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
                // Error handled in mozilla::ipc::IPCResult
                return MsgProcessingError;
            }

            return MsgProcessed;
        }
    case PHttpConnectionMgr::Msg_AddTransaction__ID:
        {
            if (mozilla::ipc::LoggingEnabledFor("PHttpConnectionMgr", mozilla::ipc::ChildSide)) {
                mozilla::ipc::LogMessageForProtocol(
                    "PHttpConnectionMgrChild",
                    this->ToplevelProtocol()->OtherPidMaybeInvalid(),
                    "Received ",
                    (&(msg__))->type(),
                    mozilla::ipc::MessageDirection::eReceiving);
            }
            AUTO_PROFILER_LABEL("PHttpConnectionMgr::Msg_AddTransaction", OTHER);

            IPC::MessageReader reader__{
                    msg__,
                    this};

            auto maybe__aTrans = IPC::ReadParam<mozilla::NotNull<PHttpTransactionChild*>>((&(reader__)));
            if (!maybe__aTrans) {
                FatalError("Error deserializing 'NotNull<PHttpTransaction>'");
                return MsgValueError;

            }
            auto& aTrans = *maybe__aTrans;
            // Sentinel = 'aTrans'
            if ((!(((&(reader__)))->ReadSentinel(136970858)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'NotNull<PHttpTransaction>'");
                return MsgValueError;
            }
            auto maybe__aPriority = IPC::ReadParam<int32_t>((&(reader__)));
            if (!maybe__aPriority) {
                FatalError("Error deserializing 'int32_t'");
                return MsgValueError;

            }
            auto& aPriority = *maybe__aPriority;
            // Sentinel = 'aPriority'
            if ((!(((&(reader__)))->ReadSentinel(303367108)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
                return MsgValueError;
            }
            reader__.EndRead();
            mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::net::HttpConnectionMgrChild*>(this))->RecvAddTransaction(aTrans, std::move(aPriority));
            if ((!(__ok))) {
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
                // Error handled in mozilla::ipc::IPCResult
                return MsgProcessingError;
            }

            return MsgProcessed;
        }
    case PHttpConnectionMgr::Msg_AddTransactionWithStickyConn__ID:
        {
            if (mozilla::ipc::LoggingEnabledFor("PHttpConnectionMgr", mozilla::ipc::ChildSide)) {
                mozilla::ipc::LogMessageForProtocol(
                    "PHttpConnectionMgrChild",
                    this->ToplevelProtocol()->OtherPidMaybeInvalid(),
                    "Received ",
                    (&(msg__))->type(),
                    mozilla::ipc::MessageDirection::eReceiving);
            }
            AUTO_PROFILER_LABEL("PHttpConnectionMgr::Msg_AddTransactionWithStickyConn", OTHER);

            IPC::MessageReader reader__{
                    msg__,
                    this};

            auto maybe__aTrans = IPC::ReadParam<mozilla::NotNull<PHttpTransactionChild*>>((&(reader__)));
            if (!maybe__aTrans) {
                FatalError("Error deserializing 'NotNull<PHttpTransaction>'");
                return MsgValueError;

            }
            auto& aTrans = *maybe__aTrans;
            // Sentinel = 'aTrans'
            if ((!(((&(reader__)))->ReadSentinel(136970858)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'NotNull<PHttpTransaction>'");
                return MsgValueError;
            }
            auto maybe__aPriority = IPC::ReadParam<int32_t>((&(reader__)));
            if (!maybe__aPriority) {
                FatalError("Error deserializing 'int32_t'");
                return MsgValueError;

            }
            auto& aPriority = *maybe__aPriority;
            // Sentinel = 'aPriority'
            if ((!(((&(reader__)))->ReadSentinel(303367108)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
                return MsgValueError;
            }
            auto maybe__aTransWithStickyConn = IPC::ReadParam<mozilla::NotNull<PHttpTransactionChild*>>((&(reader__)));
            if (!maybe__aTransWithStickyConn) {
                FatalError("Error deserializing 'NotNull<PHttpTransaction>'");
                return MsgValueError;

            }
            auto& aTransWithStickyConn = *maybe__aTransWithStickyConn;
            // Sentinel = 'aTransWithStickyConn'
            if ((!(((&(reader__)))->ReadSentinel(1405487115)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'NotNull<PHttpTransaction>'");
                return MsgValueError;
            }
            reader__.EndRead();
            mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::net::HttpConnectionMgrChild*>(this))->RecvAddTransactionWithStickyConn(aTrans, std::move(aPriority), aTransWithStickyConn);
            if ((!(__ok))) {
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
                // Error handled in mozilla::ipc::IPCResult
                return MsgProcessingError;
            }

            return MsgProcessed;
        }
    case PHttpConnectionMgr::Msg_RescheduleTransaction__ID:
        {
            if (mozilla::ipc::LoggingEnabledFor("PHttpConnectionMgr", mozilla::ipc::ChildSide)) {
                mozilla::ipc::LogMessageForProtocol(
                    "PHttpConnectionMgrChild",
                    this->ToplevelProtocol()->OtherPidMaybeInvalid(),
                    "Received ",
                    (&(msg__))->type(),
                    mozilla::ipc::MessageDirection::eReceiving);
            }
            AUTO_PROFILER_LABEL("PHttpConnectionMgr::Msg_RescheduleTransaction", OTHER);

            IPC::MessageReader reader__{
                    msg__,
                    this};

            auto maybe__aTrans = IPC::ReadParam<mozilla::NotNull<PHttpTransactionChild*>>((&(reader__)));
            if (!maybe__aTrans) {
                FatalError("Error deserializing 'NotNull<PHttpTransaction>'");
                return MsgValueError;

            }
            auto& aTrans = *maybe__aTrans;
            // Sentinel = 'aTrans'
            if ((!(((&(reader__)))->ReadSentinel(136970858)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'NotNull<PHttpTransaction>'");
                return MsgValueError;
            }
            auto maybe__aPriority = IPC::ReadParam<int32_t>((&(reader__)));
            if (!maybe__aPriority) {
                FatalError("Error deserializing 'int32_t'");
                return MsgValueError;

            }
            auto& aPriority = *maybe__aPriority;
            // Sentinel = 'aPriority'
            if ((!(((&(reader__)))->ReadSentinel(303367108)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
                return MsgValueError;
            }
            reader__.EndRead();
            mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::net::HttpConnectionMgrChild*>(this))->RecvRescheduleTransaction(aTrans, std::move(aPriority));
            if ((!(__ok))) {
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
                // Error handled in mozilla::ipc::IPCResult
                return MsgProcessingError;
            }

            return MsgProcessed;
        }
    case PHttpConnectionMgr::Msg_UpdateClassOfServiceOnTransaction__ID:
        {
            if (mozilla::ipc::LoggingEnabledFor("PHttpConnectionMgr", mozilla::ipc::ChildSide)) {
                mozilla::ipc::LogMessageForProtocol(
                    "PHttpConnectionMgrChild",
                    this->ToplevelProtocol()->OtherPidMaybeInvalid(),
                    "Received ",
                    (&(msg__))->type(),
                    mozilla::ipc::MessageDirection::eReceiving);
            }
            AUTO_PROFILER_LABEL("PHttpConnectionMgr::Msg_UpdateClassOfServiceOnTransaction", OTHER);

            IPC::MessageReader reader__{
                    msg__,
                    this};

            auto maybe__aTrans = IPC::ReadParam<mozilla::NotNull<PHttpTransactionChild*>>((&(reader__)));
            if (!maybe__aTrans) {
                FatalError("Error deserializing 'NotNull<PHttpTransaction>'");
                return MsgValueError;

            }
            auto& aTrans = *maybe__aTrans;
            // Sentinel = 'aTrans'
            if ((!(((&(reader__)))->ReadSentinel(136970858)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'NotNull<PHttpTransaction>'");
                return MsgValueError;
            }
            auto maybe__aClassOfService = IPC::ReadParam<ClassOfService>((&(reader__)));
            if (!maybe__aClassOfService) {
                FatalError("Error deserializing 'ClassOfService'");
                return MsgValueError;

            }
            auto& aClassOfService = *maybe__aClassOfService;
            // Sentinel = 'aClassOfService'
            if ((!(((&(reader__)))->ReadSentinel(770770398)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'ClassOfService'");
                return MsgValueError;
            }
            reader__.EndRead();
            mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::net::HttpConnectionMgrChild*>(this))->RecvUpdateClassOfServiceOnTransaction(aTrans, std::move(aClassOfService));
            if ((!(__ok))) {
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
                // Error handled in mozilla::ipc::IPCResult
                return MsgProcessingError;
            }

            return MsgProcessed;
        }
    case PHttpConnectionMgr::Msg_CancelTransaction__ID:
        {
            if (mozilla::ipc::LoggingEnabledFor("PHttpConnectionMgr", mozilla::ipc::ChildSide)) {
                mozilla::ipc::LogMessageForProtocol(
                    "PHttpConnectionMgrChild",
                    this->ToplevelProtocol()->OtherPidMaybeInvalid(),
                    "Received ",
                    (&(msg__))->type(),
                    mozilla::ipc::MessageDirection::eReceiving);
            }
            AUTO_PROFILER_LABEL("PHttpConnectionMgr::Msg_CancelTransaction", OTHER);

            IPC::MessageReader reader__{
                    msg__,
                    this};

            auto maybe__aTrans = IPC::ReadParam<mozilla::NotNull<PHttpTransactionChild*>>((&(reader__)));
            if (!maybe__aTrans) {
                FatalError("Error deserializing 'NotNull<PHttpTransaction>'");
                return MsgValueError;

            }
            auto& aTrans = *maybe__aTrans;
            // Sentinel = 'aTrans'
            if ((!(((&(reader__)))->ReadSentinel(136970858)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'NotNull<PHttpTransaction>'");
                return MsgValueError;
            }
            auto maybe__aReason = IPC::ReadParam<nsresult>((&(reader__)));
            if (!maybe__aReason) {
                FatalError("Error deserializing 'nsresult'");
                return MsgValueError;

            }
            auto& aReason = *maybe__aReason;
            // Sentinel = 'aReason'
            if ((!(((&(reader__)))->ReadSentinel(180093642)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
                return MsgValueError;
            }
            reader__.EndRead();
            mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::net::HttpConnectionMgrChild*>(this))->RecvCancelTransaction(aTrans, std::move(aReason));
            if ((!(__ok))) {
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
                // Error handled in mozilla::ipc::IPCResult
                return MsgProcessingError;
            }

            return MsgProcessed;
        }
    case PHttpConnectionMgr::Msg_SpeculativeConnect__ID:
        {
            if (mozilla::ipc::LoggingEnabledFor("PHttpConnectionMgr", mozilla::ipc::ChildSide)) {
                mozilla::ipc::LogMessageForProtocol(
                    "PHttpConnectionMgrChild",
                    this->ToplevelProtocol()->OtherPidMaybeInvalid(),
                    "Received ",
                    (&(msg__))->type(),
                    mozilla::ipc::MessageDirection::eReceiving);
            }
            AUTO_PROFILER_LABEL("PHttpConnectionMgr::Msg_SpeculativeConnect", OTHER);

            IPC::MessageReader reader__{
                    msg__,
                    this};

            auto maybe__aConnInfo = IPC::ReadParam<HttpConnectionInfoCloneArgs>((&(reader__)));
            if (!maybe__aConnInfo) {
                FatalError("Error deserializing 'HttpConnectionInfoCloneArgs'");
                return MsgValueError;

            }
            auto& aConnInfo = *maybe__aConnInfo;
            // Sentinel = 'aConnInfo'
            if ((!(((&(reader__)))->ReadSentinel(284558204)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'HttpConnectionInfoCloneArgs'");
                return MsgValueError;
            }
            auto maybe__aOverriderArgs = IPC::ReadParam<mozilla::Maybe<SpeculativeConnectionOverriderArgs>>((&(reader__)));
            if (!maybe__aOverriderArgs) {
                FatalError("Error deserializing 'SpeculativeConnectionOverriderArgs?'");
                return MsgValueError;

            }
            auto& aOverriderArgs = *maybe__aOverriderArgs;
            // Sentinel = 'aOverriderArgs'
            if ((!(((&(reader__)))->ReadSentinel(703268257)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'SpeculativeConnectionOverriderArgs?'");
                return MsgValueError;
            }
            auto maybe__aCaps = IPC::ReadParam<uint32_t>((&(reader__)));
            if (!maybe__aCaps) {
                FatalError("Error deserializing 'uint32_t'");
                return MsgValueError;

            }
            auto& aCaps = *maybe__aCaps;
            // Sentinel = 'aCaps'
            if ((!(((&(reader__)))->ReadSentinel(90964457)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
                return MsgValueError;
            }
            auto maybe__aTrans = IPC::ReadParam<mozilla::Maybe<mozilla::NotNull<PAltSvcTransactionChild*>>>((&(reader__)));
            if (!maybe__aTrans) {
                FatalError("Error deserializing 'NotNull<PAltSvcTransaction>?'");
                return MsgValueError;

            }
            auto& aTrans = *maybe__aTrans;
            // Sentinel = 'aTrans'
            if ((!(((&(reader__)))->ReadSentinel(136970858)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'NotNull<PAltSvcTransaction>?'");
                return MsgValueError;
            }
            auto maybe__aFetchHTTPSRR = IPC::ReadParam<bool>((&(reader__)));
            if (!maybe__aFetchHTTPSRR) {
                FatalError("Error deserializing 'bool'");
                return MsgValueError;

            }
            auto& aFetchHTTPSRR = *maybe__aFetchHTTPSRR;
            // Sentinel = 'aFetchHTTPSRR'
            if ((!(((&(reader__)))->ReadSentinel(547292291)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
                return MsgValueError;
            }
            reader__.EndRead();
            mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::net::HttpConnectionMgrChild*>(this))->RecvSpeculativeConnect(std::move(aConnInfo), std::move(aOverriderArgs), std::move(aCaps), std::move(aTrans), std::move(aFetchHTTPSRR));
            if ((!(__ok))) {
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
                // Error handled in mozilla::ipc::IPCResult
                return MsgProcessingError;
            }

            return MsgProcessed;
        }
    case PHttpConnectionMgr::Msg_StartWebSocketConnection__ID:
        {
            if (mozilla::ipc::LoggingEnabledFor("PHttpConnectionMgr", mozilla::ipc::ChildSide)) {
                mozilla::ipc::LogMessageForProtocol(
                    "PHttpConnectionMgrChild",
                    this->ToplevelProtocol()->OtherPidMaybeInvalid(),
                    "Received ",
                    (&(msg__))->type(),
                    mozilla::ipc::MessageDirection::eReceiving);
            }
            AUTO_PROFILER_LABEL("PHttpConnectionMgr::Msg_StartWebSocketConnection", OTHER);

            IPC::MessageReader reader__{
                    msg__,
                    this};

            auto maybe__aTransWithStickyConn = IPC::ReadParam<mozilla::NotNull<PHttpTransactionChild*>>((&(reader__)));
            if (!maybe__aTransWithStickyConn) {
                FatalError("Error deserializing 'NotNull<PHttpTransaction>'");
                return MsgValueError;

            }
            auto& aTransWithStickyConn = *maybe__aTransWithStickyConn;
            // Sentinel = 'aTransWithStickyConn'
            if ((!(((&(reader__)))->ReadSentinel(1405487115)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'NotNull<PHttpTransaction>'");
                return MsgValueError;
            }
            auto maybe__aListenerId = IPC::ReadParam<uint32_t>((&(reader__)));
            if (!maybe__aListenerId) {
                FatalError("Error deserializing 'uint32_t'");
                return MsgValueError;

            }
            auto& aListenerId = *maybe__aListenerId;
            // Sentinel = 'aListenerId'
            if ((!(((&(reader__)))->ReadSentinel(436667477)))) {
                mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
                return MsgValueError;
            }
            reader__.EndRead();
            mozilla::ipc::IPCResult __ok = (static_cast<::mozilla::net::HttpConnectionMgrChild*>(this))->RecvStartWebSocketConnection(aTransWithStickyConn, std::move(aListenerId));
            if ((!(__ok))) {
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
                // Error handled in mozilla::ipc::IPCResult
                return MsgProcessingError;
            }

            return MsgProcessed;
        }
    default:
        return MsgNotKnown;
    }
}

auto PHttpConnectionMgrChild::OnMessageReceived(
        const Message& msg__,
        UniquePtr<Message>& reply__) -> PHttpConnectionMgrChild::Result
{
    if (!CanSend()) {
        return MsgDropped;

    }
    return MsgNotKnown;
}



} // namespace net
} // namespace mozilla
