| 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 DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 class BluetoothAdvertisement; | 30 class BluetoothAdvertisement; |
| 31 class BluetoothDiscoveryFilter; | 31 class BluetoothDiscoveryFilter; |
| 32 class BluetoothDiscoverySession; | 32 class BluetoothDiscoverySession; |
| 33 class BluetoothLocalGattService; | 33 class BluetoothLocalGattService; |
| 34 class BluetoothRemoteGattCharacteristic; | 34 class BluetoothRemoteGattCharacteristic; |
| 35 class BluetoothRemoteGattDescriptor; | 35 class BluetoothRemoteGattDescriptor; |
| 36 class BluetoothRemoteGattService; | 36 class BluetoothRemoteGattService; |
| 37 class BluetoothSocket; | 37 class BluetoothSocket; |
| 38 class BluetoothUUID; | 38 class BluetoothUUID; |
| 39 struct BluetoothAdapterDeleter; | |
| 40 enum class UMABluetoothDiscoverySessionOutcome; | 39 enum class UMABluetoothDiscoverySessionOutcome; |
| 41 | 40 |
| 42 // BluetoothAdapter represents a local Bluetooth adapter which may be used to | 41 // BluetoothAdapter represents a local Bluetooth adapter which may be used to |
| 43 // interact with remote Bluetooth devices. As well as providing support for | 42 // interact with remote Bluetooth devices. As well as providing support for |
| 44 // determining whether an adapter is present and whether the radio is powered, | 43 // determining whether an adapter is present and whether the radio is powered, |
| 45 // this class also provides support for obtaining the list of remote devices | 44 // this class also provides support for obtaining the list of remote devices |
| 46 // known to the adapter, discovering new devices, and providing notification of | 45 // known to the adapter, discovering new devices, and providing notification of |
| 47 // updates to device information. | 46 // updates to device information. |
| 48 class DEVICE_BLUETOOTH_EXPORT BluetoothAdapter | 47 class DEVICE_BLUETOOTH_EXPORT BluetoothAdapter |
| 49 : public base::RefCounted<BluetoothAdapter> { | 48 : public base::RefCounted<BluetoothAdapter> { |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 std::set<BluetoothDiscoverySession*> discovery_sessions_; | 633 std::set<BluetoothDiscoverySession*> discovery_sessions_; |
| 635 | 634 |
| 636 // Note: This should remain the last member so it'll be destroyed and | 635 // Note: This should remain the last member so it'll be destroyed and |
| 637 // invalidate its weak pointers before any other members are destroyed. | 636 // invalidate its weak pointers before any other members are destroyed. |
| 638 base::WeakPtrFactory<BluetoothAdapter> weak_ptr_factory_; | 637 base::WeakPtrFactory<BluetoothAdapter> weak_ptr_factory_; |
| 639 }; | 638 }; |
| 640 | 639 |
| 641 } // namespace device | 640 } // namespace device |
| 642 | 641 |
| 643 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ | 642 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ |
| OLD | NEW |