OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_QUIC_CORE_QUIC_PENDING_RETRANSMISSION_H_ |
| 6 #define NET_QUIC_CORE_QUIC_PENDING_RETRANSMISSION_H_ |
| 7 |
| 8 #include "net/quic/core/frames/quic_frame.h" |
| 9 #include "net/quic/core/quic_types.h" |
| 10 |
| 11 namespace net { |
| 12 |
| 13 // Struct to store the pending retransmission information. |
| 14 struct NET_EXPORT_PRIVATE QuicPendingRetransmission { |
| 15 QuicPendingRetransmission(QuicPathId path_id, |
| 16 QuicPacketNumber packet_number, |
| 17 TransmissionType transmission_type, |
| 18 const QuicFrames& retransmittable_frames, |
| 19 bool has_crypto_handshake, |
| 20 int num_padding_bytes, |
| 21 EncryptionLevel encryption_level, |
| 22 QuicPacketNumberLength packet_number_length) |
| 23 : packet_number(packet_number), |
| 24 retransmittable_frames(retransmittable_frames), |
| 25 transmission_type(transmission_type), |
| 26 path_id(path_id), |
| 27 has_crypto_handshake(has_crypto_handshake), |
| 28 num_padding_bytes(num_padding_bytes), |
| 29 encryption_level(encryption_level), |
| 30 packet_number_length(packet_number_length) {} |
| 31 |
| 32 QuicPacketNumber packet_number; |
| 33 const QuicFrames& retransmittable_frames; |
| 34 TransmissionType transmission_type; |
| 35 QuicPathId path_id; |
| 36 bool has_crypto_handshake; |
| 37 int num_padding_bytes; |
| 38 EncryptionLevel encryption_level; |
| 39 QuicPacketNumberLength packet_number_length; |
| 40 }; |
| 41 |
| 42 } // namespace net |
| 43 |
| 44 #endif // NET_QUIC_CORE_QUIC_PENDING_RETRANSMISSION_H_ |
OLD | NEW |