| 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 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 class ContentVerifier; | 32 class ContentVerifier; |
| 33 class Extension; | 33 class Extension; |
| 34 class ExtensionSet; | 34 class ExtensionSet; |
| 35 class InfoMap; | 35 class InfoMap; |
| 36 class ManagementPolicy; | 36 class ManagementPolicy; |
| 37 class OneShotEvent; | 37 class OneShotEvent; |
| 38 class QuotaService; | 38 class QuotaService; |
| 39 class RuntimeData; | 39 class RuntimeData; |
| 40 class SharedUserScriptMaster; | 40 class SharedUserScriptMaster; |
| 41 class SidebarManager; |
| 41 class StateStore; | 42 class StateStore; |
| 42 | 43 |
| 43 // ExtensionSystem manages the lifetime of many of the services used by the | 44 // ExtensionSystem manages the lifetime of many of the services used by the |
| 44 // extensions and apps system, and it handles startup and shutdown as needed. | 45 // extensions and apps system, and it handles startup and shutdown as needed. |
| 45 // Eventually, we'd like to make more of these services into KeyedServices in | 46 // Eventually, we'd like to make more of these services into KeyedServices in |
| 46 // their own right. | 47 // their own right. |
| 47 class ExtensionSystem : public KeyedService { | 48 class ExtensionSystem : public KeyedService { |
| 48 public: | 49 public: |
| 49 ExtensionSystem(); | 50 ExtensionSystem(); |
| 50 ~ExtensionSystem() override; | 51 ~ExtensionSystem() override; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 virtual const OneShotEvent& ready() const = 0; | 105 virtual const OneShotEvent& ready() const = 0; |
| 105 | 106 |
| 106 // Returns the content verifier, if any. | 107 // Returns the content verifier, if any. |
| 107 virtual ContentVerifier* content_verifier() = 0; | 108 virtual ContentVerifier* content_verifier() = 0; |
| 108 | 109 |
| 109 // Get a set of extensions that depend on the given extension. | 110 // Get a set of extensions that depend on the given extension. |
| 110 // TODO(elijahtaylor): Move SharedModuleService out of chrome/browser | 111 // TODO(elijahtaylor): Move SharedModuleService out of chrome/browser |
| 111 // so it can be retrieved from ExtensionSystem directly. | 112 // so it can be retrieved from ExtensionSystem directly. |
| 112 virtual scoped_ptr<ExtensionSet> GetDependentExtensions( | 113 virtual scoped_ptr<ExtensionSet> GetDependentExtensions( |
| 113 const Extension* extension) = 0; | 114 const Extension* extension) = 0; |
| 115 |
| 116 virtual SidebarManager* sidebar_manager(); |
| 114 }; | 117 }; |
| 115 | 118 |
| 116 } // namespace extensions | 119 } // namespace extensions |
| 117 | 120 |
| 118 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ | 121 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ |
| OLD | NEW |