#include "third_party/blink/renderer/platform/scheduler/common/auto_advancing_virtual_time_domain.h"
#include <atomic>
#include "base/time/time_override.h"
#include "build/build_config.h"
#include "third_party/blink/renderer/platform/scheduler/common/scheduler_helper.h"
namespace blink {
namespace scheduler {
AutoAdvancingVirtualTimeDomain::AutoAdvancingVirtualTimeDomain(
base::Time initial_time,
base::TimeTicks initial_time_ticks,
SchedulerHelper* helper)
: … { … }
AutoAdvancingVirtualTimeDomain::~AutoAdvancingVirtualTimeDomain() { … }
base::TimeTicks AutoAdvancingVirtualTimeDomain::NowTicks() const { … }
bool AutoAdvancingVirtualTimeDomain::MaybeFastForwardToWakeUp(
std::optional<base::sequence_manager::WakeUp> wakeup,
bool quit_when_idle_requested) { … }
void AutoAdvancingVirtualTimeDomain::SetCanAdvanceVirtualTime(
bool can_advance_virtual_time) { … }
void AutoAdvancingVirtualTimeDomain::SetMaxVirtualTimeTaskStarvationCount(
int max_task_starvation_count) { … }
void AutoAdvancingVirtualTimeDomain::SetVirtualTimeFence(
base::TimeTicks virtual_time_fence) { … }
bool AutoAdvancingVirtualTimeDomain::MaybeAdvanceVirtualTime(
base::TimeTicks new_virtual_time) { … }
const char* AutoAdvancingVirtualTimeDomain::GetName() const { … }
void AutoAdvancingVirtualTimeDomain::WillProcessTask(
const base::PendingTask& pending_task,
bool was_blocked_or_low_priority) { … }
void AutoAdvancingVirtualTimeDomain::DidProcessTask(
const base::PendingTask& pending_task) { … }
}
}