Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / utility / webthread_impl_for_utility_thread.cc
blobf72456d77126ae567099634c2efcea59034a079d
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"
9 namespace content {
11 WebThreadImplForUtilityThread::WebThreadImplForUtilityThread()
12 : task_runner_(base::ThreadTaskRunnerHandle::Get()),
13 thread_id_(base::PlatformThread::CurrentId()) {
16 WebThreadImplForUtilityThread::~WebThreadImplForUtilityThread() {
19 blink::WebScheduler* WebThreadImplForUtilityThread::scheduler() const {
20 NOTIMPLEMENTED();
21 return nullptr;
24 blink::PlatformThreadId WebThreadImplForUtilityThread::threadId() const {
25 return thread_id_;
28 base::SingleThreadTaskRunner* WebThreadImplForUtilityThread::TaskRunner()
29 const {
30 return task_runner_.get();
33 scheduler::SingleThreadIdleTaskRunner*
34 WebThreadImplForUtilityThread::IdleTaskRunner() const {
35 NOTIMPLEMENTED();
36 return nullptr;
39 } // namespace content