Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(991)

Side by Side Diff: net/url_request/url_request_context.h

Issue 356713005: Rename ServerBoundCert => ChannelID to reflect the current name (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix cookies_list.js Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 10 matching lines...) Expand all
21 #include "net/base/net_log.h" 21 #include "net/base/net_log.h"
22 #include "net/base/request_priority.h" 22 #include "net/base/request_priority.h"
23 #include "net/http/http_network_session.h" 23 #include "net/http/http_network_session.h"
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/ssl/ssl_config_service.h" 26 #include "net/ssl/ssl_config_service.h"
27 #include "net/url_request/url_request.h" 27 #include "net/url_request/url_request.h"
28 28
29 namespace net { 29 namespace net {
30 class CertVerifier; 30 class CertVerifier;
31 class ChannelIDService;
31 class CookieStore; 32 class CookieStore;
32 class CTVerifier; 33 class CTVerifier;
33 class FraudulentCertificateReporter; 34 class FraudulentCertificateReporter;
34 class HostResolver; 35 class HostResolver;
35 class HttpAuthHandlerFactory; 36 class HttpAuthHandlerFactory;
36 class HttpTransactionFactory; 37 class HttpTransactionFactory;
37 class HttpUserAgentSettings; 38 class HttpUserAgentSettings;
38 class NetworkDelegate; 39 class NetworkDelegate;
39 class SdchManager; 40 class SdchManager;
40 class ServerBoundCertService;
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
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // --------------------------------------------------------------------------- 218 // ---------------------------------------------------------------------------
219 // Important: When adding any new members below, consider whether they need to 219 // Important: When adding any new members below, consider whether they need to
220 // be added to CopyFrom. 220 // be added to CopyFrom.
221 // --------------------------------------------------------------------------- 221 // ---------------------------------------------------------------------------
222 222
223 // Ownership for these members are not defined here. Clients should either 223 // Ownership for these members are not defined here. Clients should either
224 // provide storage elsewhere or have a subclass take ownership. 224 // provide storage elsewhere or have a subclass take ownership.
225 NetLog* net_log_; 225 NetLog* net_log_;
226 HostResolver* host_resolver_; 226 HostResolver* host_resolver_;
227 CertVerifier* cert_verifier_; 227 CertVerifier* cert_verifier_;
228 ServerBoundCertService* server_bound_cert_service_; 228 ChannelIDService* channel_id_service_;
229 FraudulentCertificateReporter* fraudulent_certificate_reporter_; 229 FraudulentCertificateReporter* fraudulent_certificate_reporter_;
230 HttpAuthHandlerFactory* http_auth_handler_factory_; 230 HttpAuthHandlerFactory* http_auth_handler_factory_;
231 ProxyService* proxy_service_; 231 ProxyService* proxy_service_;
232 scoped_refptr<SSLConfigService> ssl_config_service_; 232 scoped_refptr<SSLConfigService> ssl_config_service_;
233 NetworkDelegate* network_delegate_; 233 NetworkDelegate* network_delegate_;
234 base::WeakPtr<HttpServerProperties> http_server_properties_; 234 base::WeakPtr<HttpServerProperties> http_server_properties_;
235 HttpUserAgentSettings* http_user_agent_settings_; 235 HttpUserAgentSettings* http_user_agent_settings_;
236 scoped_refptr<CookieStore> cookie_store_; 236 scoped_refptr<CookieStore> cookie_store_;
237 TransportSecurityState* transport_security_state_; 237 TransportSecurityState* transport_security_state_;
238 CTVerifier* cert_transparency_verifier_; 238 CTVerifier* cert_transparency_verifier_;
239 HttpTransactionFactory* http_transaction_factory_; 239 HttpTransactionFactory* http_transaction_factory_;
240 const URLRequestJobFactory* job_factory_; 240 const URLRequestJobFactory* job_factory_;
241 URLRequestThrottlerManager* throttler_manager_; 241 URLRequestThrottlerManager* throttler_manager_;
242 SdchManager* sdch_manager_; 242 SdchManager* sdch_manager_;
243 243
244 // --------------------------------------------------------------------------- 244 // ---------------------------------------------------------------------------
245 // Important: When adding any new members below, consider whether they need to 245 // Important: When adding any new members below, consider whether they need to
246 // be added to CopyFrom. 246 // be added to CopyFrom.
247 // --------------------------------------------------------------------------- 247 // ---------------------------------------------------------------------------
248 248
249 scoped_ptr<std::set<const URLRequest*> > url_requests_; 249 scoped_ptr<std::set<const URLRequest*> > url_requests_;
250 250
251 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); 251 DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
252 }; 252 };
253 253
254 } // namespace net 254 } // namespace net
255 255
256 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ 256 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698