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

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

Issue 10880071: Disable FTP on iOS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: After rebasing Created 8 years, 3 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
« no previous file with comments | « net/net.gyp ('k') | net/url_request/url_request_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 TransportSecurityState* transport_security_state() const { 154 TransportSecurityState* transport_security_state() const {
155 return transport_security_state_; 155 return transport_security_state_;
156 } 156 }
157 void set_transport_security_state( 157 void set_transport_security_state(
158 TransportSecurityState* state) { 158 TransportSecurityState* state) {
159 transport_security_state_ = state; 159 transport_security_state_ = state;
160 } 160 }
161 161
162 // Gets the FTP authentication cache for this context. 162 // Gets the FTP authentication cache for this context.
163 FtpAuthCache* ftp_auth_cache() const { return ftp_auth_cache_.get(); } 163 FtpAuthCache* ftp_auth_cache() const {
164 #if !defined(DISABLE_FTP_SUPPORT)
165 return ftp_auth_cache_.get();
166 #else
167 return NULL;
168 #endif
169 }
164 170
165 // Gets the value of 'Accept-Charset' header field. 171 // Gets the value of 'Accept-Charset' header field.
166 const std::string& accept_charset() const { return accept_charset_; } 172 const std::string& accept_charset() const { return accept_charset_; }
167 void set_accept_charset(const std::string& accept_charset) { 173 void set_accept_charset(const std::string& accept_charset) {
168 accept_charset_ = accept_charset; 174 accept_charset_ = accept_charset;
169 } 175 }
170 176
171 // Gets the value of 'Accept-Language' header field. 177 // Gets the value of 'Accept-Language' header field.
172 const std::string& accept_language() const { return accept_language_; } 178 const std::string& accept_language() const { return accept_language_; }
173 void set_accept_language(const std::string& accept_language) { 179 void set_accept_language(const std::string& accept_language) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 CertVerifier* cert_verifier_; 226 CertVerifier* cert_verifier_;
221 ServerBoundCertService* server_bound_cert_service_; 227 ServerBoundCertService* server_bound_cert_service_;
222 FraudulentCertificateReporter* fraudulent_certificate_reporter_; 228 FraudulentCertificateReporter* fraudulent_certificate_reporter_;
223 HttpAuthHandlerFactory* http_auth_handler_factory_; 229 HttpAuthHandlerFactory* http_auth_handler_factory_;
224 ProxyService* proxy_service_; 230 ProxyService* proxy_service_;
225 scoped_refptr<SSLConfigService> ssl_config_service_; 231 scoped_refptr<SSLConfigService> ssl_config_service_;
226 NetworkDelegate* network_delegate_; 232 NetworkDelegate* network_delegate_;
227 HttpServerProperties* http_server_properties_; 233 HttpServerProperties* http_server_properties_;
228 scoped_refptr<CookieStore> cookie_store_; 234 scoped_refptr<CookieStore> cookie_store_;
229 TransportSecurityState* transport_security_state_; 235 TransportSecurityState* transport_security_state_;
236 #if !defined(DISABLE_FTP_SUPPORT)
230 scoped_ptr<FtpAuthCache> ftp_auth_cache_; 237 scoped_ptr<FtpAuthCache> ftp_auth_cache_;
238 #endif
231 std::string accept_language_; 239 std::string accept_language_;
232 std::string accept_charset_; 240 std::string accept_charset_;
233 // The charset of the referrer where this request comes from. It's not 241 // The charset of the referrer where this request comes from. It's not
234 // used in communication with a server but is used to construct a suggested 242 // used in communication with a server but is used to construct a suggested
235 // filename for file download. 243 // filename for file download.
236 std::string referrer_charset_; 244 std::string referrer_charset_;
237 HttpTransactionFactory* http_transaction_factory_; 245 HttpTransactionFactory* http_transaction_factory_;
238 FtpTransactionFactory* ftp_transaction_factory_; 246 FtpTransactionFactory* ftp_transaction_factory_;
239 const URLRequestJobFactory* job_factory_; 247 const URLRequestJobFactory* job_factory_;
240 URLRequestThrottlerManager* throttler_manager_; 248 URLRequestThrottlerManager* throttler_manager_;
241 249
242 // --------------------------------------------------------------------------- 250 // ---------------------------------------------------------------------------
243 // Important: When adding any new members below, consider whether they need to 251 // Important: When adding any new members below, consider whether they need to
244 // be added to CopyFrom. 252 // be added to CopyFrom.
245 // --------------------------------------------------------------------------- 253 // ---------------------------------------------------------------------------
246 254
247 scoped_ptr<std::set<const URLRequest*> > url_requests_; 255 scoped_ptr<std::set<const URLRequest*> > url_requests_;
248 256
249 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); 257 DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
250 }; 258 };
251 259
252 } // namespace net 260 } // namespace net
253 261
254 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ 262 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_
OLDNEW
« no previous file with comments | « net/net.gyp ('k') | net/url_request/url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698