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 EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 namespace net { | 27 namespace net { |
28 class NetworkDelegate; | 28 class NetworkDelegate; |
29 class URLRequest; | 29 class URLRequest; |
30 class URLRequestJob; | 30 class URLRequestJob; |
31 } | 31 } |
32 | 32 |
33 namespace extensions { | 33 namespace extensions { |
34 | 34 |
35 class ApiActivityMonitor; | 35 class ApiActivityMonitor; |
36 class AppSorting; | 36 class AppSorting; |
| 37 class ComponentExtensionResourceManager; |
37 class Extension; | 38 class Extension; |
38 class ExtensionHostDelegate; | 39 class ExtensionHostDelegate; |
39 class ExtensionPrefsObserver; | 40 class ExtensionPrefsObserver; |
40 class ExtensionSystem; | 41 class ExtensionSystem; |
41 class ExtensionSystemProvider; | 42 class ExtensionSystemProvider; |
42 class InfoMap; | 43 class InfoMap; |
43 class RuntimeAPIDelegate; | 44 class RuntimeAPIDelegate; |
44 | 45 |
45 // Interface to allow the extensions module to make browser-process-specific | 46 // Interface to allow the extensions module to make browser-process-specific |
46 // queries of the embedder. Should be Set() once in the browser process. | 47 // queries of the embedder. Should be Set() once in the browser process. |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // Registers extension functions not belonging to the core extensions APIs. | 167 // Registers extension functions not belonging to the core extensions APIs. |
167 virtual void RegisterExtensionFunctions( | 168 virtual void RegisterExtensionFunctions( |
168 ExtensionFunctionRegistry* registry) const = 0; | 169 ExtensionFunctionRegistry* registry) const = 0; |
169 | 170 |
170 // Creates a RuntimeAPIDelegate responsible for handling extensions | 171 // Creates a RuntimeAPIDelegate responsible for handling extensions |
171 // management-related events such as update and installation on behalf of the | 172 // management-related events such as update and installation on behalf of the |
172 // core runtime API implementation. | 173 // core runtime API implementation. |
173 virtual scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( | 174 virtual scoped_ptr<RuntimeAPIDelegate> CreateRuntimeAPIDelegate( |
174 content::BrowserContext* context) const = 0; | 175 content::BrowserContext* context) const = 0; |
175 | 176 |
| 177 // Returns the manager of resource bundles used in extensions. Returns NULL if |
| 178 // the manager doesn't exist. |
| 179 virtual ComponentExtensionResourceManager* |
| 180 GetComponentExtensionResourceManager() = 0; |
| 181 |
176 // Returns the single instance of |this|. | 182 // Returns the single instance of |this|. |
177 static ExtensionsBrowserClient* Get(); | 183 static ExtensionsBrowserClient* Get(); |
178 | 184 |
179 // Initialize the single instance. | 185 // Initialize the single instance. |
180 static void Set(ExtensionsBrowserClient* client); | 186 static void Set(ExtensionsBrowserClient* client); |
181 }; | 187 }; |
182 | 188 |
183 } // namespace extensions | 189 } // namespace extensions |
184 | 190 |
185 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 191 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |