| 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 // Messages for Web Bluetooth API. | 5 // Messages for Web Bluetooth API. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 // Web Bluetooth Security | 8 // Web Bluetooth Security |
| 9 // The security mechanisms of Bluetooth are described in the specification: | 9 // The security mechanisms of Bluetooth are described in the specification: |
| 10 // https://webbluetoothchrome.github.io/web-bluetooth | 10 // https://webbluetoothchrome.github.io/web-bluetooth |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 int /* request_id */, | 157 int /* request_id */, |
| 158 std::string /* characteristic_instance_id */, | 158 std::string /* characteristic_instance_id */, |
| 159 uint32_t /* characteristic_properties */) | 159 uint32_t /* characteristic_properties */) |
| 160 | 160 |
| 161 // Informs the renderer that the characteristic request |request_id| failed. | 161 // Informs the renderer that the characteristic request |request_id| failed. |
| 162 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetCharacteristicError, | 162 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetCharacteristicError, |
| 163 int /* thread_id */, | 163 int /* thread_id */, |
| 164 int /* request_id */, | 164 int /* request_id */, |
| 165 blink::WebBluetoothError /* result */) | 165 blink::WebBluetoothError /* result */) |
| 166 | 166 |
| 167 // Informs the renderer that the multiple-characteristic request |request_id| |
| 168 // succeeded. |
| 169 IPC_MESSAGE_CONTROL5( |
| 170 BluetoothMsg_GetCharacteristicsSuccess, |
| 171 int /* thread_id */, |
| 172 int /* request_id */, |
| 173 std::vector<std::string> /* characteristics_instance_ids */, |
| 174 std::vector<std::string> /* characteristics_uuids */, |
| 175 std::vector<uint32_t> /* characteristics_properties */) |
| 176 |
| 177 // Informs the renderer that the multiple-characteristic request |request_id| |
| 178 // failed. |
| 179 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetCharacteristicsError, |
| 180 int /* thread_id */, |
| 181 int /* request_id */, |
| 182 blink::WebBluetoothError /* result */) |
| 183 |
| 167 // Informs the renderer that the value has been read. | 184 // Informs the renderer that the value has been read. |
| 168 IPC_MESSAGE_CONTROL3(BluetoothMsg_ReadCharacteristicValueSuccess, | 185 IPC_MESSAGE_CONTROL3(BluetoothMsg_ReadCharacteristicValueSuccess, |
| 169 int /* thread_id */, | 186 int /* thread_id */, |
| 170 int /* request_id */, | 187 int /* request_id */, |
| 171 std::vector<uint8_t> /* value */) | 188 std::vector<uint8_t> /* value */) |
| 172 | 189 |
| 173 // Informs the renderer that an error occurred while reading the value. | 190 // Informs the renderer that an error occurred while reading the value. |
| 174 IPC_MESSAGE_CONTROL3(BluetoothMsg_ReadCharacteristicValueError, | 191 IPC_MESSAGE_CONTROL3(BluetoothMsg_ReadCharacteristicValueError, |
| 175 int /* thread_id */, | 192 int /* thread_id */, |
| 176 int /* request_id */, | 193 int /* request_id */, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 std::string /* service_uuid */) | 263 std::string /* service_uuid */) |
| 247 | 264 |
| 248 // Gets a GATT Characteristic within a GATT Service. | 265 // Gets a GATT Characteristic within a GATT Service. |
| 249 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetCharacteristic, | 266 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetCharacteristic, |
| 250 int /* thread_id */, | 267 int /* thread_id */, |
| 251 int /* request_id */, | 268 int /* request_id */, |
| 252 int /* frame_routing_id */, | 269 int /* frame_routing_id */, |
| 253 std::string /* service_instance_id */, | 270 std::string /* service_instance_id */, |
| 254 std::string /* characteristic_uuid */) | 271 std::string /* characteristic_uuid */) |
| 255 | 272 |
| 273 // Gets GATT Characteristics within a GATT Service. |
| 274 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetCharacteristics, |
| 275 int /* thread_id */, |
| 276 int /* request_id */, |
| 277 int /* frame_routing_id */, |
| 278 std::string /* service_instance_id */, |
| 279 std::string /* characteristics_uuid */) |
| 280 |
| 256 // Reads the characteristics value from a bluetooth device. | 281 // Reads the characteristics value from a bluetooth device. |
| 257 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_ReadValue, | 282 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_ReadValue, |
| 258 int /* thread_id */, | 283 int /* thread_id */, |
| 259 int /* request_id */, | 284 int /* request_id */, |
| 260 int /* frame_routing_id */, | 285 int /* frame_routing_id */, |
| 261 std::string /* characteristic_instance_id */) | 286 std::string /* characteristic_instance_id */) |
| 262 | 287 |
| 263 // Writes a value to a bluetooth device's characteristic. | 288 // Writes a value to a bluetooth device's characteristic. |
| 264 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_WriteValue, | 289 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_WriteValue, |
| 265 int /* thread_id */, | 290 int /* thread_id */, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 286 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_RegisterCharacteristic, | 311 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_RegisterCharacteristic, |
| 287 int /* thread_id */, | 312 int /* thread_id */, |
| 288 int /* frame_routing_id */, | 313 int /* frame_routing_id */, |
| 289 std::string /* characteristics_instance_id */) | 314 std::string /* characteristics_instance_id */) |
| 290 | 315 |
| 291 // Unregister from characteristic value changed events. | 316 // Unregister from characteristic value changed events. |
| 292 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_UnregisterCharacteristic, | 317 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_UnregisterCharacteristic, |
| 293 int /* thread_id */, | 318 int /* thread_id */, |
| 294 int /* frame_routing_id */, | 319 int /* frame_routing_id */, |
| 295 std::string /* characteristics_instance_id */) | 320 std::string /* characteristics_instance_id */) |
| OLD | NEW |