| 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 is useful for building a simple URLRequestContext. Most creators | 5 // This class is useful for building a simple URLRequestContext. Most creators |
| 6 // of new URLRequestContexts should use this helper class to construct it. Call | 6 // of new URLRequestContexts should use this helper class to construct it. Call |
| 7 // any configuration params, and when done, invoke Build() to construct the | 7 // any configuration params, and when done, invoke Build() to construct the |
| 8 // URLRequestContext. This URLRequestContext will own all its own storage. | 8 // URLRequestContext. This URLRequestContext will own all its own storage. |
| 9 // | 9 // |
| 10 // URLRequestContextBuilder and its associated params classes are initially | 10 // URLRequestContextBuilder and its associated params classes are initially |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 } | 194 } |
| 195 | 195 |
| 196 void set_throttling_enabled(bool throttling_enabled) { | 196 void set_throttling_enabled(bool throttling_enabled) { |
| 197 throttling_enabled_ = throttling_enabled; | 197 throttling_enabled_ = throttling_enabled; |
| 198 } | 198 } |
| 199 | 199 |
| 200 void set_backoff_enabled(bool backoff_enabled) { | 200 void set_backoff_enabled(bool backoff_enabled) { |
| 201 backoff_enabled_ = backoff_enabled; | 201 backoff_enabled_ = backoff_enabled; |
| 202 } | 202 } |
| 203 | 203 |
| 204 void SetCertVerifier(scoped_ptr<CertVerifier> cert_verifier); |
| 205 |
| 204 void SetInterceptors( | 206 void SetInterceptors( |
| 205 ScopedVector<URLRequestInterceptor> url_request_interceptors); | 207 ScopedVector<URLRequestInterceptor> url_request_interceptors); |
| 206 | 208 |
| 207 // Override the default in-memory cookie store and channel id service. | 209 // Override the default in-memory cookie store and channel id service. |
| 208 // |cookie_store| must not be NULL. |channel_id_service| may be NULL to | 210 // |cookie_store| must not be NULL. |channel_id_service| may be NULL to |
| 209 // disable channel id for this context. | 211 // disable channel id for this context. |
| 210 // Note that a persistent cookie store should not be used with an in-memory | 212 // Note that a persistent cookie store should not be used with an in-memory |
| 211 // channel id service, and one cookie store should not be shared between | 213 // channel id service, and one cookie store should not be shared between |
| 212 // multiple channel-id stores (or used both with and without a channel id | 214 // multiple channel-id stores (or used both with and without a channel id |
| 213 // store). | 215 // store). |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 base::FilePath transport_security_persister_path_; | 268 base::FilePath transport_security_persister_path_; |
| 267 NetLog* net_log_; | 269 NetLog* net_log_; |
| 268 scoped_ptr<HostResolver> host_resolver_; | 270 scoped_ptr<HostResolver> host_resolver_; |
| 269 scoped_ptr<ChannelIDService> channel_id_service_; | 271 scoped_ptr<ChannelIDService> channel_id_service_; |
| 270 scoped_ptr<ProxyConfigService> proxy_config_service_; | 272 scoped_ptr<ProxyConfigService> proxy_config_service_; |
| 271 scoped_ptr<ProxyService> proxy_service_; | 273 scoped_ptr<ProxyService> proxy_service_; |
| 272 scoped_ptr<NetworkDelegate> network_delegate_; | 274 scoped_ptr<NetworkDelegate> network_delegate_; |
| 273 scoped_refptr<CookieStore> cookie_store_; | 275 scoped_refptr<CookieStore> cookie_store_; |
| 274 scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_; | 276 scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_; |
| 275 std::vector<SchemeFactory> extra_http_auth_handlers_; | 277 std::vector<SchemeFactory> extra_http_auth_handlers_; |
| 278 scoped_ptr<CertVerifier> cert_verifier_; |
| 276 ScopedVector<URLRequestInterceptor> url_request_interceptors_; | 279 ScopedVector<URLRequestInterceptor> url_request_interceptors_; |
| 277 scoped_ptr<HttpServerProperties> http_server_properties_; | 280 scoped_ptr<HttpServerProperties> http_server_properties_; |
| 278 | 281 |
| 279 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); | 282 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); |
| 280 }; | 283 }; |
| 281 | 284 |
| 282 } // namespace net | 285 } // namespace net |
| 283 | 286 |
| 284 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ | 287 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ |
| OLD | NEW |