Chromium Code Reviews| 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 297fdf058a9a9c51d11980a68e2003049cd057e9..dd39942d0dc1e4792a44b4f376c00abcb75157a3 100644 |
| --- a/components/safe_browsing_db/v4_local_database_manager.h |
| +++ b/components/safe_browsing_db/v4_local_database_manager.h |
| @@ -95,9 +95,13 @@ class V4LocalDatabaseManager : public SafeBrowsingDatabaseManager { |
| // unsafe resource. |
| CHECK_RESOURCE_URL = 2, |
| - // This represents the case where we're trying to determine if a Chrome |
| + // This represents the case when we're trying to determine if a Chrome |
| // extension is a unsafe. |
| - CHECK_EXTENSION_IDS = 3 |
| + CHECK_EXTENSION_IDS = 3, |
| + |
| + // This represents the case when we're trying to determing if an IP address |
| + // is unsafe due to hosting Malware. |
| + CHECK_MALWARE_IP = 4 |
|
Scott Hess - ex-Googler
2016/11/15 01:21:10
Nit: I'd pop a comma, here, so that when you invar
vakh (use Gerrit instead)
2016/11/15 01:41:52
Done.
|
| }; |
| // The information we need to process a URL safety reputation request and |
| @@ -197,6 +201,11 @@ class V4LocalDatabaseManager : public SafeBrowsingDatabaseManager { |
| // schedules a task to perform full hash check and returns false. |
| bool HandleCheck(std::unique_ptr<PendingCheck> check); |
| + // Checks the database for prefix matches. Returns true if the database isn't |
| + // ready or if there's no match; false otherwise. This is used for lists that |
| + // have full hash information in the database. |
| + bool HandleCheckSynchronously(std::unique_ptr<PendingCheck> check); |
| + |
| // Called when the |v4_get_hash_protocol_manager_| has the full hash response |
| // available for the URL that we requested. It determines the severest |
| // threat type and responds to the |client| with that information. |