chromium/out/Default/gen/services/on_device_model/public/mojom/on_device_model_service.mojom-shared.h

// services/on_device_model/public/mojom/on_device_model_service.mojom-shared.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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;



}  // on_device_model::mojom

namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::on_device_model::mojom::ModelAssetsDataView> {};

template <>
struct MojomTypeTraits<::on_device_model::mojom::LoadModelParamsDataView> {};

}  // namespace internal
}  // namespace mojo


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) {}
// Interface base classes. They are used for type safety check.
class PlatformModelProgressObserverInterfaceBase {};

PlatformModelProgressObserverPtrDataView;
PlatformModelProgressObserverRequestDataView;
PlatformModelProgressObserverAssociatedPtrInfoDataView;
PlatformModelProgressObserverAssociatedRequestDataView;
class OnDeviceModelServiceInterfaceBase {};

OnDeviceModelServicePtrDataView;
OnDeviceModelServiceRequestDataView;
OnDeviceModelServiceAssociatedPtrInfoDataView;
OnDeviceModelServiceAssociatedRequestDataView;
class OnDeviceModelPlatformServiceInterfaceBase {};

OnDeviceModelPlatformServicePtrDataView;
OnDeviceModelPlatformServiceRequestDataView;
OnDeviceModelPlatformServiceAssociatedPtrInfoDataView;
OnDeviceModelPlatformServiceAssociatedRequestDataView;


class ModelAssetsDataView {};


class LoadModelParamsDataView {};


}  // on_device_model::mojom

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 std

namespace mojo {


namespace internal {

Serializer< ::on_device_model::mojom::ModelBackendType, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::on_device_model::mojom::PlatformModelState, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::on_device_model::mojom::FormatFeature, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::on_device_model::mojom::SafetyFeature, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::on_device_model::mojom::ModelAssetsDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::on_device_model::mojom::LoadModelParamsDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


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) {}



}  // on_device_model::mojom

// Declare TraceFormatTraits for enums, which should be defined in ::perfetto
// namespace.

namespace perfetto {

template <>
struct  TraceFormatTraits<::on_device_model::mojom::ModelBackendType> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::on_device_model::mojom::PlatformModelState> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::on_device_model::mojom::FormatFeature> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::on_device_model::mojom::SafetyFeature> {};

} // namespace perfetto

#endif  // SERVICES_ON_DEVICE_MODEL_PUBLIC_MOJOM_ON_DEVICE_MODEL_SERVICE_MOJOM_SHARED_H_