#ifndef COMPONENTS_PERMISSIONS_PREDICTION_SERVICE_PREDICTION_COMMON_H_
#define COMPONENTS_PERMISSIONS_PREDICTION_SERVICE_PREDICTION_COMMON_H_
#include "components/permissions/prediction_service/prediction_request_features.h"
#include "components/permissions/prediction_service/prediction_service_messages.pb.h"
namespace permissions {
constexpr char kDefaultPredictionServiceUrl[] = …;
constexpr char kDefaultPredictionServiceUrlSwitchKey[] = …;
constexpr float kRoundToMultiplesOf = …;
constexpr int kCountBuckets[] = …;
constexpr float kNotificationPredictionsThreshold = …;
constexpr float kGeolocationPredictionsThreshold = …;
float GetRoundedRatio(int numerator, int denominator);
int GetRoundedRatioForUkm(int numerator, int denominator);
int BucketizeValue(int count);
ClientFeatures_Platform GetCurrentPlatformProto();
ClientFeatures_PlatformEnum GetCurrentPlatformEnumProto();
ClientFeatures_Gesture ConvertToProtoGesture(
const permissions::PermissionRequestGestureType type);
ClientFeatures_GestureEnum ConvertToProtoGestureEnum(
const permissions::PermissionRequestGestureType type);
void FillInStatsFeatures(const PredictionRequestFeatures::ActionCounts& counts,
StatsFeatures* features);
std::unique_ptr<GeneratePredictionsRequest> GetPredictionRequestProto(
const PredictionRequestFeatures& entity);
}
#endif