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

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

Issue 8373021: Convert URLFetcher::Delegates to use an interface in content/public/common. Also remove the old U... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync and remove unncessary forward declares 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 106929)
+++ chrome/service/cloud_print/cloud_print_url_fetcher.h (working copy)
@@ -8,8 +8,10 @@
#include <string>
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "content/common/net/url_fetcher.h"
+#include "content/public/common/url_fetcher_delegate.h"
class GURL;
@@ -18,6 +20,7 @@
}
namespace net {
+class URLRequestContextGetter;
class URLRequestStatus;
} // namespace net
@@ -28,7 +31,7 @@
// must also be retried.
class CloudPrintURLFetcher
: public base::RefCountedThreadSafe<CloudPrintURLFetcher>,
- public URLFetcher::Delegate {
+ public content::URLFetcherDelegate {
public:
enum ResponseAction {
CONTINUE_PROCESSING,
@@ -92,12 +95,9 @@
const std::string& post_data,
const std::string& additional_headers);
- // URLFetcher::Delegate implementation.
- virtual void OnURLFetchComplete(const URLFetcher* source, const GURL& url,
- const net::URLRequestStatus& status,
- int response_code,
- const net::ResponseCookies& cookies,
- const std::string& data);
+ // content::URLFetcherDelegate implementation.
+ virtual void OnURLFetchComplete(const URLFetcher* source);
+
protected:
friend class base::RefCountedThreadSafe<CloudPrintURLFetcher>;
virtual ~CloudPrintURLFetcher();

Powered by Google App Engine
This is Rietveld 408576698