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

Unified Diff: webkit/glue/webthread_impl.h

Issue 8228025: Implement WebKitPlatformSupport::currentThread (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: git try Created 9 years, 2 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
« no previous file with comments | « webkit/glue/webkitplatformsupport_impl.cc ('k') | webkit/glue/webthread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webthread_impl.h
diff --git a/webkit/glue/webthread_impl.h b/webkit/glue/webthread_impl.h
index 50869d612ffcd3c18b673fd3531bd044b3a823f9..842c8c6b0fdcfbaad01ea6694269c4e9b7d58e01 100644
--- a/webkit/glue/webthread_impl.h
+++ b/webkit/glue/webthread_impl.h
@@ -15,12 +15,8 @@ class WebThreadImpl : public WebKit::WebThread {
WebThreadImpl(const char* name);
virtual ~WebThreadImpl();
- virtual void postTask(Task* task);
-#ifdef WEBTHREAD_HAS_LONGLONG_CHANGE
- virtual void postDelayedTask(Task* task, long long delay_ms);
-#else
- virtual void postDelayedTask(Task* task, int64 delay_ms);
-#endif
+ virtual void postTask(Task* task) OVERRIDE;
+ virtual void postDelayedTask(Task* task, long long delay_ms) OVERRIDE;
jamesr 2011/10/18 02:26:16 i thought we were avoiding using OVERRIDE in imple
MessageLoop* message_loop() const { return thread_->message_loop(); }
@@ -28,6 +24,18 @@ class WebThreadImpl : public WebKit::WebThread {
scoped_ptr<base::Thread> thread_;
};
+class WebThreadImplForMessageLoop : public WebKit::WebThread {
+ public:
+ WebThreadImplForMessageLoop(base::MessageLoopProxy* message_loop);
+ virtual ~WebThreadImplForMessageLoop();
+
+ virtual void postTask(Task* task) OVERRIDE;
+ virtual void postDelayedTask(Task* task, long long delay_ms) OVERRIDE;
+
+ protected:
+ scoped_refptr<base::MessageLoopProxy> message_loop_;
+};
+
} // namespace webkit_glue
#endif
« no previous file with comments | « webkit/glue/webkitplatformsupport_impl.cc ('k') | webkit/glue/webthread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698