diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-10 20:30:34 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-10 20:30:34 +0000 |
commit | 61d74983f154e4b6d3e8501b212be6b27de3c500 (patch) | |
tree | 1cbcc9b05c45dac5151ebdcde1b24784897b9801 /net/base/load_flags.h | |
parent | bac96616d3ffdda096b65155c7dd9c2fd3d5bc4a (diff) | |
download | chromium_src-61d74983f154e4b6d3e8501b212be6b27de3c500.zip chromium_src-61d74983f154e4b6d3e8501b212be6b27de3c500.tar.gz chromium_src-61d74983f154e4b6d3e8501b212be6b27de3c500.tar.bz2 |
Give the filter setup more context so it can figure out whether it's downloading a file or not. Only refuse to gunzip svgz files on download, so we can send an uncompressed svgz file to webkit.
BUG=9737
Review URL: http://codereview.chromium.org/62111
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13536 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/load_flags.h')
-rw-r--r-- | net/base/load_flags.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/base/load_flags.h b/net/base/load_flags.h index 354980c..c2c0d20 100644 --- a/net/base/load_flags.h +++ b/net/base/load_flags.h @@ -38,6 +38,8 @@ enum { LOAD_ENABLE_UPLOAD_PROGRESS = 1 << 6, // If present, try to download the resource to a standalone file. + // This hint tells the http cache to provide a native file handle + // of the cached file to the renderer process. LOAD_ENABLE_DOWNLOAD_FILE = 1 << 7, // If present, ignores certificate mismatches with the domain name. @@ -71,6 +73,9 @@ enum { // Do not resolve proxies. This override is used when downloading PAC files // to avoid having a circular dependency. LOAD_BYPASS_PROXY = 1 << 15, + + // Indicate this request is for a download, as opposed to viewing. + LOAD_IS_DOWNLOAD = 1 << 16, }; } // namespace net |