| 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 "net/quic/quic_flags.h" | 8 #include "net/quic/quic_flags.h" |
| 9 #include "net/quic/quic_utils.h" | 9 #include "net/quic/quic_utils.h" |
| 10 | 10 |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 | 781 |
| 782 AckListenerWrapper::AckListenerWrapper(QuicAckListenerInterface* listener, | 782 AckListenerWrapper::AckListenerWrapper(QuicAckListenerInterface* listener, |
| 783 QuicPacketLength data_length) | 783 QuicPacketLength data_length) |
| 784 : ack_listener(listener), length(data_length) { | 784 : ack_listener(listener), length(data_length) { |
| 785 DCHECK(listener != nullptr); | 785 DCHECK(listener != nullptr); |
| 786 } | 786 } |
| 787 | 787 |
| 788 AckListenerWrapper::~AckListenerWrapper() {} | 788 AckListenerWrapper::~AckListenerWrapper() {} |
| 789 | 789 |
| 790 SerializedPacket::SerializedPacket( | 790 SerializedPacket::SerializedPacket( |
| 791 QuicPathId path_id, |
| 791 QuicPacketNumber packet_number, | 792 QuicPacketNumber packet_number, |
| 792 QuicPacketNumberLength packet_number_length, | 793 QuicPacketNumberLength packet_number_length, |
| 793 QuicEncryptedPacket* packet, | 794 QuicEncryptedPacket* packet, |
| 794 QuicPacketEntropyHash entropy_hash, | 795 QuicPacketEntropyHash entropy_hash, |
| 795 RetransmittableFrames* retransmittable_frames, | 796 RetransmittableFrames* retransmittable_frames, |
| 796 bool has_ack, | 797 bool has_ack, |
| 797 bool has_stop_waiting) | 798 bool has_stop_waiting) |
| 798 : packet(packet), | 799 : packet(packet), |
| 799 retransmittable_frames(retransmittable_frames), | 800 retransmittable_frames(retransmittable_frames), |
| 801 path_id(path_id), |
| 800 packet_number(packet_number), | 802 packet_number(packet_number), |
| 801 packet_number_length(packet_number_length), | 803 packet_number_length(packet_number_length), |
| 802 encryption_level(ENCRYPTION_NONE), | 804 encryption_level(ENCRYPTION_NONE), |
| 803 entropy_hash(entropy_hash), | 805 entropy_hash(entropy_hash), |
| 804 is_fec_packet(false), | 806 is_fec_packet(false), |
| 805 has_ack(has_ack), | 807 has_ack(has_ack), |
| 806 has_stop_waiting(has_stop_waiting) {} | 808 has_stop_waiting(has_stop_waiting) {} |
| 807 | 809 |
| 808 SerializedPacket::SerializedPacket( | 810 SerializedPacket::SerializedPacket( |
| 811 QuicPathId path_id, |
| 809 QuicPacketNumber packet_number, | 812 QuicPacketNumber packet_number, |
| 810 QuicPacketNumberLength packet_number_length, | 813 QuicPacketNumberLength packet_number_length, |
| 811 char* encrypted_buffer, | 814 char* encrypted_buffer, |
| 812 size_t encrypted_length, | 815 size_t encrypted_length, |
| 813 bool owns_buffer, | 816 bool owns_buffer, |
| 814 QuicPacketEntropyHash entropy_hash, | 817 QuicPacketEntropyHash entropy_hash, |
| 815 RetransmittableFrames* retransmittable_frames, | 818 RetransmittableFrames* retransmittable_frames, |
| 816 bool has_ack, | 819 bool has_ack, |
| 817 bool has_stop_waiting, | 820 bool has_stop_waiting, |
| 818 EncryptionLevel level) | 821 EncryptionLevel level) |
| 819 : SerializedPacket(packet_number, | 822 : SerializedPacket(path_id, |
| 823 packet_number, |
| 820 packet_number_length, | 824 packet_number_length, |
| 821 new QuicEncryptedPacket(encrypted_buffer, | 825 new QuicEncryptedPacket(encrypted_buffer, |
| 822 encrypted_length, | 826 encrypted_length, |
| 823 owns_buffer), | 827 owns_buffer), |
| 824 entropy_hash, | 828 entropy_hash, |
| 825 retransmittable_frames, | 829 retransmittable_frames, |
| 826 has_ack, | 830 has_ack, |
| 827 has_stop_waiting) { | 831 has_stop_waiting) { |
| 828 // TODO(ianswett): Move into the initializer list once SerializedPacket | 832 // TODO(ianswett): Move into the initializer list once SerializedPacket |
| 829 // no longer contains an encrypted packet. | 833 // no longer contains an encrypted packet. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 transmission_type(transmission_type), | 878 transmission_type(transmission_type), |
| 875 in_flight(false), | 879 in_flight(false), |
| 876 is_unackable(false), | 880 is_unackable(false), |
| 877 is_fec_packet(is_fec_packet), | 881 is_fec_packet(is_fec_packet), |
| 878 all_transmissions(nullptr), | 882 all_transmissions(nullptr), |
| 879 retransmission(0) {} | 883 retransmission(0) {} |
| 880 | 884 |
| 881 TransmissionInfo::~TransmissionInfo() {} | 885 TransmissionInfo::~TransmissionInfo() {} |
| 882 | 886 |
| 883 } // namespace net | 887 } // namespace net |
| OLD | NEW |