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