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

Unified Diff: chrome/browser/web_resource/web_resource_service.h

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
Index: chrome/browser/web_resource/web_resource_service.h
diff --git a/chrome/browser/web_resource/web_resource_service.h b/chrome/browser/web_resource/web_resource_service.h
index 02e88e6e254f65b4b6510092a863fc453ebc4a29..af44a477d30478b9d37aedbf8246598d312133f3 100644
--- a/chrome/browser/web_resource/web_resource_service.h
+++ b/chrome/browser/web_resource/web_resource_service.h
@@ -11,8 +11,8 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
-#include "content/public/common/url_fetcher_delegate.h"
#include "googleurl/src/gurl.h"
+#include "net/url_request/url_fetcher_delegate.h"
class PrefService;
class ResourceDispatcherHost;
@@ -21,11 +21,15 @@ namespace base {
class DictionaryValue;
}
+namespace net {
+class URLFetcher;
+}
+
// A WebResourceService fetches JSON data from a web server and periodically
// refreshes it.
class WebResourceService
: public base::RefCountedThreadSafe<WebResourceService>,
- public content::URLFetcherDelegate {
+ public net::URLFetcherDelegate {
public:
WebResourceService(PrefService* prefs,
const GURL& web_resource_server,
@@ -50,7 +54,7 @@ class WebResourceService
class UnpackerClient;
friend class base::RefCountedThreadSafe<WebResourceService>;
- // content::URLFetcherDelegate implementation:
+ // net::URLFetcherDelegate implementation:
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
// Schedules a fetch after |delay_ms| milliseconds.
@@ -67,7 +71,7 @@ class WebResourceService
base::WeakPtrFactory<WebResourceService> weak_ptr_factory_;
// The tool that fetches the url data from the server.
- scoped_ptr<content::URLFetcher> url_fetcher_;
+ scoped_ptr<net::URLFetcher> url_fetcher_;
// True if we are currently fetching or unpacking data. If we are asked to
// start a fetch when we are still fetching resource data, schedule another
« no previous file with comments | « chrome/browser/ui/webui/ntp/suggestions_source_discovery.cc ('k') | chrome/browser/web_resource/web_resource_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698