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_ADAPTER_BLUEZ_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 28 matching lines...) Expand all Loading... |
39 namespace bluez { | 39 namespace bluez { |
40 | 40 |
41 class BluetoothBlueZTest; | 41 class BluetoothBlueZTest; |
42 class BluetoothAdapterProfileBlueZ; | 42 class BluetoothAdapterProfileBlueZ; |
43 class BluetoothDeviceBlueZ; | 43 class BluetoothDeviceBlueZ; |
44 class BluetoothPairingBlueZ; | 44 class BluetoothPairingBlueZ; |
45 class BluetoothRemoteGattCharacteristicBlueZ; | 45 class BluetoothRemoteGattCharacteristicBlueZ; |
46 class BluetoothRemoteGattDescriptorBlueZ; | 46 class BluetoothRemoteGattDescriptorBlueZ; |
47 class BluetoothRemoteGattServiceBlueZ; | 47 class BluetoothRemoteGattServiceBlueZ; |
48 | 48 |
49 // The BluetoothAdapterBlueZ class implements BluetoothAdapter for the | 49 // The BluetoothAdapterBlueZ class implements BluetoothAdapter for platforms |
50 // Chrome OS platform. | 50 // that use BlueZ. |
51 // | 51 // |
52 // All methods are called from the dbus origin / UI thread and are generally | 52 // All methods are called from the dbus origin / UI thread and are generally |
53 // not assumed to be thread-safe. | 53 // not assumed to be thread-safe. |
54 // | 54 // |
55 // This class interacts with sockets using the BluetoothSocketThread to ensure | 55 // This class interacts with sockets using the BluetoothSocketThread to ensure |
56 // single-threaded calls, and posts tasks to the UI thread. | 56 // single-threaded calls, and posts tasks to the UI thread. |
57 // | 57 // |
58 // Methods tolerate a shutdown scenario where BluetoothAdapterBlueZ::Shutdown | 58 // Methods tolerate a shutdown scenario where BluetoothAdapterBlueZ::Shutdown |
59 // causes IsPresent to return false just before the dbus system is shutdown but | 59 // causes IsPresent to return false just before the dbus system is shutdown but |
60 // while references to the BluetoothAdapterBlueZ object still exists. | 60 // while references to the BluetoothAdapterBlueZ object still exists. |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 // Note: This should remain the last member so it'll be destroyed and | 386 // Note: This should remain the last member so it'll be destroyed and |
387 // invalidate its weak pointers before any other members are destroyed. | 387 // invalidate its weak pointers before any other members are destroyed. |
388 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; | 388 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; |
389 | 389 |
390 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); | 390 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); |
391 }; | 391 }; |
392 | 392 |
393 } // namespace bluez | 393 } // namespace bluez |
394 | 394 |
395 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ | 395 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ |
OLD | NEW |