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

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

Issue 42553002: Mostly integrate new malware IP blacklist with the csd client. When (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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: chrome/browser/safe_browsing/database_manager.h
diff --git a/chrome/browser/safe_browsing/database_manager.h b/chrome/browser/safe_browsing/database_manager.h
index ed17f5af1a60ffba0daf6c158618f644364fdbd2..43147b4fd9b8de5b4e9f3a4f37f06ad5c1b11306 100644
--- a/chrome/browser/safe_browsing/database_manager.h
+++ b/chrome/browser/safe_browsing/database_manager.h
@@ -177,6 +177,11 @@ class SafeBrowsingDatabaseManager
// Check if the CSD malware IP matching kill switch is turned on.
virtual bool IsMalwareKillSwitchOn();
+ // Check if the given IP address (either IPv4 or IPv6) matches the malware
+ // IP blacklist.
+ // This method is expected to be called on the IO thread.
+ virtual bool MatchMalwareIP(const std::string& ip_address);
+
// 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