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

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: 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
« no previous file with comments | « 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..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() {
+}
+
}
« no previous file with comments | « webkit/glue/webthread_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698