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

#ifndef PSocketProcessChild_h
#define PSocketProcessChild_h

#include "mozilla/net/PSocketProcess.h"
#ifdef DEBUG
#include "prenv.h"
#endif  // DEBUG

#include "mozilla/Tainting.h"
#include "mozilla/ipc/MessageChannel.h"
#include "mozilla/ipc/ProtocolUtils.h"
// Headers for things that cannot be forward declared
#include "base/process.h"
#include "mozilla/TelemetryComms.h"
#include "mozilla/dom/FeaturePolicy.h"
#include "mozilla/dom/LoadURIOptionsBinding.h"
#include "mozilla/dom/NativeThreadId.h"
#include "mozilla/dom/RequestBinding.h"
#include "mozilla/dom/UserNavigationInvolvement.h"
#include "mozilla/dom/ipc/IdType.h"
#include "mozilla/ipc/BackgroundUtils.h"
#include "mozilla/net/DNS.h"
#include "mozilla/net/DashboardTypes.h"
#include "mozilla/net/PHttpChannelParams.h"
#include "nsICacheInfoChannel.h"
#include "nsIContentPolicy.h"
#include "nsIDNSService.h"
#include "nsILoadInfo.h"
#include "nsNetUtil.h"
#include "nsRFPService.h"
#include "prtime.h"

namespace mozilla {
namespace net {
class PDNSRequestChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PDNSRequestParent;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PSocketProcessBridgeChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PSocketProcessBridgeParent;
} // namespace net
} // namespace mozilla

namespace mozilla {
class PProfilerChild;
} // namespace mozilla
namespace mozilla {
class PProfilerParent;
} // namespace mozilla

namespace mozilla {
namespace net {
class PWebrtcTCPSocketChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PWebrtcTCPSocketParent;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PHttpTransactionChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PHttpTransactionParent;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PHttpConnectionMgrChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PHttpConnectionMgrParent;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PInputChannelThrottleQueueChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PInputChannelThrottleQueueParent;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PAltServiceChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PAltServiceParent;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PAltSvcTransactionChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PAltSvcTransactionParent;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PTRRServiceChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PTRRServiceParent;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PProxyConfigLookupChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PProxyConfigLookupParent;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PNativeDNSResolverOverrideChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PNativeDNSResolverOverrideParent;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PProxyAutoConfigChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PProxyAutoConfigParent;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PSocketProcessBackgroundChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PSocketProcessBackgroundParent;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PAltServiceChild;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PAltSvcTransactionChild;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PDNSRequestChild;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PHttpConnectionMgrChild;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PHttpTransactionChild;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PInputChannelThrottleQueueChild;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PNativeDNSResolverOverrideChild;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PProxyConfigLookupChild;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PTRRServiceChild;
} // namespace net
} // namespace mozilla

namespace mozilla {
namespace net {
class PWebrtcTCPSocketChild;
} // namespace net
} // namespace mozilla

namespace mozilla {
struct void_t;
} // namespace mozilla

struct nsHttpAtom;

namespace mozilla {
namespace net {
class nsHttpResponseHead;
} // namespace net
} // namespace mozilla

namespace mozilla {
class TimeStamp;
} // namespace mozilla

class nsIPropertyBag2;

class nsDOMNavigationTiming;

class nsDocShellLoadState;

namespace mozilla {
namespace dom {
struct LoadingSessionHistoryInfo;
} // namespace dom
} // namespace mozilla

namespace mozilla {
struct null_t;
} // namespace mozilla

class nsIURI;

struct nsID;

namespace mozilla {
namespace net {


class PSocketProcessChild :
    public mozilla::ipc::IToplevelProtocol
{
private:
    friend class ::mozilla::net::PAltServiceChild;
    friend class ::mozilla::net::PAltSvcTransactionChild;
    friend class ::mozilla::net::PDNSRequestChild;
    friend class ::mozilla::net::PHttpConnectionMgrChild;
    friend class ::mozilla::net::PHttpTransactionChild;
    friend class ::mozilla::net::PInputChannelThrottleQueueChild;
    friend class ::mozilla::net::PNativeDNSResolverOverrideChild;
    friend class ::mozilla::net::PProxyConfigLookupChild;
    friend class ::mozilla::net::PTRRServiceChild;
    friend class ::mozilla::net::PWebrtcTCPSocketChild;
public:
    static constexpr ::mozilla::ipc::ProtocolId kProtocolId = PSocketProcessMsgStart;
protected:
    typedef mozilla::ipc::ActorId ActorId;
    typedef ::mozilla::ipc::ByteBuf ByteBuf;
    typedef ::mozilla::Telemetry::ChildEventData ChildEventData;
    typedef ::mozilla::net::ChildLoadInfoForwarderArgs ChildLoadInfoForwarderArgs;
    typedef ::mozilla::net::ConsoleReportCollected ConsoleReportCollected;
    typedef ::mozilla::net::CookieChange CookieChange;
    typedef ::mozilla::net::CookieJarSettingsArgs CookieJarSettingsArgs;
    typedef ::mozilla::net::CookiePermissionData CookiePermissionData;
    typedef ::mozilla::net::CookieStruct CookieStruct;
    typedef ::mozilla::net::CookieStructTable CookieStructTable;
    typedef ::mozilla::net::CorsPreflightArgs CorsPreflightArgs;
    typedef ::CrashReporter::CrashReporterInitArgs CrashReporterInitArgs;
    typedef ::nsILoadInfo::CrossOriginEmbedderPolicy CrossOriginEmbedderPolicy;
    typedef ::mozilla::net::DNSCacheEntries DNSCacheEntries;
    typedef ::nsIDNSService::DNSFlags DNSFlags;
    typedef ::mozilla::Telemetry::DiscardedData DiscardedData;
    typedef ::mozilla::net::DocumentChannelCreationArgs DocumentChannelCreationArgs;
    typedef ::mozilla::net::DocumentChannelElementCreationArgs DocumentChannelElementCreationArgs;
    typedef ::mozilla::net::DocumentCreationArgs DocumentCreationArgs;
    typedef ::mozilla::net::EarlyHintConnectArgs EarlyHintConnectArgs;
    template<class FooSide> using Endpoint = mozilla::ipc::Endpoint<FooSide>;
    typedef ::mozilla::dom::FeaturePolicyInfo FeaturePolicyInfo;
    typedef ::mozilla::net::FileChannelInfo FileChannelInfo;
    typedef ::mozilla::ipc::FileDescriptor FileDescriptor;
    typedef ::mozilla::dom::ForceMediaDocument ForceMediaDocument;
    typedef ::mozilla::net::GIOChannelConnectArgs GIOChannelConnectArgs;
    typedef ::mozilla::net::GIOChannelCreationArgs GIOChannelCreationArgs;
    typedef ::mozilla::net::GIOChannelOpenArgs GIOChannelOpenArgs;
    typedef ::mozilla::net::GeckoViewContentChannelArgs GeckoViewContentChannelArgs;
    typedef ::mozilla::net::GeckoViewContentChannelConnectArgs GeckoViewContentChannelConnectArgs;
    typedef ::mozilla::net::GeckoViewContentChannelOpenArgs GeckoViewContentChannelOpenArgs;
    typedef ::nsILoadInfo::HTTPSUpgradeTelemetryType HTTPSUpgradeTelemetryType;
    typedef ::mozilla::Telemetry::HistogramAccumulation HistogramAccumulation;
    typedef ::mozilla::net::Http3ConnectionStatsParams Http3ConnectionStatsParams;
    typedef ::mozilla::net::HttpActivity HttpActivity;
    typedef ::mozilla::net::HttpActivityArgs HttpActivityArgs;
    typedef ::mozilla::net::HttpChannelConnectArgs HttpChannelConnectArgs;
    typedef ::mozilla::net::HttpChannelCreationArgs HttpChannelCreationArgs;
    typedef ::mozilla::net::HttpChannelOpenArgs HttpChannelOpenArgs;
    typedef ::mozilla::net::HttpConnectionActivity HttpConnectionActivity;
    typedef ::mozilla::net::HttpConnectionInfoCloneArgs HttpConnectionInfoCloneArgs;
    typedef ::mozilla::net::HttpHandlerInitArgs HttpHandlerInitArgs;
    typedef ::mozilla::net::HttpRetParams HttpRetParams;
    typedef ::nsILoadInfo::IPAddressSpace IPAddressSpace;
    typedef ::mozilla::net::InterceptionInfoArg InterceptionInfoArg;
    typedef ::mozilla::Telemetry::KeyedHistogramAccumulation KeyedHistogramAccumulation;
    typedef ::mozilla::Telemetry::KeyedScalarAction KeyedScalarAction;
    typedef ::mozilla::net::LinkHeader LinkHeader;
    typedef ::mozilla::net::LoadInfoArgs LoadInfoArgs;
    typedef ::mozilla::dom::LoadingSessionHistoryInfo LoadingSessionHistoryInfo;
    template<class FooSide> using ManagedEndpoint = mozilla::ipc::ManagedEndpoint<FooSide>;
    typedef ::mozilla::dom::MemoryReport MemoryReport;
    typedef ::mozilla::dom::NativeThreadId NativeThreadId;
    typedef ::mozilla::net::NetAddr NetAddr;
    typedef ::mozilla::net::ObjectCreationArgs ObjectCreationArgs;
    typedef ::mozilla::OriginAttributes OriginAttributes;
    typedef ::mozilla::net::PAltServiceChild PAltServiceChild;
    typedef ::mozilla::net::PAltServiceParent PAltServiceParent;
    typedef ::mozilla::net::PAltSvcTransactionChild PAltSvcTransactionChild;
    typedef ::mozilla::net::PAltSvcTransactionParent PAltSvcTransactionParent;
    typedef ::mozilla::net::PDNSRequestChild PDNSRequestChild;
    typedef ::mozilla::net::PDNSRequestParent PDNSRequestParent;
    typedef ::mozilla::net::PHttpConnectionMgrChild PHttpConnectionMgrChild;
    typedef ::mozilla::net::PHttpConnectionMgrParent PHttpConnectionMgrParent;
    typedef ::mozilla::net::PHttpTransactionChild PHttpTransactionChild;
    typedef ::mozilla::net::PHttpTransactionParent PHttpTransactionParent;
    typedef ::mozilla::net::PInputChannelThrottleQueueChild PInputChannelThrottleQueueChild;
    typedef ::mozilla::net::PInputChannelThrottleQueueParent PInputChannelThrottleQueueParent;
    typedef ::mozilla::net::PNativeDNSResolverOverrideChild PNativeDNSResolverOverrideChild;
    typedef ::mozilla::net::PNativeDNSResolverOverrideParent PNativeDNSResolverOverrideParent;
    typedef ::mozilla::PProfilerChild PProfilerChild;
    typedef ::mozilla::PProfilerParent PProfilerParent;
    typedef ::mozilla::net::PProxyAutoConfigChild PProxyAutoConfigChild;
    typedef ::mozilla::net::PProxyAutoConfigParent PProxyAutoConfigParent;
    typedef ::mozilla::net::PProxyConfigLookupChild PProxyConfigLookupChild;
    typedef ::mozilla::net::PProxyConfigLookupParent PProxyConfigLookupParent;
    typedef ::PRTime PRTime;
    typedef ::mozilla::net::PSocketProcessBackgroundChild PSocketProcessBackgroundChild;
    typedef ::mozilla::net::PSocketProcessBackgroundParent PSocketProcessBackgroundParent;
    typedef ::mozilla::net::PSocketProcessBridgeChild PSocketProcessBridgeChild;
    typedef ::mozilla::net::PSocketProcessBridgeParent PSocketProcessBridgeParent;
    typedef ::mozilla::net::PTRRServiceChild PTRRServiceChild;
    typedef ::mozilla::net::PTRRServiceParent PTRRServiceParent;
    typedef ::mozilla::net::PWebrtcTCPSocketChild PWebrtcTCPSocketChild;
    typedef ::mozilla::net::PWebrtcTCPSocketParent PWebrtcTCPSocketParent;
    typedef ::mozilla::net::ParentLoadInfoForwarderArgs ParentLoadInfoForwarderArgs;
    typedef ::mozilla::dom::Pref Pref;
    typedef ::mozilla::dom::PrefValue PrefValue;
    typedef ::mozilla::net::PreferredAlternativeDataDeliveryTypeIPC PreferredAlternativeDataDeliveryTypeIPC;
    typedef ::mozilla::net::PreferredAlternativeDataTypeParams PreferredAlternativeDataTypeParams;
    typedef base::ProcessId ProcessId;
    typedef mozilla::ipc::ProtocolId ProtocolId;
    typedef ::mozilla::net::ProxyInfoCloneArgs ProxyInfoCloneArgs;
    typedef ::mozilla::RFPTargetSet RFPTargetSet;
    typedef ::mozilla::net::RedirectHistoryEntryInfo RedirectHistoryEntryInfo;
    typedef ::mozilla::net::RedirectToRealChannelArgs RedirectToRealChannelArgs;
    typedef ::mozilla::net::RemoteStreamInfo RemoteStreamInfo;
    typedef ::mozilla::net::RequestHeaderTuples RequestHeaderTuples;
    typedef ::mozilla::dom::RequestMode RequestMode;
    typedef ::mozilla::net::ResourceTimingStructArgs ResourceTimingStructArgs;
    typedef mozilla::ipc::ResponseRejectReason ResponseRejectReason;
    typedef ::mozilla::Telemetry::ScalarAction ScalarAction;
    typedef ::nsILoadInfo::SchemelessInputType SchemelessInputType;
    typedef ::mozilla::ipc::Shmem Shmem;
    typedef ::mozilla::net::SocketDataArgs SocketDataArgs;
    typedef ::mozilla::net::SocketInfo SocketInfo;
    typedef ::mozilla::net::SocketPorcessInitAttributes SocketPorcessInitAttributes;
    typedef ::mozilla::net::SpeculativeConnectionOverriderArgs SpeculativeConnectionOverriderArgs;
    typedef ::nsILoadInfo::StoragePermissionState StoragePermissionState;
    typedef ::mozilla::dom::TabId TabId;
    typedef ::mozilla::TimeStamp TimeStamp;
    typedef ::mozilla::net::TimingStructArgs TimingStructArgs;
    typedef ::mozilla::net::TransactionObserverResult TransactionObserverResult;
    template<class T> using UniquePtr = mozilla::UniquePtr<T>;
    typedef ::mozilla::dom::UserNavigationInvolvement UserNavigationInvolvement;
    typedef ::int16_t int16_t;
    typedef ::int32_t int32_t;
    typedef ::int64_t int64_t;
    typedef ::int8_t int8_t;
    typedef ::intptr_t intptr_t;
    typedef ::nsCString nsCString;
    typedef ::nsContentPolicyType nsContentPolicyType;
    typedef ::nsDOMNavigationTiming nsDOMNavigationTiming;
    typedef ::nsDocShellLoadState nsDocShellLoadState;
    typedef ::nsHttpAtom nsHttpAtom;
    typedef ::mozilla::net::nsHttpResponseHead nsHttpResponseHead;
    typedef ::nsID nsID;
    typedef ::nsIPropertyBag2 nsIPropertyBag2;
    typedef ::nsIURI nsIURI;
    typedef ::nsString nsString;
    typedef ::nsresult nsresult;
    typedef ::mozilla::null_t null_t;
    typedef ::uint16_t uint16_t;
    typedef ::uint32_t uint32_t;
    typedef ::uint64_t uint64_t;
    typedef ::uint8_t uint8_t;
    typedef ::uintptr_t uintptr_t;
    typedef ::mozilla::void_t void_t;

public:
    typedef std::function<void(const uint32_t&)> RequestMemoryReportResolver;
    typedef std::function<void(const void_t&)> ClearSessionCacheResolver;
    typedef std::function<void(const SocketDataArgs&)> GetSocketDataResolver;
    typedef std::function<void(mozilla::Span<DNSCacheEntries const>)> GetDNSCacheEntriesResolver;
    typedef std::function<void(mozilla::Span<HttpRetParams const>)> GetHttpConnectionDataResolver;
    typedef std::function<void(mozilla::Span<Http3ConnectionStatsParams const>)> GetHttp3ConnectionStatsDataResolver;
    typedef std::function<void(ByteBuf&&)> FlushFOGDataResolver;
    typedef std::function<void(const bool&)> TestTriggerMetricsResolver;

protected:
    virtual mozilla::ipc::IPCResult
    RecvPHttpTransactionConstructor(PHttpTransactionChild* actor);
    virtual mozilla::ipc::IPCResult
    RecvPHttpConnectionMgrConstructor(
            PHttpConnectionMgrChild* actor,
            const HttpHandlerInitArgs& aArgs);
    virtual mozilla::ipc::IPCResult
    RecvPInputChannelThrottleQueueConstructor(
            PInputChannelThrottleQueueChild* actor,
            const uint32_t& meanBytesPerSecond,
            const uint32_t& maxBytesPerSecond);
    virtual mozilla::ipc::IPCResult
    RecvPAltSvcTransactionConstructor(
            PAltSvcTransactionChild* actor,
            const HttpConnectionInfoCloneArgs& aConnInfo,
            const uint32_t& aCaps);
    virtual mozilla::ipc::IPCResult
    RecvPTRRServiceConstructor(
            PTRRServiceChild* actor,
            const bool& aCaptiveIsPassed,
            const bool& aParentalControlEnabled,
            nsTArray<nsCString>&& aDNSSuffixList);
    virtual mozilla::ipc::IPCResult
    RecvPNativeDNSResolverOverrideConstructor(PNativeDNSResolverOverrideChild* actor);
    virtual mozilla::ipc::IPCResult
    RecvPDNSRequestConstructor(
            PDNSRequestChild* actor,
            const nsACString& hostName,
            const nsACString& trrServer,
            const int32_t& port,
            const uint16_t& type,
            const OriginAttributes& originAttributes,
            const DNSFlags& flags);
    void
    ProcessingError(
            Result aCode,
            const char* aReason) override;
    bool
    ShouldContinueFromReplyTimeout() override;

public:
    typedef mozilla::ipc::IProtocol IProtocol;
    typedef IPC::Message Message;
    typedef base::ProcessHandle ProcessHandle;
    typedef mozilla::ipc::MessageChannel MessageChannel;

public:
    MOZ_IMPLICIT PSocketProcessChild();

    virtual ~PSocketProcessChild();

protected:
    void
    ActorAlloc() final;
    void
    ActorDealloc() final;
public:
    ::base::ProcessId
    OtherPid() const;
    ::GeckoChildID
    OtherChildID() const;
    ::mozilla::ipc::EndpointProcInfo
    OtherEndpointProcInfo() const;

    void
    ManagedPDNSRequestChild(nsTArray<PDNSRequestChild*>& aArr) const;
    const ManagedContainer<PDNSRequestChild>&
    ManagedPDNSRequestChild() const;

    void
    ManagedPWebrtcTCPSocketChild(nsTArray<PWebrtcTCPSocketChild*>& aArr) const;
    const ManagedContainer<PWebrtcTCPSocketChild>&
    ManagedPWebrtcTCPSocketChild() const;

    void
    ManagedPHttpTransactionChild(nsTArray<PHttpTransactionChild*>& aArr) const;
    const ManagedContainer<PHttpTransactionChild>&
    ManagedPHttpTransactionChild() const;

    void
    ManagedPHttpConnectionMgrChild(nsTArray<PHttpConnectionMgrChild*>& aArr) const;
    const ManagedContainer<PHttpConnectionMgrChild>&
    ManagedPHttpConnectionMgrChild() const;

    void
    ManagedPInputChannelThrottleQueueChild(nsTArray<PInputChannelThrottleQueueChild*>& aArr) const;
    const ManagedContainer<PInputChannelThrottleQueueChild>&
    ManagedPInputChannelThrottleQueueChild() const;

    void
    ManagedPAltServiceChild(nsTArray<PAltServiceChild*>& aArr) const;
    const ManagedContainer<PAltServiceChild>&
    ManagedPAltServiceChild() const;

    void
    ManagedPAltSvcTransactionChild(nsTArray<PAltSvcTransactionChild*>& aArr) const;
    const ManagedContainer<PAltSvcTransactionChild>&
    ManagedPAltSvcTransactionChild() const;

    void
    ManagedPTRRServiceChild(nsTArray<PTRRServiceChild*>& aArr) const;
    const ManagedContainer<PTRRServiceChild>&
    ManagedPTRRServiceChild() const;

    void
    ManagedPProxyConfigLookupChild(nsTArray<PProxyConfigLookupChild*>& aArr) const;
    const ManagedContainer<PProxyConfigLookupChild>&
    ManagedPProxyConfigLookupChild() const;

    void
    ManagedPNativeDNSResolverOverrideChild(nsTArray<PNativeDNSResolverOverrideChild*>& aArr) const;
    const ManagedContainer<PNativeDNSResolverOverrideChild>&
    ManagedPNativeDNSResolverOverrideChild() const;

    mozilla::Span<mozilla::ipc::ProtocolId const>
    ManagedProtocolIds() const final;

    UntypedManagedContainer*
    GetManagedActors(mozilla::ipc::ProtocolId aProtocol) final;

    void
    RejectPendingResponses(ResponseRejectReason aReason) final;

    ManagedEndpoint<PDNSRequestParent>
    OpenPDNSRequestEndpoint(PDNSRequestChild* aActor);
    bool
    BindPDNSRequestEndpoint(
            ManagedEndpoint<PDNSRequestChild> aEndpoint,
            PDNSRequestChild* aActor);

    ManagedEndpoint<PWebrtcTCPSocketParent>
    OpenPWebrtcTCPSocketEndpoint(PWebrtcTCPSocketChild* aActor);
    bool
    BindPWebrtcTCPSocketEndpoint(
            ManagedEndpoint<PWebrtcTCPSocketChild> aEndpoint,
            PWebrtcTCPSocketChild* aActor);

    ManagedEndpoint<PHttpTransactionParent>
    OpenPHttpTransactionEndpoint(PHttpTransactionChild* aActor);
    bool
    BindPHttpTransactionEndpoint(
            ManagedEndpoint<PHttpTransactionChild> aEndpoint,
            PHttpTransactionChild* aActor);

    ManagedEndpoint<PHttpConnectionMgrParent>
    OpenPHttpConnectionMgrEndpoint(PHttpConnectionMgrChild* aActor);
    bool
    BindPHttpConnectionMgrEndpoint(
            ManagedEndpoint<PHttpConnectionMgrChild> aEndpoint,
            PHttpConnectionMgrChild* aActor);

    ManagedEndpoint<PInputChannelThrottleQueueParent>
    OpenPInputChannelThrottleQueueEndpoint(PInputChannelThrottleQueueChild* aActor);
    bool
    BindPInputChannelThrottleQueueEndpoint(
            ManagedEndpoint<PInputChannelThrottleQueueChild> aEndpoint,
            PInputChannelThrottleQueueChild* aActor);

    ManagedEndpoint<PAltServiceParent>
    OpenPAltServiceEndpoint(PAltServiceChild* aActor);
    bool
    BindPAltServiceEndpoint(
            ManagedEndpoint<PAltServiceChild> aEndpoint,
            PAltServiceChild* aActor);

    ManagedEndpoint<PAltSvcTransactionParent>
    OpenPAltSvcTransactionEndpoint(PAltSvcTransactionChild* aActor);
    bool
    BindPAltSvcTransactionEndpoint(
            ManagedEndpoint<PAltSvcTransactionChild> aEndpoint,
            PAltSvcTransactionChild* aActor);

    ManagedEndpoint<PTRRServiceParent>
    OpenPTRRServiceEndpoint(PTRRServiceChild* aActor);
    bool
    BindPTRRServiceEndpoint(
            ManagedEndpoint<PTRRServiceChild> aEndpoint,
            PTRRServiceChild* aActor);

    ManagedEndpoint<PProxyConfigLookupParent>
    OpenPProxyConfigLookupEndpoint(PProxyConfigLookupChild* aActor);
    bool
    BindPProxyConfigLookupEndpoint(
            ManagedEndpoint<PProxyConfigLookupChild> aEndpoint,
            PProxyConfigLookupChild* aActor);

    ManagedEndpoint<PNativeDNSResolverOverrideParent>
    OpenPNativeDNSResolverOverrideEndpoint(PNativeDNSResolverOverrideChild* aActor);
    bool
    BindPNativeDNSResolverOverrideEndpoint(
            ManagedEndpoint<PNativeDNSResolverOverrideChild> aEndpoint,
            PNativeDNSResolverOverrideChild* aActor);

    bool
    SendInitCrashReporter(const CrashReporterInitArgs& aInitArgs);

    bool
    SendAddMemoryReport(const MemoryReport& aReport);

    bool
    SendAccumulateChildHistograms(mozilla::Span<HistogramAccumulation const> accumulations);

    bool
    SendAccumulateChildKeyedHistograms(mozilla::Span<KeyedHistogramAccumulation const> accumulations);

    bool
    SendUpdateChildScalars(mozilla::Span<ScalarAction const> actions);

    bool
    SendUpdateChildKeyedScalars(mozilla::Span<KeyedScalarAction const> actions);

    bool
    SendRecordChildEvents(mozilla::Span<ChildEventData const> events);

    bool
    SendRecordDiscardedData(const DiscardedData& data);

    PWebrtcTCPSocketChild*
    SendPWebrtcTCPSocketConstructor(const mozilla::Maybe<TabId>& tabId);

    PWebrtcTCPSocketChild*
    SendPWebrtcTCPSocketConstructor(
            PWebrtcTCPSocketChild* actor,
            const mozilla::Maybe<TabId>& tabId);

    bool
    SendObserveHttpActivity(
            const HttpActivityArgs& aActivityArgs,
            const uint32_t& aActivityType,
            const uint32_t& aActivitySubtype,
            const PRTime& aTimestamp,
            const uint64_t& aExtraSizeData,
            const nsACString& aExtraStringData);

    bool
    SendInitSocketBackground(Endpoint<::mozilla::net::PSocketProcessBackgroundParent>&& aEndpoint);

    PAltServiceChild*
    SendPAltServiceConstructor(PAltServiceChild* actor);

    PProxyConfigLookupChild*
    SendPProxyConfigLookupConstructor(
            PProxyConfigLookupChild* actor,
            nsIURI* aUri,
            const uint32_t& aFlags);

    bool
    SendExcludeHttp2OrHttp3(const HttpConnectionInfoCloneArgs& aArgs);

    bool
    SendOnConsoleMessage(const nsAString& aMessage);

    bool
    SendFOGData(ByteBuf&& buf);

    bool
    SendGeckoTraceExport(ByteBuf&& aBuf);

    PDNSRequestChild*
    SendPDNSRequestConstructor(
            PDNSRequestChild* actor,
            const nsACString& hostName,
            const nsACString& trrServer,
            const int32_t& port,
            const uint16_t& type,
            const OriginAttributes& originAttributes,
            const DNSFlags& flags);

    void
    DeallocManagee(
            mozilla::ipc::ProtocolId aProtocolId,
            IProtocol* aListener) override;

    Result
    OnMessageReceived(const Message& msg__) override;

    Result
    OnMessageReceived(
            const Message& msg__,
            UniquePtr<Message>& reply__) override;

private:
    mozilla::ipc::IPDLAsyncReturnsCallbacks mAsyncCallbacks;

    ManagedContainer<PDNSRequestChild> mManagedPDNSRequestChild;
    ManagedContainer<PWebrtcTCPSocketChild> mManagedPWebrtcTCPSocketChild;
    ManagedContainer<PHttpTransactionChild> mManagedPHttpTransactionChild;
    ManagedContainer<PHttpConnectionMgrChild> mManagedPHttpConnectionMgrChild;
    ManagedContainer<PInputChannelThrottleQueueChild> mManagedPInputChannelThrottleQueueChild;
    ManagedContainer<PAltServiceChild> mManagedPAltServiceChild;
    ManagedContainer<PAltSvcTransactionChild> mManagedPAltSvcTransactionChild;
    ManagedContainer<PTRRServiceChild> mManagedPTRRServiceChild;
    ManagedContainer<PProxyConfigLookupChild> mManagedPProxyConfigLookupChild;
    ManagedContainer<PNativeDNSResolverOverrideChild> mManagedPNativeDNSResolverOverrideChild;
};


} // namespace net
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::net::PSocketProcessChild*>
{
    typedef ::mozilla::net::PSocketProcessChild* paramType;
    static void
    Write(
            IPC::MessageWriter* aWriter,
            const paramType& aVar);
    static IPC::ReadResult<paramType>
    Read(IPC::MessageReader* aReader);
};
} // namespace IPC

#endif // ifndef PSocketProcessChild_h
