#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_MEDIASTREAM_MEDIA_STREAM_MOJOM_BLINK_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_MEDIASTREAM_MEDIA_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 "third_party/blink/public/mojom/mediastream/media_stream.mojom-features.h"
#include "third_party/blink/public/mojom/mediastream/media_stream.mojom-shared.h"
#include "third_party/blink/public/mojom/mediastream/media_stream.mojom-blink-forward.h"
#include "media/capture/mojom/video_capture_types.mojom-blink.h"
#include "media/mojo/mojom/audio_parameters.mojom-blink.h"
#include "media/mojo/mojom/display_media_information.mojom-blink.h"
#include "mojo/public/mojom/base/token.mojom-blink.h"
#include "mojo/public/mojom/base/unguessable_token.mojom-blink.h"
#include "third_party/blink/public/mojom/mediastream/media_devices.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 "mojo/public/cpp/bindings/lib/native_enum_serialization.h"
#include "mojo/public/cpp/bindings/lib/native_struct_serialization.h"
#include "third_party/blink/public/common/mediastream/media_stream_mojom_traits.h"
#include "third_party/blink/renderer/platform/platform_export.h"
namespace blink::mojom::blink {
class MediaStreamDeviceObserverProxy;
template <typename ImplRefTraits>
class MediaStreamDeviceObserverStub;
class MediaStreamDeviceObserverRequestValidator;
class PLATFORM_EXPORT MediaStreamDeviceObserver
: public MediaStreamDeviceObserverInterfaceBase { … };
class MediaStreamDispatcherHostProxy;
template <typename ImplRefTraits>
class MediaStreamDispatcherHostStub;
class MediaStreamDispatcherHostRequestValidator;
class MediaStreamDispatcherHostResponseValidator;
class PLATFORM_EXPORT MediaStreamDispatcherHost
: public MediaStreamDispatcherHostInterfaceBase { … };
class MediaStreamTrackMetricsHostProxy;
template <typename ImplRefTraits>
class MediaStreamTrackMetricsHostStub;
class MediaStreamTrackMetricsHostRequestValidator;
class PLATFORM_EXPORT MediaStreamTrackMetricsHost
: public MediaStreamTrackMetricsHostInterfaceBase { … };
class PLATFORM_EXPORT MediaStreamDeviceObserverProxy
: public MediaStreamDeviceObserver { … };
class PLATFORM_EXPORT MediaStreamDispatcherHostProxy
: public MediaStreamDispatcherHost { … };
class PLATFORM_EXPORT MediaStreamTrackMetricsHostProxy
: public MediaStreamTrackMetricsHost { … };
class PLATFORM_EXPORT MediaStreamDeviceObserverStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<MediaStreamDeviceObserver>>
class MediaStreamDeviceObserverStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
MediaStreamDeviceObserverStub() = default;
~MediaStreamDeviceObserverStub() 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 PLATFORM_EXPORT MediaStreamDispatcherHostStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<MediaStreamDispatcherHost>>
class MediaStreamDispatcherHostStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
MediaStreamDispatcherHostStub() = default;
~MediaStreamDispatcherHostStub() 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 PLATFORM_EXPORT MediaStreamTrackMetricsHostStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<MediaStreamTrackMetricsHost>>
class MediaStreamTrackMetricsHostStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
MediaStreamTrackMetricsHostStub() = default;
~MediaStreamTrackMetricsHostStub() 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 PLATFORM_EXPORT MediaStreamDeviceObserverRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT MediaStreamDispatcherHostRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT MediaStreamTrackMetricsHostRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT MediaStreamDispatcherHostResponseValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT SearchOnlyByDeviceId { … };
template <typename T, SearchOnlyByDeviceId::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SearchOnlyByDeviceId::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SearchOnlyByDeviceId::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SearchOnlyByDeviceId::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT CapturedWheelAction { … };
template <typename T, CapturedWheelAction::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, CapturedWheelAction::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, CapturedWheelAction::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, CapturedWheelAction::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT StreamSelectionInfo { … };
class PLATFORM_EXPORT SearchBySessionId { … };
template <typename T, SearchBySessionId::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SearchBySessionId::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SearchBySessionId::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SearchBySessionId::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT MediaStreamDevice { … };
template <typename T, MediaStreamDevice::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, MediaStreamDevice::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, MediaStreamDevice::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, MediaStreamDevice::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT TrackControls { … };
template <typename T, TrackControls::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, TrackControls::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, TrackControls::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, TrackControls::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT StreamControls { … };
template <typename T, StreamControls::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, StreamControls::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, StreamControls::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, StreamControls::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT GetOpenDeviceResponse { … };
template <typename T, GetOpenDeviceResponse::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, GetOpenDeviceResponse::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, GetOpenDeviceResponse::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, GetOpenDeviceResponse::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT StreamDevices { … };
template <typename T, StreamDevices::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, StreamDevices::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, StreamDevices::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, StreamDevices::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT StreamDevicesSet { … };
template <typename T, StreamDevicesSet::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, StreamDevicesSet::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, StreamDevicesSet::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, StreamDevicesSet::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename UnionPtrType>
StreamSelectionInfoPtr StreamSelectionInfo::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, StreamSelectionInfo>::value>::type*>
bool StreamSelectionInfo::Equals(const T& other) const { … }
template <typename StructPtrType>
SearchOnlyByDeviceIdPtr SearchOnlyByDeviceId::Clone() const { … }
template <typename T, SearchOnlyByDeviceId::EnableIfSame<T>*>
bool SearchOnlyByDeviceId::Equals(const T& other_struct) const { … }
template <typename T, SearchOnlyByDeviceId::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
SearchBySessionIdPtr SearchBySessionId::Clone() const { … }
template <typename T, SearchBySessionId::EnableIfSame<T>*>
bool SearchBySessionId::Equals(const T& other_struct) const { … }
template <typename T, SearchBySessionId::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
MediaStreamDevicePtr MediaStreamDevice::Clone() const { … }
template <typename T, MediaStreamDevice::EnableIfSame<T>*>
bool MediaStreamDevice::Equals(const T& other_struct) const { … }
template <typename T, MediaStreamDevice::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
TrackControlsPtr TrackControls::Clone() const { … }
template <typename T, TrackControls::EnableIfSame<T>*>
bool TrackControls::Equals(const T& other_struct) const { … }
template <typename T, TrackControls::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
StreamControlsPtr StreamControls::Clone() const { … }
template <typename T, StreamControls::EnableIfSame<T>*>
bool StreamControls::Equals(const T& other_struct) const { … }
template <typename T, StreamControls::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
GetOpenDeviceResponsePtr GetOpenDeviceResponse::Clone() const { … }
template <typename T, GetOpenDeviceResponse::EnableIfSame<T>*>
bool GetOpenDeviceResponse::Equals(const T& other_struct) const { … }
template <typename T, GetOpenDeviceResponse::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
CapturedWheelActionPtr CapturedWheelAction::Clone() const { … }
template <typename T, CapturedWheelAction::EnableIfSame<T>*>
bool CapturedWheelAction::Equals(const T& other_struct) const { … }
template <typename T, CapturedWheelAction::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
StreamDevicesPtr StreamDevices::Clone() const { … }
template <typename T, StreamDevices::EnableIfSame<T>*>
bool StreamDevices::Equals(const T& other_struct) const { … }
template <typename T, StreamDevices::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
StreamDevicesSetPtr StreamDevicesSet::Clone() const { … }
template <typename T, StreamDevicesSet::EnableIfSame<T>*>
bool StreamDevicesSet::Equals(const T& other_struct) const { … }
template <typename T, StreamDevicesSet::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::SearchOnlyByDeviceId::DataView,
::blink::mojom::blink::SearchOnlyByDeviceIdPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::SearchBySessionId::DataView,
::blink::mojom::blink::SearchBySessionIdPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::MediaStreamDevice::DataView,
::blink::mojom::blink::MediaStreamDevicePtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::TrackControls::DataView,
::blink::mojom::blink::TrackControlsPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::StreamControls::DataView,
::blink::mojom::blink::StreamControlsPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::GetOpenDeviceResponse::DataView,
::blink::mojom::blink::GetOpenDeviceResponsePtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::CapturedWheelAction::DataView,
::blink::mojom::blink::CapturedWheelActionPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::StreamDevices::DataView,
::blink::mojom::blink::StreamDevicesPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::StreamDevicesSet::DataView,
::blink::mojom::blink::StreamDevicesSetPtr> { … };
template <>
struct PLATFORM_EXPORT UnionTraits<::blink::mojom::blink::StreamSelectionInfo::DataView,
::blink::mojom::blink::StreamSelectionInfoPtr> { … };
}
#endif