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

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

Issue 8762007: Implement a whitelist for code-signing certificates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 9 years, 1 month 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
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);

Powered by Google App Engine
This is Rietveld 408576698