diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-28 23:06:14 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-28 23:06:14 +0000 |
commit | 23a7574cee63f96e83bbd8af774c70780a00f985 (patch) | |
tree | d676e935a6251ac94f08d9befb4b153e18bdc6c1 /net/base/sdch_manager.h | |
parent | 8ebe1b489cd5b7d5c5305a46dfe88bc2ef5833c7 (diff) | |
download | chromium_src-23a7574cee63f96e83bbd8af774c70780a00f985.zip chromium_src-23a7574cee63f96e83bbd8af774c70780a00f985.tar.gz chromium_src-23a7574cee63f96e83bbd8af774c70780a00f985.tar.bz2 |
Avoid meta-refresh when back-button gets non-sdch content
The first page search from google will not be SDCH encoded, but will
trigger a background download of a dictionary for future use.
..but..
IF the user navigates forward from the search page, and then back, then
Chromium will fetch the content from cache after specifying in the URL
that a dictionary is now available. This new logic detects such a
situation where non-SDCH content is pulled from the cache, and avoids
the (slower and overly conservative) meta-refresh.
test=see bug for repro cases. Check about:histogram/SDCH for error codes.
bug=20457
r=kmixter
Review URL: http://codereview.chromium.org/518016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35318 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/sdch_manager.h')
-rw-r--r-- | net/base/sdch_manager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/base/sdch_manager.h b/net/base/sdch_manager.h index b5f9500..e6286f5 100644 --- a/net/base/sdch_manager.h +++ b/net/base/sdch_manager.h @@ -124,6 +124,10 @@ class SdchManager { INCOMPLETE_SDCH_CONTENT = 77, // Last window was not completely decoded. PASS_THROUGH_404_CODE = 78, // URL not found message passing through. + // This next report is very common, and not really an error scenario, but + // it exercises the error recovery logic. + PASS_THROUGH_OLD_CACHED = 79, // Back button got pre-SDCH cached content. + // Common decoded recovery methods. META_REFRESH_CACHED_RECOVERY = 80, // Probably startup tab loading. DISCARD_TENTATIVE_SDCH = 81, // Server decided not to use sdch. |