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 <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 // Enables pacing if it has not already been enabled, and if | 173 // Enables pacing if it has not already been enabled, and if |
174 // FLAGS_enable_quic_pacing is set. | 174 // FLAGS_enable_quic_pacing is set. |
175 void MaybeEnablePacing(); | 175 void MaybeEnablePacing(); |
176 | 176 |
177 bool using_pacing() const { return using_pacing_; } | 177 bool using_pacing() const { return using_pacing_; } |
178 | 178 |
179 void set_debug_delegate(DebugDelegate* debug_delegate) { | 179 void set_debug_delegate(DebugDelegate* debug_delegate) { |
180 debug_delegate_ = debug_delegate; | 180 debug_delegate_ = debug_delegate; |
181 } | 181 } |
182 | 182 |
| 183 QuicPacketSequenceNumber largest_observed() const { |
| 184 return largest_observed_; |
| 185 } |
| 186 |
183 private: | 187 private: |
184 friend class test::QuicConnectionPeer; | 188 friend class test::QuicConnectionPeer; |
185 friend class test::QuicSentPacketManagerPeer; | 189 friend class test::QuicSentPacketManagerPeer; |
186 | 190 |
187 // The retransmission timer is a single timer which switches modes depending | 191 // The retransmission timer is a single timer which switches modes depending |
188 // upon connection state. | 192 // upon connection state. |
189 enum RetransmissionTimeoutMode { | 193 enum RetransmissionTimeoutMode { |
190 // A conventional TCP style RTO. | 194 // A conventional TCP style RTO. |
191 RTO_MODE, | 195 RTO_MODE, |
192 // A tail loss probe. By default, QUIC sends up to two before RTOing. | 196 // A tail loss probe. By default, QUIC sends up to two before RTOing. |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 // Sets of packets acked and lost as a result of the last congestion event. | 316 // Sets of packets acked and lost as a result of the last congestion event. |
313 SendAlgorithmInterface::CongestionMap packets_acked_; | 317 SendAlgorithmInterface::CongestionMap packets_acked_; |
314 SendAlgorithmInterface::CongestionMap packets_lost_; | 318 SendAlgorithmInterface::CongestionMap packets_lost_; |
315 | 319 |
316 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 320 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
317 }; | 321 }; |
318 | 322 |
319 } // namespace net | 323 } // namespace net |
320 | 324 |
321 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 325 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
OLD | NEW |