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 <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/containers/scoped_ptr_hash_map.h" | 10 #include "base/containers/scoped_ptr_hash_map.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 } // namespace | 27 } // namespace |
28 | 28 |
29 namespace device { | 29 namespace device { |
30 | 30 |
31 BluetoothDeviceWin::BluetoothDeviceWin( | 31 BluetoothDeviceWin::BluetoothDeviceWin( |
32 BluetoothAdapterWin* adapter, | 32 BluetoothAdapterWin* adapter, |
33 const BluetoothTaskManagerWin::DeviceState& device_state, | 33 const BluetoothTaskManagerWin::DeviceState& device_state, |
34 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, | 34 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, |
35 const scoped_refptr<BluetoothSocketThread>& socket_thread, | 35 const scoped_refptr<BluetoothSocketThread>& socket_thread, |
36 net::NetLog* net_log, | 36 net::NetLog* net_log, |
37 const net::NetLog::Source& net_log_source) | 37 const net::NetLogSource& net_log_source) |
38 : BluetoothDevice(adapter), | 38 : BluetoothDevice(adapter), |
39 ui_task_runner_(ui_task_runner), | 39 ui_task_runner_(ui_task_runner), |
40 socket_thread_(socket_thread), | 40 socket_thread_(socket_thread), |
41 net_log_(net_log), | 41 net_log_(net_log), |
42 net_log_source_(net_log_source) { | 42 net_log_source_(net_log_source) { |
43 Update(device_state); | 43 Update(device_state); |
44 } | 44 } |
45 | 45 |
46 BluetoothDeviceWin::~BluetoothDeviceWin() { | 46 BluetoothDeviceWin::~BluetoothDeviceWin() { |
47 // Explicitly take and erase GATT services one by one to ensure that calling | 47 // Explicitly take and erase GATT services one by one to ensure that calling |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 primary_service->GetIdentifier(), | 384 primary_service->GetIdentifier(), |
385 std::unique_ptr<BluetoothRemoteGattService>(primary_service)); | 385 std::unique_ptr<BluetoothRemoteGattService>(primary_service)); |
386 adapter_->NotifyGattServiceAdded(primary_service); | 386 adapter_->NotifyGattServiceAdded(primary_service); |
387 } | 387 } |
388 } | 388 } |
389 | 389 |
390 adapter_->NotifyGattServicesDiscovered(this); | 390 adapter_->NotifyGattServicesDiscovered(this); |
391 } | 391 } |
392 | 392 |
393 } // namespace device | 393 } // namespace device |
OLD | NEW |