| 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 <memory> | 10 #include <memory> |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 void registerCharacteristicObject( | 75 void registerCharacteristicObject( |
| 76 const blink::WebString& characteristic_instance_id, | 76 const blink::WebString& characteristic_instance_id, |
| 77 blink::WebBluetoothRemoteGATTCharacteristic* characteristic) override; | 77 blink::WebBluetoothRemoteGATTCharacteristic* characteristic) override; |
| 78 | 78 |
| 79 private: | 79 private: |
| 80 struct GetCharacteristicsCallback; | 80 struct GetCharacteristicsCallback; |
| 81 // WebBluetoothServiceClient methods: | 81 // WebBluetoothServiceClient methods: |
| 82 void RemoteCharacteristicValueChanged( | 82 void RemoteCharacteristicValueChanged( |
| 83 const mojo::String& characteristic_instance_id, | 83 const mojo::String& characteristic_instance_id, |
| 84 mojo::Array<uint8_t> value) override; | 84 mojo::Array<uint8_t> value) override; |
| 85 void GattServerDisconnected(const mojo::String& device_id) override; | 85 void GattServerDisconnected(const BluetoothDeviceId& device_id) override; |
| 86 | 86 |
| 87 // Callbacks for WebBluetoothService calls: | 87 // Callbacks for WebBluetoothService calls: |
| 88 void OnRequestDeviceComplete( | 88 void OnRequestDeviceComplete( |
| 89 std::unique_ptr<blink::WebBluetoothRequestDeviceCallbacks> callbacks, | 89 std::unique_ptr<blink::WebBluetoothRequestDeviceCallbacks> callbacks, |
| 90 const blink::mojom::WebBluetoothError error, | 90 const blink::mojom::WebBluetoothError error, |
| 91 blink::mojom::WebBluetoothDevicePtr device); | 91 blink::mojom::WebBluetoothDevicePtr device); |
| 92 void OnConnectComplete( | 92 void OnConnectComplete( |
| 93 std::unique_ptr<blink::WebBluetoothRemoteGATTServerConnectCallbacks> | 93 std::unique_ptr<blink::WebBluetoothRemoteGATTServerConnectCallbacks> |
| 94 callbacks, | 94 callbacks, |
| 95 blink::mojom::WebBluetoothError error); | 95 blink::mojom::WebBluetoothError error); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 // Binding associated with |web_bluetooth_service_|. | 142 // Binding associated with |web_bluetooth_service_|. |
| 143 mojo::AssociatedBinding<blink::mojom::WebBluetoothServiceClient> binding_; | 143 mojo::AssociatedBinding<blink::mojom::WebBluetoothServiceClient> binding_; |
| 144 | 144 |
| 145 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); | 145 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 } // namespace content | 148 } // namespace content |
| 149 | 149 |
| 150 #endif // CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ | 150 #endif // CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ |
| OLD | NEW |