QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 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/third_party/quiche/src/quic/core/quic_transmission_info.h" |
| 6 | |
| 7 | namespace quic { |
| 8 | |
| 9 | QuicTransmissionInfo::QuicTransmissionInfo() |
QUICHE team | 6987b4a | 2019-03-15 16:23:04 -0700 | [diff] [blame] | 10 | : encryption_level(ENCRYPTION_INITIAL), |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 11 | bytes_sent(0), |
| 12 | sent_time(QuicTime::Zero()), |
| 13 | transmission_type(NOT_RETRANSMISSION), |
| 14 | in_flight(false), |
| 15 | state(OUTSTANDING), |
| 16 | has_crypto_handshake(false), |
| 17 | num_padding_bytes(0) {} |
| 18 | |
| 19 | QuicTransmissionInfo::QuicTransmissionInfo( |
| 20 | EncryptionLevel level, |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 21 | TransmissionType transmission_type, |
| 22 | QuicTime sent_time, |
| 23 | QuicPacketLength bytes_sent, |
| 24 | bool has_crypto_handshake, |
| 25 | int num_padding_bytes) |
| 26 | : encryption_level(level), |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 27 | bytes_sent(bytes_sent), |
| 28 | sent_time(sent_time), |
| 29 | transmission_type(transmission_type), |
| 30 | in_flight(false), |
| 31 | state(OUTSTANDING), |
| 32 | has_crypto_handshake(has_crypto_handshake), |
| 33 | num_padding_bytes(num_padding_bytes) {} |
| 34 | |
| 35 | QuicTransmissionInfo::QuicTransmissionInfo(const QuicTransmissionInfo& other) = |
| 36 | default; |
| 37 | |
| 38 | QuicTransmissionInfo::~QuicTransmissionInfo() {} |
| 39 | |
| 40 | } // namespace quic |