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

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

Issue 2118783002: scheduler: Add an unthrottled per-frame task runner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add implementation in EmptyClients Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/Source/core/loader/EmptyClients.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebFrameScheduler.h
diff --git a/third_party/WebKit/public/platform/WebFrameScheduler.h b/third_party/WebKit/public/platform/WebFrameScheduler.h
index e1454b3b71cc5dac8317340bdff3aa996d4bfeb6..59bc25ba009fa8c6b36ee7bd47675586dc6adabd 100644
--- a/third_party/WebKit/public/platform/WebFrameScheduler.h
+++ b/third_party/WebKit/public/platform/WebFrameScheduler.h
@@ -32,6 +32,14 @@ public:
// Returns the WebTaskRunner for timer tasks.
// WebFrameScheduler owns the returned WebTaskRunner.
virtual WebTaskRunner* timerTaskRunner() { return nullptr; }
+
+ // 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
+ // are known should be posted to this task runner; for example user
+ // JavaScript is discouraged. WebFrameScheduler owns the returned
+ // WebTaskRunner.
+ virtual WebTaskRunner* unthrottledTaskRunner() { return nullptr; }
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/loader/EmptyClients.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698