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

Side by Side Diff: net/quic/congestion_control/tcp_cubic_sender_base.h

Issue 1983183002: Landing Recent QUIC changes until 5/14/2016 02:25:25 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "first try to fix link error for win_clang build" Created 4 years, 7 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
« no previous file with comments | « net/net.gypi ('k') | net/quic/congestion_control/tcp_cubic_sender_bytes.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // TCP cubic send side congestion algorithm, emulates the behavior of TCP cubic. 5 // TCP cubic send side congestion algorithm, emulates the behavior of TCP cubic.
6 6
7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_ 7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_
8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_ 8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_
9 9
10 #include <stdint.h> 10 #include <stdint.h>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "net/base/net_export.h" 14 #include "net/base/net_export.h"
15 #include "net/quic/congestion_control/cubic.h" 15 #include "net/quic/congestion_control/cubic.h"
16 #include "net/quic/congestion_control/hybrid_slow_start.h" 16 #include "net/quic/congestion_control/hybrid_slow_start.h"
17 #include "net/quic/congestion_control/prr_sender.h" 17 #include "net/quic/congestion_control/prr_sender.h"
18 #include "net/quic/congestion_control/send_algorithm_interface.h" 18 #include "net/quic/congestion_control/send_algorithm_interface.h"
19 #include "net/quic/quic_bandwidth.h" 19 #include "net/quic/quic_bandwidth.h"
20 #include "net/quic/quic_connection_stats.h" 20 #include "net/quic/quic_connection_stats.h"
21 #include "net/quic/quic_protocol.h" 21 #include "net/quic/quic_protocol.h"
22 #include "net/quic/quic_time.h" 22 #include "net/quic/quic_time.h"
23 23
24 namespace net { 24 namespace net {
25 25
26 class RttStats; 26 class RttStats;
27 27
28 // Maximum window to allow when doing bandwidth resumption.
29 const QuicPacketCount kMaxResumptionCongestionWindow = 200;
30
28 namespace test { 31 namespace test {
29 class TcpCubicSenderBasePeer; 32 class TcpCubicSenderBasePeer;
30 } // namespace test 33 } // namespace test
31 34
32 class NET_EXPORT_PRIVATE TcpCubicSenderBase : public SendAlgorithmInterface { 35 class NET_EXPORT_PRIVATE TcpCubicSenderBase : public SendAlgorithmInterface {
33 public: 36 public:
34 // Reno option and max_tcp_congestion_window are provided for testing. 37 // Reno option and max_tcp_congestion_window are provided for testing.
35 TcpCubicSenderBase(const QuicClock* clock, 38 TcpCubicSenderBase(const QuicClock* clock,
36 const RttStats* rtt_stats, 39 const RttStats* rtt_stats,
37 bool reno, 40 bool reno,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // When true, exit slow start with large cutback of congestion window. 143 // When true, exit slow start with large cutback of congestion window.
141 bool slow_start_large_reduction_; 144 bool slow_start_large_reduction_;
142 145
143 private: 146 private:
144 DISALLOW_COPY_AND_ASSIGN(TcpCubicSenderBase); 147 DISALLOW_COPY_AND_ASSIGN(TcpCubicSenderBase);
145 }; 148 };
146 149
147 } // namespace net 150 } // namespace net
148 151
149 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_ 152 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_
OLDNEW
« no previous file with comments | « net/net.gypi ('k') | net/quic/congestion_control/tcp_cubic_sender_bytes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698