OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/quic/quic_protocol.h" | 5 #include "net/quic/quic_protocol.h" |
6 | 6 |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "net/quic/quic_flags.h" | 9 #include "net/quic/quic_flags.h" |
10 #include "net/quic/quic_utils.h" | 10 #include "net/quic/quic_utils.h" |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 QuicPacketNumber packet_number, | 772 QuicPacketNumber packet_number, |
773 QuicPacketNumberLength packet_number_length, | 773 QuicPacketNumberLength packet_number_length, |
774 const char* encrypted_buffer, | 774 const char* encrypted_buffer, |
775 QuicPacketLength encrypted_length, | 775 QuicPacketLength encrypted_length, |
776 QuicPacketEntropyHash entropy_hash, | 776 QuicPacketEntropyHash entropy_hash, |
777 bool has_ack, | 777 bool has_ack, |
778 bool has_stop_waiting) | 778 bool has_stop_waiting) |
779 : encrypted_buffer(encrypted_buffer), | 779 : encrypted_buffer(encrypted_buffer), |
780 encrypted_length(encrypted_length), | 780 encrypted_length(encrypted_length), |
781 has_crypto_handshake(NOT_HANDSHAKE), | 781 has_crypto_handshake(NOT_HANDSHAKE), |
782 needs_padding(false), | 782 num_padding_bytes(0), |
783 path_id(path_id), | 783 path_id(path_id), |
784 packet_number(packet_number), | 784 packet_number(packet_number), |
785 packet_number_length(packet_number_length), | 785 packet_number_length(packet_number_length), |
786 encryption_level(ENCRYPTION_NONE), | 786 encryption_level(ENCRYPTION_NONE), |
787 entropy_hash(entropy_hash), | 787 entropy_hash(entropy_hash), |
788 has_ack(has_ack), | 788 has_ack(has_ack), |
789 has_stop_waiting(has_stop_waiting), | 789 has_stop_waiting(has_stop_waiting), |
790 original_packet_number(0), | 790 original_packet_number(0), |
791 transmission_type(NOT_RETRANSMISSION) {} | 791 transmission_type(NOT_RETRANSMISSION) {} |
792 | 792 |
793 SerializedPacket::SerializedPacket(const SerializedPacket& other) = default; | 793 SerializedPacket::SerializedPacket(const SerializedPacket& other) = default; |
794 | 794 |
795 SerializedPacket::~SerializedPacket() {} | 795 SerializedPacket::~SerializedPacket() {} |
796 | 796 |
797 TransmissionInfo::TransmissionInfo() | 797 TransmissionInfo::TransmissionInfo() |
798 : encryption_level(ENCRYPTION_NONE), | 798 : encryption_level(ENCRYPTION_NONE), |
799 packet_number_length(PACKET_1BYTE_PACKET_NUMBER), | 799 packet_number_length(PACKET_1BYTE_PACKET_NUMBER), |
800 bytes_sent(0), | 800 bytes_sent(0), |
801 nack_count(0), | 801 nack_count(0), |
802 sent_time(QuicTime::Zero()), | 802 sent_time(QuicTime::Zero()), |
803 transmission_type(NOT_RETRANSMISSION), | 803 transmission_type(NOT_RETRANSMISSION), |
804 in_flight(false), | 804 in_flight(false), |
805 is_unackable(false), | 805 is_unackable(false), |
806 has_crypto_handshake(false), | 806 has_crypto_handshake(false), |
807 needs_padding(false), | 807 num_padding_bytes(0), |
808 retransmission(0) {} | 808 retransmission(0) {} |
809 | 809 |
810 TransmissionInfo::TransmissionInfo(EncryptionLevel level, | 810 TransmissionInfo::TransmissionInfo(EncryptionLevel level, |
811 QuicPacketNumberLength packet_number_length, | 811 QuicPacketNumberLength packet_number_length, |
812 TransmissionType transmission_type, | 812 TransmissionType transmission_type, |
813 QuicTime sent_time, | 813 QuicTime sent_time, |
814 QuicPacketLength bytes_sent, | 814 QuicPacketLength bytes_sent, |
815 bool has_crypto_handshake, | 815 bool has_crypto_handshake, |
816 bool needs_padding) | 816 int num_padding_bytes) |
817 : encryption_level(level), | 817 : encryption_level(level), |
818 packet_number_length(packet_number_length), | 818 packet_number_length(packet_number_length), |
819 bytes_sent(bytes_sent), | 819 bytes_sent(bytes_sent), |
820 nack_count(0), | 820 nack_count(0), |
821 sent_time(sent_time), | 821 sent_time(sent_time), |
822 transmission_type(transmission_type), | 822 transmission_type(transmission_type), |
823 in_flight(false), | 823 in_flight(false), |
824 is_unackable(false), | 824 is_unackable(false), |
825 has_crypto_handshake(has_crypto_handshake), | 825 has_crypto_handshake(has_crypto_handshake), |
826 needs_padding(needs_padding), | 826 num_padding_bytes(num_padding_bytes), |
827 retransmission(0) {} | 827 retransmission(0) {} |
828 | 828 |
829 TransmissionInfo::TransmissionInfo(const TransmissionInfo& other) = default; | 829 TransmissionInfo::TransmissionInfo(const TransmissionInfo& other) = default; |
830 | 830 |
831 TransmissionInfo::~TransmissionInfo() {} | 831 TransmissionInfo::~TransmissionInfo() {} |
832 | 832 |
833 } // namespace net | 833 } // namespace net |
OLD | NEW |