#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "media/mojo/mojom/stable/stable_video_decoder.mojom-blink.h"
#include <math.h>
#include <stdint.h>
#include <utility>
#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "media/mojo/mojom/stable/stable_video_decoder.mojom-params-data.h"
#include "media/mojo/mojom/stable/stable_video_decoder.mojom-shared-message-ids.h"
#include "media/mojo/mojom/stable/stable_video_decoder.mojom-blink-import-headers.h"
#include "media/mojo/mojom/stable/stable_video_decoder.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace media::stable::mojom::blink {
const char MediaLog::Name_[] = …;
constexpr base::Token MediaLog::Uuid_;
MediaLog::IPCStableHashFunction MediaLog::MessageToMethodInfo_(mojo::Message& message) { … }
const char* MediaLog::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t MediaLog::AddLogRecord_Sym::IPCStableHash() { … }
# endif
MediaLogProxy::MediaLogProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void MediaLogProxy::AddLogRecord(
::media::stable::mojom::blink::MediaLogRecordPtr in_event) { … }
bool MediaLogStubDispatch::Accept(
MediaLog* impl,
mojo::Message* message) { … }
bool MediaLogStubDispatch::AcceptWithResponder(
MediaLog* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kMediaLogValidationInfo[] = …;
bool MediaLogRequestValidator::Accept(mojo::Message* message) { … }
const char VideoFrameHandleReleaser::Name_[] = …;
constexpr base::Token VideoFrameHandleReleaser::Uuid_;
VideoFrameHandleReleaser::IPCStableHashFunction VideoFrameHandleReleaser::MessageToMethodInfo_(mojo::Message& message) { … }
const char* VideoFrameHandleReleaser::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t VideoFrameHandleReleaser::ReleaseVideoFrame_Sym::IPCStableHash() { … }
# endif
VideoFrameHandleReleaserProxy::VideoFrameHandleReleaserProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void VideoFrameHandleReleaserProxy::ReleaseVideoFrame(
const ::base::UnguessableToken& in_release_token) { … }
bool VideoFrameHandleReleaserStubDispatch::Accept(
VideoFrameHandleReleaser* impl,
mojo::Message* message) { … }
bool VideoFrameHandleReleaserStubDispatch::AcceptWithResponder(
VideoFrameHandleReleaser* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kVideoFrameHandleReleaserValidationInfo[] = …;
bool VideoFrameHandleReleaserRequestValidator::Accept(mojo::Message* message) { … }
const char VideoDecoderClient::Name_[] = …;
constexpr base::Token VideoDecoderClient::Uuid_;
VideoDecoderClient::IPCStableHashFunction VideoDecoderClient::MessageToMethodInfo_(mojo::Message& message) { … }
const char* VideoDecoderClient::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t VideoDecoderClient::OnVideoFrameDecoded_Sym::IPCStableHash() { … }
uint32_t VideoDecoderClient::OnWaiting_Sym::IPCStableHash() { … }
# endif
VideoDecoderClientProxy::VideoDecoderClientProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void VideoDecoderClientProxy::OnVideoFrameDecoded(
::media::stable::mojom::blink::VideoFramePtr in_frame, bool in_can_read_without_stalling, const ::base::UnguessableToken& in_release_token) { … }
void VideoDecoderClientProxy::OnWaiting(
::media::stable::mojom::blink::WaitingReason in_reason) { … }
bool VideoDecoderClientStubDispatch::Accept(
VideoDecoderClient* impl,
mojo::Message* message) { … }
bool VideoDecoderClientStubDispatch::AcceptWithResponder(
VideoDecoderClient* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kVideoDecoderClientValidationInfo[] = …;
bool VideoDecoderClientRequestValidator::Accept(mojo::Message* message) { … }
const char CdmContextEventCallback::Name_[] = …;
constexpr base::Token CdmContextEventCallback::Uuid_;
CdmContextEventCallback::IPCStableHashFunction CdmContextEventCallback::MessageToMethodInfo_(mojo::Message& message) { … }
const char* CdmContextEventCallback::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t CdmContextEventCallback::EventCallback_Sym::IPCStableHash() { … }
# endif
CdmContextEventCallbackProxy::CdmContextEventCallbackProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void CdmContextEventCallbackProxy::EventCallback(
::media::stable::mojom::blink::CdmContextEvent in_event) { … }
bool CdmContextEventCallbackStubDispatch::Accept(
CdmContextEventCallback* impl,
mojo::Message* message) { … }
bool CdmContextEventCallbackStubDispatch::AcceptWithResponder(
CdmContextEventCallback* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kCdmContextEventCallbackValidationInfo[] = …;
bool CdmContextEventCallbackRequestValidator::Accept(mojo::Message* message) { … }
const char StableCdmContext::Name_[] = …;
constexpr base::Token StableCdmContext::Uuid_;
StableCdmContext::IPCStableHashFunction StableCdmContext::MessageToMethodInfo_(mojo::Message& message) { … }
const char* StableCdmContext::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t StableCdmContext::GetHwKeyData_Sym::IPCStableHash() { … }
uint32_t StableCdmContext::RegisterEventCallback_Sym::IPCStableHash() { … }
uint32_t StableCdmContext::GetHwConfigData_Sym::IPCStableHash() { … }
uint32_t StableCdmContext::GetScreenResolutions_Sym::IPCStableHash() { … }
uint32_t StableCdmContext::AllocateSecureBuffer_Sym::IPCStableHash() { … }
uint32_t StableCdmContext::ParseEncryptedSliceHeader_Sym::IPCStableHash() { … }
uint32_t StableCdmContext::DecryptVideoBuffer_Sym::IPCStableHash() { … }
# endif
class StableCdmContext_GetHwKeyData_ForwardToCallback
: public mojo::MessageReceiver { … };
class StableCdmContext_GetHwConfigData_ForwardToCallback
: public mojo::MessageReceiver { … };
class StableCdmContext_GetScreenResolutions_ForwardToCallback
: public mojo::MessageReceiver { … };
class StableCdmContext_AllocateSecureBuffer_ForwardToCallback
: public mojo::MessageReceiver { … };
class StableCdmContext_ParseEncryptedSliceHeader_ForwardToCallback
: public mojo::MessageReceiver { … };
class StableCdmContext_DecryptVideoBuffer_ForwardToCallback
: public mojo::MessageReceiver { … };
StableCdmContextProxy::StableCdmContextProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void StableCdmContextProxy::GetHwKeyData(
::media::stable::mojom::blink::DecryptConfigPtr in_decrypt_config, const WTF::Vector<uint8_t>& in_hw_identifier, GetHwKeyDataCallback callback) { … }
void StableCdmContextProxy::RegisterEventCallback(
::mojo::PendingRemote<CdmContextEventCallback> in_callback) { … }
void StableCdmContextProxy::GetHwConfigData(
GetHwConfigDataCallback callback) { … }
void StableCdmContextProxy::GetScreenResolutions(
GetScreenResolutionsCallback callback) { … }
void StableCdmContextProxy::AllocateSecureBuffer(
uint32_t in_size, AllocateSecureBufferCallback callback) { … }
void StableCdmContextProxy::ParseEncryptedSliceHeader(
uint64_t in_secure_handle, uint32_t in_offset, const WTF::Vector<uint8_t>& in_stream_data, ParseEncryptedSliceHeaderCallback callback) { … }
void StableCdmContextProxy::DecryptVideoBuffer(
::media::stable::mojom::blink::DecoderBufferPtr in_buffer, const WTF::Vector<uint8_t>& in_bytes, DecryptVideoBufferCallback callback) { … }
class StableCdmContext_GetHwKeyData_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool StableCdmContext_GetHwKeyData_ForwardToCallback::Accept(
mojo::Message* message) { … }
void StableCdmContext_GetHwKeyData_ProxyToResponder::Run(
::media::stable::mojom::blink::DecryptStatus in_status, const WTF::Vector<uint8_t>& in_key_data) { … }
class StableCdmContext_GetHwConfigData_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool StableCdmContext_GetHwConfigData_ForwardToCallback::Accept(
mojo::Message* message) { … }
void StableCdmContext_GetHwConfigData_ProxyToResponder::Run(
bool in_success, const WTF::Vector<uint8_t>& in_config_data) { … }
class StableCdmContext_GetScreenResolutions_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool StableCdmContext_GetScreenResolutions_ForwardToCallback::Accept(
mojo::Message* message) { … }
void StableCdmContext_GetScreenResolutions_ProxyToResponder::Run(
const WTF::Vector<::gfx::Size>& in_resolutions) { … }
class StableCdmContext_AllocateSecureBuffer_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool StableCdmContext_AllocateSecureBuffer_ForwardToCallback::Accept(
mojo::Message* message) { … }
void StableCdmContext_AllocateSecureBuffer_ProxyToResponder::Run(
::mojo::PlatformHandle in_secure_buffer) { … }
class StableCdmContext_ParseEncryptedSliceHeader_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool StableCdmContext_ParseEncryptedSliceHeader_ForwardToCallback::Accept(
mojo::Message* message) { … }
void StableCdmContext_ParseEncryptedSliceHeader_ProxyToResponder::Run(
bool in_success, const WTF::Vector<uint8_t>& in_slice_header) { … }
class StableCdmContext_DecryptVideoBuffer_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool StableCdmContext_DecryptVideoBuffer_ForwardToCallback::Accept(
mojo::Message* message) { … }
void StableCdmContext_DecryptVideoBuffer_ProxyToResponder::Run(
::media::stable::mojom::blink::DecryptStatus in_status, ::media::stable::mojom::blink::DecoderBufferPtr in_decoder_buffer, const WTF::Vector<uint8_t>& in_bytes) { … }
bool StableCdmContextStubDispatch::Accept(
StableCdmContext* impl,
mojo::Message* message) { … }
bool StableCdmContextStubDispatch::AcceptWithResponder(
StableCdmContext* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kStableCdmContextValidationInfo[] = …;
bool StableCdmContextRequestValidator::Accept(mojo::Message* message) { … }
bool StableCdmContextResponseValidator::Accept(mojo::Message* message) { … }
const char StableVideoDecoder::Name_[] = …;
constexpr base::Token StableVideoDecoder::Uuid_;
StableVideoDecoder::IPCStableHashFunction StableVideoDecoder::MessageToMethodInfo_(mojo::Message& message) { … }
const char* StableVideoDecoder::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t StableVideoDecoder::GetSupportedConfigs_Sym::IPCStableHash() { … }
uint32_t StableVideoDecoder::Construct_Sym::IPCStableHash() { … }
uint32_t StableVideoDecoder::Initialize_Sym::IPCStableHash() { … }
uint32_t StableVideoDecoder::Decode_Sym::IPCStableHash() { … }
uint32_t StableVideoDecoder::Reset_Sym::IPCStableHash() { … }
# endif
bool StableVideoDecoder::GetSupportedConfigs(WTF::Vector<::media::stable::mojom::blink::SupportedVideoDecoderConfigPtr>* out_supported_configs, ::media::stable::mojom::blink::VideoDecoderType* out_decoder_type) { … }
class StableVideoDecoder_GetSupportedConfigs_HandleSyncResponse
: public mojo::MessageReceiver { … };
class StableVideoDecoder_GetSupportedConfigs_ForwardToCallback
: public mojo::MessageReceiver { … };
class StableVideoDecoder_Initialize_ForwardToCallback
: public mojo::MessageReceiver { … };
class StableVideoDecoder_Decode_ForwardToCallback
: public mojo::MessageReceiver { … };
class StableVideoDecoder_Reset_ForwardToCallback
: public mojo::MessageReceiver { … };
StableVideoDecoderProxy::StableVideoDecoderProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
bool StableVideoDecoderProxy::GetSupportedConfigs(
WTF::Vector<::media::stable::mojom::blink::SupportedVideoDecoderConfigPtr>* out_param_supported_configs, ::media::stable::mojom::blink::VideoDecoderType* out_param_decoder_type) { … }
void StableVideoDecoderProxy::GetSupportedConfigs(
GetSupportedConfigsCallback callback) { … }
void StableVideoDecoderProxy::Construct(
::mojo::PendingAssociatedRemote<VideoDecoderClient> in_client, ::mojo::PendingRemote<MediaLog> in_media_log, ::mojo::PendingReceiver<VideoFrameHandleReleaser> in_video_frame_handle_releaser, ::mojo::ScopedDataPipeConsumerHandle in_decoder_buffer_pipe, ::media::stable::mojom::blink::ColorSpacePtr in_target_color_space) { … }
void StableVideoDecoderProxy::Initialize(
::media::stable::mojom::blink::VideoDecoderConfigPtr in_config, bool in_low_delay, ::mojo::PendingRemote<StableCdmContext> in_cdm_context, InitializeCallback callback) { … }
void StableVideoDecoderProxy::Decode(
::media::stable::mojom::blink::DecoderBufferPtr in_buffer, DecodeCallback callback) { … }
void StableVideoDecoderProxy::Reset(
ResetCallback callback) { … }
class StableVideoDecoder_GetSupportedConfigs_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool StableVideoDecoder_GetSupportedConfigs_ForwardToCallback::Accept(
mojo::Message* message) { … }
void StableVideoDecoder_GetSupportedConfigs_ProxyToResponder::Run(
WTF::Vector<::media::stable::mojom::blink::SupportedVideoDecoderConfigPtr> in_supported_configs, ::media::stable::mojom::blink::VideoDecoderType in_decoder_type) { … }
bool StableVideoDecoder_GetSupportedConfigs_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class StableVideoDecoder_Initialize_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool StableVideoDecoder_Initialize_ForwardToCallback::Accept(
mojo::Message* message) { … }
void StableVideoDecoder_Initialize_ProxyToResponder::Run(
::media::stable::mojom::blink::StatusPtr in_status, bool in_needs_bitstream_conversion, int32_t in_max_decode_requests, ::media::stable::mojom::blink::VideoDecoderType in_decoder_type, bool in_needs_transcryption) { … }
class StableVideoDecoder_Decode_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool StableVideoDecoder_Decode_ForwardToCallback::Accept(
mojo::Message* message) { … }
void StableVideoDecoder_Decode_ProxyToResponder::Run(
::media::stable::mojom::blink::StatusPtr in_status) { … }
class StableVideoDecoder_Reset_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool StableVideoDecoder_Reset_ForwardToCallback::Accept(
mojo::Message* message) { … }
void StableVideoDecoder_Reset_ProxyToResponder::Run(
) { … }
bool StableVideoDecoderStubDispatch::Accept(
StableVideoDecoder* impl,
mojo::Message* message) { … }
bool StableVideoDecoderStubDispatch::AcceptWithResponder(
StableVideoDecoder* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kStableVideoDecoderValidationInfo[] = …;
bool StableVideoDecoderRequestValidator::Accept(mojo::Message* message) { … }
bool StableVideoDecoderResponseValidator::Accept(mojo::Message* message) { … }
const char StableVideoDecoderTracker::Name_[] = …;
constexpr base::Token StableVideoDecoderTracker::Uuid_;
StableVideoDecoderTracker::IPCStableHashFunction StableVideoDecoderTracker::MessageToMethodInfo_(mojo::Message& message) { … }
const char* StableVideoDecoderTracker::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
# endif
StableVideoDecoderTrackerProxy::StableVideoDecoderTrackerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
bool StableVideoDecoderTrackerStubDispatch::Accept(
StableVideoDecoderTracker* impl,
mojo::Message* message) { … }
bool StableVideoDecoderTrackerStubDispatch::AcceptWithResponder(
StableVideoDecoderTracker* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
bool StableVideoDecoderTrackerRequestValidator::Accept(mojo::Message* message) { … }
const char StableVideoDecoderFactory::Name_[] = …;
constexpr base::Token StableVideoDecoderFactory::Uuid_;
StableVideoDecoderFactory::IPCStableHashFunction StableVideoDecoderFactory::MessageToMethodInfo_(mojo::Message& message) { … }
const char* StableVideoDecoderFactory::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t StableVideoDecoderFactory::CreateStableVideoDecoder_Sym::IPCStableHash() { … }
# endif
StableVideoDecoderFactoryProxy::StableVideoDecoderFactoryProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void StableVideoDecoderFactoryProxy::CreateStableVideoDecoder(
::mojo::PendingReceiver<StableVideoDecoder> in_receiver, ::mojo::PendingRemote<StableVideoDecoderTracker> in_tracker) { … }
bool StableVideoDecoderFactoryStubDispatch::Accept(
StableVideoDecoderFactory* impl,
mojo::Message* message) { … }
bool StableVideoDecoderFactoryStubDispatch::AcceptWithResponder(
StableVideoDecoderFactory* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kStableVideoDecoderFactoryValidationInfo[] = …;
bool StableVideoDecoderFactoryRequestValidator::Accept(mojo::Message* message) { … }
const char StableVideoDecoderFactoryProcess::Name_[] = …;
StableVideoDecoderFactoryProcess::IPCStableHashFunction StableVideoDecoderFactoryProcess::MessageToMethodInfo_(mojo::Message& message) { … }
const char* StableVideoDecoderFactoryProcess::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t StableVideoDecoderFactoryProcess::InitializeStableVideoDecoderFactory_Sym::IPCStableHash() { … }
# endif
StableVideoDecoderFactoryProcessProxy::StableVideoDecoderFactoryProcessProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void StableVideoDecoderFactoryProcessProxy::InitializeStableVideoDecoderFactory(
::gpu::mojom::blink::GpuFeatureInfoPtr in_gpu_feature_info, ::mojo::PendingReceiver<StableVideoDecoderFactory> in_receiver) { … }
bool StableVideoDecoderFactoryProcessStubDispatch::Accept(
StableVideoDecoderFactoryProcess* impl,
mojo::Message* message) { … }
bool StableVideoDecoderFactoryProcessStubDispatch::AcceptWithResponder(
StableVideoDecoderFactoryProcess* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kStableVideoDecoderFactoryProcessValidationInfo[] = …;
bool StableVideoDecoderFactoryProcessRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace media::stable::mojom::blink {
void MediaLogInterceptorForTesting::AddLogRecord(::media::stable::mojom::blink::MediaLogRecordPtr event) { … }
MediaLogAsyncWaiter::MediaLogAsyncWaiter(
MediaLog* proxy) : … { … }
MediaLogAsyncWaiter::~MediaLogAsyncWaiter() = default;
void VideoFrameHandleReleaserInterceptorForTesting::ReleaseVideoFrame(const ::base::UnguessableToken& release_token) { … }
VideoFrameHandleReleaserAsyncWaiter::VideoFrameHandleReleaserAsyncWaiter(
VideoFrameHandleReleaser* proxy) : … { … }
VideoFrameHandleReleaserAsyncWaiter::~VideoFrameHandleReleaserAsyncWaiter() = default;
void VideoDecoderClientInterceptorForTesting::OnVideoFrameDecoded(::media::stable::mojom::blink::VideoFramePtr frame, bool can_read_without_stalling, const ::base::UnguessableToken& release_token) { … }
void VideoDecoderClientInterceptorForTesting::OnWaiting(::media::stable::mojom::blink::WaitingReason reason) { … }
VideoDecoderClientAsyncWaiter::VideoDecoderClientAsyncWaiter(
VideoDecoderClient* proxy) : … { … }
VideoDecoderClientAsyncWaiter::~VideoDecoderClientAsyncWaiter() = default;
void CdmContextEventCallbackInterceptorForTesting::EventCallback(::media::stable::mojom::blink::CdmContextEvent event) { … }
CdmContextEventCallbackAsyncWaiter::CdmContextEventCallbackAsyncWaiter(
CdmContextEventCallback* proxy) : … { … }
CdmContextEventCallbackAsyncWaiter::~CdmContextEventCallbackAsyncWaiter() = default;
void StableCdmContextInterceptorForTesting::GetHwKeyData(::media::stable::mojom::blink::DecryptConfigPtr decrypt_config, const WTF::Vector<uint8_t>& hw_identifier, GetHwKeyDataCallback callback) { … }
void StableCdmContextInterceptorForTesting::RegisterEventCallback(::mojo::PendingRemote<CdmContextEventCallback> callback) { … }
void StableCdmContextInterceptorForTesting::GetHwConfigData(GetHwConfigDataCallback callback) { … }
void StableCdmContextInterceptorForTesting::GetScreenResolutions(GetScreenResolutionsCallback callback) { … }
void StableCdmContextInterceptorForTesting::AllocateSecureBuffer(uint32_t size, AllocateSecureBufferCallback callback) { … }
void StableCdmContextInterceptorForTesting::ParseEncryptedSliceHeader(uint64_t secure_handle, uint32_t offset, const WTF::Vector<uint8_t>& stream_data, ParseEncryptedSliceHeaderCallback callback) { … }
void StableCdmContextInterceptorForTesting::DecryptVideoBuffer(::media::stable::mojom::blink::DecoderBufferPtr buffer, const WTF::Vector<uint8_t>& bytes, DecryptVideoBufferCallback callback) { … }
StableCdmContextAsyncWaiter::StableCdmContextAsyncWaiter(
StableCdmContext* proxy) : … { … }
StableCdmContextAsyncWaiter::~StableCdmContextAsyncWaiter() = default;
void StableCdmContextAsyncWaiter::GetHwKeyData(
::media::stable::mojom::blink::DecryptConfigPtr decrypt_config, const WTF::Vector<uint8_t>& hw_identifier, ::media::stable::mojom::blink::DecryptStatus* out_status, WTF::Vector<uint8_t>* out_key_data) { … }
void StableCdmContextAsyncWaiter::GetHwConfigData(
bool* out_success, WTF::Vector<uint8_t>* out_config_data) { … }
void StableCdmContextAsyncWaiter::GetScreenResolutions(
WTF::Vector<::gfx::Size>* out_resolutions) { … }
WTF::Vector<::gfx::Size> StableCdmContextAsyncWaiter::GetScreenResolutions(
) { … }
void StableCdmContextAsyncWaiter::AllocateSecureBuffer(
uint32_t size, ::mojo::PlatformHandle* out_secure_buffer) { … }
::mojo::PlatformHandle StableCdmContextAsyncWaiter::AllocateSecureBuffer(
uint32_t size) { … }
void StableCdmContextAsyncWaiter::ParseEncryptedSliceHeader(
uint64_t secure_handle, uint32_t offset, const WTF::Vector<uint8_t>& stream_data, bool* out_success, WTF::Vector<uint8_t>* out_slice_header) { … }
void StableCdmContextAsyncWaiter::DecryptVideoBuffer(
::media::stable::mojom::blink::DecoderBufferPtr buffer, const WTF::Vector<uint8_t>& bytes, ::media::stable::mojom::blink::DecryptStatus* out_status, ::media::stable::mojom::blink::DecoderBufferPtr* out_decoder_buffer, WTF::Vector<uint8_t>* out_bytes) { … }
void StableVideoDecoderInterceptorForTesting::GetSupportedConfigs(GetSupportedConfigsCallback callback) { … }
void StableVideoDecoderInterceptorForTesting::Construct(::mojo::PendingAssociatedRemote<VideoDecoderClient> client, ::mojo::PendingRemote<MediaLog> media_log, ::mojo::PendingReceiver<VideoFrameHandleReleaser> video_frame_handle_releaser, ::mojo::ScopedDataPipeConsumerHandle decoder_buffer_pipe, ::media::stable::mojom::blink::ColorSpacePtr target_color_space) { … }
void StableVideoDecoderInterceptorForTesting::Initialize(::media::stable::mojom::blink::VideoDecoderConfigPtr config, bool low_delay, ::mojo::PendingRemote<StableCdmContext> cdm_context, InitializeCallback callback) { … }
void StableVideoDecoderInterceptorForTesting::Decode(::media::stable::mojom::blink::DecoderBufferPtr buffer, DecodeCallback callback) { … }
void StableVideoDecoderInterceptorForTesting::Reset(ResetCallback callback) { … }
StableVideoDecoderAsyncWaiter::StableVideoDecoderAsyncWaiter(
StableVideoDecoder* proxy) : … { … }
StableVideoDecoderAsyncWaiter::~StableVideoDecoderAsyncWaiter() = default;
void StableVideoDecoderAsyncWaiter::GetSupportedConfigs(
WTF::Vector<::media::stable::mojom::blink::SupportedVideoDecoderConfigPtr>* out_supported_configs, ::media::stable::mojom::blink::VideoDecoderType* out_decoder_type) { … }
void StableVideoDecoderAsyncWaiter::Initialize(
::media::stable::mojom::blink::VideoDecoderConfigPtr config, bool low_delay, ::mojo::PendingRemote<StableCdmContext> cdm_context, ::media::stable::mojom::blink::StatusPtr* out_status, bool* out_needs_bitstream_conversion, int32_t* out_max_decode_requests, ::media::stable::mojom::blink::VideoDecoderType* out_decoder_type, bool* out_needs_transcryption) { … }
void StableVideoDecoderAsyncWaiter::Decode(
::media::stable::mojom::blink::DecoderBufferPtr buffer, ::media::stable::mojom::blink::StatusPtr* out_status) { … }
::media::stable::mojom::blink::StatusPtr StableVideoDecoderAsyncWaiter::Decode(
::media::stable::mojom::blink::DecoderBufferPtr buffer) { … }
void StableVideoDecoderAsyncWaiter::Reset(
) { … }
StableVideoDecoderTrackerAsyncWaiter::StableVideoDecoderTrackerAsyncWaiter(
StableVideoDecoderTracker* proxy) : … { … }
StableVideoDecoderTrackerAsyncWaiter::~StableVideoDecoderTrackerAsyncWaiter() = default;
void StableVideoDecoderFactoryInterceptorForTesting::CreateStableVideoDecoder(::mojo::PendingReceiver<StableVideoDecoder> receiver, ::mojo::PendingRemote<StableVideoDecoderTracker> tracker) { … }
StableVideoDecoderFactoryAsyncWaiter::StableVideoDecoderFactoryAsyncWaiter(
StableVideoDecoderFactory* proxy) : … { … }
StableVideoDecoderFactoryAsyncWaiter::~StableVideoDecoderFactoryAsyncWaiter() = default;
void StableVideoDecoderFactoryProcessInterceptorForTesting::InitializeStableVideoDecoderFactory(::gpu::mojom::blink::GpuFeatureInfoPtr gpu_feature_info, ::mojo::PendingReceiver<StableVideoDecoderFactory> receiver) { … }
StableVideoDecoderFactoryProcessAsyncWaiter::StableVideoDecoderFactoryProcessAsyncWaiter(
StableVideoDecoderFactoryProcess* proxy) : … { … }
StableVideoDecoderFactoryProcessAsyncWaiter::~StableVideoDecoderFactoryProcessAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif