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

Unified Diff: components/safe_browsing_db/database_manager.h

Issue 2345573002: Each DatabaseManager gets to decide which stores to track (Closed)
Patch Set: Each DBmanager defines stores to look. base::hash_set -> std::unorderd_set. StoreToFileNameMap -> S… Created 4 years, 3 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/database_manager.h
diff --git a/components/safe_browsing_db/database_manager.h b/components/safe_browsing_db/database_manager.h
index fbbd1e648639c8324fbe302e38848c394af73a44..91c0b34f17ba376d38743f61fc558f191c39ca7b 100644
--- a/components/safe_browsing_db/database_manager.h
+++ b/components/safe_browsing_db/database_manager.h
@@ -8,10 +8,9 @@
#ifndef COMPONENTS_SAFE_BROWSING_DB_DATABASE_MANAGER_H_
#define COMPONENTS_SAFE_BROWSING_DB_DATABASE_MANAGER_H_
-#include <deque>
-#include <map>
#include <set>
#include <string>
+#include <unordered_set>
#include <vector>
#include "base/gtest_prod_util.h"
@@ -28,6 +27,7 @@ class URLRequestContextGetter;
namespace safe_browsing {
+struct UpdateListIdentifier;
struct V4ProtocolConfig;
class V4GetHashProtocolManager;
@@ -163,6 +163,10 @@ class SafeBrowsingDatabaseManager
// and "client" is called asynchronously with the result when it is ready.
virtual bool CheckApiBlacklistUrl(const GURL& url, Client* client);
+ // Returns the lists that this DatabaseManager should get full hashes for.
+ virtual std::unordered_set<UpdateListIdentifier>
+ GetStoresForFullHashRequests();
Nathan Parker 2016/09/15 21:12:54 Could this be protected?
vakh (use Gerrit instead) 2016/09/15 21:33:37 Done.
+
// Called to initialize objects that are used on the io_thread, such as the
// v4 protocol manager. This may be called multiple times during the life of
// the DatabaseManager. Must be called on IO thread.

Powered by Google App Engine
This is Rietveld 408576698