| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 // TCP cubic send side congestion algorithm, emulates the behavior of TCP cubic. | 5 // TCP cubic send side congestion algorithm, emulates the behavior of TCP cubic. |
| 6 | 6 |
| 7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ | 7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ |
| 8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ | 8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // Maximum congestion window in bytes. | 122 // Maximum congestion window in bytes. |
| 123 QuicByteCount max_congestion_window_; | 123 QuicByteCount max_congestion_window_; |
| 124 | 124 |
| 125 // Slow start congestion window in bytes, aka ssthresh. | 125 // Slow start congestion window in bytes, aka ssthresh. |
| 126 QuicByteCount slowstart_threshold_; | 126 QuicByteCount slowstart_threshold_; |
| 127 | 127 |
| 128 // Whether the last loss event caused us to exit slowstart. Used for stats | 128 // Whether the last loss event caused us to exit slowstart. Used for stats |
| 129 // collection of slowstart_packets_lost. | 129 // collection of slowstart_packets_lost. |
| 130 bool last_cutback_exited_slowstart_; | 130 bool last_cutback_exited_slowstart_; |
| 131 | 131 |
| 132 const QuicClock* clock_; | |
| 133 | |
| 134 DISALLOW_COPY_AND_ASSIGN(TcpCubicBytesSender); | 132 DISALLOW_COPY_AND_ASSIGN(TcpCubicBytesSender); |
| 135 }; | 133 }; |
| 136 | 134 |
| 137 } // namespace net | 135 } // namespace net |
| 138 | 136 |
| 139 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ | 137 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ |
| OLD | NEW |