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