| Index: chrome/browser/safe_browsing/local_database_manager.h
|
| diff --git a/chrome/browser/safe_browsing/local_database_manager.h b/chrome/browser/safe_browsing/local_database_manager.h
|
| index fd9712ba935e37c89ad8d05d0b901034906ce964..d4bafd0fd3865b326d5070984f2b9e118a5a97c8 100644
|
| --- a/chrome/browser/safe_browsing/local_database_manager.h
|
| +++ b/chrome/browser/safe_browsing/local_database_manager.h
|
| @@ -66,9 +66,13 @@ class LocalSafeBrowsingDatabaseManager
|
| // Either |urls| or |full_hashes| is used to lookup database. |*_results|
|
| // are parallel vectors containing the results. They are initialized to
|
| // contain SB_THREAT_TYPE_SAFE.
|
| + // |url_hit_hash| and |url_metadata| are parallel vectors containing full
|
| + // hash and metadata of a database record provided the result. They are
|
| + // initialized to be empty strings.
|
| std::vector<GURL> urls;
|
| std::vector<SBThreatType> url_results;
|
| std::vector<std::string> url_metadata;
|
| + std::vector<std::string> url_hit_hash;
|
| std::vector<SBFullHash> full_hashes;
|
| std::vector<SBThreatType> full_hash_results;
|
|
|
| @@ -115,6 +119,7 @@ class LocalSafeBrowsingDatabaseManager
|
| Client* client) override;
|
| bool CheckExtensionIDs(const std::set<std::string>& extension_ids,
|
| Client* client) override;
|
| + bool CheckResourceUrl(const GURL& url, Client* client) override;
|
| bool MatchCsdWhitelistUrl(const GURL& url) override;
|
| bool MatchMalwareIP(const std::string& ip_address) override;
|
| bool MatchDownloadWhitelistUrl(const GURL& url) override;
|
| @@ -285,6 +290,10 @@ class LocalSafeBrowsingDatabaseManager
|
| std::vector<SBPrefix> CheckExtensionIDsOnSBThread(
|
| const std::vector<SBPrefix>& prefixes);
|
|
|
| + // Checks all resource URL hashes on |safe_browsing_task_runner_|.
|
| + std::vector<SBPrefix> CheckResourceUrlOnSBThread(
|
| + const std::vector<SBPrefix>& prefixes);
|
| +
|
| // Helper function that calls safe browsing client and cleans up |checks_|.
|
| void SafeBrowsingCheckDone(SafeBrowsingCheck* check);
|
|
|
|
|