| 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 "wtf/OwnPtr.h" | |
| 13 #include "wtf/PassOwnPtr.h" | |
| 14 #include "wtf/text/WTFString.h" | 12 #include "wtf/text/WTFString.h" |
| 15 | 13 |
| 16 namespace blink { | 14 namespace blink { |
| 17 | 15 |
| 18 class BluetoothDevice; | 16 class BluetoothDevice; |
| 19 class ScriptPromise; | 17 class ScriptPromise; |
| 20 class ScriptPromiseResolver; | 18 class ScriptPromiseResolver; |
| 21 class ScriptState; | 19 class ScriptState; |
| 22 | 20 |
| 23 // BluetoothRemoteGATTServer provides a way to interact with a connected bluetoo
th peripheral. | 21 // BluetoothRemoteGATTServer provides a way to interact with a connected bluetoo
th peripheral. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 43 ScriptPromise getPrimaryService(ScriptState*, const StringOrUnsignedLong& se
rvice, ExceptionState&); | 41 ScriptPromise getPrimaryService(ScriptState*, const StringOrUnsignedLong& se
rvice, ExceptionState&); |
| 44 | 42 |
| 45 private: | 43 private: |
| 46 Member<BluetoothDevice> m_device; | 44 Member<BluetoothDevice> m_device; |
| 47 bool m_connected; | 45 bool m_connected; |
| 48 }; | 46 }; |
| 49 | 47 |
| 50 } // namespace blink | 48 } // namespace blink |
| 51 | 49 |
| 52 #endif // BluetoothDevice_h | 50 #endif // BluetoothDevice_h |
| OLD | NEW |