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

Unified Diff: net/spdy/spdy_session_pool.cc

Issue 9696045: Expose a spdy session's pooled aliases in the net-internals page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix js style Created 8 years, 9 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/spdy/spdy_session.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session_pool.cc
diff --git a/net/spdy/spdy_session_pool.cc b/net/spdy/spdy_session_pool.cc
index 4b86f4b91b75286690a3f54d8164d0908e7f1f7a..fbfc3c4932a890699bf37d11ba482d3c3e901ede 100644
--- a/net/spdy/spdy_session_pool.cc
+++ b/net/spdy/spdy_session_pool.cc
@@ -222,7 +222,12 @@ Value* SpdySessionPool::SpdySessionPoolInfoToValue() const {
SpdySessionList* sessions = it->second;
for (SpdySessionList::const_iterator session = sessions->begin();
session != sessions->end(); ++session) {
- list->Append(session->get()->GetInfoAsValue());
+ // Only add the session if the key in the map matches the main
+ // host_port_proxy_pair (not an alias).
+ const HostPortProxyPair& key = it->first;
+ const HostPortProxyPair& pair = session->get()->host_port_proxy_pair();
+ if (key.first.Equals(pair.first) && key.second == pair.second)
+ list->Append(session->get()->GetInfoAsValue());
}
}
return list;
« no previous file with comments | « net/spdy/spdy_session.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698