OLD | NEW |
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_LAYER_H_ | 5 #ifndef NET_HTTP_HTTP_NETWORK_LAYER_H_ |
6 #define NET_HTTP_HTTP_NETWORK_LAYER_H_ | 6 #define NET_HTTP_HTTP_NETWORK_LAYER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
12 #include "net/http/http_transaction_factory.h" | 12 #include "net/http/http_transaction_factory.h" |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 | 15 |
16 class ClientSocketFactory; | 16 class ClientSocketFactory; |
17 class HostResolver; | 17 class HostResolver; |
18 class HttpAuthHandlerFactory; | 18 class HttpAuthHandlerFactory; |
19 class HttpNetworkSession; | 19 class HttpNetworkSession; |
20 class NetworkChangeNotifier; | 20 class NetworkChangeNotifier; |
21 class ProxyInfo; | 21 class ProxyInfo; |
22 class ProxyService; | 22 class ProxyService; |
23 class SpdySessionPool; | |
24 class SSLConfigService; | 23 class SSLConfigService; |
25 | 24 |
26 class HttpNetworkLayer : public HttpTransactionFactory { | 25 class HttpNetworkLayer : public HttpTransactionFactory { |
27 public: | 26 public: |
28 // |socket_factory|, |network_change_notifier|, |proxy_service| and | 27 // |socket_factory|, |network_change_notifier|, |proxy_service| and |
29 // |host_resolver| must remain valid for the lifetime of HttpNetworkLayer. | 28 // |host_resolver| must remain valid for the lifetime of HttpNetworkLayer. |
30 HttpNetworkLayer(ClientSocketFactory* socket_factory, | 29 HttpNetworkLayer(ClientSocketFactory* socket_factory, |
31 NetworkChangeNotifier* network_change_notifier, | 30 NetworkChangeNotifier* network_change_notifier, |
32 HostResolver* host_resolver, ProxyService* proxy_service, | 31 HostResolver* host_resolver, ProxyService* proxy_service, |
33 SSLConfigService* ssl_config_service, | 32 SSLConfigService* ssl_config_service, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 74 |
76 // The host resolver and proxy service that will be used when lazily | 75 // The host resolver and proxy service that will be used when lazily |
77 // creating |session_|. | 76 // creating |session_|. |
78 scoped_refptr<HostResolver> host_resolver_; | 77 scoped_refptr<HostResolver> host_resolver_; |
79 scoped_refptr<ProxyService> proxy_service_; | 78 scoped_refptr<ProxyService> proxy_service_; |
80 | 79 |
81 // The SSL config service being used for the session. | 80 // The SSL config service being used for the session. |
82 scoped_refptr<SSLConfigService> ssl_config_service_; | 81 scoped_refptr<SSLConfigService> ssl_config_service_; |
83 | 82 |
84 scoped_refptr<HttpNetworkSession> session_; | 83 scoped_refptr<HttpNetworkSession> session_; |
85 scoped_refptr<SpdySessionPool> spdy_session_pool_; | |
86 | 84 |
87 HttpAuthHandlerFactory* http_auth_handler_factory_; | 85 HttpAuthHandlerFactory* http_auth_handler_factory_; |
88 | 86 |
89 bool suspended_; | 87 bool suspended_; |
90 static bool force_spdy_; | 88 static bool force_spdy_; |
91 }; | 89 }; |
92 | 90 |
93 } // namespace net | 91 } // namespace net |
94 | 92 |
95 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_ | 93 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_ |
OLD | NEW |