diff options
Diffstat (limited to 'content/utility/webthread_impl_for_utility_thread.cc')
-rw-r--r-- | content/utility/webthread_impl_for_utility_thread.cc | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/content/utility/webthread_impl_for_utility_thread.cc b/content/utility/webthread_impl_for_utility_thread.cc new file mode 100644 index 0000000..12c4caa --- /dev/null +++ b/content/utility/webthread_impl_for_utility_thread.cc @@ -0,0 +1,37 @@ +// Copyright 2015 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 "content/utility/webthread_impl_for_utility_thread.h" + +namespace content { + +WebThreadImplForUtilityThread::WebThreadImplForUtilityThread() + : task_runner_(base::MessageLoopProxy::current()), + thread_id_(base::PlatformThread::CurrentId()) { +} + +WebThreadImplForUtilityThread::~WebThreadImplForUtilityThread() { +} + +blink::WebScheduler* WebThreadImplForUtilityThread::scheduler() const { + NOTIMPLEMENTED(); + return nullptr; +} + +blink::PlatformThreadId WebThreadImplForUtilityThread::threadId() const { + return thread_id_; +} + +base::SingleThreadTaskRunner* WebThreadImplForUtilityThread::TaskRunner() + const { + return task_runner_.get(); +} + +scheduler::SingleThreadIdleTaskRunner* +WebThreadImplForUtilityThread::IdleTaskRunner() const { + NOTIMPLEMENTED(); + return nullptr; +} + +} // namespace content |