| 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 DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_BLUEZ_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_BLUEZ_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_BLUEZ_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_BLUEZ_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 namespace device { | 23 namespace device { |
| 24 class BluetoothSocketThread; | 24 class BluetoothSocketThread; |
| 25 } // namespace device | 25 } // namespace device |
| 26 | 26 |
| 27 namespace bluez { | 27 namespace bluez { |
| 28 | 28 |
| 29 class BluetoothAdapterBlueZ; | 29 class BluetoothAdapterBlueZ; |
| 30 class BluetoothPairingBlueZ; | 30 class BluetoothPairingBlueZ; |
| 31 | 31 |
| 32 // The BluetoothDeviceBlueZ class implements BluetoothDevice for the | 32 // The BluetoothDeviceBlueZ class implements BluetoothDevice for platforms using |
| 33 // Chrome OS platform. | 33 // BlueZ. |
| 34 // | 34 // |
| 35 // This class is not thread-safe, but is only called from the UI thread. | 35 // This class is not thread-safe, but is only called from the UI thread. |
| 36 // | 36 // |
| 37 // A socket thread is used to create sockets but posts all callbacks on the UI | 37 // A socket thread is used to create sockets but posts all callbacks on the UI |
| 38 // thread. | 38 // thread. |
| 39 class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceBlueZ | 39 class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceBlueZ |
| 40 : public device::BluetoothDevice, | 40 : public device::BluetoothDevice, |
| 41 public bluez::BluetoothGattServiceClient::Observer { | 41 public bluez::BluetoothGattServiceClient::Observer { |
| 42 public: | 42 public: |
| 43 // BluetoothDevice override | 43 // BluetoothDevice override |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 // Note: This should remain the last member so it'll be destroyed and | 212 // Note: This should remain the last member so it'll be destroyed and |
| 213 // invalidate its weak pointers before any other members are destroyed. | 213 // invalidate its weak pointers before any other members are destroyed. |
| 214 base::WeakPtrFactory<BluetoothDeviceBlueZ> weak_ptr_factory_; | 214 base::WeakPtrFactory<BluetoothDeviceBlueZ> weak_ptr_factory_; |
| 215 | 215 |
| 216 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceBlueZ); | 216 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceBlueZ); |
| 217 }; | 217 }; |
| 218 | 218 |
| 219 } // namespace bluez | 219 } // namespace bluez |
| 220 | 220 |
| 221 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_BLUEZ_H_ | 221 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_BLUEZ_H_ |
| OLD | NEW |