| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" |
| 11 #include "base/threading/non_thread_safe.h" | 11 #include "base/threading/non_thread_safe.h" |
| 12 #include "net/base/host_port_pair.h" | 12 #include "net/base/host_port_pair.h" |
| 13 #include "net/base/host_resolver.h" | 13 #include "net/base/host_resolver.h" |
| 14 #include "net/base/net_api.h" | 14 #include "net/base/net_export.h" |
| 15 #include "net/base/ssl_client_auth_cache.h" | 15 #include "net/base/ssl_client_auth_cache.h" |
| 16 #include "net/http/http_alternate_protocols.h" | 16 #include "net/http/http_alternate_protocols.h" |
| 17 #include "net/http/http_auth_cache.h" | 17 #include "net/http/http_auth_cache.h" |
| 18 #include "net/http/http_stream_factory.h" | 18 #include "net/http/http_stream_factory.h" |
| 19 #include "net/socket/client_socket_pool_manager.h" | 19 #include "net/socket/client_socket_pool_manager.h" |
| 20 #include "net/spdy/spdy_session_pool.h" | 20 #include "net/spdy/spdy_session_pool.h" |
| 21 #include "net/spdy/spdy_settings_storage.h" | 21 #include "net/spdy/spdy_settings_storage.h" |
| 22 | 22 |
| 23 namespace base { | 23 namespace base { |
| 24 class Value; | 24 class Value; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 35 class HttpNetworkSessionPeer; | 35 class HttpNetworkSessionPeer; |
| 36 class HttpProxyClientSocketPool; | 36 class HttpProxyClientSocketPool; |
| 37 class HttpResponseBodyDrainer; | 37 class HttpResponseBodyDrainer; |
| 38 class NetLog; | 38 class NetLog; |
| 39 class NetworkDelegate; | 39 class NetworkDelegate; |
| 40 class ProxyService; | 40 class ProxyService; |
| 41 class SSLConfigService; | 41 class SSLConfigService; |
| 42 class SSLHostInfoFactory; | 42 class SSLHostInfoFactory; |
| 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_API 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_API Params { | 49 struct NET_EXPORT Params { |
| 50 Params() | 50 Params() |
| 51 : client_socket_factory(NULL), | 51 : client_socket_factory(NULL), |
| 52 host_resolver(NULL), | 52 host_resolver(NULL), |
| 53 cert_verifier(NULL), | 53 cert_verifier(NULL), |
| 54 origin_bound_cert_service(NULL), | 54 origin_bound_cert_service(NULL), |
| 55 dnsrr_resolver(NULL), | 55 dnsrr_resolver(NULL), |
| 56 dns_cert_checker(NULL), | 56 dns_cert_checker(NULL), |
| 57 proxy_service(NULL), | 57 proxy_service(NULL), |
| 58 ssl_host_info_factory(NULL), | 58 ssl_host_info_factory(NULL), |
| 59 ssl_config_service(NULL), | 59 ssl_config_service(NULL), |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 HttpAlternateProtocols alternate_protocols_; | 160 HttpAlternateProtocols alternate_protocols_; |
| 161 ClientSocketPoolManager socket_pool_manager_; | 161 ClientSocketPoolManager socket_pool_manager_; |
| 162 SpdySessionPool spdy_session_pool_; | 162 SpdySessionPool spdy_session_pool_; |
| 163 scoped_ptr<HttpStreamFactory> http_stream_factory_; | 163 scoped_ptr<HttpStreamFactory> http_stream_factory_; |
| 164 std::set<HttpResponseBodyDrainer*> response_drainers_; | 164 std::set<HttpResponseBodyDrainer*> response_drainers_; |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 } // namespace net | 167 } // namespace net |
| 168 | 168 |
| 169 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 169 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |