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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 class ExtensionCache; | 49 class ExtensionCache; |
50 class ExtensionError; | 50 class ExtensionError; |
51 class ExtensionHostDelegate; | 51 class ExtensionHostDelegate; |
52 class ExtensionPrefsObserver; | 52 class ExtensionPrefsObserver; |
53 class ExtensionApiFrameIdMap; | 53 class ExtensionApiFrameIdMap; |
54 class ExtensionApiFrameIdMapHelper; | 54 class ExtensionApiFrameIdMapHelper; |
55 class ExtensionSystem; | 55 class ExtensionSystem; |
56 class ExtensionSystemProvider; | 56 class ExtensionSystemProvider; |
57 class ExtensionWebContentsObserver; | 57 class ExtensionWebContentsObserver; |
58 class InfoMap; | 58 class InfoMap; |
| 59 class KioskDelegate; |
59 class ProcessManagerDelegate; | 60 class ProcessManagerDelegate; |
60 class RuntimeAPIDelegate; | 61 class RuntimeAPIDelegate; |
61 | 62 |
62 // Interface to allow the extensions module to make browser-process-specific | 63 // Interface to allow the extensions module to make browser-process-specific |
63 // queries of the embedder. Should be Set() once in the browser process. | 64 // queries of the embedder. Should be Set() once in the browser process. |
64 // | 65 // |
65 // NOTE: Methods that do not require knowledge of browser concepts should be | 66 // NOTE: Methods that do not require knowledge of browser concepts should be |
66 // added in ExtensionsClient (extensions/common/extensions_client.h) even if | 67 // added in ExtensionsClient (extensions/common/extensions_client.h) even if |
67 // they are only used in the browser process. | 68 // they are only used in the browser process. |
68 class ExtensionsBrowserClient { | 69 class ExtensionsBrowserClient { |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 virtual std::unique_ptr<ExtensionApiFrameIdMapHelper> | 249 virtual std::unique_ptr<ExtensionApiFrameIdMapHelper> |
249 CreateExtensionApiFrameIdMapHelper(ExtensionApiFrameIdMap* map); | 250 CreateExtensionApiFrameIdMapHelper(ExtensionApiFrameIdMap* map); |
250 | 251 |
251 virtual std::unique_ptr<content::BluetoothChooser> CreateBluetoothChooser( | 252 virtual std::unique_ptr<content::BluetoothChooser> CreateBluetoothChooser( |
252 content::RenderFrameHost* frame, | 253 content::RenderFrameHost* frame, |
253 const content::BluetoothChooser::EventHandler& event_handler); | 254 const content::BluetoothChooser::EventHandler& event_handler); |
254 | 255 |
255 // Returns true if activity logging is enabled for the given |context|. | 256 // Returns true if activity logging is enabled for the given |context|. |
256 virtual bool IsActivityLoggingEnabled(content::BrowserContext* context); | 257 virtual bool IsActivityLoggingEnabled(content::BrowserContext* context); |
257 | 258 |
| 259 // Returns a delegate that provides kiosk mode functionality. |
| 260 virtual KioskDelegate* GetKioskDelegate() = 0; |
| 261 |
258 // Returns the single instance of |this|. | 262 // Returns the single instance of |this|. |
259 static ExtensionsBrowserClient* Get(); | 263 static ExtensionsBrowserClient* Get(); |
260 | 264 |
261 // Initialize the single instance. | 265 // Initialize the single instance. |
262 static void Set(ExtensionsBrowserClient* client); | 266 static void Set(ExtensionsBrowserClient* client); |
263 }; | 267 }; |
264 | 268 |
265 } // namespace extensions | 269 } // namespace extensions |
266 | 270 |
267 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 271 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |