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

Side by Side Diff: net/http/http_network_session.h

Issue 165430: Reference count ProxyService.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Sync Created 11 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/http/http_network_layer_unittest.cc ('k') | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_
6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_ 6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_
7 7
8 #include "base/ref_counted.h" 8 #include "base/ref_counted.h"
9 #include "net/base/host_resolver.h"
9 #include "net/base/ssl_client_auth_cache.h" 10 #include "net/base/ssl_client_auth_cache.h"
10 #include "net/base/ssl_config_service.h" 11 #include "net/base/ssl_config_service.h"
11 #include "net/http/http_auth_cache.h" 12 #include "net/http/http_auth_cache.h"
13 #include "net/proxy/proxy_service.h"
12 #include "net/socket/tcp_client_socket_pool.h" 14 #include "net/socket/tcp_client_socket_pool.h"
13 15
14 namespace net { 16 namespace net {
15 17
16 class ClientSocketFactory; 18 class ClientSocketFactory;
17 class HostResolver;
18 class ProxyService;
19 19
20 // This class holds session objects used by HttpNetworkTransaction objects. 20 // This class holds session objects used by HttpNetworkTransaction objects.
21 class HttpNetworkSession : public base::RefCounted<HttpNetworkSession> { 21 class HttpNetworkSession : public base::RefCounted<HttpNetworkSession> {
22 public: 22 public:
23 HttpNetworkSession(HostResolver* host_resolver, ProxyService* proxy_service, 23 HttpNetworkSession(HostResolver* host_resolver, ProxyService* proxy_service,
24 ClientSocketFactory* client_socket_factory); 24 ClientSocketFactory* client_socket_factory);
25 25
26 HttpAuthCache* auth_cache() { return &auth_cache_; } 26 HttpAuthCache* auth_cache() { return &auth_cache_; }
27 SSLClientAuthCache* ssl_client_auth_cache() { 27 SSLClientAuthCache* ssl_client_auth_cache() {
28 return &ssl_client_auth_cache_; 28 return &ssl_client_auth_cache_;
(...skipping 15 matching lines...) Expand all
44 44
45 // Default to allow up to 6 connections per host. Experiment and tuning may 45 // Default to allow up to 6 connections per host. Experiment and tuning may
46 // try other values (greater than 0). Too large may cause many problems, such 46 // try other values (greater than 0). Too large may cause many problems, such
47 // as home routers blocking the connections!?!? 47 // as home routers blocking the connections!?!?
48 static int max_sockets_per_group_; 48 static int max_sockets_per_group_;
49 49
50 HttpAuthCache auth_cache_; 50 HttpAuthCache auth_cache_;
51 SSLClientAuthCache ssl_client_auth_cache_; 51 SSLClientAuthCache ssl_client_auth_cache_;
52 scoped_refptr<ClientSocketPool> connection_pool_; 52 scoped_refptr<ClientSocketPool> connection_pool_;
53 scoped_refptr<HostResolver> host_resolver_; 53 scoped_refptr<HostResolver> host_resolver_;
54 ProxyService* proxy_service_; 54 scoped_refptr<ProxyService> proxy_service_;
55 #if defined(OS_WIN) 55 #if defined(OS_WIN)
56 // TODO(port): Port the SSLConfigService class to Linux and Mac OS X. 56 // TODO(port): Port the SSLConfigService class to Linux and Mac OS X.
57 SSLConfigService ssl_config_service_; 57 SSLConfigService ssl_config_service_;
58 #endif 58 #endif
59 }; 59 };
60 60
61 } // namespace net 61 } // namespace net
62 62
63 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 63 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW
« no previous file with comments | « net/http/http_network_layer_unittest.cc ('k') | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698