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