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

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: Fix DCHECK_EQ - compile error hidden by previous WebKit issues 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 base::StringAppendF(&device_string, 229 base::StringAppendF(&device_string,
218 "%s%s%d", 230 "%s%s%d",
219 (*iter)->name.c_str(), 231 (*iter)->name.c_str(),
220 (*iter)->address.c_str(), 232 (*iter)->address.c_str(),
221 (*iter)->sdp_bytes.size()); 233 (*iter)->sdp_bytes.size());
222 } 234 }
223 return base::Hash(device_string); 235 return base::Hash(device_string);
224 } 236 }
225 237
226 } // namespace device 238 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698