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

Unified Diff: net/quic/quic_connection.cc

Issue 514043002: Log the quic version for internal server tracing. Not used in production. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Optimize_QuicUnackedPacketMap_74054196
Patch Set: Created 6 years, 4 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_connection.h ('k') | net/quic/quic_connection_logger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection.cc
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
index a9ad334afa64dafb62b1afc9d5d72aae029e8380..3ca6d9945efbefa49281e4eede2006e3d2f6979d 100644
--- a/net/quic/quic_connection.cc
+++ b/net/quic/quic_connection.cc
@@ -365,6 +365,9 @@ bool QuicConnection::OnProtocolVersionMismatch(QuicVersion received_version) {
version_negotiation_state_ = NEGOTIATED_VERSION;
visitor_->OnSuccessfulVersionNegotiation(received_version);
+ if (debug_visitor_.get() != NULL) {
+ debug_visitor_->OnSuccessfulVersionNegotiation(received_version);
+ }
DVLOG(1) << ENDPOINT << "version negotiated " << received_version;
// Store the new version.
@@ -491,6 +494,9 @@ bool QuicConnection::OnPacketHeader(const QuicPacketHeader& header) {
DCHECK_EQ(header.public_header.versions[0], version());
version_negotiation_state_ = NEGOTIATED_VERSION;
visitor_->OnSuccessfulVersionNegotiation(version());
+ if (debug_visitor_.get() != NULL) {
+ debug_visitor_->OnSuccessfulVersionNegotiation(version());
+ }
}
} else {
DCHECK(!header.public_header.version_flag);
@@ -499,6 +505,9 @@ bool QuicConnection::OnPacketHeader(const QuicPacketHeader& header) {
packet_generator_.StopSendingVersion();
version_negotiation_state_ = NEGOTIATED_VERSION;
visitor_->OnSuccessfulVersionNegotiation(version());
+ if (debug_visitor_.get() != NULL) {
+ debug_visitor_->OnSuccessfulVersionNegotiation(version());
+ }
}
}
« no previous file with comments | « net/quic/quic_connection.h ('k') | net/quic/quic_connection_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698