Index: chrome/browser/safe_browsing/browser_feature_extractor.h |
diff --git a/chrome/browser/safe_browsing/browser_feature_extractor.h b/chrome/browser/safe_browsing/browser_feature_extractor.h |
index 4e9b1dc8cb60bd11dbacc57c1f427345ea2c9a7c..13172418a80943b364a1c982ce0342292cba136a 100644 |
--- a/chrome/browser/safe_browsing/browser_feature_extractor.h |
+++ b/chrome/browser/safe_browsing/browser_feature_extractor.h |
@@ -17,9 +17,11 @@ |
#include "base/basictypes.h" |
#include "base/callback_old.h" |
+#include "base/memory/scoped_ptr.h" |
#include "base/task.h" |
#include "base/time.h" |
#include "chrome/browser/history/history_types.h" |
+#include "chrome/browser/safe_browsing/safe_browsing_service.h" |
#include "content/browser/cancelable_request.h" |
class HistoryService; |
@@ -34,6 +36,10 @@ struct BrowseInfo { |
// while browsing to the |url|. |
std::set<std::string> ips; |
+ // If a SafeBrowsing interstitial was shown for the current URL |
+ // this will contain the UnsafeResource struct for that URL. |
+ scoped_ptr<SafeBrowsingService::UnsafeResource> unsafe_resource; |
+ |
BrowseInfo(); |
~BrowseInfo(); |
}; |
@@ -88,6 +94,13 @@ extern const char kIsFirstNavigation[]; |
// Resource was fetched from a known bad IP address. |
extern const char kBadIpFetch[]; |
+ |
+// SafeBrowsing related featues. Fields from the UnsafeResource if there is |
+// any. |
+extern const char kSafeBrowsingMaliciousUrl[]; |
+extern const char kSafeBrowsingOriginalUrl[]; |
+extern const char kSafeBrowsingIsSubresource[]; |
+extern const char kSafeBrowsingThreatType[]; |
} // namespace features |
// All methods of this class must be called on the UI thread (including |