From 423041b0a7182411149472ae1e7fd87317173097 Mon Sep 17 00:00:00 2001 From: "jar@google.com" Date: Mon, 27 Oct 2008 17:39:28 +0000 Subject: Clean up filter and content encoding handling Centralize translation functions (text of "Content-Encoding" to enum) in filter.cc Centralize error recovery (for damaged content encoding headers) in filter.cc Error recovery includes a loss of SDCH encoding headers, plus handling of Apache server bug with gzip files are tagged as also being gzip encoded. Centralize and add a pile of unit tests to this filter code. r=openvcdiff,huanr Review URL: http://codereview.chromium.org/8018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4004 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/sdch_manager.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'net/base/sdch_manager.h') diff --git a/net/base/sdch_manager.h b/net/base/sdch_manager.h index 1d00163..3aa6884 100644 --- a/net/base/sdch_manager.h +++ b/net/base/sdch_manager.h @@ -66,8 +66,7 @@ class SdchManager { DECODE_BODY_ERROR, // Dictionary selection for use problems. - DICTIONARY_NOT_FOUND_FOR_HASH = 10, - DICTIONARY_FOUND_HAS_WRONG_DOMAIN, + DICTIONARY_FOUND_HAS_WRONG_DOMAIN = 10, DICTIONARY_FOUND_HAS_WRONG_PORT_LIST, DICTIONARY_FOUND_HAS_WRONG_PATH, DICTIONARY_FOUND_HAS_WRONG_SCHEME, @@ -92,7 +91,7 @@ class SdchManager { DICTIONARY_SELECTED_FOR_SSL, DICTIONARY_ALREADY_LOADED, - MAX_PROBLEM_CODE // Used to bound histogram + MAX_PROBLEM_CODE // Used to bound histogram. }; // There is one instance of |Dictionary| for each memory-cached SDCH -- cgit v1.1