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

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

Issue 47283002: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compilation error Created 7 years, 1 month 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 | Annotate | Revision Log
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 <map> 10 #include <map>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Returns 0 when it does not have an estimate. 80 // Returns 0 when it does not have an estimate.
81 virtual QuicBandwidth BandwidthEstimate() = 0; 81 virtual QuicBandwidth BandwidthEstimate() = 0;
82 82
83 // TODO(satyamshekhar): Monitor MinRtt. 83 // TODO(satyamshekhar): Monitor MinRtt.
84 virtual QuicTime::Delta SmoothedRtt() = 0; 84 virtual QuicTime::Delta SmoothedRtt() = 0;
85 85
86 // Get the send algorithm specific retransmission delay, called RTO in TCP, 86 // Get the send algorithm specific retransmission delay, called RTO in TCP,
87 // Note 1: the caller is responsible for sanity checking this value. 87 // Note 1: the caller is responsible for sanity checking this value.
88 // Note 2: this will return zero if we don't have enough data for an estimate. 88 // Note 2: this will return zero if we don't have enough data for an estimate.
89 virtual QuicTime::Delta RetransmissionDelay() = 0; 89 virtual QuicTime::Delta RetransmissionDelay() = 0;
90
91 // Returns the size of the current congestion window. Note, this
92 // is not the *available* window. Some send algorithms may not use a
93 // congestion window and will return 0.
94 virtual QuicByteCount GetCongestionWindow() = 0;
95
96 // Sets the value of the current congestion window to |window|.
97 virtual void SetCongestionWindow(QuicByteCount window) = 0;
90 }; 98 };
91 99
92 } // namespace net 100 } // namespace net
93 101
94 #endif // NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ 102 #endif // NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/quic_congestion_manager.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