OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER
_H_ | 5 #ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER
_H_ |
6 #define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER
_H_ | 6 #define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER
_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 // Tells the scheduler that a navigation task is no longer pending. | 147 // Tells the scheduler that a navigation task is no longer pending. |
148 // Must be called on the main thread. | 148 // Must be called on the main thread. |
149 virtual void RemovePendingNavigation(NavigatingFrameType type) = 0; | 149 virtual void RemovePendingNavigation(NavigatingFrameType type) = 0; |
150 | 150 |
151 // Tells the scheduler that a navigation has started. The scheduler will | 151 // Tells the scheduler that a navigation has started. The scheduler will |
152 // prioritize loading tasks for a short duration afterwards. | 152 // prioritize loading tasks for a short duration afterwards. |
153 // Must be called from the main thread. | 153 // Must be called from the main thread. |
154 virtual void OnNavigationStarted() = 0; | 154 virtual void OnNavigationStarted() = 0; |
155 | 155 |
| 156 virtual void OnCommitProvisionalLoad() = 0; |
| 157 |
156 // Returns true if the scheduler has reason to believe that high priority work | 158 // Returns true if the scheduler has reason to believe that high priority work |
157 // may soon arrive on the main thread, e.g., if gesture events were observed | 159 // may soon arrive on the main thread, e.g., if gesture events were observed |
158 // recently. | 160 // recently. |
159 // Must be called from the main thread. | 161 // Must be called from the main thread. |
160 virtual bool IsHighPriorityWorkAnticipated() = 0; | 162 virtual bool IsHighPriorityWorkAnticipated() = 0; |
161 | 163 |
162 // Suspends the timer queue and increments the timer queue suspension count. | 164 // Suspends the timer queue and increments the timer queue suspension count. |
163 // May only be called from the main thread. | 165 // May only be called from the main thread. |
164 virtual void SuspendTimerQueue() = 0; | 166 virtual void SuspendTimerQueue() = 0; |
165 | 167 |
(...skipping 25 matching lines...) Expand all Loading... |
191 | 193 |
192 protected: | 194 protected: |
193 RendererScheduler(); | 195 RendererScheduler(); |
194 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); | 196 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); |
195 }; | 197 }; |
196 | 198 |
197 } // namespace scheduler | 199 } // namespace scheduler |
198 } // namespace blink | 200 } // namespace blink |
199 | 201 |
200 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU
LER_H_ | 202 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU
LER_H_ |
OLD | NEW |