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

Unified Diff: chrome/browser/safe_browsing/client_side_detection_service.h

Issue 8375039: Create a content::UrlFetcher interface that lives in content/public/common and convert users to i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments 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 107061)
+++ chrome/browser/safe_browsing/client_side_detection_service.h (working copy)
@@ -81,7 +81,7 @@
}
// From the content::URLFetcherDelegate interface.
- virtual void OnURLFetchComplete(const URLFetcher* source) OVERRIDE;
+ virtual void OnURLFetchComplete(const content::URLFetcher* source) OVERRIDE;
// content::NotificationObserver overrides:
virtual void Observe(int type,
@@ -207,7 +207,7 @@
// Called by OnURLFetchComplete to handle the response from fetching the
// model.
- void HandleModelResponse(const URLFetcher* source,
+ void HandleModelResponse(const content::URLFetcher* source,
const GURL& url,
const net::URLRequestStatus& status,
int response_code,
@@ -216,7 +216,7 @@
// Called by OnURLFetchComplete to handle the server response from
// sending the client-side phishing request.
- void HandlePhishingVerdict(const URLFetcher* source,
+ void HandlePhishingVerdict(const content::URLFetcher* source,
const GURL& url,
const net::URLRequestStatus& status,
int response_code,
@@ -263,12 +263,13 @@
std::string model_str_;
scoped_ptr<ClientSideModel> model_;
scoped_ptr<base::TimeDelta> model_max_age_;
- scoped_ptr<URLFetcher> model_fetcher_;
+ scoped_ptr<content::URLFetcher> model_fetcher_;
// Map of client report phishing request to the corresponding callback that
// has to be invoked when the request is done.
struct ClientReportInfo;
- std::map<const URLFetcher*, ClientReportInfo*> client_phishing_reports_;
+ std::map<const content::URLFetcher*, ClientReportInfo*>
+ client_phishing_reports_;
// Cache of completed requests. Used to satisfy requests for the same urls
// as long as the next request falls within our caching window (which is

Powered by Google App Engine
This is Rietveld 408576698