| 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_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "net/base/net_export.h" | 12 #include "net/base/net_export.h" |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 | 15 |
| 16 class CertVerifier; | 16 class CertVerifier; |
| 17 class ChannelIDService; | 17 class ChannelIDService; |
| 18 class CookieStore; | 18 class CookieStore; |
| 19 class CTPolicyEnforcer; |
| 20 class CTVerifier; |
| 19 class FtpTransactionFactory; | 21 class FtpTransactionFactory; |
| 20 class HostResolver; | 22 class HostResolver; |
| 21 class HttpAuthHandlerFactory; | 23 class HttpAuthHandlerFactory; |
| 22 class HttpNetworkSession; | 24 class HttpNetworkSession; |
| 23 class HttpServerProperties; | 25 class HttpServerProperties; |
| 24 class HttpTransactionFactory; | 26 class HttpTransactionFactory; |
| 25 class HttpUserAgentSettings; | 27 class HttpUserAgentSettings; |
| 26 class NetLog; | 28 class NetLog; |
| 27 class NetworkDelegate; | 29 class NetworkDelegate; |
| 28 class ProxyDelegate; | 30 class ProxyDelegate; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 57 std::unique_ptr<HttpAuthHandlerFactory> http_auth_handler_factory); | 59 std::unique_ptr<HttpAuthHandlerFactory> http_auth_handler_factory); |
| 58 void set_proxy_service(std::unique_ptr<ProxyService> proxy_service); | 60 void set_proxy_service(std::unique_ptr<ProxyService> proxy_service); |
| 59 void set_ssl_config_service(SSLConfigService* ssl_config_service); | 61 void set_ssl_config_service(SSLConfigService* ssl_config_service); |
| 60 void set_network_delegate(std::unique_ptr<NetworkDelegate> network_delegate); | 62 void set_network_delegate(std::unique_ptr<NetworkDelegate> network_delegate); |
| 61 void set_proxy_delegate(std::unique_ptr<ProxyDelegate> proxy_delegate); | 63 void set_proxy_delegate(std::unique_ptr<ProxyDelegate> proxy_delegate); |
| 62 void set_http_server_properties( | 64 void set_http_server_properties( |
| 63 std::unique_ptr<HttpServerProperties> http_server_properties); | 65 std::unique_ptr<HttpServerProperties> http_server_properties); |
| 64 void set_cookie_store(std::unique_ptr<CookieStore> cookie_store); | 66 void set_cookie_store(std::unique_ptr<CookieStore> cookie_store); |
| 65 void set_transport_security_state( | 67 void set_transport_security_state( |
| 66 std::unique_ptr<TransportSecurityState> transport_security_state); | 68 std::unique_ptr<TransportSecurityState> transport_security_state); |
| 69 void set_cert_transparency_verifier( |
| 70 std::unique_ptr<CTVerifier> cert_transparency_verifier); |
| 71 void set_ct_policy_enforcer( |
| 72 std::unique_ptr<CTPolicyEnforcer> ct_policy_enforcer); |
| 67 void set_http_network_session( | 73 void set_http_network_session( |
| 68 std::unique_ptr<HttpNetworkSession> http_network_session); | 74 std::unique_ptr<HttpNetworkSession> http_network_session); |
| 69 void set_http_transaction_factory( | 75 void set_http_transaction_factory( |
| 70 std::unique_ptr<HttpTransactionFactory> http_transaction_factory); | 76 std::unique_ptr<HttpTransactionFactory> http_transaction_factory); |
| 71 void set_job_factory(std::unique_ptr<URLRequestJobFactory> job_factory); | 77 void set_job_factory(std::unique_ptr<URLRequestJobFactory> job_factory); |
| 72 void set_throttler_manager( | 78 void set_throttler_manager( |
| 73 std::unique_ptr<URLRequestThrottlerManager> throttler_manager); | 79 std::unique_ptr<URLRequestThrottlerManager> throttler_manager); |
| 74 void set_backoff_manager( | 80 void set_backoff_manager( |
| 75 std::unique_ptr<URLRequestBackoffManager> backoff_manager); | 81 std::unique_ptr<URLRequestBackoffManager> backoff_manager); |
| 76 void set_http_user_agent_settings( | 82 void set_http_user_agent_settings( |
| (...skipping 21 matching lines...) Expand all Loading... |
| 98 std::unique_ptr<HttpAuthHandlerFactory> http_auth_handler_factory_; | 104 std::unique_ptr<HttpAuthHandlerFactory> http_auth_handler_factory_; |
| 99 std::unique_ptr<ProxyService> proxy_service_; | 105 std::unique_ptr<ProxyService> proxy_service_; |
| 100 // TODO(willchan): Remove refcounting on these members. | 106 // TODO(willchan): Remove refcounting on these members. |
| 101 scoped_refptr<SSLConfigService> ssl_config_service_; | 107 scoped_refptr<SSLConfigService> ssl_config_service_; |
| 102 std::unique_ptr<NetworkDelegate> network_delegate_; | 108 std::unique_ptr<NetworkDelegate> network_delegate_; |
| 103 std::unique_ptr<ProxyDelegate> proxy_delegate_; | 109 std::unique_ptr<ProxyDelegate> proxy_delegate_; |
| 104 std::unique_ptr<HttpServerProperties> http_server_properties_; | 110 std::unique_ptr<HttpServerProperties> http_server_properties_; |
| 105 std::unique_ptr<HttpUserAgentSettings> http_user_agent_settings_; | 111 std::unique_ptr<HttpUserAgentSettings> http_user_agent_settings_; |
| 106 std::unique_ptr<CookieStore> cookie_store_; | 112 std::unique_ptr<CookieStore> cookie_store_; |
| 107 std::unique_ptr<TransportSecurityState> transport_security_state_; | 113 std::unique_ptr<TransportSecurityState> transport_security_state_; |
| 114 std::unique_ptr<CTVerifier> cert_transparency_verifier_; |
| 115 std::unique_ptr<CTPolicyEnforcer> ct_policy_enforcer_; |
| 108 | 116 |
| 109 // Not actually pointed at by the URLRequestContext, but may be used (but not | 117 // Not actually pointed at by the URLRequestContext, but may be used (but not |
| 110 // owned) by the HttpTransactionFactory. | 118 // owned) by the HttpTransactionFactory. |
| 111 std::unique_ptr<HttpNetworkSession> http_network_session_; | 119 std::unique_ptr<HttpNetworkSession> http_network_session_; |
| 112 | 120 |
| 113 std::unique_ptr<HttpTransactionFactory> http_transaction_factory_; | 121 std::unique_ptr<HttpTransactionFactory> http_transaction_factory_; |
| 114 std::unique_ptr<URLRequestJobFactory> job_factory_; | 122 std::unique_ptr<URLRequestJobFactory> job_factory_; |
| 115 std::unique_ptr<URLRequestThrottlerManager> throttler_manager_; | 123 std::unique_ptr<URLRequestThrottlerManager> throttler_manager_; |
| 116 std::unique_ptr<URLRequestBackoffManager> backoff_manager_; | 124 std::unique_ptr<URLRequestBackoffManager> backoff_manager_; |
| 117 std::unique_ptr<SdchManager> sdch_manager_; | 125 std::unique_ptr<SdchManager> sdch_manager_; |
| 118 | 126 |
| 119 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage); | 127 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage); |
| 120 }; | 128 }; |
| 121 | 129 |
| 122 } // namespace net | 130 } // namespace net |
| 123 | 131 |
| 124 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ | 132 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ |
| OLD | NEW |