summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webthread_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/webthread_impl.cc')
-rw-r--r--webkit/glue/webthread_impl.cc22
1 files changed, 17 insertions, 5 deletions
diff --git a/webkit/glue/webthread_impl.cc b/webkit/glue/webthread_impl.cc
index 60e44ac..26ce1a3 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() {
+}
+
}