| Index: net/url_request/url_request_context_builder.h
|
| diff --git a/net/url_request/url_request_context_builder.h b/net/url_request/url_request_context_builder.h
|
| index f1ce5707a66866e11114c837d5ab771371e56eec..783f211fea4a082d01d07013c77db228b83e8f63 100644
|
| --- a/net/url_request/url_request_context_builder.h
|
| +++ b/net/url_request/url_request_context_builder.h
|
| @@ -25,6 +25,7 @@
|
|
|
| namespace net {
|
|
|
| +class FtpTransactionFactory;
|
| class HostMappingRules;
|
| class ProxyConfigService;
|
| class URLRequestContext;
|
| @@ -85,10 +86,22 @@ class NET_EXPORT URLRequestContextBuilder {
|
| user_agent_ = user_agent;
|
| }
|
|
|
| - // By default it's disabled.
|
| + // Control support for data:// requests. By default it's disabled.
|
| + void set_data_enabled(bool enable) {
|
| + data_enabled_ = enable;
|
| + }
|
| +
|
| + // Control support for file:// requests. By default it's disabled.
|
| + void set_file_enabled(bool enable) {
|
| + file_enabled_ = enable;
|
| + }
|
| +
|
| +#if !defined(DISABLE_FTP_SUPPORT)
|
| + // Control support for ftp:// requests. By default it's disabled.
|
| void set_ftp_enabled(bool enable) {
|
| ftp_enabled_ = enable;
|
| }
|
| +#endif
|
|
|
| // Uses BasicNetworkDelegate by default. Note that calling Build will unset
|
| // any custom delegate in builder, so this must be called each time before
|
| @@ -118,7 +131,14 @@ class NET_EXPORT URLRequestContextBuilder {
|
| std::string accept_language_;
|
| std::string accept_charset_;
|
| std::string user_agent_;
|
| + // Include support for data:// requests.
|
| + bool data_enabled_;
|
| + // Include support for file:// requests.
|
| + bool file_enabled_;
|
| +#if !defined(DISABLE_FTP_SUPPORT)
|
| + // Include support for ftp:// requests.
|
| bool ftp_enabled_;
|
| +#endif
|
| bool http_cache_enabled_;
|
| HttpCacheParams http_cache_params_;
|
| HttpNetworkSessionParams http_network_session_params_;
|
| @@ -126,6 +146,7 @@ class NET_EXPORT URLRequestContextBuilder {
|
| scoped_ptr<ProxyConfigService> proxy_config_service_;
|
| #endif // defined(OS_LINUX) || defined(OS_ANDROID)
|
| scoped_ptr<NetworkDelegate> network_delegate_;
|
| + scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder);
|
| };
|
|
|