OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/api/bluetooth/bluetooth_api.h" | 5 #include "chrome/browser/extensions/api/bluetooth/bluetooth_api.h" |
6 | 6 |
7 #if defined(OS_CHROMEOS) | 7 #if defined(OS_CHROMEOS) |
8 #include <errno.h> | 8 #include <errno.h> |
9 #endif | 9 #endif |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.h" | 13 #include "chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.h" |
14 #include "chrome/browser/extensions/event_names.h" | 14 #include "chrome/browser/extensions/event_names.h" |
15 #include "chrome/browser/extensions/extension_service.h" | 15 #include "chrome/browser/extensions/extension_service.h" |
16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/common/extensions/api/experimental_bluetooth.h" | 17 #include "chrome/common/extensions/api/experimental_bluetooth.h" |
18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
19 | 19 |
20 #if defined(OS_CHROMEOS) | 20 #if defined(OS_CHROMEOS) |
21 #include "base/memory/ref_counted.h" | 21 #include "base/memory/ref_counted.h" |
22 #include "base/safe_strerror_posix.h" | 22 #include "base/safe_strerror_posix.h" |
23 #include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h" | 23 #include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h" |
24 #include "chrome/browser/chromeos/bluetooth/bluetooth_device.h" | 24 #include "chrome/browser/chromeos/bluetooth/bluetooth_device.h" |
| 25 #include "chrome/browser/chromeos/bluetooth/bluetooth_service_record.h" |
25 #include "chrome/browser/chromeos/bluetooth/bluetooth_socket.h" | 26 #include "chrome/browser/chromeos/bluetooth/bluetooth_socket.h" |
26 #include "chrome/browser/chromeos/bluetooth/bluetooth_utils.h" | 27 #include "chrome/browser/chromeos/bluetooth/bluetooth_utils.h" |
27 #include "chrome/browser/chromeos/extensions/bluetooth_event_router.h" | 28 #include "chrome/browser/chromeos/extensions/bluetooth_event_router.h" |
28 #include "chromeos/dbus/bluetooth_out_of_band_client.h" | 29 #include "chromeos/dbus/bluetooth_out_of_band_client.h" |
| 30 #include "chromeos/dbus/bluetooth_out_of_band_pairing_data.h" |
29 | 31 |
30 namespace { | 32 namespace { |
31 | 33 |
32 chromeos::ExtensionBluetoothEventRouter* GetEventRouter(Profile* profile) { | 34 chromeos::ExtensionBluetoothEventRouter* GetEventRouter(Profile* profile) { |
33 return profile->GetExtensionService()->bluetooth_event_router(); | 35 return profile->GetExtensionService()->bluetooth_event_router(); |
34 } | 36 } |
35 | 37 |
36 const chromeos::BluetoothAdapter& GetAdapter(Profile* profile) { | 38 const chromeos::BluetoothAdapter& GetAdapter(Profile* profile) { |
37 return GetEventRouter(profile)->adapter(); | 39 return GetEventRouter(profile)->adapter(); |
38 } | 40 } |
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 #endif | 610 #endif |
609 | 611 |
610 BluetoothReadFunction::BluetoothReadFunction() {} | 612 BluetoothReadFunction::BluetoothReadFunction() {} |
611 BluetoothReadFunction::~BluetoothReadFunction() {} | 613 BluetoothReadFunction::~BluetoothReadFunction() {} |
612 | 614 |
613 BluetoothWriteFunction::BluetoothWriteFunction() {} | 615 BluetoothWriteFunction::BluetoothWriteFunction() {} |
614 BluetoothWriteFunction::~BluetoothWriteFunction() {} | 616 BluetoothWriteFunction::~BluetoothWriteFunction() {} |
615 | 617 |
616 } // namespace api | 618 } // namespace api |
617 } // namespace extensions | 619 } // namespace extensions |
OLD | NEW |