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

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

Issue 1436273002: Send safe browsing ThreatDetails to track download CTR when user tries to recover blocked downloads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove extra file Created 5 years, 1 month 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 00b13e12d17bfacbc3bf62b0c2953fe265b39980..015b31cf81063d59cb786f5d31c9b73281fa40f3 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.h
+++ b/chrome/browser/safe_browsing/safe_browsing_service.h
@@ -165,6 +165,9 @@ class SafeBrowsingService
scoped_ptr<StateSubscription> RegisterStateCallback(
const base::Callback<void(void)>& callback);
+ // Sends serialized download recovery report to backend.
+ void SendDownloadRecoveryReport(const std::string& report);
+
protected:
// Creates the safe browsing service. Need to initialize before using.
SafeBrowsingService();
@@ -239,6 +242,8 @@ class SafeBrowsingService
// starts or stops the service accordingly.
void RefreshState();
+ void OnSendDownloadRecoveryReport(const std::string& report);
+
// The factory used to instanciate a SafeBrowsingService object.
// Useful for tests, so they can provide their own implementation of
// SafeBrowsingService.

Powered by Google App Engine
This is Rietveld 408576698