OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_device_win.h" | 5 #include "device/bluetooth/bluetooth_device_win.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/hash.h" | 10 #include "base/hash.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 scoped_refptr<BluetoothSocket> socket( | 174 scoped_refptr<BluetoothSocket> socket( |
175 BluetoothSocketWin::CreateBluetoothSocket(**iter)); | 175 BluetoothSocketWin::CreateBluetoothSocket(**iter)); |
176 if (socket.get() != NULL) { | 176 if (socket.get() != NULL) { |
177 callback.Run(socket); | 177 callback.Run(socket); |
178 return; | 178 return; |
179 } | 179 } |
180 } | 180 } |
181 } | 181 } |
182 } | 182 } |
183 | 183 |
| 184 void BluetoothDeviceChromeOS::ConnectToProfile( |
| 185 device::BluetoothProfile* profile, |
| 186 const ErrorCallback& error_callback) { |
| 187 // TODO(keybuk): implement |
| 188 } |
| 189 |
184 void BluetoothDeviceWin::SetOutOfBandPairingData( | 190 void BluetoothDeviceWin::SetOutOfBandPairingData( |
185 const BluetoothOutOfBandPairingData& data, | 191 const BluetoothOutOfBandPairingData& data, |
186 const base::Closure& callback, | 192 const base::Closure& callback, |
187 const ErrorCallback& error_callback) { | 193 const ErrorCallback& error_callback) { |
188 NOTIMPLEMENTED(); | 194 NOTIMPLEMENTED(); |
189 } | 195 } |
190 | 196 |
191 void BluetoothDeviceWin::ClearOutOfBandPairingData( | 197 void BluetoothDeviceWin::ClearOutOfBandPairingData( |
192 const base::Closure& callback, | 198 const base::Closure& callback, |
193 const ErrorCallback& error_callback) { | 199 const ErrorCallback& error_callback) { |
(...skipping 17 matching lines...) Expand all Loading... |
211 base::StringAppendF(&device_string, | 217 base::StringAppendF(&device_string, |
212 "%s%s%d", | 218 "%s%s%d", |
213 (*iter)->name.c_str(), | 219 (*iter)->name.c_str(), |
214 (*iter)->address.c_str(), | 220 (*iter)->address.c_str(), |
215 (*iter)->sdp_bytes.size()); | 221 (*iter)->sdp_bytes.size()); |
216 } | 222 } |
217 return base::Hash(device_string); | 223 return base::Hash(device_string); |
218 } | 224 } |
219 | 225 |
220 } // namespace device | 226 } // namespace device |
OLD | NEW |