| 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 // This class represents contextual information (cookies, cache, etc.) | 5 // This class represents contextual information (cookies, cache, etc.) |
| 6 // that's useful when processing resource requests. | 6 // that's useful when processing resource requests. |
| 7 // The class is reference-counted so that it can be cleaned up after any | 7 // The class is reference-counted so that it can be cleaned up after any |
| 8 // requests that are using it have been completed. | 8 // requests that are using it have been completed. |
| 9 | 9 |
| 10 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ | 10 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "net/http/http_server_properties.h" | 24 #include "net/http/http_server_properties.h" |
| 25 #include "net/http/transport_security_state.h" | 25 #include "net/http/transport_security_state.h" |
| 26 #include "net/log/net_log.h" | 26 #include "net/log/net_log.h" |
| 27 #include "net/ssl/ssl_config_service.h" | 27 #include "net/ssl/ssl_config_service.h" |
| 28 #include "net/url_request/url_request.h" | 28 #include "net/url_request/url_request.h" |
| 29 | 29 |
| 30 namespace net { | 30 namespace net { |
| 31 class CertVerifier; | 31 class CertVerifier; |
| 32 class ChannelIDService; | 32 class ChannelIDService; |
| 33 class CookieStore; | 33 class CookieStore; |
| 34 class CTPolicyEnforcer; |
| 34 class CTVerifier; | 35 class CTVerifier; |
| 35 class HostResolver; | 36 class HostResolver; |
| 36 class HttpAuthHandlerFactory; | 37 class HttpAuthHandlerFactory; |
| 37 class HttpTransactionFactory; | 38 class HttpTransactionFactory; |
| 38 class HttpUserAgentSettings; | 39 class HttpUserAgentSettings; |
| 39 class NetworkDelegate; | 40 class NetworkDelegate; |
| 40 class NetworkQualityEstimator; | 41 class NetworkQualityEstimator; |
| 41 class SdchManager; | 42 class SdchManager; |
| 42 class ProxyService; | 43 class ProxyService; |
| 43 class URLRequest; | 44 class URLRequest; |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 transport_security_state_ = state; | 158 transport_security_state_ = state; |
| 158 } | 159 } |
| 159 | 160 |
| 160 CTVerifier* cert_transparency_verifier() const { | 161 CTVerifier* cert_transparency_verifier() const { |
| 161 return cert_transparency_verifier_; | 162 return cert_transparency_verifier_; |
| 162 } | 163 } |
| 163 void set_cert_transparency_verifier(CTVerifier* verifier) { | 164 void set_cert_transparency_verifier(CTVerifier* verifier) { |
| 164 cert_transparency_verifier_ = verifier; | 165 cert_transparency_verifier_ = verifier; |
| 165 } | 166 } |
| 166 | 167 |
| 168 CTPolicyEnforcer* ct_policy_enforcer() const { return ct_policy_enforcer_; } |
| 169 void set_ct_policy_enforcer(CTPolicyEnforcer* enforcer) { |
| 170 ct_policy_enforcer_ = enforcer; |
| 171 } |
| 172 |
| 167 const URLRequestJobFactory* job_factory() const { return job_factory_; } | 173 const URLRequestJobFactory* job_factory() const { return job_factory_; } |
| 168 void set_job_factory(const URLRequestJobFactory* job_factory) { | 174 void set_job_factory(const URLRequestJobFactory* job_factory) { |
| 169 job_factory_ = job_factory; | 175 job_factory_ = job_factory; |
| 170 } | 176 } |
| 171 | 177 |
| 172 // May return nullptr. | 178 // May return nullptr. |
| 173 URLRequestThrottlerManager* throttler_manager() const { | 179 URLRequestThrottlerManager* throttler_manager() const { |
| 174 return throttler_manager_; | 180 return throttler_manager_; |
| 175 } | 181 } |
| 176 void set_throttler_manager(URLRequestThrottlerManager* throttler_manager) { | 182 void set_throttler_manager(URLRequestThrottlerManager* throttler_manager) { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 ChannelIDService* channel_id_service_; | 259 ChannelIDService* channel_id_service_; |
| 254 HttpAuthHandlerFactory* http_auth_handler_factory_; | 260 HttpAuthHandlerFactory* http_auth_handler_factory_; |
| 255 ProxyService* proxy_service_; | 261 ProxyService* proxy_service_; |
| 256 scoped_refptr<SSLConfigService> ssl_config_service_; | 262 scoped_refptr<SSLConfigService> ssl_config_service_; |
| 257 NetworkDelegate* network_delegate_; | 263 NetworkDelegate* network_delegate_; |
| 258 HttpServerProperties* http_server_properties_; | 264 HttpServerProperties* http_server_properties_; |
| 259 HttpUserAgentSettings* http_user_agent_settings_; | 265 HttpUserAgentSettings* http_user_agent_settings_; |
| 260 CookieStore* cookie_store_; | 266 CookieStore* cookie_store_; |
| 261 TransportSecurityState* transport_security_state_; | 267 TransportSecurityState* transport_security_state_; |
| 262 CTVerifier* cert_transparency_verifier_; | 268 CTVerifier* cert_transparency_verifier_; |
| 269 CTPolicyEnforcer* ct_policy_enforcer_; |
| 263 HttpTransactionFactory* http_transaction_factory_; | 270 HttpTransactionFactory* http_transaction_factory_; |
| 264 const URLRequestJobFactory* job_factory_; | 271 const URLRequestJobFactory* job_factory_; |
| 265 URLRequestThrottlerManager* throttler_manager_; | 272 URLRequestThrottlerManager* throttler_manager_; |
| 266 URLRequestBackoffManager* backoff_manager_; | 273 URLRequestBackoffManager* backoff_manager_; |
| 267 SdchManager* sdch_manager_; | 274 SdchManager* sdch_manager_; |
| 268 NetworkQualityEstimator* network_quality_estimator_; | 275 NetworkQualityEstimator* network_quality_estimator_; |
| 269 | 276 |
| 270 // --------------------------------------------------------------------------- | 277 // --------------------------------------------------------------------------- |
| 271 // Important: When adding any new members below, consider whether they need to | 278 // Important: When adding any new members below, consider whether they need to |
| 272 // be added to CopyFrom. | 279 // be added to CopyFrom. |
| 273 // --------------------------------------------------------------------------- | 280 // --------------------------------------------------------------------------- |
| 274 | 281 |
| 275 std::unique_ptr<std::set<const URLRequest*>> url_requests_; | 282 std::unique_ptr<std::set<const URLRequest*>> url_requests_; |
| 276 bool has_known_mismatched_cookie_store_; | 283 bool has_known_mismatched_cookie_store_; |
| 277 | 284 |
| 278 // Enables Brotli Content-Encoding support. | 285 // Enables Brotli Content-Encoding support. |
| 279 bool enable_brotli_; | 286 bool enable_brotli_; |
| 280 | 287 |
| 281 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); | 288 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); |
| 282 }; | 289 }; |
| 283 | 290 |
| 284 } // namespace net | 291 } // namespace net |
| 285 | 292 |
| 286 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ | 293 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ |
| OLD | NEW |