diff options
author | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-19 00:08:20 +0000 |
---|---|---|
committer | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-19 00:08:20 +0000 |
commit | ff316f114fab218ffdee3c556cc01544f75aebbd (patch) | |
tree | 9b6e49bcd068ec9fb554344ab2e3d1d3fde3563f /net/url_request | |
parent | 9ebe5f9c72e06692fa82e2c4ff2f17ba3614ab9b (diff) | |
download | chromium_src-ff316f114fab218ffdee3c556cc01544f75aebbd.zip chromium_src-ff316f114fab218ffdee3c556cc01544f75aebbd.tar.gz chromium_src-ff316f114fab218ffdee3c556cc01544f75aebbd.tar.bz2 |
fetch_client: Support file URL scheme
This is done by moving to URLFetcher rather than HttpNetworkTransaction. This both simplifies the code for fetch_client, and makes it closer to a typical consumer of the networking library.
This CL also fixes URLRequestContextBuilder::DisableHttpCache, which I discovered was broken while making this change.
BUG=335585
Review URL: https://codereview.chromium.org/134603004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245803 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r-- | net/url_request/url_request_context_builder.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/url_request/url_request_context_builder.h b/net/url_request/url_request_context_builder.h index 899e74d..2ad03ee 100644 --- a/net/url_request/url_request_context_builder.h +++ b/net/url_request/url_request_context_builder.h @@ -113,10 +113,12 @@ class NET_EXPORT URLRequestContextBuilder { // By default HttpCache is enabled with a default constructed HttpCacheParams. void EnableHttpCache(const HttpCacheParams& params) { + http_cache_enabled_ = true; http_cache_params_ = params; } void DisableHttpCache() { + http_cache_enabled_ = false; http_cache_params_ = HttpCacheParams(); } |