| 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" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 ScriptPromise getPrimaryServicesImpl( | 67 ScriptPromise getPrimaryServicesImpl( |
| 68 ScriptState*, | 68 ScriptState*, |
| 69 mojom::blink::WebBluetoothGATTQueryQuantity, | 69 mojom::blink::WebBluetoothGATTQueryQuantity, |
| 70 String serviceUUID = String()); | 70 String serviceUUID = String()); |
| 71 | 71 |
| 72 void ConnectCallback(ScriptPromiseResolver*, | 72 void ConnectCallback(ScriptPromiseResolver*, |
| 73 mojom::blink::WebBluetoothResult); | 73 mojom::blink::WebBluetoothResult); |
| 74 void GetPrimaryServicesCallback( | 74 void GetPrimaryServicesCallback( |
| 75 const String& requestedServiceUUID, |
| 75 mojom::blink::WebBluetoothGATTQueryQuantity, | 76 mojom::blink::WebBluetoothGATTQueryQuantity, |
| 76 ScriptPromiseResolver*, | 77 ScriptPromiseResolver*, |
| 77 mojom::blink::WebBluetoothResult, | 78 mojom::blink::WebBluetoothResult, |
| 78 Optional<Vector<mojom::blink::WebBluetoothRemoteGATTServicePtr>> | 79 Optional<Vector<mojom::blink::WebBluetoothRemoteGATTServicePtr>> |
| 79 services); | 80 services); |
| 80 | 81 |
| 81 // Contains a ScriptPromiseResolver corresponding to each active algorithm | 82 // Contains a ScriptPromiseResolver corresponding to each active algorithm |
| 82 // using this server’s connection. | 83 // using this server’s connection. |
| 83 HeapHashSet<Member<ScriptPromiseResolver>> m_activeAlgorithms; | 84 HeapHashSet<Member<ScriptPromiseResolver>> m_activeAlgorithms; |
| 84 | 85 |
| 85 Member<BluetoothDevice> m_device; | 86 Member<BluetoothDevice> m_device; |
| 86 bool m_connected; | 87 bool m_connected; |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 } // namespace blink | 90 } // namespace blink |
| 90 | 91 |
| 91 #endif // BluetoothDevice_h | 92 #endif // BluetoothDevice_h |
| OLD | NEW |