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

Side by Side Diff: net/quic/congestion_control/cubic.cc

Issue 822713002: Update from https://crrev.com/309415 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years 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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698