| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |