#include "third_party/blink/renderer/platform/scheduler/common/process_time_override_coordinator.h"
namespace blink::scheduler {
ProcessTimeOverrideCoordinator::ScopedOverride::ScopedOverride(
base::RepeatingClosure schedule_work_callback)
: … { … }
ProcessTimeOverrideCoordinator::ScopedOverride::~ScopedOverride() { … }
base::TimeTicks
ProcessTimeOverrideCoordinator::ScopedOverride::TryAdvancingTime(
base::TimeTicks requested_ticks) { … }
base::TimeTicks ProcessTimeOverrideCoordinator::ScopedOverride::NowTicks()
const { … }
ProcessTimeOverrideCoordinator& ProcessTimeOverrideCoordinator::Instance() { … }
ProcessTimeOverrideCoordinator::ProcessTimeOverrideCoordinator() = default;
std::unique_ptr<ProcessTimeOverrideCoordinator::ScopedOverride>
ProcessTimeOverrideCoordinator::CreateOverride(
base::Time requested_time,
base::TimeTicks requested_ticks,
base::RepeatingClosure schedule_work_callback) { … }
void ProcessTimeOverrideCoordinator::RegisterOverride(
ScopedOverride* handle,
base::Time requested_time,
base::TimeTicks requested_ticks) { … }
void ProcessTimeOverrideCoordinator::UnregisterOverride(
ScopedOverride* handle) { … }
void ProcessTimeOverrideCoordinator::EnableOverride(
base::Time initial_time,
base::TimeTicks initial_ticks) { … }
void ProcessTimeOverrideCoordinator::DisableOverride() { … }
base::TimeTicks ProcessTimeOverrideCoordinator::TryAdvancingTime(
ScopedOverride* handle,
base::TimeTicks requested_ticks) { … }
base::Time ProcessTimeOverrideCoordinator::CurrentTime() { … }
base::TimeTicks ProcessTimeOverrideCoordinator::CurrentTicks() { … }
}