#include "media/learning/mojo/mojo_learning_task_controller_service.h"
#include <utility>
#include "base/functional/bind.h"
#include "media/learning/common/learning_task_controller.h"
namespace media {
namespace learning {
static const size_t kMaxInFlightObservations = …;
MojoLearningTaskControllerService::MojoLearningTaskControllerService(
const LearningTask& task,
ukm::SourceId source_id,
std::unique_ptr<::media::learning::LearningTaskController> impl)
: … { … }
MojoLearningTaskControllerService::~MojoLearningTaskControllerService() =
default;
void MojoLearningTaskControllerService::BeginObservation(
const base::UnguessableToken& id,
const FeatureVector& features,
const std::optional<TargetValue>& default_target) { … }
void MojoLearningTaskControllerService::CompleteObservation(
const base::UnguessableToken& id,
const ObservationCompletion& completion) { … }
void MojoLearningTaskControllerService::CancelObservation(
const base::UnguessableToken& id) { … }
void MojoLearningTaskControllerService::UpdateDefaultTarget(
const base::UnguessableToken& id,
const std::optional<TargetValue>& default_target) { … }
void MojoLearningTaskControllerService::PredictDistribution(
const FeatureVector& features,
PredictDistributionCallback callback) { … }
}
}