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 20 matching lines...) Expand all Loading... |
31 class URLRequest; | 31 class URLRequest; |
32 class URLRequestJob; | 32 class URLRequestJob; |
33 } | 33 } |
34 | 34 |
35 namespace extensions { | 35 namespace extensions { |
36 | 36 |
37 class ApiActivityMonitor; | 37 class ApiActivityMonitor; |
38 class AppSorting; | 38 class AppSorting; |
39 class ComponentExtensionResourceManager; | 39 class ComponentExtensionResourceManager; |
40 class Extension; | 40 class Extension; |
| 41 class ExtensionCache; |
41 class ExtensionHostDelegate; | 42 class ExtensionHostDelegate; |
42 class ExtensionPrefsObserver; | 43 class ExtensionPrefsObserver; |
43 class ExtensionSystem; | 44 class ExtensionSystem; |
44 class ExtensionSystemProvider; | 45 class ExtensionSystemProvider; |
45 class InfoMap; | 46 class InfoMap; |
46 class ProcessManagerDelegate; | 47 class ProcessManagerDelegate; |
47 class RuntimeAPIDelegate; | 48 class RuntimeAPIDelegate; |
48 | 49 |
49 // Interface to allow the extensions module to make browser-process-specific | 50 // Interface to allow the extensions module to make browser-process-specific |
50 // queries of the embedder. Should be Set() once in the browser process. | 51 // queries of the embedder. Should be Set() once in the browser process. |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 GetComponentExtensionResourceManager() = 0; | 181 GetComponentExtensionResourceManager() = 0; |
181 | 182 |
182 // Propagate a event to all the renderers in every browser context. The | 183 // Propagate a event to all the renderers in every browser context. The |
183 // implementation must be safe to call from any thread. | 184 // implementation must be safe to call from any thread. |
184 virtual void BroadcastEventToRenderers(const std::string& event_name, | 185 virtual void BroadcastEventToRenderers(const std::string& event_name, |
185 scoped_ptr<base::ListValue> args) = 0; | 186 scoped_ptr<base::ListValue> args) = 0; |
186 | 187 |
187 // Returns the embedder's net::NetLog. | 188 // Returns the embedder's net::NetLog. |
188 virtual net::NetLog* GetNetLog() = 0; | 189 virtual net::NetLog* GetNetLog() = 0; |
189 | 190 |
| 191 // Gets the single ExtensionCache instance shared across the browser process. |
| 192 virtual ExtensionCache* GetExtensionCache() = 0; |
| 193 |
190 // Returns the single instance of |this|. | 194 // Returns the single instance of |this|. |
191 static ExtensionsBrowserClient* Get(); | 195 static ExtensionsBrowserClient* Get(); |
192 | 196 |
193 // Initialize the single instance. | 197 // Initialize the single instance. |
194 static void Set(ExtensionsBrowserClient* client); | 198 static void Set(ExtensionsBrowserClient* client); |
195 }; | 199 }; |
196 | 200 |
197 } // namespace extensions | 201 } // namespace extensions |
198 | 202 |
199 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 203 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |