| 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 NET_QUIC_QUIC_SUSTAINED_BANDWIDTH_RECORDER_H_ | 5 #ifndef NET_QUIC_QUIC_SUSTAINED_BANDWIDTH_RECORDER_H_ |
| 6 #define NET_QUIC_QUIC_SUSTAINED_BANDWIDTH_RECORDER_H_ | 6 #define NET_QUIC_QUIC_SUSTAINED_BANDWIDTH_RECORDER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "net/quic/quic_bandwidth.h" | 12 #include "net/quic/core/quic_bandwidth.h" |
| 13 #include "net/quic/quic_time.h" | 13 #include "net/quic/core/quic_time.h" |
| 14 | 14 |
| 15 namespace net { | 15 namespace net { |
| 16 | 16 |
| 17 namespace test { | 17 namespace test { |
| 18 class QuicSustainedBandwidthRecorderPeer; | 18 class QuicSustainedBandwidthRecorderPeer; |
| 19 } // namespace test | 19 } // namespace test |
| 20 | 20 |
| 21 // This class keeps track of a sustained bandwidth estimate to ultimately send | 21 // This class keeps track of a sustained bandwidth estimate to ultimately send |
| 22 // to the client in a server config update message. A sustained bandwidth | 22 // to the client in a server config update message. A sustained bandwidth |
| 23 // estimate is only marked as valid if the QuicSustainedBandwidthRecorder has | 23 // estimate is only marked as valid if the QuicSustainedBandwidthRecorder has |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 // Timestamp marking the beginning of the latest recording period. | 85 // Timestamp marking the beginning of the latest recording period. |
| 86 QuicTime start_time_; | 86 QuicTime start_time_; |
| 87 | 87 |
| 88 DISALLOW_COPY_AND_ASSIGN(QuicSustainedBandwidthRecorder); | 88 DISALLOW_COPY_AND_ASSIGN(QuicSustainedBandwidthRecorder); |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 } // namespace net | 91 } // namespace net |
| 92 | 92 |
| 93 #endif // NET_QUIC_QUIC_SUSTAINED_BANDWIDTH_RECORDER_H_ | 93 #endif // NET_QUIC_QUIC_SUSTAINED_BANDWIDTH_RECORDER_H_ |
| OLD | NEW |