blob: d32b3620de9f5e9bb928fb6a6c2e8d26c2a21d1d [file] [log] [blame]
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "v8_foreground_task_runner_base.h"
namespace gin {
V8ForegroundTaskRunnerBase::V8ForegroundTaskRunnerBase() = default;
V8ForegroundTaskRunnerBase::~V8ForegroundTaskRunnerBase() = default;
void V8ForegroundTaskRunnerBase::EnableIdleTasks(
std::unique_ptr<V8IdleTaskRunner> idle_task_runner) {
idle_task_runner_ = std::move(idle_task_runner);
}
bool V8ForegroundTaskRunnerBase::IdleTasksEnabled() {
return idle_task_runner() != nullptr;
}
} // namespace gin