#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "media/mojo/mojom/interface_factory.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/interface_factory.mojom-params-data.h"
#include "media/mojo/mojom/interface_factory.mojom-shared-message-ids.h"
#include "media/mojo/mojom/interface_factory.mojom-import-headers.h"
#include "media/mojo/mojom/interface_factory.mojom-test-utils.h"
namespace media::mojom {
const char InterfaceFactory::Name_[] = …;
InterfaceFactory::IPCStableHashFunction InterfaceFactory::MessageToMethodInfo_(mojo::Message& message) { … }
const char* InterfaceFactory::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t InterfaceFactory::CreateAudioDecoder_Sym::IPCStableHash() { … }
uint32_t InterfaceFactory::CreateVideoDecoder_Sym::IPCStableHash() { … }
uint32_t InterfaceFactory::CreateStableVideoDecoder_Sym::IPCStableHash() { … }
uint32_t InterfaceFactory::CreateAudioEncoder_Sym::IPCStableHash() { … }
uint32_t InterfaceFactory::CreateDefaultRenderer_Sym::IPCStableHash() { … }
uint32_t InterfaceFactory::CreateCdm_Sym::IPCStableHash() { … }
# endif
class InterfaceFactory_CreateCdm_ForwardToCallback
: public mojo::MessageReceiver { … };
InterfaceFactoryProxy::InterfaceFactoryProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void InterfaceFactoryProxy::CreateAudioDecoder(
::mojo::PendingReceiver<::media::mojom::AudioDecoder> in_audio_decoder) { … }
void InterfaceFactoryProxy::CreateVideoDecoder(
::mojo::PendingReceiver<::media::mojom::VideoDecoder> in_video_decoder, ::mojo::PendingRemote<::media::stable::mojom::StableVideoDecoder> in_dst_video_decoder) { … }
void InterfaceFactoryProxy::CreateStableVideoDecoder(
::mojo::PendingReceiver<::media::stable::mojom::StableVideoDecoder> in_video_decoder) { … }
void InterfaceFactoryProxy::CreateAudioEncoder(
::mojo::PendingReceiver<::media::mojom::AudioEncoder> in_audio_encoder) { … }
void InterfaceFactoryProxy::CreateDefaultRenderer(
const std::string& in_audio_device_id, ::mojo::PendingReceiver<::media::mojom::Renderer> in_renderer) { … }
void InterfaceFactoryProxy::CreateCdm(
const ::media::CdmConfig& in_cdm_config, CreateCdmCallback callback) { … }
class InterfaceFactory_CreateCdm_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool InterfaceFactory_CreateCdm_ForwardToCallback::Accept(
mojo::Message* message) { … }
void InterfaceFactory_CreateCdm_ProxyToResponder::Run(
::mojo::PendingRemote<::media::mojom::ContentDecryptionModule> in_cdm, ::media::mojom::CdmContextPtr in_cdm_context, ::media::CreateCdmStatus in_status) { … }
bool InterfaceFactoryStubDispatch::Accept(
InterfaceFactory* impl,
mojo::Message* message) { … }
bool InterfaceFactoryStubDispatch::AcceptWithResponder(
InterfaceFactory* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kInterfaceFactoryValidationInfo[] = …;
bool InterfaceFactoryRequestValidator::Accept(mojo::Message* message) { … }
bool InterfaceFactoryResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace media::mojom {
void InterfaceFactoryInterceptorForTesting::CreateAudioDecoder(::mojo::PendingReceiver<::media::mojom::AudioDecoder> audio_decoder) { … }
void InterfaceFactoryInterceptorForTesting::CreateVideoDecoder(::mojo::PendingReceiver<::media::mojom::VideoDecoder> video_decoder, ::mojo::PendingRemote<::media::stable::mojom::StableVideoDecoder> dst_video_decoder) { … }
void InterfaceFactoryInterceptorForTesting::CreateStableVideoDecoder(::mojo::PendingReceiver<::media::stable::mojom::StableVideoDecoder> video_decoder) { … }
void InterfaceFactoryInterceptorForTesting::CreateAudioEncoder(::mojo::PendingReceiver<::media::mojom::AudioEncoder> audio_encoder) { … }
void InterfaceFactoryInterceptorForTesting::CreateDefaultRenderer(const std::string& audio_device_id, ::mojo::PendingReceiver<::media::mojom::Renderer> renderer) { … }
void InterfaceFactoryInterceptorForTesting::CreateCdm(const ::media::CdmConfig& cdm_config, CreateCdmCallback callback) { … }
InterfaceFactoryAsyncWaiter::InterfaceFactoryAsyncWaiter(
InterfaceFactory* proxy) : … { … }
InterfaceFactoryAsyncWaiter::~InterfaceFactoryAsyncWaiter() = default;
void InterfaceFactoryAsyncWaiter::CreateCdm(
const ::media::CdmConfig& cdm_config, ::mojo::PendingRemote<::media::mojom::ContentDecryptionModule>* out_cdm, ::media::mojom::CdmContextPtr* out_cdm_context, ::media::CreateCdmStatus* out_status) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif