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

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

Issue 16595: Ignore GetHash results for lists that we don't support. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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/safe_browsing_util.h
===================================================================
--- chrome/browser/safe_browsing/safe_browsing_util.h (revision 7554)
+++ chrome/browser/safe_browsing/safe_browsing_util.h (working copy)
@@ -277,6 +277,15 @@
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
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_database_bloom.cc ('k') | chrome/browser/safe_browsing/safe_browsing_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698