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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/binary_integrity_analyzer.h

Issue 891793002: Take a Profile when adding an incident to the incident reporting service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: this time Created 5 years, 11 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/incident_reporting/binary_integrity_analyzer.h
diff --git a/chrome/browser/safe_browsing/incident_reporting/binary_integrity_analyzer.h b/chrome/browser/safe_browsing/incident_reporting/binary_integrity_analyzer.h
index 1b37533e63f66a803f5d30336486662569dc104d..6ac4532aaae29578ce7cdc784a9de7e37fb7c0b9 100644
--- a/chrome/browser/safe_browsing/incident_reporting/binary_integrity_analyzer.h
+++ b/chrome/browser/safe_browsing/incident_reporting/binary_integrity_analyzer.h
@@ -7,7 +7,7 @@
#include <vector>
-#include "chrome/browser/safe_browsing/incident_reporting/add_incident_callback.h"
+#include "base/memory/scoped_ptr.h"
namespace base {
class FilePath;
@@ -15,6 +15,8 @@ class FilePath;
namespace safe_browsing {
+class IncidentReceiver;
+
// Registers a process-wide analysis with the incident reporting service that
// will verify the signature of the most critical binaries used by Chrome. It
// will send an incident report every time a signature verification fails.
@@ -22,7 +24,7 @@ void RegisterBinaryIntegrityAnalysis();
// Callback to pass to the incident reporting service. The incident reporting
// service will decide when to start the analysis.
-void VerifyBinaryIntegrity(const AddIncidentCallback& callback);
+void VerifyBinaryIntegrity(scoped_ptr<IncidentReceiver> incident_receiver);
// Returns a vector containing the paths to all the binaries to verify.
std::vector<base::FilePath> GetCriticalBinariesPath();

Powered by Google App Engine
This is Rietveld 408576698