| 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 BASE_PREFS_JSON_PREF_STORE_H_ | 5 #ifndef BASE_PREFS_JSON_PREF_STORE_H_ |
| 6 #define BASE_PREFS_JSON_PREF_STORE_H_ | 6 #define BASE_PREFS_JSON_PREF_STORE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 bool GetValue(const std::string& key, | 77 bool GetValue(const std::string& key, |
| 78 const base::Value** result) const override; | 78 const base::Value** result) const override; |
| 79 void AddObserver(PrefStore::Observer* observer) override; | 79 void AddObserver(PrefStore::Observer* observer) override; |
| 80 void RemoveObserver(PrefStore::Observer* observer) override; | 80 void RemoveObserver(PrefStore::Observer* observer) override; |
| 81 bool HasObservers() const override; | 81 bool HasObservers() const override; |
| 82 bool IsInitializationComplete() const override; | 82 bool IsInitializationComplete() const override; |
| 83 | 83 |
| 84 // PersistentPrefStore overrides: | 84 // PersistentPrefStore overrides: |
| 85 bool GetMutableValue(const std::string& key, base::Value** result) override; | 85 bool GetMutableValue(const std::string& key, base::Value** result) override; |
| 86 void SetValue(const std::string& key, | 86 void SetValue(const std::string& key, |
| 87 base::Value* value, | 87 scoped_ptr<base::Value> value, |
| 88 uint32 flags) override; | 88 uint32 flags) override; |
| 89 void SetValueSilently(const std::string& key, | 89 void SetValueSilently(const std::string& key, |
| 90 base::Value* value, | 90 scoped_ptr<base::Value> value, |
| 91 uint32 flags) override; | 91 uint32 flags) override; |
| 92 void RemoveValue(const std::string& key, uint32 flags) override; | 92 void RemoveValue(const std::string& key, uint32 flags) override; |
| 93 bool ReadOnly() const override; | 93 bool ReadOnly() const override; |
| 94 PrefReadError GetReadError() const override; | 94 PrefReadError GetReadError() const override; |
| 95 // Note this method may be asynchronous if this instance has a |pref_filter_| | 95 // Note this method may be asynchronous if this instance has a |pref_filter_| |
| 96 // in which case it will return PREF_READ_ERROR_ASYNCHRONOUS_TASK_INCOMPLETE. | 96 // in which case it will return PREF_READ_ERROR_ASYNCHRONOUS_TASK_INCOMPLETE. |
| 97 // See details in pref_filter.h. | 97 // See details in pref_filter.h. |
| 98 PrefReadError ReadPrefs() override; | 98 PrefReadError ReadPrefs() override; |
| 99 void ReadPrefsAsync(ReadErrorDelegate* error_delegate) override; | 99 void ReadPrefsAsync(ReadErrorDelegate* error_delegate) override; |
| 100 void CommitPendingWrite() override; | 100 void CommitPendingWrite() override; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 PrefReadError read_error_; | 219 PrefReadError read_error_; |
| 220 | 220 |
| 221 std::set<std::string> keys_need_empty_value_; | 221 std::set<std::string> keys_need_empty_value_; |
| 222 | 222 |
| 223 WriteCountHistogram write_count_histogram_; | 223 WriteCountHistogram write_count_histogram_; |
| 224 | 224 |
| 225 DISALLOW_COPY_AND_ASSIGN(JsonPrefStore); | 225 DISALLOW_COPY_AND_ASSIGN(JsonPrefStore); |
| 226 }; | 226 }; |
| 227 | 227 |
| 228 #endif // BASE_PREFS_JSON_PREF_STORE_H_ | 228 #endif // BASE_PREFS_JSON_PREF_STORE_H_ |
| OLD | NEW |