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

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

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_packet_creator.h ('k') | net/quic/quic_packet_creator_test.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 #include "net/quic/quic_packet_creator.h" 5 #include "net/quic/quic_packet_creator.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/quic/crypto/quic_random.h" 8 #include "net/quic/crypto/quic_random.h"
9 #include "net/quic/quic_fec_group.h" 9 #include "net/quic/quic_fec_group.h"
10 #include "net/quic/quic_utils.h" 10 #include "net/quic/quic_utils.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 } 206 }
207 207
208 SerializedPacket QuicPacketCreator::SerializeConnectionClose( 208 SerializedPacket QuicPacketCreator::SerializeConnectionClose(
209 QuicConnectionCloseFrame* close_frame) { 209 QuicConnectionCloseFrame* close_frame) {
210 QuicFrames frames; 210 QuicFrames frames;
211 frames.push_back(QuicFrame(close_frame)); 211 frames.push_back(QuicFrame(close_frame));
212 return SerializeAllFrames(frames); 212 return SerializeAllFrames(frames);
213 } 213 }
214 214
215 QuicEncryptedPacket* QuicPacketCreator::SerializeVersionNegotiationPacket( 215 QuicEncryptedPacket* QuicPacketCreator::SerializeVersionNegotiationPacket(
216 const QuicTagVector& supported_versions) { 216 const QuicVersionVector& supported_versions) {
217 DCHECK(is_server_); 217 DCHECK(is_server_);
218 QuicPacketPublicHeader header; 218 QuicPacketPublicHeader header;
219 header.guid = guid_; 219 header.guid = guid_;
220 header.reset_flag = false; 220 header.reset_flag = false;
221 header.version_flag = true; 221 header.version_flag = true;
222 header.versions = supported_versions; 222 header.versions = supported_versions;
223 QuicEncryptedPacket* encrypted = 223 QuicEncryptedPacket* encrypted =
224 framer_->ConstructVersionNegotiationPacket(header, supported_versions); 224 framer_->ConstructVersionNegotiationPacket(header, supported_versions);
225 DCHECK(encrypted); 225 DCHECK(encrypted);
226 DCHECK_GE(options_.max_packet_length, encrypted->length()); 226 DCHECK_GE(options_.max_packet_length, encrypted->length());
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 queued_frames_.push_back( 280 queued_frames_.push_back(
281 queued_retransmittable_frames_->AddNonStreamFrame(frame)); 281 queued_retransmittable_frames_->AddNonStreamFrame(frame));
282 } 282 }
283 } else { 283 } else {
284 queued_frames_.push_back(frame); 284 queued_frames_.push_back(frame);
285 } 285 }
286 return true; 286 return true;
287 } 287 }
288 288
289 } // namespace net 289 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_packet_creator.h ('k') | net/quic/quic_packet_creator_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698