1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/utility/webthread_impl_for_utility_thread.h"
7 #include "base/thread_task_runner_handle.h"
11 WebThreadImplForUtilityThread::WebThreadImplForUtilityThread()
12 : task_runner_(base::ThreadTaskRunnerHandle::Get()),
13 thread_id_(base::PlatformThread::CurrentId()) {
16 WebThreadImplForUtilityThread::~WebThreadImplForUtilityThread() {
19 blink::WebScheduler
* WebThreadImplForUtilityThread::scheduler() const {
24 blink::PlatformThreadId
WebThreadImplForUtilityThread::threadId() const {
28 base::SingleThreadTaskRunner
* WebThreadImplForUtilityThread::TaskRunner()
30 return task_runner_
.get();
33 scheduler::SingleThreadIdleTaskRunner
*
34 WebThreadImplForUtilityThread::IdleTaskRunner() const {
39 } // namespace content