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.h" |
16 #include "base/sequenced_task_runner.h" | 16 #include "base/sequenced_task_runner.h" |
17 #include "base/stringprintf.h" | 17 #include "base/stringprintf.h" |
18 #include "base/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 { |
26 | 26 |
27 const int kNumThreadsInWorkerPool = 3; | 27 const int kNumThreadsInWorkerPool = 3; |
28 const char kBluetoothThreadName[] = "BluetoothPollingThreadWin"; | 28 const char kBluetoothThreadName[] = "BluetoothPollingThreadWin"; |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 service_record_state->sdp_bytes.push_back( | 398 service_record_state->sdp_bytes.push_back( |
399 sdp_result_data->lpBlob->pBlobData[i]); | 399 sdp_result_data->lpBlob->pBlobData[i]); |
400 } | 400 } |
401 service_record_states->push_back(service_record_state); | 401 service_record_states->push_back(service_record_state); |
402 } | 402 } |
403 WSALookupServiceEnd(sdp_handle); | 403 WSALookupServiceEnd(sdp_handle); |
404 } | 404 } |
405 } | 405 } |
406 | 406 |
407 } // namespace device | 407 } // namespace device |
OLD | NEW |