| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_WRITEABLE_PREF_STORE_H_ | 5 #ifndef BASE_PREFS_WRITEABLE_PREF_STORE_H_ |
| 6 #define BASE_PREFS_WRITEABLE_PREF_STORE_H_ | 6 #define BASE_PREFS_WRITEABLE_PREF_STORE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // ReportValueChanged will trigger notifications even if nothing has changed. | 36 // ReportValueChanged will trigger notifications even if nothing has changed. |
| 37 virtual void ReportValueChanged(const std::string& key) = 0; | 37 virtual void ReportValueChanged(const std::string& key) = 0; |
| 38 | 38 |
| 39 // Same as SetValue, but doesn't generate notifications. This is used by | 39 // Same as SetValue, but doesn't generate notifications. This is used by |
| 40 // PrefService::GetMutableUserPref() in order to put empty entries | 40 // PrefService::GetMutableUserPref() in order to put empty entries |
| 41 // into the user pref store. Using SetValue is not an option since existing | 41 // into the user pref store. Using SetValue is not an option since existing |
| 42 // tests rely on the number of notifications generated. | 42 // tests rely on the number of notifications generated. |
| 43 virtual void SetValueSilently(const std::string& key, base::Value* value) = 0; | 43 virtual void SetValueSilently(const std::string& key, base::Value* value) = 0; |
| 44 | 44 |
| 45 protected: | 45 protected: |
| 46 virtual ~WriteablePrefStore() {} | 46 ~WriteablePrefStore() override {} |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 DISALLOW_COPY_AND_ASSIGN(WriteablePrefStore); | 49 DISALLOW_COPY_AND_ASSIGN(WriteablePrefStore); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 #endif // BASE_PREFS_WRITEABLE_PREF_STORE_H_ | 52 #endif // BASE_PREFS_WRITEABLE_PREF_STORE_H_ |
| OLD | NEW |