summaryrefslogtreecommitdiffstats
path: root/net/http/http_network_session.h
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-04 01:03:10 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-04 01:03:10 +0000
commitd1eda9325775891900b0ed740b2faffbe522fc20 (patch)
treee34789a2b48016864d86674b22f84cf7da33fd61 /net/http/http_network_session.h
parentebca346eb646c5b714f4efb4f383cb538780f1ae (diff)
downloadchromium_src-d1eda9325775891900b0ed740b2faffbe522fc20.zip
chromium_src-d1eda9325775891900b0ed740b2faffbe522fc20.tar.gz
chromium_src-d1eda9325775891900b0ed740b2faffbe522fc20.tar.bz2
Flip: FlipSessionPool changes.
(1) Move it into the HttpNetworkSession so that HttpNetworkTransaction can access it. This is in anticipation of switching HTTP/HTTPS connections over to FLIP. (2) Add some more functionality to FlipSessionPool, allowing HttpNetworkTransactions to check for the existence of other, reusable FlipSessions. Review URL: http://codereview.chromium.org/348066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30909 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_network_session.h')
-rw-r--r--net/http/http_network_session.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/http/http_network_session.h b/net/http/http_network_session.h
index 664d277..b5786de 100644
--- a/net/http/http_network_session.h
+++ b/net/http/http_network_session.h
@@ -16,13 +16,16 @@
namespace net {
class ClientSocketFactory;
+class FlipSessionPool;
// This class holds session objects used by HttpNetworkTransaction objects.
class HttpNetworkSession : public base::RefCounted<HttpNetworkSession> {
public:
HttpNetworkSession(HostResolver* host_resolver, ProxyService* proxy_service,
ClientSocketFactory* client_socket_factory,
- SSLConfigService* ssl_config_service);
+ SSLConfigService* ssl_config_service,
+ FlipSessionPool* flip_session_pool);
+ ~HttpNetworkSession();
HttpAuthCache* auth_cache() { return &auth_cache_; }
SSLClientAuthCache* ssl_client_auth_cache() {
@@ -36,6 +39,7 @@ class HttpNetworkSession : public base::RefCounted<HttpNetworkSession> {
HostResolver* host_resolver() { return host_resolver_; }
ProxyService* proxy_service() { return proxy_service_; }
SSLConfigService* ssl_config_service() { return ssl_config_service_; }
+ FlipSessionPool* flip_session_pool() { return flip_session_pool_; }
static void set_max_sockets_per_group(int socket_count);
@@ -57,6 +61,7 @@ class HttpNetworkSession : public base::RefCounted<HttpNetworkSession> {
scoped_refptr<HostResolver> host_resolver_;
scoped_refptr<ProxyService> proxy_service_;
scoped_refptr<SSLConfigService> ssl_config_service_;
+ scoped_refptr<FlipSessionPool> flip_session_pool_;
};
} // namespace net