| Index: chrome/browser/net/sdch_dictionary_fetcher.cc
|
| diff --git a/chrome/browser/net/sdch_dictionary_fetcher.cc b/chrome/browser/net/sdch_dictionary_fetcher.cc
|
| index 5efae09f0733a766e1ee254435cceec97869456c..2db03ed676ef0a797ed133265918a52838806658 100644
|
| --- a/chrome/browser/net/sdch_dictionary_fetcher.cc
|
| +++ b/chrome/browser/net/sdch_dictionary_fetcher.cc
|
| @@ -16,18 +16,23 @@ SdchDictionaryFetcher::SdchDictionaryFetcher()
|
| SdchDictionaryFetcher::~SdchDictionaryFetcher() {
|
| }
|
|
|
| +// static
|
| +void SdchDictionaryFetcher::Shutdown() {
|
| + net::SdchManager::Shutdown();
|
| +}
|
| +
|
| void SdchDictionaryFetcher::Schedule(const GURL& dictionary_url) {
|
| // Avoid pushing duplicate copy onto queue. We may fetch this url again later
|
| // and get a different dictionary, but there is no reason to have it in the
|
| // queue twice at one time.
|
| if (!fetch_queue_.empty() && fetch_queue_.back() == dictionary_url) {
|
| - SdchManager::SdchErrorRecovery(
|
| - SdchManager::DICTIONARY_ALREADY_SCHEDULED_TO_DOWNLOAD);
|
| + net::SdchManager::SdchErrorRecovery(
|
| + net::SdchManager::DICTIONARY_ALREADY_SCHEDULED_TO_DOWNLOAD);
|
| return;
|
| }
|
| if (attempted_load_.find(dictionary_url) != attempted_load_.end()) {
|
| - SdchManager::SdchErrorRecovery(
|
| - SdchManager::DICTIONARY_ALREADY_TRIED_TO_DOWNLOAD);
|
| + net::SdchManager::SdchErrorRecovery(
|
| + net::SdchManager::DICTIONARY_ALREADY_TRIED_TO_DOWNLOAD);
|
| return;
|
| }
|
| attempted_load_.insert(dictionary_url);
|
| @@ -73,7 +78,7 @@ void SdchDictionaryFetcher::OnURLFetchComplete(
|
| const std::string& data) {
|
| if ((200 == response_code) &&
|
| (status.status() == net::URLRequestStatus::SUCCESS))
|
| - SdchManager::Global()->AddSdchDictionary(data, url);
|
| + net::SdchManager::Global()->AddSdchDictionary(data, url);
|
| current_fetch_.reset(NULL);
|
| ScheduleDelayedRun();
|
| }
|
|
|