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

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

Issue 2416803003: Record PendingTaskCount when a backgrounded renderer is suspended. (Closed)
Patch Set: Add unittest 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
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 da66808172335e0d9c06d968a0482f191a08d6fc..0514b320abbc776671447fb54eda1ea09bbf7747 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
@@ -121,6 +121,7 @@ class BLINK_PLATFORM_EXPORT TaskQueueImpl final : public TaskQueue {
void SetQueueEnabled(bool enabled) override;
bool IsQueueEnabled() const override;
bool IsEmpty() const override;
+ unsigned GetNumberOfPendingTasks() const override;
Sami 2016/10/14 01:38:18 nit: Please use size_t instead of unsigned types.
tasak 2016/10/14 05:55:31 Done.
bool HasPendingImmediateWork() const override;
base::Optional<base::TimeTicks> GetNextScheduledWakeUp() override;
void SetQueuePriority(QueuePriority priority) override;

Powered by Google App Engine
This is Rietveld 408576698