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