OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #include "content/utility/webthread_impl_for_utility_thread.h" |
| 6 |
| 7 namespace content { |
| 8 |
| 9 WebThreadImplForUtilityThread::WebThreadImplForUtilityThread() |
| 10 : task_runner_(base::MessageLoopProxy::current()), |
| 11 thread_id_(base::PlatformThread::CurrentId()) { |
| 12 } |
| 13 |
| 14 WebThreadImplForUtilityThread::~WebThreadImplForUtilityThread() { |
| 15 } |
| 16 |
| 17 blink::WebScheduler* WebThreadImplForUtilityThread::scheduler() const { |
| 18 NOTIMPLEMENTED(); |
| 19 return nullptr; |
| 20 } |
| 21 |
| 22 blink::PlatformThreadId WebThreadImplForUtilityThread::threadId() const { |
| 23 return thread_id_; |
| 24 } |
| 25 |
| 26 base::SingleThreadTaskRunner* WebThreadImplForUtilityThread::TaskRunner() |
| 27 const { |
| 28 return task_runner_.get(); |
| 29 } |
| 30 |
| 31 scheduler::SingleThreadIdleTaskRunner* |
| 32 WebThreadImplForUtilityThread::IdleTaskRunner() const { |
| 33 NOTIMPLEMENTED(); |
| 34 return nullptr; |
| 35 } |
| 36 |
| 37 } // namespace content |
OLD | NEW |