Chromium Code Reviews| Index: base/win/registry.h |
| diff --git a/base/win/registry.h b/base/win/registry.h |
| index 33052ff6bb0419d40a6c52022a445ebb87dde3bd..e8f4bb3712e549fdea6a81c977739c7b20d03df5 100644 |
| --- a/base/win/registry.h |
| +++ b/base/win/registry.h |
| @@ -66,16 +66,36 @@ class BASE_EXPORT RegKey { |
| // Deletes a single value within the key. |
| LONG DeleteValue(const wchar_t* name); |
| - LONG ReadValue(const wchar_t* name, void* data, DWORD* dsize, |
| + // Getters: |
| + |
| + // Returns an int32 value. |
| + LONG ReadValue(const wchar_t* name, DWORD* out_value) const; |
|
M-A Ruel
2011/10/18 18:01:58
Don't.
Function overloading is banned by style.
tfarina
2011/10/18 18:03:27
Yeah I know :(
M-A Ruel
2011/10/18 18:05:17
Then fix WriteValue() to not use function overload
tfarina
2011/10/18 18:11:36
OK, I'll hold off in renaming them for now (it bre
tfarina
2011/10/18 18:40:43
Hum, reading it again, it doesn't explicit bans fu
|
| + |
| + // Returns an int64 value. |
| + LONG ReadValue(const wchar_t* name, int64* out_value) const; |
| + |
| + // Returns a string value. |
| + LONG ReadValue(const wchar_t* name, std::wstring* out_value) const; |
| + |
| + // Returns raw data. |
| + LONG ReadValue(const wchar_t* name, |
| + void* data, |
| + DWORD* dsize, |
| DWORD* dtype) const; |
| - LONG ReadValue(const wchar_t* name, std::wstring* value) const; |
| - LONG ReadValueDW(const wchar_t* name, DWORD* value) const; |
| - LONG ReadInt64(const wchar_t* name, int64* value) const; |
| - LONG WriteValue(const wchar_t* name, const void* data, DWORD dsize, |
| + // Setters: |
| + |
| + // Sets an int32 value. |
| + LONG WriteValue(const wchar_t* name, DWORD in_value); |
| + |
| + // Sets a string value. |
| + LONG WriteValue(const wchar_t* name, const wchar_t* in_value); |
| + |
| + // Sets raw data, including type. |
| + LONG WriteValue(const wchar_t* name, |
| + const void* data, |
| + DWORD dsize, |
| DWORD dtype); |
| - LONG WriteValue(const wchar_t* name, const wchar_t* value); |
| - LONG WriteValue(const wchar_t* name, DWORD value); |
| // Starts watching the key to see if any of its values have changed. |
| // The key must have been opened with the KEY_NOTIFY access privilege. |