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 3 // found in the LICENSE file. 4 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BLACKLIST_LOAD_ANALYZER_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BLACKLIST_LOAD_ANALYZER_H_ 7 8 #include <vector> 9 10 #include "base/strings/string16.h" 11 #include "chrome/browser/safe_browsing/incident_reporting/add_incident_callback.h" 12 13 namespace safe_browsing { 14 15 // Registers a process-wide analysis with the incident reporting service that 16 // will examine how effective the blacklist was. 17 void RegisterBlacklistLoadAnalysis(); 18 19 // Retrieves the set of blacklisted modules that are loaded in the process. 20 // Returns true if successful, false otherwise. 21 bool GetLoadedBlacklistedModules(std::vector<base::string16>* module_names); 22 23 // Callback to pass to the incident reporting service. The incident reporting 24 // service will decide when to start the analysis. 25 void VerifyBlacklistLoadState(const AddIncidentCallback& callback); 26 27 } // namespace safe_browsing 28 29 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BLACKLIST_LOAD_ANALYZER_H_ 30