OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_USER_PREFS_TRACKED_SEGREGATED_PREF_STORE_H_ | 5 #ifndef COMPONENTS_USER_PREFS_TRACKED_SEGREGATED_PREF_STORE_H_ |
6 #define COMPONENTS_USER_PREFS_TRACKED_SEGREGATED_PREF_STORE_H_ | 6 #define COMPONENTS_USER_PREFS_TRACKED_SEGREGATED_PREF_STORE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 const scoped_refptr<PersistentPrefStore>& selected_pref_store, | 45 const scoped_refptr<PersistentPrefStore>& selected_pref_store, |
46 const std::set<std::string>& selected_pref_names); | 46 const std::set<std::string>& selected_pref_names); |
47 | 47 |
48 // PrefStore implementation | 48 // PrefStore implementation |
49 void AddObserver(Observer* observer) override; | 49 void AddObserver(Observer* observer) override; |
50 void RemoveObserver(Observer* observer) override; | 50 void RemoveObserver(Observer* observer) override; |
51 bool HasObservers() const override; | 51 bool HasObservers() const override; |
52 bool IsInitializationComplete() const override; | 52 bool IsInitializationComplete() const override; |
53 bool GetValue(const std::string& key, | 53 bool GetValue(const std::string& key, |
54 const base::Value** result) const override; | 54 const base::Value** result) const override; |
| 55 std::unique_ptr<base::DictionaryValue> GetValues() const override; |
55 | 56 |
56 // WriteablePrefStore implementation | 57 // WriteablePrefStore implementation |
57 void SetValue(const std::string& key, | 58 void SetValue(const std::string& key, |
58 std::unique_ptr<base::Value> value, | 59 std::unique_ptr<base::Value> value, |
59 uint32_t flags) override; | 60 uint32_t flags) override; |
60 void RemoveValue(const std::string& key, uint32_t flags) override; | 61 void RemoveValue(const std::string& key, uint32_t flags) override; |
61 | 62 |
62 // PersistentPrefStore implementation | 63 // PersistentPrefStore implementation |
63 bool GetMutableValue(const std::string& key, base::Value** result) override; | 64 bool GetMutableValue(const std::string& key, base::Value** result) override; |
64 void ReportValueChanged(const std::string& key, uint32_t flags) override; | 65 void ReportValueChanged(const std::string& key, uint32_t flags) override; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 std::set<std::string> selected_preference_names_; | 106 std::set<std::string> selected_preference_names_; |
106 | 107 |
107 std::unique_ptr<PersistentPrefStore::ReadErrorDelegate> read_error_delegate_; | 108 std::unique_ptr<PersistentPrefStore::ReadErrorDelegate> read_error_delegate_; |
108 base::ObserverList<PrefStore::Observer, true> observers_; | 109 base::ObserverList<PrefStore::Observer, true> observers_; |
109 AggregatingObserver aggregating_observer_; | 110 AggregatingObserver aggregating_observer_; |
110 | 111 |
111 DISALLOW_COPY_AND_ASSIGN(SegregatedPrefStore); | 112 DISALLOW_COPY_AND_ASSIGN(SegregatedPrefStore); |
112 }; | 113 }; |
113 | 114 |
114 #endif // COMPONENTS_PREFS_TRACKED_SEGREGATED_PREF_STORE_H_ | 115 #endif // COMPONENTS_PREFS_TRACKED_SEGREGATED_PREF_STORE_H_ |
OLD | NEW |