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

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

Issue 470213002: Moving all the incident reporting stuff to a common folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@binsign
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SAFE_BROWSING_BINARY_INTEGRITY_ANALYZER_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_ANALYZE R_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_BINARY_INTEGRITY_ANALYZER_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_ANALYZE R_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "chrome/browser/safe_browsing/add_incident_callback.h" 10 #include "chrome/browser/safe_browsing/incident_reporting/add_incident_callback. h"
11 11
12 namespace base { 12 namespace base {
13 class FilePath; 13 class FilePath;
14 } // namespace base 14 } // namespace base
15 15
16 namespace safe_browsing { 16 namespace safe_browsing {
17 17
18 // Registers a process-wide analysis with the incident reporting service that 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 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. 20 // will send an incident report every time a signature verification fails.
21 void RegisterBinaryIntegrityAnalysis(); 21 void RegisterBinaryIntegrityAnalysis();
22 22
23 // Callback to pass to the incident reporting service. The incident reporting 23 // Callback to pass to the incident reporting service. The incident reporting
24 // service will decide when to start the analysis. 24 // service will decide when to start the analysis.
25 void VerifyBinaryIntegrity(const AddIncidentCallback& callback); 25 void VerifyBinaryIntegrity(const AddIncidentCallback& callback);
26 26
27 // Returns a vector containing the paths to all the binaries to verify. 27 // Returns a vector containing the paths to all the binaries to verify.
28 std::vector<base::FilePath> GetCriticalBinariesPath(); 28 std::vector<base::FilePath> GetCriticalBinariesPath();
29 29
30 } // namespace safe_browsing 30 } // namespace safe_browsing
31 31
32 #endif // CHROME_BROWSER_SAFE_BROWSING_BINARY_INTEGRITY_ANALYZER_H_ 32 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_ANAL YZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698