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

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

Issue 13872017: Bluetooth: gather usage metrics (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase since Cellular.* appeared under us 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
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } 64 }
65 65
66 std::string BluetoothDeviceWin::GetDeviceName() const { 66 std::string BluetoothDeviceWin::GetDeviceName() const {
67 return name_; 67 return name_;
68 } 68 }
69 69
70 std::string BluetoothDeviceWin::GetAddress() const { 70 std::string BluetoothDeviceWin::GetAddress() const {
71 return address_; 71 return address_;
72 } 72 }
73 73
74 uint16 BluetoothDeviceWin::GetVendorID() const {
75 return 0;
76 }
77
78 uint16 BluetoothDeviceWin::GetProductID() const {
79 return 0;
80 }
81
82 uint16 BluetoothDeviceWin::GetDeviceID() const {
83 return 0;
84 }
85
74 bool BluetoothDeviceWin::IsPaired() const { 86 bool BluetoothDeviceWin::IsPaired() const {
75 return paired_; 87 return paired_;
76 } 88 }
77 89
78 bool BluetoothDeviceWin::IsConnected() const { 90 bool BluetoothDeviceWin::IsConnected() const {
79 return connected_; 91 return connected_;
80 } 92 }
81 93
82 bool BluetoothDeviceWin::IsConnectable() const { 94 bool BluetoothDeviceWin::IsConnectable() const {
83 return false; 95 return false;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 base::StringAppendF(&device_string, 230 base::StringAppendF(&device_string,
219 "%s%s%d", 231 "%s%s%d",
220 (*iter)->name.c_str(), 232 (*iter)->name.c_str(),
221 (*iter)->address.c_str(), 233 (*iter)->address.c_str(),
222 (*iter)->sdp_bytes.size()); 234 (*iter)->sdp_bytes.size());
223 } 235 }
224 return base::Hash(device_string); 236 return base::Hash(device_string);
225 } 237 }
226 238
227 } // namespace device 239 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_win.h ('k') | device/bluetooth/bluetooth_experimental_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698