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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 111 int /* thread_id */, | 111 int /* thread_id */, |
| 112 int /* request_id */, | 112 int /* request_id */, |
| 113 content::BluetoothDevice /* device */) | 113 content::BluetoothDevice /* device */) |
| 114 | 114 |
| 115 // Informs the renderer that the device request |request_id| failed. | 115 // Informs the renderer that the device request |request_id| failed. |
| 116 IPC_MESSAGE_CONTROL3(BluetoothMsg_RequestDeviceError, | 116 IPC_MESSAGE_CONTROL3(BluetoothMsg_RequestDeviceError, |
| 117 int /* thread_id */, | 117 int /* thread_id */, |
| 118 int /* request_id */, | 118 int /* request_id */, |
| 119 content::BluetoothError /* result */) | 119 content::BluetoothError /* result */) |
| 120 | 120 |
| 121 // Informs the rendered that the connection request |request_id| succeeded. | |
|
scheib
2015/04/19 04:44:19
"renderer"
| |
| 122 IPC_MESSAGE_CONTROL3(BluetoothMsg_ConnectGATTSuccess, | |
| 123 int /* thread_id */, | |
| 124 int /* request_id */, | |
| 125 std::string /* instance_id */) | |
| 126 | |
| 121 // Messages sent from the renderer to the browser. | 127 // Messages sent from the renderer to the browser. |
| 122 | 128 |
| 123 // Requests a bluetooth device from the browser. | 129 // Requests a bluetooth device from the browser. |
| 124 // TODO(scheib): UI to select and permit access to a device crbug.com/436280. | 130 // TODO(scheib): UI to select and permit access to a device crbug.com/436280. |
| 125 // This will include refactoring messages to be associated with an origin | 131 // This will include refactoring messages to be associated with an origin |
| 126 // and making this initial requestDevice call with an associated frame. | 132 // and making this initial requestDevice call with an associated frame. |
| 127 // This work is deferred to simplify initial prototype patches. | 133 // This work is deferred to simplify initial prototype patches. |
| 128 // The Bluetooth feature, and the BluetoothDispatcherHost are behind | 134 // The Bluetooth feature, and the BluetoothDispatcherHost are behind |
| 129 // the --enable-experimental-web-platform-features flag. | 135 // the --enable-experimental-web-platform-features flag. |
| 130 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RequestDevice, | 136 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RequestDevice, |
| 131 int /* thread_id */, | 137 int /* thread_id */, |
| 132 int /* request_id */) | 138 int /* request_id */) |
| 133 | 139 |
| 140 // Connects to a bluetooth device. | |
| 141 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_ConnectGATT, | |
| 142 int /* thread_id */, | |
| 143 int /* request_id */, | |
| 144 std::string /* instance_id */) | |
| 145 | |
| 134 // Configures the mock data set in the browser used while under test. | 146 // Configures the mock data set in the browser used while under test. |
| 135 // TODO(scheib): Disable testing in non-test executables. crbug.com/436284. | 147 // TODO(scheib): Disable testing in non-test executables. crbug.com/436284. |
| 136 IPC_MESSAGE_CONTROL1(BluetoothHostMsg_SetBluetoothMockDataSetForTesting, | 148 IPC_MESSAGE_CONTROL1(BluetoothHostMsg_SetBluetoothMockDataSetForTesting, |
| 137 std::string /* name */) | 149 std::string /* name */) |
| OLD | NEW |