From 625edd6ec115e7de3dd1e7d1e6f20f934b3cdcfe Mon Sep 17 00:00:00 2001 From: "jar@chromium.org" Date: Wed, 25 Feb 2009 18:24:02 +0000 Subject: Correct enums in SDCH problem codes r=huanr Review URL: http://codereview.chromium.org/28123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10350 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/sdch_manager.cc | 2 +- net/base/sdch_manager.h | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'net') diff --git a/net/base/sdch_manager.cc b/net/base/sdch_manager.cc index de17905..458c3a4 100644 --- a/net/base/sdch_manager.cc +++ b/net/base/sdch_manager.cc @@ -32,7 +32,7 @@ SdchManager* SdchManager::Global() { // static void SdchManager::SdchErrorRecovery(ProblemCodes problem) { - static LinearHistogram histogram("Sdch.ProblemCodes_2", MIN_PROBLEM_CODE, + static LinearHistogram histogram("Sdch.ProblemCodes_3", MIN_PROBLEM_CODE, MAX_PROBLEM_CODE - 1, MAX_PROBLEM_CODE); histogram.SetFlags(kUmaTargetedHistogramFlag); histogram.Add(problem); diff --git a/net/base/sdch_manager.h b/net/base/sdch_manager.h index 023175c..f622236 100644 --- a/net/base/sdch_manager.h +++ b/net/base/sdch_manager.h @@ -25,6 +25,7 @@ #include #include "base/ref_counted.h" +#include "base/scoped_ptr.h" #include "base/time.h" #include "googleurl/src/gurl.h" @@ -60,10 +61,6 @@ class SdchManager { ADDED_CONTENT_ENCODING = 1, FIXED_CONTENT_ENCODING = 2, FIXED_CONTENT_ENCODINGS = 3, - // Content encoding correction when we're not even tagged as HTML!?! - BINARY_ADDED_CONTENT_ENCODING = 4, - BINARY_FIXED_CONTENT_ENCODING = 5, - BINARY_FIXED_CONTENT_ENCODINGS = 6, // Content decoding errors. DECODE_HEADER_ERROR = 4, @@ -72,6 +69,11 @@ class SdchManager { // More content-encoding correction problems. OPTIONAL_GUNZIP_ENCODING_ADDED = 6, + // Content encoding correction when we're not even tagged as HTML!?! + BINARY_ADDED_CONTENT_ENCODING = 7, + BINARY_FIXED_CONTENT_ENCODING = 8, + BINARY_FIXED_CONTENT_ENCODINGS = 9, + // Dictionary selection for use problems. DICTIONARY_FOUND_HAS_WRONG_DOMAIN = 10, DICTIONARY_FOUND_HAS_WRONG_PORT_LIST = 11, -- cgit v1.1