| Index: chrome/browser/safe_browsing/safe_browsing_service.h
|
| ===================================================================
|
| --- chrome/browser/safe_browsing/safe_browsing_service.h (revision 70630)
|
| +++ chrome/browser/safe_browsing/safe_browsing_service.h (working copy)
|
| @@ -117,6 +117,10 @@
|
| // Create an instance of the safe browsing service.
|
| static SafeBrowsingService* CreateSafeBrowsingService();
|
|
|
| + // Called on UI thread to decide if safe browsing related stats
|
| + // could be reported.
|
| + bool CanReportStats() const;
|
| +
|
| // Called on the UI thread to initialize the service.
|
| void Initialize();
|
|
|
| @@ -126,6 +130,10 @@
|
| // Returns true if the url's scheme can be checked.
|
| bool CanCheckUrl(const GURL& url) const;
|
|
|
| + // Called on UI thread to decide if the download file's sha256 hash
|
| + // should be calculated for safebrowsing.
|
| + bool DownloadBinHashNeeded() 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.
|
| // Otherwise it returns false, and "client" is called asynchronously with the
|
|
|