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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 void requestDevice( | 47 void requestDevice( |
48 const blink::WebRequestDeviceOptions& options, | 48 const blink::WebRequestDeviceOptions& options, |
49 blink::WebBluetoothRequestDeviceCallbacks* callbacks) override; | 49 blink::WebBluetoothRequestDeviceCallbacks* callbacks) override; |
50 void connect( | 50 void connect( |
51 const blink::WebString& device_id, | 51 const blink::WebString& device_id, |
52 blink::WebBluetoothDevice* device, | 52 blink::WebBluetoothDevice* device, |
53 blink::WebBluetoothRemoteGATTServerConnectCallbacks* callbacks) override; | 53 blink::WebBluetoothRemoteGATTServerConnectCallbacks* callbacks) override; |
54 void disconnect(const blink::WebString& device_id) override; | 54 void disconnect(const blink::WebString& device_id) override; |
55 void getPrimaryServices( | 55 void getPrimaryServices( |
56 const blink::WebString& device_id, | 56 const blink::WebString& device_id, |
57 blink::mojom::WebBluetoothGATTQueryQuantity quantity, | 57 int32_t quantity /* Corresponds to WebBluetoothGATTQueryQuantity in |
| 58 web_bluetooth.mojom */, |
58 const blink::WebString& services_uuid, | 59 const blink::WebString& services_uuid, |
59 blink::WebBluetoothGetPrimaryServicesCallbacks* callbacks) override; | 60 blink::WebBluetoothGetPrimaryServicesCallbacks* callbacks) override; |
60 void getCharacteristics( | 61 void getCharacteristics( |
61 const blink::WebString& service_instance_id, | 62 const blink::WebString& service_instance_id, |
62 blink::mojom::WebBluetoothGATTQueryQuantity quantity, | 63 int32_t quantity /* Corresponds to WebBluetoothGATTQueryQuantity in |
| 64 web_bluetooth.mojom */, |
63 const blink::WebString& characteristics_uuid, | 65 const blink::WebString& characteristics_uuid, |
64 blink::WebBluetoothGetCharacteristicsCallbacks* callbacks) override; | 66 blink::WebBluetoothGetCharacteristicsCallbacks* callbacks) override; |
65 void readValue(const blink::WebString& characteristic_instance_id, | 67 void readValue(const blink::WebString& characteristic_instance_id, |
66 blink::WebBluetoothReadValueCallbacks* callbacks) override; | 68 blink::WebBluetoothReadValueCallbacks* callbacks) override; |
67 void writeValue(const blink::WebString& characteristic_instance_id, | 69 void writeValue(const blink::WebString& characteristic_instance_id, |
68 const blink::WebVector<uint8_t>& value, | 70 const blink::WebVector<uint8_t>& value, |
69 blink::WebBluetoothWriteValueCallbacks*) override; | 71 blink::WebBluetoothWriteValueCallbacks*) override; |
70 void startNotifications( | 72 void startNotifications( |
71 const blink::WebString& characteristic_instance_id, | 73 const blink::WebString& characteristic_instance_id, |
72 blink::WebBluetoothNotificationsCallbacks*) override; | 74 blink::WebBluetoothNotificationsCallbacks*) override; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 147 |
146 // Binding associated with |web_bluetooth_service_|. | 148 // Binding associated with |web_bluetooth_service_|. |
147 mojo::AssociatedBinding<blink::mojom::WebBluetoothServiceClient> binding_; | 149 mojo::AssociatedBinding<blink::mojom::WebBluetoothServiceClient> binding_; |
148 | 150 |
149 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); | 151 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); |
150 }; | 152 }; |
151 | 153 |
152 } // namespace content | 154 } // namespace content |
153 | 155 |
154 #endif // CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ | 156 #endif // CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ |
OLD | NEW |