OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_REGISTRY_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ |
6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
14 #include "components/keyed_service/core/keyed_service.h" | 14 #include "components/keyed_service/core/keyed_service.h" |
15 #include "extensions/browser/uninstall_reason.h" | 15 #include "extensions/browser/uninstall_reason.h" |
16 #include "extensions/common/extension_set.h" | 16 #include "extensions/common/extension_set.h" |
| 17 #include "extensions/features/features.h" |
17 | 18 |
18 #if !defined(ENABLE_EXTENSIONS) | 19 #if !BUILDFLAG(ENABLE_EXTENSIONS) |
19 #error "Extensions must be enabled" | 20 #error "Extensions must be enabled" |
20 #endif | 21 #endif |
21 | 22 |
22 namespace content { | 23 namespace content { |
23 class BrowserContext; | 24 class BrowserContext; |
24 } | 25 } |
25 | 26 |
26 namespace extensions { | 27 namespace extensions { |
27 class Extension; | 28 class Extension; |
28 class ExtensionRegistryObserver; | 29 class ExtensionRegistryObserver; |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 base::ObserverList<ExtensionRegistryObserver> observers_; | 196 base::ObserverList<ExtensionRegistryObserver> observers_; |
196 | 197 |
197 content::BrowserContext* const browser_context_; | 198 content::BrowserContext* const browser_context_; |
198 | 199 |
199 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry); | 200 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry); |
200 }; | 201 }; |
201 | 202 |
202 } // namespace extensions | 203 } // namespace extensions |
203 | 204 |
204 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ | 205 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ |
OLD | NEW |