blob: 7c21af8a4c2a3759ddb7aebe57b8b9cb70ba577a [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// 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