#include "components/optimization_guide/core/model_info.h"
#include "base/containers/contains.h"
#include "base/memory/ptr_util.h"
#include "base/notreached.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "components/optimization_guide/core/model_util.h"
namespace optimization_guide {
ModelInfo::ModelInfo(const base::FilePath& model_file_path,
const base::flat_map<base::FilePath::StringType,
base::FilePath>& additional_files,
const int64_t version,
const std::optional<proto::Any>& model_metadata)
: … { … }
ModelInfo::~ModelInfo() = default;
ModelInfo::ModelInfo(const ModelInfo&) = default;
std::unique_ptr<ModelInfo> ModelInfo::Create(
const proto::PredictionModel& model) { … }
base::FilePath ModelInfo::GetModelFilePath() const { … }
base::flat_set<base::FilePath> ModelInfo::GetAdditionalFiles() const { … }
std::optional<base::FilePath> ModelInfo::GetAdditionalFileWithBaseName(
const base::FilePath::StringType& base_name) const { … }
int64_t ModelInfo::GetVersion() const { … }
std::optional<proto::Any> ModelInfo::GetModelMetadata() const { … }
}