Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h

Issue 2890173002: EQT: Record the max queueing time from navigation start to navigation away (Closed)
Patch Set: fix mock_renderer_scheduler Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // thread. 144 // thread.
145 virtual void AddPendingNavigation(NavigatingFrameType type) = 0; 145 virtual void AddPendingNavigation(NavigatingFrameType type) = 0;
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 // TODO(maxlg): remove OnNavigationStarted and migrate this part into
155 // OnCommitProvisionalLoad.
154 virtual void OnNavigationStarted() = 0; 156 virtual void OnNavigationStarted() = 0;
155 157
158 // Tells the scheduler that the provisional load has been committed. This
159 // signals the point that activity stops happening in the old page and the
160 // renderer starts parsing and rendering the new page.
161 virtual void OnCommitProvisionalLoad() = 0;
162
156 // Returns true if the scheduler has reason to believe that high priority work 163 // 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 164 // may soon arrive on the main thread, e.g., if gesture events were observed
158 // recently. 165 // recently.
159 // Must be called from the main thread. 166 // Must be called from the main thread.
160 virtual bool IsHighPriorityWorkAnticipated() = 0; 167 virtual bool IsHighPriorityWorkAnticipated() = 0;
161 168
162 // Suspends the timer queues and increments the timer queue suspension count. 169 // Suspends the timer queues and increments the timer queue suspension count.
163 // May only be called from the main thread. 170 // May only be called from the main thread.
164 virtual void SuspendTimerQueue() = 0; 171 virtual void SuspendTimerQueue() = 0;
165 172
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 208
202 protected: 209 protected:
203 RendererScheduler(); 210 RendererScheduler();
204 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); 211 DISALLOW_COPY_AND_ASSIGN(RendererScheduler);
205 }; 212 };
206 213
207 } // namespace scheduler 214 } // namespace scheduler
208 } // namespace blink 215 } // namespace blink
209 216
210 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_H_ 217 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698