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 EXTENSIONS_BROWSER_EXTENSION_PREF_VALUE_MAP_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_PREF_VALUE_MAP_H_ |
6 #define EXTENSIONS_BROWSER_EXTENSION_PREF_VALUE_MAP_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_PREF_VALUE_MAP_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // Mapping of which extension set which preference value. The effective | 190 // Mapping of which extension set which preference value. The effective |
191 // preferences values (i.e. the ones with the highest precedence) | 191 // preferences values (i.e. the ones with the highest precedence) |
192 // are stored in ExtensionPrefStores. | 192 // are stored in ExtensionPrefStores. |
193 ExtensionEntryMap entries_; | 193 ExtensionEntryMap entries_; |
194 | 194 |
195 // In normal Profile shutdown, Shutdown() notifies observers that we are | 195 // In normal Profile shutdown, Shutdown() notifies observers that we are |
196 // being destroyed. In tests, it isn't called, so the notification must | 196 // being destroyed. In tests, it isn't called, so the notification must |
197 // be done in the destructor. This bit tracks whether it has been done yet. | 197 // be done in the destructor. This bit tracks whether it has been done yet. |
198 bool destroyed_; | 198 bool destroyed_; |
199 | 199 |
200 ObserverList<Observer, true> observers_; | 200 base::ObserverList<Observer, true> observers_; |
201 | 201 |
202 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefValueMap); | 202 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefValueMap); |
203 }; | 203 }; |
204 | 204 |
205 #endif // EXTENSIONS_BROWSER_EXTENSION_PREF_VALUE_MAP_H_ | 205 #endif // EXTENSIONS_BROWSER_EXTENSION_PREF_VALUE_MAP_H_ |
OLD | NEW |