OLD | NEW |
---|---|
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_ENVIRONMENT_DATA_COLLECTION_WIN_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_ENVIRONMENT_DATA_COLLECTION_WIN_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_ENVIRONMENT_DATA_COLLECTION_WIN_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_ENVIRONMENT_DATA_COLLECTION_WIN_H_ |
7 | 7 |
8 #include <string> | |
9 | |
10 #include "base/strings/string16.h" | |
11 | |
8 namespace safe_browsing { | 12 namespace safe_browsing { |
9 | 13 |
10 // TODO(pmonette): put DLL and LSP collection declarations here. | 14 class ClientIncidentReport_EnvironmentData_Process; |
15 | |
16 // Collects then populates |process| with the sanitized paths of all DLLs | |
17 // loaded in the current process. Return false if an error occurred while | |
18 // querying for the loaded dlls. | |
19 bool CollectDlls(ClientIncidentReport_EnvironmentData_Process* process); | |
20 | |
21 // For each of the dlls in this already populated incident report, | |
22 // check one of them is a registered LSP. | |
23 void VerifyLSP(ClientIncidentReport_EnvironmentData_Process* process); | |
grt (UTC plus 2)
2014/06/10 13:47:54
how about renaming this to "RecordLspFeatures"?
pmonette_google.com
2014/06/10 19:34:39
Done.
| |
24 | |
25 // Helper function for expanding all environment variables in |path|. | |
grt (UTC plus 2)
2014/06/10 13:47:53
move this into the unnamed namespace in the .cc fi
pmonette_google.com
2014/06/10 19:34:39
Done.
| |
26 base::string16 ExpandEnvironmentVariables(const base::string16& path); | |
27 | |
28 // Helper function that insert basic information about a dll into the | |
grt (UTC plus 2)
2014/06/10 13:47:53
i'm not sure that it's worth having this be a publ
pmonette_google.com
2014/06/10 19:34:39
Sure. I just liked the way my code looked like wit
| |
29 // |process| report. | |
30 void AddDll(const std::string& path, | |
31 int base_address, | |
32 int length, | |
33 ClientIncidentReport_EnvironmentData_Process* process); | |
11 | 34 |
12 } // namespace safe_browsing | 35 } // namespace safe_browsing |
13 | 36 |
14 #endif // CHROME_BROWSER_SAFE_BROWSING_ENVIRONMENT_DATA_COLLECTION_WIN_H_ | 37 #endif // CHROME_BROWSER_SAFE_BROWSING_ENVIRONMENT_DATA_COLLECTION_WIN_H_ |
OLD | NEW |