| Index: ios/web/public/web_thread.h
|
| diff --git a/ios/web/public/web_thread.h b/ios/web/public/web_thread.h
|
| index 7f7c4149b08f982eb78ddf40189e9437c352421a..08f790621daaf61b18eaf4cae663e7b2372d3202 100644
|
| --- a/ios/web/public/web_thread.h
|
| +++ b/ios/web/public/web_thread.h
|
| @@ -98,24 +98,24 @@ class WebThread {
|
| // They return true iff the thread existed and the task was posted.
|
| static bool PostTask(ID identifier,
|
| const tracked_objects::Location& from_here,
|
| - const base::Closure& task);
|
| + base::OnceClosure task);
|
| static bool PostDelayedTask(ID identifier,
|
| const tracked_objects::Location& from_here,
|
| - const base::Closure& task,
|
| + base::OnceClosure task,
|
| base::TimeDelta delay);
|
| static bool PostNonNestableTask(ID identifier,
|
| const tracked_objects::Location& from_here,
|
| - const base::Closure& task);
|
| + base::OnceClosure task);
|
| static bool PostNonNestableDelayedTask(
|
| ID identifier,
|
| const tracked_objects::Location& from_here,
|
| - const base::Closure& task,
|
| + base::OnceClosure task,
|
| base::TimeDelta delay);
|
|
|
| static bool PostTaskAndReply(ID identifier,
|
| const tracked_objects::Location& from_here,
|
| - const base::Closure& task,
|
| - const base::Closure& reply);
|
| + base::OnceClosure task,
|
| + base::OnceClosure reply);
|
|
|
| template <typename ReturnType, typename ReplyArgType>
|
| static bool PostTaskAndReplyWithResult(
|
| @@ -158,15 +158,15 @@ class WebThread {
|
| // base::PostTaskAndReplyWithResult() with GetBlockingPool() as the task
|
| // runner.
|
| static bool PostBlockingPoolTask(const tracked_objects::Location& from_here,
|
| - const base::Closure& task);
|
| + base::OnceClosure task);
|
| static bool PostBlockingPoolTaskAndReply(
|
| const tracked_objects::Location& from_here,
|
| - const base::Closure& task,
|
| - const base::Closure& reply);
|
| + base::OnceClosure task,
|
| + base::OnceClosure reply);
|
| static bool PostBlockingPoolSequencedTask(
|
| const std::string& sequence_token_name,
|
| const tracked_objects::Location& from_here,
|
| - const base::Closure& task);
|
| + base::OnceClosure task);
|
|
|
| // Returns the thread pool used for blocking file I/O. Use this object to
|
| // perform random blocking operations such as file writes.
|
|
|