Chromium Code Reviews| Index: webkit/glue/webthread_impl.cc |
| diff --git a/webkit/glue/webthread_impl.cc b/webkit/glue/webthread_impl.cc |
| index 60e44ac28d665cd719cb8f23c7bfba45ee6a095b..710add3085f45138df0f71c455bdaf90be8c8d4a 100644 |
| --- a/webkit/glue/webthread_impl.cc |
| +++ b/webkit/glue/webthread_impl.cc |
| @@ -46,4 +46,26 @@ 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)); |
| +} |
| + |
| +#ifdef WEBTHREAD_HAS_LONGLONG_CHANGE |
|
darin (slow to review)
2011/10/12 04:42:20
i think this #ifdef was just a temporary guard to
piman
2011/10/12 19:53:52
Done. I removed it from existing code in this file
|
| +void WebThreadImplForMessageLoop::postDelayedTask( |
| + Task* task, long long delay_ms) { |
| +#else |
| +void WebThreadImplForMessageLoop::postDelayedTask( |
| + Task* task, int64 delay_ms) { |
| +#endif |
| + message_loop_->PostDelayedTask(FROM_HERE, new TaskAdapter(task), delay_ms); |
| +} |
| + |
| +WebThreadImplForMessageLoop::~WebThreadImplForMessageLoop() { |
| +} |
| + |
| } |