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
QuicTransmissionInfo()9 QuicTransmissionInfo::QuicTransmissionInfo()
10 : encryption_level(ENCRYPTION_INITIAL),
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
QuicTransmissionInfo(EncryptionLevel level,TransmissionType transmission_type,QuicTime sent_time,QuicPacketLength bytes_sent,bool has_crypto_handshake,int num_padding_bytes)19 QuicTransmissionInfo::QuicTransmissionInfo(
20 EncryptionLevel level,
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),
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
~QuicTransmissionInfo()38 QuicTransmissionInfo::~QuicTransmissionInfo() {}
39
40 } // namespace quic
41