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

Unified Diff: chrome/service/cloud_print/printer_job_handler.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/service/cloud_print/printer_job_handler.h ('k') | chrome/service/gaia/service_gaia_authenticator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/printer_job_handler.cc
===================================================================
--- chrome/service/cloud_print/printer_job_handler.cc (revision 107061)
+++ chrome/service/cloud_print/printer_job_handler.cc (working copy)
@@ -282,7 +282,7 @@
// CloudPrintURLFetcher::Delegate implementation.
CloudPrintURLFetcher::ResponseAction PrinterJobHandler::HandleRawResponse(
- const URLFetcher* source,
+ const content::URLFetcher* source,
const GURL& url,
const net::URLRequestStatus& status,
int response_code,
@@ -302,7 +302,7 @@
}
CloudPrintURLFetcher::ResponseAction PrinterJobHandler::HandleRawData(
- const URLFetcher* source,
+ const content::URLFetcher* source,
const GURL& url,
const std::string& data) {
if (!next_data_handler_)
@@ -311,7 +311,7 @@
}
CloudPrintURLFetcher::ResponseAction PrinterJobHandler::HandleJSONData(
- const URLFetcher* source,
+ const content::URLFetcher* source,
const GURL& url,
DictionaryValue* json_data,
bool succeeded) {
@@ -386,7 +386,7 @@
// Begin Response handlers
CloudPrintURLFetcher::ResponseAction
PrinterJobHandler::HandlePrinterUpdateResponse(
- const URLFetcher* source,
+ const content::URLFetcher* source,
const GURL& url,
DictionaryValue* json_data,
bool succeeded) {
@@ -400,7 +400,7 @@
CloudPrintURLFetcher::ResponseAction
PrinterJobHandler::HandlePrinterDeleteResponse(
- const URLFetcher* source,
+ const content::URLFetcher* source,
const GURL& url,
DictionaryValue* json_data,
bool succeeded) {
@@ -414,7 +414,7 @@
CloudPrintURLFetcher::ResponseAction
PrinterJobHandler::HandleJobMetadataResponse(
- const URLFetcher* source,
+ const content::URLFetcher* source,
const GURL& url,
DictionaryValue* json_data,
bool succeeded) {
@@ -462,7 +462,7 @@
}
CloudPrintURLFetcher::ResponseAction
-PrinterJobHandler::HandlePrintTicketResponse(const URLFetcher* source,
+PrinterJobHandler::HandlePrintTicketResponse(const content::URLFetcher* source,
const GURL& url,
const std::string& data) {
VLOG(1) << "CP_PROXY: Handle print ticket response, id: "
@@ -485,7 +485,7 @@
}
CloudPrintURLFetcher::ResponseAction
-PrinterJobHandler::HandlePrintDataResponse(const URLFetcher* source,
+PrinterJobHandler::HandlePrintDataResponse(const content::URLFetcher* source,
const GURL& url,
const std::string& data) {
VLOG(1) << "CP_PROXY: Handle print data response, id: "
@@ -495,7 +495,7 @@
int ret = file_util::WriteFile(job_details_.print_data_file_path_,
data.c_str(),
data.length());
- source->response_headers()->GetMimeType(
+ source->GetResponseHeaders()->GetMimeType(
&job_details_.print_data_mime_type_);
DCHECK(ret == static_cast<int>(data.length()));
if (ret == static_cast<int>(data.length())) {
@@ -514,7 +514,7 @@
CloudPrintURLFetcher::ResponseAction
PrinterJobHandler::HandleSuccessStatusUpdateResponse(
- const URLFetcher* source,
+ const content::URLFetcher* source,
const GURL& url,
DictionaryValue* json_data,
bool succeeded) {
@@ -541,7 +541,7 @@
CloudPrintURLFetcher::ResponseAction
PrinterJobHandler::HandleFailureStatusUpdateResponse(
- const URLFetcher* source,
+ const content::URLFetcher* source,
const GURL& url,
DictionaryValue* json_data,
bool succeeded) {
« no previous file with comments | « chrome/service/cloud_print/printer_job_handler.h ('k') | chrome/service/gaia/service_gaia_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698