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 #include "chrome/browser/extensions/chrome_extensions_browser_client.h" | 5 #include "chrome/browser/extensions/chrome_extensions_browser_client.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "chrome/browser/extensions/event_router_forwarder.h" | 30 #include "chrome/browser/extensions/event_router_forwarder.h" |
31 #include "chrome/browser/extensions/extension_system_factory.h" | 31 #include "chrome/browser/extensions/extension_system_factory.h" |
32 #include "chrome/browser/extensions/extension_util.h" | 32 #include "chrome/browser/extensions/extension_util.h" |
33 #include "chrome/browser/extensions/menu_manager.h" | 33 #include "chrome/browser/extensions/menu_manager.h" |
34 #include "chrome/browser/extensions/updater/chrome_update_client_config.h" | 34 #include "chrome/browser/extensions/updater/chrome_update_client_config.h" |
35 #include "chrome/browser/external_protocol/external_protocol_handler.h" | 35 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
36 #include "chrome/browser/profiles/profile.h" | 36 #include "chrome/browser/profiles/profile.h" |
37 #include "chrome/browser/profiles/profile_manager.h" | 37 #include "chrome/browser/profiles/profile_manager.h" |
38 #include "chrome/browser/sessions/session_tab_helper.h" | 38 #include "chrome/browser/sessions/session_tab_helper.h" |
39 #include "chrome/browser/task_management/web_contents_tags.h" | 39 #include "chrome/browser/task_management/web_contents_tags.h" |
| 40 #include "chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.h" |
40 #include "chrome/common/channel_info.h" | 41 #include "chrome/common/channel_info.h" |
41 #include "chrome/common/chrome_paths.h" | 42 #include "chrome/common/chrome_paths.h" |
42 #include "chrome/common/chrome_switches.h" | 43 #include "chrome/common/chrome_switches.h" |
43 #include "chrome/common/extensions/features/feature_channel.h" | 44 #include "chrome/common/extensions/features/feature_channel.h" |
44 #include "chrome/common/pref_names.h" | 45 #include "chrome/common/pref_names.h" |
45 #include "components/net_log/chrome_net_log.h" | 46 #include "components/net_log/chrome_net_log.h" |
46 #include "components/update_client/update_client.h" | 47 #include "components/update_client/update_client.h" |
47 #include "components/version_info/version_info.h" | 48 #include "components/version_info/version_info.h" |
48 #include "content/public/browser/render_process_host.h" | 49 #include "content/public/browser/render_process_host.h" |
49 #include "content/public/common/content_switches.h" | 50 #include "content/public/common/content_switches.h" |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 return update_client::UpdateClientFactory( | 402 return update_client::UpdateClientFactory( |
402 make_scoped_refptr(new ChromeUpdateClientConfig(context))); | 403 make_scoped_refptr(new ChromeUpdateClientConfig(context))); |
403 } | 404 } |
404 | 405 |
405 std::unique_ptr<ExtensionApiFrameIdMapHelper> | 406 std::unique_ptr<ExtensionApiFrameIdMapHelper> |
406 ChromeExtensionsBrowserClient::CreateExtensionApiFrameIdMapHelper( | 407 ChromeExtensionsBrowserClient::CreateExtensionApiFrameIdMapHelper( |
407 ExtensionApiFrameIdMap* map) { | 408 ExtensionApiFrameIdMap* map) { |
408 return base::WrapUnique(new ChromeExtensionApiFrameIdMapHelper(map)); | 409 return base::WrapUnique(new ChromeExtensionApiFrameIdMapHelper(map)); |
409 } | 410 } |
410 | 411 |
| 412 std::unique_ptr<content::BluetoothChooser> |
| 413 ChromeExtensionsBrowserClient::CreateBluetoothChooser( |
| 414 content::RenderFrameHost* frame, |
| 415 const content::BluetoothChooser::EventHandler& event_handler) { |
| 416 return base::WrapUnique( |
| 417 new ChromeExtensionBluetoothChooser(frame, event_handler)); |
| 418 } |
| 419 |
411 } // namespace extensions | 420 } // namespace extensions |
OLD | NEW |