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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 QuicPacketSequenceNumber least_packet_awaited_by_peer() { | 231 QuicPacketSequenceNumber least_packet_awaited_by_peer() { |
232 return least_packet_awaited_by_peer_; | 232 return least_packet_awaited_by_peer_; |
233 } | 233 } |
234 | 234 |
235 void set_network_change_visitor(NetworkChangeVisitor* visitor) { | 235 void set_network_change_visitor(NetworkChangeVisitor* visitor) { |
236 DCHECK(!network_change_visitor_); | 236 DCHECK(!network_change_visitor_); |
237 DCHECK(visitor); | 237 DCHECK(visitor); |
238 network_change_visitor_ = visitor; | 238 network_change_visitor_ = visitor; |
239 } | 239 } |
240 | 240 |
| 241 // Used in Chromium, but not in the server. |
241 size_t consecutive_rto_count() const { | 242 size_t consecutive_rto_count() const { |
242 return consecutive_rto_count_; | 243 return consecutive_rto_count_; |
243 } | 244 } |
244 | 245 |
| 246 // Used in Chromium, but not in the server. |
245 size_t consecutive_tlp_count() const { | 247 size_t consecutive_tlp_count() const { |
246 return consecutive_tlp_count_; | 248 return consecutive_tlp_count_; |
247 } | 249 } |
248 | 250 |
249 private: | 251 private: |
250 friend class test::QuicConnectionPeer; | 252 friend class test::QuicConnectionPeer; |
251 friend class test::QuicSentPacketManagerPeer; | 253 friend class test::QuicSentPacketManagerPeer; |
252 | 254 |
253 // The retransmission timer is a single timer which switches modes depending | 255 // The retransmission timer is a single timer which switches modes depending |
254 // upon connection state. | 256 // upon connection state. |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 // Records bandwidth from server to client in normal operation, over periods | 407 // Records bandwidth from server to client in normal operation, over periods |
406 // of time with no loss events. | 408 // of time with no loss events. |
407 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 409 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
408 | 410 |
409 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 411 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
410 }; | 412 }; |
411 | 413 |
412 } // namespace net | 414 } // namespace net |
413 | 415 |
414 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 416 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
OLD | NEW |