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

Unified Diff: net/spdy/spdy_session_pool.h

Issue 7349023: Changed SPDY's ip connection pooling logic to only add the used IP, (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
Index: net/spdy/spdy_session_pool.h
===================================================================
--- net/spdy/spdy_session_pool.h (revision 92397)
+++ net/spdy/spdy_session_pool.h (working copy)
@@ -130,7 +130,14 @@
private:
friend class SpdySessionPoolPeer; // For testing.
friend class SpdyNetworkTransactionTest; // For testing.
+ friend class SpdySessionTest; // For testing.
willchan no longer on Chromium 2011/07/17 01:23:45 Rather than add all of these friends, can you just
ramant (doing other things) 2011/07/17 08:12:30 Done.
FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdateOverflow);
+ FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, GoAway);
+ FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, OnSettings);
+ FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, CancelPendingCreateStream);
+ FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SendSettingsOnNewSession);
+ FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, IPPoolingTest);
+ FRIEND_TEST_ALL_PREFIXES(SSLClientSocketPoolTest, IPPooling);
typedef std::list<scoped_refptr<SpdySession> > SpdySessionList;
typedef std::map<HostPortProxyPair, SpdySessionList*> SpdySessionsMap;
@@ -163,8 +170,9 @@
bool LookupAddresses(const HostPortProxyPair& pair,
AddressList* addresses) const;
- // Add a set of |addresses| as IP-equivalent addresses for |pair|.
- void AddAliases(const AddressList& addresses, const HostPortProxyPair& pair);
+ // Add the addresses from LookupAddresses for |pair| as IP-equivalent
+ // addresses for |pair|. Used by unit tests only.
willchan no longer on Chromium 2011/07/17 01:23:45 This seems a bit weird, since for LookupAddresses(
ramant (doing other things) 2011/07/17 08:12:30 Done.
+ void AddAliases(const HostPortProxyPair& pair);
// Remove all aliases for |pair| from the aliases table.
void RemoveAliases(const HostPortProxyPair& pair);

Powered by Google App Engine
This is Rietveld 408576698