From 967c21d7ba1a0c24574259274f8d571fa1db84c1 Mon Sep 17 00:00:00 2001 From: "tkent@chromium.org" Date: Thu, 2 Sep 2010 00:07:39 +0000 Subject: webkit_support: Add PostDelayedTask(). This is needed to remove base/task.h base/timer.h dependency from the DRT code. BUG=none TEST=none Review URL: http://codereview.chromium.org/3298003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58277 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/support/webkit_support.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'webkit/support/webkit_support.cc') diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc index 20dcb06..2a9a00b 100644 --- a/webkit/support/webkit_support.cc +++ b/webkit/support/webkit_support.cc @@ -362,6 +362,11 @@ void PostDelayedTaskFromHere(Task* task, int64 delay_ms) { 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) { -- cgit v1.1