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

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: Fix tests Created 7 years, 12 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/http/http_network_session.h ('k') | net/quic/quic_client_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_session.cc
diff --git a/net/http/http_network_session.cc b/net/http/http_network_session.cc
index 9128047c558567c11b3287abb33443ab788df909..b12a1eed1095c91e6638dc6d6631a2ad002d3ec8 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);
« no previous file with comments | « net/http/http_network_session.h ('k') | net/quic/quic_client_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698