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

Unified Diff: webkit/support/webkit_support.cc

Issue 3298003: webkit_support: Add PostDelayedTask(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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/support/webkit_support.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/webkit_support.cc
===================================================================
--- webkit/support/webkit_support.cc (revision 58131)
+++ webkit/support/webkit_support.cc (working copy)
@@ -362,6 +362,11 @@
MessageLoop::current()->PostDelayedTask(FROM_HERE, task, delay_ms);
}
+void PostDelayedTask(void (*func)(void*), void* context, int64 delay_ms) {
+ MessageLoop::current()->PostDelayedTask(
+ FROM_HERE, NewRunnableFunction(func, context), delay_ms);
+}
+
// Wrappers for FilePath and file_util
WebString GetAbsoluteWebStringFromUTF8Path(const std::string& utf8_path) {
« no previous file with comments | « webkit/support/webkit_support.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698