blob: fb5cf670063aea0e7f2baa6553ba3205582c4882 [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 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 state(OUTSTANDING),
17 has_crypto_handshake(false),
18 num_padding_bytes(0) {}
19
20QuicTransmissionInfo::QuicTransmissionInfo(
21 EncryptionLevel level,
22 QuicPacketNumberLength packet_number_length,
23 TransmissionType transmission_type,
24 QuicTime sent_time,
25 QuicPacketLength bytes_sent,
26 bool has_crypto_handshake,
27 int num_padding_bytes)
28 : encryption_level(level),
29 packet_number_length(packet_number_length),
30 bytes_sent(bytes_sent),
31 sent_time(sent_time),
32 transmission_type(transmission_type),
33 in_flight(false),
34 state(OUTSTANDING),
35 has_crypto_handshake(has_crypto_handshake),
36 num_padding_bytes(num_padding_bytes) {}
37
38QuicTransmissionInfo::QuicTransmissionInfo(const QuicTransmissionInfo& other) =
39 default;
40
41QuicTransmissionInfo::~QuicTransmissionInfo() {}
42
43} // namespace quic