| 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> |
| 11 #include <queue> | 11 #include <queue> |
| 12 #include <set> | 12 #include <set> |
| 13 #include <utility> | 13 #include <utility> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/containers/hash_tables.h" | 16 #include "base/containers/hash_tables.h" |
| 17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 18 #include "net/base/linked_hash_map.h" | 18 #include "net/base/linked_hash_map.h" |
| 19 #include "net/quic/congestion_control/loss_detection_interface.h" | 19 #include "net/quic/congestion_control/loss_detection_interface.h" |
| 20 #include "net/quic/congestion_control/rtt_stats.h" |
| 20 #include "net/quic/congestion_control/send_algorithm_interface.h" | 21 #include "net/quic/congestion_control/send_algorithm_interface.h" |
| 21 #include "net/quic/quic_ack_notifier_manager.h" | 22 #include "net/quic/quic_ack_notifier_manager.h" |
| 22 #include "net/quic/quic_protocol.h" | 23 #include "net/quic/quic_protocol.h" |
| 23 #include "net/quic/quic_unacked_packet_map.h" | 24 #include "net/quic/quic_unacked_packet_map.h" |
| 24 | 25 |
| 25 NET_EXPORT_PRIVATE extern bool FLAGS_track_retransmission_history; | 26 NET_EXPORT_PRIVATE extern bool FLAGS_track_retransmission_history; |
| 26 NET_EXPORT_PRIVATE extern bool FLAGS_enable_quic_pacing; | 27 NET_EXPORT_PRIVATE extern bool FLAGS_enable_quic_pacing; |
| 27 | 28 |
| 28 namespace net { | 29 namespace net { |
| 29 | 30 |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 // Tracks if the connection was created by the server. | 263 // Tracks if the connection was created by the server. |
| 263 bool is_server_; | 264 bool is_server_; |
| 264 | 265 |
| 265 // An AckNotifier can register to be informed when ACKs have been received for | 266 // An AckNotifier can register to be informed when ACKs have been received for |
| 266 // all packets that a given block of data was sent in. The AckNotifierManager | 267 // all packets that a given block of data was sent in. The AckNotifierManager |
| 267 // maintains the currently active notifiers. | 268 // maintains the currently active notifiers. |
| 268 AckNotifierManager ack_notifier_manager_; | 269 AckNotifierManager ack_notifier_manager_; |
| 269 | 270 |
| 270 const QuicClock* clock_; | 271 const QuicClock* clock_; |
| 271 QuicConnectionStats* stats_; | 272 QuicConnectionStats* stats_; |
| 273 RttStats rtt_stats_; |
| 272 scoped_ptr<SendAlgorithmInterface> send_algorithm_; | 274 scoped_ptr<SendAlgorithmInterface> send_algorithm_; |
| 273 scoped_ptr<LossDetectionInterface> loss_algorithm_; | 275 scoped_ptr<LossDetectionInterface> loss_algorithm_; |
| 274 QuicTime::Delta rtt_sample_; // RTT estimate from the most recent ACK. | 276 |
| 275 QuicPacketSequenceNumber largest_observed_; // From the most recent ACK. | 277 QuicPacketSequenceNumber largest_observed_; // From the most recent ACK. |
| 276 // Number of times the RTO timer has fired in a row without receiving an ack. | 278 // Number of times the RTO timer has fired in a row without receiving an ack. |
| 277 size_t consecutive_rto_count_; | 279 size_t consecutive_rto_count_; |
| 278 // Number of times the tail loss probe has been sent. | 280 // Number of times the tail loss probe has been sent. |
| 279 size_t consecutive_tlp_count_; | 281 size_t consecutive_tlp_count_; |
| 280 // Number of times the crypto handshake has been retransmitted. | 282 // Number of times the crypto handshake has been retransmitted. |
| 281 size_t consecutive_crypto_retransmission_count_; | 283 size_t consecutive_crypto_retransmission_count_; |
| 282 // Maximum number of tail loss probes to send before firing an RTO. | 284 // Maximum number of tail loss probes to send before firing an RTO. |
| 283 size_t max_tail_loss_probes_; | 285 size_t max_tail_loss_probes_; |
| 284 bool using_pacing_; | 286 bool using_pacing_; |
| 285 | 287 |
| 286 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 288 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
| 287 }; | 289 }; |
| 288 | 290 |
| 289 } // namespace net | 291 } // namespace net |
| 290 | 292 |
| 291 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 293 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
| OLD | NEW |