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