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_task_manager_win.h" | 5 #include "device/bluetooth/bluetooth_task_manager_win.h" |
6 | 6 |
7 #include <winsock2.h> | 7 #include <winsock2.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
15 #include "base/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
16 #include "base/sequenced_task_runner.h" | 16 #include "base/sequenced_task_runner.h" |
17 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
18 #include "base/strings/sys_string_conversions.h" | 18 #include "base/strings/sys_string_conversions.h" |
19 #include "base/threading/sequenced_worker_pool.h" | 19 #include "base/threading/sequenced_worker_pool.h" |
20 #include "base/win/scoped_handle.h" | 20 #include "base/win/scoped_handle.h" |
21 #include "device/bluetooth/bluetooth_init_win.h" | 21 #include "device/bluetooth/bluetooth_init_win.h" |
22 #include "device/bluetooth/bluetooth_service_record_win.h" | 22 #include "device/bluetooth/bluetooth_service_record_win.h" |
23 #include "net/base/winsock_init.h" | 23 #include "net/base/winsock_init.h" |
24 | 24 |
25 namespace { | 25 namespace { |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 service_record_state->sdp_bytes.push_back( | 405 service_record_state->sdp_bytes.push_back( |
406 sdp_result_data->lpBlob->pBlobData[i]); | 406 sdp_result_data->lpBlob->pBlobData[i]); |
407 } | 407 } |
408 service_record_states->push_back(service_record_state); | 408 service_record_states->push_back(service_record_state); |
409 } | 409 } |
410 WSALookupServiceEnd(sdp_handle); | 410 WSALookupServiceEnd(sdp_handle); |
411 } | 411 } |
412 } | 412 } |
413 | 413 |
414 } // namespace device | 414 } // namespace device |
OLD | NEW |