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 #ifndef CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_ADAPTER_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_ADAPTER_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 | 13 |
14 namespace chromeos { | 14 namespace device { |
15 | 15 |
16 class BluetoothDevice; | 16 class BluetoothDevice; |
17 | 17 |
18 struct BluetoothOutOfBandPairingData; | 18 struct BluetoothOutOfBandPairingData; |
19 | 19 |
20 // BluetoothAdapter represents a local Bluetooth adapter which may be used to | 20 // BluetoothAdapter represents a local Bluetooth adapter which may be used to |
21 // interact with remote Bluetooth devices. As well as providing support for | 21 // interact with remote Bluetooth devices. As well as providing support for |
22 // determining whether an adapter is present, and whether the radio is powered, | 22 // determining whether an adapter is present, and whether the radio is powered, |
23 // this class also provides support for obtaining the list of remote devices | 23 // this class also provides support for obtaining the list of remote devices |
24 // known to the adapter, discovering new devices, and providing notification of | 24 // known to the adapter, discovering new devices, and providing notification of |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 friend class base::RefCounted<BluetoothAdapter>; | 143 friend class base::RefCounted<BluetoothAdapter>; |
144 virtual ~BluetoothAdapter(); | 144 virtual ~BluetoothAdapter(); |
145 | 145 |
146 // Address of the adapter. | 146 // Address of the adapter. |
147 std::string address_; | 147 std::string address_; |
148 | 148 |
149 // Name of the adapter. | 149 // Name of the adapter. |
150 std::string name_; | 150 std::string name_; |
151 }; | 151 }; |
152 | 152 |
153 } // namespace chromeos | 153 } // namespace device |
154 | 154 |
155 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_ADAPTER_H_ | 155 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ |
OLD | NEW |