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

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

Issue 10412050: Change most content::URLFetcher references to net::URLFetcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ChromeOS, address comments Created 8 years, 7 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
diff --git a/chrome/service/cloud_print/cloud_print_url_fetcher.cc b/chrome/service/cloud_print/cloud_print_url_fetcher.cc
index 3a8990a4a2c3b50d63ba30718d74c8056490df17..4b9dff602744365cb6edfa248fa361799b38a64c 100644
--- a/chrome/service/cloud_print/cloud_print_url_fetcher.cc
+++ b/chrome/service/cloud_print/cloud_print_url_fetcher.cc
@@ -12,6 +12,7 @@
#include "chrome/service/cloud_print/cloud_print_token_store.h"
#include "chrome/service/net/service_url_request_context.h"
#include "chrome/service/service_process.h"
+#include "content/public/common/url_fetcher.h"
#include "googleurl/src/gurl.h"
#include "net/http/http_status_code.h"
#include "net/url_request/url_request_status.h"
@@ -31,7 +32,7 @@ void CloudPrintURLFetcher::StartGetRequest(
int max_retries,
const std::string& additional_headers) {
StartRequestHelper(url,
- content::URLFetcher::GET,
+ net::URLFetcher::GET,
delegate,
max_retries,
std::string(),
@@ -47,7 +48,7 @@ void CloudPrintURLFetcher::StartPostRequest(
const std::string& post_data,
const std::string& additional_headers) {
StartRequestHelper(url,
- content::URLFetcher::POST,
+ net::URLFetcher::POST,
delegate,
max_retries,
post_data_mime_type,
@@ -133,7 +134,7 @@ void CloudPrintURLFetcher::OnURLFetchComplete(
void CloudPrintURLFetcher::StartRequestHelper(
const GURL& url,
- content::URLFetcher::RequestType request_type,
+ net::URLFetcher::RequestType request_type,
Delegate* delegate,
int max_retries,
const std::string& post_data_mime_type,
@@ -149,7 +150,7 @@ void CloudPrintURLFetcher::StartRequestHelper(
request_->SetMaxRetries(max_retries);
delegate_ = delegate;
SetupRequestHeaders();
- if (request_type == content::URLFetcher::POST) {
+ if (request_type == net::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