| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 } | 189 } |
| 190 | 190 |
| 191 void set_throttling_enabled(bool throttling_enabled) { | 191 void set_throttling_enabled(bool throttling_enabled) { |
| 192 throttling_enabled_ = throttling_enabled; | 192 throttling_enabled_ = throttling_enabled; |
| 193 } | 193 } |
| 194 | 194 |
| 195 void set_backoff_enabled(bool backoff_enabled) { | 195 void set_backoff_enabled(bool backoff_enabled) { |
| 196 backoff_enabled_ = backoff_enabled; | 196 backoff_enabled_ = backoff_enabled; |
| 197 } | 197 } |
| 198 | 198 |
| 199 void SetCertVerifier(scoped_ptr<CertVerifier> cert_verifier); |
| 200 |
| 199 void SetInterceptors( | 201 void SetInterceptors( |
| 200 ScopedVector<URLRequestInterceptor> url_request_interceptors); | 202 ScopedVector<URLRequestInterceptor> url_request_interceptors); |
| 201 | 203 |
| 202 // Override the default in-memory cookie store and channel id service. | 204 // Override the default in-memory cookie store and channel id service. |
| 203 // |cookie_store| must not be NULL. |channel_id_service| may be NULL to | 205 // |cookie_store| must not be NULL. |channel_id_service| may be NULL to |
| 204 // disable channel id for this context. | 206 // disable channel id for this context. |
| 205 // Note that a persistent cookie store should not be used with an in-memory | 207 // Note that a persistent cookie store should not be used with an in-memory |
| 206 // channel id service, and one cookie store should not be shared between | 208 // channel id service, and one cookie store should not be shared between |
| 207 // multiple channel-id stores (or used both with and without a channel id | 209 // multiple channel-id stores (or used both with and without a channel id |
| 208 // store). | 210 // store). |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 base::FilePath transport_security_persister_path_; | 263 base::FilePath transport_security_persister_path_; |
| 262 NetLog* net_log_; | 264 NetLog* net_log_; |
| 263 scoped_ptr<HostResolver> host_resolver_; | 265 scoped_ptr<HostResolver> host_resolver_; |
| 264 scoped_ptr<ChannelIDService> channel_id_service_; | 266 scoped_ptr<ChannelIDService> channel_id_service_; |
| 265 scoped_ptr<ProxyConfigService> proxy_config_service_; | 267 scoped_ptr<ProxyConfigService> proxy_config_service_; |
| 266 scoped_ptr<ProxyService> proxy_service_; | 268 scoped_ptr<ProxyService> proxy_service_; |
| 267 scoped_ptr<NetworkDelegate> network_delegate_; | 269 scoped_ptr<NetworkDelegate> network_delegate_; |
| 268 scoped_refptr<CookieStore> cookie_store_; | 270 scoped_refptr<CookieStore> cookie_store_; |
| 269 scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_; | 271 scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_; |
| 270 std::vector<SchemeFactory> extra_http_auth_handlers_; | 272 std::vector<SchemeFactory> extra_http_auth_handlers_; |
| 273 scoped_ptr<CertVerifier> cert_verifier_; |
| 271 ScopedVector<URLRequestInterceptor> url_request_interceptors_; | 274 ScopedVector<URLRequestInterceptor> url_request_interceptors_; |
| 272 scoped_ptr<HttpServerProperties> http_server_properties_; | 275 scoped_ptr<HttpServerProperties> http_server_properties_; |
| 273 | 276 |
| 274 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); | 277 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); |
| 275 }; | 278 }; |
| 276 | 279 |
| 277 } // namespace net | 280 } // namespace net |
| 278 | 281 |
| 279 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ | 282 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ |
| OLD | NEW |