#ifndef COMPONENTS_OPTIMIZATION_GUIDE_CORE_MODEL_QUALITY_MODEL_QUALITY_UTIL_H_
#define COMPONENTS_OPTIMIZATION_GUIDE_CORE_MODEL_QUALITY_MODEL_QUALITY_UTIL_H_
#include "base/time/time.h"
#include "components/optimization_guide/core/model_execution/feature_keys.h"
#include "components/optimization_guide/core/model_quality/feature_type_map.h"
#include "components/optimization_guide/proto/model_execution.pb.h"
#include "components/optimization_guide/proto/model_quality_service.pb.h"
class PrefService;
namespace optimization_guide {
template <typename FeatureType>
FeatureType::Quality* GetModelQualityData(
proto::LogAiDataRequest* log_ai_data_request) { … }
int64_t GetHashedModelQualityClientId(
proto::LogAiDataRequest::FeatureCase feature,
base::Time day,
int64_t client_id);
int64_t GetOrCreateModelQualityClientId(
proto::LogAiDataRequest::FeatureCase feature,
PrefService* pref_service);
}
#endif