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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 QuicPacketSequenceNumber largest_observed() const { | 223 QuicPacketSequenceNumber largest_observed() const { |
224 return largest_observed_; | 224 return largest_observed_; |
225 } | 225 } |
226 | 226 |
227 void set_network_change_visitor(NetworkChangeVisitor* visitor) { | 227 void set_network_change_visitor(NetworkChangeVisitor* visitor) { |
228 DCHECK(!network_change_visitor_); | 228 DCHECK(!network_change_visitor_); |
229 DCHECK(visitor); | 229 DCHECK(visitor); |
230 network_change_visitor_ = visitor; | 230 network_change_visitor_ = visitor; |
231 } | 231 } |
232 | 232 |
| 233 size_t consecutive_rto_count() const { |
| 234 return consecutive_rto_count_; |
| 235 } |
| 236 |
| 237 size_t consecutive_tlp_count() const { |
| 238 return consecutive_tlp_count_; |
| 239 } |
| 240 |
233 private: | 241 private: |
234 friend class test::QuicConnectionPeer; | 242 friend class test::QuicConnectionPeer; |
235 friend class test::QuicSentPacketManagerPeer; | 243 friend class test::QuicSentPacketManagerPeer; |
236 | 244 |
237 // The retransmission timer is a single timer which switches modes depending | 245 // The retransmission timer is a single timer which switches modes depending |
238 // upon connection state. | 246 // upon connection state. |
239 enum RetransmissionTimeoutMode { | 247 enum RetransmissionTimeoutMode { |
240 // A conventional TCP style RTO. | 248 // A conventional TCP style RTO. |
241 RTO_MODE, | 249 RTO_MODE, |
242 // A tail loss probe. By default, QUIC sends up to two before RTOing. | 250 // A tail loss probe. By default, QUIC sends up to two before RTOing. |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 // the crypto stream (i.e. SCUP messages) are treated like normal | 377 // the crypto stream (i.e. SCUP messages) are treated like normal |
370 // retransmittable frames. | 378 // retransmittable frames. |
371 bool handshake_confirmed_; | 379 bool handshake_confirmed_; |
372 | 380 |
373 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 381 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
374 }; | 382 }; |
375 | 383 |
376 } // namespace net | 384 } // namespace net |
377 | 385 |
378 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 386 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
OLD | NEW |