#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "media/mojo/mojom/key_system_support.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/key_system_support.mojom-params-data.h"
#include "media/mojo/mojom/key_system_support.mojom-shared-message-ids.h"
#include "media/mojo/mojom/key_system_support.mojom-import-headers.h"
#include "media/mojo/mojom/key_system_support.mojom-test-utils.h"
namespace media::mojom {
VideoCodecInfo::VideoCodecInfo()
: … { … }
VideoCodecInfo::VideoCodecInfo(
std::vector<::media::VideoCodecProfile> supported_profiles_in,
bool supports_clear_lead_in)
: … { … }
VideoCodecInfo::~VideoCodecInfo() = default;
void VideoCodecInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool VideoCodecInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CdmCapability::CdmCapability()
: … { … }
CdmCapability::CdmCapability(
std::vector<::media::AudioCodec> audio_codecs_in,
base::flat_map<::media::VideoCodec, VideoCodecInfoPtr> video_codecs_in,
std::vector<::media::EncryptionScheme> encryption_schemes_in,
std::vector<::media::CdmSessionType> session_types_in)
: … { … }
CdmCapability::~CdmCapability() = default;
void CdmCapability::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool CdmCapability::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
KeySystemCapability::KeySystemCapability()
: … { … }
KeySystemCapability::KeySystemCapability(
const std::optional<::media::CdmCapability>& sw_secure_capability_in,
const std::optional<::media::CdmCapability>& hw_secure_capability_in)
: … { … }
KeySystemCapability::~KeySystemCapability() = default;
void KeySystemCapability::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool KeySystemCapability::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char KeySystemSupportObserver::Name_[] = …;
KeySystemSupportObserver::IPCStableHashFunction KeySystemSupportObserver::MessageToMethodInfo_(mojo::Message& message) { … }
const char* KeySystemSupportObserver::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t KeySystemSupportObserver::OnKeySystemSupportUpdated_Sym::IPCStableHash() { … }
# endif
KeySystemSupportObserverProxy::KeySystemSupportObserverProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void KeySystemSupportObserverProxy::OnKeySystemSupportUpdated(
const base::flat_map<std::string, ::media::KeySystemCapability>& in_key_systems) { … }
bool KeySystemSupportObserverStubDispatch::Accept(
KeySystemSupportObserver* impl,
mojo::Message* message) { … }
bool KeySystemSupportObserverStubDispatch::AcceptWithResponder(
KeySystemSupportObserver* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kKeySystemSupportObserverValidationInfo[] = …;
bool KeySystemSupportObserverRequestValidator::Accept(mojo::Message* message) { … }
const char KeySystemSupport::Name_[] = …;
KeySystemSupport::IPCStableHashFunction KeySystemSupport::MessageToMethodInfo_(mojo::Message& message) { … }
const char* KeySystemSupport::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t KeySystemSupport::AddObserver_Sym::IPCStableHash() { … }
# endif
KeySystemSupportProxy::KeySystemSupportProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void KeySystemSupportProxy::AddObserver(
::mojo::PendingRemote<KeySystemSupportObserver> in_observer) { … }
bool KeySystemSupportStubDispatch::Accept(
KeySystemSupport* impl,
mojo::Message* message) { … }
bool KeySystemSupportStubDispatch::AcceptWithResponder(
KeySystemSupport* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kKeySystemSupportValidationInfo[] = …;
bool KeySystemSupportRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::media::mojom::VideoCodecInfo::DataView, ::media::mojom::VideoCodecInfoPtr>::Read(
::media::mojom::VideoCodecInfo::DataView input,
::media::mojom::VideoCodecInfoPtr* output) { … }
bool StructTraits<::media::mojom::CdmCapability::DataView, ::media::mojom::CdmCapabilityPtr>::Read(
::media::mojom::CdmCapability::DataView input,
::media::mojom::CdmCapabilityPtr* output) { … }
bool StructTraits<::media::mojom::KeySystemCapability::DataView, ::media::mojom::KeySystemCapabilityPtr>::Read(
::media::mojom::KeySystemCapability::DataView input,
::media::mojom::KeySystemCapabilityPtr* output) { … }
}
namespace media::mojom {
void KeySystemSupportObserverInterceptorForTesting::OnKeySystemSupportUpdated(const base::flat_map<std::string, ::media::KeySystemCapability>& key_systems) { … }
KeySystemSupportObserverAsyncWaiter::KeySystemSupportObserverAsyncWaiter(
KeySystemSupportObserver* proxy) : … { … }
KeySystemSupportObserverAsyncWaiter::~KeySystemSupportObserverAsyncWaiter() = default;
void KeySystemSupportInterceptorForTesting::AddObserver(::mojo::PendingRemote<KeySystemSupportObserver> observer) { … }
KeySystemSupportAsyncWaiter::KeySystemSupportAsyncWaiter(
KeySystemSupport* proxy) : … { … }
KeySystemSupportAsyncWaiter::~KeySystemSupportAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif