Index: webkit/glue/webthread_impl.cc |
diff --git a/webkit/glue/webthread_impl.cc b/webkit/glue/webthread_impl.cc |
index 60e44ac28d665cd719cb8f23c7bfba45ee6a095b..26ce1a34f8c907f550268a384e3820113d1ee04b 100644 |
--- a/webkit/glue/webthread_impl.cc |
+++ b/webkit/glue/webthread_impl.cc |
@@ -31,13 +31,8 @@ void WebThreadImpl::postTask(Task* task) { |
thread_->message_loop()->PostTask(FROM_HERE, |
new TaskAdapter(task)); |
} |
-#ifdef WEBTHREAD_HAS_LONGLONG_CHANGE |
void WebThreadImpl::postDelayedTask( |
Task* task, long long delay_ms) { |
-#else |
-void WebThreadImpl::postDelayedTask( |
- Task* task, int64 delay_ms) { |
-#endif |
thread_->message_loop()->PostDelayedTask( |
FROM_HERE, new TaskAdapter(task), delay_ms); |
} |
@@ -46,4 +41,21 @@ WebThreadImpl::~WebThreadImpl() { |
thread_->Stop(); |
} |
+WebThreadImplForMessageLoop::WebThreadImplForMessageLoop( |
+ base::MessageLoopProxy* message_loop) |
+ : message_loop_(message_loop) { |
+} |
+ |
+void WebThreadImplForMessageLoop::postTask(Task* task) { |
+ message_loop_->PostTask(FROM_HERE, new TaskAdapter(task)); |
+} |
+ |
+void WebThreadImplForMessageLoop::postDelayedTask( |
+ Task* task, long long delay_ms) { |
+ message_loop_->PostDelayedTask(FROM_HERE, new TaskAdapter(task), delay_ms); |
+} |
+ |
+WebThreadImplForMessageLoop::~WebThreadImplForMessageLoop() { |
+} |
+ |
} |