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

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

Issue 968513002: Land Recent QUIC Changes until 2/21/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed const from members of TransmissionInfo struct. Created 5 years, 9 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_packet_generator.cc ('k') | net/quic/quic_protocol.cc » ('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 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_
6 #define NET_QUIC_QUIC_PROTOCOL_H_ 6 #define NET_QUIC_QUIC_PROTOCOL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <limits> 9 #include <limits>
10 #include <list> 10 #include <list>
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 std::ostream& os, const QuicStreamFrame& s); 655 std::ostream& os, const QuicStreamFrame& s);
656 656
657 // Returns a copy of the IOVector |data| as a heap-allocated string. 657 // Returns a copy of the IOVector |data| as a heap-allocated string.
658 // Caller must take ownership of the returned string. 658 // Caller must take ownership of the returned string.
659 std::string* GetDataAsString() const; 659 std::string* GetDataAsString() const;
660 660
661 QuicStreamId stream_id; 661 QuicStreamId stream_id;
662 bool fin; 662 bool fin;
663 QuicStreamOffset offset; // Location of this data in the stream. 663 QuicStreamOffset offset; // Location of this data in the stream.
664 IOVector data; 664 IOVector data;
665
666 // TODO(rjshade): Remove with FLAGS_quic_attach_ack_notifiers_to_packets.
667 // If this is set, then when this packet is ACKed the AckNotifier will be
668 // informed.
669 QuicAckNotifier* notifier;
670 }; 665 };
671 666
672 // TODO(ianswett): Re-evaluate the trade-offs of hash_set vs set when framing 667 // TODO(ianswett): Re-evaluate the trade-offs of hash_set vs set when framing
673 // is finalized. 668 // is finalized.
674 typedef std::set<QuicPacketSequenceNumber> SequenceNumberSet; 669 typedef std::set<QuicPacketSequenceNumber> SequenceNumberSet;
675 typedef std::list<QuicPacketSequenceNumber> SequenceNumberList; 670 typedef std::list<QuicPacketSequenceNumber> SequenceNumberList;
676 671
677 typedef std::list< 672 typedef std::list<
678 std::pair<QuicPacketSequenceNumber, QuicTime> > PacketTimeList; 673 std::pair<QuicPacketSequenceNumber, QuicTime> > PacketTimeList;
679 674
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 1010
1016 struct NET_EXPORT_PRIVATE TransmissionInfo { 1011 struct NET_EXPORT_PRIVATE TransmissionInfo {
1017 // Used by STL when assigning into a map. 1012 // Used by STL when assigning into a map.
1018 TransmissionInfo(); 1013 TransmissionInfo();
1019 1014
1020 // Constructs a Transmission with a new all_tranmissions set 1015 // Constructs a Transmission with a new all_tranmissions set
1021 // containing |sequence_number|. 1016 // containing |sequence_number|.
1022 TransmissionInfo(RetransmittableFrames* retransmittable_frames, 1017 TransmissionInfo(RetransmittableFrames* retransmittable_frames,
1023 QuicSequenceNumberLength sequence_number_length, 1018 QuicSequenceNumberLength sequence_number_length,
1024 TransmissionType transmission_type, 1019 TransmissionType transmission_type,
1025 QuicTime sent_time); 1020 QuicTime sent_time,
1021 QuicByteCount bytes_sent,
1022 bool is_fec_packet);
1026 1023
1027 RetransmittableFrames* retransmittable_frames; 1024 RetransmittableFrames* retransmittable_frames;
1028 QuicSequenceNumberLength sequence_number_length; 1025 QuicSequenceNumberLength sequence_number_length;
1029 // Zero when the packet is serialized, non-zero once it's sent.
1030 QuicTime sent_time; 1026 QuicTime sent_time;
1031 // Zero when the packet is serialized, non-zero once it's sent.
1032 QuicByteCount bytes_sent; 1027 QuicByteCount bytes_sent;
1033 QuicPacketCount nack_count; 1028 QuicPacketCount nack_count;
1034 // Reason why this packet was transmitted. 1029 // Reason why this packet was transmitted.
1035 TransmissionType transmission_type; 1030 TransmissionType transmission_type;
1036 // Stores the sequence numbers of all transmissions of this packet. 1031 // Stores the sequence numbers of all transmissions of this packet.
1037 // Must always be nullptr or have multiple elements. 1032 // Must always be nullptr or have multiple elements.
1038 SequenceNumberList* all_transmissions; 1033 SequenceNumberList* all_transmissions;
1039 // In flight packets have not been abandoned or lost. 1034 // In flight packets have not been abandoned or lost.
1040 bool in_flight; 1035 bool in_flight;
1041 // True if the packet can never be acked, so it can be removed. 1036 // True if the packet can never be acked, so it can be removed.
1042 bool is_unackable; 1037 bool is_unackable;
1043 // True if the packet is an FEC packet. 1038 // True if the packet is an FEC packet.
1044 bool is_fec_packet; 1039 bool is_fec_packet;
1045 }; 1040 };
1046 1041
1047 } // namespace net 1042 } // namespace net
1048 1043
1049 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1044 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_packet_generator.cc ('k') | net/quic/quic_protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698