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 19 matching lines...) Expand all Loading... | |
30 class CertVerifier; | 30 class CertVerifier; |
31 class CookieStore; | 31 class CookieStore; |
32 class CTVerifier; | 32 class CTVerifier; |
33 class FraudulentCertificateReporter; | 33 class FraudulentCertificateReporter; |
34 class HostResolver; | 34 class HostResolver; |
35 class HttpAuthHandlerFactory; | 35 class HttpAuthHandlerFactory; |
36 class HttpTransactionFactory; | 36 class HttpTransactionFactory; |
37 class HttpUserAgentSettings; | 37 class HttpUserAgentSettings; |
38 class NetworkDelegate; | 38 class NetworkDelegate; |
39 class SdchManager; | 39 class SdchManager; |
40 class ServerBoundCertService; | 40 class ChannelIDService; |
wtc
2014/07/01 19:50:57
List in alphabetical order.
Ryan Hamilton
2014/07/21 19:12:13
Done.
| |
41 class ProxyService; | 41 class ProxyService; |
42 class URLRequest; | 42 class URLRequest; |
43 class URLRequestJobFactory; | 43 class URLRequestJobFactory; |
44 class URLRequestThrottlerManager; | 44 class URLRequestThrottlerManager; |
45 | 45 |
46 // Subclass to provide application-specific context for URLRequest | 46 // Subclass to provide application-specific context for URLRequest |
47 // instances. Note that URLRequestContext typically does not provide storage for | 47 // instances. Note that URLRequestContext typically does not provide storage for |
48 // these member variables, since they may be shared. For the ones that aren't | 48 // these member variables, since they may be shared. For the ones that aren't |
49 // shared, URLRequestContextStorage can be helpful in defining their storage. | 49 // shared, URLRequestContextStorage can be helpful in defining their storage. |
50 class NET_EXPORT URLRequestContext | 50 class NET_EXPORT URLRequestContext |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 } | 84 } |
85 | 85 |
86 CertVerifier* cert_verifier() const { | 86 CertVerifier* cert_verifier() const { |
87 return cert_verifier_; | 87 return cert_verifier_; |
88 } | 88 } |
89 | 89 |
90 void set_cert_verifier(CertVerifier* cert_verifier) { | 90 void set_cert_verifier(CertVerifier* cert_verifier) { |
91 cert_verifier_ = cert_verifier; | 91 cert_verifier_ = cert_verifier; |
92 } | 92 } |
93 | 93 |
94 ServerBoundCertService* server_bound_cert_service() const { | 94 ChannelIDService* channel_id_service() const { |
95 return server_bound_cert_service_; | 95 return channel_id_service_; |
96 } | 96 } |
97 | 97 |
98 void set_server_bound_cert_service( | 98 void set_channel_id_service( |
99 ServerBoundCertService* server_bound_cert_service) { | 99 ChannelIDService* channel_id_service) { |
100 server_bound_cert_service_ = server_bound_cert_service; | 100 channel_id_service_ = channel_id_service; |
101 } | 101 } |
102 | 102 |
103 FraudulentCertificateReporter* fraudulent_certificate_reporter() const { | 103 FraudulentCertificateReporter* fraudulent_certificate_reporter() const { |
104 return fraudulent_certificate_reporter_; | 104 return fraudulent_certificate_reporter_; |
105 } | 105 } |
106 void set_fraudulent_certificate_reporter( | 106 void set_fraudulent_certificate_reporter( |
107 FraudulentCertificateReporter* fraudulent_certificate_reporter) { | 107 FraudulentCertificateReporter* fraudulent_certificate_reporter) { |
108 fraudulent_certificate_reporter_ = fraudulent_certificate_reporter; | 108 fraudulent_certificate_reporter_ = fraudulent_certificate_reporter; |
109 } | 109 } |
110 | 110 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
215 // --------------------------------------------------------------------------- | 215 // --------------------------------------------------------------------------- |
216 // Important: When adding any new members below, consider whether they need to | 216 // Important: When adding any new members below, consider whether they need to |
217 // be added to CopyFrom. | 217 // be added to CopyFrom. |
218 // --------------------------------------------------------------------------- | 218 // --------------------------------------------------------------------------- |
219 | 219 |
220 // Ownership for these members are not defined here. Clients should either | 220 // Ownership for these members are not defined here. Clients should either |
221 // provide storage elsewhere or have a subclass take ownership. | 221 // provide storage elsewhere or have a subclass take ownership. |
222 NetLog* net_log_; | 222 NetLog* net_log_; |
223 HostResolver* host_resolver_; | 223 HostResolver* host_resolver_; |
224 CertVerifier* cert_verifier_; | 224 CertVerifier* cert_verifier_; |
225 ServerBoundCertService* server_bound_cert_service_; | 225 ChannelIDService* channel_id_service_; |
226 FraudulentCertificateReporter* fraudulent_certificate_reporter_; | 226 FraudulentCertificateReporter* fraudulent_certificate_reporter_; |
227 HttpAuthHandlerFactory* http_auth_handler_factory_; | 227 HttpAuthHandlerFactory* http_auth_handler_factory_; |
228 ProxyService* proxy_service_; | 228 ProxyService* proxy_service_; |
229 scoped_refptr<SSLConfigService> ssl_config_service_; | 229 scoped_refptr<SSLConfigService> ssl_config_service_; |
230 NetworkDelegate* network_delegate_; | 230 NetworkDelegate* network_delegate_; |
231 base::WeakPtr<HttpServerProperties> http_server_properties_; | 231 base::WeakPtr<HttpServerProperties> http_server_properties_; |
232 HttpUserAgentSettings* http_user_agent_settings_; | 232 HttpUserAgentSettings* http_user_agent_settings_; |
233 scoped_refptr<CookieStore> cookie_store_; | 233 scoped_refptr<CookieStore> cookie_store_; |
234 TransportSecurityState* transport_security_state_; | 234 TransportSecurityState* transport_security_state_; |
235 CTVerifier* cert_transparency_verifier_; | 235 CTVerifier* cert_transparency_verifier_; |
236 HttpTransactionFactory* http_transaction_factory_; | 236 HttpTransactionFactory* http_transaction_factory_; |
237 const URLRequestJobFactory* job_factory_; | 237 const URLRequestJobFactory* job_factory_; |
238 URLRequestThrottlerManager* throttler_manager_; | 238 URLRequestThrottlerManager* throttler_manager_; |
239 SdchManager* sdch_manager_; | 239 SdchManager* sdch_manager_; |
240 | 240 |
241 // --------------------------------------------------------------------------- | 241 // --------------------------------------------------------------------------- |
242 // Important: When adding any new members below, consider whether they need to | 242 // Important: When adding any new members below, consider whether they need to |
243 // be added to CopyFrom. | 243 // be added to CopyFrom. |
244 // --------------------------------------------------------------------------- | 244 // --------------------------------------------------------------------------- |
245 | 245 |
246 scoped_ptr<std::set<const URLRequest*> > url_requests_; | 246 scoped_ptr<std::set<const URLRequest*> > url_requests_; |
247 | 247 |
248 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); | 248 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); |
249 }; | 249 }; |
250 | 250 |
251 } // namespace net | 251 } // namespace net |
252 | 252 |
253 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ | 253 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ |
OLD | NEW |