Index: base/task_scheduler/scheduler_worker.h |
diff --git a/base/task_scheduler/scheduler_worker.h b/base/task_scheduler/scheduler_worker.h |
index eee2f4a56c723304809cc99371c446f7bf64d6a3..ec49eb8d61c935fd61102ca857ddfdce9eec0ee4 100644 |
--- a/base/task_scheduler/scheduler_worker.h |
+++ b/base/task_scheduler/scheduler_worker.h |
@@ -53,10 +53,11 @@ class BASE_EXPORT SchedulerWorker { |
// run a Task. |
virtual scoped_refptr<Sequence> GetWork(SchedulerWorker* worker) = 0; |
- // Called by the SchedulerWorker after it ran |task|. |task_latency| is the |
- // time elapsed between when the task was posted and when it started to run. |
- virtual void DidRunTask(const Task* task, |
- const TimeDelta& task_latency) = 0; |
+ // Called by the SchedulerWorker after it ran a task with |task_priority|. |
+ // |task_latency| is the time elapsed between when the task was posted and |
+ // when it started to run. |
+ virtual void DidRunTaskWithPriority(TaskPriority task_priority, |
+ const TimeDelta& task_latency) = 0; |
// Called when |sequence| isn't empty after the SchedulerWorker pops a Task |
// from it. |sequence| is the last Sequence returned by GetWork(). |