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 19 matching lines...) Expand all Loading... |
30 namespace net { | 30 namespace net { |
31 class NetLog; | 31 class NetLog; |
32 class NetworkDelegate; | 32 class NetworkDelegate; |
33 class URLRequest; | 33 class URLRequest; |
34 class URLRequestJob; | 34 class URLRequestJob; |
35 } | 35 } |
36 | 36 |
37 namespace extensions { | 37 namespace extensions { |
38 | 38 |
39 class ApiActivityMonitor; | 39 class ApiActivityMonitor; |
40 class AppSorting; | |
41 class ComponentExtensionResourceManager; | 40 class ComponentExtensionResourceManager; |
42 class Extension; | 41 class Extension; |
43 class ExtensionCache; | 42 class ExtensionCache; |
44 class ExtensionError; | 43 class ExtensionError; |
45 class ExtensionHostDelegate; | 44 class ExtensionHostDelegate; |
46 class ExtensionPrefsObserver; | 45 class ExtensionPrefsObserver; |
47 class ExtensionSystem; | 46 class ExtensionSystem; |
48 class ExtensionSystemProvider; | 47 class ExtensionSystemProvider; |
49 class ExtensionWebContentsObserver; | 48 class ExtensionWebContentsObserver; |
50 class InfoMap; | 49 class InfoMap; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // Returns true if the client version has updated since the last run. Called | 153 // Returns true if the client version has updated since the last run. Called |
155 // once each time the extensions system is loaded per browser_context. The | 154 // once each time the extensions system is loaded per browser_context. The |
156 // implementation may wish to use the BrowserContext to record the current | 155 // implementation may wish to use the BrowserContext to record the current |
157 // version for later comparison. | 156 // version for later comparison. |
158 virtual bool DidVersionUpdate(content::BrowserContext* context) = 0; | 157 virtual bool DidVersionUpdate(content::BrowserContext* context) = 0; |
159 | 158 |
160 // Permits an external protocol handler to be launched. See | 159 // Permits an external protocol handler to be launched. See |
161 // ExternalProtocolHandler::PermitLaunchUrl() in Chrome. | 160 // ExternalProtocolHandler::PermitLaunchUrl() in Chrome. |
162 virtual void PermitExternalProtocolHandler() = 0; | 161 virtual void PermitExternalProtocolHandler() = 0; |
163 | 162 |
164 // Creates a new AppSorting instance. | |
165 virtual scoped_ptr<AppSorting> CreateAppSorting( | |
166 content::BrowserContext* context) = 0; | |
167 | |
168 // Return true if the system is run in forced app mode. | 163 // Return true if the system is run in forced app mode. |
169 virtual bool IsRunningInForcedAppMode() = 0; | 164 virtual bool IsRunningInForcedAppMode() = 0; |
170 | 165 |
171 // Returns the embedder's ApiActivityMonitor for |context|. Returns NULL if | 166 // Returns the embedder's ApiActivityMonitor for |context|. Returns NULL if |
172 // the embedder does not monitor extension API activity. | 167 // the embedder does not monitor extension API activity. |
173 virtual ApiActivityMonitor* GetApiActivityMonitor( | 168 virtual ApiActivityMonitor* GetApiActivityMonitor( |
174 content::BrowserContext* context) = 0; | 169 content::BrowserContext* context) = 0; |
175 | 170 |
176 // Returns the factory that provides an ExtensionSystem to be returned from | 171 // Returns the factory that provides an ExtensionSystem to be returned from |
177 // ExtensionSystem::Get. | 172 // ExtensionSystem::Get. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 // Returns the single instance of |this|. | 227 // Returns the single instance of |this|. |
233 static ExtensionsBrowserClient* Get(); | 228 static ExtensionsBrowserClient* Get(); |
234 | 229 |
235 // Initialize the single instance. | 230 // Initialize the single instance. |
236 static void Set(ExtensionsBrowserClient* client); | 231 static void Set(ExtensionsBrowserClient* client); |
237 }; | 232 }; |
238 | 233 |
239 } // namespace extensions | 234 } // namespace extensions |
240 | 235 |
241 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 236 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |