Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: net/quic/quic_protocol.cc

Issue 509073004: Change TransmissionInfo's all_transmissions SequenceNumberSet* to (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@log_quic_version_74069715
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/quic_protocol.h ('k') | net/quic/quic_sent_packet_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_utils.h" 8 #include "net/quic/quic_utils.h"
9 9
10 using base::StringPiece; 10 using base::StringPiece;
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 sequence_number_length(PACKET_1BYTE_SEQUENCE_NUMBER), 719 sequence_number_length(PACKET_1BYTE_SEQUENCE_NUMBER),
720 sent_time(QuicTime::Zero()), 720 sent_time(QuicTime::Zero()),
721 bytes_sent(0), 721 bytes_sent(0),
722 nack_count(0), 722 nack_count(0),
723 transmission_type(NOT_RETRANSMISSION), 723 transmission_type(NOT_RETRANSMISSION),
724 all_transmissions(NULL), 724 all_transmissions(NULL),
725 in_flight(false) {} 725 in_flight(false) {}
726 726
727 TransmissionInfo::TransmissionInfo( 727 TransmissionInfo::TransmissionInfo(
728 RetransmittableFrames* retransmittable_frames, 728 RetransmittableFrames* retransmittable_frames,
729 QuicPacketSequenceNumber sequence_number,
730 QuicSequenceNumberLength sequence_number_length) 729 QuicSequenceNumberLength sequence_number_length)
731 : retransmittable_frames(retransmittable_frames), 730 : retransmittable_frames(retransmittable_frames),
732 sequence_number_length(sequence_number_length), 731 sequence_number_length(sequence_number_length),
733 sent_time(QuicTime::Zero()), 732 sent_time(QuicTime::Zero()),
734 bytes_sent(0), 733 bytes_sent(0),
735 nack_count(0), 734 nack_count(0),
736 transmission_type(NOT_RETRANSMISSION), 735 transmission_type(NOT_RETRANSMISSION),
737 all_transmissions(new SequenceNumberSet), 736 all_transmissions(NULL),
738 in_flight(false) { 737 in_flight(false) {}
739 all_transmissions->insert(sequence_number);
740 }
741 738
742 TransmissionInfo::TransmissionInfo( 739 TransmissionInfo::TransmissionInfo(
743 RetransmittableFrames* retransmittable_frames, 740 RetransmittableFrames* retransmittable_frames,
744 QuicPacketSequenceNumber sequence_number,
745 QuicSequenceNumberLength sequence_number_length, 741 QuicSequenceNumberLength sequence_number_length,
746 TransmissionType transmission_type, 742 TransmissionType transmission_type,
747 SequenceNumberSet* all_transmissions) 743 SequenceNumberList* all_transmissions)
748 : retransmittable_frames(retransmittable_frames), 744 : retransmittable_frames(retransmittable_frames),
749 sequence_number_length(sequence_number_length), 745 sequence_number_length(sequence_number_length),
750 sent_time(QuicTime::Zero()), 746 sent_time(QuicTime::Zero()),
751 bytes_sent(0), 747 bytes_sent(0),
752 nack_count(0), 748 nack_count(0),
753 transmission_type(transmission_type), 749 transmission_type(transmission_type),
754 all_transmissions(all_transmissions), 750 all_transmissions(all_transmissions),
755 in_flight(false) { 751 in_flight(false) {}
756 all_transmissions->insert(sequence_number);
757 }
758 752
759 } // namespace net 753 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_protocol.h ('k') | net/quic/quic_sent_packet_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698