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

Unified Diff: content/utility/utility_blink_platform_impl.h

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.h
diff --git a/content/utility/utility_blink_platform_impl.h b/content/utility/utility_blink_platform_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..89153e92bb460aef49a48d989dc25f8be18a286b
--- /dev/null
+++ b/content/utility/utility_blink_platform_impl.h
@@ -0,0 +1,28 @@
+// 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.
+
+#ifndef CONTENT_UTILITY_UTILITY_BLINK_PLATFORM_IMPL_H_
+#define CONTENT_UTILITY_UTILITY_BLINK_PLATFORM_IMPL_H_
+
+#include "content/child/blink_platform_impl.h"
+#include "content/utility/webthread_impl_for_utility_thread.h"
+
+namespace content {
+
+class UtilityBlinkPlatformImpl : public BlinkPlatformImpl {
+ public:
+ UtilityBlinkPlatformImpl();
+ ~UtilityBlinkPlatformImpl() override;
+
+ blink::WebThread* currentThread() override;
+
+ private:
+ scoped_ptr<WebThreadImplForUtilityThread> main_thread_;
+
+ DISALLOW_COPY_AND_ASSIGN(UtilityBlinkPlatformImpl);
+};
+
+} // namespace content
+
+#endif // CONTENT_UTILITY_UTILITY_BLINK_PLATFORM_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698