| 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_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ |
| 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 namespace extensions { | 24 namespace extensions { |
| 25 | 25 |
| 26 class DeclarativeUserScriptManager; | 26 class DeclarativeUserScriptManager; |
| 27 class EventRouter; | 27 class EventRouter; |
| 28 class InfoMap; | 28 class InfoMap; |
| 29 class LazyBackgroundTaskQueue; | 29 class LazyBackgroundTaskQueue; |
| 30 class ProcessManager; | 30 class ProcessManager; |
| 31 class RendererStartupHelper; | 31 class RendererStartupHelper; |
| 32 class SharedUserScriptMaster; | 32 class SharedUserScriptMaster; |
| 33 class WebViewContentScriptManager; |
| 33 | 34 |
| 34 // A simplified version of ExtensionSystem for app_shell. Allows | 35 // A simplified version of ExtensionSystem for app_shell. Allows |
| 35 // app_shell to skip initialization of services it doesn't need. | 36 // app_shell to skip initialization of services it doesn't need. |
| 36 class ShellExtensionSystem : public ExtensionSystem { | 37 class ShellExtensionSystem : public ExtensionSystem { |
| 37 public: | 38 public: |
| 38 explicit ShellExtensionSystem(content::BrowserContext* browser_context); | 39 explicit ShellExtensionSystem(content::BrowserContext* browser_context); |
| 39 ~ShellExtensionSystem() override; | 40 ~ShellExtensionSystem() override; |
| 40 | 41 |
| 41 // Loads an unpacked application from a directory. Returns the extension on | 42 // Loads an unpacked application from a directory. Returns the extension on |
| 42 // success, or null otherwise. | 43 // success, or null otherwise. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 59 SharedUserScriptMaster* shared_user_script_master() override; | 60 SharedUserScriptMaster* shared_user_script_master() override; |
| 60 DeclarativeUserScriptManager* declarative_user_script_manager() override; | 61 DeclarativeUserScriptManager* declarative_user_script_manager() override; |
| 61 StateStore* state_store() override; | 62 StateStore* state_store() override; |
| 62 StateStore* rules_store() override; | 63 StateStore* rules_store() override; |
| 63 InfoMap* info_map() override; | 64 InfoMap* info_map() override; |
| 64 LazyBackgroundTaskQueue* lazy_background_task_queue() override; | 65 LazyBackgroundTaskQueue* lazy_background_task_queue() override; |
| 65 EventRouter* event_router() override; | 66 EventRouter* event_router() override; |
| 66 ErrorConsole* error_console() override; | 67 ErrorConsole* error_console() override; |
| 67 InstallVerifier* install_verifier() override; | 68 InstallVerifier* install_verifier() override; |
| 68 QuotaService* quota_service() override; | 69 QuotaService* quota_service() override; |
| 70 WebViewContentScriptManager* web_view_content_script_manager() override; |
| 69 void RegisterExtensionWithRequestContexts( | 71 void RegisterExtensionWithRequestContexts( |
| 70 const Extension* extension) override; | 72 const Extension* extension) override; |
| 71 void UnregisterExtensionWithRequestContexts( | 73 void UnregisterExtensionWithRequestContexts( |
| 72 const std::string& extension_id, | 74 const std::string& extension_id, |
| 73 const UnloadedExtensionInfo::Reason reason) override; | 75 const UnloadedExtensionInfo::Reason reason) override; |
| 74 const OneShotEvent& ready() const override; | 76 const OneShotEvent& ready() const override; |
| 75 ContentVerifier* content_verifier() override; | 77 ContentVerifier* content_verifier() override; |
| 76 scoped_ptr<ExtensionSet> GetDependentExtensions( | 78 scoped_ptr<ExtensionSet> GetDependentExtensions( |
| 77 const Extension* extension) override; | 79 const Extension* extension) override; |
| 78 | 80 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 89 | 91 |
| 90 // Signaled when the extension system has completed its startup tasks. | 92 // Signaled when the extension system has completed its startup tasks. |
| 91 OneShotEvent ready_; | 93 OneShotEvent ready_; |
| 92 | 94 |
| 93 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem); | 95 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem); |
| 94 }; | 96 }; |
| 95 | 97 |
| 96 } // namespace extensions | 98 } // namespace extensions |
| 97 | 99 |
| 98 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ | 100 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ |
| OLD | NEW |