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

Unified Diff: chrome/browser/chrome_to_mobile_service.cc

Issue 10392192: Remove content::URLFetcherDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More cleanup 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
« no previous file with comments | « chrome/browser/chrome_to_mobile_service.h ('k') | chrome/browser/chromeos/customization_document.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_to_mobile_service.cc
diff --git a/chrome/browser/chrome_to_mobile_service.cc b/chrome/browser/chrome_to_mobile_service.cc
index 2009cdf9c56b0b1aacde6e4f624b7c274701f383..9b1eb231dff86f4b3b082c4c4718bd030d70115c 100644
--- a/chrome/browser/chrome_to_mobile_service.cc
+++ b/chrome/browser/chrome_to_mobile_service.cc
@@ -135,7 +135,7 @@ void CreateSnapshotFile(CreateSnapshotFileCallback callback) {
// Send snapshot file contents as POST data in a job submit request.
// Call this as a BlockingPoolSequencedTask (before posting DeleteSnapshotFile).
-void SubmitSnapshotFile(content::URLFetcher* request,
+void SubmitSnapshotFile(net::URLFetcher* request,
const ChromeToMobileService::RequestData& data) {
std::string file;
if (file_util::ReadFileToString(data.snapshot_path, &file) && !file.empty()) {
@@ -253,7 +253,7 @@ void ChromeToMobileService::SendToMobile(const string16& mobile_id,
data.snapshot_id = send_snapshot ? guid::GenerateGUID() : std::string();
data.type = send_snapshot ? DELAYED_SNAPSHOT : URL;
- content::URLFetcher* submit_url = CreateRequest(data);
+ net::URLFetcher* submit_url = CreateRequest(data);
request_observer_map_[submit_url] = observer;
submit_url->Start();
@@ -261,7 +261,7 @@ void ChromeToMobileService::SendToMobile(const string16& mobile_id,
LogMetric(SENDING_SNAPSHOT);
data.type = SNAPSHOT;
- content::URLFetcher* submit_snapshot = CreateRequest(data);
+ net::URLFetcher* submit_snapshot = CreateRequest(data);
request_observer_map_[submit_snapshot] = observer;
content::BrowserThread::PostBlockingPoolSequencedTask(
data.snapshot_path.AsUTF8Unsafe(), FROM_HERE,
@@ -342,11 +342,11 @@ void ChromeToMobileService::SnapshotFileCreated(
}
}
-content::URLFetcher* ChromeToMobileService::CreateRequest(
+net::URLFetcher* ChromeToMobileService::CreateRequest(
const RequestData& data) {
bool get = data.type != SNAPSHOT;
GURL service_url(cloud_print_url_->GetCloudPrintServiceURL());
- content::URLFetcher* request = content::URLFetcher::Create(
+ net::URLFetcher* request = content::URLFetcher::Create(
data.type == SEARCH ? GetSearchURL(service_url) :
GetSubmitURL(service_url, data),
get ? content::URLFetcher::GET : content::URLFetcher::POST, this);
« no previous file with comments | « chrome/browser/chrome_to_mobile_service.h ('k') | chrome/browser/chromeos/customization_document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698