chromium/out/Default/gen/third_party/blink/public/mojom/mediastream/media_stream.mojom.h

// third_party/blink/public/mojom/mediastream/media_stream.mojom.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_MEDIASTREAM_MEDIA_STREAM_MOJOM_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_MEDIASTREAM_MEDIA_STREAM_MOJOM_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"  // IWYU pragma: export
#include "third_party/blink/public/mojom/mediastream/media_stream.mojom-shared.h"  // IWYU pragma: export
#include "third_party/blink/public/mojom/mediastream/media_stream.mojom-forward.h"  // IWYU pragma: export
#include "media/capture/mojom/video_capture_types.mojom.h"
#include "media/mojo/mojom/audio_parameters.mojom.h"
#include "media/mojo/mojom/display_media_information.mojom.h"
#include "mojo/public/mojom/base/token.mojom.h"
#include "mojo/public/mojom/base/unguessable_token.mojom.h"
#include "third_party/blink/public/mojom/mediastream/media_devices.mojom-forward.h"
#include <string>
#include <vector>

#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/public/common/common_export.h"




namespace blink::mojom {

class MediaStreamDeviceObserverProxy;

template <typename ImplRefTraits>
class MediaStreamDeviceObserverStub;

class MediaStreamDeviceObserverRequestValidator;


class BLINK_COMMON_EXPORT MediaStreamDeviceObserver
    : public MediaStreamDeviceObserverInterfaceBase {};

class MediaStreamDispatcherHostProxy;

template <typename ImplRefTraits>
class MediaStreamDispatcherHostStub;

class MediaStreamDispatcherHostRequestValidator;
class MediaStreamDispatcherHostResponseValidator;


class BLINK_COMMON_EXPORT MediaStreamDispatcherHost
    : public MediaStreamDispatcherHostInterfaceBase {};

class MediaStreamTrackMetricsHostProxy;

template <typename ImplRefTraits>
class MediaStreamTrackMetricsHostStub;

class MediaStreamTrackMetricsHostRequestValidator;


class BLINK_COMMON_EXPORT MediaStreamTrackMetricsHost
    : public MediaStreamTrackMetricsHostInterfaceBase {};



class BLINK_COMMON_EXPORT MediaStreamDeviceObserverProxy
    : public MediaStreamDeviceObserver {};



class BLINK_COMMON_EXPORT MediaStreamDispatcherHostProxy
    : public MediaStreamDispatcherHost {};



class BLINK_COMMON_EXPORT MediaStreamTrackMetricsHostProxy
    : public MediaStreamTrackMetricsHost {};
class BLINK_COMMON_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 BLINK_COMMON_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 BLINK_COMMON_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 BLINK_COMMON_EXPORT MediaStreamDeviceObserverRequestValidator : public mojo::MessageReceiver {};
class BLINK_COMMON_EXPORT MediaStreamDispatcherHostRequestValidator : public mojo::MessageReceiver {};
class BLINK_COMMON_EXPORT MediaStreamTrackMetricsHostRequestValidator : public mojo::MessageReceiver {};
class BLINK_COMMON_EXPORT MediaStreamDispatcherHostResponseValidator : public mojo::MessageReceiver {};





class BLINK_COMMON_EXPORT SearchOnlyByDeviceId {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 BLINK_COMMON_EXPORT CapturedWheelAction {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 BLINK_COMMON_EXPORT StreamSelectionInfo {};






class BLINK_COMMON_EXPORT SearchBySessionId {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 BLINK_COMMON_EXPORT MediaStreamDevice {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 BLINK_COMMON_EXPORT TrackControls {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 BLINK_COMMON_EXPORT StreamControls {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 BLINK_COMMON_EXPORT GetOpenDeviceResponse {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 BLINK_COMMON_EXPORT StreamDevices {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 BLINK_COMMON_EXPORT StreamDevicesSet {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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) {}


}  // blink::mojom

namespace mojo {


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::SearchOnlyByDeviceId::DataView,
                                         ::blink::mojom::SearchOnlyByDeviceIdPtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::SearchBySessionId::DataView,
                                         ::blink::mojom::SearchBySessionIdPtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::MediaStreamDevice::DataView,
                                         ::blink::mojom::MediaStreamDevicePtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::TrackControls::DataView,
                                         ::blink::mojom::TrackControlsPtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::StreamControls::DataView,
                                         ::blink::mojom::StreamControlsPtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::GetOpenDeviceResponse::DataView,
                                         ::blink::mojom::GetOpenDeviceResponsePtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::CapturedWheelAction::DataView,
                                         ::blink::mojom::CapturedWheelActionPtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::StreamDevices::DataView,
                                         ::blink::mojom::StreamDevicesPtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::StreamDevicesSet::DataView,
                                         ::blink::mojom::StreamDevicesSetPtr> {};


template <>
struct BLINK_COMMON_EXPORT UnionTraits<::blink::mojom::StreamSelectionInfo::DataView,
                                        ::blink::mojom::StreamSelectionInfoPtr> {};

}  // namespace mojo

#endif  // THIRD_PARTY_BLINK_PUBLIC_MOJOM_MEDIASTREAM_MEDIA_STREAM_MOJOM_H_