| 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
|
|
|