| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 | 219 |
| 220 // Requests a bluetooth device from the browser. | 220 // Requests a bluetooth device from the browser. |
| 221 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_RequestDevice, | 221 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_RequestDevice, |
| 222 int /* thread_id */, | 222 int /* thread_id */, |
| 223 int /* request_id */, | 223 int /* request_id */, |
| 224 int /* frame_routing_id */, | 224 int /* frame_routing_id */, |
| 225 std::vector<content::BluetoothScanFilter>, | 225 std::vector<content::BluetoothScanFilter>, |
| 226 std::vector<device::BluetoothUUID> /* optional_services */) | 226 std::vector<device::BluetoothUUID> /* optional_services */) |
| 227 | 227 |
| 228 // Connects to a bluetooth device. | 228 // Connects to a bluetooth device. |
| 229 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_ConnectGATT, | 229 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_ConnectGATT, |
| 230 int /* thread_id */, | 230 int /* thread_id */, |
| 231 int /* request_id */, | 231 int /* request_id */, |
| 232 int /* frame_routing_id */, |
| 232 std::string /* device_id */) | 233 std::string /* device_id */) |
| 233 | 234 |
| 234 // Gets primary service from bluetooth device. | 235 // Gets primary service from bluetooth device. |
| 235 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_GetPrimaryService, | 236 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetPrimaryService, |
| 236 int /* thread_id */, | 237 int /* thread_id */, |
| 237 int /* request_id */, | 238 int /* request_id */, |
| 239 int /* frame_routing_id */, |
| 238 std::string /* device_id */, | 240 std::string /* device_id */, |
| 239 std::string /* service_uuid */) | 241 std::string /* service_uuid */) |
| 240 | 242 |
| 241 // Gets a GATT Characteristic within a GATT Service. | 243 // Gets a GATT Characteristic within a GATT Service. |
| 242 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_GetCharacteristic, | 244 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetCharacteristic, |
| 243 int /* thread_id */, | 245 int /* thread_id */, |
| 244 int /* request_id */, | 246 int /* request_id */, |
| 247 int /* frame_routing_id */, |
| 245 std::string /* service_instance_id */, | 248 std::string /* service_instance_id */, |
| 246 std::string /* characteristic_uuid */) | 249 std::string /* characteristic_uuid */) |
| 247 | 250 |
| 248 // Reads the characteristics value from a bluetooth device. | 251 // Reads the characteristics value from a bluetooth device. |
| 249 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_ReadValue, | 252 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_ReadValue, |
| 250 int /* thread_id */, | 253 int /* thread_id */, |
| 251 int /* request_id */, | 254 int /* request_id */, |
| 255 int /* frame_routing_id */, |
| 252 std::string /* characteristic_instance_id */) | 256 std::string /* characteristic_instance_id */) |
| 253 | 257 |
| 254 // Writes a value to a bluetooth device's characteristic. | 258 // Writes a value to a bluetooth device's characteristic. |
| 255 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_WriteValue, | 259 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_WriteValue, |
| 256 int /* thread_id */, | 260 int /* thread_id */, |
| 257 int /* request_id */, | 261 int /* request_id */, |
| 262 int /* frame_routing_id */, |
| 258 std::string /* characteristic_instance_id */, | 263 std::string /* characteristic_instance_id */, |
| 259 std::vector<uint8_t> /* value */) | 264 std::vector<uint8_t> /* value */) |
| 260 | 265 |
| 261 // Subscribes to notifications from a device's characteristic. | 266 // Subscribes to notifications from a device's characteristic. |
| 262 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_StartNotifications, | 267 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_StartNotifications, |
| 263 int /* thread_id */, | 268 int /* thread_id */, |
| 264 int /* request_id */, | 269 int /* request_id */, |
| 270 int /* frame_routing_id */, |
| 265 std::string /* characteristic_instance_id */) | 271 std::string /* characteristic_instance_id */) |
| 266 | 272 |
| 267 // Unsubscribes from notifications from a device's characteristic. | 273 // Unsubscribes from notifications from a device's characteristic. |
| 268 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_StopNotifications, | 274 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_StopNotifications, |
| 269 int /* thread_id */, | 275 int /* thread_id */, |
| 270 int /* request_id */, | 276 int /* request_id */, |
| 277 int /* frame_routing_id */, |
| 271 std::string /* characteristic_instance_id */) | 278 std::string /* characteristic_instance_id */) |
| 272 | 279 |
| 273 // Register to receive characteristic value changed events. | 280 // Register to receive characteristic value changed events. |
| 274 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RegisterCharacteristic, | 281 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_RegisterCharacteristic, |
| 275 int /* thread_id */, | 282 int /* thread_id */, |
| 283 int /* frame_routing_id */, |
| 276 std::string /* characteristics_instance_id */) | 284 std::string /* characteristics_instance_id */) |
| 277 | 285 |
| 278 // Unregister from characteristic value changed events. | 286 // Unregister from characteristic value changed events. |
| 279 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_UnregisterCharacteristic, | 287 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_UnregisterCharacteristic, |
| 280 int /* thread_id */, | 288 int /* thread_id */, |
| 289 int /* frame_routing_id */, |
| 281 std::string /* characteristics_instance_id */) | 290 std::string /* characteristics_instance_id */) |
| OLD | NEW |