| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 int /* thread_id */, | 112 int /* thread_id */, |
| 113 int /* request_id */, | 113 int /* request_id */, |
| 114 content::BluetoothDevice /* device */) | 114 content::BluetoothDevice /* device */) |
| 115 | 115 |
| 116 // Informs the renderer that the device request |request_id| failed. | 116 // Informs the renderer that the device request |request_id| failed. |
| 117 IPC_MESSAGE_CONTROL3(BluetoothMsg_RequestDeviceError, | 117 IPC_MESSAGE_CONTROL3(BluetoothMsg_RequestDeviceError, |
| 118 int /* thread_id */, | 118 int /* thread_id */, |
| 119 int /* request_id */, | 119 int /* request_id */, |
| 120 blink::WebBluetoothError /* result */) | 120 blink::WebBluetoothError /* result */) |
| 121 | 121 |
| 122 // Informs the renderer that the connection request |request_id| succeeded. | |
| 123 IPC_MESSAGE_CONTROL2(BluetoothMsg_GATTServerConnectSuccess, | |
| 124 int /* thread_id */, | |
| 125 int /* request_id */) | |
| 126 | |
| 127 // Informs the renderer that the connection request |request_id| failed. | |
| 128 IPC_MESSAGE_CONTROL3(BluetoothMsg_GATTServerConnectError, | |
| 129 int /* thread_id */, | |
| 130 int /* request_id */, | |
| 131 blink::WebBluetoothError /* result */) | |
| 132 | |
| 133 // Messages sent from the renderer to the browser. | 122 // Messages sent from the renderer to the browser. |
| 134 | 123 |
| 135 // Requests a bluetooth device from the browser. | 124 // Requests a bluetooth device from the browser. |
| 136 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_RequestDevice, | 125 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_RequestDevice, |
| 137 int /* thread_id */, | 126 int /* thread_id */, |
| 138 int /* request_id */, | 127 int /* request_id */, |
| 139 int /* frame_routing_id */, | 128 int /* frame_routing_id */, |
| 140 std::vector<content::BluetoothScanFilter>, | 129 std::vector<content::BluetoothScanFilter>, |
| 141 std::vector<device::BluetoothUUID> /* optional_services */) | 130 std::vector<device::BluetoothUUID> /* optional_services */) |
| 142 | |
| 143 // Connects to a bluetooth device. | |
| 144 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_GATTServerConnect, | |
| 145 int /* thread_id */, | |
| 146 int /* request_id */, | |
| 147 int /* frame_routing_id */, | |
| 148 std::string /* device_id */) | |
| 149 | |
| 150 // Disconnect from a device. | |
| 151 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_GATTServerDisconnect, | |
| 152 int /* thread_id */, | |
| 153 int /* frame_routing_id */, | |
| 154 std::string /* device_id */) | |
| OLD | NEW |