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

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

Issue 8375039: Create a content::UrlFetcher interface that lives in content/public/common and convert users to i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 9 years, 2 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
« no previous file with comments | « chrome/browser/net/sdch_dictionary_fetcher.h ('k') | chrome/browser/plugin_download_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/sdch_dictionary_fetcher.cc
===================================================================
--- chrome/browser/net/sdch_dictionary_fetcher.cc (revision 107061)
+++ chrome/browser/net/sdch_dictionary_fetcher.cc (working copy)
@@ -67,16 +67,17 @@
current_fetch_.reset(new URLFetcher(fetch_queue_.front(), URLFetcher::GET,
this));
fetch_queue_.pop();
- current_fetch_->set_request_context(context);
+ current_fetch_->SetRequestContext(context);
current_fetch_->Start();
}
-void SdchDictionaryFetcher::OnURLFetchComplete(const URLFetcher* source) {
- if ((200 == source->response_code()) &&
- (source->status().status() == net::URLRequestStatus::SUCCESS)) {
+void SdchDictionaryFetcher::OnURLFetchComplete(
+ const content::URLFetcher* source) {
+ if ((200 == source->GetResponseCode()) &&
+ (source->GetStatus().status() == net::URLRequestStatus::SUCCESS)) {
std::string data;
source->GetResponseAsString(&data);
- net::SdchManager::Global()->AddSdchDictionary(data, source->url());
+ net::SdchManager::Global()->AddSdchDictionary(data, source->GetUrl());
}
current_fetch_.reset(NULL);
ScheduleDelayedRun();
« no previous file with comments | « chrome/browser/net/sdch_dictionary_fetcher.h ('k') | chrome/browser/plugin_download_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698