| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 // the lifetime of HttpNetworkLayer. | 32 // the lifetime of HttpNetworkLayer. |
| 33 HttpNetworkLayer(ClientSocketFactory* socket_factory, | 33 HttpNetworkLayer(ClientSocketFactory* socket_factory, |
| 34 HostResolver* host_resolver, | 34 HostResolver* host_resolver, |
| 35 ProxyService* proxy_service, | 35 ProxyService* proxy_service, |
| 36 SSLConfigService* ssl_config_service, | 36 SSLConfigService* ssl_config_service, |
| 37 HttpAuthHandlerFactory* http_auth_handler_factory, | 37 HttpAuthHandlerFactory* http_auth_handler_factory, |
| 38 HttpNetworkDelegate* network_delegate, | 38 HttpNetworkDelegate* network_delegate, |
| 39 NetLog* net_log); | 39 NetLog* net_log); |
| 40 // Construct a HttpNetworkLayer with an existing HttpNetworkSession which | 40 // Construct a HttpNetworkLayer with an existing HttpNetworkSession which |
| 41 // contains a valid ProxyService. | 41 // contains a valid ProxyService. |
| 42 HttpNetworkLayer( |
| 43 ClientSocketFactory* socket_factory, |
| 44 HostResolver* host_resolver, |
| 45 ProxyService* proxy_service, |
| 46 SSLConfigService* ssl_config_service, |
| 47 SpdySessionPool* spdy_session_pool, |
| 48 HttpAuthHandlerFactory* http_auth_handler_factory, |
| 49 HttpNetworkDelegate* network_delegate, |
| 50 NetLog* net_log); |
| 51 |
| 42 explicit HttpNetworkLayer(HttpNetworkSession* session); | 52 explicit HttpNetworkLayer(HttpNetworkSession* session); |
| 43 ~HttpNetworkLayer(); | 53 ~HttpNetworkLayer(); |
| 44 | 54 |
| 45 // This function hides the details of how a network layer gets instantiated | 55 // This function hides the details of how a network layer gets instantiated |
| 46 // and allows other implementations to be substituted. | 56 // and allows other implementations to be substituted. |
| 47 static HttpTransactionFactory* CreateFactory( | 57 static HttpTransactionFactory* CreateFactory( |
| 48 HostResolver* host_resolver, | 58 HostResolver* host_resolver, |
| 49 ProxyService* proxy_service, | 59 ProxyService* proxy_service, |
| 50 SSLConfigService* ssl_config_service, | 60 SSLConfigService* ssl_config_service, |
| 51 HttpAuthHandlerFactory* http_auth_handler_factory, | 61 HttpAuthHandlerFactory* http_auth_handler_factory, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 HttpAuthHandlerFactory* http_auth_handler_factory_; | 103 HttpAuthHandlerFactory* http_auth_handler_factory_; |
| 94 HttpNetworkDelegate* network_delegate_; | 104 HttpNetworkDelegate* network_delegate_; |
| 95 NetLog* net_log_; | 105 NetLog* net_log_; |
| 96 | 106 |
| 97 bool suspended_; | 107 bool suspended_; |
| 98 }; | 108 }; |
| 99 | 109 |
| 100 } // namespace net | 110 } // namespace net |
| 101 | 111 |
| 102 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_ | 112 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_ |
| OLD | NEW |