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

Unified Diff: components/safe_browsing_db/v4_local_database_manager.h

Issue 2062013002: Fetch incremental updates. Store new state in V4Store. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor: Fix DCHECK Created 4 years, 6 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/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 e1ccb77edfd143b15ae3994f8404998d573db151..ae1ee65148a337a306aef21edf453cb075860326 100644
--- a/components/safe_browsing_db/v4_local_database_manager.h
+++ b/components/safe_browsing_db/v4_local_database_manager.h
@@ -72,7 +72,8 @@ class V4LocalDatabaseManager : public SafeBrowsingDatabaseManager {
void DatabaseReady(std::unique_ptr<V4Database> v4_database);
- void OnCloseDatabase();
+ // Called when the database has been updated and schedules the next update.
+ void DatabaseUpdated();
// The base directory under which to create the files that contain hashes.
const base::FilePath base_path_;
@@ -93,6 +94,10 @@ class V4LocalDatabaseManager : public SafeBrowsingDatabaseManager {
// All writes to this variable must happen on the IO thread only.
std::unique_ptr<V4Database> v4_database_;
+ // Called when the V4Database has finished applying the latest update and is
+ // ready to process next update.
+ DatabaseUpdatedCallback db_updated_callback_;
+
// The sequenced task runner for running safe browsing database operations.
scoped_refptr<base::SequencedTaskRunner> task_runner_;

Powered by Google App Engine
This is Rietveld 408576698