| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 int /* request_id */, | 140 int /* request_id */, |
| 141 std::string /* service_instance_id */) | 141 std::string /* service_instance_id */) |
| 142 | 142 |
| 143 // Informs the renderer that the primary service request |request_id| failed. | 143 // Informs the renderer that the primary service request |request_id| failed. |
| 144 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetPrimaryServiceError, | 144 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetPrimaryServiceError, |
| 145 int /* thread_id */, | 145 int /* thread_id */, |
| 146 int /* request_id */, | 146 int /* request_id */, |
| 147 blink::WebBluetoothError /* result */) | 147 blink::WebBluetoothError /* result */) |
| 148 | 148 |
| 149 // Informs the renderer that characteristic request |request_id| succeeded. | 149 // Informs the renderer that characteristic request |request_id| succeeded. |
| 150 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetCharacteristicSuccess, | 150 IPC_MESSAGE_CONTROL4(BluetoothMsg_GetCharacteristicSuccess, |
| 151 int /* thread_id */, | 151 int /* thread_id */, |
| 152 int /* request_id */, | 152 int /* request_id */, |
| 153 std::string /* characteristic_instance_id */) | 153 std::string /* characteristic_instance_id */, |
| 154 uint32 /* characteristic_properties */) |
| 154 | 155 |
| 155 // Informs the renderer that the characteristic request |request_id| failed. | 156 // Informs the renderer that the characteristic request |request_id| failed. |
| 156 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetCharacteristicError, | 157 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetCharacteristicError, |
| 157 int /* thread_id */, | 158 int /* thread_id */, |
| 158 int /* request_id */, | 159 int /* request_id */, |
| 159 blink::WebBluetoothError /* result */) | 160 blink::WebBluetoothError /* result */) |
| 160 | 161 |
| 161 // Informs the renderer that the value has been read. | 162 // Informs the renderer that the value has been read. |
| 162 IPC_MESSAGE_CONTROL3(BluetoothMsg_ReadCharacteristicValueSuccess, | 163 IPC_MESSAGE_CONTROL3(BluetoothMsg_ReadCharacteristicValueSuccess, |
| 163 int /* thread_id */, | 164 int /* thread_id */, |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 266 |
| 266 // Register to receive characteristic value changed events. | 267 // Register to receive characteristic value changed events. |
| 267 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RegisterCharacteristic, | 268 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RegisterCharacteristic, |
| 268 int /* thread_id */, | 269 int /* thread_id */, |
| 269 std::string /* characteristics_instance_id */) | 270 std::string /* characteristics_instance_id */) |
| 270 | 271 |
| 271 // Unregister from characteristic value changed events. | 272 // Unregister from characteristic value changed events. |
| 272 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_UnregisterCharacteristic, | 273 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_UnregisterCharacteristic, |
| 273 int /* thread_id */, | 274 int /* thread_id */, |
| 274 std::string /* characteristics_instance_id */) | 275 std::string /* characteristics_instance_id */) |
| OLD | NEW |