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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 void RegisterExtensionWithRequestContexts( | 57 void RegisterExtensionWithRequestContexts( |
58 const Extension* extension, | 58 const Extension* extension, |
59 const base::Closure& callback) override; | 59 const base::Closure& callback) override; |
60 void UnregisterExtensionWithRequestContexts( | 60 void UnregisterExtensionWithRequestContexts( |
61 const std::string& extension_id, | 61 const std::string& extension_id, |
62 const UnloadedExtensionInfo::Reason reason) override; | 62 const UnloadedExtensionInfo::Reason reason) override; |
63 const OneShotEvent& ready() const override; | 63 const OneShotEvent& ready() const override; |
64 ContentVerifier* content_verifier() override; | 64 ContentVerifier* content_verifier() override; |
65 scoped_ptr<ExtensionSet> GetDependentExtensions( | 65 scoped_ptr<ExtensionSet> GetDependentExtensions( |
66 const Extension* extension) override; | 66 const Extension* extension) override; |
| 67 void InstallUpdate(const std::string& extension_id, |
| 68 const base::FilePath& temp_dir) override; |
67 | 69 |
68 private: | 70 private: |
69 void OnExtensionRegisteredWithRequestContexts( | 71 void OnExtensionRegisteredWithRequestContexts( |
70 scoped_refptr<Extension> extension); | 72 scoped_refptr<Extension> extension); |
71 content::BrowserContext* browser_context_; // Not owned. | 73 content::BrowserContext* browser_context_; // Not owned. |
72 | 74 |
73 // Data to be accessed on the IO thread. Must outlive process_manager_. | 75 // Data to be accessed on the IO thread. Must outlive process_manager_. |
74 scoped_refptr<InfoMap> info_map_; | 76 scoped_refptr<InfoMap> info_map_; |
75 | 77 |
76 scoped_ptr<ServiceWorkerManager> service_worker_manager_; | 78 scoped_ptr<ServiceWorkerManager> service_worker_manager_; |
77 scoped_ptr<RuntimeData> runtime_data_; | 79 scoped_ptr<RuntimeData> runtime_data_; |
78 scoped_ptr<QuotaService> quota_service_; | 80 scoped_ptr<QuotaService> quota_service_; |
79 scoped_ptr<AppSorting> app_sorting_; | 81 scoped_ptr<AppSorting> app_sorting_; |
80 | 82 |
81 // Signaled when the extension system has completed its startup tasks. | 83 // Signaled when the extension system has completed its startup tasks. |
82 OneShotEvent ready_; | 84 OneShotEvent ready_; |
83 | 85 |
84 base::WeakPtrFactory<ShellExtensionSystem> weak_factory_; | 86 base::WeakPtrFactory<ShellExtensionSystem> weak_factory_; |
85 | 87 |
86 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem); | 88 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem); |
87 }; | 89 }; |
88 | 90 |
89 } // namespace extensions | 91 } // namespace extensions |
90 | 92 |
91 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ | 93 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ |
OLD | NEW |