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

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

Issue 6935032: Include full redirect chain in downloads safebrowsing ping. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: initialize url_chain in tests Created 9 years, 7 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/safe_browsing_service.h
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.h b/chrome/browser/safe_browsing/safe_browsing_service.h
index 85a7f9fe5d6df6abf0a41694536ee3d1894167aa..0803a57857fca11f176c8c4cf6cf693fb3ea43c2 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.h
+++ b/chrome/browser/safe_browsing/safe_browsing_service.h
@@ -248,12 +248,14 @@ class SafeBrowsingService
virtual void SendSerializedMalwareDetails(const std::string& serialized);
// Report hits to the unsafe contents (malware, phishing, unsafe download URL)
- // to the server. Can only be called on UI thread.
+ // to the server. Can only be called on UI thread. If |post_data| is
+ // non-empty, the request will be sent as a POST instead of a GET.
void ReportSafeBrowsingHit(const GURL& malicious_url,
const GURL& page_url,
const GURL& referrer_url,
bool is_subresource,
- UrlCheckResult threat_type);
+ UrlCheckResult threat_type,
+ const std::string& post_data);
protected:
// Creates the safe browsing service. Need to initialize before using.
@@ -367,7 +369,8 @@ class SafeBrowsingService
const GURL& page_url,
const GURL& referrer_url,
bool is_subresource,
- UrlCheckResult threat_type);
+ UrlCheckResult threat_type,
+ const std::string& post_data);
// Checks the download hash on safe_browsing_thread_.
void CheckDownloadHashOnSBThread(SafeBrowsingCheck* check);
« no previous file with comments | « chrome/browser/safe_browsing/protocol_manager.cc ('k') | chrome/browser/safe_browsing/safe_browsing_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698