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; | |
56 | 55 |
57 // WriteablePrefStore implementation | 56 // WriteablePrefStore implementation |
58 void SetValue(const std::string& key, | 57 void SetValue(const std::string& key, |
59 std::unique_ptr<base::Value> value, | 58 std::unique_ptr<base::Value> value, |
60 uint32_t flags) override; | 59 uint32_t flags) override; |
61 void RemoveValue(const std::string& key, uint32_t flags) override; | 60 void RemoveValue(const std::string& key, uint32_t flags) override; |
62 | 61 |
63 // PersistentPrefStore implementation | 62 // PersistentPrefStore implementation |
64 bool GetMutableValue(const std::string& key, base::Value** result) override; | 63 bool GetMutableValue(const std::string& key, base::Value** result) override; |
65 void ReportValueChanged(const std::string& key, uint32_t flags) override; | 64 void ReportValueChanged(const std::string& key, uint32_t flags) override; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 std::set<std::string> selected_preference_names_; | 105 std::set<std::string> selected_preference_names_; |
107 | 106 |
108 std::unique_ptr<PersistentPrefStore::ReadErrorDelegate> read_error_delegate_; | 107 std::unique_ptr<PersistentPrefStore::ReadErrorDelegate> read_error_delegate_; |
109 base::ObserverList<PrefStore::Observer, true> observers_; | 108 base::ObserverList<PrefStore::Observer, true> observers_; |
110 AggregatingObserver aggregating_observer_; | 109 AggregatingObserver aggregating_observer_; |
111 | 110 |
112 DISALLOW_COPY_AND_ASSIGN(SegregatedPrefStore); | 111 DISALLOW_COPY_AND_ASSIGN(SegregatedPrefStore); |
113 }; | 112 }; |
114 | 113 |
115 #endif // COMPONENTS_PREFS_TRACKED_SEGREGATED_PREF_STORE_H_ | 114 #endif // COMPONENTS_PREFS_TRACKED_SEGREGATED_PREF_STORE_H_ |
OLD | NEW |