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> |
11 | 11 |
| 12 #include "base/macros.h" |
12 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
13 #include "components/keyed_service/core/keyed_service.h" | 14 #include "components/keyed_service/core/keyed_service.h" |
14 #include "extensions/browser/extension_prefs_scope.h" | 15 #include "extensions/browser/extension_prefs_scope.h" |
15 | 16 |
16 class PrefValueMap; | 17 class PrefValueMap; |
17 | 18 |
18 namespace base { | 19 namespace base { |
19 class Time; | 20 class Time; |
20 class Value; | 21 class Value; |
21 } | 22 } |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // being destroyed. In tests, it isn't called, so the notification must | 201 // being destroyed. In tests, it isn't called, so the notification must |
201 // be done in the destructor. This bit tracks whether it has been done yet. | 202 // be done in the destructor. This bit tracks whether it has been done yet. |
202 bool destroyed_; | 203 bool destroyed_; |
203 | 204 |
204 base::ObserverList<Observer, true> observers_; | 205 base::ObserverList<Observer, true> observers_; |
205 | 206 |
206 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefValueMap); | 207 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefValueMap); |
207 }; | 208 }; |
208 | 209 |
209 #endif // EXTENSIONS_BROWSER_EXTENSION_PREF_VALUE_MAP_H_ | 210 #endif // EXTENSIONS_BROWSER_EXTENSION_PREF_VALUE_MAP_H_ |
OLD | NEW |