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://webbluetoothcg.github.io/web-bluetooth | 10 // https://webbluetoothcg.github.io/web-bluetooth |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 146 int /* thread_id */, | 146 int /* thread_id */, |
| 147 int /* request_id */, | 147 int /* request_id */, |
| 148 std::string /* characteristic_instance_id */) | 148 std::string /* characteristic_instance_id */) |
| 149 | 149 |
| 150 // Informs the renderer that the characteristic request |request_id| failed. | 150 // Informs the renderer that the characteristic request |request_id| failed. |
| 151 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetCharacteristicError, | 151 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetCharacteristicError, |
| 152 int /* thread_id */, | 152 int /* thread_id */, |
| 153 int /* request_id */, | 153 int /* request_id */, |
| 154 content::BluetoothError /* result */) | 154 content::BluetoothError /* result */) |
| 155 | 155 |
| 156 // Informs the renderer that the value has been read. | |
| 157 IPC_MESSAGE_CONTROL3(BluetoothMsg_ReadCharacteristicValueSuccess, | |
| 158 int /* thread_id */, | |
| 159 int /* request_id */, | |
| 160 std::vector<uint8_t> /* value */) | |
| 161 | |
| 162 // Informs the renderer that an error occurred while reading the value. | |
| 163 IPC_MESSAGE_CONTROL3(BluetoothMsg_ReadCharacteristicValueError, | |
| 164 int /* thread_id */, | |
| 165 int /* request_id */, | |
| 166 content::BluetoothError /* result */) | |
|
Jeffrey Yasskin
2015/06/10 21:03:45
Can we add the "description" enum or string to thi
ortuno
2015/06/10 22:03:01
That's on this CL: http://crrev.com/1177613002
| |
| 167 | |
| 156 // Messages sent from the renderer to the browser. | 168 // Messages sent from the renderer to the browser. |
| 157 | 169 |
| 158 // Requests a bluetooth device from the browser. | 170 // Requests a bluetooth device from the browser. |
| 159 // TODO(scheib): UI to select and permit access to a device crbug.com/436280. | 171 // TODO(scheib): UI to select and permit access to a device crbug.com/436280. |
| 160 // This will include refactoring messages to be associated with an origin | 172 // This will include refactoring messages to be associated with an origin |
| 161 // and making this initial requestDevice call with an associated frame. | 173 // and making this initial requestDevice call with an associated frame. |
| 162 // This work is deferred to simplify initial prototype patches. | 174 // This work is deferred to simplify initial prototype patches. |
| 163 // The Bluetooth feature, and the BluetoothDispatcherHost are behind | 175 // The Bluetooth feature, and the BluetoothDispatcherHost are behind |
| 164 // the --enable-experimental-web-platform-features flag. | 176 // the --enable-experimental-web-platform-features flag. |
| 165 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RequestDevice, | 177 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RequestDevice, |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 178 int /* request_id */, | 190 int /* request_id */, |
| 179 std::string /* device_instance_id */, | 191 std::string /* device_instance_id */, |
| 180 std::string /* service_uuid */) | 192 std::string /* service_uuid */) |
| 181 | 193 |
| 182 // Gets a GATT Characteristic within a GATT Service. | 194 // Gets a GATT Characteristic within a GATT Service. |
| 183 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_GetCharacteristic, | 195 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_GetCharacteristic, |
| 184 int /* thread_id */, | 196 int /* thread_id */, |
| 185 int /* request_id */, | 197 int /* request_id */, |
| 186 std::string /* service_instance_id */, | 198 std::string /* service_instance_id */, |
| 187 std::string /* characteristic_uuid */) | 199 std::string /* characteristic_uuid */) |
| 200 | |
| 201 // Reads the characteristics value from a bluetooth device. | |
| 202 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_ReadValue, | |
| 203 int /* thread_id */, | |
| 204 int /* request_id */, | |
| 205 std::string /* characteristic_instance_id */) | |
| OLD | NEW |