| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class CertVerifier; | 28 class CertVerifier; |
| 29 class ClientSocketFactory; | 29 class ClientSocketFactory; |
| 30 class HostResolver; | 30 class HostResolver; |
| 31 class HttpAuthHandlerFactory; | 31 class HttpAuthHandlerFactory; |
| 32 class HttpNetworkSessionPeer; | 32 class HttpNetworkSessionPeer; |
| 33 class HttpProxyClientSocketPool; | 33 class HttpProxyClientSocketPool; |
| 34 class HttpResponseBodyDrainer; | 34 class HttpResponseBodyDrainer; |
| 35 class HttpServerProperties; | 35 class HttpServerProperties; |
| 36 class NetLog; | 36 class NetLog; |
| 37 class NetworkDelegate; | 37 class NetworkDelegate; |
| 38 class OriginBoundCertService; | 38 class ServerBoundCertService; |
| 39 class ProxyService; | 39 class ProxyService; |
| 40 class SOCKSClientSocketPool; | 40 class SOCKSClientSocketPool; |
| 41 class SSLClientSocketPool; | 41 class SSLClientSocketPool; |
| 42 class SSLConfigService; | 42 class SSLConfigService; |
| 43 class SSLHostInfoFactory; | 43 class SSLHostInfoFactory; |
| 44 class TransportClientSocketPool; | 44 class TransportClientSocketPool; |
| 45 class TransportSecurityState; | 45 class TransportSecurityState; |
| 46 | 46 |
| 47 // This class holds session objects used by HttpNetworkTransaction objects. | 47 // This class holds session objects used by HttpNetworkTransaction objects. |
| 48 class NET_EXPORT HttpNetworkSession | 48 class NET_EXPORT HttpNetworkSession |
| 49 : public base::RefCounted<HttpNetworkSession>, | 49 : public base::RefCounted<HttpNetworkSession>, |
| 50 NON_EXPORTED_BASE(public base::NonThreadSafe) { | 50 NON_EXPORTED_BASE(public base::NonThreadSafe) { |
| 51 public: | 51 public: |
| 52 struct NET_EXPORT Params { | 52 struct NET_EXPORT Params { |
| 53 Params() | 53 Params() |
| 54 : client_socket_factory(NULL), | 54 : client_socket_factory(NULL), |
| 55 host_resolver(NULL), | 55 host_resolver(NULL), |
| 56 cert_verifier(NULL), | 56 cert_verifier(NULL), |
| 57 origin_bound_cert_service(NULL), | 57 server_bound_cert_service(NULL), |
| 58 transport_security_state(NULL), | 58 transport_security_state(NULL), |
| 59 proxy_service(NULL), | 59 proxy_service(NULL), |
| 60 ssl_host_info_factory(NULL), | 60 ssl_host_info_factory(NULL), |
| 61 ssl_config_service(NULL), | 61 ssl_config_service(NULL), |
| 62 http_auth_handler_factory(NULL), | 62 http_auth_handler_factory(NULL), |
| 63 network_delegate(NULL), | 63 network_delegate(NULL), |
| 64 http_server_properties(NULL), | 64 http_server_properties(NULL), |
| 65 net_log(NULL), | 65 net_log(NULL), |
| 66 force_http_pipelining(false) {} | 66 force_http_pipelining(false) {} |
| 67 | 67 |
| 68 ClientSocketFactory* client_socket_factory; | 68 ClientSocketFactory* client_socket_factory; |
| 69 HostResolver* host_resolver; | 69 HostResolver* host_resolver; |
| 70 CertVerifier* cert_verifier; | 70 CertVerifier* cert_verifier; |
| 71 OriginBoundCertService* origin_bound_cert_service; | 71 ServerBoundCertService* server_bound_cert_service; |
| 72 TransportSecurityState* transport_security_state; | 72 TransportSecurityState* transport_security_state; |
| 73 ProxyService* proxy_service; | 73 ProxyService* proxy_service; |
| 74 SSLHostInfoFactory* ssl_host_info_factory; | 74 SSLHostInfoFactory* ssl_host_info_factory; |
| 75 std::string ssl_session_cache_shard; | 75 std::string ssl_session_cache_shard; |
| 76 SSLConfigService* ssl_config_service; | 76 SSLConfigService* ssl_config_service; |
| 77 HttpAuthHandlerFactory* http_auth_handler_factory; | 77 HttpAuthHandlerFactory* http_auth_handler_factory; |
| 78 NetworkDelegate* network_delegate; | 78 NetworkDelegate* network_delegate; |
| 79 HttpServerProperties* http_server_properties; | 79 HttpServerProperties* http_server_properties; |
| 80 NetLog* net_log; | 80 NetLog* net_log; |
| 81 bool force_http_pipelining; | 81 bool force_http_pipelining; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 SpdySessionPool spdy_session_pool_; | 171 SpdySessionPool spdy_session_pool_; |
| 172 scoped_ptr<HttpStreamFactory> http_stream_factory_; | 172 scoped_ptr<HttpStreamFactory> http_stream_factory_; |
| 173 std::set<HttpResponseBodyDrainer*> response_drainers_; | 173 std::set<HttpResponseBodyDrainer*> response_drainers_; |
| 174 | 174 |
| 175 Params params_; | 175 Params params_; |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 } // namespace net | 178 } // namespace net |
| 179 | 179 |
| 180 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 180 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |