Index: chrome/browser/safe_browsing/safe_browsing_service.h |
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.h b/chrome/browser/safe_browsing/safe_browsing_service.h |
index 79003465448c7fafe2473ce5d3e6cb5017925d2a..1b4f13aac8ac6dbc4ffd9ef8de9710cc0db16e6c 100644 |
--- a/chrome/browser/safe_browsing/safe_browsing_service.h |
+++ b/chrome/browser/safe_browsing/safe_browsing_service.h |
@@ -208,6 +208,12 @@ class SafeBrowsingService |
// This method is expected to be called on the IO thread. |
virtual bool MatchDownloadWhitelistUrl(const GURL& url); |
+ // Check if |str| matches any of the full-length hashes from the download |
+ // whitelist. Returns true if there was a match and false otherwise. |
+ // To make sure we are conservative we will return true if an error occurs. |
+ // This method is expected to be called on the IO thread. |
+ virtual bool MatchDownloadWhitelistString(const std::string& str); |
+ |
// Called on the IO thread to cancel a pending check if the result is no |
// longer needed. |
void CancelCheck(Client* client); |