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"
// Headers for things that cannot be forward declared
#include "mozilla/TimeStamp.h"
#include "mozilla/ipc/BackgroundUtils.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:
protected:
typedef mozilla::ipc::ActorHandle ActorHandle;
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;
template<class FooSide> using Endpoint = mozilla::ipc::Endpoint<FooSide>;
typedef ::mozilla::ipc::ExpandedPrincipalInfo ExpandedPrincipalInfo;
typedef ::mozilla::ipc::FileDescriptor FileDescriptor;
template<class FooSide> using ManagedEndpoint = mozilla::ipc::ManagedEndpoint<FooSide>;
typedef ::mozilla::ipc::NullPrincipalInfo NullPrincipalInfo;
typedef ::mozilla::OriginAttributes OriginAttributes;
typedef ::mozilla::ipc::PrincipalInfo PrincipalInfo;
typedef base::ProcessId ProcessId;
typedef mozilla::ipc::ProtocolId ProtocolId;
typedef ::mozilla::dom::ResetError ResetError;
typedef mozilla::ipc::ResponseRejectReason ResponseRejectReason;
typedef ::mozilla::ipc::Shmem Shmem;
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::ipc::WebTransportHash WebTransportHash;
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<UnidirectionalStreamResponse, ResponseRejectReason, true> CreateUnidirectionalStreamPromise;
typedef MozPromise<BidirectionalStreamResponse, ResponseRejectReason, true> CreateBidirectionalStreamPromise;
typedef MozPromise<nsresult, ResponseRejectReason, true> OutgoingDatagramPromise;
typedef MozPromise<uint64_t, ResponseRejectReason, true> GetMaxDatagramSizePromise;
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;
typedef mozilla::ipc::SharedMemory SharedMemory;
public:
MOZ_IMPLICIT PWebTransportChild();
virtual ~PWebTransportChild();
protected:
void
ActorAlloc() final;
void
ActorDealloc() final;
public:
uint32_t
AllManagedActorsCount() const override;
bool
SendClose(
const uint32_t& code,
const nsACString& reason);
void
SendCreateUnidirectionalStream(
const mozilla::Maybe<int64_t>& sendOrder,
mozilla::ipc::ResolveCallback<UnidirectionalStreamResponse>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<CreateUnidirectionalStreamPromise>
SendCreateUnidirectionalStream(const mozilla::Maybe<int64_t>& sendOrder);
void
SendCreateBidirectionalStream(
const mozilla::Maybe<int64_t>& sendOrder,
mozilla::ipc::ResolveCallback<BidirectionalStreamResponse>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<CreateBidirectionalStreamPromise>
SendCreateBidirectionalStream(const mozilla::Maybe<int64_t>& sendOrder);
void
SendOutgoingDatagram(
mozilla::Span<uint8_t const> data,
const TimeStamp& expirationTime,
mozilla::ipc::ResolveCallback<nsresult>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<OutgoingDatagramPromise>
SendOutgoingDatagram(
mozilla::Span<uint8_t const> data,
const TimeStamp& expirationTime);
void
SendGetMaxDatagramSize(
mozilla::ipc::ResolveCallback<uint64_t>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<GetMaxDatagramSizePromise>
SendGetMaxDatagramSize();
bool
SendSetSendOrder(
const uint64_t& streamId,
const mozilla::Maybe<int64_t>& sendOrder);
void
RemoveManagee(
int32_t aProtocolId,
IProtocol* aListener) override;
void
DeallocManagee(
int32_t aProtocolId,
IProtocol* aListener) override;
Result
OnMessageReceived(const Message& msg__) override;
Result
OnMessageReceived(
const Message& msg__,
UniquePtr<Message>& reply__) override;
void
DoomSubtree() override;
IProtocol*
PeekManagedActor() override;
private:
};
} // namespace dom
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::dom::PWebTransportChild*>
{
typedef ::mozilla::dom::PWebTransportChild* paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
#endif // ifndef PWebTransportChild_h