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 CHROME_BROWSER_PREFS_LEVELDB_PREF_STORE_H_ | 5 #ifndef CHROME_BROWSER_PREFS_LEVELDB_PREF_STORE_H_ |
6 #define CHROME_BROWSER_PREFS_LEVELDB_PREF_STORE_H_ | 6 #define CHROME_BROWSER_PREFS_LEVELDB_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/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/message_loop/message_loop_proxy.h" | |
17 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
18 #include "base/prefs/persistent_pref_store.h" | 17 #include "base/prefs/persistent_pref_store.h" |
19 #include "base/prefs/pref_value_map.h" | 18 #include "base/prefs/pref_value_map.h" |
| 19 #include "base/thread_task_runner_handle.h" |
20 #include "base/timer/timer.h" | 20 #include "base/timer/timer.h" |
21 | 21 |
22 namespace base { | 22 namespace base { |
23 class DictionaryValue; | 23 class DictionaryValue; |
24 class SequencedTaskRunner; | 24 class SequencedTaskRunner; |
25 class Value; | 25 class Value; |
26 } | 26 } |
27 | 27 |
28 namespace leveldb { | 28 namespace leveldb { |
29 class DB; | 29 class DB; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 base::hash_set<std::string> keys_to_delete_; | 111 base::hash_set<std::string> keys_to_delete_; |
112 base::hash_map<std::string, std::string> keys_to_set_; | 112 base::hash_map<std::string, std::string> keys_to_set_; |
113 base::OneShotTimer<LevelDBPrefStore> timer_; | 113 base::OneShotTimer<LevelDBPrefStore> timer_; |
114 | 114 |
115 base::WeakPtrFactory<LevelDBPrefStore> weak_ptr_factory_; | 115 base::WeakPtrFactory<LevelDBPrefStore> weak_ptr_factory_; |
116 | 116 |
117 DISALLOW_COPY_AND_ASSIGN(LevelDBPrefStore); | 117 DISALLOW_COPY_AND_ASSIGN(LevelDBPrefStore); |
118 }; | 118 }; |
119 | 119 |
120 #endif // CHROME_BROWSER_PREFS_LEVELDB_PREF_STORE_H_ | 120 #endif // CHROME_BROWSER_PREFS_LEVELDB_PREF_STORE_H_ |
OLD | NEW |