| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SOURCE_PLATFORM_SCHEDULER_RENDERER_QUEUEING_TIME_ESTI
MATOR_H_ | 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_QUEUEING_TIME_ESTI
MATOR_H_ |
| 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_QUEUEING_TIME_ESTI
MATOR_H_ | 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_QUEUEING_TIME_ESTI
MATOR_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "public/platform/WebCommon.h" | 10 #include "public/platform/WebCommon.h" |
| 11 | 11 |
| 12 namespace base { | |
| 13 class TickClock; | |
| 14 } | |
| 15 | |
| 16 namespace blink { | 12 namespace blink { |
| 17 namespace scheduler { | 13 namespace scheduler { |
| 18 | 14 |
| 19 // Records the expected queueing time for a high priority task occurring | 15 // Records the expected queueing time for a high priority task occurring |
| 20 // randomly during each interval of length |window_duration|. | 16 // randomly during each interval of length |window_duration|. |
| 21 class BLINK_PLATFORM_EXPORT QueueingTimeEstimator { | 17 class BLINK_PLATFORM_EXPORT QueueingTimeEstimator { |
| 22 public: | 18 public: |
| 23 class BLINK_PLATFORM_EXPORT Client { | 19 class BLINK_PLATFORM_EXPORT Client { |
| 24 public: | 20 public: |
| 25 virtual void OnQueueingTimeForWindowEstimated( | 21 virtual void OnQueueingTimeForWindowEstimated( |
| (...skipping 18 matching lines...) Expand all Loading... |
| 44 base::TimeDelta window_duration_; | 40 base::TimeDelta window_duration_; |
| 45 base::TimeTicks window_start_time_; | 41 base::TimeTicks window_start_time_; |
| 46 | 42 |
| 47 DISALLOW_COPY_AND_ASSIGN(QueueingTimeEstimator); | 43 DISALLOW_COPY_AND_ASSIGN(QueueingTimeEstimator); |
| 48 }; | 44 }; |
| 49 | 45 |
| 50 } // namespace scheduler | 46 } // namespace scheduler |
| 51 } // namespace blink | 47 } // namespace blink |
| 52 | 48 |
| 53 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_QUEUEING_TIME_E
STIMATOR_H_ | 49 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_QUEUEING_TIME_E
STIMATOR_H_ |
| OLD | NEW |