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

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

Issue 12018024: Implemented Asynchronous Initialization of BluetoothAdapter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Turned adapter_callbacks to a lazy instance. Created 7 years, 11 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
« no previous file with comments | « device/bluetooth/bluetooth_init_win.cc ('k') | device/bluetooth/bluetooth_task_manager_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/stringprintf.h" 10 #include "base/stringprintf.h"
11 #include "device/bluetooth/bluetooth_includes_win.h" 11 #include "device/bluetooth/bluetooth_init_win.h"
12 #include "device/bluetooth/bluetooth_utils.h" 12 #include "device/bluetooth/bluetooth_utils.h"
13 13
14 namespace { 14 namespace {
15 15
16 const uint16 kProtocolDescriptorListId = 4; 16 const uint16 kProtocolDescriptorListId = 4;
17 const uint16 kRfcommUuid = 3; 17 const uint16 kRfcommUuid = 3;
18 const uint16 kUuidId = 1; 18 const uint16 kUuidId = 1;
19 19
20 bool AdvanceToSdpType(const SDP_ELEMENT_DATA& sequence_data, 20 bool AdvanceToSdpType(const SDP_ELEMENT_DATA& sequence_data,
21 SDP_TYPE type, 21 SDP_TYPE type,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 if (ERROR_SUCCESS == BluetoothSdpGetAttributeValue( 121 if (ERROR_SUCCESS == BluetoothSdpGetAttributeValue(
122 blob_data, 122 blob_data,
123 blob_size, 123 blob_size,
124 kUuidId, 124 kUuidId,
125 &uuid_data)) { 125 &uuid_data)) {
126 ExtractUuid(uuid_data, &uuid_); 126 ExtractUuid(uuid_data, &uuid_);
127 } 127 }
128 } 128 }
129 129
130 } // namespace device 130 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_init_win.cc ('k') | device/bluetooth/bluetooth_task_manager_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698