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

Unified Diff: chrome/browser/safe_browsing/client_side_detection_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/safe_browsing/client_side_detection_service.h
diff --git a/chrome/browser/safe_browsing/client_side_detection_service.h b/chrome/browser/safe_browsing/client_side_detection_service.h
index 26483eec29bd7967fb5e3bf2dc065cb1083da852..d2dea5dd92169896d4040817a5457fe56b7a62c8 100644
--- a/chrome/browser/safe_browsing/client_side_detection_service.h
+++ b/chrome/browser/safe_browsing/client_side_detection_service.h
@@ -31,9 +31,9 @@
#include "base/time.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
-#include "content/public/common/url_fetcher_delegate.h"
#include "googleurl/src/gurl.h"
#include "net/base/net_util.h"
+#include "net/url_request/url_fetcher_delegate.h"
class SafeBrowsingService;
@@ -46,6 +46,7 @@ class RenderProcessHost;
}
namespace net {
+class URLFetcher;
class URLRequestContextGetter;
class URLRequestStatus;
typedef std::vector<std::string> ResponseCookies;
@@ -56,7 +57,7 @@ class ClientPhishingRequest;
class ClientPhishingResponse;
class ClientSideModel;
-class ClientSideDetectionService : public content::URLFetcherDelegate,
+class ClientSideDetectionService : public net::URLFetcherDelegate,
public content::NotificationObserver {
public:
// void(GURL phishing_url, bool is_phishing).
@@ -83,7 +84,7 @@ class ClientSideDetectionService : public content::URLFetcherDelegate,
return enabled_;
}
- // From the content::URLFetcherDelegate interface.
+ // From the net::URLFetcherDelegate interface.
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
// content::NotificationObserver overrides:
@@ -258,7 +259,7 @@ class ClientSideDetectionService : public content::URLFetcherDelegate,
std::string model_str_;
scoped_ptr<ClientSideModel> model_;
scoped_ptr<base::TimeDelta> model_max_age_;
- scoped_ptr<content::URLFetcher> model_fetcher_;
+ scoped_ptr<net::URLFetcher> model_fetcher_;
// Map of client report phishing request to the corresponding callback that
// has to be invoked when the request is done.
« no previous file with comments | « chrome/browser/profiles/profile_downloader.h ('k') | chrome/browser/safe_browsing/download_protection_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698