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 7ca7566ccd45f9709a3092173bf4daada443d8a6..02a3085b94e8c84436c8681757615a346a17eb5d 100644 |
--- a/chrome/browser/safe_browsing/client_side_detection_service.h |
+++ b/chrome/browser/safe_browsing/client_side_detection_service.h |
@@ -56,8 +56,8 @@ class ClientSideModel; |
class ClientSideDetectionService : public content::URLFetcherDelegate, |
public content::NotificationObserver { |
public: |
- typedef Callback2<GURL /* phishing URL */, bool /* is phishing */>::Type |
- ClientReportPhishingRequestCallback; |
+ // void(GURL phishing_url, bool is_phishing). |
+ typedef base::Callback<void(GURL, bool)> ClientReportPhishingRequestCallback; |
virtual ~ClientSideDetectionService(); |
@@ -99,7 +99,7 @@ class ClientSideDetectionService : public content::URLFetcherDelegate, |
// NULL if you don't care about the server verdict. |
virtual void SendClientReportPhishingRequest( |
ClientPhishingRequest* verdict, |
- ClientReportPhishingRequestCallback* callback); |
+ const ClientReportPhishingRequestCallback& callback); |
// Returns true if the given IP address string falls within a private |
// (unroutable) network block. Pages which are hosted on these IP addresses |
@@ -203,7 +203,7 @@ class ClientSideDetectionService : public content::URLFetcherDelegate, |
// This method takes ownership of both pointers. |
void StartClientReportPhishingRequest( |
ClientPhishingRequest* verdict, |
- ClientReportPhishingRequestCallback* callback); |
+ const ClientReportPhishingRequestCallback& callback); |
// Called by OnURLFetchComplete to handle the response from fetching the |
// model. |