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 |