From 1ce7b66b8e871fb39633e8dc7547a649f6d60b53 Mon Sep 17 00:00:00 2001 From: "mmenke@chromium.org" Date: Tue, 12 Oct 2010 20:32:44 +0000 Subject: 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 --- net/http/http_network_session.cc | 4 ++++ net/http/http_network_session.h | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'net/http') 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, 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(); } -- cgit v1.1