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

Unified Diff: components/scheduler/base/work_queue.h

Issue 1886453003: Make PendingTask move-only and pass it by value on retaining params (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: components/scheduler/base/work_queue.h
diff --git a/components/scheduler/base/work_queue.h b/components/scheduler/base/work_queue.h
index 9ff919d7f7e09786db3234d442051723e261685d..d7cf057912ee7d730f140652ca1985d50c563dfc 100644
--- a/components/scheduler/base/work_queue.h
+++ b/components/scheduler/base/work_queue.h
@@ -49,11 +49,11 @@ class SCHEDULER_EXPORT WorkQueue {
// Pushes the task onto the |work_queue_| and informs the WorkQueueSets if
// the head changed.
- void Push(const TaskQueueImpl::Task& task);
+ void Push(TaskQueueImpl::Task task);
// Pushes the task onto the |work_queue_|, sets the |enqueue_order| and
// informs the WorkQueueSets if the head changed.
- void PushAndSetEnqueueOrder(const TaskQueueImpl::Task& task,
+ void PushAndSetEnqueueOrder(TaskQueueImpl::Task task,
EnqueueOrder enqueue_order);
// Swap the |work_queue_| with |incoming_queue| and informs the

Powered by Google App Engine
This is Rietveld 408576698