diff options
author | tkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-02 00:07:39 +0000 |
---|---|---|
committer | tkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-02 00:07:39 +0000 |
commit | 967c21d7ba1a0c24574259274f8d571fa1db84c1 (patch) | |
tree | 6d95fa35a9c5a0c0b32fbb57d97006abbf904d7f /webkit/support/webkit_support.cc | |
parent | 12199db24943212a3da1dfd39d79723327a52b6a (diff) | |
download | chromium_src-967c21d7ba1a0c24574259274f8d571fa1db84c1.zip chromium_src-967c21d7ba1a0c24574259274f8d571fa1db84c1.tar.gz chromium_src-967c21d7ba1a0c24574259274f8d571fa1db84c1.tar.bz2 |
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
Diffstat (limited to 'webkit/support/webkit_support.cc')
-rw-r--r-- | webkit/support/webkit_support.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |