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 : m_device(device) {} | 16 : m_device(device) {} |
17 | 17 |
18 BluetoothRemoteGATTService* | 18 BluetoothRemoteGATTService* |
19 BluetoothAttributeInstanceMap::getOrCreateRemoteGATTService( | 19 BluetoothAttributeInstanceMap::getOrCreateRemoteGATTService( |
20 mojom::blink::WebBluetoothRemoteGATTServicePtr remoteGATTService, | 20 mojom::blink::WebBluetoothRemoteGATTServicePtr remoteGATTService, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 } | 91 } |
92 | 92 |
93 DEFINE_TRACE(BluetoothAttributeInstanceMap) { | 93 DEFINE_TRACE(BluetoothAttributeInstanceMap) { |
94 visitor->trace(m_device); | 94 visitor->trace(m_device); |
95 visitor->trace(m_serviceIdToObject); | 95 visitor->trace(m_serviceIdToObject); |
96 visitor->trace(m_characteristicIdToObject); | 96 visitor->trace(m_characteristicIdToObject); |
97 visitor->trace(m_descriptorIdToObject); | 97 visitor->trace(m_descriptorIdToObject); |
98 } | 98 } |
99 | 99 |
100 } // namespace blink | 100 } // namespace blink |
OLD | NEW |