Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: components/user_prefs/tracked/segregated_pref_store.h

Issue 2692203007: Add PrefStore::GetValues (Closed)
Patch Set: Add GetValues to FilesystemJsonPrefStore Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/prefs/value_map_pref_store.cc ('k') | components/user_prefs/tracked/segregated_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698