#ifndef COMPONENTS_CONTINUOUS_SEARCH_COMMON_PUBLIC_MOJOM_CONTINUOUS_SEARCH_MOJOM_H_
#define COMPONENTS_CONTINUOUS_SEARCH_COMMON_PUBLIC_MOJOM_CONTINUOUS_SEARCH_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/continuous_search/common/public/mojom/continuous_search.mojom-features.h"
#include "components/continuous_search/common/public/mojom/continuous_search.mojom-shared.h"
#include "components/continuous_search/common/public/mojom/continuous_search.mojom-forward.h"
#include "mojo/public/mojom/base/string16.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 continuous_search::mojom {
class SearchResultExtractorProxy;
template <typename ImplRefTraits>
class SearchResultExtractorStub;
class SearchResultExtractorRequestValidator;
class SearchResultExtractorResponseValidator;
class SearchResultExtractor
: public SearchResultExtractorInterfaceBase { … };
class SearchResultExtractorProxy
: public SearchResultExtractor { … };
class SearchResultExtractorStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<SearchResultExtractor>>
class SearchResultExtractorStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
SearchResultExtractorStub() = default;
~SearchResultExtractorStub() 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 SearchResultExtractorRequestValidator : public mojo::MessageReceiver { … };
class SearchResultExtractorResponseValidator : public mojo::MessageReceiver { … };
class SearchResult { … };
template <typename T, SearchResult::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SearchResult::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SearchResult::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SearchResult::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class ResultGroup { … };
template <typename T, ResultGroup::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, ResultGroup::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, ResultGroup::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, ResultGroup::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class CategoryResults { … };
template <typename T, CategoryResults::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, CategoryResults::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, CategoryResults::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, CategoryResults::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
SearchResultPtr SearchResult::Clone() const { … }
template <typename T, SearchResult::EnableIfSame<T>*>
bool SearchResult::Equals(const T& other_struct) const { … }
template <typename T, SearchResult::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
ResultGroupPtr ResultGroup::Clone() const { … }
template <typename T, ResultGroup::EnableIfSame<T>*>
bool ResultGroup::Equals(const T& other_struct) const { … }
template <typename T, ResultGroup::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
CategoryResultsPtr CategoryResults::Clone() const { … }
template <typename T, CategoryResults::EnableIfSame<T>*>
bool CategoryResults::Equals(const T& other_struct) const { … }
template <typename T, CategoryResults::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::continuous_search::mojom::SearchResult::DataView,
::continuous_search::mojom::SearchResultPtr> { … };
template <>
struct StructTraits<::continuous_search::mojom::ResultGroup::DataView,
::continuous_search::mojom::ResultGroupPtr> { … };
template <>
struct StructTraits<::continuous_search::mojom::CategoryResults::DataView,
::continuous_search::mojom::CategoryResultsPtr> { … };
}
#endif