| 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_CHROMEOS_H | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/sequenced_task_runner.h" | 13 #include "base/sequenced_task_runner.h" |
| 14 #include "chromeos/dbus/bluetooth_device_client.h" | 14 #include "chromeos/dbus/bluetooth_device_client.h" |
| 15 #include "chromeos/dbus/bluetooth_gatt_service_client.h" | 15 #include "chromeos/dbus/bluetooth_gatt_service_client.h" |
| 16 #include "dbus/object_path.h" | 16 #include "dbus/object_path.h" |
| 17 #include "device/bluetooth/bluetooth_device.h" | 17 #include "device/bluetooth/bluetooth_device.h" |
| 18 #include "device/bluetooth/bluetooth_export.h" | |
| 19 | 18 |
| 20 namespace device { | 19 namespace device { |
| 21 class BluetoothSocketThread; | 20 class BluetoothSocketThread; |
| 22 } // namespace device | 21 } // namespace device |
| 23 | 22 |
| 24 namespace chromeos { | 23 namespace chromeos { |
| 25 | 24 |
| 26 class BluetoothAdapterChromeOS; | 25 class BluetoothAdapterChromeOS; |
| 27 class BluetoothPairingChromeOS; | 26 class BluetoothPairingChromeOS; |
| 28 | 27 |
| 29 // The BluetoothDeviceChromeOS class implements BluetoothDevice for the | 28 // The BluetoothDeviceChromeOS class implements BluetoothDevice for the |
| 30 // Chrome OS platform. | 29 // Chrome OS platform. |
| 31 class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceChromeOS | 30 class BluetoothDeviceChromeOS |
| 32 : public device::BluetoothDevice, | 31 : public device::BluetoothDevice, |
| 33 public BluetoothGattServiceClient::Observer { | 32 public BluetoothGattServiceClient::Observer { |
| 34 public: | 33 public: |
| 35 // BluetoothDevice override | 34 // BluetoothDevice override |
| 36 virtual uint32 GetBluetoothClass() const override; | 35 virtual uint32 GetBluetoothClass() const override; |
| 37 virtual std::string GetAddress() const override; | 36 virtual std::string GetAddress() const override; |
| 38 virtual VendorIDSource GetVendorIDSource() const override; | 37 virtual VendorIDSource GetVendorIDSource() const override; |
| 39 virtual uint16 GetVendorID() const override; | 38 virtual uint16 GetVendorID() const override; |
| 40 virtual uint16 GetProductID() const override; | 39 virtual uint16 GetProductID() const override; |
| 41 virtual uint16 GetDeviceID() const override; | 40 virtual uint16 GetDeviceID() const override; |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 // Note: This should remain the last member so it'll be destroyed and | 190 // Note: This should remain the last member so it'll be destroyed and |
| 192 // invalidate its weak pointers before any other members are destroyed. | 191 // invalidate its weak pointers before any other members are destroyed. |
| 193 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_; | 192 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_; |
| 194 | 193 |
| 195 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS); | 194 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS); |
| 196 }; | 195 }; |
| 197 | 196 |
| 198 } // namespace chromeos | 197 } // namespace chromeos |
| 199 | 198 |
| 200 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H | 199 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H |
| OLD | NEW |