| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 // Informs the renderer that an error occurred while writing a value to a | 179 // Informs the renderer that an error occurred while writing a value to a |
| 180 // characteristic. | 180 // characteristic. |
| 181 IPC_MESSAGE_CONTROL3(BluetoothMsg_WriteCharacteristicValueError, | 181 IPC_MESSAGE_CONTROL3(BluetoothMsg_WriteCharacteristicValueError, |
| 182 int /* thread_id */, | 182 int /* thread_id */, |
| 183 int /* request_id */, | 183 int /* request_id */, |
| 184 blink::WebBluetoothError /* result */) | 184 blink::WebBluetoothError /* result */) |
| 185 | 185 |
| 186 // Messages sent from the renderer to the browser. | 186 // Messages sent from the renderer to the browser. |
| 187 | 187 |
| 188 // Requests a bluetooth device from the browser. | 188 // Requests a bluetooth device from the browser. |
| 189 // TODO(scheib): UI to select and permit access to a device crbug.com/436280. | 189 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_RequestDevice, |
| 190 // This will include refactoring messages to be associated with an origin | |
| 191 // and making this initial requestDevice call with an associated frame. | |
| 192 // This work is deferred to simplify initial prototype patches. | |
| 193 // The Bluetooth feature, and the BluetoothDispatcherHost are behind | |
| 194 // the --enable-experimental-web-platform-features flag. | |
| 195 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_RequestDevice, | |
| 196 int /* thread_id */, | 190 int /* thread_id */, |
| 197 int /* request_id */, | 191 int /* request_id */, |
| 192 int /* frame_routing_id */, |
| 198 std::vector<content::BluetoothScanFilter>, | 193 std::vector<content::BluetoothScanFilter>, |
| 199 std::vector<device::BluetoothUUID> /* optional_services */) | 194 std::vector<device::BluetoothUUID> /* optional_services */) |
| 200 | 195 |
| 201 // Connects to a bluetooth device. | 196 // Connects to a bluetooth device. |
| 202 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_ConnectGATT, | 197 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_ConnectGATT, |
| 203 int /* thread_id */, | 198 int /* thread_id */, |
| 204 int /* request_id */, | 199 int /* request_id */, |
| 205 std::string /* device_instance_id */) | 200 std::string /* device_instance_id */) |
| 206 | 201 |
| 207 // Gets primary service from bluetooth device. | 202 // Gets primary service from bluetooth device. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 223 int /* thread_id */, | 218 int /* thread_id */, |
| 224 int /* request_id */, | 219 int /* request_id */, |
| 225 std::string /* characteristic_instance_id */) | 220 std::string /* characteristic_instance_id */) |
| 226 | 221 |
| 227 // Writes a value to a bluetooth device's characteristic. | 222 // Writes a value to a bluetooth device's characteristic. |
| 228 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_WriteValue, | 223 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_WriteValue, |
| 229 int /* thread_id */, | 224 int /* thread_id */, |
| 230 int /* request_id */, | 225 int /* request_id */, |
| 231 std::string /* characteristic_instance_id */, | 226 std::string /* characteristic_instance_id */, |
| 232 std::vector<uint8_t> /* value */) | 227 std::vector<uint8_t> /* value */) |
| OLD | NEW |