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

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

Issue 11615011: Small modifications to safebrowsing code to make it simpler to add the extension (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 7 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_database.h
diff --git a/chrome/browser/safe_browsing/safe_browsing_database.h b/chrome/browser/safe_browsing/safe_browsing_database.h
index 07346c9b77015c73e872df7be2d6a41ad8ced76f..5abc97f3af04b3eb7e19da2956f053b75d239e6a 100644
--- a/chrome/browser/safe_browsing/safe_browsing_database.h
+++ b/chrome/browser/safe_browsing/safe_browsing_database.h
@@ -272,7 +272,7 @@ class SafeBrowsingDatabaseNew : public SafeBrowsingDatabase {
// csd_whitelist_store_ based on list_id.
SafeBrowsingStore* GetStore(int list_id);
- // Deletes the files on disk.
+ // Deletes the files on disk.
bool Delete();
// Load the prefix set off disk, if available.
@@ -303,9 +303,11 @@ class SafeBrowsingDatabaseNew : public SafeBrowsingDatabase {
// Helpers for InsertChunks().
void InsertAdd(int chunk, SBPrefix host, const SBEntry* entry, int list_id);
- void InsertAddChunks(int list_id, const SBChunkList& chunks);
+ void InsertAddChunks(safe_browsing_util::ListType list_id,
+ const SBChunkList& chunks);
void InsertSub(int chunk, SBPrefix host, const SBEntry* entry, int list_id);
- void InsertSubChunks(int list_id, const SBChunkList& chunks);
+ void InsertSubChunks(safe_browsing_util::ListType list_id,
+ const SBChunkList& chunks);
void UpdateDownloadStore();
void UpdateBrowseStore();
@@ -313,15 +315,6 @@ class SafeBrowsingDatabaseNew : public SafeBrowsingDatabase {
SafeBrowsingStore* store,
SBWhitelist* whitelist);
- // Helper function to compare addprefixes in download_store_ with |prefixes|.
- // The |list_bit| indicates which list (download url or download hash)
- // to compare.
- // Returns true if there is a match, |*prefix_hits| will contain the actual
- // matching prefixes.
- bool MatchDownloadAddPrefixes(int list_bit,
- const std::vector<SBPrefix>& prefixes,
- std::vector<SBPrefix>* prefix_hits);
-
// Used to verify that various calls are made from the thread the
// object was created on.
MessageLoop* creation_loop_;

Powered by Google App Engine
This is Rietveld 408576698