| 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..8d8910eb9181c11b00c010cecc0860ea9f3e6834 100644
|
| --- a/third_party/WebKit/public/platform/WebFrameScheduler.h
|
| +++ b/third_party/WebKit/public/platform/WebFrameScheduler.h
|
| @@ -25,6 +25,11 @@ public:
|
| // The scheduler may throttle tasks associated with pages that are not visible.
|
| virtual void setPageVisible(bool) { }
|
|
|
| + // Set whether this frame is cross origin w.r.t. the top level frame. Cross
|
| + // origin frames may use a different scheduling policy from same origin
|
| + // frames.
|
| + virtual void setCrossOrigin(bool) {}
|
| +
|
| // Returns the WebTaskRunner for loading tasks.
|
| // WebFrameScheduler owns the returned WebTaskRunner.
|
| virtual WebTaskRunner* loadingTaskRunner() { return nullptr; }
|
| @@ -32,6 +37,10 @@ public:
|
| // Returns the WebTaskRunner for timer tasks.
|
| // WebFrameScheduler owns the returned WebTaskRunner.
|
| virtual WebTaskRunner* timerTaskRunner() { return nullptr; }
|
| +
|
| + // Returns the WebTaskRunner for tasks which don't fit into the above
|
| + // categories. WebFrameScheduler owns the returned WebTaskRunner.
|
| + virtual WebTaskRunner* defaultTaskRunner() { return nullptr; }
|
| };
|
|
|
| } // namespace blink
|
|
|