Chromium Code Reviews| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 176 int /* thread_id */, | 176 int /* thread_id */, |
| 177 int /* request_id */) | 177 int /* request_id */) |
| 178 | 178 |
| 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 // Informs the renderer that the user has successfully subscribed to | |
| 187 // notifications from the device. | |
| 188 IPC_MESSAGE_CONTROL2(BluetoothMsg_StartNotificationsSuccess, | |
| 189 int /* thread_id */, | |
| 190 int /* request_id */) | |
| 191 | |
| 192 // Informs the renderer that an error ocurred when trying to subscribe to | |
| 193 // notifications from the device. | |
| 194 | |
|
Jeffrey Yasskin
2015/09/25 23:03:19
Remove the extra blank line.
ortuno
2015/09/29 22:47:36
Done.
| |
| 195 IPC_MESSAGE_CONTROL3(BluetoothMsg_StartNotificationsError, | |
| 196 int /* thread_id */, | |
| 197 int /* request_id */, | |
| 198 blink::WebBluetoothError) | |
| 199 | |
| 200 // Informs the renderer that the user has successfully unsubscribed from | |
| 201 // notifications. | |
| 202 IPC_MESSAGE_CONTROL2(BluetoothMsg_StopNotificationsSuccess, | |
| 203 int /* thread_id */, | |
| 204 int /* request_id */) | |
| 205 | |
| 186 // Messages sent from the renderer to the browser. | 206 // Messages sent from the renderer to the browser. |
| 187 | 207 |
| 188 // Requests a bluetooth device from the browser. | 208 // Requests a bluetooth device from the browser. |
| 189 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_RequestDevice, | 209 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_RequestDevice, |
| 190 int /* thread_id */, | 210 int /* thread_id */, |
| 191 int /* request_id */, | 211 int /* request_id */, |
| 192 int /* frame_routing_id */, | 212 int /* frame_routing_id */, |
| 193 std::vector<content::BluetoothScanFilter>, | 213 std::vector<content::BluetoothScanFilter>, |
| 194 std::vector<device::BluetoothUUID> /* optional_services */) | 214 std::vector<device::BluetoothUUID> /* optional_services */) |
| 195 | 215 |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 218 int /* thread_id */, | 238 int /* thread_id */, |
| 219 int /* request_id */, | 239 int /* request_id */, |
| 220 std::string /* characteristic_instance_id */) | 240 std::string /* characteristic_instance_id */) |
| 221 | 241 |
| 222 // Writes a value to a bluetooth device's characteristic. | 242 // Writes a value to a bluetooth device's characteristic. |
| 223 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_WriteValue, | 243 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_WriteValue, |
| 224 int /* thread_id */, | 244 int /* thread_id */, |
| 225 int /* request_id */, | 245 int /* request_id */, |
| 226 std::string /* characteristic_instance_id */, | 246 std::string /* characteristic_instance_id */, |
| 227 std::vector<uint8_t> /* value */) | 247 std::vector<uint8_t> /* value */) |
| 248 | |
| 249 // Subscribes to notifications from a device's characteristic. | |
| 250 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_StartNotifications, | |
| 251 int /* thread_id */, | |
| 252 int /* request_id */, | |
| 253 std::string /* characteristic_instance_id */) | |
| 254 | |
| 255 // Unsubscribes from notifications from a device's characteristic. | |
| 256 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_StopNotifications, | |
| 257 int /* thread_id */, | |
| 258 int /* request_id */, | |
| 259 std::string /* characteristic_instance_id */) | |
| OLD | NEW |