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

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

Issue 15881012: Implement safebrowsing download feedback service, enabled for dev & canary only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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/download_protection_service.h
diff --git a/chrome/browser/safe_browsing/download_protection_service.h b/chrome/browser/safe_browsing/download_protection_service.h
index d7407b24cc9a9d34bf87e56e76d558b41e7724c7..045bb2fc27b9554be1f513f628c284b2d6bff8fe 100644
--- a/chrome/browser/safe_browsing/download_protection_service.h
+++ b/chrome/browser/safe_browsing/download_protection_service.h
@@ -33,6 +33,7 @@ class X509Certificate;
} // namespace net
namespace safe_browsing {
+class DownloadFeedbackService;
class SignatureUtil;
// This class provides an asynchronous API to check whether a particular
@@ -100,6 +101,10 @@ class DownloadProtectionService {
return download_request_timeout_ms_;
}
+ DownloadFeedbackService* feedback_service() {
+ return feedback_service_.get();
+ }
+
protected:
// Enum to keep track why a particular download verdict was chosen.
// This is used to keep some stats around.
@@ -186,6 +191,8 @@ class DownloadProtectionService {
int64 download_request_timeout_ms_;
+ scoped_ptr<DownloadFeedbackService> feedback_service_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadProtectionService);
};
} // namespace safe_browsing

Powered by Google App Engine
This is Rietveld 408576698