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

Unified Diff: net/http/http_network_session.cc

Issue 11696010: Integrate QUIC info into net-internals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
Index: net/http/http_network_session.cc
diff --git a/net/http/http_network_session.cc b/net/http/http_network_session.cc
index 78bb58e12dc030e92beb92c0353ec24ec942da6c..09ea006842400d08006bc5c00a1ec6e6f0904a71 100644
--- a/net/http/http_network_session.cc
+++ b/net/http/http_network_session.cc
@@ -179,6 +179,16 @@ Value* HttpNetworkSession::SpdySessionPoolInfoToValue() const {
return spdy_session_pool_.SpdySessionPoolInfoToValue();
}
+Value* HttpNetworkSession::QuicInfoToValue() const {
+ base::DictionaryValue* dict = new base::DictionaryValue();
+ dict->Set("sessions", quic_stream_factory_.QuicStreamFactoryInfoToValue());
+ dict->SetBoolean("quic_enabled", params_.origin_port_to_force_quic_on != 0);
+ dict->SetInteger("origin_port_to_force_quic_on",
+ params_.origin_port_to_force_quic_on);
+
+ return dict;
+}
+
void HttpNetworkSession::CloseAllConnections() {
normal_socket_pool_manager_->FlushSocketPoolsWithError(ERR_ABORTED);
websocket_socket_pool_manager_->FlushSocketPoolsWithError(ERR_ABORTED);

Powered by Google App Engine
This is Rietveld 408576698