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

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

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
Index: chrome/service/cloud_print/cloud_print_url_fetcher.h
===================================================================
--- chrome/service/cloud_print/cloud_print_url_fetcher.h (revision 107061)
+++ chrome/service/cloud_print/cloud_print_url_fetcher.h (working copy)
@@ -46,7 +46,7 @@
// returns CONTINUE_PROCESSING, we will then check for network
// errors. Most implementations will not override this.
virtual ResponseAction HandleRawResponse(
- const URLFetcher* source,
+ const content::URLFetcher* source,
const GURL& url,
const net::URLRequestStatus& status,
int response_code,
@@ -61,7 +61,7 @@
// Handling the raw data is needed when the expected response is NOT JSON
// (like in the case of a print ticket response or a print job download
// response).
- virtual ResponseAction HandleRawData(const URLFetcher* source,
+ virtual ResponseAction HandleRawData(const content::URLFetcher* source,
const GURL& url,
const std::string& data) {
return CONTINUE_PROCESSING;
@@ -69,7 +69,7 @@
// This will be invoked only if HandleRawResponse and HandleRawData return
// CONTINUE_PROCESSING AND if the response contains a valid JSON dictionary.
// |succeeded| is the value of the "success" field in the response JSON.
- virtual ResponseAction HandleJSONData(const URLFetcher* source,
+ virtual ResponseAction HandleJSONData(const content::URLFetcher* source,
const GURL& url,
base::DictionaryValue* json_data,
bool succeeded) {
@@ -96,7 +96,7 @@
const std::string& additional_headers);
// content::URLFetcherDelegate implementation.
- virtual void OnURLFetchComplete(const URLFetcher* source);
+ virtual void OnURLFetchComplete(const content::URLFetcher* source);
protected:
friend class base::RefCountedThreadSafe<CloudPrintURLFetcher>;
@@ -115,7 +115,7 @@
const std::string& additional_headers);
void SetupRequestHeaders();
- scoped_ptr<URLFetcher> request_;
+ scoped_ptr<content::URLFetcher> request_;
Delegate* delegate_;
int num_retries_;
URLFetcher::RequestType request_type_;
« no previous file with comments | « chrome/service/cloud_print/cloud_print_proxy_backend.cc ('k') | chrome/service/cloud_print/cloud_print_url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698