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 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 BluetoothTaskManagerWin::AdapterState::~AdapterState() { | 118 BluetoothTaskManagerWin::AdapterState::~AdapterState() { |
119 } | 119 } |
120 | 120 |
121 BluetoothTaskManagerWin::ServiceRecordState::ServiceRecordState() { | 121 BluetoothTaskManagerWin::ServiceRecordState::ServiceRecordState() { |
122 } | 122 } |
123 | 123 |
124 BluetoothTaskManagerWin::ServiceRecordState::~ServiceRecordState() { | 124 BluetoothTaskManagerWin::ServiceRecordState::~ServiceRecordState() { |
125 } | 125 } |
126 | 126 |
127 BluetoothTaskManagerWin::DeviceState::DeviceState() | 127 BluetoothTaskManagerWin::DeviceState::DeviceState() |
128 : bluetooth_class(0), | 128 : visible(false), |
129 visible(false), | |
130 connected(false), | 129 connected(false), |
131 authenticated(false) { | 130 authenticated(false), |
| 131 bluetooth_class(0) { |
132 } | 132 } |
133 | 133 |
134 BluetoothTaskManagerWin::DeviceState::~DeviceState() { | 134 BluetoothTaskManagerWin::DeviceState::~DeviceState() { |
135 } | 135 } |
136 | 136 |
137 BluetoothTaskManagerWin::BluetoothTaskManagerWin( | 137 BluetoothTaskManagerWin::BluetoothTaskManagerWin( |
138 scoped_refptr<base::SequencedTaskRunner> ui_task_runner) | 138 scoped_refptr<base::SequencedTaskRunner> ui_task_runner) |
139 : ui_task_runner_(ui_task_runner), | 139 : ui_task_runner_(ui_task_runner), |
140 discovering_(false), | 140 discovering_(false), |
141 current_logging_batch_count_(0) { | 141 current_logging_batch_count_(0) { |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 ++iter2) { | 649 ++iter2) { |
650 ServiceRecordState* service_state = new ServiceRecordState(); | 650 ServiceRecordState* service_state = new ServiceRecordState(); |
651 service_state->gatt_uuid = | 651 service_state->gatt_uuid = |
652 BluetoothLowEnergyUuidToBluetoothUuid((*iter2)->uuid); | 652 BluetoothLowEnergyUuidToBluetoothUuid((*iter2)->uuid); |
653 service_record_states->push_back(service_state); | 653 service_record_states->push_back(service_state); |
654 } | 654 } |
655 return true; | 655 return true; |
656 } | 656 } |
657 | 657 |
658 } // namespace device | 658 } // namespace device |
OLD | NEW |