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

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

Issue 2540143003: Allow congestion controller state to be accessed by the debug visitors. (Closed)
Patch Set: Created 4 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 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 209 void OnApplicationLimited() override;
210 210
211 const SendAlgorithmInterface* GetSendAlgorithm() const override;
212
211 private: 213 private:
212 friend class test::QuicConnectionPeer; 214 friend class test::QuicConnectionPeer;
213 friend class test::QuicSentPacketManagerPeer; 215 friend class test::QuicSentPacketManagerPeer;
214 216
215 // The retransmission timer is a single timer which switches modes depending 217 // The retransmission timer is a single timer which switches modes depending
216 // upon connection state. 218 // upon connection state.
217 enum RetransmissionTimeoutMode { 219 enum RetransmissionTimeoutMode {
218 // A conventional TCP style RTO. 220 // A conventional TCP style RTO.
219 RTO_MODE, 221 RTO_MODE,
220 // A tail loss probe. By default, QUIC sends up to two before RTOing. 222 // A tail loss probe. By default, QUIC sends up to two before RTOing.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 // Records bandwidth from server to client in normal operation, over periods 417 // Records bandwidth from server to client in normal operation, over periods
416 // of time with no loss events. 418 // of time with no loss events.
417 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; 419 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_;
418 420
419 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); 421 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager);
420 }; 422 };
421 423
422 } // namespace net 424 } // namespace net
423 425
424 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 426 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_multipath_sent_packet_manager.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