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 #include "net/quic/congestion_control/tcp_cubic_bytes_sender.h" | 5 #include "net/quic/congestion_control/tcp_cubic_bytes_sender.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "net/quic/congestion_control/prr_sender.h" | 9 #include "net/quic/congestion_control/prr_sender.h" |
10 #include "net/quic/congestion_control/rtt_stats.h" | 10 #include "net/quic/congestion_control/rtt_stats.h" |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 if (!packets_retransmitted) { | 339 if (!packets_retransmitted) { |
340 return; | 340 return; |
341 } | 341 } |
342 cubic_.Reset(); | 342 cubic_.Reset(); |
343 hybrid_slow_start_.Restart(); | 343 hybrid_slow_start_.Restart(); |
344 slowstart_threshold_ = congestion_window_ / 2; | 344 slowstart_threshold_ = congestion_window_ / 2; |
345 congestion_window_ = min_congestion_window_; | 345 congestion_window_ = min_congestion_window_; |
346 } | 346 } |
347 | 347 |
348 CongestionControlType TcpCubicBytesSender::GetCongestionControlType() const { | 348 CongestionControlType TcpCubicBytesSender::GetCongestionControlType() const { |
349 return reno_ ? kReno : kCubic; | 349 return reno_ ? kRenoBytes : kCubicBytes; |
350 } | 350 } |
351 | 351 |
352 } // namespace net | 352 } // namespace net |
OLD | NEW |