OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PROTOCOL_H_ | 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ |
6 #define NET_QUIC_QUIC_PROTOCOL_H_ | 6 #define NET_QUIC_QUIC_PROTOCOL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <limits> | 9 #include <limits> |
10 #include <list> | 10 #include <list> |
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1026 RetransmittableFrames* retransmittable_frames); | 1026 RetransmittableFrames* retransmittable_frames); |
1027 ~SerializedPacket(); | 1027 ~SerializedPacket(); |
1028 | 1028 |
1029 QuicPacketSequenceNumber sequence_number; | 1029 QuicPacketSequenceNumber sequence_number; |
1030 QuicSequenceNumberLength sequence_number_length; | 1030 QuicSequenceNumberLength sequence_number_length; |
1031 QuicPacket* packet; | 1031 QuicPacket* packet; |
1032 QuicPacketEntropyHash entropy_hash; | 1032 QuicPacketEntropyHash entropy_hash; |
1033 RetransmittableFrames* retransmittable_frames; | 1033 RetransmittableFrames* retransmittable_frames; |
1034 | 1034 |
1035 // Optional notifiers which will be informed when this packet has been ACKed. | 1035 // Optional notifiers which will be informed when this packet has been ACKed. |
1036 base::hash_set<QuicAckNotifier*> notifiers; | 1036 std::list<QuicAckNotifier*> notifiers; |
1037 }; | 1037 }; |
1038 | 1038 |
1039 struct NET_EXPORT_PRIVATE TransmissionInfo { | 1039 struct NET_EXPORT_PRIVATE TransmissionInfo { |
1040 // Used by STL when assigning into a map. | 1040 // Used by STL when assigning into a map. |
1041 TransmissionInfo(); | 1041 TransmissionInfo(); |
1042 | 1042 |
1043 // Constructs a Transmission with a new all_tranmissions set | 1043 // Constructs a Transmission with a new all_tranmissions set |
1044 // containing |sequence_number|. | 1044 // containing |sequence_number|. |
1045 TransmissionInfo(RetransmittableFrames* retransmittable_frames, | 1045 TransmissionInfo(RetransmittableFrames* retransmittable_frames, |
1046 QuicSequenceNumberLength sequence_number_length, | 1046 QuicSequenceNumberLength sequence_number_length, |
(...skipping 16 matching lines...) Expand all Loading... |
1063 bool in_flight; | 1063 bool in_flight; |
1064 // True if the packet can never be acked, so it can be removed. | 1064 // True if the packet can never be acked, so it can be removed. |
1065 bool is_unackable; | 1065 bool is_unackable; |
1066 // True if the packet is an FEC packet. | 1066 // True if the packet is an FEC packet. |
1067 bool is_fec_packet; | 1067 bool is_fec_packet; |
1068 }; | 1068 }; |
1069 | 1069 |
1070 } // namespace net | 1070 } // namespace net |
1071 | 1071 |
1072 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1072 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |