OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_EXTENSIONS_EXTENSION_PREF_STORE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_STORE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_STORE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_STORE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
11 #include <string> | 11 #include <string> |
12 #include <utility> | 12 #include <utility> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
16 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
17 #include "base/stl_util-inl.h" | 17 #include "base/stl_util-inl.h" |
18 #include "chrome/browser/pref_notifier.h" | 18 #include "chrome/browser/pref_notifier.h" |
| 19 #include "chrome/common/notification_observer.h" |
19 #include "chrome/common/notification_registrar.h" | 20 #include "chrome/common/notification_registrar.h" |
20 #include "chrome/common/pref_store.h" | 21 #include "chrome/common/pref_store.h" |
21 | 22 |
22 class DictionaryValue; | 23 class DictionaryValue; |
23 class Extension; | 24 class Extension; |
24 class PrefService; | 25 class PrefService; |
25 class Profile; | 26 class Profile; |
26 class Value; | 27 class Value; |
27 | 28 |
28 // This PrefStore keeps track of preferences set by extensions: for example, | 29 // This PrefStore keeps track of preferences set by extensions: for example, |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // extensions. | 114 // extensions. |
114 Profile* profile_; | 115 Profile* profile_; |
115 | 116 |
116 // My PrefStore type, assigned by the PrefValueStore. | 117 // My PrefStore type, assigned by the PrefValueStore. |
117 PrefNotifier::PrefStoreType type_; | 118 PrefNotifier::PrefStoreType type_; |
118 | 119 |
119 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefStore); | 120 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefStore); |
120 }; | 121 }; |
121 | 122 |
122 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_STORE_H_ | 123 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_STORE_H_ |
OLD | NEW |