#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "components/mirroring/mojom/resource_provider.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 "components/mirroring/mojom/resource_provider.mojom-params-data.h"
#include "components/mirroring/mojom/resource_provider.mojom-shared-message-ids.h"
#include "components/mirroring/mojom/resource_provider.mojom-import-headers.h"
#include "components/mirroring/mojom/resource_provider.mojom-test-utils.h"
namespace mirroring::mojom {
const char AudioStreamCreatorClient::Name_[] = …;
AudioStreamCreatorClient::IPCStableHashFunction AudioStreamCreatorClient::MessageToMethodInfo_(mojo::Message& message) { … }
const char* AudioStreamCreatorClient::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t AudioStreamCreatorClient::StreamCreated_Sym::IPCStableHash() { … }
# endif
AudioStreamCreatorClientProxy::AudioStreamCreatorClientProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void AudioStreamCreatorClientProxy::StreamCreated(
::mojo::PendingRemote<::media::mojom::AudioInputStream> in_stream, ::mojo::PendingReceiver<::media::mojom::AudioInputStreamClient> in_client_receiver, ::media::mojom::ReadOnlyAudioDataPipePtr in_data_pipe) { … }
bool AudioStreamCreatorClientStubDispatch::Accept(
AudioStreamCreatorClient* impl,
mojo::Message* message) { … }
bool AudioStreamCreatorClientStubDispatch::AcceptWithResponder(
AudioStreamCreatorClient* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kAudioStreamCreatorClientValidationInfo[] = …;
bool AudioStreamCreatorClientRequestValidator::Accept(mojo::Message* message) { … }
const char ResourceProvider::Name_[] = …;
ResourceProvider::IPCStableHashFunction ResourceProvider::MessageToMethodInfo_(mojo::Message& message) { … }
const char* ResourceProvider::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ResourceProvider::BindGpu_Sym::IPCStableHash() { … }
uint32_t ResourceProvider::GetVideoCaptureHost_Sym::IPCStableHash() { … }
uint32_t ResourceProvider::GetVideoEncoderMetricsProvider_Sym::IPCStableHash() { … }
uint32_t ResourceProvider::GetNetworkContext_Sym::IPCStableHash() { … }
uint32_t ResourceProvider::CreateAudioStream_Sym::IPCStableHash() { … }
uint32_t ResourceProvider::ConnectToRemotingSource_Sym::IPCStableHash() { … }
# endif
ResourceProviderProxy::ResourceProviderProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void ResourceProviderProxy::BindGpu(
::mojo::PendingReceiver<::viz::mojom::Gpu> in_receiver) { … }
void ResourceProviderProxy::GetVideoCaptureHost(
::mojo::PendingReceiver<::media::mojom::VideoCaptureHost> in_receiver) { … }
void ResourceProviderProxy::GetVideoEncoderMetricsProvider(
::mojo::PendingReceiver<::media::mojom::VideoEncoderMetricsProvider> in_receiver) { … }
void ResourceProviderProxy::GetNetworkContext(
::mojo::PendingReceiver<::network::mojom::NetworkContext> in_receiver) { … }
void ResourceProviderProxy::CreateAudioStream(
::mojo::PendingRemote<AudioStreamCreatorClient> in_client, const ::media::AudioParameters& in_param, uint32_t in_shared_memory_count) { … }
void ResourceProviderProxy::ConnectToRemotingSource(
::mojo::PendingRemote<::media::mojom::Remoter> in_remoter, ::mojo::PendingReceiver<::media::mojom::RemotingSource> in_receiver) { … }
bool ResourceProviderStubDispatch::Accept(
ResourceProvider* impl,
mojo::Message* message) { … }
bool ResourceProviderStubDispatch::AcceptWithResponder(
ResourceProvider* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kResourceProviderValidationInfo[] = …;
bool ResourceProviderRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace mirroring::mojom {
void AudioStreamCreatorClientInterceptorForTesting::StreamCreated(::mojo::PendingRemote<::media::mojom::AudioInputStream> stream, ::mojo::PendingReceiver<::media::mojom::AudioInputStreamClient> client_receiver, ::media::mojom::ReadOnlyAudioDataPipePtr data_pipe) { … }
AudioStreamCreatorClientAsyncWaiter::AudioStreamCreatorClientAsyncWaiter(
AudioStreamCreatorClient* proxy) : … { … }
AudioStreamCreatorClientAsyncWaiter::~AudioStreamCreatorClientAsyncWaiter() = default;
void ResourceProviderInterceptorForTesting::BindGpu(::mojo::PendingReceiver<::viz::mojom::Gpu> receiver) { … }
void ResourceProviderInterceptorForTesting::GetVideoCaptureHost(::mojo::PendingReceiver<::media::mojom::VideoCaptureHost> receiver) { … }
void ResourceProviderInterceptorForTesting::GetVideoEncoderMetricsProvider(::mojo::PendingReceiver<::media::mojom::VideoEncoderMetricsProvider> receiver) { … }
void ResourceProviderInterceptorForTesting::GetNetworkContext(::mojo::PendingReceiver<::network::mojom::NetworkContext> receiver) { … }
void ResourceProviderInterceptorForTesting::CreateAudioStream(::mojo::PendingRemote<AudioStreamCreatorClient> client, const ::media::AudioParameters& param, uint32_t shared_memory_count) { … }
void ResourceProviderInterceptorForTesting::ConnectToRemotingSource(::mojo::PendingRemote<::media::mojom::Remoter> remoter, ::mojo::PendingReceiver<::media::mojom::RemotingSource> receiver) { … }
ResourceProviderAsyncWaiter::ResourceProviderAsyncWaiter(
ResourceProvider* proxy) : … { … }
ResourceProviderAsyncWaiter::~ResourceProviderAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif