summaryrefslogtreecommitdiffstats
path: root/chrome/browser/safe_browsing/safe_browsing_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/safe_browsing/safe_browsing_util.cc')
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_util.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_util.cc b/chrome/browser/safe_browsing/safe_browsing_util.cc
index 3951484..ef620a7 100644
--- a/chrome/browser/safe_browsing/safe_browsing_util.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_util.cc
@@ -163,6 +163,7 @@ const char kBinUrlList[] = "goog-badbinurl-shavar";
const char kBinHashList[] = "goog-badbin-digestvar-disabled";
const char kCsdWhiteList[] = "goog-csdwhite-sha256";
const char kDownloadWhiteList[] = "goog-downloadwhite-digest256";
+const char kExtensionBlacklist[] = "goog-badcrxids-digestvar";
ListType GetListId(const std::string& name) {
ListType id;
@@ -178,6 +179,8 @@ ListType GetListId(const std::string& name) {
id = CSDWHITELIST;
} else if (name == safe_browsing_util::kDownloadWhiteList) {
id = DOWNLOADWHITELIST;
+ } else if (name == safe_browsing_util::kExtensionBlacklist) {
+ id = EXTENSIONBLACKLIST;
} else {
id = INVALID;
}
@@ -204,6 +207,9 @@ bool GetListName(ListType list_id, std::string* list) {
case DOWNLOADWHITELIST:
*list = safe_browsing_util::kDownloadWhiteList;
break;
+ case EXTENSIONBLACKLIST:
+ *list = safe_browsing_util::kExtensionBlacklist;
+ break;
default:
return false;
}
@@ -469,6 +475,10 @@ bool IsBadbinhashList(const std::string& list_name) {
return list_name.compare(kBinHashList) == 0;
}
+bool IsExtensionList(const std::string& list_name) {
+ return list_name.compare(kExtensionBlacklist) == 0;
+}
+
GURL GeneratePhishingReportUrl(const std::string& report_page,
const std::string& url_to_report,
bool is_client_side_detection) {