Copy as Markdown
Other Tools
//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PMFCDMChild_h
#define PMFCDMChild_h
#include "mozilla/PMFCDM.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 "MediaData.h"
#include "mozilla/KeySystemConfig.h"
#include "mozilla/dom/MediaKeyMessageEventBinding.h"
#include "mozilla/dom/MediaKeyStatusMapBinding.h"
#include "mozilla/dom/MediaKeysBinding.h"
namespace mozilla {
class PRemoteDecoderManagerChild;
} // namespace mozilla
namespace mozilla {
class PRemoteDecoderManagerParent;
} // namespace mozilla
namespace mozilla {
class PRemoteDecoderManagerChild;
} // namespace mozilla
namespace mozilla {
class PMFCDMChild :
public mozilla::ipc::IProtocol
{
private:
friend class ::mozilla::PRemoteDecoderManagerChild;
public:
static constexpr ::mozilla::ipc::ProtocolId kProtocolId = PMFCDMMsgStart;
protected:
typedef mozilla::ipc::ActorHandle ActorHandle;
typedef ::mozilla::ipc::ByteBuf ByteBuf;
typedef ::mozilla::CryptoScheme CryptoScheme;
template<class FooSide> using Endpoint = mozilla::ipc::Endpoint<FooSide>;
typedef ::mozilla::ipc::FileDescriptor FileDescriptor;
typedef ::mozilla::dom::HDCPVersion HDCPVersion;
typedef ::mozilla::KeySystemConfigRequest KeySystemConfigRequest;
typedef ::mozilla::MFCDMCapabilitiesIPDL MFCDMCapabilitiesIPDL;
typedef ::mozilla::MFCDMCapabilitiesRequest MFCDMCapabilitiesRequest;
typedef ::mozilla::MFCDMCapabilitiesResult MFCDMCapabilitiesResult;
typedef ::mozilla::MFCDMCreateSessionParamsIPDL MFCDMCreateSessionParamsIPDL;
typedef ::mozilla::MFCDMInitIPDL MFCDMInitIPDL;
typedef ::mozilla::MFCDMInitParamsIPDL MFCDMInitParamsIPDL;
typedef ::mozilla::MFCDMInitResult MFCDMInitResult;
typedef ::mozilla::MFCDMKeyExpiration MFCDMKeyExpiration;
typedef ::mozilla::MFCDMKeyInformation MFCDMKeyInformation;
typedef ::mozilla::MFCDMKeyMessage MFCDMKeyMessage;
typedef ::mozilla::MFCDMKeyStatusChange MFCDMKeyStatusChange;
typedef ::mozilla::MFCDMMediaCapability MFCDMMediaCapability;
typedef ::mozilla::MFCDMSessionResult MFCDMSessionResult;
template<class FooSide> using ManagedEndpoint = mozilla::ipc::ManagedEndpoint<FooSide>;
typedef ::mozilla::dom::MediaKeyMessageType MediaKeyMessageType;
typedef ::mozilla::dom::MediaKeyStatus MediaKeyStatus;
typedef ::mozilla::PRemoteDecoderManagerChild PRemoteDecoderManagerChild;
typedef ::mozilla::PRemoteDecoderManagerParent PRemoteDecoderManagerParent;
typedef base::ProcessId ProcessId;
typedef mozilla::ipc::ProtocolId ProtocolId;
typedef ::mozilla::KeySystemConfig::Requirement Requirement;
typedef mozilla::ipc::ResponseRejectReason ResponseRejectReason;
typedef ::mozilla::KeySystemConfig::SessionType SessionType;
typedef ::mozilla::ipc::Shmem Shmem;
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 ::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<MFCDMCapabilitiesResult, ResponseRejectReason, true> GetCapabilitiesPromise;
typedef MozPromise<MFCDMInitResult, ResponseRejectReason, true> InitPromise;
typedef MozPromise<MFCDMSessionResult, ResponseRejectReason, true> CreateSessionAndGenerateRequestPromise;
typedef MozPromise<nsresult, ResponseRejectReason, true> LoadSessionPromise;
typedef MozPromise<nsresult, ResponseRejectReason, true> UpdateSessionPromise;
typedef MozPromise<nsresult, ResponseRejectReason, true> CloseSessionPromise;
typedef MozPromise<nsresult, ResponseRejectReason, true> RemoveSessionPromise;
typedef MozPromise<nsresult, ResponseRejectReason, true> SetServerCertificatePromise;
typedef MozPromise<nsresult, ResponseRejectReason, true> GetStatusForPolicyPromise;
protected:
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 PMFCDMChild();
virtual ~PMFCDMChild();
protected:
void
ActorAlloc() final;
void
ActorDealloc() final;
public:
::base::ProcessId
OtherPid() const;
::GeckoChildID
OtherChildID() const;
::mozilla::ipc::EndpointProcInfo
OtherEndpointProcInfo() const;
PRemoteDecoderManagerChild*
Manager() const;
mozilla::Span<mozilla::ipc::ProtocolId const>
ManagedProtocolIds() const final;
UntypedManagedContainer*
GetManagedActors(mozilla::ipc::ProtocolId aProtocol) final;
void
RejectPendingResponses(ResponseRejectReason aReason) final;
void
SendGetCapabilities(
const MFCDMCapabilitiesRequest& request,
mozilla::ipc::ResolveCallback<MFCDMCapabilitiesResult>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<GetCapabilitiesPromise>
SendGetCapabilities(const MFCDMCapabilitiesRequest& request);
void
SendInit(
const MFCDMInitParamsIPDL& params,
mozilla::ipc::ResolveCallback<MFCDMInitResult>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<InitPromise>
SendInit(const MFCDMInitParamsIPDL& params);
void
SendCreateSessionAndGenerateRequest(
const MFCDMCreateSessionParamsIPDL& type,
mozilla::ipc::ResolveCallback<MFCDMSessionResult>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<CreateSessionAndGenerateRequestPromise>
SendCreateSessionAndGenerateRequest(const MFCDMCreateSessionParamsIPDL& type);
void
SendLoadSession(
const SessionType& sessionType,
const nsAString& sessionId,
mozilla::ipc::ResolveCallback<nsresult>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<LoadSessionPromise>
SendLoadSession(
const SessionType& sessionType,
const nsAString& sessionId);
void
SendUpdateSession(
const nsAString& sessionId,
mozilla::Span<uint8_t const> response,
mozilla::ipc::ResolveCallback<nsresult>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<UpdateSessionPromise>
SendUpdateSession(
const nsAString& sessionId,
mozilla::Span<uint8_t const> response);
void
SendCloseSession(
const nsAString& sessionId,
mozilla::ipc::ResolveCallback<nsresult>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<CloseSessionPromise>
SendCloseSession(const nsAString& sessionId);
void
SendRemoveSession(
const nsAString& sessionId,
mozilla::ipc::ResolveCallback<nsresult>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<RemoveSessionPromise>
SendRemoveSession(const nsAString& sessionId);
void
SendSetServerCertificate(
mozilla::Span<uint8_t const> certificate,
mozilla::ipc::ResolveCallback<nsresult>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<SetServerCertificatePromise>
SendSetServerCertificate(mozilla::Span<uint8_t const> certificate);
void
SendGetStatusForPolicy(
const HDCPVersion& minHdcpVersion,
mozilla::ipc::ResolveCallback<nsresult>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<GetStatusForPolicyPromise>
SendGetStatusForPolicy(const HDCPVersion& minHdcpVersion);
static bool
Send__delete__(PMFCDMChild* actor);
void
DeallocManagee(
int32_t 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;
};
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::PMFCDMChild*>
{
typedef ::mozilla::PMFCDMChild* paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
#endif // ifndef PMFCDMChild_h