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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 virtual Blacklist* blacklist() OVERRIDE; | 60 virtual Blacklist* blacklist() OVERRIDE; |
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 | 71 |
71 private: | 72 private: |
72 content::BrowserContext* browser_context_; // Not owned. | 73 content::BrowserContext* browser_context_; // Not owned. |
73 | 74 |
74 // Extension ID for the app. | 75 // Extension ID for the app. |
75 std::string app_id_; | 76 std::string app_id_; |
76 | 77 |
77 // Data to be accessed on the IO thread. Must outlive process_manager_. | 78 // Data to be accessed on the IO thread. Must outlive process_manager_. |
78 scoped_refptr<InfoMap> info_map_; | 79 scoped_refptr<InfoMap> info_map_; |
79 | 80 |
80 scoped_ptr<RuntimeData> runtime_data_; | 81 scoped_ptr<RuntimeData> runtime_data_; |
81 scoped_ptr<LazyBackgroundTaskQueue> lazy_background_task_queue_; | 82 scoped_ptr<LazyBackgroundTaskQueue> lazy_background_task_queue_; |
82 scoped_ptr<EventRouter> event_router_; | 83 scoped_ptr<EventRouter> event_router_; |
83 scoped_ptr<ProcessManager> process_manager_; | 84 scoped_ptr<ProcessManager> process_manager_; |
84 scoped_ptr<QuotaService> quota_service_; | 85 scoped_ptr<QuotaService> quota_service_; |
85 | 86 |
86 // Signaled when the extension system has completed its startup tasks. | 87 // Signaled when the extension system has completed its startup tasks. |
87 OneShotEvent ready_; | 88 OneShotEvent ready_; |
88 | 89 |
89 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem); | 90 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem); |
90 }; | 91 }; |
91 | 92 |
92 } // namespace extensions | 93 } // namespace extensions |
93 | 94 |
94 #endif // APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ | 95 #endif // APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ |
OLD | NEW |