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_COMMON_JSON_PREF_STORE_H_ | 5 #ifndef BASE_PREFS_JSON_PREF_STORE_H_ |
6 #define CHROME_COMMON_JSON_PREF_STORE_H_ | 6 #define BASE_PREFS_JSON_PREF_STORE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
| 16 #include "base/prefs/persistent_pref_store.h" |
16 #include "chrome/common/important_file_writer.h" | 17 #include "chrome/common/important_file_writer.h" |
17 #include "chrome/common/persistent_pref_store.h" | |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class DictionaryValue; | 20 class DictionaryValue; |
21 class MessageLoopProxy; | 21 class MessageLoopProxy; |
22 class Value; | 22 class Value; |
23 } | 23 } |
24 | 24 |
25 class FilePath; | 25 class FilePath; |
26 | 26 |
27 // A writable PrefStore implementation that is used for user preferences. | 27 // A writable PrefStore implementation that is used for user preferences. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 scoped_ptr<ReadErrorDelegate> error_delegate_; | 83 scoped_ptr<ReadErrorDelegate> error_delegate_; |
84 | 84 |
85 bool initialized_; | 85 bool initialized_; |
86 PrefReadError read_error_; | 86 PrefReadError read_error_; |
87 | 87 |
88 std::set<std::string> keys_need_empty_value_; | 88 std::set<std::string> keys_need_empty_value_; |
89 | 89 |
90 DISALLOW_COPY_AND_ASSIGN(JsonPrefStore); | 90 DISALLOW_COPY_AND_ASSIGN(JsonPrefStore); |
91 }; | 91 }; |
92 | 92 |
93 #endif // CHROME_COMMON_JSON_PREF_STORE_H_ | 93 #endif // BASE_PREFS_JSON_PREF_STORE_H_ |
OLD | NEW |