Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(603)

Side by Side Diff: net/quic/core/congestion_control/tcp_cubic_sender_bytes.cc

Issue 2820423002: Move quic_flags.h from net/quic/core to net/quic/platform and split into api and impl. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/core/congestion_control/tcp_cubic_sender_bytes.h" 5 #include "net/quic/core/congestion_control/tcp_cubic_sender_bytes.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstdint> 8 #include <cstdint>
9 9
10 #include "net/quic/core/congestion_control/prr_sender.h" 10 #include "net/quic/core/congestion_control/prr_sender.h"
11 #include "net/quic/core/congestion_control/rtt_stats.h" 11 #include "net/quic/core/congestion_control/rtt_stats.h"
12 #include "net/quic/core/crypto/crypto_protocol.h" 12 #include "net/quic/core/crypto/crypto_protocol.h"
13 #include "net/quic/core/quic_flags.h"
14 #include "net/quic/platform/api/quic_bug_tracker.h" 13 #include "net/quic/platform/api/quic_bug_tracker.h"
14 #include "net/quic/platform/api/quic_flags.h"
15 #include "net/quic/platform/api/quic_logging.h" 15 #include "net/quic/platform/api/quic_logging.h"
16 16
17 namespace net { 17 namespace net {
18 18
19 namespace { 19 namespace {
20 // Constants based on TCP defaults. 20 // Constants based on TCP defaults.
21 // The minimum cwnd based on RFC 3782 (TCP NewReno) for cwnd reductions on a 21 // The minimum cwnd based on RFC 3782 (TCP NewReno) for cwnd reductions on a
22 // fast retransmission. 22 // fast retransmission.
23 const QuicByteCount kDefaultMinimumCongestionWindow = 2 * kDefaultTCPMSS; 23 const QuicByteCount kDefaultMinimumCongestionWindow = 2 * kDefaultTCPMSS;
24 } // namespace 24 } // namespace
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 congestion_window_ = initial_tcp_congestion_window_; 225 congestion_window_ = initial_tcp_congestion_window_;
226 max_congestion_window_ = initial_max_tcp_congestion_window_; 226 max_congestion_window_ = initial_max_tcp_congestion_window_;
227 slowstart_threshold_ = initial_max_tcp_congestion_window_; 227 slowstart_threshold_ = initial_max_tcp_congestion_window_;
228 } 228 }
229 229
230 CongestionControlType TcpCubicSenderBytes::GetCongestionControlType() const { 230 CongestionControlType TcpCubicSenderBytes::GetCongestionControlType() const {
231 return reno_ ? kRenoBytes : kCubicBytes; 231 return reno_ ? kRenoBytes : kCubicBytes;
232 } 232 }
233 233
234 } // namespace net 234 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698