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_SYSTEM_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ |
6 #define EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "components/keyed_service/core/keyed_service.h" | 11 #include "components/keyed_service/core/keyed_service.h" |
12 #include "extensions/common/extension.h" | 12 #include "extensions/common/extension.h" |
13 | 13 |
| 14 #if !defined(ENABLE_EXTENSIONS) |
| 15 #error "Extensions must be enabled" |
| 16 #endif |
| 17 |
14 class ExtensionService; | 18 class ExtensionService; |
15 | 19 |
16 #if defined(OS_CHROMEOS) | 20 #if defined(OS_CHROMEOS) |
17 namespace chromeos { | 21 namespace chromeos { |
18 class DeviceLocalAccountManagementPolicyProvider; | 22 class DeviceLocalAccountManagementPolicyProvider; |
19 } | 23 } |
20 #endif // defined(OS_CHROMEOS) | 24 #endif // defined(OS_CHROMEOS) |
21 | 25 |
22 namespace content { | 26 namespace content { |
23 class BrowserContext; | 27 class BrowserContext; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 143 |
140 // Get the user script master for declarative scripts, if any. | 144 // Get the user script master for declarative scripts, if any. |
141 virtual DeclarativeUserScriptMaster* | 145 virtual DeclarativeUserScriptMaster* |
142 GetDeclarativeUserScriptMasterByExtension( | 146 GetDeclarativeUserScriptMasterByExtension( |
143 const ExtensionId& extension_id) = 0; | 147 const ExtensionId& extension_id) = 0; |
144 }; | 148 }; |
145 | 149 |
146 } // namespace extensions | 150 } // namespace extensions |
147 | 151 |
148 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ | 152 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ |
OLD | NEW |