| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |