//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PNeckoParent_h
#define PNeckoParent_h
#include "mozilla/net/PNecko.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 "mozilla/dom/BrowsingContext.h"
#include "mozilla/dom/FeaturePolicy.h"
#include "mozilla/dom/LoadURIOptionsBinding.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/PHttpChannelParams.h"
#include "nsContentUtils.h"
#include "nsICacheInfoChannel.h"
#include "nsIContentPolicy.h"
#include "nsIDNSService.h"
#include "nsILoadInfo.h"
#include "nsNetUtil.h"
#include "nsRFPService.h"
namespace mozilla {
namespace dom {
class PContentParent;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class PContentChild;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace net {
class PHttpChannelParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PHttpChannelChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PCacheEntryWriteHandleParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PCacheEntryWriteHandleChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PCookieServiceParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PCookieServiceChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace dom {
class PBrowserParent;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class PBrowserChild;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace net {
class PWebSocketParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PWebSocketChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PWebSocketEventListenerParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PWebSocketEventListenerChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PTCPSocketParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PTCPSocketChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PTCPServerSocketParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PTCPServerSocketChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PUDPSocketParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PUDPSocketChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PDNSRequestParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PDNSRequestChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PTransportProviderParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PTransportProviderChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PStunAddrsRequestParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PStunAddrsRequestChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PWebrtcTCPSocketParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PWebrtcTCPSocketChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PSocketProcessBridgeParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PSocketProcessBridgeChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PDocumentChannelParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PDocumentChannelChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PAltDataOutputStreamParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PAltDataOutputStreamChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace dom {
class PContentParent;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace net {
class PAltDataOutputStreamParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PCacheEntryWriteHandleParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PCookieServiceParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PDNSRequestParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PDocumentChannelParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PHttpChannelParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PStunAddrsRequestParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PTCPServerSocketParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PTCPSocketParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PTransportProviderParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PUDPSocketParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PWebSocketParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PWebSocketEventListenerParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PWebrtcTCPSocketParent;
} // namespace net
} // 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 IPC {
class SerializedLoadContext;
} // namespace IPC
class nsIInputStream;
class nsIURI;
class nsIPrincipal;
namespace mozilla {
namespace net {
class PNeckoParent :
public mozilla::ipc::IRefCountedProtocol
{
private:
friend class ::mozilla::dom::PContentParent;
friend class ::mozilla::net::PAltDataOutputStreamParent;
friend class ::mozilla::net::PCacheEntryWriteHandleParent;
friend class ::mozilla::net::PCookieServiceParent;
friend class ::mozilla::net::PDNSRequestParent;
friend class ::mozilla::net::PDocumentChannelParent;
friend class ::mozilla::net::PHttpChannelParent;
friend class ::mozilla::net::PStunAddrsRequestParent;
friend class ::mozilla::net::PTCPServerSocketParent;
friend class ::mozilla::net::PTCPSocketParent;
friend class ::mozilla::net::PTransportProviderParent;
friend class ::mozilla::net::PUDPSocketParent;
friend class ::mozilla::net::PWebSocketParent;
friend class ::mozilla::net::PWebSocketEventListenerParent;
friend class ::mozilla::net::PWebrtcTCPSocketParent;
public:
static constexpr ::mozilla::ipc::ProtocolId kProtocolId = PNeckoMsgStart;
protected:
typedef mozilla::ipc::ActorId ActorId;
typedef ::mozilla::ipc::ByteBuf ByteBuf;
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 ::nsILoadInfo::CrossOriginEmbedderPolicy CrossOriginEmbedderPolicy;
typedef ::nsIDNSService::DNSFlags DNSFlags;
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 ::mozilla::net::HTMLDNSPrefetchArgs HTMLDNSPrefetchArgs;
typedef ::nsILoadInfo::HTTPSUpgradeTelemetryType HTTPSUpgradeTelemetryType;
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 ::nsILoadInfo::IPAddressSpace IPAddressSpace;
typedef ::mozilla::ipc::IPCStream IPCStream;
typedef ::mozilla::net::InterceptionInfoArg InterceptionInfoArg;
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::MaybeDiscardedBrowsingContext MaybeDiscardedBrowsingContext;
typedef ::mozilla::net::ObjectCreationArgs ObjectCreationArgs;
typedef ::mozilla::OriginAttributes OriginAttributes;
typedef ::mozilla::net::PAltDataOutputStreamChild PAltDataOutputStreamChild;
typedef ::mozilla::net::PAltDataOutputStreamParent PAltDataOutputStreamParent;
typedef ::mozilla::dom::PBrowserChild PBrowserChild;
typedef ::mozilla::dom::PBrowserParent PBrowserParent;
typedef ::mozilla::net::PCacheEntryWriteHandleChild PCacheEntryWriteHandleChild;
typedef ::mozilla::net::PCacheEntryWriteHandleParent PCacheEntryWriteHandleParent;
typedef ::mozilla::dom::PContentChild PContentChild;
typedef ::mozilla::dom::PContentParent PContentParent;
typedef ::mozilla::net::PCookieServiceChild PCookieServiceChild;
typedef ::mozilla::net::PCookieServiceParent PCookieServiceParent;
typedef ::mozilla::net::PDNSRequestChild PDNSRequestChild;
typedef ::mozilla::net::PDNSRequestParent PDNSRequestParent;
typedef ::mozilla::net::PDocumentChannelChild PDocumentChannelChild;
typedef ::mozilla::net::PDocumentChannelParent PDocumentChannelParent;
typedef ::mozilla::net::PHttpChannelChild PHttpChannelChild;
typedef ::mozilla::net::PHttpChannelParent PHttpChannelParent;
typedef ::mozilla::net::PSocketProcessBridgeChild PSocketProcessBridgeChild;
typedef ::mozilla::net::PSocketProcessBridgeParent PSocketProcessBridgeParent;
typedef ::mozilla::net::PStunAddrsRequestChild PStunAddrsRequestChild;
typedef ::mozilla::net::PStunAddrsRequestParent PStunAddrsRequestParent;
typedef ::mozilla::net::PTCPServerSocketChild PTCPServerSocketChild;
typedef ::mozilla::net::PTCPServerSocketParent PTCPServerSocketParent;
typedef ::mozilla::net::PTCPSocketChild PTCPSocketChild;
typedef ::mozilla::net::PTCPSocketParent PTCPSocketParent;
typedef ::mozilla::net::PTransportProviderChild PTransportProviderChild;
typedef ::mozilla::net::PTransportProviderParent PTransportProviderParent;
typedef ::mozilla::net::PUDPSocketChild PUDPSocketChild;
typedef ::mozilla::net::PUDPSocketParent PUDPSocketParent;
typedef ::mozilla::net::PWebSocketChild PWebSocketChild;
typedef ::mozilla::net::PWebSocketEventListenerChild PWebSocketEventListenerChild;
typedef ::mozilla::net::PWebSocketEventListenerParent PWebSocketEventListenerParent;
typedef ::mozilla::net::PWebSocketParent PWebSocketParent;
typedef ::mozilla::net::PWebrtcTCPSocketChild PWebrtcTCPSocketChild;
typedef ::mozilla::net::PWebrtcTCPSocketParent PWebrtcTCPSocketParent;
typedef ::mozilla::net::ParentLoadInfoForwarderArgs ParentLoadInfoForwarderArgs;
typedef ::mozilla::net::PreferredAlternativeDataDeliveryTypeIPC PreferredAlternativeDataDeliveryTypeIPC;
typedef ::mozilla::net::PreferredAlternativeDataTypeParams PreferredAlternativeDataTypeParams;
typedef base::ProcessId ProcessId;
typedef ::PropertiesFile PropertiesFile;
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 ::nsILoadInfo::SchemelessInputType SchemelessInputType;
typedef ::IPC::SerializedLoadContext SerializedLoadContext;
typedef ::mozilla::ipc::Shmem Shmem;
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 ::nsIInputStream nsIInputStream;
typedef ::nsIPrincipal nsIPrincipal;
typedef ::nsIPropertyBag2 nsIPropertyBag2;
typedef ::nsIURI nsIURI;
typedef ::nsString nsString;
typedef ::nsresult nsresult;
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;
public:
typedef std::function<void(nsIInputStream*)> GetExtensionStreamResolver;
typedef std::function<void(const FileDescriptor&)> GetExtensionFDResolver;
typedef std::function<void(Endpoint<::mozilla::net::PSocketProcessBridgeChild>&&)> InitSocketProcessBridgeResolver;
typedef std::function<void(const bool&)> EnsureHSTSDataResolver;
typedef std::function<void(const mozilla::Maybe<RemoteStreamInfo>&)> GetPageThumbStreamResolver;
typedef std::function<void(const mozilla::Maybe<RemoteStreamInfo>&)> GetPageIconStreamResolver;
typedef std::function<void(const mozilla::Maybe<RemoteStreamInfo>&)> GetMozNewTabWallpaperStreamResolver;
protected:
virtual mozilla::ipc::IPCResult
Recv__delete__();
virtual mozilla::ipc::IPCResult
RecvPCookieServiceConstructor(PCookieServiceParent* actor);
virtual mozilla::ipc::IPCResult
RecvPHttpChannelConstructor(
PHttpChannelParent* actor,
PBrowserParent* browser,
const SerializedLoadContext& loadContext,
const HttpChannelCreationArgs& args);
virtual mozilla::ipc::IPCResult
RecvPWebSocketConstructor(
PWebSocketParent* actor,
PBrowserParent* browser,
const SerializedLoadContext& loadContext,
const uint32_t& aSerialID);
virtual mozilla::ipc::IPCResult
RecvPTCPServerSocketConstructor(
PTCPServerSocketParent* actor,
const uint16_t& localPort,
const uint16_t& backlog,
const bool& useArrayBuffers);
virtual mozilla::ipc::IPCResult
RecvPUDPSocketConstructor(
PUDPSocketParent* actor,
nsIPrincipal* principal,
const nsACString& filter);
virtual mozilla::ipc::IPCResult
RecvPDNSRequestConstructor(
PDNSRequestParent* actor,
const nsACString& hostName,
const nsACString& trrServer,
const int32_t& port,
const uint16_t& type,
const OriginAttributes& originAttributes,
const DNSFlags& flags);
virtual mozilla::ipc::IPCResult
RecvPDocumentChannelConstructor(
PDocumentChannelParent* actor,
const MaybeDiscardedBrowsingContext& browsingContext,
const DocumentChannelCreationArgs& args);
virtual mozilla::ipc::IPCResult
RecvPWebSocketEventListenerConstructor(
PWebSocketEventListenerParent* actor,
const uint64_t& aInnerWindowID);
virtual mozilla::ipc::IPCResult
RecvPCacheEntryWriteHandleConstructor(
PCacheEntryWriteHandleParent* actor,
mozilla::NotNull<PHttpChannelParent*> channel);
virtual mozilla::ipc::IPCResult
RecvPAltDataOutputStreamConstructor(
PAltDataOutputStreamParent* actor,
const nsACString& type,
const int64_t& predictedSize,
const mozilla::Maybe<mozilla::NotNull<PHttpChannelParent*>>& channel,
const mozilla::Maybe<mozilla::NotNull<PCacheEntryWriteHandleParent*>>& handle);
virtual mozilla::ipc::IPCResult
RecvPStunAddrsRequestConstructor(PStunAddrsRequestParent* actor);
virtual mozilla::ipc::IPCResult
RecvPWebrtcTCPSocketConstructor(
PWebrtcTCPSocketParent* actor,
const mozilla::Maybe<TabId>& tabId);
virtual mozilla::ipc::IPCResult
RecvPTCPSocketConstructor(
PTCPSocketParent* actor,
const nsAString& host,
const uint16_t& port);
public:
typedef mozilla::ipc::IProtocol IProtocol;
typedef IPC::Message Message;
typedef base::ProcessHandle ProcessHandle;
typedef mozilla::ipc::MessageChannel MessageChannel;
public:
MOZ_IMPLICIT PNeckoParent();
virtual ~PNeckoParent();
protected:
void
ActorAlloc() final;
void
ActorDealloc() final;
public:
::base::ProcessId
OtherPid() const;
::GeckoChildID
OtherChildID() const;
::mozilla::ipc::EndpointProcInfo
OtherEndpointProcInfo() const;
PContentParent*
Manager() const;
void
ManagedPHttpChannelParent(nsTArray<PHttpChannelParent*>& aArr) const;
const ManagedContainer<PHttpChannelParent>&
ManagedPHttpChannelParent() const;
void
ManagedPCacheEntryWriteHandleParent(nsTArray<PCacheEntryWriteHandleParent*>& aArr) const;
const ManagedContainer<PCacheEntryWriteHandleParent>&
ManagedPCacheEntryWriteHandleParent() const;
void
ManagedPCookieServiceParent(nsTArray<PCookieServiceParent*>& aArr) const;
const ManagedContainer<PCookieServiceParent>&
ManagedPCookieServiceParent() const;
void
ManagedPWebSocketParent(nsTArray<PWebSocketParent*>& aArr) const;
const ManagedContainer<PWebSocketParent>&
ManagedPWebSocketParent() const;
void
ManagedPWebSocketEventListenerParent(nsTArray<PWebSocketEventListenerParent*>& aArr) const;
const ManagedContainer<PWebSocketEventListenerParent>&
ManagedPWebSocketEventListenerParent() const;
void
ManagedPTCPSocketParent(nsTArray<PTCPSocketParent*>& aArr) const;
const ManagedContainer<PTCPSocketParent>&
ManagedPTCPSocketParent() const;
void
ManagedPTCPServerSocketParent(nsTArray<PTCPServerSocketParent*>& aArr) const;
const ManagedContainer<PTCPServerSocketParent>&
ManagedPTCPServerSocketParent() const;
void
ManagedPUDPSocketParent(nsTArray<PUDPSocketParent*>& aArr) const;
const ManagedContainer<PUDPSocketParent>&
ManagedPUDPSocketParent() const;
void
ManagedPDNSRequestParent(nsTArray<PDNSRequestParent*>& aArr) const;
const ManagedContainer<PDNSRequestParent>&
ManagedPDNSRequestParent() const;
void
ManagedPTransportProviderParent(nsTArray<PTransportProviderParent*>& aArr) const;
const ManagedContainer<PTransportProviderParent>&
ManagedPTransportProviderParent() const;
void
ManagedPAltDataOutputStreamParent(nsTArray<PAltDataOutputStreamParent*>& aArr) const;
const ManagedContainer<PAltDataOutputStreamParent>&
ManagedPAltDataOutputStreamParent() const;
void
ManagedPStunAddrsRequestParent(nsTArray<PStunAddrsRequestParent*>& aArr) const;
const ManagedContainer<PStunAddrsRequestParent>&
ManagedPStunAddrsRequestParent() const;
void
ManagedPWebrtcTCPSocketParent(nsTArray<PWebrtcTCPSocketParent*>& aArr) const;
const ManagedContainer<PWebrtcTCPSocketParent>&
ManagedPWebrtcTCPSocketParent() const;
void
ManagedPDocumentChannelParent(nsTArray<PDocumentChannelParent*>& aArr) const;
const ManagedContainer<PDocumentChannelParent>&
ManagedPDocumentChannelParent() const;
mozilla::Span<mozilla::ipc::ProtocolId const>
ManagedProtocolIds() const final;
UntypedManagedContainer*
GetManagedActors(mozilla::ipc::ProtocolId aProtocol) final;
void
RejectPendingResponses(ResponseRejectReason aReason) final;
ManagedEndpoint<PHttpChannelChild>
OpenPHttpChannelEndpoint(PHttpChannelParent* aActor);
bool
BindPHttpChannelEndpoint(
ManagedEndpoint<PHttpChannelParent> aEndpoint,
PHttpChannelParent* aActor);
ManagedEndpoint<PCacheEntryWriteHandleChild>
OpenPCacheEntryWriteHandleEndpoint(PCacheEntryWriteHandleParent* aActor);
bool
BindPCacheEntryWriteHandleEndpoint(
ManagedEndpoint<PCacheEntryWriteHandleParent> aEndpoint,
PCacheEntryWriteHandleParent* aActor);
ManagedEndpoint<PCookieServiceChild>
OpenPCookieServiceEndpoint(PCookieServiceParent* aActor);
bool
BindPCookieServiceEndpoint(
ManagedEndpoint<PCookieServiceParent> aEndpoint,
PCookieServiceParent* aActor);
ManagedEndpoint<PWebSocketChild>
OpenPWebSocketEndpoint(PWebSocketParent* aActor);
bool
BindPWebSocketEndpoint(
ManagedEndpoint<PWebSocketParent> aEndpoint,
PWebSocketParent* aActor);
ManagedEndpoint<PWebSocketEventListenerChild>
OpenPWebSocketEventListenerEndpoint(PWebSocketEventListenerParent* aActor);
bool
BindPWebSocketEventListenerEndpoint(
ManagedEndpoint<PWebSocketEventListenerParent> aEndpoint,
PWebSocketEventListenerParent* aActor);
ManagedEndpoint<PTCPSocketChild>
OpenPTCPSocketEndpoint(PTCPSocketParent* aActor);
bool
BindPTCPSocketEndpoint(
ManagedEndpoint<PTCPSocketParent> aEndpoint,
PTCPSocketParent* aActor);
ManagedEndpoint<PTCPServerSocketChild>
OpenPTCPServerSocketEndpoint(PTCPServerSocketParent* aActor);
bool
BindPTCPServerSocketEndpoint(
ManagedEndpoint<PTCPServerSocketParent> aEndpoint,
PTCPServerSocketParent* aActor);
ManagedEndpoint<PUDPSocketChild>
OpenPUDPSocketEndpoint(PUDPSocketParent* aActor);
bool
BindPUDPSocketEndpoint(
ManagedEndpoint<PUDPSocketParent> aEndpoint,
PUDPSocketParent* aActor);
ManagedEndpoint<PDNSRequestChild>
OpenPDNSRequestEndpoint(PDNSRequestParent* aActor);
bool
BindPDNSRequestEndpoint(
ManagedEndpoint<PDNSRequestParent> aEndpoint,
PDNSRequestParent* aActor);
ManagedEndpoint<PTransportProviderChild>
OpenPTransportProviderEndpoint(PTransportProviderParent* aActor);
bool
BindPTransportProviderEndpoint(
ManagedEndpoint<PTransportProviderParent> aEndpoint,
PTransportProviderParent* aActor);
ManagedEndpoint<PAltDataOutputStreamChild>
OpenPAltDataOutputStreamEndpoint(PAltDataOutputStreamParent* aActor);
bool
BindPAltDataOutputStreamEndpoint(
ManagedEndpoint<PAltDataOutputStreamParent> aEndpoint,
PAltDataOutputStreamParent* aActor);
ManagedEndpoint<PStunAddrsRequestChild>
OpenPStunAddrsRequestEndpoint(PStunAddrsRequestParent* aActor);
bool
BindPStunAddrsRequestEndpoint(
ManagedEndpoint<PStunAddrsRequestParent> aEndpoint,
PStunAddrsRequestParent* aActor);
ManagedEndpoint<PWebrtcTCPSocketChild>
OpenPWebrtcTCPSocketEndpoint(PWebrtcTCPSocketParent* aActor);
bool
BindPWebrtcTCPSocketEndpoint(
ManagedEndpoint<PWebrtcTCPSocketParent> aEndpoint,
PWebrtcTCPSocketParent* aActor);
ManagedEndpoint<PDocumentChannelChild>
OpenPDocumentChannelEndpoint(PDocumentChannelParent* aActor);
bool
BindPDocumentChannelEndpoint(
ManagedEndpoint<PDocumentChannelParent> aEndpoint,
PDocumentChannelParent* aActor);
[[nodiscard]] bool
SendSpeculativeConnectRequest();
[[nodiscard]] bool
SendNetworkChangeNotification(const nsACString& type);
[[nodiscard]] PTransportProviderParent*
SendPTransportProviderConstructor();
[[nodiscard]] PTransportProviderParent*
SendPTransportProviderConstructor(PTransportProviderParent* actor);
[[nodiscard]] bool
SendSetTRRDomain(const nsACString& domain);
[[nodiscard]] PTCPSocketParent*
SendPTCPSocketConstructor(
const nsAString& host,
const uint16_t& port);
[[nodiscard]] PTCPSocketParent*
SendPTCPSocketConstructor(
PTCPSocketParent* actor,
const nsAString& host,
const uint16_t& port);
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;
bool mAwaitingManagedEndpointBind = false;
ManagedContainer<PHttpChannelParent> mManagedPHttpChannelParent;
ManagedContainer<PCacheEntryWriteHandleParent> mManagedPCacheEntryWriteHandleParent;
ManagedContainer<PCookieServiceParent> mManagedPCookieServiceParent;
ManagedContainer<PWebSocketParent> mManagedPWebSocketParent;
ManagedContainer<PWebSocketEventListenerParent> mManagedPWebSocketEventListenerParent;
ManagedContainer<PTCPSocketParent> mManagedPTCPSocketParent;
ManagedContainer<PTCPServerSocketParent> mManagedPTCPServerSocketParent;
ManagedContainer<PUDPSocketParent> mManagedPUDPSocketParent;
ManagedContainer<PDNSRequestParent> mManagedPDNSRequestParent;
ManagedContainer<PTransportProviderParent> mManagedPTransportProviderParent;
ManagedContainer<PAltDataOutputStreamParent> mManagedPAltDataOutputStreamParent;
ManagedContainer<PStunAddrsRequestParent> mManagedPStunAddrsRequestParent;
ManagedContainer<PWebrtcTCPSocketParent> mManagedPWebrtcTCPSocketParent;
ManagedContainer<PDocumentChannelParent> mManagedPDocumentChannelParent;
};
} // namespace net
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::net::PNeckoParent*>
{
typedef ::mozilla::net::PNeckoParent* paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
#endif // ifndef PNeckoParent_h