diff options
author | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-26 08:17:37 +0000 |
---|---|---|
committer | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-26 08:17:37 +0000 |
commit | 17dc674a9c9be676ebe13014d4e2c406e0c0c1ad (patch) | |
tree | a860c9c606eb2698f5e7af9479c704ad69e25a4a /content/public | |
parent | b703d26d2ed97aa5c59fa70fd78821e1fe78dbf1 (diff) | |
download | chromium_src-17dc674a9c9be676ebe13014d4e2c406e0c0c1ad.zip chromium_src-17dc674a9c9be676ebe13014d4e2c406e0c0c1ad.tar.gz chromium_src-17dc674a9c9be676ebe13014d4e2c406e0c0c1ad.tar.bz2 |
Add functions to expand PostDelayedTask interface.
These functions add TimeDelta interfaces in addition to the int ms interfaces,
which will be removed at a later date.
BUG=108171
Review URL: http://codereview.chromium.org/9427023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123683 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public')
-rw-r--r-- | content/public/browser/browser_thread.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/content/public/browser/browser_thread.h b/content/public/browser/browser_thread.h index f35ec00..61b377d 100644 --- a/content/public/browser/browser_thread.h +++ b/content/public/browser/browser_thread.h @@ -107,6 +107,10 @@ class CONTENT_EXPORT BrowserThread { const tracked_objects::Location& from_here, const base::Closure& task, int64 delay_ms); + static bool PostDelayedTask(ID identifier, + const tracked_objects::Location& from_here, + const base::Closure& task, + base::TimeDelta delay); static bool PostNonNestableTask(ID identifier, const tracked_objects::Location& from_here, const base::Closure& task); @@ -115,6 +119,11 @@ class CONTENT_EXPORT BrowserThread { const tracked_objects::Location& from_here, const base::Closure& task, int64 delay_ms); + static bool PostNonNestableDelayedTask( + ID identifier, + const tracked_objects::Location& from_here, + const base::Closure& task, + base::TimeDelta delay); static bool PostTaskAndReply( ID identifier, |