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

Unified Diff: chrome/browser/safe_browsing/browser_feature_extractor.h

Issue 7538009: Send back the URL that matched the SafeBrowsing list with the CSD ping. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Matt's comments. Created 9 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/browser_feature_extractor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/browser_feature_extractor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698