| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 std::vector<std::string> /* characteristics_uuids */, | 174 std::vector<std::string> /* characteristics_uuids */, |
| 175 std::vector<uint32_t> /* characteristics_properties */) | 175 std::vector<uint32_t> /* characteristics_properties */) |
| 176 | 176 |
| 177 // Informs the renderer that the multiple-characteristic request |request_id| | 177 // Informs the renderer that the multiple-characteristic request |request_id| |
| 178 // failed. | 178 // failed. |
| 179 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetCharacteristicsError, | 179 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetCharacteristicsError, |
| 180 int /* thread_id */, | 180 int /* thread_id */, |
| 181 int /* request_id */, | 181 int /* request_id */, |
| 182 blink::WebBluetoothError /* result */) | 182 blink::WebBluetoothError /* result */) |
| 183 | 183 |
| 184 // Informs the renderer that the value has been read. | |
| 185 IPC_MESSAGE_CONTROL3(BluetoothMsg_ReadCharacteristicValueSuccess, | |
| 186 int /* thread_id */, | |
| 187 int /* request_id */, | |
| 188 std::vector<uint8_t> /* value */) | |
| 189 | |
| 190 // Informs the renderer that an error occurred while reading the value. | |
| 191 IPC_MESSAGE_CONTROL3(BluetoothMsg_ReadCharacteristicValueError, | |
| 192 int /* thread_id */, | |
| 193 int /* request_id */, | |
| 194 blink::WebBluetoothError /* result */) | |
| 195 | |
| 196 // Messages sent from the renderer to the browser. | 184 // Messages sent from the renderer to the browser. |
| 197 | 185 |
| 198 // Requests a bluetooth device from the browser. | 186 // Requests a bluetooth device from the browser. |
| 199 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_RequestDevice, | 187 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_RequestDevice, |
| 200 int /* thread_id */, | 188 int /* thread_id */, |
| 201 int /* request_id */, | 189 int /* request_id */, |
| 202 int /* frame_routing_id */, | 190 int /* frame_routing_id */, |
| 203 std::vector<content::BluetoothScanFilter>, | 191 std::vector<content::BluetoothScanFilter>, |
| 204 std::vector<device::BluetoothUUID> /* optional_services */) | 192 std::vector<device::BluetoothUUID> /* optional_services */) |
| 205 | 193 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 232 std::string /* service_instance_id */, | 220 std::string /* service_instance_id */, |
| 233 std::string /* characteristic_uuid */) | 221 std::string /* characteristic_uuid */) |
| 234 | 222 |
| 235 // Gets GATT Characteristics within a GATT Service. | 223 // Gets GATT Characteristics within a GATT Service. |
| 236 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetCharacteristics, | 224 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetCharacteristics, |
| 237 int /* thread_id */, | 225 int /* thread_id */, |
| 238 int /* request_id */, | 226 int /* request_id */, |
| 239 int /* frame_routing_id */, | 227 int /* frame_routing_id */, |
| 240 std::string /* service_instance_id */, | 228 std::string /* service_instance_id */, |
| 241 std::string /* characteristics_uuid */) | 229 std::string /* characteristics_uuid */) |
| 242 | |
| 243 // Reads the characteristics value from a bluetooth device. | |
| 244 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_ReadValue, | |
| 245 int /* thread_id */, | |
| 246 int /* request_id */, | |
| 247 int /* frame_routing_id */, | |
| 248 std::string /* characteristic_instance_id */) | |
| OLD | NEW |