| 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..1183691e5b992f4f01894ef148931d18117a9e04 100644
|
| --- a/third_party/WebKit/public/platform/WebFrameScheduler.h
|
| +++ b/third_party/WebKit/public/platform/WebFrameScheduler.h
|
| @@ -13,6 +13,7 @@ namespace blink {
|
|
|
| class WebSecurityOrigin;
|
| class WebTaskRunner;
|
| +class WebViewScheduler;
|
|
|
| class BLINK_PLATFORM_EXPORT WebFrameScheduler {
|
| public:
|
| @@ -32,6 +33,17 @@ public:
|
| // Returns the WebTaskRunner for timer tasks.
|
| // WebFrameScheduler owns the returned WebTaskRunner.
|
| virtual WebTaskRunner* timerTaskRunner() { return nullptr; }
|
| +
|
| + // Returns the parent WebViewScheduler.
|
| + virtual WebViewScheduler* webViewScheduler() { return nullptr; }
|
| +
|
| + // Tells the scheduler a resource load has started. The scheduler may make
|
| + // policy decisions based on this.
|
| + virtual void incrementPendingResourceLoadCount() { }
|
| +
|
| + // Tells the scheduler a resource load has started. The scheduler may make
|
| + // policy decisions based on this.
|
| + virtual void decrementPendingResourceLoadCount() { }
|
| };
|
|
|
| } // namespace blink
|
|
|