#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "media/mojo/mojom/audio_decoder.mojom.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/audio_decoder.mojom-params-data.h"
#include "media/mojo/mojom/audio_decoder.mojom-shared-message-ids.h"
#include "media/mojo/mojom/audio_decoder.mojom-import-headers.h"
#include "media/mojo/mojom/audio_decoder.mojom-test-utils.h"
namespace media::mojom {
SupportedAudioDecoderConfig::SupportedAudioDecoderConfig()
: … { … }
SupportedAudioDecoderConfig::SupportedAudioDecoderConfig(
::media::AudioCodec codec_in,
::media::AudioCodecProfile profile_in)
: … { … }
SupportedAudioDecoderConfig::~SupportedAudioDecoderConfig() = default;
void SupportedAudioDecoderConfig::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool SupportedAudioDecoderConfig::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char AudioDecoder::Name_[] = …;
AudioDecoder::IPCStableHashFunction AudioDecoder::MessageToMethodInfo_(mojo::Message& message) { … }
const char* AudioDecoder::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t AudioDecoder::GetSupportedConfigs_Sym::IPCStableHash() { … }
uint32_t AudioDecoder::Construct_Sym::IPCStableHash() { … }
uint32_t AudioDecoder::Initialize_Sym::IPCStableHash() { … }
uint32_t AudioDecoder::SetDataSource_Sym::IPCStableHash() { … }
uint32_t AudioDecoder::Decode_Sym::IPCStableHash() { … }
uint32_t AudioDecoder::Reset_Sym::IPCStableHash() { … }
# endif
bool AudioDecoder::GetSupportedConfigs(std::vector<::media::SupportedAudioDecoderConfig>* out_supported_configs) { … }
class AudioDecoder_GetSupportedConfigs_HandleSyncResponse
: public mojo::MessageReceiver { … };
class AudioDecoder_GetSupportedConfigs_ForwardToCallback
: public mojo::MessageReceiver { … };
class AudioDecoder_Initialize_ForwardToCallback
: public mojo::MessageReceiver { … };
class AudioDecoder_Decode_ForwardToCallback
: public mojo::MessageReceiver { … };
class AudioDecoder_Reset_ForwardToCallback
: public mojo::MessageReceiver { … };
AudioDecoderProxy::AudioDecoderProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
bool AudioDecoderProxy::GetSupportedConfigs(
std::vector<::media::SupportedAudioDecoderConfig>* out_param_supported_configs) { … }
void AudioDecoderProxy::GetSupportedConfigs(
GetSupportedConfigsCallback callback) { … }
void AudioDecoderProxy::Construct(
::mojo::PendingAssociatedRemote<AudioDecoderClient> in_client, ::mojo::PendingRemote<::media::mojom::MediaLog> in_media_log) { … }
void AudioDecoderProxy::Initialize(
const ::media::AudioDecoderConfig& in_config, const std::optional<::base::UnguessableToken>& in_cdm_id, InitializeCallback callback) { … }
void AudioDecoderProxy::SetDataSource(
::mojo::ScopedDataPipeConsumerHandle in_receive_pipe) { … }
void AudioDecoderProxy::Decode(
::media::mojom::DecoderBufferPtr in_buffer, DecodeCallback callback) { … }
void AudioDecoderProxy::Reset(
ResetCallback callback) { … }
class AudioDecoder_GetSupportedConfigs_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool AudioDecoder_GetSupportedConfigs_ForwardToCallback::Accept(
mojo::Message* message) { … }
void AudioDecoder_GetSupportedConfigs_ProxyToResponder::Run(
const std::vector<::media::SupportedAudioDecoderConfig>& in_supported_configs) { … }
bool AudioDecoder_GetSupportedConfigs_HandleSyncResponse::Accept(
mojo::Message* message) { … }
class AudioDecoder_Initialize_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool AudioDecoder_Initialize_ForwardToCallback::Accept(
mojo::Message* message) { … }
void AudioDecoder_Initialize_ProxyToResponder::Run(
const ::media::DecoderStatus& in_success, bool in_needs_bitstream_conversion, ::media::AudioDecoderType in_decoder_type) { … }
class AudioDecoder_Decode_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool AudioDecoder_Decode_ForwardToCallback::Accept(
mojo::Message* message) { … }
void AudioDecoder_Decode_ProxyToResponder::Run(
const ::media::DecoderStatus& in_status) { … }
class AudioDecoder_Reset_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool AudioDecoder_Reset_ForwardToCallback::Accept(
mojo::Message* message) { … }
void AudioDecoder_Reset_ProxyToResponder::Run(
) { … }
bool AudioDecoderStubDispatch::Accept(
AudioDecoder* impl,
mojo::Message* message) { … }
bool AudioDecoderStubDispatch::AcceptWithResponder(
AudioDecoder* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kAudioDecoderValidationInfo[] = …;
bool AudioDecoderRequestValidator::Accept(mojo::Message* message) { … }
bool AudioDecoderResponseValidator::Accept(mojo::Message* message) { … }
const char AudioDecoderClient::Name_[] = …;
AudioDecoderClient::IPCStableHashFunction AudioDecoderClient::MessageToMethodInfo_(mojo::Message& message) { … }
const char* AudioDecoderClient::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t AudioDecoderClient::OnBufferDecoded_Sym::IPCStableHash() { … }
uint32_t AudioDecoderClient::OnWaiting_Sym::IPCStableHash() { … }
# endif
AudioDecoderClientProxy::AudioDecoderClientProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void AudioDecoderClientProxy::OnBufferDecoded(
::media::mojom::AudioBufferPtr in_buffer) { … }
void AudioDecoderClientProxy::OnWaiting(
::media::WaitingReason in_reason) { … }
bool AudioDecoderClientStubDispatch::Accept(
AudioDecoderClient* impl,
mojo::Message* message) { … }
bool AudioDecoderClientStubDispatch::AcceptWithResponder(
AudioDecoderClient* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kAudioDecoderClientValidationInfo[] = …;
bool AudioDecoderClientRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::media::mojom::SupportedAudioDecoderConfig::DataView, ::media::mojom::SupportedAudioDecoderConfigPtr>::Read(
::media::mojom::SupportedAudioDecoderConfig::DataView input,
::media::mojom::SupportedAudioDecoderConfigPtr* output) { … }
}
namespace media::mojom {
void AudioDecoderInterceptorForTesting::GetSupportedConfigs(GetSupportedConfigsCallback callback) { … }
void AudioDecoderInterceptorForTesting::Construct(::mojo::PendingAssociatedRemote<AudioDecoderClient> client, ::mojo::PendingRemote<::media::mojom::MediaLog> media_log) { … }
void AudioDecoderInterceptorForTesting::Initialize(const ::media::AudioDecoderConfig& config, const std::optional<::base::UnguessableToken>& cdm_id, InitializeCallback callback) { … }
void AudioDecoderInterceptorForTesting::SetDataSource(::mojo::ScopedDataPipeConsumerHandle receive_pipe) { … }
void AudioDecoderInterceptorForTesting::Decode(::media::mojom::DecoderBufferPtr buffer, DecodeCallback callback) { … }
void AudioDecoderInterceptorForTesting::Reset(ResetCallback callback) { … }
AudioDecoderAsyncWaiter::AudioDecoderAsyncWaiter(
AudioDecoder* proxy) : … { … }
AudioDecoderAsyncWaiter::~AudioDecoderAsyncWaiter() = default;
void AudioDecoderAsyncWaiter::GetSupportedConfigs(
std::vector<::media::SupportedAudioDecoderConfig>* out_supported_configs) { … }
std::vector<::media::SupportedAudioDecoderConfig> AudioDecoderAsyncWaiter::GetSupportedConfigs(
) { … }
void AudioDecoderAsyncWaiter::Initialize(
const ::media::AudioDecoderConfig& config, const std::optional<::base::UnguessableToken>& cdm_id, ::media::DecoderStatus* out_success, bool* out_needs_bitstream_conversion, ::media::AudioDecoderType* out_decoder_type) { … }
void AudioDecoderAsyncWaiter::Decode(
::media::mojom::DecoderBufferPtr buffer, ::media::DecoderStatus* out_status) { … }
::media::DecoderStatus AudioDecoderAsyncWaiter::Decode(
::media::mojom::DecoderBufferPtr buffer) { … }
void AudioDecoderAsyncWaiter::Reset(
) { … }
void AudioDecoderClientInterceptorForTesting::OnBufferDecoded(::media::mojom::AudioBufferPtr buffer) { … }
void AudioDecoderClientInterceptorForTesting::OnWaiting(::media::WaitingReason reason) { … }
AudioDecoderClientAsyncWaiter::AudioDecoderClientAsyncWaiter(
AudioDecoderClient* proxy) : … { … }
AudioDecoderClientAsyncWaiter::~AudioDecoderClientAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif