summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_session_pool.h
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-09 16:30:42 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-09 16:30:42 +0000
commit564b491ea6d163724307331648bd7b45cdada99e (patch)
tree135aa4b4e6e36e5ace999fb363c20b7913f4061d /net/spdy/spdy_session_pool.h
parentad54c1966904ed5b3d7e71c8f6caf4606c7e6a93 (diff)
downloadchromium_src-564b491ea6d163724307331648bd7b45cdada99e.zip
chromium_src-564b491ea6d163724307331648bd7b45cdada99e.tar.gz
chromium_src-564b491ea6d163724307331648bd7b45cdada99e.tar.bz2
SPDY: Add basic support for Alternate-Protocol header.
Review URL: http://codereview.chromium.org/668197 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41032 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_session_pool.h')
-rw-r--r--net/spdy/spdy_session_pool.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/net/spdy/spdy_session_pool.h b/net/spdy/spdy_session_pool.h
index 8c50577..db4ec42 100644
--- a/net/spdy/spdy_session_pool.h
+++ b/net/spdy/spdy_session_pool.h
@@ -12,6 +12,7 @@
#include "base/basictypes.h"
#include "base/ref_counted.h"
#include "base/scoped_ptr.h"
+#include "net/base/host_port_pair.h"
namespace net {
@@ -19,23 +20,6 @@ class ClientSocketHandle;
class HttpNetworkSession;
class SpdySession;
-// TODO(willchan): Move this to net/base.
-struct HostPortPair {
- HostPortPair() {}
- HostPortPair(const std::string& in_host, uint16 in_port)
- : host(in_host), port(in_port) {}
-
- // Comparator function so this can be placed in a std::map.
- bool operator<(const HostPortPair& other) const {
- if (host != other.host)
- return host < other.host;
- return port < other.port;
- }
-
- std::string host;
- uint16 port;
-};
-
// This is a very simple pool for open SpdySessions.
// TODO(mbelshe): Make this production ready.
class SpdySessionPool : public base::RefCounted<SpdySessionPool> {