From 17dc674a9c9be676ebe13014d4e2c406e0c0c1ad Mon Sep 17 00:00:00 2001 From: "tedvessenes@gmail.com" Date: Sun, 26 Feb 2012 08:17:37 +0000 Subject: 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 --- content/public/browser/browser_thread.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'content/public') 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, -- cgit v1.1