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 |