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