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

Unified Diff: third_party/WebKit/Source/platform/WebFrameScheduler.h

Issue 2754673002: [scheduler] Split suspendable tq from unthrottled tq. (Closed)
Patch Set: For the moment make only database access tasks suspendable Created 3 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: third_party/WebKit/Source/platform/WebFrameScheduler.h
diff --git a/third_party/WebKit/Source/platform/WebFrameScheduler.h b/third_party/WebKit/Source/platform/WebFrameScheduler.h
index 0a14a9d928c02cdfd602481eb4db293fc7d9978a..ce6ec6e87d51efe8069a04606764270f20e73686 100644
--- a/third_party/WebKit/Source/platform/WebFrameScheduler.h
+++ b/third_party/WebKit/Source/platform/WebFrameScheduler.h
@@ -51,6 +51,13 @@ class WebFrameScheduler {
// WebFrameScheduler owns the returned WebTaskRunner.
virtual RefPtr<WebTaskRunner> timerTaskRunner() = 0;
+ // Returns the WebTaskRunner for tasks which shouldn't get throttled,
+ // but can be suspended.
+ // TODO(altimin): This is a transitional task runner. Unthrottled task runner
+ // would become suspendable in the nearest future and a new unsuspended
+ // task runner will be added.
+ virtual RefPtr<WebTaskRunner> suspendableTaskRunner() = 0;
+
// Returns the WebTaskRunner for tasks which should never get throttled.
// This is generally used for executing internal browser tasks which should
// never be throttled. Ideally only tasks whose performance characteristics

Powered by Google App Engine
This is Rietveld 408576698