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 #include "net/quic/core/quic_transmission_info.h" |
| 6 |
| 7 namespace net { |
| 8 |
| 9 QuicTransmissionInfo::QuicTransmissionInfo() |
| 10 : encryption_level(ENCRYPTION_NONE), |
| 11 packet_number_length(PACKET_1BYTE_PACKET_NUMBER), |
| 12 bytes_sent(0), |
| 13 sent_time(QuicTime::Zero()), |
| 14 transmission_type(NOT_RETRANSMISSION), |
| 15 in_flight(false), |
| 16 is_unackable(false), |
| 17 has_crypto_handshake(false), |
| 18 num_padding_bytes(0), |
| 19 retransmission(0) {} |
| 20 |
| 21 QuicTransmissionInfo::QuicTransmissionInfo( |
| 22 EncryptionLevel level, |
| 23 QuicPacketNumberLength packet_number_length, |
| 24 TransmissionType transmission_type, |
| 25 QuicTime sent_time, |
| 26 QuicPacketLength bytes_sent, |
| 27 bool has_crypto_handshake, |
| 28 int num_padding_bytes) |
| 29 : encryption_level(level), |
| 30 packet_number_length(packet_number_length), |
| 31 bytes_sent(bytes_sent), |
| 32 sent_time(sent_time), |
| 33 transmission_type(transmission_type), |
| 34 in_flight(false), |
| 35 is_unackable(false), |
| 36 has_crypto_handshake(has_crypto_handshake), |
| 37 num_padding_bytes(num_padding_bytes), |
| 38 retransmission(0) {} |
| 39 |
| 40 QuicTransmissionInfo::QuicTransmissionInfo(const QuicTransmissionInfo& other) = |
| 41 default; |
| 42 |
| 43 QuicTransmissionInfo::~QuicTransmissionInfo() {} |
| 44 |
| 45 } // namespace net |
OLD | NEW |