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

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

Issue 444123002: Adding a new delayed analysis that verify binaries signature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@grt
Patch Set: Last minute nit fix Created 6 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/binary_integrity_analyzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/binary_integrity_analyzer.h
diff --git a/chrome/browser/safe_browsing/binary_integrity_analyzer.h b/chrome/browser/safe_browsing/binary_integrity_analyzer.h
new file mode 100644
index 0000000000000000000000000000000000000000..9627cb70440222a1592ceed723f591124e39978e
--- /dev/null
+++ b/chrome/browser/safe_browsing/binary_integrity_analyzer.h
@@ -0,0 +1,32 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SAFE_BROWSING_BINARY_INTEGRITY_ANALYZER_H_
+#define CHROME_BROWSER_SAFE_BROWSING_BINARY_INTEGRITY_ANALYZER_H_
+
+#include <vector>
+
+#include "chrome/browser/safe_browsing/add_incident_callback.h"
+
+namespace base {
+class FilePath;
+} // namespace base
+
+namespace safe_browsing {
+
+// 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.
+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);
+
+// Returns a vector containing the paths to all the binaries to verify.
+std::vector<base::FilePath> GetCriticalBinariesPath();
+
+} // namespace safe_browsing
+
+#endif // CHROME_BROWSER_SAFE_BROWSING_BINARY_INTEGRITY_ANALYZER_H_
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/binary_integrity_analyzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698