Chromium Code Reviews| Index: third_party/WebKit/public/platform/scheduler/base/task_queue.h |
| diff --git a/third_party/WebKit/public/platform/scheduler/base/task_queue.h b/third_party/WebKit/public/platform/scheduler/base/task_queue.h |
| index de0d22ce45eb4f5bf4373b8beef0c3378ac7b9c4..3b0ac8c972971ed79eb7ce73b32419ca598801b0 100644 |
| --- a/third_party/WebKit/public/platform/scheduler/base/task_queue.h |
| +++ b/third_party/WebKit/public/platform/scheduler/base/task_queue.h |
| @@ -144,10 +144,15 @@ class BLINK_PLATFORM_EXPORT TaskQueue : public base::SingleThreadTaskRunner { |
| // Returns true if the queue is completely empty. |
| virtual bool IsEmpty() const = 0; |
| - // Returns true if the queue has work that's ready to execute now. NOTE this |
| - // must be called on the thread this TaskQueue was created by. |
| + // Returns true if the queue has work that's ready to execute now. |
| + // NOTE: this must be called on the thread this TaskQueue was created by. |
| virtual bool HasPendingImmediateWork() const = 0; |
| + // Returns true if the queue has delayed tasks which are not ready to run. |
| + // If result is true, sets |wakeup| to the time of next delayed task. |
| + // NOTE: this must be called on the thread this TaskQueue was created by. |
| + virtual bool NextScheduledWakeUp(base::TimeTicks* wakeup) = 0; |
|
Sami
2016/09/07 15:20:44
nit: GetNext... to match the naming around here.
altimin
2016/09/09 15:43:58
Done.
|
| + |
| // Can be called on any thread. |
| virtual const char* GetName() const = 0; |