diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-03 21:48:34 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-03 21:48:34 +0000 |
commit | 9e1bdd3f9785ed8a84a137c98b781ddaec41b080 (patch) | |
tree | 36d3550cc6d9db08bf3a18fbb42668d440a94b56 /net/spdy/spdy_session_pool.cc | |
parent | 966c57777b2c18313cddd8e36d109665f5377521 (diff) | |
download | chromium_src-9e1bdd3f9785ed8a84a137c98b781ddaec41b080.zip chromium_src-9e1bdd3f9785ed8a84a137c98b781ddaec41b080.tar.gz chromium_src-9e1bdd3f9785ed8a84a137c98b781ddaec41b080.tar.bz2 |
Refactor HttpNetworkSession construction.
Introduce HttpNetworkSession::Params. This should make it easy to add new optionally NULL parameters. I also took this opportunity to eliminate some copy/pastes of TestURLRequestContext and make them use the original. I was also able to remove the need for ClientSocketFactory::GetDefaultFactory() calls and new SpdySessionPool() calls in most places.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6349028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73669 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_session_pool.cc')
-rw-r--r-- | net/spdy/spdy_session_pool.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/spdy/spdy_session_pool.cc b/net/spdy/spdy_session_pool.cc index aa807af..50bb20b 100644 --- a/net/spdy/spdy_session_pool.cc +++ b/net/spdy/spdy_session_pool.cc @@ -114,15 +114,15 @@ void SpdySessionPool::Remove(const scoped_refptr<SpdySession>& session) { RemoveSessionList(session->host_port_proxy_pair()); } -Value* SpdySessionPool::SpdySessionPoolInfoToValue() { +Value* SpdySessionPool::SpdySessionPoolInfoToValue() const { ListValue* list = new ListValue(); SpdySessionsMap::const_iterator spdy_session_pool_it = sessions_.begin(); for (SpdySessionsMap::const_iterator it = sessions_.begin(); - it != sessions_.end(); it++) { + it != sessions_.end(); ++it) { SpdySessionList* sessions = it->second; for (SpdySessionList::const_iterator session = sessions->begin(); - session != sessions->end(); session++) { + session != sessions->end(); ++session) { list->Append(session->get()->GetInfoAsValue()); } } |