#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/media/renderer_audio_input_stream_factory.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 "third_party/blink/public/mojom/media/renderer_audio_input_stream_factory.mojom-params-data.h"
#include "third_party/blink/public/mojom/media/renderer_audio_input_stream_factory.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/media/renderer_audio_input_stream_factory.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/media/renderer_audio_input_stream_factory.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace blink::mojom::blink {
const char RendererAudioInputStreamFactory::Name_[] = …;
RendererAudioInputStreamFactory::IPCStableHashFunction RendererAudioInputStreamFactory::MessageToMethodInfo_(mojo::Message& message) { … }
const char* RendererAudioInputStreamFactory::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t RendererAudioInputStreamFactory::CreateStream_Sym::IPCStableHash() { … }
uint32_t RendererAudioInputStreamFactory::AssociateInputAndOutputForAec_Sym::IPCStableHash() { … }
# endif
RendererAudioInputStreamFactoryProxy::RendererAudioInputStreamFactoryProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void RendererAudioInputStreamFactoryProxy::CreateStream(
::mojo::PendingRemote<RendererAudioInputStreamFactoryClient> in_client, const ::base::UnguessableToken& in_session_id, const ::media::AudioParameters& in_params, bool in_automatic_gain_control, uint32_t in_shared_memory_count, ::media::mojom::blink::AudioProcessingConfigPtr in_processing_config) { … }
void RendererAudioInputStreamFactoryProxy::AssociateInputAndOutputForAec(
const ::base::UnguessableToken& in_input_stream_id, const WTF::String& in_output_device_id) { … }
bool RendererAudioInputStreamFactoryStubDispatch::Accept(
RendererAudioInputStreamFactory* impl,
mojo::Message* message) { … }
bool RendererAudioInputStreamFactoryStubDispatch::AcceptWithResponder(
RendererAudioInputStreamFactory* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kRendererAudioInputStreamFactoryValidationInfo[] = …;
bool RendererAudioInputStreamFactoryRequestValidator::Accept(mojo::Message* message) { … }
const char RendererAudioInputStreamFactoryClient::Name_[] = …;
RendererAudioInputStreamFactoryClient::IPCStableHashFunction RendererAudioInputStreamFactoryClient::MessageToMethodInfo_(mojo::Message& message) { … }
const char* RendererAudioInputStreamFactoryClient::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t RendererAudioInputStreamFactoryClient::StreamCreated_Sym::IPCStableHash() { … }
# endif
RendererAudioInputStreamFactoryClientProxy::RendererAudioInputStreamFactoryClientProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void RendererAudioInputStreamFactoryClientProxy::StreamCreated(
::mojo::PendingRemote<::media::mojom::blink::AudioInputStream> in_stream, ::mojo::PendingReceiver<::media::mojom::blink::AudioInputStreamClient> in_client_request, ::media::mojom::blink::ReadOnlyAudioDataPipePtr in_data_pipe, bool in_initially_muted, const std::optional<::base::UnguessableToken>& in_stream_id) { … }
bool RendererAudioInputStreamFactoryClientStubDispatch::Accept(
RendererAudioInputStreamFactoryClient* impl,
mojo::Message* message) { … }
bool RendererAudioInputStreamFactoryClientStubDispatch::AcceptWithResponder(
RendererAudioInputStreamFactoryClient* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kRendererAudioInputStreamFactoryClientValidationInfo[] = …;
bool RendererAudioInputStreamFactoryClientRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace blink::mojom::blink {
void RendererAudioInputStreamFactoryInterceptorForTesting::CreateStream(::mojo::PendingRemote<RendererAudioInputStreamFactoryClient> client, const ::base::UnguessableToken& session_id, const ::media::AudioParameters& params, bool automatic_gain_control, uint32_t shared_memory_count, ::media::mojom::blink::AudioProcessingConfigPtr processing_config) { … }
void RendererAudioInputStreamFactoryInterceptorForTesting::AssociateInputAndOutputForAec(const ::base::UnguessableToken& input_stream_id, const WTF::String& output_device_id) { … }
RendererAudioInputStreamFactoryAsyncWaiter::RendererAudioInputStreamFactoryAsyncWaiter(
RendererAudioInputStreamFactory* proxy) : … { … }
RendererAudioInputStreamFactoryAsyncWaiter::~RendererAudioInputStreamFactoryAsyncWaiter() = default;
void RendererAudioInputStreamFactoryClientInterceptorForTesting::StreamCreated(::mojo::PendingRemote<::media::mojom::blink::AudioInputStream> stream, ::mojo::PendingReceiver<::media::mojom::blink::AudioInputStreamClient> client_request, ::media::mojom::blink::ReadOnlyAudioDataPipePtr data_pipe, bool initially_muted, const std::optional<::base::UnguessableToken>& stream_id) { … }
RendererAudioInputStreamFactoryClientAsyncWaiter::RendererAudioInputStreamFactoryClientAsyncWaiter(
RendererAudioInputStreamFactoryClient* proxy) : … { … }
RendererAudioInputStreamFactoryClientAsyncWaiter::~RendererAudioInputStreamFactoryClientAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif