#ifndef COMPONENTS_MEDIA_ROUTER_COMMON_MOJOM_MEDIA_ROUTER_MOJOM_H_
#define COMPONENTS_MEDIA_ROUTER_COMMON_MOJOM_MEDIA_ROUTER_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 "components/media_router/common/mojom/media_router.mojom-features.h"
#include "components/media_router/common/mojom/media_router.mojom-shared.h"
#include "components/media_router/common/mojom/media_router.mojom-forward.h"
#include "components/media_router/common/mojom/logger.mojom-forward.h"
#include "components/media_router/common/mojom/debugger.mojom-forward.h"
#include "components/media_router/common/mojom/media_controller.mojom-forward.h"
#include "components/media_router/common/mojom/media_route_provider_id.mojom-forward.h"
#include "components/media_router/common/mojom/media_status.mojom-forward.h"
#include "components/media_router/common/mojom/route_request_result_code.mojom-forward.h"
#include "mojo/public/mojom/base/time.mojom.h"
#include "mojo/public/mojom/base/values.mojom-forward.h"
#include "services/network/public/mojom/ip_address.mojom.h"
#include "services/network/public/mojom/ip_endpoint.mojom.h"
#include "third_party/blink/public/mojom/presentation/presentation.mojom-forward.h"
#include "url/mojom/origin.mojom.h"
#include "url/mojom/url.mojom.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 "components/media_router/common/mojom/media_router_mojom_traits.h"
namespace media_router::mojom {
class MediaRouteProviderProxy;
template <typename ImplRefTraits>
class MediaRouteProviderStub;
class MediaRouteProviderRequestValidator;
class MediaRouteProviderResponseValidator;
class MediaRouteProvider
: public MediaRouteProviderInterfaceBase { … };
class MediaRouterProxy;
template <typename ImplRefTraits>
class MediaRouterStub;
class MediaRouterRequestValidator;
class MediaRouterResponseValidator;
class MediaRouter
: public MediaRouterInterfaceBase { … };
class MediaRouteProviderProxy
: public MediaRouteProvider { … };
class MediaRouterProxy
: public MediaRouter { … };
class MediaRouteProviderStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<MediaRouteProvider>>
class MediaRouteProviderStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
MediaRouteProviderStub() = default;
~MediaRouteProviderStub() 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 MediaRouterStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<MediaRouter>>
class MediaRouterStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
MediaRouterStub() = default;
~MediaRouterStub() 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 MediaRouteProviderRequestValidator : public mojo::MessageReceiver { … };
class MediaRouterRequestValidator : public mojo::MessageReceiver { … };
class MediaRouteProviderResponseValidator : public mojo::MessageReceiver { … };
class MediaRouterResponseValidator : public mojo::MessageReceiver { … };
class CastSessionState { … };
template <typename T, CastSessionState::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, CastSessionState::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, CastSessionState::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, CastSessionState::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class MediaSinkExtraData { … };
class ProviderState { … };
class MediaSink { … };
template <typename T, MediaSink::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, MediaSink::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, MediaSink::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, MediaSink::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class DialMediaSink { … };
template <typename T, DialMediaSink::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, DialMediaSink::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, DialMediaSink::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, DialMediaSink::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class CastMediaSink { … };
template <typename T, CastMediaSink::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, CastMediaSink::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, CastMediaSink::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, CastMediaSink::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class MediaRoute { … };
template <typename T, MediaRoute::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, MediaRoute::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, MediaRoute::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, MediaRoute::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class Issue { … };
template <typename T, Issue::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, Issue::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, Issue::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, Issue::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class RouteMessage { … };
template <typename T, RouteMessage::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, RouteMessage::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, RouteMessage::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, RouteMessage::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class RoutePresentationConnection { … };
template <typename T, RoutePresentationConnection::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, RoutePresentationConnection::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, RoutePresentationConnection::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, RoutePresentationConnection::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class CastProviderState { … };
template <typename T, CastProviderState::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, CastProviderState::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, CastProviderState::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, CastProviderState::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename UnionPtrType>
MediaSinkExtraDataPtr MediaSinkExtraData::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, MediaSinkExtraData>::value>::type*>
bool MediaSinkExtraData::Equals(const T& other) const { … }
template <typename UnionPtrType>
ProviderStatePtr ProviderState::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, ProviderState>::value>::type*>
bool ProviderState::Equals(const T& other) const { … }
template <typename StructPtrType>
MediaSinkPtr MediaSink::Clone() const { … }
template <typename T, MediaSink::EnableIfSame<T>*>
bool MediaSink::Equals(const T& other_struct) const { … }
template <typename T, MediaSink::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
DialMediaSinkPtr DialMediaSink::Clone() const { … }
template <typename T, DialMediaSink::EnableIfSame<T>*>
bool DialMediaSink::Equals(const T& other_struct) const { … }
template <typename T, DialMediaSink::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
CastMediaSinkPtr CastMediaSink::Clone() const { … }
template <typename T, CastMediaSink::EnableIfSame<T>*>
bool CastMediaSink::Equals(const T& other_struct) const { … }
template <typename T, CastMediaSink::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
MediaRoutePtr MediaRoute::Clone() const { … }
template <typename T, MediaRoute::EnableIfSame<T>*>
bool MediaRoute::Equals(const T& other_struct) const { … }
template <typename T, MediaRoute::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
IssuePtr Issue::Clone() const { … }
template <typename T, Issue::EnableIfSame<T>*>
bool Issue::Equals(const T& other_struct) const { … }
template <typename T, Issue::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
RouteMessagePtr RouteMessage::Clone() const { … }
template <typename T, RouteMessage::EnableIfSame<T>*>
bool RouteMessage::Equals(const T& other_struct) const { … }
template <typename T, RouteMessage::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
RoutePresentationConnectionPtr RoutePresentationConnection::Clone() const { … }
template <typename T, RoutePresentationConnection::EnableIfSame<T>*>
bool RoutePresentationConnection::Equals(const T& other_struct) const { … }
template <typename T, RoutePresentationConnection::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
CastSessionStatePtr CastSessionState::Clone() const { … }
template <typename T, CastSessionState::EnableIfSame<T>*>
bool CastSessionState::Equals(const T& other_struct) const { … }
template <typename T, CastSessionState::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
CastProviderStatePtr CastProviderState::Clone() const { … }
template <typename T, CastProviderState::EnableIfSame<T>*>
bool CastProviderState::Equals(const T& other_struct) const { … }
template <typename T, CastProviderState::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::media_router::mojom::MediaSink::DataView,
::media_router::mojom::MediaSinkPtr> { … };
template <>
struct StructTraits<::media_router::mojom::DialMediaSink::DataView,
::media_router::mojom::DialMediaSinkPtr> { … };
template <>
struct StructTraits<::media_router::mojom::CastMediaSink::DataView,
::media_router::mojom::CastMediaSinkPtr> { … };
template <>
struct StructTraits<::media_router::mojom::MediaRoute::DataView,
::media_router::mojom::MediaRoutePtr> { … };
template <>
struct StructTraits<::media_router::mojom::Issue::DataView,
::media_router::mojom::IssuePtr> { … };
template <>
struct StructTraits<::media_router::mojom::RouteMessage::DataView,
::media_router::mojom::RouteMessagePtr> { … };
template <>
struct StructTraits<::media_router::mojom::RoutePresentationConnection::DataView,
::media_router::mojom::RoutePresentationConnectionPtr> { … };
template <>
struct StructTraits<::media_router::mojom::CastSessionState::DataView,
::media_router::mojom::CastSessionStatePtr> { … };
template <>
struct StructTraits<::media_router::mojom::CastProviderState::DataView,
::media_router::mojom::CastProviderStatePtr> { … };
template <>
struct UnionTraits<::media_router::mojom::MediaSinkExtraData::DataView,
::media_router::mojom::MediaSinkExtraDataPtr> { … };
template <>
struct UnionTraits<::media_router::mojom::ProviderState::DataView,
::media_router::mojom::ProviderStatePtr> { … };
}
#endif