| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 std::vector<uint8_t> /* value */) | 172 std::vector<uint8_t> /* value */) |
| 173 | 173 |
| 174 // Informs the renderer that an error occurred while reading the value. | 174 // Informs the renderer that an error occurred while reading the value. |
| 175 IPC_MESSAGE_CONTROL3(BluetoothMsg_ReadCharacteristicValueError, | 175 IPC_MESSAGE_CONTROL3(BluetoothMsg_ReadCharacteristicValueError, |
| 176 int /* thread_id */, | 176 int /* thread_id */, |
| 177 int /* request_id */, | 177 int /* request_id */, |
| 178 blink::WebBluetoothError /* result */) | 178 blink::WebBluetoothError /* result */) |
| 179 | 179 |
| 180 // Informs the renderer that the value has been successfully written to | 180 // Informs the renderer that the value has been successfully written to |
| 181 // the characteristic. | 181 // the characteristic. |
| 182 IPC_MESSAGE_CONTROL2(BluetoothMsg_WriteCharacteristicValueSuccess, | 182 IPC_MESSAGE_CONTROL3(BluetoothMsg_WriteCharacteristicValueSuccess, |
| 183 int /* thread_id */, | 183 int /* thread_id */, |
| 184 int /* request_id */) | 184 int /* request_id */, |
| 185 std::vector<uint8_t> /* value */) |
| 185 | 186 |
| 186 // Informs the renderer that an error occurred while writing a value to a | 187 // Informs the renderer that an error occurred while writing a value to a |
| 187 // characteristic. | 188 // characteristic. |
| 188 IPC_MESSAGE_CONTROL3(BluetoothMsg_WriteCharacteristicValueError, | 189 IPC_MESSAGE_CONTROL3(BluetoothMsg_WriteCharacteristicValueError, |
| 189 int /* thread_id */, | 190 int /* thread_id */, |
| 190 int /* request_id */, | 191 int /* request_id */, |
| 191 blink::WebBluetoothError /* result */) | 192 blink::WebBluetoothError /* result */) |
| 192 | 193 |
| 193 // Informs the renderer that the user has successfully subscribed to | 194 // Informs the renderer that the user has successfully subscribed to |
| 194 // notifications from the device. | 195 // notifications from the device. |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 273 |
| 273 // Register to receive characteristic value changed events. | 274 // Register to receive characteristic value changed events. |
| 274 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RegisterCharacteristic, | 275 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RegisterCharacteristic, |
| 275 int /* thread_id */, | 276 int /* thread_id */, |
| 276 std::string /* characteristics_instance_id */) | 277 std::string /* characteristics_instance_id */) |
| 277 | 278 |
| 278 // Unregister from characteristic value changed events. | 279 // Unregister from characteristic value changed events. |
| 279 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_UnregisterCharacteristic, | 280 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_UnregisterCharacteristic, |
| 280 int /* thread_id */, | 281 int /* thread_id */, |
| 281 std::string /* characteristics_instance_id */) | 282 std::string /* characteristics_instance_id */) |
| OLD | NEW |