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_INCIDENT_REPORTING_BLACKLIST_LOAD_ANALYZER_
H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BLACKLIST_LOAD_ANALYZER_
H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BLACKLIST_LOAD_ANALYZER_
H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BLACKLIST_LOAD_ANALYZER_
H_ |
7 | 7 |
| 8 #include <memory> |
8 #include <vector> | 9 #include <vector> |
9 | 10 |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 | 12 |
13 namespace safe_browsing { | 13 namespace safe_browsing { |
14 | 14 |
15 class IncidentReceiver; | 15 class IncidentReceiver; |
16 | 16 |
17 // Registers a process-wide analysis with the incident reporting service that | 17 // Registers a process-wide analysis with the incident reporting service that |
18 // will examine how effective the blacklist was. | 18 // will examine how effective the blacklist was. |
19 void RegisterBlacklistLoadAnalysis(); | 19 void RegisterBlacklistLoadAnalysis(); |
20 | 20 |
21 // Retrieves the set of blacklisted modules that are loaded in the process. | 21 // Retrieves the set of blacklisted modules that are loaded in the process. |
22 // Returns true if successful, false otherwise. | 22 // Returns true if successful, false otherwise. |
23 bool GetLoadedBlacklistedModules(std::vector<base::string16>* module_names); | 23 bool GetLoadedBlacklistedModules(std::vector<base::string16>* module_names); |
24 | 24 |
25 // Callback to pass to the incident reporting service. The incident reporting | 25 // Callback to pass to the incident reporting service. The incident reporting |
26 // service will decide when to start the analysis. | 26 // service will decide when to start the analysis. |
27 void VerifyBlacklistLoadState(scoped_ptr<IncidentReceiver> incident_receiver); | 27 void VerifyBlacklistLoadState( |
| 28 std::unique_ptr<IncidentReceiver> incident_receiver); |
28 | 29 |
29 } // namespace safe_browsing | 30 } // namespace safe_browsing |
30 | 31 |
31 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BLACKLIST_LOAD_ANALYZ
ER_H_ | 32 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BLACKLIST_LOAD_ANALYZ
ER_H_ |
OLD | NEW |