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

Unified Diff: third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h

Issue 2637843002: Migrate base::TaskRunner from Closure to OnceClosure (Closed)
Patch Set: rebase Created 3 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: third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h
diff --git a/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h b/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h
index a50de1563f30f67241260e9d44d8430e1359fb42..b786e22373e47b370d965d04f09a9e5cef637d31 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h
+++ b/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h
@@ -69,13 +69,13 @@ class BLINK_PLATFORM_EXPORT TaskQueueImpl final : public TaskQueue {
public:
Task();
Task(const tracked_objects::Location& posted_from,
- base::Closure task,
+ base::OnceClosure task,
base::TimeTicks desired_run_time,
EnqueueOrder sequence_number,
bool nestable);
Task(const tracked_objects::Location& posted_from,
- base::Closure task,
+ base::OnceClosure task,
base::TimeTicks desired_run_time,
EnqueueOrder sequence_number,
bool nestable,
@@ -131,10 +131,10 @@ class BLINK_PLATFORM_EXPORT TaskQueueImpl final : public TaskQueue {
void UnregisterTaskQueue() override;
bool RunsTasksOnCurrentThread() const override;
bool PostDelayedTask(const tracked_objects::Location& from_here,
- base::Closure task,
+ base::OnceClosure task,
base::TimeDelta delay) override;
bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here,
- base::Closure task,
+ base::OnceClosure task,
base::TimeDelta delay) override;
std::unique_ptr<QueueEnabledVoter> CreateQueueEnabledVoter() override;
bool IsQueueEnabled() const override;
@@ -283,10 +283,10 @@ class BLINK_PLATFORM_EXPORT TaskQueueImpl final : public TaskQueue {
~TaskQueueImpl() override;
bool PostImmediateTaskImpl(const tracked_objects::Location& from_here,
- base::Closure task,
+ base::OnceClosure task,
TaskType task_type);
bool PostDelayedTaskImpl(const tracked_objects::Location& from_here,
- base::Closure task,
+ base::OnceClosure task,
base::TimeDelta delay,
TaskType task_type);
@@ -308,7 +308,7 @@ class BLINK_PLATFORM_EXPORT TaskQueueImpl final : public TaskQueue {
// empty.
void PushOntoImmediateIncomingQueueLocked(
const tracked_objects::Location& posted_from,
- base::Closure task,
+ base::OnceClosure task,
base::TimeTicks desired_run_time,
EnqueueOrder sequence_number,
bool nestable);

Powered by Google App Engine
This is Rietveld 408576698