Chromium Code Reviews| 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 characteristic request |request_id| succeeded. | |
|
Jeffrey Yasskin
2016/02/24 23:20:29
s/characteristic/multiple-characteristic/?
ortuno
2016/02/25 23:08:27
Done.
| |
| 168 IPC_MESSAGE_CONTROL5( | |
| 169 BluetoothMsg_GetCharacteristicsSuccess, | |
| 170 int /* thread_id */, | |
| 171 int /* request_id */, | |
| 172 std::vector<std::string> /* characteristics_instance_ids */, | |
| 173 std::vector<std::string> /* characteristics_uuids */, | |
| 174 std::vector<uint32_t> /* characteristics_properties */) | |
| 175 | |
| 176 // Informs the renderer that the characteristic request |request_id| failed. | |
| 177 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetCharacteristicsError, | |
| 178 int /* thread_id */, | |
| 179 int /* request_id */, | |
| 180 blink::WebBluetoothError /* result */) | |
| 181 | |
| 167 // Informs the renderer that the value has been read. | 182 // Informs the renderer that the value has been read. |
| 168 IPC_MESSAGE_CONTROL3(BluetoothMsg_ReadCharacteristicValueSuccess, | 183 IPC_MESSAGE_CONTROL3(BluetoothMsg_ReadCharacteristicValueSuccess, |
| 169 int /* thread_id */, | 184 int /* thread_id */, |
| 170 int /* request_id */, | 185 int /* request_id */, |
| 171 std::vector<uint8_t> /* value */) | 186 std::vector<uint8_t> /* value */) |
| 172 | 187 |
| 173 // Informs the renderer that an error occurred while reading the value. | 188 // Informs the renderer that an error occurred while reading the value. |
| 174 IPC_MESSAGE_CONTROL3(BluetoothMsg_ReadCharacteristicValueError, | 189 IPC_MESSAGE_CONTROL3(BluetoothMsg_ReadCharacteristicValueError, |
| 175 int /* thread_id */, | 190 int /* thread_id */, |
| 176 int /* request_id */, | 191 int /* request_id */, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 246 std::string /* service_uuid */) | 261 std::string /* service_uuid */) |
| 247 | 262 |
| 248 // Gets a GATT Characteristic within a GATT Service. | 263 // Gets a GATT Characteristic within a GATT Service. |
| 249 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetCharacteristic, | 264 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetCharacteristic, |
| 250 int /* thread_id */, | 265 int /* thread_id */, |
| 251 int /* request_id */, | 266 int /* request_id */, |
| 252 int /* frame_routing_id */, | 267 int /* frame_routing_id */, |
| 253 std::string /* service_instance_id */, | 268 std::string /* service_instance_id */, |
| 254 std::string /* characteristic_uuid */) | 269 std::string /* characteristic_uuid */) |
| 255 | 270 |
| 271 // Gets GATT Characteristics within a GATT Service. | |
| 272 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetCharacteristics, | |
| 273 int /* thread_id */, | |
| 274 int /* request_id */, | |
| 275 int /* frame_routing_id */, | |
| 276 std::string /* service_instance_id */, | |
| 277 std::string /* characteristic_uuid */) | |
| 278 | |
| 256 // Reads the characteristics value from a bluetooth device. | 279 // Reads the characteristics value from a bluetooth device. |
| 257 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_ReadValue, | 280 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_ReadValue, |
| 258 int /* thread_id */, | 281 int /* thread_id */, |
| 259 int /* request_id */, | 282 int /* request_id */, |
| 260 int /* frame_routing_id */, | 283 int /* frame_routing_id */, |
| 261 std::string /* characteristic_instance_id */) | 284 std::string /* characteristic_instance_id */) |
| 262 | 285 |
| 263 // Writes a value to a bluetooth device's characteristic. | 286 // Writes a value to a bluetooth device's characteristic. |
| 264 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_WriteValue, | 287 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_WriteValue, |
| 265 int /* thread_id */, | 288 int /* thread_id */, |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 286 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_RegisterCharacteristic, | 309 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_RegisterCharacteristic, |
| 287 int /* thread_id */, | 310 int /* thread_id */, |
| 288 int /* frame_routing_id */, | 311 int /* frame_routing_id */, |
| 289 std::string /* characteristics_instance_id */) | 312 std::string /* characteristics_instance_id */) |
| 290 | 313 |
| 291 // Unregister from characteristic value changed events. | 314 // Unregister from characteristic value changed events. |
| 292 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_UnregisterCharacteristic, | 315 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_UnregisterCharacteristic, |
| 293 int /* thread_id */, | 316 int /* thread_id */, |
| 294 int /* frame_routing_id */, | 317 int /* frame_routing_id */, |
| 295 std::string /* characteristics_instance_id */) | 318 std::string /* characteristics_instance_id */) |
| OLD | NEW |