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

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

Issue 2825083003: Landing Recent QUIC changes until Mon Apr 17 2017 (Closed)
Patch Set: Format Created 3 years, 8 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/core/congestion_control/cubic_bytes.h" 5 #include "net/quic/core/congestion_control/cubic_bytes.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <cstdint> 9 #include <cstdint>
10 10
11 #include "net/quic/core/quic_flags.h"
12 #include "net/quic/core/quic_packets.h" 11 #include "net/quic/core/quic_packets.h"
12 #include "net/quic/platform/api/quic_flags.h"
13 #include "net/quic/platform/api/quic_logging.h" 13 #include "net/quic/platform/api/quic_logging.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 namespace { 17 namespace {
18 18
19 // Constants based on TCP defaults. 19 // Constants based on TCP defaults.
20 // The following constants are in 2^10 fractions of a second instead of ms to 20 // The following constants are in 2^10 fractions of a second instead of ms to
21 // allow a 10 shift right to divide. 21 // allow a 10 shift right to divide.
22 const int kCubeScale = 40; // 1024*1024^3 (first 1024 is from 0.100^3) 22 const int kCubeScale = 40; // 1024*1024^3 (first 1024 is from 0.100^3)
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 if (target_congestion_window < estimated_tcp_congestion_window_) { 228 if (target_congestion_window < estimated_tcp_congestion_window_) {
229 target_congestion_window = estimated_tcp_congestion_window_; 229 target_congestion_window = estimated_tcp_congestion_window_;
230 } 230 }
231 231
232 QUIC_DVLOG(1) << "Final target congestion_window: " 232 QUIC_DVLOG(1) << "Final target congestion_window: "
233 << target_congestion_window; 233 << target_congestion_window;
234 return target_congestion_window; 234 return target_congestion_window;
235 } 235 }
236 236
237 } // namespace net 237 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/congestion_control/cubic.cc ('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