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_CORE_CONGESTION_CONTROL_RTT_STATS_H_ | 7 #ifndef NET_QUIC_CORE_CONGESTION_CONTROL_RTT_STATS_H_ |
8 #define NET_QUIC_CORE_CONGESTION_CONTROL_RTT_STATS_H_ | 8 #define NET_QUIC_CORE_CONGESTION_CONTROL_RTT_STATS_H_ |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 #include <cstdint> | 11 #include <cstdint> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "net/quic/core/quic_bug_tracker.h" | |
15 #include "net/quic/core/quic_packets.h" | 14 #include "net/quic/core/quic_packets.h" |
16 #include "net/quic/core/quic_time.h" | 15 #include "net/quic/core/quic_time.h" |
| 16 #include "net/quic/platform/api/quic_bug_tracker.h" |
17 #include "net/quic/platform/api/quic_export.h" | 17 #include "net/quic/platform/api/quic_export.h" |
18 | 18 |
19 namespace net { | 19 namespace net { |
20 | 20 |
21 namespace test { | 21 namespace test { |
22 class RttStatsPeer; | 22 class RttStatsPeer; |
23 } // namespace test | 23 } // namespace test |
24 | 24 |
25 class QUIC_EXPORT_PRIVATE RttStats { | 25 class QUIC_EXPORT_PRIVATE RttStats { |
26 public: | 26 public: |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // larger than the standard deviation, for a normally distributed signal. | 80 // larger than the standard deviation, for a normally distributed signal. |
81 QuicTime::Delta mean_deviation_; | 81 QuicTime::Delta mean_deviation_; |
82 int64_t initial_rtt_us_; | 82 int64_t initial_rtt_us_; |
83 | 83 |
84 DISALLOW_COPY_AND_ASSIGN(RttStats); | 84 DISALLOW_COPY_AND_ASSIGN(RttStats); |
85 }; | 85 }; |
86 | 86 |
87 } // namespace net | 87 } // namespace net |
88 | 88 |
89 #endif // NET_QUIC_CORE_CONGESTION_CONTROL_RTT_STATS_H_ | 89 #endif // NET_QUIC_CORE_CONGESTION_CONTROL_RTT_STATS_H_ |
OLD | NEW |