| 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_device_win.h" | 5 #include "device/bluetooth/bluetooth_device_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/containers/scoped_ptr_hash_map.h" | 10 #include "base/containers/scoped_ptr_hash_map.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
| 13 #include "base/sequenced_task_runner.h" | 13 #include "base/sequenced_task_runner.h" |
| 14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 15 #include "device/bluetooth/bluetooth_service_record_win.h" | 15 #include "device/bluetooth/bluetooth_service_record_win.h" |
| 16 #include "device/bluetooth/bluetooth_socket_thread.h" | 16 #include "device/bluetooth/bluetooth_socket_thread.h" |
| 17 #include "device/bluetooth/bluetooth_socket_win.h" | 17 #include "device/bluetooth/bluetooth_socket_win.h" |
| 18 #include "device/bluetooth/bluetooth_task_manager_win.h" | 18 #include "device/bluetooth/bluetooth_task_manager_win.h" |
| 19 #include "device/bluetooth/bluetooth_uuid.h" | 19 #include "device/bluetooth/bluetooth_uuid.h" |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 const int kSdpBytesBufferSize = 1024; | |
| 24 | |
| 25 const char kApiUnavailable[] = "This API is not implemented on this platform."; | 23 const char kApiUnavailable[] = "This API is not implemented on this platform."; |
| 26 | 24 |
| 27 } // namespace | 25 } // namespace |
| 28 | 26 |
| 29 namespace device { | 27 namespace device { |
| 30 | 28 |
| 31 BluetoothDeviceWin::BluetoothDeviceWin( | 29 BluetoothDeviceWin::BluetoothDeviceWin( |
| 32 const BluetoothTaskManagerWin::DeviceState& device_state, | 30 const BluetoothTaskManagerWin::DeviceState& device_state, |
| 33 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, | 31 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, |
| 34 const scoped_refptr<BluetoothSocketThread>& socket_thread, | 32 const scoped_refptr<BluetoothSocketThread>& socket_thread, |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 for (ServiceRecordList::const_iterator iter = service_record_list_.begin(); | 282 for (ServiceRecordList::const_iterator iter = service_record_list_.begin(); |
| 285 iter != service_record_list_.end(); | 283 iter != service_record_list_.end(); |
| 286 ++iter) { | 284 ++iter) { |
| 287 if ((*iter)->uuid() == uuid) | 285 if ((*iter)->uuid() == uuid) |
| 288 return *iter; | 286 return *iter; |
| 289 } | 287 } |
| 290 return NULL; | 288 return NULL; |
| 291 } | 289 } |
| 292 | 290 |
| 293 } // namespace device | 291 } // namespace device |
| OLD | NEW |