#ifndef MEDIA_MOJO_MOJOM_AUDIO_OUTPUT_STREAM_MOJOM_BLINK_H_
#define MEDIA_MOJO_MOJOM_AUDIO_OUTPUT_STREAM_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_output_stream.mojom-features.h"
#include "media/mojo/mojom/audio_output_stream.mojom-shared.h"
#include "media/mojo/mojom/audio_output_stream.mojom-blink-forward.h"
#include "media/mojo/mojom/audio_data_pipe.mojom-blink-forward.h"
#include "media/mojo/mojom/audio_parameters.mojom-blink.h"
#include "media/mojo/mojom/media_types.mojom-blink-forward.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 "third_party/blink/public/platform/web_common.h"
namespace media::mojom::blink {
class AudioOutputStreamProxy;
template <typename ImplRefTraits>
class AudioOutputStreamStub;
class AudioOutputStreamRequestValidator;
class BLINK_PLATFORM_EXPORT AudioOutputStream
: public AudioOutputStreamInterfaceBase { … };
class AudioOutputStreamObserverProxy;
template <typename ImplRefTraits>
class AudioOutputStreamObserverStub;
class AudioOutputStreamObserverRequestValidator;
class BLINK_PLATFORM_EXPORT AudioOutputStreamObserver
: public AudioOutputStreamObserverInterfaceBase { … };
class AudioOutputStreamProviderProxy;
template <typename ImplRefTraits>
class AudioOutputStreamProviderStub;
class AudioOutputStreamProviderRequestValidator;
class BLINK_PLATFORM_EXPORT AudioOutputStreamProvider
: public AudioOutputStreamProviderInterfaceBase { … };
class AudioOutputStreamProviderClientProxy;
template <typename ImplRefTraits>
class AudioOutputStreamProviderClientStub;
class AudioOutputStreamProviderClientRequestValidator;
class BLINK_PLATFORM_EXPORT AudioOutputStreamProviderClient
: public AudioOutputStreamProviderClientInterfaceBase { … };
class DeviceSwitchInterfaceProxy;
template <typename ImplRefTraits>
class DeviceSwitchInterfaceStub;
class DeviceSwitchInterfaceRequestValidator;
class BLINK_PLATFORM_EXPORT DeviceSwitchInterface
: public DeviceSwitchInterfaceInterfaceBase { … };
class BLINK_PLATFORM_EXPORT AudioOutputStreamProxy
: public AudioOutputStream { … };
class BLINK_PLATFORM_EXPORT AudioOutputStreamObserverProxy
: public AudioOutputStreamObserver { … };
class BLINK_PLATFORM_EXPORT AudioOutputStreamProviderProxy
: public AudioOutputStreamProvider { … };
class BLINK_PLATFORM_EXPORT AudioOutputStreamProviderClientProxy
: public AudioOutputStreamProviderClient { … };
class BLINK_PLATFORM_EXPORT DeviceSwitchInterfaceProxy
: public DeviceSwitchInterface { … };
class BLINK_PLATFORM_EXPORT AudioOutputStreamStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<AudioOutputStream>>
class AudioOutputStreamStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
AudioOutputStreamStub() = default;
~AudioOutputStreamStub() 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 AudioOutputStreamObserverStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<AudioOutputStreamObserver>>
class AudioOutputStreamObserverStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
AudioOutputStreamObserverStub() = default;
~AudioOutputStreamObserverStub() 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 AudioOutputStreamProviderStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<AudioOutputStreamProvider>>
class AudioOutputStreamProviderStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
AudioOutputStreamProviderStub() = default;
~AudioOutputStreamProviderStub() 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 AudioOutputStreamProviderClientStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<AudioOutputStreamProviderClient>>
class AudioOutputStreamProviderClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
AudioOutputStreamProviderClientStub() = default;
~AudioOutputStreamProviderClientStub() 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 DeviceSwitchInterfaceStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<DeviceSwitchInterface>>
class DeviceSwitchInterfaceStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
DeviceSwitchInterfaceStub() = default;
~DeviceSwitchInterfaceStub() 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 AudioOutputStreamRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT AudioOutputStreamObserverRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT AudioOutputStreamProviderRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT AudioOutputStreamProviderClientRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT DeviceSwitchInterfaceRequestValidator : public mojo::MessageReceiver { … };
}
namespace mojo {
}
#endif