diff options
author | jar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-15 21:21:37 +0000 |
---|---|---|
committer | jar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-15 21:21:37 +0000 |
commit | c631b6aabef4753d124fcda8fcd1ea3d6931803d (patch) | |
tree | 2d35566d0b4a6ea39c421c7b7bab9a42a1b6b15f /net/base/load_flags.h | |
parent | 9e82059e9496cd01dc4766197196c9d3330fa842 (diff) | |
download | chromium_src-c631b6aabef4753d124fcda8fcd1ea3d6931803d.zip chromium_src-c631b6aabef4753d124fcda8fcd1ea3d6931803d.tar.gz chromium_src-c631b6aabef4753d124fcda8fcd1ea3d6931803d.tar.bz2 |
Add a lot of robustness to SDCH filter decoding
a) Do meta-refresh (and partially disable sdch) when we have an sdch decode
error early on (due to lack of dictionary).
b) Gracefully handle proxy removal of "gzip" in "content-encoding: sdch,gzip".
c) Recover from completely stripped content encoding (in response to a
request for which we advertised an SDCH dictionary) by using a filter
that can optionally decode sdch with an optional gzip as well.
Some field tests have shown problems with this protocol's
transit across the ether. The general approach we've adopted
is to stop using SDCH on the problematic site when we have problems. This
will prevent a malicious site from shutting down all use of SDCH.
r=kmixter,openvcdiff,huanr
Review URL: http://codereview.chromium.org/6433
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3420 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/load_flags.h')
-rw-r--r-- | net/base/load_flags.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/base/load_flags.h b/net/base/load_flags.h index 7ca5ffb..bf5e02f 100644 --- a/net/base/load_flags.h +++ b/net/base/load_flags.h @@ -60,6 +60,10 @@ enum { // This load will not make any changes to cookies, including storing new // cookies or updating existing ones. LOAD_DO_NOT_SAVE_COOKIES = 1 << 13, + + // An SDCH dictionary was advertised, and an SDCH encoded response is + // possible. + LOAD_SDCH_DICTIONARY_ADVERTISED = 1 << 14, }; } // namespace net |