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

Side by Side Diff: net/quic/core/congestion_control/cubic_bytes.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) 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/cubic_bytes.h" 5 #include "net/quic/core/congestion_control/cubic_bytes.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <algorithm> 8 #include <algorithm>
9 #include <cmath> 9 #include <cmath>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "net/quic/quic_protocol.h" 12 #include "net/quic/core/quic_protocol.h"
13 13
14 using std::max; 14 using std::max;
15 15
16 namespace net { 16 namespace net {
17 17
18 namespace { 18 namespace {
19 19
20 // Constants based on TCP defaults. 20 // Constants based on TCP defaults.
21 // The following constants are in 2^10 fractions of a second instead of ms to 21 // The following constants are in 2^10 fractions of a second instead of ms to
22 // allow a 10 shift right to divide. 22 // allow a 10 shift right to divide.
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // congestion_window, use highest (fastest). 166 // congestion_window, use highest (fastest).
167 if (target_congestion_window < estimated_tcp_congestion_window_) { 167 if (target_congestion_window < estimated_tcp_congestion_window_) {
168 target_congestion_window = estimated_tcp_congestion_window_; 168 target_congestion_window = estimated_tcp_congestion_window_;
169 } 169 }
170 170
171 DVLOG(1) << "Final target congestion_window: " << target_congestion_window; 171 DVLOG(1) << "Final target congestion_window: " << target_congestion_window;
172 return target_congestion_window; 172 return target_congestion_window;
173 } 173 }
174 174
175 } // namespace net 175 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/congestion_control/cubic_bytes.h ('k') | net/quic/core/congestion_control/cubic_bytes_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698