| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_REGISTRY_H_ | 5 #ifndef BASE_WIN_REGISTRY_H_ |
| 6 #define BASE_REGISTRY_H_ | 6 #define BASE_WIN_REGISTRY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 | 13 |
| 14 namespace base { |
| 15 namespace win { |
| 16 |
| 14 // Utility class to read, write and manipulate the Windows Registry. | 17 // Utility class to read, write and manipulate the Windows Registry. |
| 15 // Registry vocabulary primer: a "key" is like a folder, in which there | 18 // Registry vocabulary primer: a "key" is like a folder, in which there |
| 16 // are "values", which are <name, data> pairs, with an associated data type. | 19 // are "values", which are <name, data> pairs, with an associated data type. |
| 17 class RegKey { | 20 class RegKey { |
| 18 public: | 21 public: |
| 19 RegKey(); | 22 RegKey(); |
| 20 RegKey(HKEY rootkey, const wchar_t* subkey, REGSAM access); | 23 RegKey(HKEY rootkey, const wchar_t* subkey, REGSAM access); |
| 21 ~RegKey(); | 24 ~RegKey(); |
| 22 | 25 |
| 23 bool Create(HKEY rootkey, const wchar_t* subkey, REGSAM access); | 26 bool Create(HKEY rootkey, const wchar_t* subkey, REGSAM access); |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 HKEY key_; | 158 HKEY key_; |
| 156 | 159 |
| 157 // Current index of the iteration. | 160 // Current index of the iteration. |
| 158 int index_; | 161 int index_; |
| 159 | 162 |
| 160 wchar_t name_[MAX_PATH]; | 163 wchar_t name_[MAX_PATH]; |
| 161 | 164 |
| 162 DISALLOW_COPY_AND_ASSIGN(RegistryKeyIterator); | 165 DISALLOW_COPY_AND_ASSIGN(RegistryKeyIterator); |
| 163 }; | 166 }; |
| 164 | 167 |
| 165 #endif // BASE_REGISTRY_H_ | 168 } // namespace win |
| 169 } // namespace base |
| 170 |
| 171 #endif // BASE_WIN_REGISTRY_H_ |
| OLD | NEW |