summaryrefslogtreecommitdiff
path: root/common/prefs_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/prefs_interface.h')
-rw-r--r--common/prefs_interface.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/prefs_interface.h b/common/prefs_interface.h
index 03ae3ecd..b5596974 100644
--- a/common/prefs_interface.h
+++ b/common/prefs_interface.h
@@ -79,6 +79,11 @@ class PrefsInterface {
// this key. Calling with non-existent keys does nothing.
virtual bool Delete(const std::string& key) = 0;
+ // Creates a key which is part of a sub preference.
+ static std::string CreateSubKey(const std::string& name_space,
+ const std::string& sub_pref,
+ const std::string& key);
+
// Add an observer to watch whenever the given |key| is modified. The
// OnPrefSet() and OnPrefDelete() methods will be called whenever any of the
// Set*() methods or the Delete() method are called on the given key,