Generated file

Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PWebTransportChild_h
#define PWebTransportChild_h
#include "mozilla/dom/PWebTransport.h"
#ifdef DEBUG
#include "prenv.h"
#endif // DEBUG
#include "mozilla/Tainting.h"
#include "mozilla/ipc/MessageChannel.h"
#include "mozilla/ipc/ProtocolUtils.h"
namespace mozilla {
namespace dom {
class WebTransportChild;
} // namespace dom
} // namespace mozilla
// Headers for things that cannot be forward declared
#include "mozilla/TimeStamp.h"
#include "mozilla/dom/IntegrityPolicy.h"
#include "mozilla/ipc/BackgroundUtils.h"
#include "nsIContentSecurityPolicy.h"
#include "nsILoadInfo.h"
namespace mozilla {
struct void_t;
} // namespace mozilla
namespace mozilla {
namespace ipc {
class DataPipeReceiver;
} // namespace ipc
} // namespace mozilla
namespace mozilla {
namespace ipc {
class DataPipeSender;
} // namespace ipc
} // namespace mozilla
namespace mozilla {
namespace dom {
class PWebTransportChild :
public mozilla::ipc::IToplevelProtocol
{
private:
public:
static constexpr ::mozilla::ipc::ProtocolId kProtocolId = PWebTransportMsgStart;
protected:
typedef mozilla::ipc::ActorId ActorId;
typedef ::mozilla::dom::BidirectionalStream BidirectionalStream;
typedef ::mozilla::dom::BidirectionalStreamResponse BidirectionalStreamResponse;
typedef ::mozilla::ipc::ByteBuf ByteBuf;
typedef ::mozilla::ipc::CSPInfo CSPInfo;
typedef ::mozilla::ipc::ContentPrincipalInfo ContentPrincipalInfo;
typedef ::mozilla::ipc::ContentSecurityPolicy ContentSecurityPolicy;
typedef ::mozilla::ipc::DataPipeReceiver DataPipeReceiver;
typedef ::mozilla::ipc::DataPipeSender DataPipeSender;
typedef ::mozilla::dom::IntegrityPolicy::Destinations Destinations;
template<class FooSide> using Endpoint = mozilla::ipc::Endpoint<FooSide>;
typedef ::mozilla::ipc::ExpandedPrincipalInfo ExpandedPrincipalInfo;
typedef ::mozilla::ipc::FileDescriptor FileDescriptor;
typedef ::nsILoadInfo::IPAddressSpace IPAddressSpace;
typedef ::mozilla::ipc::IntegrityPolicyArgs IntegrityPolicyArgs;
typedef ::mozilla::ipc::IntegrityPolicyEntry IntegrityPolicyEntry;
template<class FooSide> using ManagedEndpoint = mozilla::ipc::ManagedEndpoint<FooSide>;
typedef ::mozilla::ipc::NullPrincipalInfo NullPrincipalInfo;
typedef ::mozilla::OriginAttributes OriginAttributes;
typedef ::mozilla::ipc::PolicyContainerArgs PolicyContainerArgs;
typedef ::mozilla::ipc::PrincipalInfo PrincipalInfo;
typedef base::ProcessId ProcessId;
typedef mozilla::ipc::ProtocolId ProtocolId;
typedef ::nsIContentSecurityPolicy::RequireTrustedTypesForDirectiveState RequireTrustedTypesForDirectiveState;
typedef ::mozilla::dom::ResetError ResetError;
typedef mozilla::ipc::ResponseRejectReason ResponseRejectReason;
typedef ::mozilla::ipc::Shmem Shmem;
typedef ::mozilla::dom::IntegrityPolicy::Sources Sources;
typedef ::mozilla::dom::StopSendingError StopSendingError;
typedef ::mozilla::dom::StreamResetOrStopSendingError StreamResetOrStopSendingError;
typedef ::mozilla::ipc::SystemPrincipalInfo SystemPrincipalInfo;
typedef ::mozilla::TimeStamp TimeStamp;
typedef ::mozilla::dom::UnidirectionalStream UnidirectionalStream;
typedef ::mozilla::dom::UnidirectionalStreamResponse UnidirectionalStreamResponse;
template<class T> using UniquePtr = mozilla::UniquePtr<T>;
typedef ::mozilla::dom::WebTransportDatagramStatsData WebTransportDatagramStatsData;
typedef ::mozilla::ipc::WebTransportHash WebTransportHash;
typedef ::mozilla::dom::WebTransportStatsData WebTransportStatsData;
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 ::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;
typedef ::mozilla::void_t void_t;
public:
typedef MozPromise<mozilla::Maybe<WebTransportStatsData>, ResponseRejectReason, true> ClosePromise;
typedef MozPromise<UnidirectionalStreamResponse, ResponseRejectReason, true> CreateUnidirectionalStreamPromise;
typedef MozPromise<BidirectionalStreamResponse, ResponseRejectReason, true> CreateBidirectionalStreamPromise;
typedef MozPromise<nsresult, ResponseRejectReason, true> OutgoingDatagramPromise;
typedef MozPromise<uint64_t, ResponseRejectReason, true> GetMaxDatagramSizePromise;
typedef MozPromise<uint64_t, ResponseRejectReason, true> GetHttpChannelIDPromise;
typedef MozPromise<nsTArray<uint8_t>, ResponseRejectReason, true> ExportKeyingMaterialPromise;
typedef MozPromise<mozilla::Maybe<WebTransportStatsData>, ResponseRejectReason, true> GetStatsPromise;
typedef std::function<void(const nsresult&)> CloseAllResolver;
protected:
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 PWebTransportChild();
virtual ~PWebTransportChild();
protected:
void
ActorAlloc() final;
void
ActorDealloc() final;
public:
mozilla::Span<mozilla::ipc::ProtocolId const>
ManagedProtocolIds() const final;
UntypedManagedContainer*
GetManagedActors(mozilla::ipc::ProtocolId aProtocol) final;
void
RejectPendingResponses(ResponseRejectReason aReason) final;
void
SendClose(
const uint32_t& code,
const nsACString& reason,
mozilla::ipc::ResolveCallback<mozilla::Maybe<WebTransportStatsData>>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<ClosePromise>
SendClose(
const uint32_t& code,
const nsACString& reason);
void
SendCreateUnidirectionalStream(
const int64_t& sendOrder,
const mozilla::Maybe<uint64_t>& sendGroupId,
mozilla::ipc::ResolveCallback<UnidirectionalStreamResponse>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<CreateUnidirectionalStreamPromise>
SendCreateUnidirectionalStream(
const int64_t& sendOrder,
const mozilla::Maybe<uint64_t>& sendGroupId);
void
SendCreateBidirectionalStream(
const int64_t& sendOrder,
const mozilla::Maybe<uint64_t>& sendGroupId,
mozilla::ipc::ResolveCallback<BidirectionalStreamResponse>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<CreateBidirectionalStreamPromise>
SendCreateBidirectionalStream(
const int64_t& sendOrder,
const mozilla::Maybe<uint64_t>& sendGroupId);
bool
SendCreateSendGroup(const uint64_t& groupId);
void
SendOutgoingDatagram(
mozilla::Span<uint8_t const> data,
const TimeStamp& expirationTime,
const uint64_t& sendGroupId,
const int64_t& sendOrder,
mozilla::ipc::ResolveCallback<nsresult>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<OutgoingDatagramPromise>
SendOutgoingDatagram(
mozilla::Span<uint8_t const> data,
const TimeStamp& expirationTime,
const uint64_t& sendGroupId,
const int64_t& sendOrder);
void
SendGetMaxDatagramSize(
mozilla::ipc::ResolveCallback<uint64_t>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<GetMaxDatagramSizePromise>
SendGetMaxDatagramSize();
void
SendGetHttpChannelID(
mozilla::ipc::ResolveCallback<uint64_t>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<GetHttpChannelIDPromise>
SendGetHttpChannelID();
bool
SendSetSendOrder(
const uint64_t& streamId,
const int64_t& sendOrder);
bool
SendSetSendGroup(
const uint64_t& streamId,
const uint64_t& groupId);
void
SendExportKeyingMaterial(
mozilla::Span<uint8_t const> label,
const mozilla::Maybe<nsTArray<uint8_t>>& context,
mozilla::ipc::ResolveCallback<nsTArray<uint8_t>>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<ExportKeyingMaterialPromise>
SendExportKeyingMaterial(
mozilla::Span<uint8_t const> label,
const mozilla::Maybe<nsTArray<uint8_t>>& context);
void
SendGetStats(
mozilla::ipc::ResolveCallback<mozilla::Maybe<WebTransportStatsData>>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<GetStatsPromise>
SendGetStats();
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;
};
} // namespace dom
} // namespace mozilla
namespace mozilla::ipc {
template <>
struct ActorTraits<::mozilla::dom::PWebTransportChild> {
static constexpr ProtocolId kProtocolId = PWebTransportMsgStart;
static constexpr Side kSide = ChildSide;
};
} // namespace mozilla::ipc
namespace mozilla::ipc {
template <>
struct ActorTraits<::mozilla::dom::WebTransportChild> {
static constexpr ProtocolId kProtocolId = PWebTransportMsgStart;
static constexpr Side kSide = ChildSide;
};
} // namespace mozilla::ipc
#endif // ifndef PWebTransportChild_h