| 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 CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ |
| 6 #define CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ | 6 #define CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 void characteristicObjectRemoved( | 73 void characteristicObjectRemoved( |
| 74 const blink::WebString& characteristic_instance_id, | 74 const blink::WebString& characteristic_instance_id, |
| 75 blink::WebBluetoothRemoteGATTCharacteristic* characteristic) override; | 75 blink::WebBluetoothRemoteGATTCharacteristic* characteristic) override; |
| 76 void registerCharacteristicObject( | 76 void registerCharacteristicObject( |
| 77 const blink::WebString& characteristic_instance_id, | 77 const blink::WebString& characteristic_instance_id, |
| 78 blink::WebBluetoothRemoteGATTCharacteristic* characteristic) override; | 78 blink::WebBluetoothRemoteGATTCharacteristic* characteristic) override; |
| 79 | 79 |
| 80 private: | 80 private: |
| 81 void OnWriteValueComplete( | 81 void OnWriteValueComplete( |
| 82 const blink::WebVector<uint8_t>& value, | 82 const blink::WebVector<uint8_t>& value, |
| 83 scoped_ptr<blink::WebBluetoothWriteValueCallbacks> callbacks, | 83 std::unique_ptr<blink::WebBluetoothWriteValueCallbacks> callbacks, |
| 84 blink::mojom::WebBluetoothError error); | 84 blink::mojom::WebBluetoothError error); |
| 85 | 85 |
| 86 BluetoothDispatcher* GetDispatcher(); | 86 BluetoothDispatcher* GetDispatcher(); |
| 87 | 87 |
| 88 blink::mojom::WebBluetoothService& GetWebBluetoothService(); | 88 blink::mojom::WebBluetoothService& GetWebBluetoothService(); |
| 89 ServiceRegistry* const service_registry_; | 89 ServiceRegistry* const service_registry_; |
| 90 blink::mojom::WebBluetoothServicePtr web_bluetooth_service_; | 90 blink::mojom::WebBluetoothServicePtr web_bluetooth_service_; |
| 91 | 91 |
| 92 const scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 92 const scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 93 const int frame_routing_id_; | 93 const int frame_routing_id_; |
| 94 | 94 |
| 95 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); | 95 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } // namespace content | 98 } // namespace content |
| 99 | 99 |
| 100 #endif // CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ | 100 #endif // CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ |
| OLD | NEW |