#ifndef SERVICES_PASSAGE_EMBEDDINGS_PUBLIC_MOJOM_PASSAGE_EMBEDDINGS_MOJOM_H_
#define SERVICES_PASSAGE_EMBEDDINGS_PUBLIC_MOJOM_PASSAGE_EMBEDDINGS_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 "services/passage_embeddings/public/mojom/passage_embeddings.mojom-features.h"
#include "services/passage_embeddings/public/mojom/passage_embeddings.mojom-shared.h"
#include "services/passage_embeddings/public/mojom/passage_embeddings.mojom-forward.h"
#include "mojo/public/mojom/base/read_only_file.mojom.h"
#include "sandbox/policy/mojom/context.mojom-forward.h"
#include "sandbox/policy/mojom/sandbox.mojom-forward.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 passage_embeddings::mojom {
class PassageEmbedderProxy;
template <typename ImplRefTraits>
class PassageEmbedderStub;
class PassageEmbedderRequestValidator;
class PassageEmbedderResponseValidator;
class PassageEmbedder
: public PassageEmbedderInterfaceBase { … };
class PassageEmbeddingsServiceProxy;
template <typename ImplRefTraits>
class PassageEmbeddingsServiceStub;
class PassageEmbeddingsServiceRequestValidator;
class PassageEmbeddingsServiceResponseValidator;
class PassageEmbeddingsService
: public PassageEmbeddingsServiceInterfaceBase { … };
class PassageEmbedderProxy
: public PassageEmbedder { … };
class PassageEmbeddingsServiceProxy
: public PassageEmbeddingsService { … };
class PassageEmbedderStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PassageEmbedder>>
class PassageEmbedderStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PassageEmbedderStub() = default;
~PassageEmbedderStub() 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 PassageEmbeddingsServiceStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PassageEmbeddingsService>>
class PassageEmbeddingsServiceStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PassageEmbeddingsServiceStub() = default;
~PassageEmbeddingsServiceStub() 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 PassageEmbedderRequestValidator : public mojo::MessageReceiver { … };
class PassageEmbeddingsServiceRequestValidator : public mojo::MessageReceiver { … };
class PassageEmbedderResponseValidator : public mojo::MessageReceiver { … };
class PassageEmbeddingsServiceResponseValidator : public mojo::MessageReceiver { … };
class PassageEmbeddingsLoadModelsParams { … };
template <typename T, PassageEmbeddingsLoadModelsParams::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PassageEmbeddingsLoadModelsParams::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PassageEmbeddingsLoadModelsParams::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PassageEmbeddingsLoadModelsParams::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PassageEmbeddingsResult { … };
template <typename T, PassageEmbeddingsResult::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PassageEmbeddingsResult::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PassageEmbeddingsResult::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PassageEmbeddingsResult::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PassageEmbeddingsLoadModelsParamsPtr PassageEmbeddingsLoadModelsParams::Clone() const { … }
template <typename T, PassageEmbeddingsLoadModelsParams::EnableIfSame<T>*>
bool PassageEmbeddingsLoadModelsParams::Equals(const T& other_struct) const { … }
template <typename T, PassageEmbeddingsLoadModelsParams::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PassageEmbeddingsResultPtr PassageEmbeddingsResult::Clone() const { … }
template <typename T, PassageEmbeddingsResult::EnableIfSame<T>*>
bool PassageEmbeddingsResult::Equals(const T& other_struct) const { … }
template <typename T, PassageEmbeddingsResult::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::passage_embeddings::mojom::PassageEmbeddingsLoadModelsParams::DataView,
::passage_embeddings::mojom::PassageEmbeddingsLoadModelsParamsPtr> { … };
template <>
struct StructTraits<::passage_embeddings::mojom::PassageEmbeddingsResult::DataView,
::passage_embeddings::mojom::PassageEmbeddingsResultPtr> { … };
}
#endif