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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/prefs_interface.h b/common/prefs_interface.h
index 03ae3ecd..1311cb44 100644
--- a/common/prefs_interface.h
+++ b/common/prefs_interface.h
@@ -20,6 +20,7 @@
#include <stdint.h>
#include <string>
+#include <vector>
namespace chromeos_update_engine {
@@ -79,6 +80,13 @@ 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::vector<std::string>& ns_with_key);
+
+ // Returns a list of keys within the namespace.
+ virtual bool GetSubKeys(const std::string& ns,
+ std::vector<std::string>* keys) const = 0;
+
// 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,