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

Unified Diff: components/safe_browsing_db/database_manager.h

Issue 2345573002: Each DatabaseManager gets to decide which stores to track (Closed)
Patch Set: Incorporated nparker@ feedback 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..197d9bdf460ebefb96296076d74165c36c5cd513 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;
@@ -221,6 +221,10 @@ class SafeBrowsingDatabaseManager
typedef std::set<SafeBrowsingApiCheck*> ApiCheckSet;
+ // Returns the lists that this DatabaseManager should get full hashes for.
+ virtual std::unordered_set<UpdateListIdentifier>
+ GetStoresForFullHashRequests();
+
// Called on the IO thread when the SafeBrowsingProtocolManager has received
// the full hash and api results for prefixes of the |url| argument in
// CheckApiBlacklistUrl.

Powered by Google App Engine
This is Rietveld 408576698