OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <set> | 8 #include <set> |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/threading/non_thread_safe.h" | 10 #include "base/threading/non_thread_safe.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 class SSLConfigService; | 40 class SSLConfigService; |
41 class TransportClientSocketPool; | 41 class TransportClientSocketPool; |
42 class TransportSecurityState; | 42 class TransportSecurityState; |
43 | 43 |
44 // This class holds session objects used by HttpNetworkTransaction objects. | 44 // This class holds session objects used by HttpNetworkTransaction objects. |
45 class NET_EXPORT HttpNetworkSession | 45 class NET_EXPORT HttpNetworkSession |
46 : public base::RefCounted<HttpNetworkSession>, | 46 : public base::RefCounted<HttpNetworkSession>, |
47 NON_EXPORTED_BASE(public base::NonThreadSafe) { | 47 NON_EXPORTED_BASE(public base::NonThreadSafe) { |
48 public: | 48 public: |
49 struct NET_EXPORT Params { | 49 struct NET_EXPORT Params { |
50 Params() | 50 Params(); |
51 : client_socket_factory(NULL), | |
52 host_resolver(NULL), | |
53 cert_verifier(NULL), | |
54 server_bound_cert_service(NULL), | |
55 transport_security_state(NULL), | |
56 proxy_service(NULL), | |
57 ssl_config_service(NULL), | |
58 http_auth_handler_factory(NULL), | |
59 network_delegate(NULL), | |
60 http_server_properties(NULL), | |
61 net_log(NULL), | |
62 force_http_pipelining(false) {} | |
63 | 51 |
64 ClientSocketFactory* client_socket_factory; | 52 ClientSocketFactory* client_socket_factory; |
65 HostResolver* host_resolver; | 53 HostResolver* host_resolver; |
66 CertVerifier* cert_verifier; | 54 CertVerifier* cert_verifier; |
67 ServerBoundCertService* server_bound_cert_service; | 55 ServerBoundCertService* server_bound_cert_service; |
68 TransportSecurityState* transport_security_state; | 56 TransportSecurityState* transport_security_state; |
69 ProxyService* proxy_service; | 57 ProxyService* proxy_service; |
70 std::string ssl_session_cache_shard; | 58 std::string ssl_session_cache_shard; |
71 SSLConfigService* ssl_config_service; | 59 SSLConfigService* ssl_config_service; |
72 HttpAuthHandlerFactory* http_auth_handler_factory; | 60 HttpAuthHandlerFactory* http_auth_handler_factory; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 SpdySessionPool spdy_session_pool_; | 156 SpdySessionPool spdy_session_pool_; |
169 scoped_ptr<HttpStreamFactory> http_stream_factory_; | 157 scoped_ptr<HttpStreamFactory> http_stream_factory_; |
170 std::set<HttpResponseBodyDrainer*> response_drainers_; | 158 std::set<HttpResponseBodyDrainer*> response_drainers_; |
171 | 159 |
172 Params params_; | 160 Params params_; |
173 }; | 161 }; |
174 | 162 |
175 } // namespace net | 163 } // namespace net |
176 | 164 |
177 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 165 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
OLD | NEW |