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 #include "device/bluetooth/bluetooth_profile_win.h" | 5 #include "device/bluetooth/bluetooth_profile_win.h" |
6 | 6 |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "device/bluetooth/bluetooth_device_win.h" | 8 #include "device/bluetooth/bluetooth_device_win.h" |
9 #include "device/bluetooth/bluetooth_service_record.h" | 9 #include "device/bluetooth/bluetooth_service_record.h" |
10 #include "device/bluetooth/bluetooth_socket_win.h" | 10 #include "device/bluetooth/bluetooth_socket_win.h" |
11 | 11 |
12 namespace device { | 12 namespace device { |
13 | 13 |
14 BluetoothProfileWin::BluetoothProfileWin(const std::string& uuid, | 14 BluetoothProfileWin::BluetoothProfileWin(const BluetoothUUID& uuid, |
15 const std::string& name) | 15 const std::string& name) |
16 : BluetoothProfile(), uuid_(uuid), name_(name) { | 16 : BluetoothProfile(), uuid_(uuid), name_(name) { |
17 } | 17 } |
18 | 18 |
19 BluetoothProfileWin::~BluetoothProfileWin() { | 19 BluetoothProfileWin::~BluetoothProfileWin() { |
20 } | 20 } |
21 | 21 |
22 void BluetoothProfileWin::Unregister() { | 22 void BluetoothProfileWin::Unregister() { |
23 delete this; | 23 delete this; |
24 } | 24 } |
(...skipping 13 matching lines...) Expand all Loading... |
38 BluetoothSocketWin::CreateBluetoothSocket(*record)); | 38 BluetoothSocketWin::CreateBluetoothSocket(*record)); |
39 if (socket.get() != NULL) { | 39 if (socket.get() != NULL) { |
40 connection_callback_.Run(device, socket); | 40 connection_callback_.Run(device, socket); |
41 return true; | 41 return true; |
42 } | 42 } |
43 } | 43 } |
44 return false; | 44 return false; |
45 } | 45 } |
46 | 46 |
47 } // namespace device | 47 } // namespace device |
OLD | NEW |