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

Unified Diff: chrome/browser/safe_browsing/client_side_detection_service.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/browser/safe_browsing/client_side_detection_service.h
===================================================================
--- chrome/browser/safe_browsing/client_side_detection_service.h (revision 106929)
+++ chrome/browser/safe_browsing/client_side_detection_service.h (working copy)
@@ -29,7 +29,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/task.h"
#include "base/time.h"
-#include "content/common/net/url_fetcher.h"
+#include "content/public/common/url_fetcher_delegate.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "googleurl/src/gurl.h"
@@ -45,6 +45,7 @@
namespace net {
class URLRequestContextGetter;
class URLRequestStatus;
+typedef std::vector<std::string> ResponseCookies;
} // namespace net
namespace safe_browsing {
@@ -52,7 +53,7 @@
class ClientPhishingResponse;
class ClientSideModel;
-class ClientSideDetectionService : public URLFetcher::Delegate,
+class ClientSideDetectionService : public content::URLFetcherDelegate,
public content::NotificationObserver {
public:
typedef Callback2<GURL /* phishing URL */, bool /* is phishing */>::Type
@@ -79,13 +80,8 @@
return enabled_;
}
- // From the URLFetcher::Delegate interface.
- virtual void OnURLFetchComplete(const URLFetcher* source,
- const GURL& url,
- const net::URLRequestStatus& status,
- int response_code,
- const net::ResponseCookies& cookies,
- const std::string& data) OVERRIDE;
+ // From the content::URLFetcherDelegate interface.
+ virtual void OnURLFetchComplete(const URLFetcher* source) OVERRIDE;
// content::NotificationObserver overrides:
virtual void Observe(int type,

Powered by Google App Engine
This is Rietveld 408576698