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

Unified Diff: components/subresource_filter/content/browser/fake_safe_browsing_database_manager.h

Issue 2814733002: Add the SocEng as a type for checking in CheckUrlForSubresourceFilter. (Closed)
Patch Set: . Created 3 years, 8 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
Index: components/subresource_filter/content/browser/fake_safe_browsing_database_manager.h
diff --git a/components/subresource_filter/content/browser/fake_safe_browsing_database_manager.h b/components/subresource_filter/content/browser/fake_safe_browsing_database_manager.h
index ed4ccda41d160fa2103cb2d009e0072278416c13..7bb6fe20eaa48d01aed20bd8aec8f8dce69ba1af 100644
--- a/components/subresource_filter/content/browser/fake_safe_browsing_database_manager.h
+++ b/components/subresource_filter/content/browser/fake_safe_browsing_database_manager.h
@@ -22,6 +22,9 @@ class FakeSafeBrowsingDatabaseManager
void AddBlacklistedUrl(const GURL& url,
safe_browsing::SBThreatType threat_type);
+ void AddBlacklistedUrl(const GURL& url,
+ safe_browsing::SBThreatType threat_type,
+ safe_browsing::ThreatPatternType pattern_type);
void SimulateTimeout();
@@ -41,7 +44,10 @@ class FakeSafeBrowsingDatabaseManager
Client* client) override;
private:
- std::map<GURL, safe_browsing::SBThreatType> url_to_threat_type_;
+ std::map<
+ GURL,
+ std::pair<safe_browsing::SBThreatType, safe_browsing::ThreatPatternType>>
+ url_to_threat_type_;
bool simulate_timeout_;
DISALLOW_COPY_AND_ASSIGN(FakeSafeBrowsingDatabaseManager);

Powered by Google App Engine
This is Rietveld 408576698