| Index: net/quic/congestion_control/tcp_cubic_sender.cc
|
| diff --git a/net/quic/congestion_control/tcp_cubic_sender.cc b/net/quic/congestion_control/tcp_cubic_sender.cc
|
| index 95fa6cccc3be38795477a0e957dcb612c5f97b41..80f07f50ad7eafc035d9837927ae62afa31e8b16 100644
|
| --- a/net/quic/congestion_control/tcp_cubic_sender.cc
|
| +++ b/net/quic/congestion_control/tcp_cubic_sender.cc
|
| @@ -57,10 +57,6 @@ TcpCubicSender::~TcpCubicSender() {
|
| UMA_HISTOGRAM_COUNTS("Net.QuicSession.FinalTcpCwnd", congestion_window_);
|
| }
|
|
|
| -bool TcpCubicSender::InSlowStart() const {
|
| - return congestion_window_ < slowstart_threshold_;
|
| -}
|
| -
|
| void TcpCubicSender::SetFromConfig(const QuicConfig& config, bool is_server) {
|
| if (is_server && config.HasReceivedInitialCongestionWindow()) {
|
| // Set the initial window size.
|
| @@ -213,6 +209,14 @@ QuicByteCount TcpCubicSender::GetCongestionWindow() const {
|
| return congestion_window_ * kMaxSegmentSize;
|
| }
|
|
|
| +bool TcpCubicSender::InSlowStart() const {
|
| + return congestion_window_ < slowstart_threshold_;
|
| +}
|
| +
|
| +QuicByteCount TcpCubicSender::GetSlowStartThreshold() const {
|
| + return slowstart_threshold_ * kMaxSegmentSize;
|
| +}
|
| +
|
| bool TcpCubicSender::IsCwndLimited(QuicByteCount bytes_in_flight) const {
|
| const QuicByteCount congestion_window_bytes = congestion_window_ *
|
| kMaxSegmentSize;
|
|
|