| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 BASE_WIN_REGISTRY_H_ | 5 #ifndef BASE_WIN_REGISTRY_H_ |
| 6 #define BASE_WIN_REGISTRY_H_ | 6 #define BASE_WIN_REGISTRY_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 REGSAM samDesired, | 142 REGSAM samDesired, |
| 143 DWORD Reserved); | 143 DWORD Reserved); |
| 144 | 144 |
| 145 // Recursively deletes a key and all of its subkeys. | 145 // Recursively deletes a key and all of its subkeys. |
| 146 static LONG RegDelRecurse(HKEY root_key, | 146 static LONG RegDelRecurse(HKEY root_key, |
| 147 const std::wstring& name, | 147 const std::wstring& name, |
| 148 REGSAM access); | 148 REGSAM access); |
| 149 | 149 |
| 150 HKEY key_; // The registry key being iterated. | 150 HKEY key_; // The registry key being iterated. |
| 151 REGSAM wow64access_; | 151 REGSAM wow64access_; |
| 152 scoped_ptr<Watcher> key_watcher_; | 152 std::unique_ptr<Watcher> key_watcher_; |
| 153 | 153 |
| 154 DISALLOW_COPY_AND_ASSIGN(RegKey); | 154 DISALLOW_COPY_AND_ASSIGN(RegKey); |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 // Iterates the entries found in a particular folder on the registry. | 157 // Iterates the entries found in a particular folder on the registry. |
| 158 class BASE_EXPORT RegistryValueIterator { | 158 class BASE_EXPORT RegistryValueIterator { |
| 159 public: | 159 public: |
| 160 // Construct a Registry Value Iterator with default WOW64 access. | 160 // Construct a Registry Value Iterator with default WOW64 access. |
| 161 RegistryValueIterator(HKEY root_key, const wchar_t* folder_key); | 161 RegistryValueIterator(HKEY root_key, const wchar_t* folder_key); |
| 162 | 162 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 250 |
| 251 wchar_t name_[MAX_PATH]; | 251 wchar_t name_[MAX_PATH]; |
| 252 | 252 |
| 253 DISALLOW_COPY_AND_ASSIGN(RegistryKeyIterator); | 253 DISALLOW_COPY_AND_ASSIGN(RegistryKeyIterator); |
| 254 }; | 254 }; |
| 255 | 255 |
| 256 } // namespace win | 256 } // namespace win |
| 257 } // namespace base | 257 } // namespace base |
| 258 | 258 |
| 259 #endif // BASE_WIN_REGISTRY_H_ | 259 #endif // BASE_WIN_REGISTRY_H_ |
| OLD | NEW |