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> |
11 | 11 |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "content/public/browser/bluetooth_chooser.h" |
14 #include "extensions/browser/extension_event_histogram_value.h" | 15 #include "extensions/browser/extension_event_histogram_value.h" |
15 #include "extensions/browser/extension_prefs_observer.h" | 16 #include "extensions/browser/extension_prefs_observer.h" |
16 #include "extensions/common/view_type.h" | 17 #include "extensions/common/view_type.h" |
17 | 18 |
18 class ExtensionFunctionRegistry; | 19 class ExtensionFunctionRegistry; |
19 class PrefService; | 20 class PrefService; |
20 | 21 |
21 namespace base { | 22 namespace base { |
22 class CommandLine; | 23 class CommandLine; |
23 class FilePath; | 24 class FilePath; |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 virtual void AttachExtensionTaskManagerTag(content::WebContents* web_contents, | 247 virtual void AttachExtensionTaskManagerTag(content::WebContents* web_contents, |
247 ViewType view_type) {} | 248 ViewType view_type) {} |
248 | 249 |
249 // Returns a new UpdateClient. | 250 // Returns a new UpdateClient. |
250 virtual scoped_refptr<update_client::UpdateClient> CreateUpdateClient( | 251 virtual scoped_refptr<update_client::UpdateClient> CreateUpdateClient( |
251 content::BrowserContext* context); | 252 content::BrowserContext* context); |
252 | 253 |
253 virtual std::unique_ptr<ExtensionApiFrameIdMapHelper> | 254 virtual std::unique_ptr<ExtensionApiFrameIdMapHelper> |
254 CreateExtensionApiFrameIdMapHelper(ExtensionApiFrameIdMap* map); | 255 CreateExtensionApiFrameIdMapHelper(ExtensionApiFrameIdMap* map); |
255 | 256 |
| 257 virtual std::unique_ptr<content::BluetoothChooser> CreateBluetoothChooser( |
| 258 content::RenderFrameHost* frame, |
| 259 const content::BluetoothChooser::EventHandler& event_handler); |
| 260 |
256 // Returns the single instance of |this|. | 261 // Returns the single instance of |this|. |
257 static ExtensionsBrowserClient* Get(); | 262 static ExtensionsBrowserClient* Get(); |
258 | 263 |
259 // Initialize the single instance. | 264 // Initialize the single instance. |
260 static void Set(ExtensionsBrowserClient* client); | 265 static void Set(ExtensionsBrowserClient* client); |
261 }; | 266 }; |
262 | 267 |
263 } // namespace extensions | 268 } // namespace extensions |
264 | 269 |
265 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 270 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |