Refactor WebsiteSettings to operate on a SecurityInfo
[chromium-blink-merge.git] / chrome / browser / safe_browsing / incident_reporting / binary_integrity_analyzer.h
blob6ac4532aaae29578ce7cdc784a9de7e37fb7c0b9
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_
8 #include <vector>
10 #include "base/memory/scoped_ptr.h"
12 namespace base {
13 class FilePath;
14 } // namespace base
16 namespace safe_browsing {
18 class IncidentReceiver;
20 // Registers a process-wide analysis with the incident reporting service that
21 // will verify the signature of the most critical binaries used by Chrome. It
22 // will send an incident report every time a signature verification fails.
23 void RegisterBinaryIntegrityAnalysis();
25 // Callback to pass to the incident reporting service. The incident reporting
26 // service will decide when to start the analysis.
27 void VerifyBinaryIntegrity(scoped_ptr<IncidentReceiver> incident_receiver);
29 // Returns a vector containing the paths to all the binaries to verify.
30 std::vector<base::FilePath> GetCriticalBinariesPath();
32 } // namespace safe_browsing
34 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_ANALYZER_H_