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

Unified Diff: public/platform/WebScheduler.h

Issue 1111693003: Remove the concept of a cleanup task (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Potential shutdown sequence with some debug logging. Created 5 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: public/platform/WebScheduler.h
diff --git a/public/platform/WebScheduler.h b/public/platform/WebScheduler.h
index 463d1300af735ada6a105b97c63716c5c66145e6..2e3760e6902a52b3b73ab3869448a639e9f6c8c5 100644
--- a/public/platform/WebScheduler.h
+++ b/public/platform/WebScheduler.h
@@ -18,6 +18,10 @@ class BLINK_PLATFORM_EXPORT WebScheduler {
public:
virtual ~WebScheduler() { }
+ // Called to prevent any more pending tasks from running. Must be called on
+ // the associated WebThread.
+ virtual void shutdown() { }
+
// Returns true if there is high priority work pending on the associated WebThread
// and the caller should yield to let the scheduler service that work.
// Must be called on the associated WebThread.
« Source/core/workers/WorkerThread.cpp ('K') | « Source/modules/webdatabase/DatabaseTracker.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698