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

Unified Diff: chrome/service/cloud_print/cloud_print_url_fetcher.cc

Issue 8403017: Rename URLFetcher to be URLFetcherImpl, now that we have the content::URLFetcher interface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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
Index: chrome/service/cloud_print/cloud_print_url_fetcher.cc
===================================================================
--- chrome/service/cloud_print/cloud_print_url_fetcher.cc (revision 107484)
+++ chrome/service/cloud_print/cloud_print_url_fetcher.cc (working copy)
@@ -26,7 +26,7 @@
int max_retries,
const std::string& additional_headers) {
StartRequestHelper(url,
- URLFetcher::GET,
+ content::URLFetcher::GET,
delegate,
max_retries,
std::string(),
@@ -42,7 +42,7 @@
const std::string& post_data,
const std::string& additional_headers) {
StartRequestHelper(url,
- URLFetcher::POST,
+ content::URLFetcher::POST,
delegate,
max_retries,
post_data_mime_type,
@@ -131,14 +131,14 @@
DCHECK(delegate);
// Persist the additional headers in case we need to retry the request.
additional_headers_ = additional_headers;
- request_.reset(new URLFetcher(url, request_type, this));
+ request_.reset(content::URLFetcher::Create(url, request_type, this));
request_->SetRequestContext(GetRequestContextGetter());
// Since we implement our own retry logic, disable the retry in URLFetcher.
request_->SetAutomaticallyRetryOn5xx(false);
request_->SetMaxRetries(max_retries);
SetupRequestHeaders();
delegate_ = delegate;
- if (request_type == URLFetcher::POST) {
+ if (request_type == content::URLFetcher::POST) {
request_->SetUploadData(post_data_mime_type, post_data);
}
« no previous file with comments | « chrome/service/cloud_print/cloud_print_url_fetcher.h ('k') | chrome/service/gaia/service_gaia_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698