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

Unified Diff: base/pending_task.h

Issue 2386653002: Replace base::Callback with base::OnceCallback in base::PendingTask (Closed)
Patch Set: move UnsafeConvertOnceClosureToRepeating Created 4 years, 2 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
« no previous file with comments | « base/message_loop/message_pump_perftest.cc ('k') | base/pending_task.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/pending_task.h
diff --git a/base/pending_task.h b/base/pending_task.h
index 5761653397e0e5d011522f56e786fa1cbbbcc373..a55fa518ea070e61ae4d4d23139731e86db5ac15 100644
--- a/base/pending_task.h
+++ b/base/pending_task.h
@@ -18,10 +18,9 @@ namespace base {
// Contains data about a pending task. Stored in TaskQueue and DelayedTaskQueue
// for use by classes that queue and execute tasks.
struct BASE_EXPORT PendingTask : public TrackingInfo {
+ PendingTask(const tracked_objects::Location& posted_from, OnceClosure task);
PendingTask(const tracked_objects::Location& posted_from,
- Closure task);
- PendingTask(const tracked_objects::Location& posted_from,
- Closure task,
+ OnceClosure task,
TimeTicks delayed_run_time,
bool nestable);
PendingTask(PendingTask&& other);
@@ -33,7 +32,7 @@ struct BASE_EXPORT PendingTask : public TrackingInfo {
bool operator<(const PendingTask& other) const;
// The task to run.
- Closure task;
+ OnceClosure task;
// The site this PendingTask was posted from.
tracked_objects::Location posted_from;
« no previous file with comments | « base/message_loop/message_pump_perftest.cc ('k') | base/pending_task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698