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

Unified Diff: components/safe_browsing_db/v4_local_database_manager.h

Issue 2647323009: Add extended reporting level in the update request (Closed)
Patch Set: rebase Created 3 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
« no previous file with comments | « components/safe_browsing_db/BUILD.gn ('k') | components/safe_browsing_db/v4_local_database_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/v4_local_database_manager.h
diff --git a/components/safe_browsing_db/v4_local_database_manager.h b/components/safe_browsing_db/v4_local_database_manager.h
index 12d63a8bd5b3301017301e94f3b2461ec079e67e..f24e3e931c2c4ae1c07d4450f716662dcc01959d 100644
--- a/components/safe_browsing_db/v4_local_database_manager.h
+++ b/components/safe_browsing_db/v4_local_database_manager.h
@@ -31,7 +31,8 @@ class V4LocalDatabaseManager : public SafeBrowsingDatabaseManager {
// Create and return an instance of V4LocalDatabaseManager, if Finch trial
// allows it; nullptr otherwise.
static scoped_refptr<V4LocalDatabaseManager> Create(
- const base::FilePath& base_path);
+ const base::FilePath& base_path,
+ ExtendedReportingLevelCallback extended_reporting_level_callback);
//
// SafeBrowsingDatabaseManager implementation
@@ -72,7 +73,9 @@ class V4LocalDatabaseManager : public SafeBrowsingDatabaseManager {
protected:
// Construct V4LocalDatabaseManager.
// Must be initialized by calling StartOnIOThread() before using.
- V4LocalDatabaseManager(const base::FilePath& base_path);
+ V4LocalDatabaseManager(
+ const base::FilePath& base_path,
+ ExtendedReportingLevelCallback extended_reporting_level_callback);
~V4LocalDatabaseManager() override;
@@ -265,6 +268,10 @@ class V4LocalDatabaseManager : public SafeBrowsingDatabaseManager {
// ready to process next update.
DatabaseUpdatedCallback db_updated_callback_;
+ // Callback to get the current extended reporting level. Needed by the update
+ // manager.
+ ExtendedReportingLevelCallback extended_reporting_level_callback_;
+
// The list of stores to manage (for hash prefixes and full hashes). Each
// element contains the identifier for the store, the corresponding
// SBThreatType, whether to fetch hash prefixes for that store, and the
« no previous file with comments | « components/safe_browsing_db/BUILD.gn ('k') | components/safe_browsing_db/v4_local_database_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698