Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BASE_PREFS_WRITEABLE_PREF_STORE_H_ | |
| 6 #define BASE_PREFS_WRITEABLE_PREF_STORE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/memory/ref_counted.h" | |
|
battre
2013/12/20 12:12:13
this is not needed, right?
Evan Stade
2013/12/20 22:34:12
correct. I fixed it but didn't want to upload an e
| |
| 12 #include "base/prefs/pref_store.h" | |
| 13 | |
| 14 namespace base { | |
| 15 class Value; | |
| 16 } | |
| 17 | |
| 18 // A pref store that can be written to as well as read from. | |
| 19 class BASE_PREFS_EXPORT WriteablePrefStore : public PrefStore { | |
| 20 public: | |
| 21 WriteablePrefStore() {} | |
| 22 | |
| 23 // Sets a |value| for |key| in the store. Assumes ownership of |value|, which | |
| 24 // must be non-NULL. | |
| 25 virtual void SetValue(const std::string& key, base::Value* value) = 0; | |
| 26 | |
| 27 // Removes the value for |key|. | |
| 28 virtual void RemoveValue(const std::string& key) = 0; | |
| 29 | |
| 30 protected: | |
| 31 virtual ~WriteablePrefStore() {} | |
| 32 | |
| 33 private: | |
| 34 DISALLOW_COPY_AND_ASSIGN(WriteablePrefStore); | |
| 35 }; | |
| 36 | |
| 37 #endif // BASE_PREFS_WRITEABLE_PREF_STORE_H_ | |
| OLD | NEW |