blob: 163ba384f320ee70b7c6ea152dc0ab5e39819da7 [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// 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
7namespace quic {
8
9QuicTransmissionInfo::QuicTransmissionInfo()
QUICHE team6987b4a2019-03-15 16:23:04 -070010 : encryption_level(ENCRYPTION_INITIAL),
QUICHE teama6ef0a62019-03-07 20:34:33 -050011 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
19QuicTransmissionInfo::QuicTransmissionInfo(
20 EncryptionLevel level,
QUICHE teama6ef0a62019-03-07 20:34:33 -050021 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 teama6ef0a62019-03-07 20:34:33 -050027 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
35QuicTransmissionInfo::QuicTransmissionInfo(const QuicTransmissionInfo& other) =
36 default;
37
38QuicTransmissionInfo::~QuicTransmissionInfo() {}
39
40} // namespace quic