Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Unified Diff: ios/web/public/web_thread.h

Issue 2726523002: Pass Callback to TaskRunner by value and consume it on invocation (1) (Closed)
Patch Set: s/base::ResetAndReturn/std::move/ Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/web/public/web_thread.h
diff --git a/ios/web/public/web_thread.h b/ios/web/public/web_thread.h
index b5234461cdc419e9ad7ddc28986cda0c820b460b..6a7930b4758ced81224da393c81a3d85fd0a4e11 100644
--- a/ios/web/public/web_thread.h
+++ b/ios/web/public/web_thread.h
@@ -101,18 +101,18 @@ 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::Closure task);
static bool PostDelayedTask(ID identifier,
const tracked_objects::Location& from_here,
- const base::Closure& task,
+ base::Closure task,
base::TimeDelta delay);
static bool PostNonNestableTask(ID identifier,
const tracked_objects::Location& from_here,
- const base::Closure& task);
+ base::Closure task);
static bool PostNonNestableDelayedTask(
ID identifier,
const tracked_objects::Location& from_here,
- const base::Closure& task,
+ base::Closure task,
base::TimeDelta delay);
static bool PostTaskAndReply(ID identifier,
@@ -161,7 +161,7 @@ class WebThread {
// base::PostTaskAndReplyWithResult() with GetBlockingPool() as the task
// runner.
static bool PostBlockingPoolTask(const tracked_objects::Location& from_here,
- const base::Closure& task);
+ base::Closure task);
static bool PostBlockingPoolTaskAndReply(
const tracked_objects::Location& from_here,
base::Closure task,
@@ -169,7 +169,7 @@ class WebThread {
static bool PostBlockingPoolSequencedTask(
const std::string& sequence_token_name,
const tracked_objects::Location& from_here,
- const base::Closure& task);
+ base::Closure task);
// Returns the thread pool used for blocking file I/O. Use this object to
// perform random blocking operations such as file writes.

Powered by Google App Engine
This is Rietveld 408576698