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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.h

Issue 2471153002: [scheduler] Use Finch to control background throttling. (Closed)
Patch Set: Fix test and address comments Created 4 years, 1 month 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/web/WebSettingsImpl.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebViewImpl.h
diff --git a/third_party/WebKit/Source/web/WebViewImpl.h b/third_party/WebKit/Source/web/WebViewImpl.h
index 5cbf14d9716cbf6d33dd9445dafc71953644c31b..6edb9d6272c03adf28f8f5f49a7796371434d130 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.h
+++ b/third_party/WebKit/Source/web/WebViewImpl.h
@@ -100,7 +100,8 @@ class WEB_EXPORT WebViewImpl final
public RefCounted<WebViewImpl>,
WTF_NON_EXPORTED_BASE(public WebGestureCurveTarget),
public PageWidgetEventHandler,
- public WebScheduler::InterventionReporter {
+ public WebScheduler::InterventionReporter,
+ public WebViewScheduler::WebViewSchedulerSettings {
public:
static WebViewImpl* create(WebViewClient*, WebPageVisibilityState);
static HashSet<WebViewImpl*>& allInstances();
@@ -279,6 +280,12 @@ class WEB_EXPORT WebViewImpl final
// WebScheduler::InterventionReporter implementation:
void ReportIntervention(const WebString& message) override;
+ // WebViewScheduler::WebViewSchedulerSettings implementation:
+ float expensiveBackgroundThrottlingCPUBudget() override;
+ float expensiveBackgroundThrottlingInitialBudget() override;
+ float expensiveBackgroundThrottlingMaxBudget() override;
+ float expensiveBackgroundThrottlingMaxDelay() override;
+
void didUpdateFullscreenSize();
float defaultMinimumPageScaleFactor() const;
« no previous file with comments | « third_party/WebKit/Source/web/WebSettingsImpl.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698