#ifndef MEDIA_MOJO_MOJOM_WEBRTC_VIDEO_PERF_MOJOM_BLINK_H_
#define MEDIA_MOJO_MOJOM_WEBRTC_VIDEO_PERF_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/webrtc_video_perf.mojom-features.h"
#include "media/mojo/mojom/webrtc_video_perf.mojom-shared.h"
#include "media/mojo/mojom/webrtc_video_perf.mojom-blink-forward.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 "mojo/public/cpp/bindings/lib/native_enum_serialization.h"
#include "mojo/public/cpp/bindings/lib/native_struct_serialization.h"
#include "third_party/blink/public/platform/web_common.h"
namespace media::mojom::blink {
class WebrtcVideoPerfRecorderProxy;
template <typename ImplRefTraits>
class WebrtcVideoPerfRecorderStub;
class WebrtcVideoPerfRecorderRequestValidator;
class BLINK_PLATFORM_EXPORT WebrtcVideoPerfRecorder
: public WebrtcVideoPerfRecorderInterfaceBase { … };
class WebrtcVideoPerfHistoryProxy;
template <typename ImplRefTraits>
class WebrtcVideoPerfHistoryStub;
class WebrtcVideoPerfHistoryRequestValidator;
class WebrtcVideoPerfHistoryResponseValidator;
class BLINK_PLATFORM_EXPORT WebrtcVideoPerfHistory
: public WebrtcVideoPerfHistoryInterfaceBase { … };
class BLINK_PLATFORM_EXPORT WebrtcVideoPerfRecorderProxy
: public WebrtcVideoPerfRecorder { … };
class BLINK_PLATFORM_EXPORT WebrtcVideoPerfHistoryProxy
: public WebrtcVideoPerfHistory { … };
class BLINK_PLATFORM_EXPORT WebrtcVideoPerfRecorderStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<WebrtcVideoPerfRecorder>>
class WebrtcVideoPerfRecorderStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
WebrtcVideoPerfRecorderStub() = default;
~WebrtcVideoPerfRecorderStub() 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 WebrtcVideoPerfHistoryStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<WebrtcVideoPerfHistory>>
class WebrtcVideoPerfHistoryStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
WebrtcVideoPerfHistoryStub() = default;
~WebrtcVideoPerfHistoryStub() 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 WebrtcVideoPerfRecorderRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT WebrtcVideoPerfHistoryRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT WebrtcVideoPerfHistoryResponseValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT WebrtcPredictionFeatures { … };
template <typename T, WebrtcPredictionFeatures::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, WebrtcPredictionFeatures::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, WebrtcPredictionFeatures::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, WebrtcPredictionFeatures::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_PLATFORM_EXPORT WebrtcVideoStats { … };
template <typename T, WebrtcVideoStats::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, WebrtcVideoStats::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, WebrtcVideoStats::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, WebrtcVideoStats::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
WebrtcPredictionFeaturesPtr WebrtcPredictionFeatures::Clone() const { … }
template <typename T, WebrtcPredictionFeatures::EnableIfSame<T>*>
bool WebrtcPredictionFeatures::Equals(const T& other_struct) const { … }
template <typename T, WebrtcPredictionFeatures::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
WebrtcVideoStatsPtr WebrtcVideoStats::Clone() const { … }
template <typename T, WebrtcVideoStats::EnableIfSame<T>*>
bool WebrtcVideoStats::Equals(const T& other_struct) const { … }
template <typename T, WebrtcVideoStats::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::media::mojom::blink::WebrtcPredictionFeatures::DataView,
::media::mojom::blink::WebrtcPredictionFeaturesPtr> { … };
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::media::mojom::blink::WebrtcVideoStats::DataView,
::media::mojom::blink::WebrtcVideoStatsPtr> { … };
}
#endif