Index: base/task_runner.h |
diff --git a/base/task_runner.h b/base/task_runner.h |
index 9593835eebbdfa51f43e1d236f387f3ee1ac7940..8f72d9913823a5e730d031396e0db35670b90ddb 100644 |
--- a/base/task_runner.h |
+++ b/base/task_runner.h |
@@ -62,7 +62,7 @@ class BASE_EXPORT TaskRunner |
// |
// Equivalent to PostDelayedTask(from_here, task, 0). |
bool PostTask(const tracked_objects::Location& from_here, |
- const Closure& task); |
+ OnceClosure task); |
// Like PostTask, but tries to run the posted task only after |
// |delay_ms| has passed. |
@@ -70,7 +70,7 @@ class BASE_EXPORT TaskRunner |
// It is valid for an implementation to ignore |delay_ms|; that is, |
// to have PostDelayedTask behave the same as PostTask. |
virtual bool PostDelayedTask(const tracked_objects::Location& from_here, |
- const Closure& task, |
+ OnceClosure task, |
base::TimeDelta delay) = 0; |
// Returns true if the current thread is a thread on which a task |
@@ -123,8 +123,8 @@ class BASE_EXPORT TaskRunner |
// and the reply will cancel itself safely because it is bound to a |
// WeakPtr<>. |
bool PostTaskAndReply(const tracked_objects::Location& from_here, |
- const Closure& task, |
- const Closure& reply); |
+ OnceClosure task, |
+ OnceClosure reply); |
protected: |
friend struct TaskRunnerTraits; |