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; | |
Charlie Reis
2017/06/02 22:38:37
This needs a comment, especially for how it differ
Liquan (Max) Gu
2017/06/02 23:32:06
I am not sure about what "Commit Provisional Load"
Charlie Reis
2017/06/05 05:02:34
No, sorry, I think that's more confusing.
I think
Liquan (Max) Gu
2017/06/05 16:15:56
Thanks!
| |
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 queues and increments the timer queue suspension count. | 164 // Suspends the timer queues 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
201 | 203 |
202 protected: | 204 protected: |
203 RendererScheduler(); | 205 RendererScheduler(); |
204 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); | 206 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); |
205 }; | 207 }; |
206 | 208 |
207 } // namespace scheduler | 209 } // namespace scheduler |
208 } // namespace blink | 210 } // namespace blink |
209 | 211 |
210 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_H_ | 212 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_H_ |
OLD | NEW |