summaryrefslogtreecommitdiffstats
path: root/chrome/service/cloud_print/printer_job_handler.h
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-11 05:32:23 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-11 05:32:23 +0000
commit10c2d69eef670a8870a53c5a0afee74810d416d6 (patch)
treec7b102852b40953ebb1da5ecce5f2a9cab0eccdb /chrome/service/cloud_print/printer_job_handler.h
parent8623b0f992684cf2bca8fc27f733ad1c31cdd8f8 (diff)
downloadchromium_src-10c2d69eef670a8870a53c5a0afee74810d416d6.zip
chromium_src-10c2d69eef670a8870a53c5a0afee74810d416d6.tar.gz
chromium_src-10c2d69eef670a8870a53c5a0afee74810d416d6.tar.bz2
Move URLFetcherDelegate to net/ and split URLFetcher between net/ and content/
Temporarily make a shim content::URLFetcherDelegate class. A future CL will replace all instances of content::URLFetcherDelegate with net::URLFetcherDelegate and remove that class. Move most URLFetcher methods to net::URLFetcher, except for the static methods (which will be handled in a future CL) and AssociateWithRenderView, which is content-specific. Replace all instances of content::URLFetcher* in the URLFetcherDelegate callbacks with net::URLFetcher* (except for rlz, which required its own special hack). BUG=118220 TEST= TBR=mnissler@chromium.org,jhawkins@chromium.org,cpu@chromium.org,estade@chromium.org,sky@chromium.org,joth@chromium.org,satish@chromium.org Review URL: https://chromiumcodereview.appspot.com/10386063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136514 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/cloud_print/printer_job_handler.h')
-rw-r--r--chrome/service/cloud_print/printer_job_handler.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/chrome/service/cloud_print/printer_job_handler.h b/chrome/service/cloud_print/printer_job_handler.h
index f093998..51daa26 100644
--- a/chrome/service/cloud_print/printer_job_handler.h
+++ b/chrome/service/cloud_print/printer_job_handler.h
@@ -110,18 +110,18 @@ class PrinterJobHandler : public base::RefCountedThreadSafe<PrinterJobHandler>,
// CloudPrintURLFetcher::Delegate implementation.
virtual CloudPrintURLFetcher::ResponseAction HandleRawResponse(
- const content::URLFetcher* source,
+ const net::URLFetcher* source,
const GURL& url,
const net::URLRequestStatus& status,
int response_code,
const net::ResponseCookies& cookies,
const std::string& data) OVERRIDE;
virtual CloudPrintURLFetcher::ResponseAction HandleRawData(
- const content::URLFetcher* source,
+ const net::URLFetcher* source,
const GURL& url,
const std::string& data) OVERRIDE;
virtual CloudPrintURLFetcher::ResponseAction HandleJSONData(
- const content::URLFetcher* source,
+ const net::URLFetcher* source,
const GURL& url,
base::DictionaryValue* json_data,
bool succeeded) OVERRIDE;
@@ -158,13 +158,13 @@ class PrinterJobHandler : public base::RefCountedThreadSafe<PrinterJobHandler>,
// Prototype for a JSON data handler.
typedef CloudPrintURLFetcher::ResponseAction
- (PrinterJobHandler::*JSONDataHandler)(const content::URLFetcher* source,
+ (PrinterJobHandler::*JSONDataHandler)(const net::URLFetcher* source,
const GURL& url,
base::DictionaryValue* json_data,
bool succeeded);
// Prototype for a data handler.
typedef CloudPrintURLFetcher::ResponseAction
- (PrinterJobHandler::*DataHandler)(const content::URLFetcher* source,
+ (PrinterJobHandler::*DataHandler)(const net::URLFetcher* source,
const GURL& url,
const std::string& data);
@@ -185,35 +185,35 @@ class PrinterJobHandler : public base::RefCountedThreadSafe<PrinterJobHandler>,
// Begin request handlers for each state in the state machine
CloudPrintURLFetcher::ResponseAction HandlePrinterUpdateResponse(
- const content::URLFetcher* source,
+ const net::URLFetcher* source,
const GURL& url,
base::DictionaryValue* json_data,
bool succeeded);
CloudPrintURLFetcher::ResponseAction HandleJobMetadataResponse(
- const content::URLFetcher* source,
+ const net::URLFetcher* source,
const GURL& url,
base::DictionaryValue* json_data,
bool succeeded);
CloudPrintURLFetcher::ResponseAction HandlePrintTicketResponse(
- const content::URLFetcher* source,
+ const net::URLFetcher* source,
const GURL& url,
const std::string& data);
CloudPrintURLFetcher::ResponseAction HandlePrintDataResponse(
- const content::URLFetcher* source,
+ const net::URLFetcher* source,
const GURL& url,
const std::string& data);
CloudPrintURLFetcher::ResponseAction HandleSuccessStatusUpdateResponse(
- const content::URLFetcher* source,
+ const net::URLFetcher* source,
const GURL& url,
base::DictionaryValue* json_data,
bool succeeded);
CloudPrintURLFetcher::ResponseAction HandleFailureStatusUpdateResponse(
- const content::URLFetcher* source,
+ const net::URLFetcher* source,
const GURL& url,
base::DictionaryValue* json_data,
bool succeeded);