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" |
| 11 #include "base/memory/scoped_ptr.h" |
11 #include "base/prefs/pref_store.h" | 12 #include "base/prefs/pref_store.h" |
12 | 13 |
13 namespace base { | 14 namespace base { |
14 class Value; | 15 class Value; |
15 } | 16 } |
16 | 17 |
17 // A pref store that can be written to as well as read from. | 18 // A pref store that can be written to as well as read from. |
18 class BASE_PREFS_EXPORT WriteablePrefStore : public PrefStore { | 19 class BASE_PREFS_EXPORT WriteablePrefStore : public PrefStore { |
19 public: | 20 public: |
20 // PrefWriteFlags can be used to change the way a pref will be written to | 21 // PrefWriteFlags can be used to change the way a pref will be written to |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 uint32 flags) = 0; | 61 uint32 flags) = 0; |
61 | 62 |
62 protected: | 63 protected: |
63 ~WriteablePrefStore() override {} | 64 ~WriteablePrefStore() override {} |
64 | 65 |
65 private: | 66 private: |
66 DISALLOW_COPY_AND_ASSIGN(WriteablePrefStore); | 67 DISALLOW_COPY_AND_ASSIGN(WriteablePrefStore); |
67 }; | 68 }; |
68 | 69 |
69 #endif // BASE_PREFS_WRITEABLE_PREF_STORE_H_ | 70 #endif // BASE_PREFS_WRITEABLE_PREF_STORE_H_ |
OLD | NEW |