#include "src/libplatform/default-foreground-task-runner.h"
#include "src/base/platform/mutex.h"
#include "src/base/platform/time.h"
namespace v8 {
namespace platform {
DefaultForegroundTaskRunner::RunTaskScope::RunTaskScope(
std::shared_ptr<DefaultForegroundTaskRunner> task_runner)
: … { … }
DefaultForegroundTaskRunner::RunTaskScope::~RunTaskScope() { … }
DefaultForegroundTaskRunner::DefaultForegroundTaskRunner(
IdleTaskSupport idle_task_support, TimeFunction time_function)
: … { … }
void DefaultForegroundTaskRunner::Terminate() { … }
std::unique_ptr<Task> DefaultForegroundTaskRunner::PostTaskLocked(
std::unique_ptr<Task> task, Nestability nestability) { … }
void DefaultForegroundTaskRunner::PostTaskImpl(std::unique_ptr<Task> task,
const SourceLocation& location) { … }
double DefaultForegroundTaskRunner::MonotonicallyIncreasingTime() { … }
void DefaultForegroundTaskRunner::PostDelayedTaskLocked(
std::unique_ptr<Task> task, double delay_in_seconds,
Nestability nestability) { … }
void DefaultForegroundTaskRunner::PostDelayedTaskImpl(
std::unique_ptr<Task> task, double delay_in_seconds,
const SourceLocation& location) { … }
void DefaultForegroundTaskRunner::PostNonNestableDelayedTaskImpl(
std::unique_ptr<Task> task, double delay_in_seconds,
const SourceLocation& location) { … }
void DefaultForegroundTaskRunner::PostIdleTaskImpl(
std::unique_ptr<IdleTask> task, const SourceLocation& location) { … }
bool DefaultForegroundTaskRunner::IdleTasksEnabled() { … }
void DefaultForegroundTaskRunner::PostNonNestableTaskImpl(
std::unique_ptr<Task> task, const SourceLocation& location) { … }
bool DefaultForegroundTaskRunner::NonNestableTasksEnabled() const { … }
bool DefaultForegroundTaskRunner::HasPoppableTaskInQueue() const { … }
std::vector<std::unique_ptr<Task>>
DefaultForegroundTaskRunner::MoveExpiredDelayedTasksLocked() { … }
std::unique_ptr<Task> DefaultForegroundTaskRunner::PopTaskFromQueue(
MessageLoopBehavior wait_for_work) { … }
std::unique_ptr<Task>
DefaultForegroundTaskRunner::PopTaskFromDelayedQueueLocked(
Nestability* nestability) { … }
std::unique_ptr<IdleTask> DefaultForegroundTaskRunner::PopTaskFromIdleQueue() { … }
void DefaultForegroundTaskRunner::WaitForTaskLocked() { … }
}
}