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/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "base/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "device/bluetooth/bluetooth_init_win.h" | 12 #include "device/bluetooth/bluetooth_init_win.h" |
13 #include "device/bluetooth/bluetooth_utils.h" | 13 #include "device/bluetooth/bluetooth_utils.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 const uint16 kProtocolDescriptorListId = 4; | 17 const uint16 kProtocolDescriptorListId = 4; |
18 const uint16 kRfcommUuid = 3; | 18 const uint16 kRfcommUuid = 3; |
19 const uint16 kUuidId = 1; | 19 const uint16 kUuidId = 1; |
20 | 20 |
21 bool AdvanceToSdpType(const SDP_ELEMENT_DATA& sequence_data, | 21 bool AdvanceToSdpType(const SDP_ELEMENT_DATA& sequence_data, |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 if (ERROR_SUCCESS == BluetoothSdpGetAttributeValue( | 141 if (ERROR_SUCCESS == BluetoothSdpGetAttributeValue( |
142 blob_data, | 142 blob_data, |
143 blob_size, | 143 blob_size, |
144 kUuidId, | 144 kUuidId, |
145 &uuid_data)) { | 145 &uuid_data)) { |
146 ExtractUuid(uuid_data, &uuid_); | 146 ExtractUuid(uuid_data, &uuid_); |
147 } | 147 } |
148 } | 148 } |
149 | 149 |
150 } // namespace device | 150 } // namespace device |
OLD | NEW |