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

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

Issue 2005853002: Ignore the peer's receive buffer in QUIC and instead set the max CWND to 2000 packets. Protected b… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@122420070
Patch Set: 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
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 // The pure virtual class for send side congestion control algorithm. 5 // The pure virtual class for send side congestion control algorithm.
6 6
7 #ifndef NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ 7 #ifndef NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_
8 #define NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ 8 #define NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_
9 9
10 #include <algorithm> 10 #include <algorithm>
11 #include <map> 11 #include <map>
12 12
13 #include "net/base/net_export.h" 13 #include "net/base/net_export.h"
14 #include "net/quic/quic_bandwidth.h" 14 #include "net/quic/quic_bandwidth.h"
15 #include "net/quic/quic_clock.h" 15 #include "net/quic/quic_clock.h"
16 #include "net/quic/quic_config.h" 16 #include "net/quic/quic_config.h"
17 #include "net/quic/quic_connection_stats.h" 17 #include "net/quic/quic_connection_stats.h"
18 #include "net/quic/quic_protocol.h" 18 #include "net/quic/quic_protocol.h"
19 #include "net/quic/quic_time.h" 19 #include "net/quic/quic_time.h"
20 20
21 namespace net { 21 namespace net {
22 22
23 class CachedNetworkParameters; 23 class CachedNetworkParameters;
24 class RttStats; 24 class RttStats;
25 25
26 const QuicPacketCount kDefaultMaxCongestionWindowPackets = 2000;
27
26 class NET_EXPORT_PRIVATE SendAlgorithmInterface { 28 class NET_EXPORT_PRIVATE SendAlgorithmInterface {
27 public: 29 public:
28 // A sorted vector of packets. 30 // A sorted vector of packets.
29 typedef std::vector<std::pair<QuicPacketNumber, QuicPacketLength>> 31 typedef std::vector<std::pair<QuicPacketNumber, QuicPacketLength>>
30 CongestionVector; 32 CongestionVector;
31 33
32 static SendAlgorithmInterface* Create( 34 static SendAlgorithmInterface* Create(
33 const QuicClock* clock, 35 const QuicClock* clock,
34 const RttStats* rtt_stats, 36 const RttStats* rtt_stats,
35 CongestionControlType type, 37 CongestionControlType type,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Called by the Session when we get a bandwidth estimate from the client. 118 // Called by the Session when we get a bandwidth estimate from the client.
117 // Uses the max bandwidth in the params if |max_bandwidth_resumption| is true. 119 // Uses the max bandwidth in the params if |max_bandwidth_resumption| is true.
118 virtual void ResumeConnectionState( 120 virtual void ResumeConnectionState(
119 const CachedNetworkParameters& cached_network_params, 121 const CachedNetworkParameters& cached_network_params,
120 bool max_bandwidth_resumption) = 0; 122 bool max_bandwidth_resumption) = 0;
121 }; 123 };
122 124
123 } // namespace net 125 } // namespace net
124 126
125 #endif // NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ 127 #endif // NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/pacing_sender.cc ('k') | net/quic/congestion_control/send_algorithm_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698