#ifndef SERVICES_MEDIA_SESSION_PUBLIC_MOJOM_AUDIO_FOCUS_MOJOM_BLINK_H_
#define SERVICES_MEDIA_SESSION_PUBLIC_MOJOM_AUDIO_FOCUS_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 "services/media_session/public/mojom/audio_focus.mojom-features.h"
#include "services/media_session/public/mojom/audio_focus.mojom-shared.h"
#include "services/media_session/public/mojom/audio_focus.mojom-blink-forward.h"
#include "mojo/public/mojom/base/unguessable_token.mojom-blink.h"
#include "services/media_session/public/mojom/media_session.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 "base/token.h"
#include "third_party/blink/public/platform/web_common.h"
namespace media_session::mojom::blink {
class AudioFocusObserverProxy;
template <typename ImplRefTraits>
class AudioFocusObserverStub;
class AudioFocusObserverRequestValidator;
class BLINK_PLATFORM_EXPORT AudioFocusObserver
: public AudioFocusObserverInterfaceBase { … };
class AudioFocusRequestClientProxy;
template <typename ImplRefTraits>
class AudioFocusRequestClientStub;
class AudioFocusRequestClientRequestValidator;
class AudioFocusRequestClientResponseValidator;
class BLINK_PLATFORM_EXPORT AudioFocusRequestClient
: public AudioFocusRequestClientInterfaceBase { … };
class AudioFocusManagerProxy;
template <typename ImplRefTraits>
class AudioFocusManagerStub;
class AudioFocusManagerRequestValidator;
class AudioFocusManagerResponseValidator;
class BLINK_PLATFORM_EXPORT AudioFocusManager
: public AudioFocusManagerInterfaceBase { … };
class AudioFocusManagerDebugProxy;
template <typename ImplRefTraits>
class AudioFocusManagerDebugStub;
class AudioFocusManagerDebugRequestValidator;
class AudioFocusManagerDebugResponseValidator;
class BLINK_PLATFORM_EXPORT AudioFocusManagerDebug
: public AudioFocusManagerDebugInterfaceBase { … };
class BLINK_PLATFORM_EXPORT AudioFocusObserverProxy
: public AudioFocusObserver { … };
class BLINK_PLATFORM_EXPORT AudioFocusRequestClientProxy
: public AudioFocusRequestClient { … };
class BLINK_PLATFORM_EXPORT AudioFocusManagerProxy
: public AudioFocusManager { … };
class BLINK_PLATFORM_EXPORT AudioFocusManagerDebugProxy
: public AudioFocusManagerDebug { … };
class BLINK_PLATFORM_EXPORT AudioFocusObserverStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<AudioFocusObserver>>
class AudioFocusObserverStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
AudioFocusObserverStub() = default;
~AudioFocusObserverStub() 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 AudioFocusRequestClientStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<AudioFocusRequestClient>>
class AudioFocusRequestClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
AudioFocusRequestClientStub() = default;
~AudioFocusRequestClientStub() 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 AudioFocusManagerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<AudioFocusManager>>
class AudioFocusManagerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
AudioFocusManagerStub() = default;
~AudioFocusManagerStub() 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 AudioFocusManagerDebugStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<AudioFocusManagerDebug>>
class AudioFocusManagerDebugStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
AudioFocusManagerDebugStub() = default;
~AudioFocusManagerDebugStub() 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 AudioFocusObserverRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT AudioFocusRequestClientRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT AudioFocusManagerRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT AudioFocusManagerDebugRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT AudioFocusRequestClientResponseValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT AudioFocusManagerResponseValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT AudioFocusManagerDebugResponseValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT AudioFocusRequestState { … };
template <typename T, AudioFocusRequestState::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, AudioFocusRequestState::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, AudioFocusRequestState::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, AudioFocusRequestState::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
AudioFocusRequestStatePtr AudioFocusRequestState::Clone() const { … }
template <typename T, AudioFocusRequestState::EnableIfSame<T>*>
bool AudioFocusRequestState::Equals(const T& other_struct) const { … }
template <typename T, AudioFocusRequestState::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::media_session::mojom::blink::AudioFocusRequestState::DataView,
::media_session::mojom::blink::AudioFocusRequestStatePtr> { … };
}
#endif