Index: components/safe_browsing_db/v4_database.h |
diff --git a/components/safe_browsing_db/v4_database.h b/components/safe_browsing_db/v4_database.h |
index 9d76682e0d57415a5220798d5c21055b63b6747f..fd8b3af81482bd7207e0f27d1b49b92ac0e64104 100644 |
--- a/components/safe_browsing_db/v4_database.h |
+++ b/components/safe_browsing_db/v4_database.h |
@@ -131,7 +131,13 @@ class V4Database { |
// A store may be unavailble if either it hasn't yet gotten a proper |
// full-update (just after install, or corrupted/missing file), or if it's |
// not supported in this build (i.e. Chromium). |
- virtual bool AreStoresAvailable(const StoresToCheck& stores_to_check) const; |
+ virtual bool AreAllStoresAvailable( |
+ const StoresToCheck& stores_to_check) const; |
+ |
+ // Check if any of the stores are available and populated. |
+ // Returns false if all of |stores_to_check| don't have valid data. |
+ virtual bool AreAnyStoresAvailable( |
+ const StoresToCheck& stores_to_check) const; |
// Searches for a hash prefix matching the |full_hash| in stores in the |
// database, filtered by |stores_to_check|, and returns the identifier of the |
@@ -209,6 +215,8 @@ class V4Database { |
const scoped_refptr<base::SingleThreadTaskRunner>& callback_task_runner, |
DatabaseReadyForUpdatesCallback db_ready_for_updates_callback); |
+ bool IsStoreAvailable(const ListIdentifier& identifier) const; |
+ |
const scoped_refptr<base::SequencedTaskRunner> db_task_runner_; |
DatabaseUpdatedCallback db_updated_callback_; |