#ifndef MEDIA_MOJO_MOJOM_AUDIO_ENCODER_MOJOM_BLINK_H_
#define MEDIA_MOJO_MOJOM_AUDIO_ENCODER_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/audio_encoder.mojom-features.h"
#include "media/mojo/mojom/audio_encoder.mojom-shared.h"
#include "media/mojo/mojom/audio_encoder.mojom-blink-forward.h"
#include "media/mojo/mojom/media_types.mojom-blink-forward.h"
#include "media/mojo/mojom/audio_parameters.mojom-blink.h"
#include "mojo/public/mojom/base/time.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 AudioEncoderProxy;
template <typename ImplRefTraits>
class AudioEncoderStub;
class AudioEncoderRequestValidator;
class AudioEncoderResponseValidator;
class BLINK_PLATFORM_EXPORT AudioEncoder
: public AudioEncoderInterfaceBase { … };
class AudioEncoderClientProxy;
template <typename ImplRefTraits>
class AudioEncoderClientStub;
class AudioEncoderClientRequestValidator;
class BLINK_PLATFORM_EXPORT AudioEncoderClient
: public AudioEncoderClientInterfaceBase { … };
class BLINK_PLATFORM_EXPORT AudioEncoderProxy
: public AudioEncoder { … };
class BLINK_PLATFORM_EXPORT AudioEncoderClientProxy
: public AudioEncoderClient { … };
class BLINK_PLATFORM_EXPORT AudioEncoderStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<AudioEncoder>>
class AudioEncoderStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
AudioEncoderStub() = default;
~AudioEncoderStub() 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 AudioEncoderClientStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<AudioEncoderClient>>
class AudioEncoderClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
AudioEncoderClientStub() = default;
~AudioEncoderClientStub() 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 AudioEncoderRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT AudioEncoderClientRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT AudioEncoderResponseValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT AacAudioEncoderConfig { … };
template <typename T, AacAudioEncoderConfig::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, AacAudioEncoderConfig::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, AacAudioEncoderConfig::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, AacAudioEncoderConfig::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_PLATFORM_EXPORT AudioEncoderConfig { … };
template <typename T, AudioEncoderConfig::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, AudioEncoderConfig::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, AudioEncoderConfig::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, AudioEncoderConfig::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_PLATFORM_EXPORT EncodedAudioBuffer { … };
template <typename T, EncodedAudioBuffer::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, EncodedAudioBuffer::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, EncodedAudioBuffer::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, EncodedAudioBuffer::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
AacAudioEncoderConfigPtr AacAudioEncoderConfig::Clone() const { … }
template <typename T, AacAudioEncoderConfig::EnableIfSame<T>*>
bool AacAudioEncoderConfig::Equals(const T& other_struct) const { … }
template <typename T, AacAudioEncoderConfig::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
AudioEncoderConfigPtr AudioEncoderConfig::Clone() const { … }
template <typename T, AudioEncoderConfig::EnableIfSame<T>*>
bool AudioEncoderConfig::Equals(const T& other_struct) const { … }
template <typename T, AudioEncoderConfig::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
EncodedAudioBufferPtr EncodedAudioBuffer::Clone() const { … }
template <typename T, EncodedAudioBuffer::EnableIfSame<T>*>
bool EncodedAudioBuffer::Equals(const T& other_struct) const { … }
template <typename T, EncodedAudioBuffer::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::media::mojom::blink::AacAudioEncoderConfig::DataView,
::media::mojom::blink::AacAudioEncoderConfigPtr> { … };
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::media::mojom::blink::AudioEncoderConfig::DataView,
::media::mojom::blink::AudioEncoderConfigPtr> { … };
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::media::mojom::blink::EncodedAudioBuffer::DataView,
::media::mojom::blink::EncodedAudioBufferPtr> { … };
}
#endif