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

Unified Diff: net/quic/quic_client_session.cc

Issue 429453003: Create a visitor which can allow using both a trace... visitor and the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Use_1350_byte_packet_71837432
Patch Set: fixed comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_client_session.h ('k') | net/quic/quic_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_client_session.cc
diff --git a/net/quic/quic_client_session.cc b/net/quic/quic_client_session.cc
index 0b63168da45dcc5246cbb42d2bc645f7fb233606..00f4d6fb5626bb499a94807ff8f341ea98da3329 100644
--- a/net/quic/quic_client_session.cc
+++ b/net/quic/quic_client_session.cc
@@ -156,7 +156,7 @@ QuicClientSession::QuicClientSession(
num_total_streams_(0),
task_runner_(task_runner),
net_log_(BoundNetLog::Make(net_log, NetLog::SOURCE_QUIC_SESSION)),
- logger_(net_log_),
+ logger_(new QuicConnectionLogger(net_log_)),
num_packets_read_(0),
going_away_(false),
weak_factory_(this) {
@@ -168,7 +168,7 @@ QuicClientSession::QuicClientSession(
new ProofVerifyContextChromium(net_log_),
crypto_config));
- connection->set_debug_visitor(&logger_);
+ connection->set_debug_visitor(logger_);
// TODO(rch): pass in full host port proxy pair
net_log_.BeginEvent(
NetLog::TYPE_QUIC_SESSION,
@@ -516,7 +516,7 @@ QuicDataStream* QuicClientSession::CreateIncomingDataStream(
void QuicClientSession::CloseStream(QuicStreamId stream_id) {
ReliableQuicStream* stream = GetStream(stream_id);
if (stream) {
- logger_.UpdateReceivedFrameCounts(
+ logger_->UpdateReceivedFrameCounts(
stream_id, stream->num_frames_received(),
stream->num_duplicate_frames_received());
}
@@ -572,18 +572,18 @@ void QuicClientSession::OnCryptoHandshakeEvent(CryptoHandshakeEvent event) {
void QuicClientSession::OnCryptoHandshakeMessageSent(
const CryptoHandshakeMessage& message) {
- logger_.OnCryptoHandshakeMessageSent(message);
+ logger_->OnCryptoHandshakeMessageSent(message);
}
void QuicClientSession::OnCryptoHandshakeMessageReceived(
const CryptoHandshakeMessage& message) {
- logger_.OnCryptoHandshakeMessageReceived(message);
+ logger_->OnCryptoHandshakeMessageReceived(message);
}
void QuicClientSession::OnConnectionClosed(QuicErrorCode error,
bool from_peer) {
DCHECK(!connection()->connected());
- logger_.OnConnectionClosed(error, from_peer);
+ logger_->OnConnectionClosed(error, from_peer);
if (from_peer) {
UMA_HISTOGRAM_SPARSE_SLOWLY(
"Net.QuicSession.ConnectionCloseErrorCodeServer", error);
@@ -638,7 +638,7 @@ void QuicClientSession::OnConnectionClosed(QuicErrorCode error,
void QuicClientSession::OnSuccessfulVersionNegotiation(
const QuicVersion& version) {
- logger_.OnSuccessfulVersionNegotiation(version);
+ logger_->OnSuccessfulVersionNegotiation(version);
QuicSession::OnSuccessfulVersionNegotiation(version);
}
« no previous file with comments | « net/quic/quic_client_session.h ('k') | net/quic/quic_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698