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

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

Issue 6935032: Include full redirect chain in downloads safebrowsing ping. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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: chrome/browser/safe_browsing/protocol_manager.h
diff --git a/chrome/browser/safe_browsing/protocol_manager.h b/chrome/browser/safe_browsing/protocol_manager.h
index 61f0713f262d847828bc774a93e8796eee376038..ab82eff950654b3b969441f51ec5830b196b2c05 100644
--- a/chrome/browser/safe_browsing/protocol_manager.h
+++ b/chrome/browser/safe_browsing/protocol_manager.h
@@ -132,14 +132,22 @@ class SafeBrowsingProtocolManager : public URLFetcher::Delegate {
void OnChunkInserted();
// For UMA users we report to Google when a SafeBrowsing interstitial is shown
- // to the user. We assume that the threat type is either URL_MALWARE or
- // URL_PHISHING.
+ // to the user. |threat_type| should be one of the types known by
+ // SafeBrowsingHitUrl.
void ReportSafeBrowsingHit(const GURL& malicious_url,
const GURL& page_url,
const GURL& referrer_url,
bool is_subresource,
SafeBrowsingService::UrlCheckResult threat_type);
+ // Report a hit, including the full redirect chain as POST data.
+ // |threat_type| should be one of the types known by SafeBrowsingHitUrl.
+ void ReportSafeBrowsingHitWithChain(
+ const std::vector<GURL>& url_chain,
+ const GURL& referrer_url,
+ bool is_subresource,
+ SafeBrowsingService::UrlCheckResult threat_type);
+
// Users can opt-in on the SafeBrowsing interstitial to send detailed
// malware reports. |report| is the serialized report.
void ReportMalwareDetails(const std::string& report);

Powered by Google App Engine
This is Rietveld 408576698