Chromium Code Reviews| Index: components/prefs/pref_store.h |
| diff --git a/components/prefs/pref_store.h b/components/prefs/pref_store.h |
| index ef2bc494d150b8d2366a72f1dfd36f282e553687..41830120854ffe2878d382f77dfc2bedf50515e7 100644 |
| --- a/components/prefs/pref_store.h |
| +++ b/components/prefs/pref_store.h |
| @@ -5,6 +5,7 @@ |
| #ifndef COMPONENTS_PREFS_PREF_STORE_H_ |
| #define COMPONENTS_PREFS_PREF_STORE_H_ |
| +#include <iterator> |
|
Sam McNally
2017/02/16 02:21:11
<memory>?
tibell
2017/02/20 00:04:57
Done.
|
| #include <string> |
| #include "base/macros.h" |
| @@ -12,6 +13,7 @@ |
| #include "components/prefs/base_prefs_export.h" |
| namespace base { |
| +class DictionaryValue; |
| class Value; |
| } |
| @@ -52,6 +54,9 @@ class COMPONENTS_PREFS_EXPORT PrefStore : public base::RefCounted<PrefStore> { |
| virtual bool GetValue(const std::string& key, |
| const base::Value** result) const = 0; |
| + // Get all the values. |
| + virtual std::unique_ptr<base::DictionaryValue> GetValues() const = 0; |
| + |
| protected: |
| friend class base::RefCounted<PrefStore>; |
| virtual ~PrefStore() {} |