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

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

Issue 424093004: Improve processing of Bluetooth device discovery on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address code review feedback (nits and memory leak). Created 6 years, 4 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_service_record_win.h ('k') | device/bluetooth/bluetooth_task_manager_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698