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

Unified Diff: content/utility/utility_blink_platform_impl.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/utility_blink_platform_impl.cc
diff --git a/content/utility/utility_blink_platform_impl.cc b/content/utility/utility_blink_platform_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..986823ae5f5a30d4f127c3214280aa8fea98d1ec
--- /dev/null
+++ b/content/utility/utility_blink_platform_impl.cc
@@ -0,0 +1,22 @@
+// 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/utility_blink_platform_impl.h"
+
+namespace content {
+
+UtilityBlinkPlatformImpl::UtilityBlinkPlatformImpl()
+ : main_thread_(new WebThreadImplForUtilityThread()) {
+}
+
+UtilityBlinkPlatformImpl::~UtilityBlinkPlatformImpl() {
+}
+
+blink::WebThread* UtilityBlinkPlatformImpl::currentThread() {
+ if (main_thread_->isCurrentThread())
+ return main_thread_.get();
+ return BlinkPlatformImpl::currentThread();
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698