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/congestion_control/cubic.h" |
6 | 6 |
7 #include <math.h> | |
8 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "net/quic/congestion_control/cube_root.h" | 13 #include "net/quic/congestion_control/cube_root.h" |
14 #include "net/quic/quic_flags.h" | 14 #include "net/quic/quic_flags.h" |
15 #include "net/quic/quic_protocol.h" | 15 #include "net/quic/quic_protocol.h" |
16 | 16 |
17 using std::max; | 17 using std::max; |
18 | 18 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 // congestion_window, use highest (fastest). | 191 // congestion_window, use highest (fastest). |
192 if (target_congestion_window < estimated_tcp_congestion_window_) { | 192 if (target_congestion_window < estimated_tcp_congestion_window_) { |
193 target_congestion_window = estimated_tcp_congestion_window_; | 193 target_congestion_window = estimated_tcp_congestion_window_; |
194 } | 194 } |
195 | 195 |
196 DVLOG(1) << "Target congestion_window: " << target_congestion_window; | 196 DVLOG(1) << "Target congestion_window: " << target_congestion_window; |
197 return target_congestion_window; | 197 return target_congestion_window; |
198 } | 198 } |
199 | 199 |
200 } // namespace net | 200 } // namespace net |
OLD | NEW |