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