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

Unified Diff: net/quic/quic_packet_creator.cc

Issue 331573002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compiler error - use push_back to initialize vectors Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_packet_creator.cc
diff --git a/net/quic/quic_packet_creator.cc b/net/quic/quic_packet_creator.cc
index 0c40a7ce04dcef38514932fd7ba976e77d078eb6..77b39fad766847c0a33ca6de671ee487c1dbaead 100644
--- a/net/quic/quic_packet_creator.cc
+++ b/net/quic/quic_packet_creator.cc
@@ -57,8 +57,7 @@ class QuicRandomBoolSource {
QuicPacketCreator::QuicPacketCreator(QuicConnectionId connection_id,
QuicFramer* framer,
- QuicRandom* random_generator,
- bool is_server)
+ QuicRandom* random_generator)
: connection_id_(connection_id),
encryption_level_(ENCRYPTION_NONE),
framer_(framer),
@@ -66,8 +65,7 @@ QuicPacketCreator::QuicPacketCreator(QuicConnectionId connection_id,
sequence_number_(0),
should_fec_protect_(false),
fec_group_number_(0),
- is_server_(is_server),
- send_version_in_packet_(!is_server),
+ send_version_in_packet_(!framer->is_server()),
max_packet_length_(kDefaultMaxPacketSize),
max_packets_per_fec_group_(0),
connection_id_length_(PACKET_8BYTE_CONNECTION_ID),
@@ -416,7 +414,7 @@ SerializedPacket QuicPacketCreator::SerializeConnectionClose(
QuicEncryptedPacket* QuicPacketCreator::SerializeVersionNegotiationPacket(
const QuicVersionVector& supported_versions) {
- DCHECK(is_server_);
+ DCHECK(framer_->is_server());
QuicPacketPublicHeader header;
header.connection_id = connection_id_;
header.reset_flag = false;
« 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