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

Unified Diff: net/quic/quic_framer.cc

Issue 1037403004: Land Recent QUIC Changes until 03/27/2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_framer.h ('k') | net/quic/quic_http_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_framer.cc
diff --git a/net/quic/quic_framer.cc b/net/quic/quic_framer.cc
index 7d6ecc250acc13dd71ba1938efe29e4c5079988f..833791096b91f8d7a1c6a60040230be5525e45b0 100644
--- a/net/quic/quic_framer.cc
+++ b/net/quic/quic_framer.cc
@@ -15,6 +15,7 @@
#include "net/quic/quic_data_writer.h"
#include "net/quic/quic_flags.h"
#include "net/quic/quic_socket_address_coder.h"
+#include "net/quic/quic_utils.h"
using base::StringPiece;
using std::map;
@@ -745,7 +746,10 @@ bool QuicFramer::AppendPacketHeader(const QuicPacketHeader& header,
if (header.public_header.version_flag) {
DCHECK_EQ(Perspective::IS_CLIENT, perspective_);
- writer->WriteUInt32(QuicVersionToQuicTag(quic_version_));
+ QuicTag tag = QuicVersionToQuicTag(quic_version_);
+ writer->WriteUInt32(tag);
+ DVLOG(1) << "version = " << quic_version_
+ << ", tag = '" << QuicUtils::TagToString(tag) << "'";
}
if (!AppendPacketSequenceNumber(header.public_header.sequence_number_length,
@@ -1609,13 +1613,6 @@ void QuicFramer::SetEncrypter(EncryptionLevel level,
encrypter_[level].reset(encrypter);
}
-const QuicEncrypter* QuicFramer::encrypter(EncryptionLevel level) const {
- DCHECK_GE(level, 0);
- DCHECK_LT(level, NUM_ENCRYPTION_LEVELS);
- DCHECK(encrypter_[level].get() != nullptr);
- return encrypter_[level].get();
-}
-
QuicEncryptedPacket* QuicFramer::EncryptPacket(
EncryptionLevel level,
QuicPacketSequenceNumber packet_sequence_number,
« no previous file with comments | « net/quic/quic_framer.h ('k') | net/quic/quic_http_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698