#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "media/mojo/mojom/audio_processing.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_processing.mojom-params-data.h"
#include "media/mojo/mojom/audio_processing.mojom-shared-message-ids.h"
#include "media/mojo/mojom/audio_processing.mojom-blink-import-headers.h"
#include "media/mojo/mojom/audio_processing.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace media::mojom::blink {
AudioProcessingStats::AudioProcessingStats()
: … { … }
AudioProcessingStats::AudioProcessingStats(
bool has_echo_return_loss_in,
double echo_return_loss_in,
bool has_echo_return_loss_enhancement_in,
double echo_return_loss_enhancement_in)
: … { … }
AudioProcessingStats::~AudioProcessingStats() = default;
void AudioProcessingStats::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AudioProcessingStats::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AudioProcessingSettings::AudioProcessingSettings()
: … { … }
AudioProcessingSettings::AudioProcessingSettings(
bool echo_cancellation_in,
bool noise_suppression_in,
bool transient_noise_suppression_in,
bool automatic_gain_control_in,
bool high_pass_filter_in,
bool multi_channel_capture_processing_in,
bool stereo_mirroring_in,
bool force_apm_creation_in)
: … { … }
AudioProcessingSettings::~AudioProcessingSettings() = default;
void AudioProcessingSettings::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AudioProcessingSettings::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AudioProcessingConfig::AudioProcessingConfig()
: … { … }
AudioProcessingConfig::AudioProcessingConfig(
::mojo::PendingReceiver<AudioProcessorControls> controls_receiver_in,
const ::media::AudioProcessingSettings& settings_in)
: … { … }
AudioProcessingConfig::~AudioProcessingConfig() = default;
void AudioProcessingConfig::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AudioProcessingConfig::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char AudioProcessorControls::Name_[] = …;
AudioProcessorControls::IPCStableHashFunction AudioProcessorControls::MessageToMethodInfo_(mojo::Message& message) { … }
const char* AudioProcessorControls::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t AudioProcessorControls::GetStats_Sym::IPCStableHash() { … }
uint32_t AudioProcessorControls::SetPreferredNumCaptureChannels_Sym::IPCStableHash() { … }
# endif
class AudioProcessorControls_GetStats_ForwardToCallback
: public mojo::MessageReceiver { … };
AudioProcessorControlsProxy::AudioProcessorControlsProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void AudioProcessorControlsProxy::GetStats(
GetStatsCallback callback) { … }
void AudioProcessorControlsProxy::SetPreferredNumCaptureChannels(
int32_t in_num_preferred_channels) { … }
class AudioProcessorControls_GetStats_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool AudioProcessorControls_GetStats_ForwardToCallback::Accept(
mojo::Message* message) { … }
void AudioProcessorControls_GetStats_ProxyToResponder::Run(
const ::media::AudioProcessingStats& in_stats) { … }
bool AudioProcessorControlsStubDispatch::Accept(
AudioProcessorControls* impl,
mojo::Message* message) { … }
bool AudioProcessorControlsStubDispatch::AcceptWithResponder(
AudioProcessorControls* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kAudioProcessorControlsValidationInfo[] = …;
bool AudioProcessorControlsRequestValidator::Accept(mojo::Message* message) { … }
bool AudioProcessorControlsResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::media::mojom::blink::AudioProcessingStats::DataView, ::media::mojom::blink::AudioProcessingStatsPtr>::Read(
::media::mojom::blink::AudioProcessingStats::DataView input,
::media::mojom::blink::AudioProcessingStatsPtr* output) { … }
bool StructTraits<::media::mojom::blink::AudioProcessingSettings::DataView, ::media::mojom::blink::AudioProcessingSettingsPtr>::Read(
::media::mojom::blink::AudioProcessingSettings::DataView input,
::media::mojom::blink::AudioProcessingSettingsPtr* output) { … }
bool StructTraits<::media::mojom::blink::AudioProcessingConfig::DataView, ::media::mojom::blink::AudioProcessingConfigPtr>::Read(
::media::mojom::blink::AudioProcessingConfig::DataView input,
::media::mojom::blink::AudioProcessingConfigPtr* output) { … }
}
namespace media::mojom::blink {
void AudioProcessorControlsInterceptorForTesting::GetStats(GetStatsCallback callback) { … }
void AudioProcessorControlsInterceptorForTesting::SetPreferredNumCaptureChannels(int32_t num_preferred_channels) { … }
AudioProcessorControlsAsyncWaiter::AudioProcessorControlsAsyncWaiter(
AudioProcessorControls* proxy) : … { … }
AudioProcessorControlsAsyncWaiter::~AudioProcessorControlsAsyncWaiter() = default;
void AudioProcessorControlsAsyncWaiter::GetStats(
::media::AudioProcessingStats* out_stats) { … }
::media::AudioProcessingStats AudioProcessorControlsAsyncWaiter::GetStats(
) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif