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_CORE_QUIC_SENT_PACKET_MANAGER_H_ | 5 #ifndef NET_QUIC_CORE_QUIC_SENT_PACKET_MANAGER_H_ |
6 #define NET_QUIC_CORE_QUIC_SENT_PACKET_MANAGER_H_ | 6 #define NET_QUIC_CORE_QUIC_SENT_PACKET_MANAGER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 #include <set> | 12 #include <set> |
13 #include <utility> | 13 #include <utility> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "net/base/linked_hash_map.h" | 17 #include "net/base/linked_hash_map.h" |
18 #include "net/base/net_export.h" | |
19 #include "net/quic/core/congestion_control/general_loss_algorithm.h" | 18 #include "net/quic/core/congestion_control/general_loss_algorithm.h" |
20 #include "net/quic/core/congestion_control/loss_detection_interface.h" | 19 #include "net/quic/core/congestion_control/loss_detection_interface.h" |
21 #include "net/quic/core/congestion_control/pacing_sender.h" | 20 #include "net/quic/core/congestion_control/pacing_sender.h" |
22 #include "net/quic/core/congestion_control/rtt_stats.h" | 21 #include "net/quic/core/congestion_control/rtt_stats.h" |
23 #include "net/quic/core/congestion_control/send_algorithm_interface.h" | 22 #include "net/quic/core/congestion_control/send_algorithm_interface.h" |
24 #include "net/quic/core/quic_packets.h" | 23 #include "net/quic/core/quic_packets.h" |
25 #include "net/quic/core/quic_sent_packet_manager_interface.h" | 24 #include "net/quic/core/quic_sent_packet_manager_interface.h" |
26 #include "net/quic/core/quic_unacked_packet_map.h" | 25 #include "net/quic/core/quic_unacked_packet_map.h" |
| 26 #include "net/quic/platform/api/quic_export.h" |
27 | 27 |
28 namespace net { | 28 namespace net { |
29 | 29 |
30 namespace test { | 30 namespace test { |
31 class QuicConnectionPeer; | 31 class QuicConnectionPeer; |
32 class QuicSentPacketManagerPeer; | 32 class QuicSentPacketManagerPeer; |
33 } // namespace test | 33 } // namespace test |
34 | 34 |
35 class QuicClock; | 35 class QuicClock; |
36 class QuicConfig; | 36 class QuicConfig; |
37 struct QuicConnectionStats; | 37 struct QuicConnectionStats; |
38 | 38 |
39 // Class which tracks the set of packets sent on a QUIC connection and contains | 39 // Class which tracks the set of packets sent on a QUIC connection and contains |
40 // a send algorithm to decide when to send new packets. It keeps track of any | 40 // a send algorithm to decide when to send new packets. It keeps track of any |
41 // retransmittable data associated with each packet. If a packet is | 41 // retransmittable data associated with each packet. If a packet is |
42 // retransmitted, it will keep track of each version of a packet so that if a | 42 // retransmitted, it will keep track of each version of a packet so that if a |
43 // previous transmission is acked, the data will not be retransmitted. | 43 // previous transmission is acked, the data will not be retransmitted. |
44 class NET_EXPORT_PRIVATE QuicSentPacketManager | 44 class QUIC_EXPORT_PRIVATE QuicSentPacketManager |
45 : public QuicSentPacketManagerInterface { | 45 : public QuicSentPacketManagerInterface { |
46 public: | 46 public: |
47 // A delegate interface which manages pending retransmissions. | 47 // A delegate interface which manages pending retransmissions. |
48 class MultipathDelegateInterface { | 48 class MultipathDelegateInterface { |
49 public: | 49 public: |
50 virtual ~MultipathDelegateInterface() {} | 50 virtual ~MultipathDelegateInterface() {} |
51 | 51 |
52 // Called when unencrypted |packet_number| is requested to be neutered. | 52 // Called when unencrypted |packet_number| is requested to be neutered. |
53 virtual void OnUnencryptedPacketsNeutered( | 53 virtual void OnUnencryptedPacketsNeutered( |
54 QuicPathId path_id, | 54 QuicPathId path_id, |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 // Records bandwidth from server to client in normal operation, over periods | 389 // Records bandwidth from server to client in normal operation, over periods |
390 // of time with no loss events. | 390 // of time with no loss events. |
391 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 391 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
392 | 392 |
393 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 393 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
394 }; | 394 }; |
395 | 395 |
396 } // namespace net | 396 } // namespace net |
397 | 397 |
398 #endif // NET_QUIC_CORE_QUIC_SENT_PACKET_MANAGER_H_ | 398 #endif // NET_QUIC_CORE_QUIC_SENT_PACKET_MANAGER_H_ |
OLD | NEW |