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

Unified Diff: components/safe_browsing_db/database_manager.h

Issue 1638223003: Add support for a module whitelist (goog-whitemodule-digest256) to the safe browsing db (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add method to access the whitelist + unit tests Created 4 years, 10 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: components/safe_browsing_db/database_manager.h
diff --git a/components/safe_browsing_db/database_manager.h b/components/safe_browsing_db/database_manager.h
index 4924cacb32503fd883bdb906f0c620691e6205af..32efe097119b77e93b080eff76e46222b6f5d93e 100644
--- a/components/safe_browsing_db/database_manager.h
+++ b/components/safe_browsing_db/database_manager.h
@@ -118,6 +118,12 @@ class SafeBrowsingDatabaseManager
// error occurs. This method must be called on the IO thread.
virtual bool MatchInclusionWhitelistUrl(const GURL& url) = 0;
+ // Check if |str| matches any of the full-length hashes from the module
Nathan Parker 2016/02/16 21:20:53 Add a line describing |str|'s format, and describe
proberge 2016/02/16 22:30:17 Done.
+ // 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 must be called on the IO thread.
+ virtual bool MatchModuleWhitelistString(const std::string& str) = 0;
+
// Check if the CSD malware IP matching kill switch is turned on.
virtual bool IsMalwareKillSwitchOn() = 0;

Powered by Google App Engine
This is Rietveld 408576698