Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.h

Issue 2542203004: blink: Cleanup class/struct forward declarations (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef BluetoothAttributeInstanceMap_h 5 #ifndef BluetoothAttributeInstanceMap_h
6 #define BluetoothAttributeInstanceMap_h 6 #define BluetoothAttributeInstanceMap_h
7 7
8 #include "modules/bluetooth/BluetoothRemoteGATTCharacteristic.h" 8 #include "modules/bluetooth/BluetoothRemoteGATTCharacteristic.h"
9 #include "modules/bluetooth/BluetoothRemoteGATTService.h" 9 #include "modules/bluetooth/BluetoothRemoteGATTService.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "platform/heap/Heap.h" 11 #include "platform/heap/Heap.h"
12 #include <memory> 12 #include <memory>
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class BluetoothDevice; 16 class BluetoothDevice;
17 class ExecutionContext; 17 class ExecutionContext;
18 class ScriptPromiseResolver;
19 18
20 struct WebBluetoothRemoteGATTCharacteristicInit; 19 struct WebBluetoothRemoteGATTCharacteristicInit;
21 struct WebBluetoothRemoteGATTService; 20 struct WebBluetoothRemoteGATTService;
22 21
23 // Map that holds all GATT attributes, i.e. BluetoothRemoteGATTService, 22 // Map that holds all GATT attributes, i.e. BluetoothRemoteGATTService,
24 // BluetoothRemoteGATTCharacteristic, BluetoothRemoteGATTDescriptor, for 23 // BluetoothRemoteGATTCharacteristic, BluetoothRemoteGATTDescriptor, for
25 // the BluetoothDevice passed in when constructing the object. 24 // the BluetoothDevice passed in when constructing the object.
26 // Methods in this map are used to create or retrieve these attributes. 25 // Methods in this map are used to create or retrieve these attributes.
27 class BluetoothAttributeInstanceMap final 26 class BluetoothAttributeInstanceMap final
28 : public GarbageCollected<BluetoothAttributeInstanceMap> { 27 : public GarbageCollected<BluetoothAttributeInstanceMap> {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // Map of service instance ids to objects. 65 // Map of service instance ids to objects.
67 HeapHashMap<String, Member<BluetoothRemoteGATTService>> m_serviceIdToObject; 66 HeapHashMap<String, Member<BluetoothRemoteGATTService>> m_serviceIdToObject;
68 // Map of characteristic instance ids to objects. 67 // Map of characteristic instance ids to objects.
69 HeapHashMap<String, Member<BluetoothRemoteGATTCharacteristic>> 68 HeapHashMap<String, Member<BluetoothRemoteGATTCharacteristic>>
70 m_characteristicIdToObject; 69 m_characteristicIdToObject;
71 }; 70 };
72 71
73 } // namespace blink 72 } // namespace blink
74 73
75 #endif // BluetoothAttributeInstanceMap_h 74 #endif // BluetoothAttributeInstanceMap_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698