summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authormmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-12 20:32:44 +0000
committermmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-12 20:32:44 +0000
commit1ce7b66b8e871fb39633e8dc7547a649f6d60b53 (patch)
treeef72863fccd02a85a6ae864372bf75ba57d71f9b /net/http
parent0834a4b75e40256a08e4a0b1bacab2e8b69da665 (diff)
downloadchromium_src-1ce7b66b8e871fb39633e8dc7547a649f6d60b53.zip
chromium_src-1ce7b66b8e871fb39633e8dc7547a649f6d60b53.tar.gz
chromium_src-1ce7b66b8e871fb39633e8dc7547a649f6d60b53.tar.bz2
Render SpdySessionPools on the Data tab and on a new
net-internals tab, with links to the corresponding sources on the events tab. Includes a minor cleanup or two relating to unneeded/unused code/headers for the rendering of SocketPools. BUG=58034 TEST=manual Review URL: http://codereview.chromium.org/3565015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62329 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_network_session.cc4
-rw-r--r--net/http/http_network_session.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/net/http/http_network_session.cc b/net/http/http_network_session.cc
index 4613629..056feaf 100644
--- a/net/http/http_network_session.cc
+++ b/net/http/http_network_session.cc
@@ -64,4 +64,8 @@ void HttpNetworkSession::RemoveResponseDrainer(
response_drainers_.erase(drainer);
}
+Value* HttpNetworkSession::SpdySessionPoolInfoToValue() const {
+ return spdy_session_pool_->SpdySessionPoolInfoToValue();
+}
+
} // namespace net
diff --git a/net/http/http_network_session.h b/net/http/http_network_session.h
index 0cfe08f..e23ecd6 100644
--- a/net/http/http_network_session.h
+++ b/net/http/http_network_session.h
@@ -126,6 +126,10 @@ class HttpNetworkSession : public base::RefCounted<HttpNetworkSession>,
return socket_pool_manager_.SocketPoolInfoToValue();
}
+ // Creates a Value summary of the state of the SPDY sessions. The caller is
+ // responsible for deleting the returned value.
+ Value* SpdySessionPoolInfoToValue() const;
+
void FlushSocketPools() {
socket_pool_manager_.FlushSocketPools();
}