#include "components/optimization_guide/core/model_execution_timeout_watchdog.h"
#include "base/metrics/histogram_functions.h"
namespace optimization_guide {
namespace {
void RecordDidTimeoutHistogram(proto::OptimizationTarget optimization_target,
bool did_timeout) { … }
}
ModelExecutionTimeoutWatchdog::ModelExecutionTimeoutWatchdog(
scoped_refptr<base::SequencedTaskRunner> watchdog_task_runner,
proto::OptimizationTarget optimization_target,
base::TimeDelta duration)
: … { … }
ModelExecutionTimeoutWatchdog::~ModelExecutionTimeoutWatchdog() { … }
void ModelExecutionTimeoutWatchdog::ArmWithTask(
base::OnceClosure cancel_closure) { … }
void ModelExecutionTimeoutWatchdog::DisarmOnExecutionComplete() { … }
void ModelExecutionTimeoutWatchdog::ArmOnWatchdogSequence() { … }
void ModelExecutionTimeoutWatchdog::DisarmOnWatchdogSequence() { … }
void ModelExecutionTimeoutWatchdog::AlarmOnWatchdogSequence() { … }
}