#ifndef SERVICES_ON_DEVICE_MODEL_PUBLIC_MOJOM_ON_DEVICE_MODEL_SERVICE_MOJOM_SHARED_H_
#define SERVICES_ON_DEVICE_MODEL_PUBLIC_MOJOM_ON_DEVICE_MODEL_SERVICE_MOJOM_SHARED_H_
#include <stdint.h>
#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>
#include "mojo/public/cpp/bindings/array_data_view.h"
#include "mojo/public/cpp/bindings/enum_traits.h"
#include "mojo/public/cpp/bindings/interface_data_view.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/map_data_view.h"
#include "mojo/public/cpp/bindings/string_data_view.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
#include "services/on_device_model/public/mojom/on_device_model_service.mojom-shared-internal.h"
#include "mojo/public/mojom/base/file.mojom-shared.h"
#include "mojo/public/mojom/base/file_path.mojom-shared.h"
#include "mojo/public/mojom/base/read_only_file.mojom-shared.h"
#include "mojo/public/mojom/base/uuid.mojom-shared.h"
#include "sandbox/policy/mojom/context.mojom-shared.h"
#include "sandbox/policy/mojom/sandbox.mojom-shared.h"
#include "services/on_device_model/public/mojom/on_device_model.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"
namespace on_device_model::mojom {
class ModelAssetsDataView;
class LoadModelParamsDataView;
}
namespace mojo {
namespace internal {
template <>
struct MojomTypeTraits<::on_device_model::mojom::ModelAssetsDataView> { … };
template <>
struct MojomTypeTraits<::on_device_model::mojom::LoadModelParamsDataView> { … };
}
}
namespace on_device_model::mojom {
enum class ModelBackendType : int32_t { … };
std::ostream& operator<<(std::ostream& os, ModelBackendType value);
inline bool IsKnownEnumValue(ModelBackendType value) { … }
enum class PlatformModelState : int32_t { … };
std::ostream& operator<<(std::ostream& os, PlatformModelState value);
inline bool IsKnownEnumValue(PlatformModelState value) { … }
inline PlatformModelState ToKnownEnumValue(PlatformModelState value) { … }
enum class FormatFeature : int32_t { … };
std::ostream& operator<<(std::ostream& os, FormatFeature value);
inline bool IsKnownEnumValue(FormatFeature value) { … }
inline FormatFeature ToKnownEnumValue(FormatFeature value) { … }
enum class SafetyFeature : int32_t { … };
std::ostream& operator<<(std::ostream& os, SafetyFeature value);
inline bool IsKnownEnumValue(SafetyFeature value) { … }
inline SafetyFeature ToKnownEnumValue(SafetyFeature value) { … }
class PlatformModelProgressObserverInterfaceBase { … };
PlatformModelProgressObserverPtrDataView;
PlatformModelProgressObserverRequestDataView;
PlatformModelProgressObserverAssociatedPtrInfoDataView;
PlatformModelProgressObserverAssociatedRequestDataView;
class OnDeviceModelServiceInterfaceBase { … };
OnDeviceModelServicePtrDataView;
OnDeviceModelServiceRequestDataView;
OnDeviceModelServiceAssociatedPtrInfoDataView;
OnDeviceModelServiceAssociatedRequestDataView;
class OnDeviceModelPlatformServiceInterfaceBase { … };
OnDeviceModelPlatformServicePtrDataView;
OnDeviceModelPlatformServiceRequestDataView;
OnDeviceModelPlatformServiceAssociatedPtrInfoDataView;
OnDeviceModelPlatformServiceAssociatedRequestDataView;
class ModelAssetsDataView { … };
class LoadModelParamsDataView { … };
}
namespace std {
template <>
struct hash<::on_device_model::mojom::ModelBackendType>
: public mojo::internal::EnumHashImpl<::on_device_model::mojom::ModelBackendType> { … };
template <>
struct hash<::on_device_model::mojom::PlatformModelState>
: public mojo::internal::EnumHashImpl<::on_device_model::mojom::PlatformModelState> { … };
template <>
struct hash<::on_device_model::mojom::FormatFeature>
: public mojo::internal::EnumHashImpl<::on_device_model::mojom::FormatFeature> { … };
template <>
struct hash<::on_device_model::mojom::SafetyFeature>
: public mojo::internal::EnumHashImpl<::on_device_model::mojom::SafetyFeature> { … };
}
namespace mojo {
namespace internal {
Serializer< ::on_device_model::mojom::ModelBackendType, MaybeConstUserType>;
}
namespace internal {
Serializer< ::on_device_model::mojom::PlatformModelState, MaybeConstUserType>;
}
namespace internal {
Serializer< ::on_device_model::mojom::FormatFeature, MaybeConstUserType>;
}
namespace internal {
Serializer< ::on_device_model::mojom::SafetyFeature, MaybeConstUserType>;
}
namespace internal {
Serializer< ::on_device_model::mojom::ModelAssetsDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::on_device_model::mojom::LoadModelParamsDataView, MaybeConstUserType>;
}
}
namespace on_device_model::mojom {
inline void ModelAssetsDataView::GetWeightsDataView(
::mojo_base::mojom::FileDataView* output) { … }
inline void ModelAssetsDataView::GetWeightsPathDataView(
::mojo_base::mojom::FilePathDataView* output) { … }
inline void ModelAssetsDataView::GetSpModelPathDataView(
::mojo_base::mojom::FilePathDataView* output) { … }
inline void ModelAssetsDataView::GetTsDataDataView(
::mojo_base::mojom::ReadOnlyFileDataView* output) { … }
inline void ModelAssetsDataView::GetTsSpModelDataView(
::mojo_base::mojom::ReadOnlyFileDataView* output) { … }
inline void ModelAssetsDataView::GetLanguageDetectionModelDataView(
::mojo_base::mojom::ReadOnlyFileDataView* output) { … }
inline void LoadModelParamsDataView::GetAssetsDataView(
ModelAssetsDataView* output) { … }
inline void LoadModelParamsDataView::GetAdaptationRanksDataView(
mojo::ArrayDataView<uint32_t>* output) { … }
}
namespace perfetto {
template <>
struct TraceFormatTraits<::on_device_model::mojom::ModelBackendType> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::on_device_model::mojom::PlatformModelState> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::on_device_model::mojom::FormatFeature> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::on_device_model::mojom::SafetyFeature> { … };
}
#endif