Index: content/browser/browser_thread_impl.cc |
=================================================================== |
--- content/browser/browser_thread_impl.cc (revision 140108) |
+++ content/browser/browser_thread_impl.cc (working copy) |
@@ -186,6 +186,11 @@ |
// MessageLoopProxy implementation. |
virtual bool PostDelayedTask( |
const tracked_objects::Location& from_here, |
+ const base::Closure& task, int64 delay_ms) OVERRIDE { |
+ return BrowserThread::PostDelayedTask(id_, from_here, task, delay_ms); |
+ } |
+ virtual bool PostDelayedTask( |
+ const tracked_objects::Location& from_here, |
const base::Closure& task, base::TimeDelta delay) OVERRIDE { |
return BrowserThread::PostDelayedTask(id_, from_here, task, delay); |
} |
@@ -193,6 +198,13 @@ |
virtual bool PostNonNestableDelayedTask( |
const tracked_objects::Location& from_here, |
const base::Closure& task, |
+ int64 delay_ms) OVERRIDE { |
+ return BrowserThread::PostNonNestableDelayedTask(id_, from_here, task, |
+ delay_ms); |
+ } |
+ virtual bool PostNonNestableDelayedTask( |
+ const tracked_objects::Location& from_here, |
+ const base::Closure& task, |
base::TimeDelta delay) OVERRIDE { |
return BrowserThread::PostNonNestableDelayedTask(id_, from_here, task, |
delay); |
@@ -289,6 +301,19 @@ |
bool BrowserThread::PostDelayedTask(ID identifier, |
const tracked_objects::Location& from_here, |
const base::Closure& task, |
+ int64 delay_ms) { |
+ return BrowserThreadImpl::PostTaskHelper( |
+ identifier, |
+ from_here, |
+ task, |
+ base::TimeDelta::FromMilliseconds(delay_ms), |
+ true); |
+} |
+ |
+// static |
+bool BrowserThread::PostDelayedTask(ID identifier, |
+ const tracked_objects::Location& from_here, |
+ const base::Closure& task, |
base::TimeDelta delay) { |
return BrowserThreadImpl::PostTaskHelper( |
identifier, from_here, task, delay, true); |
@@ -308,6 +333,20 @@ |
ID identifier, |
const tracked_objects::Location& from_here, |
const base::Closure& task, |
+ int64 delay_ms) { |
+ return BrowserThreadImpl::PostTaskHelper( |
+ identifier, |
+ from_here, |
+ task, |
+ base::TimeDelta::FromMilliseconds(delay_ms), |
+ false); |
+} |
+ |
+// static |
+bool BrowserThread::PostNonNestableDelayedTask( |
+ ID identifier, |
+ const tracked_objects::Location& from_here, |
+ const base::Closure& task, |
base::TimeDelta delay) { |
return BrowserThreadImpl::PostTaskHelper( |
identifier, from_here, task, delay, false); |