Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3869)

Unified Diff: chrome/browser/net/sdch_dictionary_fetcher.cc

Issue 6347033: net: Add namespace net to Sdch* classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: namespace on unittest Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698