| 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 CHROME_BROWSER_PREFS_OVERLAY_USER_PREF_STORE_H_ | 5 #ifndef CHROME_BROWSER_PREFS_OVERLAY_USER_PREF_STORE_H_ |
| 6 #define CHROME_BROWSER_PREFS_OVERLAY_USER_PREF_STORE_H_ | 6 #define CHROME_BROWSER_PREFS_OVERLAY_USER_PREF_STORE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 virtual ReadResult GetValue(const std::string& key, | 38 virtual ReadResult GetValue(const std::string& key, |
| 39 const base::Value** result) const OVERRIDE; | 39 const base::Value** result) const OVERRIDE; |
| 40 | 40 |
| 41 // Methods of PersistentPrefStore. | 41 // Methods of PersistentPrefStore. |
| 42 virtual ReadResult GetMutableValue(const std::string& key, | 42 virtual ReadResult GetMutableValue(const std::string& key, |
| 43 base::Value** result) OVERRIDE; | 43 base::Value** result) OVERRIDE; |
| 44 virtual void SetValue(const std::string& key, base::Value* value) OVERRIDE; | 44 virtual void SetValue(const std::string& key, base::Value* value) OVERRIDE; |
| 45 virtual void SetValueSilently(const std::string& key, | 45 virtual void SetValueSilently(const std::string& key, |
| 46 base::Value* value) OVERRIDE; | 46 base::Value* value) OVERRIDE; |
| 47 virtual void RemoveValue(const std::string& key) OVERRIDE; | 47 virtual void RemoveValue(const std::string& key) OVERRIDE; |
| 48 virtual void MarkNeedsEmptyValue(const std::string& key) OVERRIDE; |
| 48 virtual bool ReadOnly() const OVERRIDE; | 49 virtual bool ReadOnly() const OVERRIDE; |
| 49 virtual PrefReadError GetReadError() const OVERRIDE; | 50 virtual PrefReadError GetReadError() const OVERRIDE; |
| 50 virtual PrefReadError ReadPrefs() OVERRIDE; | 51 virtual PrefReadError ReadPrefs() OVERRIDE; |
| 51 virtual void ReadPrefsAsync(ReadErrorDelegate* delegate) OVERRIDE; | 52 virtual void ReadPrefsAsync(ReadErrorDelegate* delegate) OVERRIDE; |
| 52 virtual void CommitPendingWrite() OVERRIDE; | 53 virtual void CommitPendingWrite() OVERRIDE; |
| 53 virtual void ReportValueChanged(const std::string& key) OVERRIDE; | 54 virtual void ReportValueChanged(const std::string& key) OVERRIDE; |
| 54 | 55 |
| 55 void RegisterOverlayPref(const std::string& key); | 56 void RegisterOverlayPref(const std::string& key); |
| 56 void RegisterOverlayPref(const std::string& overlay_key, | 57 void RegisterOverlayPref(const std::string& overlay_key, |
| 57 const std::string& underlay_key); | 58 const std::string& underlay_key); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 73 ObserverList<PrefStore::Observer, true> observers_; | 74 ObserverList<PrefStore::Observer, true> observers_; |
| 74 PrefValueMap overlay_; | 75 PrefValueMap overlay_; |
| 75 scoped_refptr<PersistentPrefStore> underlay_; | 76 scoped_refptr<PersistentPrefStore> underlay_; |
| 76 NamesMap overlay_to_underlay_names_map_; | 77 NamesMap overlay_to_underlay_names_map_; |
| 77 NamesMap underlay_to_overlay_names_map_; | 78 NamesMap underlay_to_overlay_names_map_; |
| 78 | 79 |
| 79 DISALLOW_COPY_AND_ASSIGN(OverlayUserPrefStore); | 80 DISALLOW_COPY_AND_ASSIGN(OverlayUserPrefStore); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 #endif // CHROME_BROWSER_PREFS_OVERLAY_USER_PREF_STORE_H_ | 83 #endif // CHROME_BROWSER_PREFS_OVERLAY_USER_PREF_STORE_H_ |
| OLD | NEW |