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" |
(...skipping 12 matching lines...) Expand all Loading... |
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 ContentVerifier; |
30 class ErrorConsole; | 30 class ErrorConsole; |
31 class EventRouter; | 31 class EventRouter; |
32 class Extension; | 32 class Extension; |
| 33 class ExtensionSet; |
33 class ExtensionWarningService; | 34 class ExtensionWarningService; |
34 class InfoMap; | 35 class InfoMap; |
35 class InstallVerifier; | 36 class InstallVerifier; |
36 class LazyBackgroundTaskQueue; | 37 class LazyBackgroundTaskQueue; |
37 class ManagementPolicy; | 38 class ManagementPolicy; |
38 class OneShotEvent; | 39 class OneShotEvent; |
39 class ProcessManager; | 40 class ProcessManager; |
40 class QuotaService; | 41 class QuotaService; |
41 class RuntimeData; | 42 class RuntimeData; |
42 class StateStore; | 43 class StateStore; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // EXTENSION_UNLOADED notification have finished running. | 122 // EXTENSION_UNLOADED notification have finished running. |
122 virtual void UnregisterExtensionWithRequestContexts( | 123 virtual void UnregisterExtensionWithRequestContexts( |
123 const std::string& extension_id, | 124 const std::string& extension_id, |
124 const UnloadedExtensionInfo::Reason reason) {} | 125 const UnloadedExtensionInfo::Reason reason) {} |
125 | 126 |
126 // Signaled when the extension system has completed its startup tasks. | 127 // Signaled when the extension system has completed its startup tasks. |
127 virtual const OneShotEvent& ready() const = 0; | 128 virtual const OneShotEvent& ready() const = 0; |
128 | 129 |
129 // Returns the content verifier, if any. | 130 // Returns the content verifier, if any. |
130 virtual ContentVerifier* content_verifier() = 0; | 131 virtual ContentVerifier* content_verifier() = 0; |
| 132 |
| 133 // Get a set of extensions that depend on the given extension. |
| 134 // TODO(elijahtaylor): Move SharedModuleService out of chrome/browser |
| 135 // so it can be retrieved from ExtensionSystem directly. |
| 136 virtual scoped_ptr<ExtensionSet> GetDependentExtensions( |
| 137 const Extension* extension) = 0; |
131 }; | 138 }; |
132 | 139 |
133 } // namespace extensions | 140 } // namespace extensions |
134 | 141 |
135 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ | 142 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ |
OLD | NEW |