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

Unified Diff: components/safe_browsing_db/util.h

Issue 1673733002: Support new Safe Browsing list "goog-badresource-shavar" in SafeBrowsingDatabase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/util.h
diff --git a/components/safe_browsing_db/util.h b/components/safe_browsing_db/util.h
index d2e46ee68fd14ada187b6db82257b3ea61fa8944..cd7bffa12c92691286d15e0e58ab5b1e7e159033 100644
--- a/components/safe_browsing_db/util.h
+++ b/components/safe_browsing_db/util.h
@@ -47,6 +47,10 @@ enum SBThreatType {
// Url detected by the client-side malware IP list. This IP list is part
// of the client side detection model.
SB_THREAT_TYPE_CLIENT_SIDE_MALWARE_URL,
+
+ // Url leads to a blacklisted resource script. Note that no warnings should be
+ // shown on this threat type, but an incident report might be sent.
+ SB_THREAT_TYPE_BLACKLISTED_RESOURCE,
};
@@ -97,8 +101,10 @@ extern const char kIPBlacklist[];
extern const char kUnwantedUrlList[];
// SafeBrowsing off-domain inclusion whitelist list name.
extern const char kInclusionWhitelist[];
+// Blacklisted resource URLs list name.
+extern const char kResourceBlacklist[];
// This array must contain all Safe Browsing lists.
-extern const char* kAllLists[9];
+extern const char* kAllLists[10];
enum ListType {
@@ -123,6 +129,8 @@ enum ListType {
// See above comment. Leave 15 available.
INCLUSIONWHITELIST = 16,
// See above comment. Leave 17 available.
+ RESOURCEBLACKLIST = 18,
+ // See above comment. Leave 19 available.
};

Powered by Google App Engine
This is Rietveld 408576698