OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_service_record_win.h" | 5 #include "device/bluetooth/bluetooth_service_record_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/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 protocol_descriptor_list_data, &supports_rfcomm_, &rfcomm_channel_); | 145 protocol_descriptor_list_data, &supports_rfcomm_, &rfcomm_channel_); |
146 } | 146 } |
147 SDP_ELEMENT_DATA uuid_data; | 147 SDP_ELEMENT_DATA uuid_data; |
148 if (ERROR_SUCCESS == BluetoothSdpGetAttributeValue( | 148 if (ERROR_SUCCESS == BluetoothSdpGetAttributeValue( |
149 blob_data, blob_size, kUuidId, &uuid_data)) { | 149 blob_data, blob_size, kUuidId, &uuid_data)) { |
150 ExtractUuid(uuid_data, &uuid_); | 150 ExtractUuid(uuid_data, &uuid_); |
151 } | 151 } |
152 } | 152 } |
153 } | 153 } |
154 | 154 |
| 155 bool BluetoothServiceRecordWin::IsEqual( |
| 156 const BluetoothServiceRecordWin& other) { |
| 157 return device_address_ == other.device_address_ && name_ == other.name_ && |
| 158 uuid_ == other.uuid_ && supports_rfcomm_ == other.supports_rfcomm_ && |
| 159 rfcomm_channel_ == other.rfcomm_channel_; |
| 160 } |
| 161 |
155 } // namespace device | 162 } // namespace device |
OLD | NEW |