OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 BluetoothRemoteGATTService_h | 5 #ifndef BluetoothRemoteGATTService_h |
6 #define BluetoothRemoteGATTService_h | 6 #define BluetoothRemoteGATTService_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "bindings/modules/v8/StringOrUnsignedLong.h" | 9 #include "bindings/modules/v8/StringOrUnsignedLong.h" |
10 #include "modules/bluetooth/BluetoothDevice.h" | 10 #include "modules/bluetooth/BluetoothDevice.h" |
11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
12 #include "platform/heap/Heap.h" | 12 #include "platform/heap/Heap.h" |
13 #include "public/platform/modules/bluetooth/WebBluetoothRemoteGATTService.h" | 13 #include "public/platform/modules/bluetooth/WebBluetoothRemoteGATTService.h" |
14 #include "public/platform/modules/bluetooth/web_bluetooth.mojom-blink.h" | 14 #include "public/platform/modules/bluetooth/web_bluetooth.mojom-blink.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 ScriptPromise; | 20 class ScriptPromise; |
21 class ScriptPromiseResolver; | |
22 class ScriptState; | 21 class ScriptState; |
23 | 22 |
24 // Represents a GATT Service within a Bluetooth Peripheral, a collection of | 23 // Represents a GATT Service within a Bluetooth Peripheral, a collection of |
25 // characteristics and relationships to other services that encapsulate the | 24 // characteristics and relationships to other services that encapsulate the |
26 // behavior of part of a device. | 25 // behavior of part of a device. |
27 // | 26 // |
28 // Callbacks providing WebBluetoothRemoteGATTService objects are handled by | 27 // Callbacks providing WebBluetoothRemoteGATTService objects are handled by |
29 // CallbackPromiseAdapter templatized with this class. See this class's | 28 // CallbackPromiseAdapter templatized with this class. See this class's |
30 // "Interface required by CallbackPromiseAdapter" section and the | 29 // "Interface required by CallbackPromiseAdapter" section and the |
31 // CallbackPromiseAdapter class comments. | 30 // CallbackPromiseAdapter class comments. |
(...skipping 28 matching lines...) Expand all Loading... |
60 mojom::blink::WebBluetoothGATTQueryQuantity, | 59 mojom::blink::WebBluetoothGATTQueryQuantity, |
61 String characteristicUUID = String()); | 60 String characteristicUUID = String()); |
62 | 61 |
63 std::unique_ptr<WebBluetoothRemoteGATTService> m_webService; | 62 std::unique_ptr<WebBluetoothRemoteGATTService> m_webService; |
64 Member<BluetoothDevice> m_device; | 63 Member<BluetoothDevice> m_device; |
65 }; | 64 }; |
66 | 65 |
67 } // namespace blink | 66 } // namespace blink |
68 | 67 |
69 #endif // BluetoothRemoteGATTService_h | 68 #endif // BluetoothRemoteGATTService_h |
OLD | NEW |