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

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

Issue 476023002: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0814_2
Patch Set: Created 6 years, 4 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 // Returns the size of the current congestion window in bytes. Note, this is 91 // Returns the size of the current congestion window in bytes. Note, this is
92 // not the *available* window. Some send algorithms may not use a congestion 92 // not the *available* window. Some send algorithms may not use a congestion
93 // window and will return 0. 93 // window and will return 0.
94 virtual QuicByteCount GetCongestionWindow() const = 0; 94 virtual QuicByteCount GetCongestionWindow() const = 0;
95 95
96 // Whether the send algorithm is currently in slow start. When true, the 96 // Whether the send algorithm is currently in slow start. When true, the
97 // BandwidthEstimate is expected to be too low. 97 // BandwidthEstimate is expected to be too low.
98 virtual bool InSlowStart() const = 0; 98 virtual bool InSlowStart() const = 0;
99 99
100 // Whether the send algorithm is currently in recovery.
101 virtual bool InRecovery() const = 0;
102
100 // Returns the size of the slow start congestion window in bytes, 103 // Returns the size of the slow start congestion window in bytes,
101 // aka ssthresh. Some send algorithms do not define a slow start 104 // aka ssthresh. Some send algorithms do not define a slow start
102 // threshold and will return 0. 105 // threshold and will return 0.
103 virtual QuicByteCount GetSlowStartThreshold() const = 0; 106 virtual QuicByteCount GetSlowStartThreshold() const = 0;
104 107
105 virtual CongestionControlType GetCongestionControlType() const = 0; 108 virtual CongestionControlType GetCongestionControlType() const = 0;
106 }; 109 };
107 110
108 } // namespace net 111 } // namespace net
109 112
110 #endif // NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ 113 #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_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698