Copy as Markdown
Other Tools
//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PHttpTransactionChild_h
#define PHttpTransactionChild_h
#include "mozilla/net/PHttpTransaction.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/FeaturePolicy.h"
#include "mozilla/dom/RequestBinding.h"
#include "mozilla/ipc/BackgroundUtils.h"
#include "mozilla/net/ClassOfService.h"
#include "mozilla/net/DNS.h"
#include "mozilla/net/PHttpChannelParams.h"
#include "nsICacheInfoChannel.h"
#include "nsIContentPolicy.h"
#include "nsILoadInfo.h"
#include "nsIRequest.h"
#include "nsITRRSkipReason.h"
#include "nsNetUtil.h"
namespace mozilla {
namespace net {
class PSocketProcessChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PSocketProcessParent;
} // 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 PHttpConnectionMgrChild;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PSocketProcessChild;
} // 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 mozilla {
namespace net {
class nsHttpRequestHead;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class nsHttpHeaderArray;
} // namespace net
} // namespace mozilla
class nsITransportSecurityInfo;
namespace mozilla {
namespace net {
class PHttpTransactionChild :
public mozilla::ipc::IRefCountedProtocol
{
private:
friend class ::mozilla::net::PHttpConnectionMgrChild;
friend class ::mozilla::net::PSocketProcessChild;
public:
static constexpr ::mozilla::ipc::ProtocolId kProtocolId = PHttpTransactionMsgStart;
protected:
typedef mozilla::ipc::ActorHandle ActorHandle;
typedef ::mozilla::ipc::ByteBuf ByteBuf;
typedef ::mozilla::net::ChildLoadInfoForwarderArgs ChildLoadInfoForwarderArgs;
typedef ::mozilla::net::ClassOfService ClassOfService;
typedef ::mozilla::net::ConsoleReportCollected ConsoleReportCollected;
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 ::mozilla::net::DataChannelInfo DataChannelInfo;
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::net::GIOChannelConnectArgs GIOChannelConnectArgs;
typedef ::mozilla::net::GIOChannelCreationArgs GIOChannelCreationArgs;
typedef ::mozilla::net::GIOChannelOpenArgs GIOChannelOpenArgs;
typedef ::mozilla::net::H2PushedStreamArg H2PushedStreamArg;
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 ::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::net::NetAddr NetAddr;
typedef ::mozilla::net::NetworkAddressArg NetworkAddressArg;
typedef ::mozilla::net::ObjectCreationArgs ObjectCreationArgs;
typedef ::mozilla::OriginAttributes OriginAttributes;
typedef ::mozilla::net::PInputChannelThrottleQueueChild PInputChannelThrottleQueueChild;
typedef ::mozilla::net::PInputChannelThrottleQueueParent PInputChannelThrottleQueueParent;
typedef ::mozilla::net::PSocketProcessChild PSocketProcessChild;
typedef ::mozilla::net::PSocketProcessParent PSocketProcessParent;
typedef ::mozilla::net::ParentLoadInfoForwarderArgs ParentLoadInfoForwarderArgs;
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::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 ::mozilla::ipc::Shmem Shmem;
typedef ::mozilla::net::SpeculativeConnectionOverriderArgs SpeculativeConnectionOverriderArgs;
typedef ::nsILoadInfo::StoragePermissionState StoragePermissionState;
typedef ::nsIRequest::TRRMode TRRMode;
typedef ::mozilla::net::TRRSkippedReason TRRSkippedReason;
typedef ::mozilla::TimeStamp TimeStamp;
typedef ::mozilla::net::TimingStructArgs TimingStructArgs;
typedef ::mozilla::net::TransactionObserverResult TransactionObserverResult;
template<class T> using UniquePtr = mozilla::UniquePtr<T>;
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::nsHttpHeaderArray nsHttpHeaderArray;
typedef ::mozilla::net::nsHttpRequestHead nsHttpRequestHead;
typedef ::mozilla::net::nsHttpResponseHead nsHttpResponseHead;
typedef ::nsIPropertyBag2 nsIPropertyBag2;
typedef ::nsITransportSecurityInfo nsITransportSecurityInfo;
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;
protected:
virtual mozilla::ipc::IPCResult
Recv__delete__();
public:
typedef mozilla::ipc::IProtocol IProtocol;
typedef IPC::Message Message;
typedef base::ProcessHandle ProcessHandle;
typedef mozilla::ipc::MessageChannel MessageChannel;
typedef mozilla::ipc::SharedMemory SharedMemory;
public:
MOZ_IMPLICIT PHttpTransactionChild();
virtual ~PHttpTransactionChild();
protected:
void
ActorAlloc() final;
void
ActorDealloc() final;
public:
::base::ProcessId
OtherPid() const;
::GeckoChildID
OtherChildID() const;
::mozilla::ipc::EndpointProcInfo
OtherEndpointProcInfo() const;
PSocketProcessChild*
Manager() const;
mozilla::Span<mozilla::ipc::ProtocolId const>
ManagedProtocolIds() const final;
UntypedManagedContainer*
GetManagedActors(mozilla::ipc::ProtocolId aProtocol) final;
bool
SendOnStartRequest(
const nsresult& status,
mozilla::Maybe<nsHttpResponseHead>&& responseHead,
nsITransportSecurityInfo* securityInfo,
const bool& proxyConnectFailed,
const TimingStructArgs& timings,
const int32_t& proxyConnectResponseCode,
mozilla::Span<uint8_t const> dataForSniffer,
const mozilla::Maybe<nsCString>& altSvcUsed,
const bool& dataToChildProcess,
const bool& restarted,
const uint32_t& HTTPSSVCReceivedStage,
const bool& supportsHttp3,
const TRRMode& trrMode,
const TRRSkippedReason& trrSkipReason,
const uint32_t& caps,
const TimeStamp& onStartRequestStart);
bool
SendOnTransportStatus(
const nsresult& status,
const int64_t& progress,
const int64_t& progressMax,
const mozilla::Maybe<NetworkAddressArg>& networkAddressArg);
bool
SendOnDataAvailable(
const nsACString& data,
const uint64_t& offset,
const uint32_t& count,
const TimeStamp& onDataAvailableStart);
bool
SendOnStopRequest(
const nsresult& status,
const bool& responseIsComplete,
const int64_t& transferSize,
const TimingStructArgs& timings,
const mozilla::Maybe<nsHttpHeaderArray>& responseTrailers,
const mozilla::Maybe<TransactionObserverResult>& transactionObserverResult,
const TimeStamp& lastActiveTabOptimization,
const HttpConnectionInfoCloneArgs& connInfoArgs,
const TimeStamp& onStopRequestStart);
bool
SendOnInitFailed(const nsresult& status);
bool
SendOnH2PushStream(
const uint32_t& pushedStreamId,
const nsACString& resourceUrl,
const nsACString& requestString);
bool
SendEarlyHint(
const nsACString& linkHeader,
const nsACString& referrerPolicy,
const nsACString& cspHeader);
void
DeallocManagee(
int32_t aProtocolId,
IProtocol* aListener) override;
Result
OnMessageReceived(const Message& msg__) override;
Result
OnMessageReceived(
const Message& msg__,
UniquePtr<Message>& reply__) override;
private:
bool mAwaitingManagedEndpointBind = false;
};
} // namespace net
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::net::PHttpTransactionChild*>
{
typedef ::mozilla::net::PHttpTransactionChild* paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
#endif // ifndef PHttpTransactionChild_h