#ifndef MEDIA_MOJO_MOJOM_KEY_SYSTEM_SUPPORT_MOJOM_BLINK_H_
#define MEDIA_MOJO_MOJOM_KEY_SYSTEM_SUPPORT_MOJOM_BLINK_H_
#include <stdint.h>
#include <limits>
#include <optional>
#include <type_traits>
#include <utility>
#include "base/types/cxx23_to_underlying.h"
#include "mojo/public/cpp/bindings/clone_traits.h"
#include "mojo/public/cpp/bindings/equals_traits.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/struct_ptr.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "mojo/public/cpp/bindings/union_traits.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
#include "media/mojo/mojom/key_system_support.mojom-features.h"
#include "media/mojo/mojom/key_system_support.mojom-shared.h"
#include "media/mojo/mojom/key_system_support.mojom-blink-forward.h"
#include "media/mojo/mojom/content_decryption_module.mojom-blink-forward.h"
#include "media/mojo/mojom/media_types.mojom-blink.h"
#include "mojo/public/cpp/bindings/lib/wtf_clone_equals_util.h"
#include "mojo/public/cpp/bindings/lib/wtf_hash_util.h"
#include "third_party/blink/renderer/platform/wtf/hash_functions.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
#include "mojo/public/cpp/bindings/lib/message_size_estimator.h"
#include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h"
#include "mojo/public/cpp/bindings/lib/native_enum_serialization.h"
#include "mojo/public/cpp/bindings/lib/native_struct_serialization.h"
#include "third_party/blink/public/platform/web_common.h"
namespace media::mojom::blink {
class KeySystemSupportObserverProxy;
template <typename ImplRefTraits>
class KeySystemSupportObserverStub;
class KeySystemSupportObserverRequestValidator;
class BLINK_PLATFORM_EXPORT KeySystemSupportObserver
: public KeySystemSupportObserverInterfaceBase { … };
class KeySystemSupportProxy;
template <typename ImplRefTraits>
class KeySystemSupportStub;
class KeySystemSupportRequestValidator;
class BLINK_PLATFORM_EXPORT KeySystemSupport
: public KeySystemSupportInterfaceBase { … };
class BLINK_PLATFORM_EXPORT KeySystemSupportObserverProxy
: public KeySystemSupportObserver { … };
class BLINK_PLATFORM_EXPORT KeySystemSupportProxy
: public KeySystemSupport { … };
class BLINK_PLATFORM_EXPORT KeySystemSupportObserverStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<KeySystemSupportObserver>>
class KeySystemSupportObserverStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
KeySystemSupportObserverStub() = default;
~KeySystemSupportObserverStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class BLINK_PLATFORM_EXPORT KeySystemSupportStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<KeySystemSupport>>
class KeySystemSupportStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
KeySystemSupportStub() = default;
~KeySystemSupportStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class BLINK_PLATFORM_EXPORT KeySystemSupportObserverRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT KeySystemSupportRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT VideoCodecInfo { … };
template <typename T, VideoCodecInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, VideoCodecInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, VideoCodecInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, VideoCodecInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_PLATFORM_EXPORT CdmCapability { … };
template <typename T, CdmCapability::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, CdmCapability::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, CdmCapability::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, CdmCapability::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_PLATFORM_EXPORT KeySystemCapability { … };
template <typename T, KeySystemCapability::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, KeySystemCapability::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, KeySystemCapability::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, KeySystemCapability::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
VideoCodecInfoPtr VideoCodecInfo::Clone() const { … }
template <typename T, VideoCodecInfo::EnableIfSame<T>*>
bool VideoCodecInfo::Equals(const T& other_struct) const { … }
template <typename T, VideoCodecInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
CdmCapabilityPtr CdmCapability::Clone() const { … }
template <typename T, CdmCapability::EnableIfSame<T>*>
bool CdmCapability::Equals(const T& other_struct) const { … }
template <typename T, CdmCapability::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
KeySystemCapabilityPtr KeySystemCapability::Clone() const { … }
template <typename T, KeySystemCapability::EnableIfSame<T>*>
bool KeySystemCapability::Equals(const T& other_struct) const { … }
template <typename T, KeySystemCapability::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::media::mojom::blink::VideoCodecInfo::DataView,
::media::mojom::blink::VideoCodecInfoPtr> { … };
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::media::mojom::blink::CdmCapability::DataView,
::media::mojom::blink::CdmCapabilityPtr> { … };
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::media::mojom::blink::KeySystemCapability::DataView,
::media::mojom::blink::KeySystemCapabilityPtr> { … };
}
#endif