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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_CONTROL4(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 int /* frame_routing_id */, |
233 std::string /* device_id */) | 233 std::string /* device_id */) |
234 | 234 |
| 235 // Disconnect from a device. |
| 236 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_Disconnect, |
| 237 int /* thread_id */, |
| 238 int /* frame_routing_id */, |
| 239 std::string /* device_id */) |
| 240 |
235 // Gets primary service from bluetooth device. | 241 // Gets primary service from bluetooth device. |
236 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetPrimaryService, | 242 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetPrimaryService, |
237 int /* thread_id */, | 243 int /* thread_id */, |
238 int /* request_id */, | 244 int /* request_id */, |
239 int /* frame_routing_id */, | 245 int /* frame_routing_id */, |
240 std::string /* device_id */, | 246 std::string /* device_id */, |
241 std::string /* service_uuid */) | 247 std::string /* service_uuid */) |
242 | 248 |
243 // Gets a GATT Characteristic within a GATT Service. | 249 // Gets a GATT Characteristic within a GATT Service. |
244 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetCharacteristic, | 250 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetCharacteristic, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_RegisterCharacteristic, | 287 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_RegisterCharacteristic, |
282 int /* thread_id */, | 288 int /* thread_id */, |
283 int /* frame_routing_id */, | 289 int /* frame_routing_id */, |
284 std::string /* characteristics_instance_id */) | 290 std::string /* characteristics_instance_id */) |
285 | 291 |
286 // Unregister from characteristic value changed events. | 292 // Unregister from characteristic value changed events. |
287 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_UnregisterCharacteristic, | 293 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_UnregisterCharacteristic, |
288 int /* thread_id */, | 294 int /* thread_id */, |
289 int /* frame_routing_id */, | 295 int /* frame_routing_id */, |
290 std::string /* characteristics_instance_id */) | 296 std::string /* characteristics_instance_id */) |
OLD | NEW |