Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(638)

Side by Side Diff: device/bluetooth/bluetooth_device_win.cc

Issue 13862023: Add abstract BluetoothProfile class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add constructor and destructor for Options Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « device/bluetooth/bluetooth_device_win.h ('k') | device/bluetooth/bluetooth_profile.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 BluetoothDeviceWin::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
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
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_win.h ('k') | device/bluetooth/bluetooth_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698