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_BROWSER_EXTENSIONS_EXTENSION_PREF_VALUE_MAP_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_PREF_VALUE_MAP_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_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/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "base/prefs/pref_value_map.h" | 13 #include "base/prefs/pref_value_map.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" | 16 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 // In normal Profile shutdown, Shutdown() notifies observers that we are | 188 // In normal Profile shutdown, Shutdown() notifies observers that we are |
189 // being destroyed. In tests, it isn't called, so the notification must | 189 // being destroyed. In tests, it isn't called, so the notification must |
190 // be done in the destructor. This bit tracks whether it has been done yet. | 190 // be done in the destructor. This bit tracks whether it has been done yet. |
191 bool destroyed_; | 191 bool destroyed_; |
192 | 192 |
193 ObserverList<Observer, true> observers_; | 193 ObserverList<Observer, true> observers_; |
194 | 194 |
195 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefValueMap); | 195 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefValueMap); |
196 }; | 196 }; |
197 | 197 |
198 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_VALUE_MAP_H_ | 198 #endif // EXTENSIONS_BROWSER_EXTENSION_PREF_VALUE_MAP_H_ |
OLD | NEW |