| 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 necessary when processing resource requests. | 6 // that's necessary when processing resource requests. |
| 7 | 7 |
| 8 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ | 8 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ |
| 9 #define NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ | 9 #define NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ |
| 10 | 10 |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 // additionally call AssertNoURLRequests() within their own destructor, | 233 // additionally call AssertNoURLRequests() within their own destructor, |
| 234 // prior to implicit destruction of subclass-owned state. | 234 // prior to implicit destruction of subclass-owned state. |
| 235 void AssertNoURLRequests() const; | 235 void AssertNoURLRequests() const; |
| 236 | 236 |
| 237 // Get the underlying |HttpUserAgentSettings| implementation that provides | 237 // Get the underlying |HttpUserAgentSettings| implementation that provides |
| 238 // the HTTP Accept-Language and User-Agent header values. | 238 // the HTTP Accept-Language and User-Agent header values. |
| 239 const HttpUserAgentSettings* http_user_agent_settings() const { | 239 const HttpUserAgentSettings* http_user_agent_settings() const { |
| 240 return http_user_agent_settings_; | 240 return http_user_agent_settings_; |
| 241 } | 241 } |
| 242 void set_http_user_agent_settings( | 242 void set_http_user_agent_settings( |
| 243 HttpUserAgentSettings* http_user_agent_settings) { | 243 const HttpUserAgentSettings* http_user_agent_settings) { |
| 244 http_user_agent_settings_ = http_user_agent_settings; | 244 http_user_agent_settings_ = http_user_agent_settings; |
| 245 } | 245 } |
| 246 | 246 |
| 247 // Gets the NetworkQualityEstimator associated with this context. | 247 // Gets the NetworkQualityEstimator associated with this context. |
| 248 // May return nullptr. | 248 // May return nullptr. |
| 249 NetworkQualityEstimator* network_quality_estimator() const { | 249 NetworkQualityEstimator* network_quality_estimator() const { |
| 250 return network_quality_estimator_; | 250 return network_quality_estimator_; |
| 251 } | 251 } |
| 252 void set_network_quality_estimator( | 252 void set_network_quality_estimator( |
| 253 NetworkQualityEstimator* network_quality_estimator) { | 253 NetworkQualityEstimator* network_quality_estimator) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 // provide storage elsewhere or have a subclass take ownership. | 291 // provide storage elsewhere or have a subclass take ownership. |
| 292 NetLog* net_log_; | 292 NetLog* net_log_; |
| 293 HostResolver* host_resolver_; | 293 HostResolver* host_resolver_; |
| 294 CertVerifier* cert_verifier_; | 294 CertVerifier* cert_verifier_; |
| 295 ChannelIDService* channel_id_service_; | 295 ChannelIDService* channel_id_service_; |
| 296 HttpAuthHandlerFactory* http_auth_handler_factory_; | 296 HttpAuthHandlerFactory* http_auth_handler_factory_; |
| 297 ProxyService* proxy_service_; | 297 ProxyService* proxy_service_; |
| 298 scoped_refptr<SSLConfigService> ssl_config_service_; | 298 scoped_refptr<SSLConfigService> ssl_config_service_; |
| 299 NetworkDelegate* network_delegate_; | 299 NetworkDelegate* network_delegate_; |
| 300 HttpServerProperties* http_server_properties_; | 300 HttpServerProperties* http_server_properties_; |
| 301 HttpUserAgentSettings* http_user_agent_settings_; | 301 const HttpUserAgentSettings* http_user_agent_settings_; |
| 302 CookieStore* cookie_store_; | 302 CookieStore* cookie_store_; |
| 303 TransportSecurityState* transport_security_state_; | 303 TransportSecurityState* transport_security_state_; |
| 304 CTVerifier* cert_transparency_verifier_; | 304 CTVerifier* cert_transparency_verifier_; |
| 305 CTPolicyEnforcer* ct_policy_enforcer_; | 305 CTPolicyEnforcer* ct_policy_enforcer_; |
| 306 HttpTransactionFactory* http_transaction_factory_; | 306 HttpTransactionFactory* http_transaction_factory_; |
| 307 const URLRequestJobFactory* job_factory_; | 307 const URLRequestJobFactory* job_factory_; |
| 308 URLRequestThrottlerManager* throttler_manager_; | 308 URLRequestThrottlerManager* throttler_manager_; |
| 309 URLRequestBackoffManager* backoff_manager_; | 309 URLRequestBackoffManager* backoff_manager_; |
| 310 SdchManager* sdch_manager_; | 310 SdchManager* sdch_manager_; |
| 311 NetworkQualityEstimator* network_quality_estimator_; | 311 NetworkQualityEstimator* network_quality_estimator_; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 332 // The largest number of outstanding URLRequests that have been created by | 332 // The largest number of outstanding URLRequests that have been created by |
| 333 // |this| and are not yet destroyed. This doesn't need to be in CopyFrom. | 333 // |this| and are not yet destroyed. This doesn't need to be in CopyFrom. |
| 334 mutable size_t largest_outstanding_requests_count_seen_; | 334 mutable size_t largest_outstanding_requests_count_seen_; |
| 335 | 335 |
| 336 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); | 336 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); |
| 337 }; | 337 }; |
| 338 | 338 |
| 339 } // namespace net | 339 } // namespace net |
| 340 | 340 |
| 341 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ | 341 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ |
| OLD | NEW |