OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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_INSTALLER_SETUP_USER_HIVE_VISITOR_H_ |
| 6 #define CHROME_INSTALLER_SETUP_USER_HIVE_VISITOR_H_ |
| 7 |
| 8 #include "base/callback_forward.h" |
| 9 |
| 10 namespace base { |
| 11 namespace win { |
| 12 class RegKey; |
| 13 } |
| 14 } |
| 15 |
| 16 namespace installer { |
| 17 |
| 18 // The visitor callback invoked for each user's registry hive by |
| 19 // |VisitUserHives|. |user_sid| is the user SID being visited. |key| is the root |
| 20 // of that user's registry hive. Implementations return |true| to indicate that |
| 21 // the visits should continue, or |false| to indicate that visits should stop. |
| 22 using HiveVisitor = |
| 23 base::Callback<bool(const wchar_t* user_sid, base::win::RegKey* key)>; |
| 24 |
| 25 // Runs |visitor| for each local user profile's registry hive. |
| 26 void VisitUserHives(const HiveVisitor& visitor); |
| 27 |
| 28 } // namespace installer |
| 29 |
| 30 #endif // CHROME_INSTALLER_SETUP_USER_HIVE_VISITOR_H_ |
OLD | NEW |