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

Side by Side Diff: components/prefs/json_pref_store.h

Issue 2704133006: Revert of Add PrefStore::GetValues (Closed)
Patch Set: 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
« no previous file with comments | « components/prefs/in_memory_pref_store.cc ('k') | components/prefs/json_pref_store.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PREFS_JSON_PREF_STORE_H_ 5 #ifndef COMPONENTS_PREFS_JSON_PREF_STORE_H_
6 #define COMPONENTS_PREFS_JSON_PREF_STORE_H_ 6 #define COMPONENTS_PREFS_JSON_PREF_STORE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // will be moved to |pref_filename| before the read occurs. 77 // will be moved to |pref_filename| before the read occurs.
78 JsonPrefStore( 78 JsonPrefStore(
79 const base::FilePath& pref_filename, 79 const base::FilePath& pref_filename,
80 const base::FilePath& pref_alternate_filename, 80 const base::FilePath& pref_alternate_filename,
81 const scoped_refptr<base::SequencedTaskRunner>& sequenced_task_runner, 81 const scoped_refptr<base::SequencedTaskRunner>& sequenced_task_runner,
82 std::unique_ptr<PrefFilter> pref_filter); 82 std::unique_ptr<PrefFilter> pref_filter);
83 83
84 // PrefStore overrides: 84 // PrefStore overrides:
85 bool GetValue(const std::string& key, 85 bool GetValue(const std::string& key,
86 const base::Value** result) const override; 86 const base::Value** result) const override;
87 std::unique_ptr<base::DictionaryValue> GetValues() const override;
88 void AddObserver(PrefStore::Observer* observer) override; 87 void AddObserver(PrefStore::Observer* observer) override;
89 void RemoveObserver(PrefStore::Observer* observer) override; 88 void RemoveObserver(PrefStore::Observer* observer) override;
90 bool HasObservers() const override; 89 bool HasObservers() const override;
91 bool IsInitializationComplete() const override; 90 bool IsInitializationComplete() const override;
92 91
93 // PersistentPrefStore overrides: 92 // PersistentPrefStore overrides:
94 bool GetMutableValue(const std::string& key, base::Value** result) override; 93 bool GetMutableValue(const std::string& key, base::Value** result) override;
95 void SetValue(const std::string& key, 94 void SetValue(const std::string& key,
96 std::unique_ptr<base::Value> value, 95 std::unique_ptr<base::Value> value,
97 uint32_t flags) override; 96 uint32_t flags) override;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 254
256 bool has_pending_write_reply_ = true; 255 bool has_pending_write_reply_ = true;
257 base::Closure on_next_successful_write_reply_; 256 base::Closure on_next_successful_write_reply_;
258 257
259 WriteCountHistogram write_count_histogram_; 258 WriteCountHistogram write_count_histogram_;
260 259
261 DISALLOW_COPY_AND_ASSIGN(JsonPrefStore); 260 DISALLOW_COPY_AND_ASSIGN(JsonPrefStore);
262 }; 261 };
263 262
264 #endif // COMPONENTS_PREFS_JSON_PREF_STORE_H_ 263 #endif // COMPONENTS_PREFS_JSON_PREF_STORE_H_
OLDNEW
« no previous file with comments | « components/prefs/in_memory_pref_store.cc ('k') | components/prefs/json_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698