| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ | 5 #ifndef APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ |
| 6 #define APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ | 6 #define APPS_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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual ErrorConsole* error_console() OVERRIDE; | 61 virtual ErrorConsole* error_console() OVERRIDE; |
| 62 virtual InstallVerifier* install_verifier() OVERRIDE; | 62 virtual InstallVerifier* install_verifier() OVERRIDE; |
| 63 virtual QuotaService* quota_service() OVERRIDE; | 63 virtual QuotaService* quota_service() OVERRIDE; |
| 64 virtual void RegisterExtensionWithRequestContexts( | 64 virtual void RegisterExtensionWithRequestContexts( |
| 65 const Extension* extension) OVERRIDE; | 65 const Extension* extension) OVERRIDE; |
| 66 virtual void UnregisterExtensionWithRequestContexts( | 66 virtual void UnregisterExtensionWithRequestContexts( |
| 67 const std::string& extension_id, | 67 const std::string& extension_id, |
| 68 const UnloadedExtensionInfo::Reason reason) OVERRIDE; | 68 const UnloadedExtensionInfo::Reason reason) OVERRIDE; |
| 69 virtual const OneShotEvent& ready() const OVERRIDE; | 69 virtual const OneShotEvent& ready() const OVERRIDE; |
| 70 virtual ContentVerifier* content_verifier() OVERRIDE; | 70 virtual ContentVerifier* content_verifier() OVERRIDE; |
| 71 virtual scoped_ptr<const ExtensionSet> GetDependentExtensions( |
| 72 const Extension* extension) OVERRIDE; |
| 71 | 73 |
| 72 private: | 74 private: |
| 73 content::BrowserContext* browser_context_; // Not owned. | 75 content::BrowserContext* browser_context_; // Not owned. |
| 74 | 76 |
| 75 // Extension ID for the app. | 77 // Extension ID for the app. |
| 76 std::string app_id_; | 78 std::string app_id_; |
| 77 | 79 |
| 78 // Data to be accessed on the IO thread. Must outlive process_manager_. | 80 // Data to be accessed on the IO thread. Must outlive process_manager_. |
| 79 scoped_refptr<InfoMap> info_map_; | 81 scoped_refptr<InfoMap> info_map_; |
| 80 | 82 |
| 81 scoped_ptr<RuntimeData> runtime_data_; | 83 scoped_ptr<RuntimeData> runtime_data_; |
| 82 scoped_ptr<LazyBackgroundTaskQueue> lazy_background_task_queue_; | 84 scoped_ptr<LazyBackgroundTaskQueue> lazy_background_task_queue_; |
| 83 scoped_ptr<EventRouter> event_router_; | 85 scoped_ptr<EventRouter> event_router_; |
| 84 scoped_ptr<ProcessManager> process_manager_; | 86 scoped_ptr<ProcessManager> process_manager_; |
| 85 scoped_ptr<QuotaService> quota_service_; | 87 scoped_ptr<QuotaService> quota_service_; |
| 86 | 88 |
| 87 // Signaled when the extension system has completed its startup tasks. | 89 // Signaled when the extension system has completed its startup tasks. |
| 88 OneShotEvent ready_; | 90 OneShotEvent ready_; |
| 89 | 91 |
| 90 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem); | 92 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem); |
| 91 }; | 93 }; |
| 92 | 94 |
| 93 } // namespace extensions | 95 } // namespace extensions |
| 94 | 96 |
| 95 #endif // APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ | 97 #endif // APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ |
| OLD | NEW |