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

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

Issue 2637463002: Add an idle task to periodically sweep canceled delayed tasks (Closed)
Patch Set: Fix issue with tracked_objects::Location spotted by asan Created 3 years, 11 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_manager.h
diff --git a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h
index 0fbfa7e12e62b6ad42849512d88b5ad089bbf1d9..53b95608089341615c3bcaf7ed958a35eb90907d 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h
+++ b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h
@@ -140,6 +140,9 @@ class BLINK_PLATFORM_EXPORT TaskQueueManager
// Returns true if there is a task that could be executed immediately.
bool HasImmediateWorkForTesting() const;
+ // Removes all canceled delayed tasks.
+ void SweepCanceledDelayedTasks();
+
private:
friend class LazyNow;
friend class internal::TaskQueueImpl;

Powered by Google App Engine
This is Rietveld 408576698