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

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: nit 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 0f9ef893152587a4522fea7464ecdf214c4c22d2..24fa8a710ba64a96e35343112393383b354ab701 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.h
+++ b/chrome/browser/safe_browsing/safe_browsing_service.h
@@ -169,6 +169,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();
@@ -244,6 +247,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