Commit 0298be9c authored by rch's avatar rch Committed by Commit bot

Add a few more details to the QuicClientSession net log event.

BUG=

Review URL: https://codereview.chromium.org/638373004

Cr-Commit-Position: refs/heads/master@{#299893}
parent d6805d0d
...@@ -92,6 +92,18 @@ void RecordHandshakeState(HandshakeState state) { ...@@ -92,6 +92,18 @@ void RecordHandshakeState(HandshakeState state) {
NUM_HANDSHAKE_STATES); NUM_HANDSHAKE_STATES);
} }
base::Value* NetLogQuicClientSessionCallback(
const QuicServerId* server_id,
bool require_confirmation,
NetLog::LogLevel /* log_level */) {
base::DictionaryValue* dict = new base::DictionaryValue();
dict->SetString("host", server_id->host());
dict->SetInteger("port", server_id->port());
dict->SetBoolean("is_https", server_id->is_https());
dict->SetBoolean("require_confirmation", require_confirmation);
return dict;
}
} // namespace } // namespace
QuicClientSession::StreamRequest::StreamRequest() : stream_(nullptr) {} QuicClientSession::StreamRequest::StreamRequest() : stream_(nullptr) {}
...@@ -174,9 +186,10 @@ void QuicClientSession::InitializeSession( ...@@ -174,9 +186,10 @@ void QuicClientSession::InitializeSession(
crypto_config)); crypto_config));
QuicClientSessionBase::InitializeSession(); QuicClientSessionBase::InitializeSession();
// TODO(rch): pass in full host port proxy pair // TODO(rch): pass in full host port proxy pair
net_log_.BeginEvent( net_log_.BeginEvent(NetLog::TYPE_QUIC_SESSION,
NetLog::TYPE_QUIC_SESSION, base::Bind(NetLogQuicClientSessionCallback,
NetLog::StringCallback("host", &server_id.host())); &server_id,
require_confirmation_));
} }
QuicClientSession::~QuicClientSession() { QuicClientSession::~QuicClientSession() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment