OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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_TRANSMISSION_INFO_H_ | 5 #ifndef NET_QUIC_CORE_QUIC_TRANSMISSION_INFO_H_ |
6 #define NET_QUIC_CORE_QUIC_TRANSMISSION_INFO_H_ | 6 #define NET_QUIC_CORE_QUIC_TRANSMISSION_INFO_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "net/quic/core/frames/quic_frame.h" | 10 #include "net/quic/core/frames/quic_frame.h" |
11 #include "net/quic/core/quic_ack_listener_interface.h" | 11 #include "net/quic/core/quic_ack_listener_interface.h" |
12 #include "net/quic/core/quic_types.h" | 12 #include "net/quic/core/quic_types.h" |
| 13 #include "net/quic/platform/api/quic_export.h" |
13 | 14 |
14 namespace net { | 15 namespace net { |
15 | 16 |
16 // Stores details of a single sent packet. | 17 // Stores details of a single sent packet. |
17 struct NET_EXPORT_PRIVATE QuicTransmissionInfo { | 18 struct QUIC_EXPORT_PRIVATE QuicTransmissionInfo { |
18 // Used by STL when assigning into a map. | 19 // Used by STL when assigning into a map. |
19 QuicTransmissionInfo(); | 20 QuicTransmissionInfo(); |
20 | 21 |
21 // Constructs a Transmission with a new all_transmissions set | 22 // Constructs a Transmission with a new all_transmissions set |
22 // containing |packet_number|. | 23 // containing |packet_number|. |
23 QuicTransmissionInfo(EncryptionLevel level, | 24 QuicTransmissionInfo(EncryptionLevel level, |
24 QuicPacketNumberLength packet_number_length, | 25 QuicPacketNumberLength packet_number_length, |
25 TransmissionType transmission_type, | 26 TransmissionType transmission_type, |
26 QuicTime sent_time, | 27 QuicTime sent_time, |
27 QuicPacketLength bytes_sent, | 28 QuicPacketLength bytes_sent, |
(...skipping 24 matching lines...) Expand all Loading... |
52 // Stores the packet number of the next retransmission of this packet. | 53 // Stores the packet number of the next retransmission of this packet. |
53 // Zero if the packet has not been retransmitted. | 54 // Zero if the packet has not been retransmitted. |
54 QuicPacketNumber retransmission; | 55 QuicPacketNumber retransmission; |
55 // Non-empty if there is a listener for this packet. | 56 // Non-empty if there is a listener for this packet. |
56 std::list<AckListenerWrapper> ack_listeners; | 57 std::list<AckListenerWrapper> ack_listeners; |
57 }; | 58 }; |
58 | 59 |
59 } // namespace net | 60 } // namespace net |
60 | 61 |
61 #endif // NET_QUIC_CORE_QUIC_TRANSMISSION_INFO_H_ | 62 #endif // NET_QUIC_CORE_QUIC_TRANSMISSION_INFO_H_ |
OLD | NEW |