Chromium Code Reviews| Index: base/win/registry.h |
| diff --git a/base/win/registry.h b/base/win/registry.h |
| index 078e6e07d52b6bc87b200aee3d16538f95da01aa..a1341f3f6e89307467ce238b738df14a5810e77c 100644 |
| --- a/base/win/registry.h |
| +++ b/base/win/registry.h |
| @@ -33,20 +33,26 @@ class BASE_EXPORT RegKey { |
| LONG CreateWithDisposition(HKEY rootkey, const wchar_t* subkey, |
| DWORD* disposition, REGSAM access); |
| - LONG Open(HKEY rootkey, const wchar_t* subkey, REGSAM access); |
| - |
| // Creates a subkey or open it if it already exists. |
| LONG CreateKey(const wchar_t* name, REGSAM access); |
| - // Opens a subkey |
| - LONG OpenKey(const wchar_t* name, REGSAM access); |
| + // Opens an existing reg key. |
| + LONG Open(HKEY rootkey, const wchar_t* subkey, REGSAM access); |
| + |
| + // Opens an existing reg key, given the full key name. |
| + LONG OpenKey(const wchar_t* full_key_name, REGSAM access); |
| + // Close this reg key. |
|
M-A Ruel
2011/10/18 03:28:06
Closes
tfarina
2011/10/18 03:45:07
Done.
|
| void Close(); |
| - DWORD ValueCount() const; |
| + // Returns true if this key has the specified value. |
| + bool HasValue(const wchar_t* value_name) const; |
| + |
| + // Returns the number of values for this key. |
| + DWORD GetValueCount() const; |
| // Determine the nth value's name. |
| - LONG ReadName(int index, std::wstring* name) const; |
| + LONG GetValueNameAt(int index, std::wstring* name) const; |
| // True while the key is valid. |
| bool Valid() const { return key_ != NULL; } |
| @@ -58,8 +64,6 @@ class BASE_EXPORT RegKey { |
| // Deletes a single value within the key. |
| LONG DeleteValue(const wchar_t* name); |
| - bool ValueExists(const wchar_t* name) const; |
| - |
| LONG ReadValue(const wchar_t* name, void* data, DWORD* dsize, |
| DWORD* dtype) const; |
| LONG ReadValue(const wchar_t* name, std::wstring* value) const; |