| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_remote_gatt_service_win.h" | 5 #include "device/bluetooth/bluetooth_remote_gatt_service_win.h" |
| 6 | 6 |
| 7 namespace device { | 7 namespace device { |
| 8 BluetoothRemoteGattServiceWin::BluetoothRemoteGattServiceWin( | 8 BluetoothRemoteGattServiceWin::BluetoothRemoteGattServiceWin( |
| 9 BluetoothDeviceWin* device, | 9 BluetoothDeviceWin* device, |
| 10 base::FilePath service_path, | 10 base::FilePath service_path, |
| 11 BluetoothUUID service_uuid, | 11 BluetoothUUID service_uuid, |
| 12 uint16_t service_attribute_handle, | 12 uint16_t service_attribute_handle, |
| 13 bool is_primary, | 13 bool is_primary, |
| 14 BluetoothRemoteGattServiceWin* parent_service, | 14 BluetoothRemoteGattServiceWin* parent_service, |
| 15 scoped_refptr<base::SequencedTaskRunner>& ui_task_runner) | 15 scoped_refptr<base::SequencedTaskRunner>& ui_task_runner) |
| 16 : service_path_(service_path), | 16 : device_(device), |
| 17 device_(device), | 17 service_path_(service_path), |
| 18 service_uuid_(service_uuid), | 18 service_uuid_(service_uuid), |
| 19 service_attribute_handle_(service_attribute_handle), | 19 service_attribute_handle_(service_attribute_handle), |
| 20 is_primary_(is_primary), | 20 is_primary_(is_primary), |
| 21 parent_service_(parent_service), | 21 parent_service_(parent_service), |
| 22 ui_task_runner_(ui_task_runner) { | 22 ui_task_runner_(ui_task_runner) { |
| 23 DCHECK(ui_task_runner_->RunsTasksOnCurrentThread()); | 23 DCHECK(ui_task_runner_->RunsTasksOnCurrentThread()); |
| 24 DCHECK(!service_path_.empty()); | 24 DCHECK(!service_path_.empty()); |
| 25 DCHECK(service_uuid_.IsValid()); | 25 DCHECK(service_uuid_.IsValid()); |
| 26 DCHECK(service_attribute_handle_); | 26 DCHECK(service_attribute_handle_); |
| 27 DCHECK(device_); | 27 DCHECK(device_); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 void BluetoothRemoteGattServiceWin::Update() { | 104 void BluetoothRemoteGattServiceWin::Update() { |
| 105 DCHECK(ui_task_runner_->RunsTasksOnCurrentThread()); | 105 DCHECK(ui_task_runner_->RunsTasksOnCurrentThread()); |
| 106 NOTIMPLEMENTED(); | 106 NOTIMPLEMENTED(); |
| 107 } | 107 } |
| 108 | 108 |
| 109 uint16_t BluetoothRemoteGattServiceWin::GetAttributeHandle() { | 109 uint16_t BluetoothRemoteGattServiceWin::GetAttributeHandle() { |
| 110 return service_attribute_handle_; | 110 return service_attribute_handle_; |
| 111 } | 111 } |
| 112 | 112 |
| 113 } // namespace device. | 113 } // namespace device. |
| OLD | NEW |