| Index: base/task_scheduler/post_task.h
|
| diff --git a/base/task_scheduler/post_task.h b/base/task_scheduler/post_task.h
|
| index a7a2114efb7b30f07e8ed3d2ede92de169327514..dd97fceeaa40dd9d849000f8378133deca7aa18c 100644
|
| --- a/base/task_scheduler/post_task.h
|
| +++ b/base/task_scheduler/post_task.h
|
| @@ -59,7 +59,7 @@ namespace base {
|
| // Posts |task| to the TaskScheduler. Calling this is equivalent to calling
|
| // PostTaskWithTraits with plain TaskTraits.
|
| BASE_EXPORT void PostTask(const tracked_objects::Location& from_here,
|
| - const Closure& task);
|
| + OnceClosure task);
|
|
|
| // Posts |task| to the TaskScheduler and posts |reply| on the caller's execution
|
| // context (i.e. same sequence or thread and same TaskTraits if applicable) when
|
| @@ -67,13 +67,13 @@ BASE_EXPORT void PostTask(const tracked_objects::Location& from_here,
|
| // PostTaskWithTraitsAndReply with plain TaskTraits. Can only be called when
|
| // SequencedTaskRunnerHandle::IsSet().
|
| BASE_EXPORT void PostTaskAndReply(const tracked_objects::Location& from_here,
|
| - const Closure& task,
|
| - const Closure& reply);
|
| + OnceClosure task,
|
| + OnceClosure reply);
|
|
|
| // Posts |task| with specific |traits| to the TaskScheduler.
|
| BASE_EXPORT void PostTaskWithTraits(const tracked_objects::Location& from_here,
|
| TaskTraits traits,
|
| - const Closure& task);
|
| + OnceClosure task);
|
|
|
| // Posts |task| with specific |traits| to the TaskScheduler and posts |reply| on
|
| // the caller's execution context (i.e. same sequence or thread and same
|
| @@ -82,8 +82,8 @@ BASE_EXPORT void PostTaskWithTraits(const tracked_objects::Location& from_here,
|
| BASE_EXPORT void PostTaskWithTraitsAndReply(
|
| const tracked_objects::Location& from_here,
|
| TaskTraits traits,
|
| - const Closure& task,
|
| - const Closure& reply);
|
| + OnceClosure task,
|
| + OnceClosure reply);
|
|
|
| // Returns a TaskRunner whose PostTask invocations will result in scheduling
|
| // tasks using |traits| which will be executed according to |execution_mode|.
|
|
|