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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |