| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 BluetoothDevice_h | 5 #ifndef BluetoothDevice_h |
| 6 #define BluetoothDevice_h | 6 #define BluetoothDevice_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "core/dom/ContextLifecycleObserver.h" | 9 #include "core/dom/ContextLifecycleObserver.h" |
| 10 #include "modules/EventTargetModules.h" | 10 #include "modules/EventTargetModules.h" |
| 11 #include "modules/bluetooth/BluetoothRemoteGATTServer.h" | 11 #include "modules/bluetooth/BluetoothRemoteGATTServer.h" |
| 12 #include "platform/heap/Heap.h" | 12 #include "platform/heap/Heap.h" |
| 13 #include "public/platform/modules/bluetooth/WebBluetoothDevice.h" | 13 #include "public/platform/modules/bluetooth/WebBluetoothDevice.h" |
| 14 #include "public/platform/modules/bluetooth/WebBluetoothDeviceInit.h" | 14 #include "public/platform/modules/bluetooth/WebBluetoothDeviceInit.h" |
| 15 #include "wtf/text/WTFString.h" | 15 #include "wtf/text/WTFString.h" |
| 16 #include <memory> | 16 #include <memory> |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| 20 class BluetoothAttributeInstanceMap; | 20 class BluetoothAttributeInstanceMap; |
| 21 class BluetoothRemoteGATTCharacteristic; | 21 class BluetoothRemoteGATTCharacteristic; |
| 22 class BluetoothRemoteGATTServer; | 22 class BluetoothRemoteGATTServer; |
| 23 class BluetoothRemoteGATTService; | 23 class BluetoothRemoteGATTService; |
| 24 class ScriptPromise; | |
| 25 class ScriptPromiseResolver; | 24 class ScriptPromiseResolver; |
| 26 | 25 |
| 27 struct WebBluetoothRemoteGATTCharacteristicInit; | 26 struct WebBluetoothRemoteGATTCharacteristicInit; |
| 28 struct WebBluetoothRemoteGATTService; | 27 struct WebBluetoothRemoteGATTService; |
| 29 | 28 |
| 30 // BluetoothDevice represents a physical bluetooth device in the DOM. See IDL. | 29 // BluetoothDevice represents a physical bluetooth device in the DOM. See IDL. |
| 31 // | 30 // |
| 32 // Callbacks providing WebBluetoothDevice objects are handled by | 31 // Callbacks providing WebBluetoothDevice objects are handled by |
| 33 // CallbackPromiseAdapter templatized with this class. See this class's | 32 // CallbackPromiseAdapter templatized with this class. See this class's |
| 34 // "Interface required by CallbackPromiseAdapter" section and the | 33 // "Interface required by CallbackPromiseAdapter" section and the |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // Holds all GATT Attributes associated with this BluetoothDevice. | 105 // Holds all GATT Attributes associated with this BluetoothDevice. |
| 107 Member<BluetoothAttributeInstanceMap> m_attributeInstanceMap; | 106 Member<BluetoothAttributeInstanceMap> m_attributeInstanceMap; |
| 108 | 107 |
| 109 std::unique_ptr<WebBluetoothDeviceInit> m_webDevice; | 108 std::unique_ptr<WebBluetoothDeviceInit> m_webDevice; |
| 110 Member<BluetoothRemoteGATTServer> m_gatt; | 109 Member<BluetoothRemoteGATTServer> m_gatt; |
| 111 }; | 110 }; |
| 112 | 111 |
| 113 } // namespace blink | 112 } // namespace blink |
| 114 | 113 |
| 115 #endif // BluetoothDevice_h | 114 #endif // BluetoothDevice_h |
| OLD | NEW |