#ifndef SERVICES_VIZ_PUBLIC_MOJOM_COMPOSITING_FRAME_SINK_BUNDLE_MOJOM_BLINK_H_
#define SERVICES_VIZ_PUBLIC_MOJOM_COMPOSITING_FRAME_SINK_BUNDLE_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 "services/viz/public/mojom/compositing/frame_sink_bundle.mojom-features.h"
#include "services/viz/public/mojom/compositing/frame_sink_bundle.mojom-shared.h"
#include "services/viz/public/mojom/compositing/frame_sink_bundle.mojom-blink-forward.h"
#include "mojo/public/mojom/base/shared_memory.mojom-blink.h"
#include "services/viz/public/mojom/compositing/begin_frame_args.mojom-blink.h"
#include "services/viz/public/mojom/compositing/compositor_frame.mojom-blink.h"
#include "services/viz/public/mojom/compositing/compositor_frame_sink.mojom-blink-forward.h"
#include "services/viz/public/mojom/compositing/shared_bitmap_id.mojom-blink.h"
#include "services/viz/public/mojom/compositing/local_surface_id.mojom-blink.h"
#include "services/viz/public/mojom/compositing/frame_timing_details.mojom-blink.h"
#include "services/viz/public/mojom/compositing/returned_resource.mojom-blink.h"
#include "services/viz/public/mojom/hit_test/hit_test_region_list.mojom-blink.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 viz::mojom::blink {
class FrameSinkBundleProxy;
template <typename ImplRefTraits>
class FrameSinkBundleStub;
class FrameSinkBundleRequestValidator;
class BLINK_PLATFORM_EXPORT FrameSinkBundle
: public FrameSinkBundleInterfaceBase { … };
class FrameSinkBundleClientProxy;
template <typename ImplRefTraits>
class FrameSinkBundleClientStub;
class FrameSinkBundleClientRequestValidator;
class BLINK_PLATFORM_EXPORT FrameSinkBundleClient
: public FrameSinkBundleClientInterfaceBase { … };
class BLINK_PLATFORM_EXPORT FrameSinkBundleProxy
: public FrameSinkBundle { … };
class BLINK_PLATFORM_EXPORT FrameSinkBundleClientProxy
: public FrameSinkBundleClient { … };
class BLINK_PLATFORM_EXPORT FrameSinkBundleStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<FrameSinkBundle>>
class FrameSinkBundleStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
FrameSinkBundleStub() = default;
~FrameSinkBundleStub() 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 FrameSinkBundleClientStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<FrameSinkBundleClient>>
class FrameSinkBundleClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
FrameSinkBundleClientStub() = default;
~FrameSinkBundleClientStub() 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 FrameSinkBundleRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT FrameSinkBundleClientRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT BundledFrameSubmissionData { … };
class BLINK_PLATFORM_EXPORT BundledFrameSubmission { … };
template <typename T, BundledFrameSubmission::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, BundledFrameSubmission::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, BundledFrameSubmission::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, BundledFrameSubmission::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_PLATFORM_EXPORT BundledCompositorFrame { … };
template <typename T, BundledCompositorFrame::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, BundledCompositorFrame::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, BundledCompositorFrame::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, BundledCompositorFrame::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_PLATFORM_EXPORT BundledReturnedResources { … };
template <typename T, BundledReturnedResources::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, BundledReturnedResources::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, BundledReturnedResources::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, BundledReturnedResources::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_PLATFORM_EXPORT BeginFrameInfo { … };
template <typename T, BeginFrameInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, BeginFrameInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, BeginFrameInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, BeginFrameInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename UnionPtrType>
BundledFrameSubmissionDataPtr BundledFrameSubmissionData::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, BundledFrameSubmissionData>::value>::type*>
bool BundledFrameSubmissionData::Equals(const T& other) const { … }
template <typename StructPtrType>
BundledFrameSubmissionPtr BundledFrameSubmission::Clone() const { … }
template <typename T, BundledFrameSubmission::EnableIfSame<T>*>
bool BundledFrameSubmission::Equals(const T& other_struct) const { … }
template <typename T, BundledFrameSubmission::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
BundledCompositorFramePtr BundledCompositorFrame::Clone() const { … }
template <typename T, BundledCompositorFrame::EnableIfSame<T>*>
bool BundledCompositorFrame::Equals(const T& other_struct) const { … }
template <typename T, BundledCompositorFrame::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
BundledReturnedResourcesPtr BundledReturnedResources::Clone() const { … }
template <typename T, BundledReturnedResources::EnableIfSame<T>*>
bool BundledReturnedResources::Equals(const T& other_struct) const { … }
template <typename T, BundledReturnedResources::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
BeginFrameInfoPtr BeginFrameInfo::Clone() const { … }
template <typename T, BeginFrameInfo::EnableIfSame<T>*>
bool BeginFrameInfo::Equals(const T& other_struct) const { … }
template <typename T, BeginFrameInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::viz::mojom::blink::BundledFrameSubmission::DataView,
::viz::mojom::blink::BundledFrameSubmissionPtr> { … };
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::viz::mojom::blink::BundledCompositorFrame::DataView,
::viz::mojom::blink::BundledCompositorFramePtr> { … };
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::viz::mojom::blink::BundledReturnedResources::DataView,
::viz::mojom::blink::BundledReturnedResourcesPtr> { … };
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::viz::mojom::blink::BeginFrameInfo::DataView,
::viz::mojom::blink::BeginFrameInfoPtr> { … };
template <>
struct BLINK_PLATFORM_EXPORT UnionTraits<::viz::mojom::blink::BundledFrameSubmissionData::DataView,
::viz::mojom::blink::BundledFrameSubmissionDataPtr> { … };
}
#endif