OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 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_INSTALL_MODULE_VERIFIER_WIN_H_ | |
6 #define CHROME_BROWSER_INSTALL_MODULE_VERIFIER_WIN_H_ | |
7 | |
8 #include <set> | |
9 #include "base/callback_forward.h" | |
sky
2013/09/24 20:16:16
nit: newline between 8/9
erikwright (departed)
2013/09/25 19:58:08
Done.
| |
10 #include "base/strings/string16.h" | |
11 | |
12 namespace base { | |
13 class ListValue; | |
14 } // namespace base | |
15 | |
16 // Starts a background process to verify installed modules. Results are reported | |
17 // via UMA. | |
18 void BeginModuleVerification(); | |
19 | |
20 // Converts a list of modules descriptions extracted from EnumerateModulesModel | |
21 // into a list of canonicalized loaded module names. | |
22 void ExtractLoadedModuleNames(const base::ListValue& module_list, | |
23 std::set<base::string16>* loaded_module_names); | |
24 | |
25 // Verifies a list of installed modules and reports results via the supplied | |
26 // callback. Each reported ID corresponds to a found, expected module listed in | |
27 // expected_install_modules_win.h. | |
28 void VerifyModules(const std::set<base::string16>& module_list, | |
29 const base::Callback<void(size_t)>& delegate); | |
sky
2013/09/24 20:16:16
Why the callback here? Is the plan that it'll be a
erikwright (departed)
2013/09/25 19:58:08
For testability. Internally the callback just does
sky
2013/10/04 18:20:46
Would a function pointer suffice then?
| |
30 | |
31 #endif // CHROME_BROWSER_INSTALL_MODULE_VERIFIER_WIN_H_ | |
OLD | NEW |