#include "third_party/blink/renderer/platform/scheduler/common/single_thread_idle_task_runner.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "base/trace_event/trace_event.h"
namespace blink {
namespace scheduler {
SingleThreadIdleTaskRunner::SingleThreadIdleTaskRunner(
scoped_refptr<base::SingleThreadTaskRunner> idle_priority_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> control_task_runner,
Delegate* delegate)
: … { … }
SingleThreadIdleTaskRunner::~SingleThreadIdleTaskRunner() = default;
SingleThreadIdleTaskRunner::Delegate::Delegate() = default;
SingleThreadIdleTaskRunner::Delegate::~Delegate() = default;
bool SingleThreadIdleTaskRunner::RunsTasksInCurrentSequence() const { … }
void SingleThreadIdleTaskRunner::PostIdleTask(const base::Location& from_here,
IdleTask idle_task) { … }
void SingleThreadIdleTaskRunner::PostDelayedIdleTask(
const base::Location& from_here,
const base::TimeDelta delay,
IdleTask idle_task) { … }
void SingleThreadIdleTaskRunner::PostDelayedIdleTaskOnAssociatedThread(
const base::Location& from_here,
const base::TimeTicks delayed_run_time,
IdleTask idle_task) { … }
void SingleThreadIdleTaskRunner::PostNonNestableIdleTask(
const base::Location& from_here,
IdleTask idle_task) { … }
void SingleThreadIdleTaskRunner::EnqueueReadyDelayedIdleTasks() { … }
void SingleThreadIdleTaskRunner::RunTask(IdleTask idle_task) { … }
}
}