| 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_OVERLAY_USER_PREF_STORE_H_ | 5 #ifndef COMPONENTS_PREFS_OVERLAY_USER_PREF_STORE_H_ |
| 6 #define COMPONENTS_PREFS_OVERLAY_USER_PREF_STORE_H_ | 6 #define COMPONENTS_PREFS_OVERLAY_USER_PREF_STORE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 void AddObserver(PrefStore::Observer* observer) override; | 35 void AddObserver(PrefStore::Observer* observer) override; |
| 36 void RemoveObserver(PrefStore::Observer* observer) override; | 36 void RemoveObserver(PrefStore::Observer* observer) override; |
| 37 bool HasObservers() const override; | 37 bool HasObservers() const override; |
| 38 bool IsInitializationComplete() const override; | 38 bool IsInitializationComplete() const override; |
| 39 bool GetValue(const std::string& key, | 39 bool GetValue(const std::string& key, |
| 40 const base::Value** result) const override; | 40 const base::Value** result) const override; |
| 41 | 41 |
| 42 // Methods of PersistentPrefStore. | 42 // Methods of PersistentPrefStore. |
| 43 bool GetMutableValue(const std::string& key, base::Value** result) override; | 43 bool GetMutableValue(const std::string& key, base::Value** result) override; |
| 44 void SetValue(const std::string& key, | 44 void SetValue(const std::string& key, |
| 45 scoped_ptr<base::Value> value, | 45 std::unique_ptr<base::Value> value, |
| 46 uint32_t flags) override; | 46 uint32_t flags) override; |
| 47 void SetValueSilently(const std::string& key, | 47 void SetValueSilently(const std::string& key, |
| 48 scoped_ptr<base::Value> value, | 48 std::unique_ptr<base::Value> value, |
| 49 uint32_t flags) override; | 49 uint32_t flags) override; |
| 50 void RemoveValue(const std::string& key, uint32_t flags) override; | 50 void RemoveValue(const std::string& key, uint32_t flags) override; |
| 51 bool ReadOnly() const override; | 51 bool ReadOnly() const override; |
| 52 PrefReadError GetReadError() const override; | 52 PrefReadError GetReadError() const override; |
| 53 PrefReadError ReadPrefs() override; | 53 PrefReadError ReadPrefs() override; |
| 54 void ReadPrefsAsync(ReadErrorDelegate* delegate) override; | 54 void ReadPrefsAsync(ReadErrorDelegate* delegate) override; |
| 55 void CommitPendingWrite() override; | 55 void CommitPendingWrite() override; |
| 56 void SchedulePendingLossyWrites() override; | 56 void SchedulePendingLossyWrites() override; |
| 57 void ReportValueChanged(const std::string& key, uint32_t flags) override; | 57 void ReportValueChanged(const std::string& key, uint32_t flags) override; |
| 58 | 58 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 82 base::ObserverList<PrefStore::Observer, true> observers_; | 82 base::ObserverList<PrefStore::Observer, true> observers_; |
| 83 PrefValueMap overlay_; | 83 PrefValueMap overlay_; |
| 84 scoped_refptr<PersistentPrefStore> underlay_; | 84 scoped_refptr<PersistentPrefStore> underlay_; |
| 85 NamesMap overlay_to_underlay_names_map_; | 85 NamesMap overlay_to_underlay_names_map_; |
| 86 NamesMap underlay_to_overlay_names_map_; | 86 NamesMap underlay_to_overlay_names_map_; |
| 87 | 87 |
| 88 DISALLOW_COPY_AND_ASSIGN(OverlayUserPrefStore); | 88 DISALLOW_COPY_AND_ASSIGN(OverlayUserPrefStore); |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 #endif // COMPONENTS_PREFS_OVERLAY_USER_PREF_STORE_H_ | 91 #endif // COMPONENTS_PREFS_OVERLAY_USER_PREF_STORE_H_ |
| OLD | NEW |