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

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

Issue 2229023002: Track when QUIC connections are application limited. Protected by quic_enable_app_limited_check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@129327247
Patch Set: git pull upper stream 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_H_ 5 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 QuicPacketNumber GetLeastPacketAwaitedByPeer(QuicPathId) const override; 199 QuicPacketNumber GetLeastPacketAwaitedByPeer(QuicPathId) const override;
200 200
201 void SetNetworkChangeVisitor(NetworkChangeVisitor* visitor) override; 201 void SetNetworkChangeVisitor(NetworkChangeVisitor* visitor) override;
202 202
203 bool InSlowStart() const override; 203 bool InSlowStart() const override;
204 204
205 size_t GetConsecutiveRtoCount() const override; 205 size_t GetConsecutiveRtoCount() const override;
206 206
207 size_t GetConsecutiveTlpCount() const override; 207 size_t GetConsecutiveTlpCount() const override;
208 208
209 void OnApplicationLimited() override;
210
209 private: 211 private:
210 friend class test::QuicConnectionPeer; 212 friend class test::QuicConnectionPeer;
211 friend class test::QuicSentPacketManagerPeer; 213 friend class test::QuicSentPacketManagerPeer;
212 214
213 // The retransmission timer is a single timer which switches modes depending 215 // The retransmission timer is a single timer which switches modes depending
214 // upon connection state. 216 // upon connection state.
215 enum RetransmissionTimeoutMode { 217 enum RetransmissionTimeoutMode {
216 // A conventional TCP style RTO. 218 // A conventional TCP style RTO.
217 RTO_MODE, 219 RTO_MODE,
218 // A tail loss probe. By default, QUIC sends up to two before RTOing. 220 // A tail loss probe. By default, QUIC sends up to two before RTOing.
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 // Records bandwidth from server to client in normal operation, over periods 399 // Records bandwidth from server to client in normal operation, over periods
398 // of time with no loss events. 400 // of time with no loss events.
399 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; 401 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_;
400 402
401 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); 403 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager);
402 }; 404 };
403 405
404 } // namespace net 406 } // namespace net
405 407
406 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 408 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_multipath_sent_packet_manager_test.cc ('k') | net/quic/core/quic_sent_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698