Chromium Code Reviews| Index: third_party/WebKit/public/platform/WebViewScheduler.h |
| diff --git a/third_party/WebKit/public/platform/WebViewScheduler.h b/third_party/WebKit/public/platform/WebViewScheduler.h |
| index ae94ab88081f36df642d90e7d11562c81d4b5d25..55f61844efb87adf1e1d4e371c783616923df865 100644 |
| --- a/third_party/WebKit/public/platform/WebViewScheduler.h |
| +++ b/third_party/WebKit/public/platform/WebViewScheduler.h |
| @@ -16,6 +16,18 @@ class WebFrameScheduler; |
| class BLINK_PLATFORM_EXPORT WebViewScheduler { |
| public: |
| + // Helper interface to plumb settings from WebSettings to scheduler. |
| + class BLINK_PLATFORM_EXPORT WebViewSchedulerSettings { |
|
Sami
2016/11/07 16:33:42
nit: To improve readability how about just calling
altimin
2016/11/07 17:01:33
I considered doing this, but given that WebViewImp
Sami
2016/11/07 17:08:34
Hmm, it will inherit WebViewScheduler::Settings, n
altimin
2016/11/07 17:10:29
My understanding is that Settings inside WebViewSc
|
| + public: |
| + virtual ~WebViewSchedulerSettings() {} |
| + |
| + // Background throttling aggressiveness settings. |
| + virtual float expensiveBackgroundThrottlingCPUBudget() = 0; |
| + virtual float expensiveBackgroundThrottlingInitialBudget() = 0; |
| + virtual float expensiveBackgroundThrottlingMaxBudget() = 0; |
| + virtual float expensiveBackgroundThrottlingMaxDelay() = 0; |
| + }; |
| + |
| virtual ~WebViewScheduler() {} |
| // The scheduler may throttle tasks associated with background pages. |