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 class ExtensionService; | 14 class ExtensionService; |
15 | 15 |
16 #if defined(OS_CHROMEOS) | 16 #if defined(OS_CHROMEOS) |
17 namespace chromeos { | 17 namespace chromeos { |
18 class DeviceLocalAccountManagementPolicyProvider; | 18 class DeviceLocalAccountManagementPolicyProvider; |
19 } | 19 } |
20 #endif // defined(OS_CHROMEOS) | 20 #endif // defined(OS_CHROMEOS) |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 class BrowserContext; | 23 class BrowserContext; |
24 } | 24 } |
25 | 25 |
26 namespace extensions { | 26 namespace extensions { |
27 | 27 |
28 class Blacklist; | 28 class Blacklist; |
| 29 class ContentVerifier; |
29 class ErrorConsole; | 30 class ErrorConsole; |
30 class EventRouter; | 31 class EventRouter; |
31 class Extension; | 32 class Extension; |
32 class ExtensionWarningService; | 33 class ExtensionWarningService; |
33 class InfoMap; | 34 class InfoMap; |
34 class InstallVerifier; | 35 class InstallVerifier; |
35 class LazyBackgroundTaskQueue; | 36 class LazyBackgroundTaskQueue; |
36 class ManagementPolicy; | 37 class ManagementPolicy; |
37 class OneShotEvent; | 38 class OneShotEvent; |
38 class ProcessManager; | 39 class ProcessManager; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 118 |
118 // Called by the ExtensionService that lives in this system. Lets the | 119 // Called by the ExtensionService that lives in this system. Lets the |
119 // info map clean up its RequestContexts once all the listeners to the | 120 // info map clean up its RequestContexts once all the listeners to the |
120 // EXTENSION_UNLOADED notification have finished running. | 121 // EXTENSION_UNLOADED notification have finished running. |
121 virtual void UnregisterExtensionWithRequestContexts( | 122 virtual void UnregisterExtensionWithRequestContexts( |
122 const std::string& extension_id, | 123 const std::string& extension_id, |
123 const UnloadedExtensionInfo::Reason reason) {} | 124 const UnloadedExtensionInfo::Reason reason) {} |
124 | 125 |
125 // Signaled when the extension system has completed its startup tasks. | 126 // Signaled when the extension system has completed its startup tasks. |
126 virtual const OneShotEvent& ready() const = 0; | 127 virtual const OneShotEvent& ready() const = 0; |
| 128 |
| 129 // Returns the content verifier, if any. |
| 130 virtual ContentVerifier* content_verifier(); |
127 }; | 131 }; |
128 | 132 |
129 } // namespace extensions | 133 } // namespace extensions |
130 | 134 |
131 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ | 135 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ |
OLD | NEW |