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

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

Issue 19858003: * Removed QuicTag kQuicVersion1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments from rch Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_network_transaction_unittest.cc ('k') | net/quic/quic_packet_creator.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 // Accumulates frames for the next packet until more frames no longer fit or 5 // Accumulates frames for the next packet until more frames no longer fit or
6 // it's time to create a packet from them. Also provides packet creation of 6 // it's time to create a packet from them. Also provides packet creation of
7 // FEC packets based on previously created packets. 7 // FEC packets based on previously created packets.
8 8
9 #ifndef NET_QUIC_QUIC_PACKET_CREATOR_H_ 9 #ifndef NET_QUIC_QUIC_PACKET_CREATOR_H_
10 #define NET_QUIC_QUIC_PACKET_CREATOR_H_ 10 #define NET_QUIC_QUIC_PACKET_CREATOR_H_
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // packet. Also, sets the entropy hash of the serialized packet to a random 122 // packet. Also, sets the entropy hash of the serialized packet to a random
123 // bool and returns that value as a member of SerializedPacket. 123 // bool and returns that value as a member of SerializedPacket.
124 SerializedPacket SerializeConnectionClose( 124 SerializedPacket SerializeConnectionClose(
125 QuicConnectionCloseFrame* close_frame); 125 QuicConnectionCloseFrame* close_frame);
126 126
127 // Creates a version negotiation packet which supports |supported_versions|. 127 // Creates a version negotiation packet which supports |supported_versions|.
128 // Caller owns the created packet. Also, sets the entropy hash of the 128 // Caller owns the created packet. Also, sets the entropy hash of the
129 // serialized packet to a random bool and returns that value as a member of 129 // serialized packet to a random bool and returns that value as a member of
130 // SerializedPacket. 130 // SerializedPacket.
131 QuicEncryptedPacket* SerializeVersionNegotiationPacket( 131 QuicEncryptedPacket* SerializeVersionNegotiationPacket(
132 const QuicTagVector& supported_versions); 132 const QuicVersionVector& supported_versions);
133 133
134 QuicPacketSequenceNumber sequence_number() const { 134 QuicPacketSequenceNumber sequence_number() const {
135 return sequence_number_; 135 return sequence_number_;
136 } 136 }
137 137
138 void set_sequence_number(QuicPacketSequenceNumber s) { 138 void set_sequence_number(QuicPacketSequenceNumber s) {
139 sequence_number_ = s; 139 sequence_number_ = s;
140 } 140 }
141 141
142 Options* options() { 142 Options* options() {
(...skipping 29 matching lines...) Expand all
172 size_t packet_size_; 172 size_t packet_size_;
173 QuicFrames queued_frames_; 173 QuicFrames queued_frames_;
174 scoped_ptr<RetransmittableFrames> queued_retransmittable_frames_; 174 scoped_ptr<RetransmittableFrames> queued_retransmittable_frames_;
175 175
176 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreator); 176 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreator);
177 }; 177 };
178 178
179 } // namespace net 179 } // namespace net
180 180
181 #endif // NET_QUIC_QUIC_PACKET_CREATOR_H_ 181 #endif // NET_QUIC_QUIC_PACKET_CREATOR_H_
OLDNEW
« no previous file with comments | « net/quic/quic_network_transaction_unittest.cc ('k') | net/quic/quic_packet_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698