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

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

Issue 7493025: Instantiate OriginBoundCertService in relevant places and do plumbing to pass it down to HttpNetw... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } 65 }
66 66
67 CertVerifier* cert_verifier() const { 67 CertVerifier* cert_verifier() const {
68 return cert_verifier_; 68 return cert_verifier_;
69 } 69 }
70 70
71 void set_cert_verifier(CertVerifier* cert_verifier) { 71 void set_cert_verifier(CertVerifier* cert_verifier) {
72 cert_verifier_ = cert_verifier; 72 cert_verifier_ = cert_verifier;
73 } 73 }
74 74
75 OriginBoundCertService* origin_bound_cert_service() const {
76 return origin_bound_cert_service_;
77 }
78 void set_origin_bound_cert_service(
79 OriginBoundCertService* origin_bound_cert_service) {
80 origin_bound_cert_service_ = origin_bound_cert_service;
81 }
82
83 DnsRRResolver* dnsrr_resolver() const { 75 DnsRRResolver* dnsrr_resolver() const {
84 return dnsrr_resolver_; 76 return dnsrr_resolver_;
85 } 77 }
86 78
87 void set_dnsrr_resolver(DnsRRResolver* dnsrr_resolver) { 79 void set_dnsrr_resolver(DnsRRResolver* dnsrr_resolver) {
88 dnsrr_resolver_ = dnsrr_resolver; 80 dnsrr_resolver_ = dnsrr_resolver;
89 } 81 }
90 82
91 DnsCertProvenanceChecker* dns_cert_checker() const { 83 DnsCertProvenanceChecker* dns_cert_checker() const {
92 return dns_cert_checker_; 84 return dns_cert_checker_;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void set_network_delegate(NetworkDelegate* network_delegate) { 127 void set_network_delegate(NetworkDelegate* network_delegate) {
136 network_delegate_ = network_delegate; 128 network_delegate_ = network_delegate;
137 } 129 }
138 NetworkDelegate* network_delegate() const { return network_delegate_; } 130 NetworkDelegate* network_delegate() const { return network_delegate_; }
139 131
140 // Gets the cookie store for this context (may be null, in which case 132 // Gets the cookie store for this context (may be null, in which case
141 // cookies are not stored). 133 // cookies are not stored).
142 CookieStore* cookie_store() const { return cookie_store_.get(); } 134 CookieStore* cookie_store() const { return cookie_store_.get(); }
143 void set_cookie_store(CookieStore* cookie_store); 135 void set_cookie_store(CookieStore* cookie_store);
144 136
137 OriginBoundCertService* origin_bound_cert_service() const {
138 return origin_bound_cert_service_.get();
139 }
140 void set_origin_bound_cert_service(
141 OriginBoundCertService* origin_bound_cert_service);
142
145 TransportSecurityState* transport_security_state() const { 143 TransportSecurityState* transport_security_state() const {
146 return transport_security_state_; 144 return transport_security_state_;
147 } 145 }
148 void set_transport_security_state( 146 void set_transport_security_state(
149 TransportSecurityState* state) { 147 TransportSecurityState* state) {
150 transport_security_state_ = state; 148 transport_security_state_ = state;
151 } 149 }
152 150
153 // Gets the FTP authentication cache for this context. 151 // Gets the FTP authentication cache for this context.
154 FtpAuthCache* ftp_auth_cache() const { return ftp_auth_cache_.get(); } 152 FtpAuthCache* ftp_auth_cache() const { return ftp_auth_cache_.get(); }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // --------------------------------------------------------------------------- 189 // ---------------------------------------------------------------------------
192 // Important: When adding any new members below, consider whether they need to 190 // Important: When adding any new members below, consider whether they need to
193 // be added to CopyFrom. 191 // be added to CopyFrom.
194 // --------------------------------------------------------------------------- 192 // ---------------------------------------------------------------------------
195 193
196 // Ownership for these members are not defined here. Clients should either 194 // Ownership for these members are not defined here. Clients should either
197 // provide storage elsewhere or have a subclass take ownership. 195 // provide storage elsewhere or have a subclass take ownership.
198 NetLog* net_log_; 196 NetLog* net_log_;
199 HostResolver* host_resolver_; 197 HostResolver* host_resolver_;
200 CertVerifier* cert_verifier_; 198 CertVerifier* cert_verifier_;
201 OriginBoundCertService* origin_bound_cert_service_;
202 DnsRRResolver* dnsrr_resolver_; 199 DnsRRResolver* dnsrr_resolver_;
203 DnsCertProvenanceChecker* dns_cert_checker_; 200 DnsCertProvenanceChecker* dns_cert_checker_;
204 HttpAuthHandlerFactory* http_auth_handler_factory_; 201 HttpAuthHandlerFactory* http_auth_handler_factory_;
205 ProxyService* proxy_service_; 202 ProxyService* proxy_service_;
206 scoped_refptr<SSLConfigService> ssl_config_service_; 203 scoped_refptr<SSLConfigService> ssl_config_service_;
207 NetworkDelegate* network_delegate_; 204 NetworkDelegate* network_delegate_;
208 scoped_refptr<CookieStore> cookie_store_; 205 scoped_refptr<CookieStore> cookie_store_;
206 scoped_refptr<OriginBoundCertService> origin_bound_cert_service_;
209 scoped_refptr<TransportSecurityState> transport_security_state_; 207 scoped_refptr<TransportSecurityState> transport_security_state_;
210 scoped_ptr<FtpAuthCache> ftp_auth_cache_; 208 scoped_ptr<FtpAuthCache> ftp_auth_cache_;
211 std::string accept_language_; 209 std::string accept_language_;
212 std::string accept_charset_; 210 std::string accept_charset_;
213 // The charset of the referrer where this request comes from. It's not 211 // The charset of the referrer where this request comes from. It's not
214 // used in communication with a server but is used to construct a suggested 212 // used in communication with a server but is used to construct a suggested
215 // filename for file download. 213 // filename for file download.
216 std::string referrer_charset_; 214 std::string referrer_charset_;
217 HttpTransactionFactory* http_transaction_factory_; 215 HttpTransactionFactory* http_transaction_factory_;
218 FtpTransactionFactory* ftp_transaction_factory_; 216 FtpTransactionFactory* ftp_transaction_factory_;
219 const URLRequestJobFactory* job_factory_; 217 const URLRequestJobFactory* job_factory_;
220 218
221 // --------------------------------------------------------------------------- 219 // ---------------------------------------------------------------------------
222 // Important: When adding any new members below, consider whether they need to 220 // Important: When adding any new members below, consider whether they need to
223 // be added to CopyFrom. 221 // be added to CopyFrom.
224 // --------------------------------------------------------------------------- 222 // ---------------------------------------------------------------------------
225 223
226 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); 224 DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
227 }; 225 };
228 226
229 } // namespace net 227 } // namespace net
230 228
231 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ 229 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698