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 IPC_MESSAGE_CONTROL3(BluetoothMsg_StartNotificationsError, | |
195 int /* thread_id */, | |
196 int /* request_id */, | |
197 blink::WebBluetoothError) | |
198 | |
199 // Informs the renderer that | |
Jeffrey Yasskin
2015/09/12 02:36:05
This sentence is missing its
ortuno
2015/09/15 21:38:19
Done.
| |
200 IPC_MESSAGE_CONTROL2(BluetoothMsg_StopNotificationsSuccess, | |
201 int /* thread_id */, | |
202 int /* request_id */) | |
203 | |
186 // Messages sent from the renderer to the browser. | 204 // Messages sent from the renderer to the browser. |
187 | 205 |
188 // Requests a bluetooth device from the browser. | 206 // Requests a bluetooth device from the browser. |
189 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_RequestDevice, | 207 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_RequestDevice, |
190 int /* thread_id */, | 208 int /* thread_id */, |
191 int /* request_id */, | 209 int /* request_id */, |
192 int /* frame_routing_id */, | 210 int /* frame_routing_id */, |
193 std::vector<content::BluetoothScanFilter>, | 211 std::vector<content::BluetoothScanFilter>, |
194 std::vector<device::BluetoothUUID> /* optional_services */) | 212 std::vector<device::BluetoothUUID> /* optional_services */) |
195 | 213 |
(...skipping 22 matching lines...) Expand all Loading... | |
218 int /* thread_id */, | 236 int /* thread_id */, |
219 int /* request_id */, | 237 int /* request_id */, |
220 std::string /* characteristic_instance_id */) | 238 std::string /* characteristic_instance_id */) |
221 | 239 |
222 // Writes a value to a bluetooth device's characteristic. | 240 // Writes a value to a bluetooth device's characteristic. |
223 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_WriteValue, | 241 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_WriteValue, |
224 int /* thread_id */, | 242 int /* thread_id */, |
225 int /* request_id */, | 243 int /* request_id */, |
226 std::string /* characteristic_instance_id */, | 244 std::string /* characteristic_instance_id */, |
227 std::vector<uint8_t> /* value */) | 245 std::vector<uint8_t> /* value */) |
246 | |
247 // Subscribes to notifications from a device's characteristic. | |
248 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_StartNotifications, | |
249 int /* thread_id */, | |
250 int /* request_id */, | |
251 std::string /* characteristic_instance_id */) | |
252 | |
253 // Unsubscribes from notifications from a device's characteristic. | |
254 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_StopNotifications, | |
255 int /* thread_id */, | |
256 int /* request_id */, | |
257 std::string /* characteristic_instance_id */) | |
OLD | NEW |