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 Bluetooth_h | 5 #ifndef Bluetooth_h |
6 #define Bluetooth_h | 6 #define Bluetooth_h |
7 | 7 |
| 8 #include <memory> |
8 #include "bindings/core/v8/ScriptPromise.h" | 9 #include "bindings/core/v8/ScriptPromise.h" |
9 #include "bindings/core/v8/ScriptWrappable.h" | 10 #include "bindings/core/v8/ScriptWrappable.h" |
10 #include "modules/bluetooth/BluetoothDevice.h" | 11 #include "modules/bluetooth/BluetoothDevice.h" |
11 #include "mojo/public/cpp/bindings/associated_binding.h" | 12 #include "mojo/public/cpp/bindings/associated_binding.h" |
12 #include "platform/heap/Handle.h" | 13 #include "platform/heap/Handle.h" |
13 #include "public/platform/modules/bluetooth/web_bluetooth.mojom-blink.h" | 14 #include "public/platform/modules/bluetooth/web_bluetooth.mojom-blink.h" |
14 #include <memory> | |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 | 17 |
18 class BluetoothRemoteGATTCharacteristic; | 18 class BluetoothRemoteGATTCharacteristic; |
19 class RequestDeviceOptions; | 19 class RequestDeviceOptions; |
20 class ScriptPromise; | 20 class ScriptPromise; |
21 class ScriptState; | 21 class ScriptState; |
22 | 22 |
23 class Bluetooth : public GarbageCollectedFinalized<Bluetooth>, | 23 class Bluetooth : public GarbageCollectedFinalized<Bluetooth>, |
24 public ScriptWrappable, | 24 public ScriptWrappable, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 mojom::blink::WebBluetoothServicePtr m_service; | 87 mojom::blink::WebBluetoothServicePtr m_service; |
88 | 88 |
89 // Binding associated with |m_service|. | 89 // Binding associated with |m_service|. |
90 mojo::AssociatedBinding<mojom::blink::WebBluetoothServiceClient> | 90 mojo::AssociatedBinding<mojom::blink::WebBluetoothServiceClient> |
91 m_clientBinding; | 91 m_clientBinding; |
92 }; | 92 }; |
93 | 93 |
94 } // namespace blink | 94 } // namespace blink |
95 | 95 |
96 #endif // Bluetooth_h | 96 #endif // Bluetooth_h |
OLD | NEW |