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

Unified Diff: webkit/glue/webthread_impl.cc

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
« webkit/glue/webthread_impl.h ('K') | « webkit/glue/webthread_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
+}
+
}
« webkit/glue/webthread_impl.h ('K') | « webkit/glue/webthread_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698