| 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.
|
|
|