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

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/binary_integrity_analyzer_mac.h

Issue 1363613004: Implement anonymous, opt-in, collection of OS X binary integrity incidents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ran git cl format Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
(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_path.h"
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698