Index: third_party/WebKit/public/platform/WebScheduler.h |
diff --git a/third_party/WebKit/public/platform/WebScheduler.h b/third_party/WebKit/public/platform/WebScheduler.h |
index 122918693a863641b39726789d7690050ba2440a..49cb48df4f9f277b295c03df7d3766288482abbc 100644 |
--- a/third_party/WebKit/public/platform/WebScheduler.h |
+++ b/third_party/WebKit/public/platform/WebScheduler.h |
@@ -84,6 +84,13 @@ public: |
// if the suspension count is zero and the current scheduler policy allows it. |
virtual void resumeTimerQueue() { } |
+ // Tells the scheduler that a navigation is expected. This temporarially |
Sami
2015/09/24 14:15:04
nit: I don't think we need to specify here how thi
alex clarke (OOO till 29th)
2015/09/24 14:53:10
Done.
|
+ // prevents blocking of expensive tasks. |
+ virtual void navigationExpected() { } |
Sami
2015/09/24 14:15:04
nit: should all of these be onNavigation[...] to m
alex clarke (OOO till 29th)
2015/09/24 14:53:10
Done.
|
+ |
+ // Tells the scheduler that an expected navigation was canceled. |
+ virtual void navigationCanceled() { } |
+ |
#ifdef INSIDE_BLINK |
// Helpers for posting bound functions as tasks. |
typedef Function<void(double deadlineSeconds)> IdleTask; |