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 "modules/bluetooth/BluetoothAttributeInstanceMap.h" | 5 #include "modules/bluetooth/BluetoothAttributeInstanceMap.h" |
6 | 6 |
| 7 #include <memory> |
| 8 #include <utility> |
7 #include "modules/bluetooth/BluetoothDevice.h" | 9 #include "modules/bluetooth/BluetoothDevice.h" |
8 #include "modules/bluetooth/BluetoothRemoteGATTService.h" | 10 #include "modules/bluetooth/BluetoothRemoteGATTService.h" |
9 #include <memory> | |
10 #include <utility> | |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 BluetoothAttributeInstanceMap::BluetoothAttributeInstanceMap( | 14 BluetoothAttributeInstanceMap::BluetoothAttributeInstanceMap( |
15 BluetoothDevice* device) | 15 BluetoothDevice* device) |
16 : device_(device) {} | 16 : device_(device) {} |
17 | 17 |
18 BluetoothRemoteGATTService* | 18 BluetoothRemoteGATTService* |
19 BluetoothAttributeInstanceMap::GetOrCreateRemoteGATTService( | 19 BluetoothAttributeInstanceMap::GetOrCreateRemoteGATTService( |
20 mojom::blink::WebBluetoothRemoteGATTServicePtr remote_gatt_service, | 20 mojom::blink::WebBluetoothRemoteGATTServicePtr remote_gatt_service, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 } | 92 } |
93 | 93 |
94 DEFINE_TRACE(BluetoothAttributeInstanceMap) { | 94 DEFINE_TRACE(BluetoothAttributeInstanceMap) { |
95 visitor->Trace(device_); | 95 visitor->Trace(device_); |
96 visitor->Trace(service_id_to_object_); | 96 visitor->Trace(service_id_to_object_); |
97 visitor->Trace(characteristic_id_to_object_); | 97 visitor->Trace(characteristic_id_to_object_); |
98 visitor->Trace(descriptor_id_to_object_); | 98 visitor->Trace(descriptor_id_to_object_); |
99 } | 99 } |
100 | 100 |
101 } // namespace blink | 101 } // namespace blink |
OLD | NEW |