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

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

Issue 355573007: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added NET_EXPORT_PRIVATE for ContainsQuicTag Created 6 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/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "net/quic/crypto/quic_random.h" 9 #include "net/quic/crypto/quic_random.h"
10 #include "net/quic/quic_ack_notifier.h" 10 #include "net/quic/quic_ack_notifier.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 QuicRandom* random_generator) 60 QuicRandom* random_generator)
61 : connection_id_(connection_id), 61 : connection_id_(connection_id),
62 encryption_level_(ENCRYPTION_NONE), 62 encryption_level_(ENCRYPTION_NONE),
63 framer_(framer), 63 framer_(framer),
64 random_bool_source_(new QuicRandomBoolSource(random_generator)), 64 random_bool_source_(new QuicRandomBoolSource(random_generator)),
65 sequence_number_(0), 65 sequence_number_(0),
66 should_fec_protect_(false), 66 should_fec_protect_(false),
67 fec_group_number_(0), 67 fec_group_number_(0),
68 send_version_in_packet_(!framer->is_server()), 68 send_version_in_packet_(!framer->is_server()),
69 max_packet_length_(kDefaultMaxPacketSize), 69 max_packet_length_(kDefaultMaxPacketSize),
70 max_packets_per_fec_group_(0), 70 max_packets_per_fec_group_(kMaxPacketsPerFecGroup),
71 connection_id_length_(PACKET_8BYTE_CONNECTION_ID), 71 connection_id_length_(PACKET_8BYTE_CONNECTION_ID),
72 next_sequence_number_length_(PACKET_1BYTE_SEQUENCE_NUMBER), 72 next_sequence_number_length_(PACKET_1BYTE_SEQUENCE_NUMBER),
73 sequence_number_length_(next_sequence_number_length_), 73 sequence_number_length_(next_sequence_number_length_),
74 packet_size_(0) { 74 packet_size_(0) {
75 framer_->set_fec_builder(this); 75 framer_->set_fec_builder(this);
76 } 76 }
77 77
78 QuicPacketCreator::~QuicPacketCreator() { 78 QuicPacketCreator::~QuicPacketCreator() {
79 } 79 }
80 80
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 if (!is_handshake) { 508 if (!is_handshake) {
509 return; 509 return;
510 } 510 }
511 511
512 QuicPaddingFrame padding; 512 QuicPaddingFrame padding;
513 bool success = AddFrame(QuicFrame(&padding), false); 513 bool success = AddFrame(QuicFrame(&padding), false);
514 DCHECK(success); 514 DCHECK(success);
515 } 515 }
516 516
517 } // namespace net 517 } // 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