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

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

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 4 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) 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 #include "net/quic/congestion_control/hybrid_slow_start.h" 5 #include "net/quic/core/congestion_control/hybrid_slow_start.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 using std::max; 9 using std::max;
10 using std::min; 10 using std::min;
11 11
12 namespace net { 12 namespace net {
13 13
14 // Note(pwestin): the magic clamping numbers come from the original code in 14 // Note(pwestin): the magic clamping numbers come from the original code in
15 // tcp_cubic.c. 15 // tcp_cubic.c.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 hystart_found_ = DELAY; 98 hystart_found_ = DELAY;
99 } 99 }
100 } 100 }
101 // Exit from slow start if the cwnd is greater than 16 and 101 // Exit from slow start if the cwnd is greater than 16 and
102 // increasing delay is found. 102 // increasing delay is found.
103 return congestion_window >= kHybridStartLowWindow && 103 return congestion_window >= kHybridStartLowWindow &&
104 hystart_found_ != NOT_FOUND; 104 hystart_found_ != NOT_FOUND;
105 } 105 }
106 106
107 } // namespace net 107 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/congestion_control/hybrid_slow_start.h ('k') | net/quic/core/congestion_control/hybrid_slow_start_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698