| 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 c1e65141844d91a236eae8b2f520029a8cec4490..41598243228393f6d1c01ebca68e49983568ce5b 100644
|
| --- a/components/safe_browsing_db/v4_local_database_manager.h
|
| +++ b/components/safe_browsing_db/v4_local_database_manager.h
|
| @@ -150,6 +150,10 @@ class V4LocalDatabaseManager : public SafeBrowsingDatabaseManager {
|
| // The metadata associated with the full hash of the severest match found
|
| // for that URL.
|
| ThreatMetadata url_metadata;
|
| +
|
| + // The full hash that matched for a blacklisted resource URL. Used only for
|
| + // |CheckResourceUrl| case.
|
| + FullHash matching_full_hash;
|
| };
|
|
|
| typedef std::vector<std::unique_ptr<PendingCheck>> QueuedChecks;
|
| @@ -186,11 +190,12 @@ class V4LocalDatabaseManager : public SafeBrowsingDatabaseManager {
|
| const std::unique_ptr<PendingCheck>& check,
|
| FullHashToStoreAndHashPrefixesMap* full_hash_to_store_and_hash_prefixes);
|
|
|
| - // Finds the most severe |SBThreatType| and the corresponding |metadata| from
|
| - // |full_hash_infos|.
|
| + // Finds the most severe |SBThreatType| and the corresponding |metadata|, and
|
| + // |matching_full_hash| from |full_hash_infos|.
|
| void GetSeverestThreatTypeAndMetadata(
|
| SBThreatType* result_threat_type,
|
| ThreatMetadata* metadata,
|
| + FullHash* matching_full_hash,
|
| const std::vector<FullHashInfo>& full_hash_infos);
|
|
|
| // Returns the SBThreatType for a given ListIdentifier.
|
|
|