| 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_CHROMEOS_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/sequenced_task_runner.h" | 12 #include "base/sequenced_task_runner.h" |
| 13 #include "chromeos/dbus/bluetooth_adapter_client.h" | 13 #include "chromeos/dbus/bluetooth_adapter_client.h" |
| 14 #include "chromeos/dbus/bluetooth_agent_service_provider.h" | 14 #include "chromeos/dbus/bluetooth_agent_service_provider.h" |
| 15 #include "chromeos/dbus/bluetooth_device_client.h" | 15 #include "chromeos/dbus/bluetooth_device_client.h" |
| 16 #include "chromeos/dbus/bluetooth_input_client.h" | 16 #include "chromeos/dbus/bluetooth_input_client.h" |
| 17 #include "dbus/object_path.h" | 17 #include "dbus/object_path.h" |
| 18 #include "device/bluetooth/bluetooth_adapter.h" | 18 #include "device/bluetooth/bluetooth_adapter.h" |
| 19 #include "device/bluetooth/bluetooth_device.h" | 19 #include "device/bluetooth/bluetooth_device.h" |
| 20 #include "device/bluetooth/bluetooth_export.h" |
| 20 | 21 |
| 21 namespace device { | 22 namespace device { |
| 22 class BluetoothSocketThread; | 23 class BluetoothSocketThread; |
| 23 } // namespace device | 24 } // namespace device |
| 24 | 25 |
| 25 namespace chromeos { | 26 namespace chromeos { |
| 26 | 27 |
| 27 class BluetoothChromeOSTest; | 28 class BluetoothChromeOSTest; |
| 28 class BluetoothDeviceChromeOS; | 29 class BluetoothDeviceChromeOS; |
| 29 class BluetoothPairingChromeOS; | 30 class BluetoothPairingChromeOS; |
| 30 class BluetoothRemoteGattCharacteristicChromeOS; | 31 class BluetoothRemoteGattCharacteristicChromeOS; |
| 31 class BluetoothRemoteGattDescriptorChromeOS; | 32 class BluetoothRemoteGattDescriptorChromeOS; |
| 32 class BluetoothRemoteGattServiceChromeOS; | 33 class BluetoothRemoteGattServiceChromeOS; |
| 33 | 34 |
| 34 // The BluetoothAdapterChromeOS class implements BluetoothAdapter for the | 35 // The BluetoothAdapterChromeOS class implements BluetoothAdapter for the |
| 35 // Chrome OS platform. | 36 // Chrome OS platform. |
| 36 class BluetoothAdapterChromeOS | 37 class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterChromeOS |
| 37 : public device::BluetoothAdapter, | 38 : public device::BluetoothAdapter, |
| 38 public chromeos::BluetoothAdapterClient::Observer, | 39 public chromeos::BluetoothAdapterClient::Observer, |
| 39 public chromeos::BluetoothDeviceClient::Observer, | 40 public chromeos::BluetoothDeviceClient::Observer, |
| 40 public chromeos::BluetoothInputClient::Observer, | 41 public chromeos::BluetoothInputClient::Observer, |
| 41 public chromeos::BluetoothAgentServiceProvider::Delegate { | 42 public chromeos::BluetoothAgentServiceProvider::Delegate { |
| 42 public: | 43 public: |
| 43 static base::WeakPtr<BluetoothAdapter> CreateAdapter(); | 44 static base::WeakPtr<BluetoothAdapter> CreateAdapter(); |
| 44 | 45 |
| 45 // BluetoothAdapter: | 46 // BluetoothAdapter: |
| 46 virtual void AddObserver( | 47 virtual void AddObserver( |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 // Note: This should remain the last member so it'll be destroyed and | 273 // Note: This should remain the last member so it'll be destroyed and |
| 273 // invalidate its weak pointers before any other members are destroyed. | 274 // invalidate its weak pointers before any other members are destroyed. |
| 274 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; | 275 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; |
| 275 | 276 |
| 276 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); | 277 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); |
| 277 }; | 278 }; |
| 278 | 279 |
| 279 } // namespace chromeos | 280 } // namespace chromeos |
| 280 | 281 |
| 281 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ | 282 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ |
| OLD | NEW |