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

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

Issue 7134017: Make safe browsing work in a multi-profile environment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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/safe_browsing_service.h
===================================================================
--- chrome/browser/safe_browsing/safe_browsing_service.h (revision 90024)
+++ chrome/browser/safe_browsing/safe_browsing_service.h (working copy)
@@ -144,13 +144,13 @@
// Returns true if the url's scheme can be checked.
bool CanCheckUrl(const GURL& url) const;
- // Called on UI thread to decide if safe browsing related stats
- // could be reported.
+ // Called on UI thread to decide if safe browsing related stats should be
+ // reported.
bool CanReportStats() const;
- // Called on UI thread to decide if the download file's sha256 hash
- // should be calculated for safebrowsing.
- bool DownloadBinHashNeeded() const;
+ // Called on UI thread to decide if the download file's sha256 hash should be
+ // calculated for safebrowsing.
+ bool DownloadBinHashNeeded(bool safe_browsing_enabled) const;
// Called on the IO thread to check if the given url is safe or not. If we
// can synchronously determine that the url is safe, CheckUrl returns true.
@@ -265,7 +265,8 @@
const GURL& referrer_url,
bool is_subresource,
UrlCheckResult threat_type,
- const std::string& post_data);
+ const std::string& post_data,
+ bool safe_browsing_enabled);
protected:
// Creates the safe browsing service. Need to initialize before using.

Powered by Google App Engine
This is Rietveld 408576698