chromium/out/Default/gen/media/mojo/mojom/audio_decoder.mojom-blink.cc

// media/mojo/mojom/audio_decoder.mojom-blink.cc is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif

#include "media/mojo/mojom/audio_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/audio_decoder.mojom-params-data.h"
#include "media/mojo/mojom/audio_decoder.mojom-shared-message-ids.h"

#include "media/mojo/mojom/audio_decoder.mojom-blink-import-headers.h"
#include "media/mojo/mojom/audio_decoder.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"


namespace media::mojom::blink {
SupportedAudioDecoderConfig::SupportedAudioDecoderConfig()
    :{}

SupportedAudioDecoderConfig::SupportedAudioDecoderConfig(
    ::media::mojom::blink::AudioCodec codec_in,
    ::media::mojom::blink::AudioCodecProfile profile_in)
    :{}

SupportedAudioDecoderConfig::~SupportedAudioDecoderConfig() = default;
size_t SupportedAudioDecoderConfig::Hash(size_t seed) const {}

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 // !BUILDFLAG(IS_FUCHSIA)
bool AudioDecoder::GetSupportedConfigs(WTF::Vector<SupportedAudioDecoderConfigPtr>* 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(
    WTF::Vector<SupportedAudioDecoderConfigPtr>* out_param_supported_configs) {}

void AudioDecoderProxy::GetSupportedConfigs(
    GetSupportedConfigsCallback callback) {}

void AudioDecoderProxy::Construct(
    ::mojo::PendingAssociatedRemote<AudioDecoderClient> in_client, ::mojo::PendingRemote<::media::mojom::blink::MediaLog> in_media_log) {}

void AudioDecoderProxy::Initialize(
    ::media::mojom::blink::AudioDecoderConfigPtr 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::blink::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(
    WTF::Vector<SupportedAudioDecoderConfigPtr> 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(
    ::media::mojom::blink::DecoderStatusPtr in_success, bool in_needs_bitstream_conversion, ::media::mojom::blink::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(
    ::media::mojom::blink::DecoderStatusPtr in_status) {}
class AudioDecoder_Reset_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool AudioDecoder_Reset_ForwardToCallback::Accept(
    mojo::Message* message) {}

void AudioDecoder_Reset_ProxyToResponder::Run(
    ) {}

// static
bool AudioDecoderStubDispatch::Accept(
    AudioDecoder* impl,
    mojo::Message* message) {}

// static
bool AudioDecoderStubDispatch::AcceptWithResponder(
    AudioDecoder* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // 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 // !BUILDFLAG(IS_FUCHSIA)

AudioDecoderClientProxy::AudioDecoderClientProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void AudioDecoderClientProxy::OnBufferDecoded(
    ::media::mojom::blink::AudioBufferPtr in_buffer) {}

void AudioDecoderClientProxy::OnWaiting(
    ::media::mojom::blink::WaitingReason in_reason) {}

// static
bool AudioDecoderClientStubDispatch::Accept(
    AudioDecoderClient* impl,
    mojo::Message* message) {}

// static
bool AudioDecoderClientStubDispatch::AcceptWithResponder(
    AudioDecoderClient* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kAudioDecoderClientValidationInfo[] =;

bool AudioDecoderClientRequestValidator::Accept(mojo::Message* message) {}



}  // media::mojom::blink


namespace mojo {


// static
bool StructTraits<::media::mojom::blink::SupportedAudioDecoderConfig::DataView, ::media::mojom::blink::SupportedAudioDecoderConfigPtr>::Read(
    ::media::mojom::blink::SupportedAudioDecoderConfig::DataView input,
    ::media::mojom::blink::SupportedAudioDecoderConfigPtr* output) {}

}  // namespace mojo


// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.


namespace media::mojom::blink {


void AudioDecoderInterceptorForTesting::GetSupportedConfigs(GetSupportedConfigsCallback callback) {}
void AudioDecoderInterceptorForTesting::Construct(::mojo::PendingAssociatedRemote<AudioDecoderClient> client, ::mojo::PendingRemote<::media::mojom::blink::MediaLog> media_log) {}
void AudioDecoderInterceptorForTesting::Initialize(::media::mojom::blink::AudioDecoderConfigPtr config, const std::optional<::base::UnguessableToken>& cdm_id, InitializeCallback callback) {}
void AudioDecoderInterceptorForTesting::SetDataSource(::mojo::ScopedDataPipeConsumerHandle receive_pipe) {}
void AudioDecoderInterceptorForTesting::Decode(::media::mojom::blink::DecoderBufferPtr buffer, DecodeCallback callback) {}
void AudioDecoderInterceptorForTesting::Reset(ResetCallback callback) {}
AudioDecoderAsyncWaiter::AudioDecoderAsyncWaiter(
    AudioDecoder* proxy) :{}

AudioDecoderAsyncWaiter::~AudioDecoderAsyncWaiter() = default;

void AudioDecoderAsyncWaiter::GetSupportedConfigs(
    WTF::Vector<SupportedAudioDecoderConfigPtr>* out_supported_configs) {}

WTF::Vector<SupportedAudioDecoderConfigPtr> AudioDecoderAsyncWaiter::GetSupportedConfigs(
    ) {}

void AudioDecoderAsyncWaiter::Initialize(
    ::media::mojom::blink::AudioDecoderConfigPtr config, const std::optional<::base::UnguessableToken>& cdm_id, ::media::mojom::blink::DecoderStatusPtr* out_success, bool* out_needs_bitstream_conversion, ::media::mojom::blink::AudioDecoderType* out_decoder_type) {}



void AudioDecoderAsyncWaiter::Decode(
    ::media::mojom::blink::DecoderBufferPtr buffer, ::media::mojom::blink::DecoderStatusPtr* out_status) {}

::media::mojom::blink::DecoderStatusPtr AudioDecoderAsyncWaiter::Decode(
    ::media::mojom::blink::DecoderBufferPtr buffer) {}

void AudioDecoderAsyncWaiter::Reset(
    ) {}






void AudioDecoderClientInterceptorForTesting::OnBufferDecoded(::media::mojom::blink::AudioBufferPtr buffer) {}
void AudioDecoderClientInterceptorForTesting::OnWaiting(::media::mojom::blink::WaitingReason reason) {}
AudioDecoderClientAsyncWaiter::AudioDecoderClientAsyncWaiter(
    AudioDecoderClient* proxy) :{}

AudioDecoderClientAsyncWaiter::~AudioDecoderClientAsyncWaiter() = default;






}  // media::mojom::blink


#if defined(__clang__)
#pragma clang diagnostic pop
#endif