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

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

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 virtual bool InRecovery() const = 0; 109 virtual bool InRecovery() const = 0;
110 110
111 // Returns the size of the slow start congestion window in bytes, 111 // Returns the size of the slow start congestion window in bytes,
112 // aka ssthresh. Some send algorithms do not define a slow start 112 // aka ssthresh. Some send algorithms do not define a slow start
113 // threshold and will return 0. 113 // threshold and will return 0.
114 virtual QuicByteCount GetSlowStartThreshold() const = 0; 114 virtual QuicByteCount GetSlowStartThreshold() const = 0;
115 115
116 virtual CongestionControlType GetCongestionControlType() const = 0; 116 virtual CongestionControlType GetCongestionControlType() const = 0;
117 117
118 // 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.
119 virtual void ResumeConnectionState( 119 // Returns true if initial connection state is changed as a result.
120 virtual bool ResumeConnectionState(
120 const CachedNetworkParameters& cached_network_params) = 0; 121 const CachedNetworkParameters& cached_network_params) = 0;
121 }; 122 };
122 123
123 } // namespace net 124 } // namespace net
124 125
125 #endif // NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ 126 #endif // NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/rtt_stats.cc ('k') | net/quic/congestion_control/send_algorithm_simulator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698