#ifndef COMPONENTS_SERVICES_PAINT_PREVIEW_COMPOSITOR_PUBLIC_MOJOM_PAINT_PREVIEW_COMPOSITOR_MOJOM_H_
#define COMPONENTS_SERVICES_PAINT_PREVIEW_COMPOSITOR_PUBLIC_MOJOM_PAINT_PREVIEW_COMPOSITOR_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/services/paint_preview_compositor/public/mojom/paint_preview_compositor.mojom-features.h"
#include "components/services/paint_preview_compositor/public/mojom/paint_preview_compositor.mojom-shared.h"
#include "components/services/paint_preview_compositor/public/mojom/paint_preview_compositor.mojom-forward.h"
#include "components/discardable_memory/public/mojom/discardable_shared_memory_manager.mojom-forward.h"
#include "components/paint_preview/common/mojom/paint_preview_types.mojom.h"
#include "mojo/public/mojom/base/memory_pressure_level.mojom.h"
#include "mojo/public/mojom/base/proto_wrapper.mojom.h"
#include "mojo/public/mojom/base/unguessable_token.mojom.h"
#include "sandbox/policy/mojom/sandbox.mojom-forward.h"
#include "skia/public/mojom/bitmap.mojom.h"
#include "ui/gfx/geometry/mojom/geometry.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"
namespace paint_preview::mojom {
class PaintPreviewCompositorProxy;
template <typename ImplRefTraits>
class PaintPreviewCompositorStub;
class PaintPreviewCompositorRequestValidator;
class PaintPreviewCompositorResponseValidator;
class PaintPreviewCompositor
: public PaintPreviewCompositorInterfaceBase { … };
class PaintPreviewCompositorCollectionProxy;
template <typename ImplRefTraits>
class PaintPreviewCompositorCollectionStub;
class PaintPreviewCompositorCollectionRequestValidator;
class PaintPreviewCompositorCollectionResponseValidator;
class PaintPreviewCompositorCollection
: public PaintPreviewCompositorCollectionInterfaceBase { … };
class PaintPreviewCompositorProxy
: public PaintPreviewCompositor { … };
class PaintPreviewCompositorCollectionProxy
: public PaintPreviewCompositorCollection { … };
class PaintPreviewCompositorStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PaintPreviewCompositor>>
class PaintPreviewCompositorStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PaintPreviewCompositorStub() = default;
~PaintPreviewCompositorStub() 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 PaintPreviewCompositorCollectionStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PaintPreviewCompositorCollection>>
class PaintPreviewCompositorCollectionStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PaintPreviewCompositorCollectionStub() = default;
~PaintPreviewCompositorCollectionStub() 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 PaintPreviewCompositorRequestValidator : public mojo::MessageReceiver { … };
class PaintPreviewCompositorCollectionRequestValidator : public mojo::MessageReceiver { … };
class PaintPreviewCompositorResponseValidator : public mojo::MessageReceiver { … };
class PaintPreviewCompositorCollectionResponseValidator : public mojo::MessageReceiver { … };
class PaintPreviewBeginCompositeRequest { … };
template <typename T, PaintPreviewBeginCompositeRequest::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PaintPreviewBeginCompositeRequest::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PaintPreviewBeginCompositeRequest::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PaintPreviewBeginCompositeRequest::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class SubframeClipRect { … };
template <typename T, SubframeClipRect::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SubframeClipRect::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SubframeClipRect::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SubframeClipRect::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class FrameData { … };
template <typename T, FrameData::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, FrameData::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, FrameData::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, FrameData::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PaintPreviewBeginCompositeResponse { … };
template <typename T, PaintPreviewBeginCompositeResponse::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PaintPreviewBeginCompositeResponse::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PaintPreviewBeginCompositeResponse::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PaintPreviewBeginCompositeResponse::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PaintPreviewBeginCompositeRequestPtr PaintPreviewBeginCompositeRequest::Clone() const { … }
template <typename T, PaintPreviewBeginCompositeRequest::EnableIfSame<T>*>
bool PaintPreviewBeginCompositeRequest::Equals(const T& other_struct) const { … }
template <typename T, PaintPreviewBeginCompositeRequest::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
SubframeClipRectPtr SubframeClipRect::Clone() const { … }
template <typename T, SubframeClipRect::EnableIfSame<T>*>
bool SubframeClipRect::Equals(const T& other_struct) const { … }
template <typename T, SubframeClipRect::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
FrameDataPtr FrameData::Clone() const { … }
template <typename T, FrameData::EnableIfSame<T>*>
bool FrameData::Equals(const T& other_struct) const { … }
template <typename T, FrameData::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PaintPreviewBeginCompositeResponsePtr PaintPreviewBeginCompositeResponse::Clone() const { … }
template <typename T, PaintPreviewBeginCompositeResponse::EnableIfSame<T>*>
bool PaintPreviewBeginCompositeResponse::Equals(const T& other_struct) const { … }
template <typename T, PaintPreviewBeginCompositeResponse::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::paint_preview::mojom::PaintPreviewBeginCompositeRequest::DataView,
::paint_preview::mojom::PaintPreviewBeginCompositeRequestPtr> { … };
template <>
struct StructTraits<::paint_preview::mojom::SubframeClipRect::DataView,
::paint_preview::mojom::SubframeClipRectPtr> { … };
template <>
struct StructTraits<::paint_preview::mojom::FrameData::DataView,
::paint_preview::mojom::FrameDataPtr> { … };
template <>
struct StructTraits<::paint_preview::mojom::PaintPreviewBeginCompositeResponse::DataView,
::paint_preview::mojom::PaintPreviewBeginCompositeResponsePtr> { … };
}
#endif