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/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "components/keyed_service/core/keyed_service.h" | 13 #include "components/keyed_service/core/keyed_service.h" |
14 #include "extensions/browser/uninstall_reason.h" | 14 #include "extensions/browser/uninstall_reason.h" |
15 #include "extensions/common/extension_set.h" | 15 #include "extensions/common/extension_set.h" |
16 | 16 |
| 17 #if !defined(ENABLE_EXTENSIONS) |
| 18 #error "Extensions must be enabled" |
| 19 #endif |
| 20 |
17 namespace content { | 21 namespace content { |
18 class BrowserContext; | 22 class BrowserContext; |
19 } | 23 } |
20 | 24 |
21 namespace extensions { | 25 namespace extensions { |
22 class Extension; | 26 class Extension; |
23 class ExtensionRegistryObserver; | 27 class ExtensionRegistryObserver; |
24 | 28 |
25 // ExtensionRegistry holds sets of the installed extensions for a given | 29 // ExtensionRegistry holds sets of the installed extensions for a given |
26 // BrowserContext. An incognito browser context and its master browser context | 30 // BrowserContext. An incognito browser context and its master browser context |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 ObserverList<ExtensionRegistryObserver> observers_; | 167 ObserverList<ExtensionRegistryObserver> observers_; |
164 | 168 |
165 content::BrowserContext* const browser_context_; | 169 content::BrowserContext* const browser_context_; |
166 | 170 |
167 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry); | 171 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry); |
168 }; | 172 }; |
169 | 173 |
170 } // namespace extensions | 174 } // namespace extensions |
171 | 175 |
172 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ | 176 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ |
OLD | NEW |