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

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

Issue 1037633002: Add a QUIC connection option(BWMX) to resume to the max bandwidth (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Populate_RTT_info_89043159
Patch Set: Created 5 years, 9 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>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 virtual bool InRecovery() const = 0; 110 virtual bool InRecovery() const = 0;
111 111
112 // Returns the size of the slow start congestion window in bytes, 112 // Returns the size of the slow start congestion window in bytes,
113 // aka ssthresh. Some send algorithms do not define a slow start 113 // aka ssthresh. Some send algorithms do not define a slow start
114 // threshold and will return 0. 114 // threshold and will return 0.
115 virtual QuicByteCount GetSlowStartThreshold() const = 0; 115 virtual QuicByteCount GetSlowStartThreshold() const = 0;
116 116
117 virtual CongestionControlType GetCongestionControlType() const = 0; 117 virtual CongestionControlType GetCongestionControlType() const = 0;
118 118
119 // Called by the Session when we get a bandwidth estimate from the client. 119 // Called by the Session when we get a bandwidth estimate from the client.
120 // Uses the max bandwidth in the params if |max_bandwidth_resumption| is true.
120 // Returns true if initial connection state is changed as a result. 121 // Returns true if initial connection state is changed as a result.
121 virtual bool ResumeConnectionState( 122 virtual bool ResumeConnectionState(
122 const CachedNetworkParameters& cached_network_params) = 0; 123 const CachedNetworkParameters& cached_network_params,
124 bool max_bandwidth_resumption) = 0;
123 }; 125 };
124 126
125 } // namespace net 127 } // namespace net
126 128
127 #endif // NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ 129 #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/tcp_cubic_bytes_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698