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

Side by Side Diff: net/quic/core/quic_sent_packet_manager_interface.h

Issue 2236973002: Landing Recent QUIC changes until 4AM, Aug 7, 2016 UTC-4 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: flip quic_sequencer_buffer_retire_block_in_time to true Created 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ 5 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_
6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "net/quic/core/quic_protocol.h" 9 #include "net/quic/core/quic_protocol.h"
10 #include "net/quic/core/quic_sustained_bandwidth_recorder.h" 10 #include "net/quic/core/quic_sustained_bandwidth_recorder.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 QuicByteCount max_packet_length) const = 0; 145 QuicByteCount max_packet_length) const = 0;
146 146
147 // Returns the size of the current congestion window size on the default path 147 // Returns the size of the current congestion window size on the default path
148 // in bytes. 148 // in bytes.
149 virtual QuicByteCount GetCongestionWindowInBytes() const = 0; 149 virtual QuicByteCount GetCongestionWindowInBytes() const = 0;
150 150
151 // Returns the size of the slow start congestion window in number of 1460 byte 151 // Returns the size of the slow start congestion window in number of 1460 byte
152 // TCP segments on the default path. 152 // TCP segments on the default path.
153 virtual QuicPacketCount GetSlowStartThresholdInTcpMss() const = 0; 153 virtual QuicPacketCount GetSlowStartThresholdInTcpMss() const = 0;
154 154
155 // Returns debugging information about the current state of the
156 // congestion controller.
157 virtual std::string GetDebugState() const = 0;
158
155 // No longer retransmit data for |stream_id| on all paths. 159 // No longer retransmit data for |stream_id| on all paths.
156 virtual void CancelRetransmissionsForStream(QuicStreamId stream_id) = 0; 160 virtual void CancelRetransmissionsForStream(QuicStreamId stream_id) = 0;
157 161
158 // Called when peer address changes and the connection migrates on |path_id|. 162 // Called when peer address changes and the connection migrates on |path_id|.
159 // TODO(fayang): Name of this method is confusing in multipath world because 163 // TODO(fayang): Name of this method is confusing in multipath world because
160 // this migration is path level. Need to rename this as OnPeerMigration. 164 // this migration is path level. Need to rename this as OnPeerMigration.
161 virtual void OnConnectionMigration(QuicPathId path_id, 165 virtual void OnConnectionMigration(QuicPathId path_id,
162 PeerAddressChangeType type) = 0; 166 PeerAddressChangeType type) = 0;
163 167
164 virtual bool IsHandshakeConfirmed() const = 0; 168 virtual bool IsHandshakeConfirmed() const = 0;
165 169
166 virtual void SetDebugDelegate(DebugDelegate* debug_delegate) = 0; 170 virtual void SetDebugDelegate(DebugDelegate* debug_delegate) = 0;
167 171
168 virtual QuicPacketNumber GetLargestObserved(QuicPathId path_id) const = 0; 172 virtual QuicPacketNumber GetLargestObserved(QuicPathId path_id) const = 0;
169 173
170 virtual QuicPacketNumber GetLargestSentPacket(QuicPathId path_id) const = 0; 174 virtual QuicPacketNumber GetLargestSentPacket(QuicPathId path_id) const = 0;
171 175
172 virtual QuicPacketNumber GetLeastPacketAwaitedByPeer( 176 virtual QuicPacketNumber GetLeastPacketAwaitedByPeer(
173 QuicPathId path_id) const = 0; 177 QuicPathId path_id) const = 0;
174 178
175 virtual void SetNetworkChangeVisitor(NetworkChangeVisitor* visitor) = 0; 179 virtual void SetNetworkChangeVisitor(NetworkChangeVisitor* visitor) = 0;
176 180
177 // Returns true if the default path is in slow start. 181 // Returns true if the default path is in slow start.
178 virtual bool InSlowStart() const = 0; 182 virtual bool InSlowStart() const = 0;
179 183
180 // These two methods return the consecutive RTO or TLP count of the default 184 // These two methods return the consecutive RTO or TLP count of the default
181 // path. 185 // path.
182 virtual size_t GetConsecutiveRtoCount() const = 0; 186 virtual size_t GetConsecutiveRtoCount() const = 0;
183 virtual size_t GetConsecutiveTlpCount() const = 0; 187 virtual size_t GetConsecutiveTlpCount() const = 0;
188
189 // Signals to the congestion controller that the connection has no outstanding
190 // data to send.
191 virtual void OnApplicationLimited() = 0;
184 }; 192 };
185 193
186 } // namespace net 194 } // namespace net
187 195
188 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ 196 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_sent_packet_manager.cc ('k') | net/quic/core/quic_sent_packet_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698