| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SENDER_H_ | 7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
| 8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // Slow start congestion window in packets, aka ssthresh. | 123 // Slow start congestion window in packets, aka ssthresh. |
| 124 QuicPacketCount slowstart_threshold_; | 124 QuicPacketCount slowstart_threshold_; |
| 125 | 125 |
| 126 // Whether the last loss event caused us to exit slowstart. | 126 // Whether the last loss event caused us to exit slowstart. |
| 127 // Used for stats collection of slowstart_packets_lost | 127 // Used for stats collection of slowstart_packets_lost |
| 128 bool last_cutback_exited_slowstart_; | 128 bool last_cutback_exited_slowstart_; |
| 129 | 129 |
| 130 // Maximum number of outstanding packets for tcp. | 130 // Maximum number of outstanding packets for tcp. |
| 131 QuicPacketCount max_tcp_congestion_window_; | 131 QuicPacketCount max_tcp_congestion_window_; |
| 132 | 132 |
| 133 const QuicClock* clock_; | |
| 134 | |
| 135 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); | 133 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); |
| 136 }; | 134 }; |
| 137 | 135 |
| 138 } // namespace net | 136 } // namespace net |
| 139 | 137 |
| 140 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 138 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
| OLD | NEW |