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 // A convenience class to store rtt samples and calculate smoothed rtt. | 5 // A convenience class to store rtt samples and calculate smoothed rtt. |
6 | 6 |
7 #ifndef NET_QUIC_CONGESTION_CONTROL_RTT_STATS_H_ | 7 #ifndef NET_QUIC_CONGESTION_CONTROL_RTT_STATS_H_ |
8 #define NET_QUIC_CONGESTION_CONTROL_RTT_STATS_H_ | 8 #define NET_QUIC_CONGESTION_CONTROL_RTT_STATS_H_ |
9 | 9 |
10 #include <stdint.h> | 10 #include <stdint.h> |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 QuicTime::Delta mean_deviation_; | 92 QuicTime::Delta mean_deviation_; |
93 int64_t initial_rtt_us_; | 93 int64_t initial_rtt_us_; |
94 | 94 |
95 // Variables used to force a new windowed_min_rtt measurement within | 95 // Variables used to force a new windowed_min_rtt measurement within |
96 // num_samples_for_forced_min_. | 96 // num_samples_for_forced_min_. |
97 QuicTime::Delta forced_windowed_min_rtt_; | 97 QuicTime::Delta forced_windowed_min_rtt_; |
98 QuicTime forced_windowed_min_rtt_time_; | 98 QuicTime forced_windowed_min_rtt_time_; |
99 uint32_t num_samples_for_forced_min_; | 99 uint32_t num_samples_for_forced_min_; |
100 | 100 |
101 // Windowed min_rtt. | 101 // Windowed min_rtt. |
102 WindowedFilter<QuicTime::Delta, MinFilter<QuicTime::Delta>> windowed_min_rtt_; | 102 WindowedFilter<QuicTime::Delta, |
| 103 MinFilter<QuicTime::Delta>, |
| 104 QuicTime, |
| 105 QuicTime::Delta> |
| 106 windowed_min_rtt_; |
103 | 107 |
104 DISALLOW_COPY_AND_ASSIGN(RttStats); | 108 DISALLOW_COPY_AND_ASSIGN(RttStats); |
105 }; | 109 }; |
106 | 110 |
107 } // namespace net | 111 } // namespace net |
108 | 112 |
109 #endif // NET_QUIC_CONGESTION_CONTROL_RTT_STATS_H_ | 113 #endif // NET_QUIC_CONGESTION_CONTROL_RTT_STATS_H_ |
OLD | NEW |