OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 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. | |
4 | |
5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_ANALYZE R_MAC_H_ | |
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_ANALYZE R_MAC_H_ | |
7 | |
8 #include "chrome/browser/safe_browsing/incident_reporting/binary_integrity_analy zer.h" | |
9 | |
10 #include <string> | |
11 #include <vector> | |
12 | |
13 #include "base/files/file_util.h" | |
grt (UTC plus 2)
2015/10/28 17:49:51
base/files/file_path.h
Greg K
2015/10/29 23:51:31
Done.
| |
14 | |
15 namespace safe_browsing { | |
16 | |
17 class IncidentReceiver; | |
18 | |
19 // Wraps a path to a code object and its specified code requirement. | |
20 struct PathAndRequirement { | |
21 PathAndRequirement(const base::FilePath& o_path, | |
22 const std::string& o_requirement) | |
23 : path(o_path), requirement(o_requirement) { } | |
24 base::FilePath path; | |
25 std::string requirement; | |
26 }; | |
27 | |
28 // Returns a vector of pairs, each of which contains the paths to the binaries | |
29 // to verify, and the codesign requirement to use when verifying. | |
30 std::vector<PathAndRequirement> GetCriticalPathsAndRequirements(); | |
31 | |
32 // This is a helper stub to allow the signature checking code to be tested with | |
33 // custom requirements and files. | |
34 void VerifyBinaryIntegrityForTesting(IncidentReceiver* incident_receiver, | |
35 const base::FilePath& path, | |
36 const std::string& requirement); | |
37 | |
38 } // namespace safe_browsing | |
39 | |
40 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_ANAL YZER_MAC_H_ | |
41 | |
OLD | NEW |