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

Unified Diff: base/sequenced_task_runner.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: base/sequenced_task_runner.h
diff --git a/base/sequenced_task_runner.h b/base/sequenced_task_runner.h
index 6b2726ed4fe74c4e1208e1514d391191985692e2..b92bd997e1fc14c76cd3a4aa9a8b900e932edd1f 100644
--- a/base/sequenced_task_runner.h
+++ b/base/sequenced_task_runner.h
@@ -6,6 +6,7 @@
#define BASE_SEQUENCED_TASK_RUNNER_H_
#include "base/base_export.h"
+#include "base/callback.h"
#include "base/sequenced_task_runner_helpers.h"
#include "base/task_runner.h"
@@ -109,11 +110,11 @@ class BASE_EXPORT SequencedTaskRunner : public TaskRunner {
// below.
bool PostNonNestableTask(const tracked_objects::Location& from_here,
- const Closure& task);
+ Closure task);
virtual bool PostNonNestableDelayedTask(
const tracked_objects::Location& from_here,
- const Closure& task,
+ Closure task,
base::TimeDelta delay) = 0;
// Submits a non-nestable task to delete the given object. Returns

Powered by Google App Engine
This is Rietveld 408576698