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

Unified Diff: base/win/registry.h

Issue 5623004: Making a few RegKey methods that only read data, const.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/registry.h
===================================================================
--- base/win/registry.h (revision 68351)
+++ base/win/registry.h (working copy)
@@ -38,10 +38,10 @@
void Close();
- DWORD ValueCount();
+ DWORD ValueCount() const;
// Determine the nth value's name.
- bool ReadName(int index, std::wstring* name);
+ bool ReadName(int index, std::wstring* name) const;
// True while the key is valid.
bool Valid() const { return key_ != NULL; }
@@ -55,9 +55,10 @@
bool ValueExists(const wchar_t* name);
- bool ReadValue(const wchar_t* name, void* data, DWORD* dsize, DWORD* dtype);
- bool ReadValue(const wchar_t* name, std::wstring* value);
- bool ReadValueDW(const wchar_t* name, DWORD* value);
+ bool ReadValue(const wchar_t* name, void* data, DWORD* dsize,
+ DWORD* dtype) const;
+ bool ReadValue(const wchar_t* name, std::wstring* value) const;
+ bool ReadValueDW(const wchar_t* name, DWORD* value) const;
bool WriteValue(const wchar_t* name, const void* data, DWORD dsize,
DWORD dtype);
@@ -65,7 +66,7 @@
bool 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 privelege.
+ // The key must have been opened with the KEY_NOTIFY access privilege.
bool StartWatching();
// If StartWatching hasn't been called, always returns false.
« no previous file with comments | « no previous file | base/win/registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698