| 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 {
|
| + 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.
|
|
|