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

Unified Diff: components/safe_browsing_db/v4_database.h

Issue 2814733002: Add the SocEng as a type for checking in CheckUrlForSubresourceFilter. (Closed)
Patch Set: . Created 3 years, 7 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/base_resource_throttle.cc ('k') | components/safe_browsing_db/v4_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « components/safe_browsing/base_resource_throttle.cc ('k') | components/safe_browsing_db/v4_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698