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_PROFILE_WIN_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_PROFILE_WIN_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_PROFILE_WIN_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_PROFILE_WIN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "device/bluetooth/bluetooth_profile.h" | 10 #include "device/bluetooth/bluetooth_profile.h" |
| 11 #include "device/bluetooth/bluetooth_uuid.h" |
11 | 12 |
12 namespace device { | 13 namespace device { |
13 | 14 |
14 class BluetoothDeviceWin; | 15 class BluetoothDeviceWin; |
15 | 16 |
16 class BluetoothProfileWin : public BluetoothProfile { | 17 class BluetoothProfileWin : public BluetoothProfile { |
17 public: | 18 public: |
18 // BluetoothProfile override. | 19 // BluetoothProfile override. |
19 virtual void Unregister() OVERRIDE; | 20 virtual void Unregister() OVERRIDE; |
20 virtual void SetConnectionCallback( | 21 virtual void SetConnectionCallback( |
21 const ConnectionCallback& callback) OVERRIDE; | 22 const ConnectionCallback& callback) OVERRIDE; |
22 | 23 |
23 bool Connect(const BluetoothDeviceWin* device); | 24 bool Connect(const BluetoothDeviceWin* device); |
24 | 25 |
25 private: | 26 private: |
26 friend BluetoothProfile; | 27 friend BluetoothProfile; |
27 | 28 |
28 BluetoothProfileWin(const std::string& uuid, const std::string& name); | 29 BluetoothProfileWin(const BluetoothUUID& uuid, const std::string& name); |
29 virtual ~BluetoothProfileWin(); | 30 virtual ~BluetoothProfileWin(); |
30 | 31 |
31 const std::string uuid_; | 32 const BluetoothUUID uuid_; |
32 const std::string name_; | 33 const std::string name_; |
33 ConnectionCallback connection_callback_; | 34 ConnectionCallback connection_callback_; |
34 }; | 35 }; |
35 | 36 |
36 } // namespace device | 37 } // namespace device |
37 | 38 |
38 #endif // DEVICE_BLUETOOTH_BLUETOOTH_PROFILE_WIN_H_ | 39 #endif // DEVICE_BLUETOOTH_BLUETOOTH_PROFILE_WIN_H_ |
OLD | NEW |