#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_CONTENT_EXTRACTION_INNER_TEXT_MOJOM_BLINK_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_CONTENT_EXTRACTION_INNER_TEXT_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 "third_party/blink/public/mojom/content_extraction/inner_text.mojom-features.h"
#include "third_party/blink/public/mojom/content_extraction/inner_text.mojom-shared.h"
#include "third_party/blink/public/mojom/content_extraction/inner_text.mojom-blink-forward.h"
#include "third_party/blink/public/mojom/tokens/tokens.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/renderer/platform/platform_export.h"
namespace blink::mojom::blink {
class InnerTextAgentProxy;
template <typename ImplRefTraits>
class InnerTextAgentStub;
class InnerTextAgentRequestValidator;
class InnerTextAgentResponseValidator;
class PLATFORM_EXPORT InnerTextAgent
: public InnerTextAgentInterfaceBase { … };
class PLATFORM_EXPORT InnerTextAgentProxy
: public InnerTextAgent { … };
class PLATFORM_EXPORT InnerTextAgentStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<InnerTextAgent>>
class InnerTextAgentStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
InnerTextAgentStub() = default;
~InnerTextAgentStub() 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 PLATFORM_EXPORT InnerTextAgentRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT InnerTextAgentResponseValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT InnerTextSegment { … };
class PLATFORM_EXPORT InnerTextFrame { … };
template <typename T, InnerTextFrame::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, InnerTextFrame::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, InnerTextFrame::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, InnerTextFrame::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT InnerTextParams { … };
template <typename T, InnerTextParams::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, InnerTextParams::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, InnerTextParams::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, InnerTextParams::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename UnionPtrType>
InnerTextSegmentPtr InnerTextSegment::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, InnerTextSegment>::value>::type*>
bool InnerTextSegment::Equals(const T& other) const { … }
template <typename StructPtrType>
InnerTextFramePtr InnerTextFrame::Clone() const { … }
template <typename T, InnerTextFrame::EnableIfSame<T>*>
bool InnerTextFrame::Equals(const T& other_struct) const { … }
template <typename T, InnerTextFrame::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
InnerTextParamsPtr InnerTextParams::Clone() const { … }
template <typename T, InnerTextParams::EnableIfSame<T>*>
bool InnerTextParams::Equals(const T& other_struct) const { … }
template <typename T, InnerTextParams::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::InnerTextFrame::DataView,
::blink::mojom::blink::InnerTextFramePtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::InnerTextParams::DataView,
::blink::mojom::blink::InnerTextParamsPtr> { … };
template <>
struct PLATFORM_EXPORT UnionTraits<::blink::mojom::blink::InnerTextSegment::DataView,
::blink::mojom::blink::InnerTextSegmentPtr> { … };
}
#endif