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

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

Issue 2132623002: Landing Recent QUIC changes until 2016-07-02 02:45 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing comment about RPCs Created 4 years, 5 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 29 matching lines...) Expand all
40 40
41 virtual ~SendAlgorithmInterface() {} 41 virtual ~SendAlgorithmInterface() {}
42 42
43 virtual void SetFromConfig(const QuicConfig& config, 43 virtual void SetFromConfig(const QuicConfig& config,
44 Perspective perspective) = 0; 44 Perspective perspective) = 0;
45 45
46 // Sets the number of connections to emulate when doing congestion control, 46 // Sets the number of connections to emulate when doing congestion control,
47 // particularly for congestion avoidance. Can be set any time. 47 // particularly for congestion avoidance. Can be set any time.
48 virtual void SetNumEmulatedConnections(int num_connections) = 0; 48 virtual void SetNumEmulatedConnections(int num_connections) = 0;
49 49
50 // Sets the maximum congestion window in bytes.
51 virtual void SetMaxCongestionWindow(QuicByteCount max_congestion_window) = 0;
52
53 // Indicates an update to the congestion state, caused either by an incoming 50 // Indicates an update to the congestion state, caused either by an incoming
54 // ack or loss event timeout. |rtt_updated| indicates whether a new 51 // ack or loss event timeout. |rtt_updated| indicates whether a new
55 // latest_rtt sample has been taken, |byte_in_flight| the bytes in flight 52 // latest_rtt sample has been taken, |byte_in_flight| the bytes in flight
56 // prior to the congestion event. |acked_packets| and |lost_packets| are 53 // prior to the congestion event. |acked_packets| and |lost_packets| are
57 // any packets considered acked or lost as a result of the congestion event. 54 // any packets considered acked or lost as a result of the congestion event.
58 virtual void OnCongestionEvent(bool rtt_updated, 55 virtual void OnCongestionEvent(bool rtt_updated,
59 QuicByteCount bytes_in_flight, 56 QuicByteCount bytes_in_flight,
60 const CongestionVector& acked_packets, 57 const CongestionVector& acked_packets,
61 const CongestionVector& lost_packets) = 0; 58 const CongestionVector& lost_packets) = 0;
62 59
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // Called by the Session when we get a bandwidth estimate from the client. 115 // Called by the Session when we get a bandwidth estimate from the client.
119 // Uses the max bandwidth in the params if |max_bandwidth_resumption| is true. 116 // Uses the max bandwidth in the params if |max_bandwidth_resumption| is true.
120 virtual void ResumeConnectionState( 117 virtual void ResumeConnectionState(
121 const CachedNetworkParameters& cached_network_params, 118 const CachedNetworkParameters& cached_network_params,
122 bool max_bandwidth_resumption) = 0; 119 bool max_bandwidth_resumption) = 0;
123 }; 120 };
124 121
125 } // namespace net 122 } // namespace net
126 123
127 #endif // NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ 124 #endif // NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/rtt_stats_test.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