1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_ANALYZER_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_ANALYZER_H_
10 #include "chrome/browser/safe_browsing/incident_reporting/add_incident_callback.h"
16 namespace safe_browsing
{
18 // Registers a process-wide analysis with the incident reporting service that
19 // will verify the signature of the most critical binaries used by Chrome. It
20 // will send an incident report every time a signature verification fails.
21 void RegisterBinaryIntegrityAnalysis();
23 // Callback to pass to the incident reporting service. The incident reporting
24 // service will decide when to start the analysis.
25 void VerifyBinaryIntegrity(const AddIncidentCallback
& callback
);
27 // Returns a vector containing the paths to all the binaries to verify.
28 std::vector
<base::FilePath
> GetCriticalBinariesPath();
30 } // namespace safe_browsing
32 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_ANALYZER_H_