#include "gin/v8_foreground_task_runner.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
#include "gin/converter.h"
namespace gin {
V8ForegroundTaskRunner::V8ForegroundTaskRunner(
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
: … { … }
V8ForegroundTaskRunner::~V8ForegroundTaskRunner() = default;
void V8ForegroundTaskRunner::PostTaskImpl(std::unique_ptr<v8::Task> task,
const v8::SourceLocation& location) { … }
void V8ForegroundTaskRunner::PostNonNestableTaskImpl(
std::unique_ptr<v8::Task> task,
const v8::SourceLocation& location) { … }
void V8ForegroundTaskRunner::PostDelayedTaskImpl(
std::unique_ptr<v8::Task> task,
double delay_in_seconds,
const v8::SourceLocation& location) { … }
void V8ForegroundTaskRunner::PostNonNestableDelayedTaskImpl(
std::unique_ptr<v8::Task> task,
double delay_in_seconds,
const v8::SourceLocation& location) { … }
void V8ForegroundTaskRunner::PostIdleTaskImpl(
std::unique_ptr<v8::IdleTask> task,
const v8::SourceLocation& location) { … }
bool V8ForegroundTaskRunner::NonNestableTasksEnabled() const { … }
bool V8ForegroundTaskRunner::NonNestableDelayedTasksEnabled() const { … }
}