Generated file

Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PNeckoChild_h
#define PNeckoChild_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 PContentChild;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class PContentParent;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace net {
class PHttpChannelChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PHttpChannelParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PCacheEntryWriteHandleChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PCacheEntryWriteHandleParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PCookieServiceChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PCookieServiceParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace dom {
class PBrowserChild;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class PBrowserParent;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace net {
class PWebSocketChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PWebSocketParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PWebSocketEventListenerChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PWebSocketEventListenerParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PTCPSocketChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PTCPSocketParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PTCPServerSocketChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PTCPServerSocketParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PUDPSocketChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PUDPSocketParent;
} // namespace net
} // namespace mozilla
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 PTransportProviderChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PTransportProviderParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PStunAddrsRequestChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PStunAddrsRequestParent;
} // namespace net
} // 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 PSocketProcessBridgeChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PSocketProcessBridgeParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PDocumentChannelChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PDocumentChannelParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PAltDataOutputStreamChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PAltDataOutputStreamParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace dom {
class PContentChild;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace net {
class PAltDataOutputStreamChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PCacheEntryWriteHandleChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PCookieServiceChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PDNSRequestChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PDocumentChannelChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PHttpChannelChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PStunAddrsRequestChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PTCPServerSocketChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PTCPSocketChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PTransportProviderChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PUDPSocketChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PWebSocketChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PWebSocketEventListenerChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PWebrtcTCPSocketChild;
} // 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 PNeckoChild :
public mozilla::ipc::IRefCountedProtocol
{
private:
friend class ::mozilla::dom::PContentChild;
friend class ::mozilla::net::PAltDataOutputStreamChild;
friend class ::mozilla::net::PCacheEntryWriteHandleChild;
friend class ::mozilla::net::PCookieServiceChild;
friend class ::mozilla::net::PDNSRequestChild;
friend class ::mozilla::net::PDocumentChannelChild;
friend class ::mozilla::net::PHttpChannelChild;
friend class ::mozilla::net::PStunAddrsRequestChild;
friend class ::mozilla::net::PTCPServerSocketChild;
friend class ::mozilla::net::PTCPSocketChild;
friend class ::mozilla::net::PTransportProviderChild;
friend class ::mozilla::net::PUDPSocketChild;
friend class ::mozilla::net::PWebSocketChild;
friend class ::mozilla::net::PWebSocketEventListenerChild;
friend class ::mozilla::net::PWebrtcTCPSocketChild;
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 MozPromise<RefPtr<nsIInputStream>, ResponseRejectReason, true> GetExtensionStreamPromise;
typedef MozPromise<FileDescriptor, ResponseRejectReason, true> GetExtensionFDPromise;
typedef MozPromise<Endpoint<::mozilla::net::PSocketProcessBridgeChild>, ResponseRejectReason, true> InitSocketProcessBridgePromise;
typedef MozPromise<bool, ResponseRejectReason, true> EnsureHSTSDataPromise;
typedef MozPromise<mozilla::Maybe<RemoteStreamInfo>, ResponseRejectReason, true> GetPageThumbStreamPromise;
typedef MozPromise<mozilla::Maybe<RemoteStreamInfo>, ResponseRejectReason, true> GetPageIconStreamPromise;
typedef MozPromise<mozilla::Maybe<RemoteStreamInfo>, ResponseRejectReason, true> GetMozNewTabWallpaperStreamPromise;
protected:
virtual mozilla::ipc::IPCResult
RecvPTransportProviderConstructor(PTransportProviderChild* actor);
virtual mozilla::ipc::IPCResult
RecvPTCPSocketConstructor(
PTCPSocketChild* 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 PNeckoChild();
virtual ~PNeckoChild();
protected:
void
ActorAlloc() final;
void
ActorDealloc() final;
public:
::base::ProcessId
OtherPid() const;
::GeckoChildID
OtherChildID() const;
::mozilla::ipc::EndpointProcInfo
OtherEndpointProcInfo() const;
PContentChild*
Manager() const;
void
ManagedPHttpChannelChild(nsTArray<PHttpChannelChild*>& aArr) const;
const ManagedContainer<PHttpChannelChild>&
ManagedPHttpChannelChild() const;
void
ManagedPCacheEntryWriteHandleChild(nsTArray<PCacheEntryWriteHandleChild*>& aArr) const;
const ManagedContainer<PCacheEntryWriteHandleChild>&
ManagedPCacheEntryWriteHandleChild() const;
void
ManagedPCookieServiceChild(nsTArray<PCookieServiceChild*>& aArr) const;
const ManagedContainer<PCookieServiceChild>&
ManagedPCookieServiceChild() const;
void
ManagedPWebSocketChild(nsTArray<PWebSocketChild*>& aArr) const;
const ManagedContainer<PWebSocketChild>&
ManagedPWebSocketChild() const;
void
ManagedPWebSocketEventListenerChild(nsTArray<PWebSocketEventListenerChild*>& aArr) const;
const ManagedContainer<PWebSocketEventListenerChild>&
ManagedPWebSocketEventListenerChild() const;
void
ManagedPTCPSocketChild(nsTArray<PTCPSocketChild*>& aArr) const;
const ManagedContainer<PTCPSocketChild>&
ManagedPTCPSocketChild() const;
void
ManagedPTCPServerSocketChild(nsTArray<PTCPServerSocketChild*>& aArr) const;
const ManagedContainer<PTCPServerSocketChild>&
ManagedPTCPServerSocketChild() const;
void
ManagedPUDPSocketChild(nsTArray<PUDPSocketChild*>& aArr) const;
const ManagedContainer<PUDPSocketChild>&
ManagedPUDPSocketChild() const;
void
ManagedPDNSRequestChild(nsTArray<PDNSRequestChild*>& aArr) const;
const ManagedContainer<PDNSRequestChild>&
ManagedPDNSRequestChild() const;
void
ManagedPTransportProviderChild(nsTArray<PTransportProviderChild*>& aArr) const;
const ManagedContainer<PTransportProviderChild>&
ManagedPTransportProviderChild() const;
void
ManagedPAltDataOutputStreamChild(nsTArray<PAltDataOutputStreamChild*>& aArr) const;
const ManagedContainer<PAltDataOutputStreamChild>&
ManagedPAltDataOutputStreamChild() const;
void
ManagedPStunAddrsRequestChild(nsTArray<PStunAddrsRequestChild*>& aArr) const;
const ManagedContainer<PStunAddrsRequestChild>&
ManagedPStunAddrsRequestChild() const;
void
ManagedPWebrtcTCPSocketChild(nsTArray<PWebrtcTCPSocketChild*>& aArr) const;
const ManagedContainer<PWebrtcTCPSocketChild>&
ManagedPWebrtcTCPSocketChild() const;
void
ManagedPDocumentChannelChild(nsTArray<PDocumentChannelChild*>& aArr) const;
const ManagedContainer<PDocumentChannelChild>&
ManagedPDocumentChannelChild() const;
mozilla::Span<mozilla::ipc::ProtocolId const>
ManagedProtocolIds() const final;
UntypedManagedContainer*
GetManagedActors(mozilla::ipc::ProtocolId aProtocol) final;
void
RejectPendingResponses(ResponseRejectReason aReason) final;
ManagedEndpoint<PHttpChannelParent>
OpenPHttpChannelEndpoint(PHttpChannelChild* aActor);
bool
BindPHttpChannelEndpoint(
ManagedEndpoint<PHttpChannelChild> aEndpoint,
PHttpChannelChild* aActor);
ManagedEndpoint<PCacheEntryWriteHandleParent>
OpenPCacheEntryWriteHandleEndpoint(PCacheEntryWriteHandleChild* aActor);
bool
BindPCacheEntryWriteHandleEndpoint(
ManagedEndpoint<PCacheEntryWriteHandleChild> aEndpoint,
PCacheEntryWriteHandleChild* aActor);
ManagedEndpoint<PCookieServiceParent>
OpenPCookieServiceEndpoint(PCookieServiceChild* aActor);
bool
BindPCookieServiceEndpoint(
ManagedEndpoint<PCookieServiceChild> aEndpoint,
PCookieServiceChild* aActor);
ManagedEndpoint<PWebSocketParent>
OpenPWebSocketEndpoint(PWebSocketChild* aActor);
bool
BindPWebSocketEndpoint(
ManagedEndpoint<PWebSocketChild> aEndpoint,
PWebSocketChild* aActor);
ManagedEndpoint<PWebSocketEventListenerParent>
OpenPWebSocketEventListenerEndpoint(PWebSocketEventListenerChild* aActor);
bool
BindPWebSocketEventListenerEndpoint(
ManagedEndpoint<PWebSocketEventListenerChild> aEndpoint,
PWebSocketEventListenerChild* aActor);
ManagedEndpoint<PTCPSocketParent>
OpenPTCPSocketEndpoint(PTCPSocketChild* aActor);
bool
BindPTCPSocketEndpoint(
ManagedEndpoint<PTCPSocketChild> aEndpoint,
PTCPSocketChild* aActor);
ManagedEndpoint<PTCPServerSocketParent>
OpenPTCPServerSocketEndpoint(PTCPServerSocketChild* aActor);
bool
BindPTCPServerSocketEndpoint(
ManagedEndpoint<PTCPServerSocketChild> aEndpoint,
PTCPServerSocketChild* aActor);
ManagedEndpoint<PUDPSocketParent>
OpenPUDPSocketEndpoint(PUDPSocketChild* aActor);
bool
BindPUDPSocketEndpoint(
ManagedEndpoint<PUDPSocketChild> aEndpoint,
PUDPSocketChild* aActor);
ManagedEndpoint<PDNSRequestParent>
OpenPDNSRequestEndpoint(PDNSRequestChild* aActor);
bool
BindPDNSRequestEndpoint(
ManagedEndpoint<PDNSRequestChild> aEndpoint,
PDNSRequestChild* aActor);
ManagedEndpoint<PTransportProviderParent>
OpenPTransportProviderEndpoint(PTransportProviderChild* aActor);
bool
BindPTransportProviderEndpoint(
ManagedEndpoint<PTransportProviderChild> aEndpoint,
PTransportProviderChild* aActor);
ManagedEndpoint<PAltDataOutputStreamParent>
OpenPAltDataOutputStreamEndpoint(PAltDataOutputStreamChild* aActor);
bool
BindPAltDataOutputStreamEndpoint(
ManagedEndpoint<PAltDataOutputStreamChild> aEndpoint,
PAltDataOutputStreamChild* aActor);
ManagedEndpoint<PStunAddrsRequestParent>
OpenPStunAddrsRequestEndpoint(PStunAddrsRequestChild* aActor);
bool
BindPStunAddrsRequestEndpoint(
ManagedEndpoint<PStunAddrsRequestChild> aEndpoint,
PStunAddrsRequestChild* aActor);
ManagedEndpoint<PWebrtcTCPSocketParent>
OpenPWebrtcTCPSocketEndpoint(PWebrtcTCPSocketChild* aActor);
bool
BindPWebrtcTCPSocketEndpoint(
ManagedEndpoint<PWebrtcTCPSocketChild> aEndpoint,
PWebrtcTCPSocketChild* aActor);
ManagedEndpoint<PDocumentChannelParent>
OpenPDocumentChannelEndpoint(PDocumentChannelChild* aActor);
bool
BindPDocumentChannelEndpoint(
ManagedEndpoint<PDocumentChannelChild> aEndpoint,
PDocumentChannelChild* aActor);
static bool
Send__delete__(PNeckoChild* actor);
PCookieServiceChild*
SendPCookieServiceConstructor();
PCookieServiceChild*
SendPCookieServiceConstructor(PCookieServiceChild* actor);
PHttpChannelChild*
SendPHttpChannelConstructor(
PHttpChannelChild* actor,
PBrowserChild* browser,
const SerializedLoadContext& loadContext,
const HttpChannelCreationArgs& args);
PWebSocketChild*
SendPWebSocketConstructor(
PBrowserChild* browser,
const SerializedLoadContext& loadContext,
const uint32_t& aSerialID);
PWebSocketChild*
SendPWebSocketConstructor(
PWebSocketChild* actor,
PBrowserChild* browser,
const SerializedLoadContext& loadContext,
const uint32_t& aSerialID);
PTCPServerSocketChild*
SendPTCPServerSocketConstructor(
PTCPServerSocketChild* actor,
const uint16_t& localPort,
const uint16_t& backlog,
const bool& useArrayBuffers);
PUDPSocketChild*
SendPUDPSocketConstructor(
PUDPSocketChild* actor,
nsIPrincipal* principal,
const nsACString& filter);
PDNSRequestChild*
SendPDNSRequestConstructor(
PDNSRequestChild* actor,
const nsACString& hostName,
const nsACString& trrServer,
const int32_t& port,
const uint16_t& type,
const OriginAttributes& originAttributes,
const DNSFlags& flags);
PDocumentChannelChild*
SendPDocumentChannelConstructor(
PDocumentChannelChild* actor,
const MaybeDiscardedBrowsingContext& browsingContext,
const DocumentChannelCreationArgs& args);
PWebSocketEventListenerChild*
SendPWebSocketEventListenerConstructor(const uint64_t& aInnerWindowID);
PWebSocketEventListenerChild*
SendPWebSocketEventListenerConstructor(
PWebSocketEventListenerChild* actor,
const uint64_t& aInnerWindowID);
bool
SendSpeculativeConnect(
PBrowserChild* browser,
const SerializedLoadContext& loadContext,
nsIURI* uri,
nsIPrincipal* principal,
const mozilla::Maybe<OriginAttributes>& originAttributes,
const bool& anonymous);
bool
SendHTMLDNSPrefetch(
const nsAString& hostname,
const bool& isHttps,
const OriginAttributes& originAttributes,
const DNSFlags& flags);
bool
SendHTMLDNSPrefetchBatch(mozilla::Span<HTMLDNSPrefetchArgs const> prefetches);
bool
SendCancelHTMLDNSPrefetch(
const nsAString& hostname,
const bool& isHttps,
const OriginAttributes& originAttributes,
const DNSFlags& flags,
const nsresult& reason);
bool
SendConnectBaseChannel(const uint32_t& channelId);
bool
SendNotifyFileChannelOpened(const FileChannelInfo& info);
bool
SendRequestContextLoadBegin(const uint64_t& rcid);
bool
SendRequestContextAfterDOMContentLoaded(const uint64_t& rcid);
bool
SendRemoveRequestContext(const uint64_t& rcid);
PCacheEntryWriteHandleChild*
SendPCacheEntryWriteHandleConstructor(mozilla::NotNull<PHttpChannelChild*> channel);
PCacheEntryWriteHandleChild*
SendPCacheEntryWriteHandleConstructor(
PCacheEntryWriteHandleChild* actor,
mozilla::NotNull<PHttpChannelChild*> channel);
PAltDataOutputStreamChild*
SendPAltDataOutputStreamConstructor(
const nsACString& type,
const int64_t& predictedSize,
const mozilla::Maybe<mozilla::NotNull<PHttpChannelChild*>>& channel,
const mozilla::Maybe<mozilla::NotNull<PCacheEntryWriteHandleChild*>>& handle);
PAltDataOutputStreamChild*
SendPAltDataOutputStreamConstructor(
PAltDataOutputStreamChild* actor,
const nsACString& type,
const int64_t& predictedSize,
const mozilla::Maybe<mozilla::NotNull<PHttpChannelChild*>>& channel,
const mozilla::Maybe<mozilla::NotNull<PCacheEntryWriteHandleChild*>>& handle);
PStunAddrsRequestChild*
SendPStunAddrsRequestConstructor(PStunAddrsRequestChild* actor);
PWebrtcTCPSocketChild*
SendPWebrtcTCPSocketConstructor(
PWebrtcTCPSocketChild* actor,
const mozilla::Maybe<TabId>& tabId);
void
SendGetExtensionStream(
nsIURI* uri,
mozilla::ipc::ResolveCallback<RefPtr<nsIInputStream>>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<GetExtensionStreamPromise>
SendGetExtensionStream(nsIURI* uri);
void
SendGetExtensionFD(
nsIURI* uri,
mozilla::ipc::ResolveCallback<FileDescriptor>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<GetExtensionFDPromise>
SendGetExtensionFD(nsIURI* uri);
void
SendInitSocketProcessBridge(
mozilla::ipc::ResolveCallback<Endpoint<::mozilla::net::PSocketProcessBridgeChild>>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<InitSocketProcessBridgePromise>
SendInitSocketProcessBridge();
bool
SendResetSocketProcessBridge();
void
SendEnsureHSTSData(
mozilla::ipc::ResolveCallback<bool>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<EnsureHSTSDataPromise>
SendEnsureHSTSData();
void
SendGetPageThumbStream(
nsIURI* uri,
const LoadInfoArgs& loadInfo,
mozilla::ipc::ResolveCallback<mozilla::Maybe<RemoteStreamInfo>>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<GetPageThumbStreamPromise>
SendGetPageThumbStream(
nsIURI* uri,
const LoadInfoArgs& loadInfo);
void
SendGetPageIconStream(
nsIURI* uri,
const LoadInfoArgs& loadInfo,
mozilla::ipc::ResolveCallback<mozilla::Maybe<RemoteStreamInfo>>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<GetPageIconStreamPromise>
SendGetPageIconStream(
nsIURI* uri,
const LoadInfoArgs& loadInfo);
void
SendGetMozNewTabWallpaperStream(
nsIURI* uri,
const LoadInfoArgs& loadInfo,
mozilla::ipc::ResolveCallback<mozilla::Maybe<RemoteStreamInfo>>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<GetMozNewTabWallpaperStreamPromise>
SendGetMozNewTabWallpaperStream(
nsIURI* uri,
const LoadInfoArgs& loadInfo);
PTCPSocketChild*
SendPTCPSocketConstructor(
const nsAString& host,
const uint16_t& port);
PTCPSocketChild*
SendPTCPSocketConstructor(
PTCPSocketChild* 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<PHttpChannelChild> mManagedPHttpChannelChild;
ManagedContainer<PCacheEntryWriteHandleChild> mManagedPCacheEntryWriteHandleChild;
ManagedContainer<PCookieServiceChild> mManagedPCookieServiceChild;
ManagedContainer<PWebSocketChild> mManagedPWebSocketChild;
ManagedContainer<PWebSocketEventListenerChild> mManagedPWebSocketEventListenerChild;
ManagedContainer<PTCPSocketChild> mManagedPTCPSocketChild;
ManagedContainer<PTCPServerSocketChild> mManagedPTCPServerSocketChild;
ManagedContainer<PUDPSocketChild> mManagedPUDPSocketChild;
ManagedContainer<PDNSRequestChild> mManagedPDNSRequestChild;
ManagedContainer<PTransportProviderChild> mManagedPTransportProviderChild;
ManagedContainer<PAltDataOutputStreamChild> mManagedPAltDataOutputStreamChild;
ManagedContainer<PStunAddrsRequestChild> mManagedPStunAddrsRequestChild;
ManagedContainer<PWebrtcTCPSocketChild> mManagedPWebrtcTCPSocketChild;
ManagedContainer<PDocumentChannelChild> mManagedPDocumentChannelChild;
};
} // namespace net
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::net::PNeckoChild*>
{
typedef ::mozilla::net::PNeckoChild* paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
#endif // ifndef PNeckoChild_h