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 "net/base/linked_hash_map.h" | 17 #include "net/base/linked_hash_map.h" |
| 18 #include "net/quic/quic_ack_notifier_manager.h" |
18 #include "net/quic/quic_protocol.h" | 19 #include "net/quic/quic_protocol.h" |
19 | 20 |
20 NET_EXPORT_PRIVATE extern bool FLAGS_track_retransmission_history; | 21 NET_EXPORT_PRIVATE extern bool FLAGS_track_retransmission_history; |
21 | 22 |
22 namespace net { | 23 namespace net { |
23 | 24 |
24 // Class which tracks the set of packets sent on a QUIC connection. | 25 // Class which tracks the set of packets sent on a QUIC connection. |
25 // It keeps track of the retransmittable data ssociated with each | 26 // It keeps track of the retransmittable data ssociated with each |
26 // packets. If a packet is retransmitted, it will keep track of each | 27 // packets. If a packet is retransmitted, it will keep track of each |
27 // version of a packet so that if a previous transmission is acked, | 28 // version of a packet so that if a previous transmission is acked, |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 // been transmitted as. If a packet has not been retransmitted, it will not | 240 // been transmitted as. If a packet has not been retransmitted, it will not |
240 // have an entry in this map. If any transmission of a packet has been acked | 241 // have an entry in this map. If any transmission of a packet has been acked |
241 // it will not have an entry in this map. | 242 // it will not have an entry in this map. |
242 PreviousTransmissionMap previous_transmissions_map_; | 243 PreviousTransmissionMap previous_transmissions_map_; |
243 | 244 |
244 // Tracks if the connection was created by the server. | 245 // Tracks if the connection was created by the server. |
245 bool is_server_; | 246 bool is_server_; |
246 | 247 |
247 HelperInterface* helper_; | 248 HelperInterface* helper_; |
248 | 249 |
| 250 // An AckNotifier can register to be informed when ACKs have been received for |
| 251 // all packets that a given block of data was sent in. The AckNotifierManager |
| 252 // maintains the currently active notifiers. |
| 253 AckNotifierManager ack_notifier_manager_; |
| 254 |
249 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 255 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
250 }; | 256 }; |
251 | 257 |
252 } // namespace net | 258 } // namespace net |
253 | 259 |
254 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 260 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
OLD | NEW |