| 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 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 | 761 |
| 762 AckListenerWrapper::AckListenerWrapper(QuicAckListenerInterface* listener, | 762 AckListenerWrapper::AckListenerWrapper(QuicAckListenerInterface* listener, |
| 763 QuicPacketLength data_length) | 763 QuicPacketLength data_length) |
| 764 : ack_listener(listener), length(data_length) { | 764 : ack_listener(listener), length(data_length) { |
| 765 DCHECK(listener != nullptr); | 765 DCHECK(listener != nullptr); |
| 766 } | 766 } |
| 767 | 767 |
| 768 AckListenerWrapper::~AckListenerWrapper() {} | 768 AckListenerWrapper::~AckListenerWrapper() {} |
| 769 | 769 |
| 770 SerializedPacket::SerializedPacket( | 770 SerializedPacket::SerializedPacket( |
| 771 QuicPathId path_id, |
| 771 QuicPacketNumber packet_number, | 772 QuicPacketNumber packet_number, |
| 772 QuicPacketNumberLength packet_number_length, | 773 QuicPacketNumberLength packet_number_length, |
| 773 QuicEncryptedPacket* packet, | 774 QuicEncryptedPacket* packet, |
| 774 QuicPacketEntropyHash entropy_hash, | 775 QuicPacketEntropyHash entropy_hash, |
| 775 RetransmittableFrames* retransmittable_frames, | 776 RetransmittableFrames* retransmittable_frames, |
| 776 bool has_ack, | 777 bool has_ack, |
| 777 bool has_stop_waiting) | 778 bool has_stop_waiting) |
| 778 : packet(packet), | 779 : packet(packet), |
| 779 retransmittable_frames(retransmittable_frames), | 780 retransmittable_frames(retransmittable_frames), |
| 781 path_id(path_id), |
| 780 packet_number(packet_number), | 782 packet_number(packet_number), |
| 781 packet_number_length(packet_number_length), | 783 packet_number_length(packet_number_length), |
| 782 encryption_level(ENCRYPTION_NONE), | 784 encryption_level(ENCRYPTION_NONE), |
| 783 entropy_hash(entropy_hash), | 785 entropy_hash(entropy_hash), |
| 784 is_fec_packet(false), | 786 is_fec_packet(false), |
| 785 has_ack(has_ack), | 787 has_ack(has_ack), |
| 786 has_stop_waiting(has_stop_waiting) {} | 788 has_stop_waiting(has_stop_waiting) {} |
| 787 | 789 |
| 788 SerializedPacket::SerializedPacket( | 790 SerializedPacket::SerializedPacket( |
| 791 QuicPathId path_id, |
| 789 QuicPacketNumber packet_number, | 792 QuicPacketNumber packet_number, |
| 790 QuicPacketNumberLength packet_number_length, | 793 QuicPacketNumberLength packet_number_length, |
| 791 char* encrypted_buffer, | 794 char* encrypted_buffer, |
| 792 size_t encrypted_length, | 795 size_t encrypted_length, |
| 793 bool owns_buffer, | 796 bool owns_buffer, |
| 794 QuicPacketEntropyHash entropy_hash, | 797 QuicPacketEntropyHash entropy_hash, |
| 795 RetransmittableFrames* retransmittable_frames, | 798 RetransmittableFrames* retransmittable_frames, |
| 796 bool has_ack, | 799 bool has_ack, |
| 797 bool has_stop_waiting, | 800 bool has_stop_waiting, |
| 798 EncryptionLevel level) | 801 EncryptionLevel level) |
| 799 : SerializedPacket(packet_number, | 802 : SerializedPacket(path_id, |
| 803 packet_number, |
| 800 packet_number_length, | 804 packet_number_length, |
| 801 new QuicEncryptedPacket(encrypted_buffer, | 805 new QuicEncryptedPacket(encrypted_buffer, |
| 802 encrypted_length, | 806 encrypted_length, |
| 803 owns_buffer), | 807 owns_buffer), |
| 804 entropy_hash, | 808 entropy_hash, |
| 805 retransmittable_frames, | 809 retransmittable_frames, |
| 806 has_ack, | 810 has_ack, |
| 807 has_stop_waiting) { | 811 has_stop_waiting) { |
| 808 // TODO(ianswett): Move into the initializer list once SerializedPacket | 812 // TODO(ianswett): Move into the initializer list once SerializedPacket |
| 809 // no longer contains an encrypted packet. | 813 // no longer contains an encrypted packet. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 transmission_type(transmission_type), | 858 transmission_type(transmission_type), |
| 855 in_flight(false), | 859 in_flight(false), |
| 856 is_unackable(false), | 860 is_unackable(false), |
| 857 is_fec_packet(is_fec_packet), | 861 is_fec_packet(is_fec_packet), |
| 858 all_transmissions(nullptr), | 862 all_transmissions(nullptr), |
| 859 retransmission(0) {} | 863 retransmission(0) {} |
| 860 | 864 |
| 861 TransmissionInfo::~TransmissionInfo() {} | 865 TransmissionInfo::~TransmissionInfo() {} |
| 862 | 866 |
| 863 } // namespace net | 867 } // namespace net |
| OLD | NEW |