| Index: net/base/sdch_manager.cc
|
| diff --git a/net/base/sdch_manager.cc b/net/base/sdch_manager.cc
|
| index 500a1a16ed0bac200c8f632372d4090fc766117e..ad260a58e3f0c28d099c33ec65e677f6a0f85818 100644
|
| --- a/net/base/sdch_manager.cc
|
| +++ b/net/base/sdch_manager.cc
|
| @@ -224,20 +224,6 @@
|
| }
|
| }
|
|
|
| -void SdchManager::ClearData() {
|
| - blacklisted_domains_.clear();
|
| - exponential_blacklist_count_.clear();
|
| - allow_latency_experiment_.clear();
|
| - if (fetcher_.get())
|
| - fetcher_->Cancel();
|
| -
|
| - // Note that this may result in not having dictionaries we've advertised
|
| - // for incoming responses. The window is relatively small (as ClearData()
|
| - // is not expected to be called frequently), so we rely on meta-refresh
|
| - // to handle this case.
|
| - dictionaries_.clear();
|
| -}
|
| -
|
| // static
|
| void SdchManager::SdchErrorRecovery(ProblemCodes problem) {
|
| UMA_HISTOGRAM_ENUMERATION("Sdch3.ProblemCodes_4", problem, MAX_PROBLEM_CODE);
|
| @@ -266,9 +252,9 @@
|
| if (count > 0)
|
| return; // Domain is already blacklisted.
|
|
|
| - count = 1 + 2 * exponential_blacklist_count_[domain];
|
| + count = 1 + 2 * exponential_blacklist_count[domain];
|
| if (count > 0)
|
| - exponential_blacklist_count_[domain] = count;
|
| + exponential_blacklist_count[domain] = count;
|
| else
|
| count = INT_MAX;
|
|
|
| @@ -279,13 +265,13 @@
|
| SetAllowLatencyExperiment(url, false);
|
|
|
| std::string domain(StringToLowerASCII(url.host()));
|
| - exponential_blacklist_count_[domain] = INT_MAX;
|
| + exponential_blacklist_count[domain] = INT_MAX;
|
| blacklisted_domains_[domain] = INT_MAX;
|
| }
|
|
|
| void SdchManager::ClearBlacklistings() {
|
| blacklisted_domains_.clear();
|
| - exponential_blacklist_count_.clear();
|
| + exponential_blacklist_count.clear();
|
| }
|
|
|
| void SdchManager::ClearDomainBlacklisting(const std::string& domain) {
|
| @@ -299,10 +285,10 @@
|
| }
|
|
|
| int SdchManager::BlacklistDomainExponential(const std::string& domain) {
|
| - if (exponential_blacklist_count_.end() ==
|
| - exponential_blacklist_count_.find(domain))
|
| + if (exponential_blacklist_count.end() ==
|
| + exponential_blacklist_count.find(domain))
|
| return 0;
|
| - return exponential_blacklist_count_[StringToLowerASCII(domain)];
|
| + return exponential_blacklist_count[StringToLowerASCII(domain)];
|
| }
|
|
|
| bool SdchManager::IsInSupportedDomain(const GURL& url) {
|
|
|