Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(869)

Unified Diff: content/utility/webthread_impl_for_utility_thread.cc

Issue 1133563007: Adding WebThread and new BlinkPlatformImpl for utility thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed overrides. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/utility/webthread_impl_for_utility_thread.cc
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 0000000000000000000000000000000000000000..12c4caa66073e795e01df414bb7d646a505823d0
--- /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

Powered by Google App Engine
This is Rietveld 408576698