| 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 BluetoothRemoteGATTServer_h | 5 #ifndef BluetoothRemoteGATTServer_h |
| 6 #define BluetoothRemoteGATTServer_h | 6 #define BluetoothRemoteGATTServer_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/Heap.h" | 11 #include "platform/heap/Heap.h" |
| 12 #include "public/platform/modules/bluetooth/WebBluetoothError.h" | 12 #include "public/platform/modules/bluetooth/WebBluetoothError.h" |
| 13 #include "wtf/OwnPtr.h" | |
| 14 #include "wtf/PassOwnPtr.h" | |
| 15 #include "wtf/text/WTFString.h" | 13 #include "wtf/text/WTFString.h" |
| 16 | 14 |
| 17 namespace blink { | 15 namespace blink { |
| 18 | 16 |
| 19 class BluetoothDevice; | 17 class BluetoothDevice; |
| 20 class ScriptPromise; | 18 class ScriptPromise; |
| 21 class ScriptPromiseResolver; | 19 class ScriptPromiseResolver; |
| 22 class ScriptState; | 20 class ScriptState; |
| 23 | 21 |
| 24 // BluetoothRemoteGATTServer provides a way to interact with a connected bluetoo
th peripheral. | 22 // BluetoothRemoteGATTServer provides a way to interact with a connected bluetoo
th peripheral. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 48 private: | 46 private: |
| 49 ScriptPromise getPrimaryServicesImpl(ScriptState*, mojom::WebBluetoothGATTQu
eryQuantity, String serviceUUID = String()); | 47 ScriptPromise getPrimaryServicesImpl(ScriptState*, mojom::WebBluetoothGATTQu
eryQuantity, String serviceUUID = String()); |
| 50 | 48 |
| 51 Member<BluetoothDevice> m_device; | 49 Member<BluetoothDevice> m_device; |
| 52 bool m_connected; | 50 bool m_connected; |
| 53 }; | 51 }; |
| 54 | 52 |
| 55 } // namespace blink | 53 } // namespace blink |
| 56 | 54 |
| 57 #endif // BluetoothDevice_h | 55 #endif // BluetoothDevice_h |
| OLD | NEW |