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

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

Issue 2802015: Massively simplify the NetworkChangeNotifier infrastructure:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <map> 8 #include <map>
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 10 matching lines...) Expand all
21 #include "net/socket/socks_client_socket_pool.h" 21 #include "net/socket/socks_client_socket_pool.h"
22 #include "net/socket/tcp_client_socket_pool.h" 22 #include "net/socket/tcp_client_socket_pool.h"
23 #include "net/spdy/spdy_settings_storage.h" 23 #include "net/spdy/spdy_settings_storage.h"
24 24
25 namespace net { 25 namespace net {
26 26
27 class ClientSocketFactory; 27 class ClientSocketFactory;
28 class HttpAuthHandlerFactory; 28 class HttpAuthHandlerFactory;
29 class HttpNetworkDelegate; 29 class HttpNetworkDelegate;
30 class HttpNetworkSessionPeer; 30 class HttpNetworkSessionPeer;
31 class NetworkChangeNotifier;
32 class SpdySessionPool; 31 class SpdySessionPool;
33 32
34 // This class holds session objects used by HttpNetworkTransaction objects. 33 // This class holds session objects used by HttpNetworkTransaction objects.
35 class HttpNetworkSession : public base::RefCounted<HttpNetworkSession> { 34 class HttpNetworkSession : public base::RefCounted<HttpNetworkSession> {
36 public: 35 public:
37 HttpNetworkSession( 36 HttpNetworkSession(
38 NetworkChangeNotifier* network_change_notifier,
39 HostResolver* host_resolver, 37 HostResolver* host_resolver,
40 ProxyService* proxy_service, 38 ProxyService* proxy_service,
41 ClientSocketFactory* client_socket_factory, 39 ClientSocketFactory* client_socket_factory,
42 SSLConfigService* ssl_config_service, 40 SSLConfigService* ssl_config_service,
43 SpdySessionPool* spdy_session_pool, 41 SpdySessionPool* spdy_session_pool,
44 HttpAuthHandlerFactory* http_auth_handler_factory, 42 HttpAuthHandlerFactory* http_auth_handler_factory,
45 HttpNetworkDelegate* network_delegate, 43 HttpNetworkDelegate* network_delegate,
46 NetLog* net_log); 44 NetLog* net_log);
47 45
48 HttpAuthCache* auth_cache() { return &auth_cache_; } 46 HttpAuthCache* auth_cache() { return &auth_cache_; }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 SOCKSSocketPoolMap; 104 SOCKSSocketPoolMap;
107 105
108 friend class base::RefCounted<HttpNetworkSession>; 106 friend class base::RefCounted<HttpNetworkSession>;
109 friend class HttpNetworkSessionPeer; 107 friend class HttpNetworkSessionPeer;
110 108
111 ~HttpNetworkSession(); 109 ~HttpNetworkSession();
112 110
113 HttpAuthCache auth_cache_; 111 HttpAuthCache auth_cache_;
114 SSLClientAuthCache ssl_client_auth_cache_; 112 SSLClientAuthCache ssl_client_auth_cache_;
115 HttpAlternateProtocols alternate_protocols_; 113 HttpAlternateProtocols alternate_protocols_;
116 NetworkChangeNotifier* const network_change_notifier_;
117 scoped_refptr<ClientSocketPoolHistograms> tcp_pool_histograms_; 114 scoped_refptr<ClientSocketPoolHistograms> tcp_pool_histograms_;
118 scoped_refptr<ClientSocketPoolHistograms> http_proxy_pool_histograms_; 115 scoped_refptr<ClientSocketPoolHistograms> http_proxy_pool_histograms_;
119 scoped_refptr<ClientSocketPoolHistograms> tcp_for_socks_pool_histograms_; 116 scoped_refptr<ClientSocketPoolHistograms> tcp_for_socks_pool_histograms_;
120 scoped_refptr<ClientSocketPoolHistograms> socks_pool_histograms_; 117 scoped_refptr<ClientSocketPoolHistograms> socks_pool_histograms_;
121 scoped_refptr<TCPClientSocketPool> tcp_socket_pool_; 118 scoped_refptr<TCPClientSocketPool> tcp_socket_pool_;
122 HTTPProxySocketPoolMap http_proxy_socket_pool_; 119 HTTPProxySocketPoolMap http_proxy_socket_pool_;
123 SOCKSSocketPoolMap socks_socket_pool_; 120 SOCKSSocketPoolMap socks_socket_pool_;
124 ClientSocketFactory* socket_factory_; 121 ClientSocketFactory* socket_factory_;
125 scoped_refptr<HostResolver> host_resolver_; 122 scoped_refptr<HostResolver> host_resolver_;
126 scoped_refptr<ProxyService> proxy_service_; 123 scoped_refptr<ProxyService> proxy_service_;
127 scoped_refptr<SSLConfigService> ssl_config_service_; 124 scoped_refptr<SSLConfigService> ssl_config_service_;
128 scoped_refptr<SpdySessionPool> spdy_session_pool_; 125 scoped_refptr<SpdySessionPool> spdy_session_pool_;
129 HttpAuthHandlerFactory* http_auth_handler_factory_; 126 HttpAuthHandlerFactory* http_auth_handler_factory_;
130 HttpNetworkDelegate* const network_delegate_; 127 HttpNetworkDelegate* const network_delegate_;
131 NetLog* net_log_; 128 NetLog* net_log_;
132 SpdySettingsStorage spdy_settings_; 129 SpdySettingsStorage spdy_settings_;
133 }; 130 };
134 131
135 } // namespace net 132 } // namespace net
136 133
137 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 134 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698