diff options
Diffstat (limited to 'chrome/browser/safe_browsing/safe_browsing_util.h')
-rw-r--r-- | chrome/browser/safe_browsing/safe_browsing_util.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_util.h b/chrome/browser/safe_browsing/safe_browsing_util.h index a034b73..a184ca6 100644 --- a/chrome/browser/safe_browsing/safe_browsing_util.h +++ b/chrome/browser/safe_browsing/safe_browsing_util.h @@ -277,6 +277,15 @@ namespace safe_browsing_util { extern const char kMalwareList[]; extern const char kPhishingList[]; +// Converts between the SafeBrowsing list names and their enumerated value. +// If the list names change, both of these methods must be updated. +enum ListType { + MALWARE = 0, + PHISH = 1, +}; +int GetListId(const std::string& name); +std::string GetListName(int list_id); + void FreeChunks(std::deque<SBChunk>* chunks); // Given a URL, returns all the hosts we need to check. They are returned |