Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(765)

Unified Diff: base/win/registry.h

Issue 8344004: base/win: Add documentation to RegKey::Read/Write functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: just docs Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/win/registry.cc » ('j') | base/win/registry.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/registry.h
diff --git a/base/win/registry.h b/base/win/registry.h
index 33052ff6bb0419d40a6c52022a445ebb87dde3bd..54131045585db86db3df03b8fd05a7f6afe32f81 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:
M-A Ruel 2011/10/18 18:34:14 I feel like the comments don't add much. The signa
tfarina 2011/10/18 18:40:43 Like I said in the first email I was trying to mak
+
+ // Returns an int32 value.
grt (UTC plus 2) 2011/10/18 19:59:33 Comments here would be useful to explain the corne
tfarina 2011/10/18 20:24:30 Exactly. If |name| is NULL or empty it retrieves t
tfarina 2011/10/19 01:39:07 Comment added. Please, take another look.
+ LONG ReadValueDW(const wchar_t* name, DWORD* out_value) const;
+
+ // Returns an int64 value.
+ LONG ReadInt64(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.
« no previous file with comments | « no previous file | base/win/registry.cc » ('j') | base/win/registry.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698