#include "components/permissions/prediction_service/prediction_model_handler.h"
#include <memory>
#include "components/optimization_guide/core/optimization_guide_model_provider.h"
namespace permissions {
PredictionModelHandler::PredictionModelHandler(
optimization_guide::OptimizationGuideModelProvider* model_provider,
optimization_guide::proto::OptimizationTarget optimization_target)
: … { … }
void PredictionModelHandler::OnModelUpdated(
optimization_guide::proto::OptimizationTarget optimization_target,
base::optional_ref<const optimization_guide::ModelInfo> model_info) { … }
std::optional<WebPermissionPredictionsModelMetadata>
PredictionModelHandler::GetModelMetaData() { … }
void PredictionModelHandler::ExecuteModelWithMetadata(
ExecutionCallback callback,
std::unique_ptr<GeneratePredictionsRequest> proto_request) { … }
void PredictionModelHandler::WaitForModelLoadForTesting() { … }
}