OLD | NEW |
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/cubic.h" | 5 #include "net/quic/core/congestion_control/cubic.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_flags.h" | 12 #include "net/quic/core/quic_flags.h" |
13 #include "net/quic/quic_protocol.h" | 13 #include "net/quic/core/quic_protocol.h" |
14 #include "net/quic/quic_time.h" | 14 #include "net/quic/core/quic_time.h" |
15 | 15 |
16 using std::max; | 16 using std::max; |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // Constants based on TCP defaults. | 22 // Constants based on TCP defaults. |
23 // The following constants are in 2^10 fractions of a second instead of ms to | 23 // The following constants are in 2^10 fractions of a second instead of ms to |
24 // allow a 10 shift right to divide. | 24 // allow a 10 shift right to divide. |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 // congestion_window, use highest (fastest). | 188 // congestion_window, use highest (fastest). |
189 if (target_congestion_window < estimated_tcp_congestion_window_) { | 189 if (target_congestion_window < estimated_tcp_congestion_window_) { |
190 target_congestion_window = estimated_tcp_congestion_window_; | 190 target_congestion_window = estimated_tcp_congestion_window_; |
191 } | 191 } |
192 | 192 |
193 DVLOG(1) << "Final target congestion_window: " << target_congestion_window; | 193 DVLOG(1) << "Final target congestion_window: " << target_congestion_window; |
194 return target_congestion_window; | 194 return target_congestion_window; |
195 } | 195 } |
196 | 196 |
197 } // namespace net | 197 } // namespace net |
OLD | NEW |