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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 int /* thread_id */, | 116 int /* thread_id */, |
117 int /* request_id */, | 117 int /* request_id */, |
118 content::BluetoothError /* result */) | 118 content::BluetoothError /* result */) |
119 | 119 |
120 // Informs the renderer that the connection request |request_id| succeeded. | 120 // Informs the renderer that the connection request |request_id| succeeded. |
121 IPC_MESSAGE_CONTROL3(BluetoothMsg_ConnectGATTSuccess, | 121 IPC_MESSAGE_CONTROL3(BluetoothMsg_ConnectGATTSuccess, |
122 int /* thread_id */, | 122 int /* thread_id */, |
123 int /* request_id */, | 123 int /* request_id */, |
124 std::string /* device_instance_id */) | 124 std::string /* device_instance_id */) |
125 | 125 |
| 126 // Informs the renderer that the connection request |request_id| failed. |
| 127 IPC_MESSAGE_CONTROL3(BluetoothMsg_ConnectGATTError, |
| 128 int /* thread_id */, |
| 129 int /* request_id */, |
| 130 content::BluetoothError /* result */) |
| 131 |
126 // Messages sent from the renderer to the browser. | 132 // Messages sent from the renderer to the browser. |
127 | 133 |
128 // Requests a bluetooth device from the browser. | 134 // Requests a bluetooth device from the browser. |
129 // TODO(scheib): UI to select and permit access to a device crbug.com/436280. | 135 // TODO(scheib): UI to select and permit access to a device crbug.com/436280. |
130 // This will include refactoring messages to be associated with an origin | 136 // This will include refactoring messages to be associated with an origin |
131 // and making this initial requestDevice call with an associated frame. | 137 // and making this initial requestDevice call with an associated frame. |
132 // This work is deferred to simplify initial prototype patches. | 138 // This work is deferred to simplify initial prototype patches. |
133 // The Bluetooth feature, and the BluetoothDispatcherHost are behind | 139 // The Bluetooth feature, and the BluetoothDispatcherHost are behind |
134 // the --enable-experimental-web-platform-features flag. | 140 // the --enable-experimental-web-platform-features flag. |
135 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RequestDevice, | 141 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RequestDevice, |
136 int /* thread_id */, | 142 int /* thread_id */, |
137 int /* request_id */) | 143 int /* request_id */) |
138 | 144 |
139 // Connects to a bluetooth device. | 145 // Connects to a bluetooth device. |
140 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_ConnectGATT, | 146 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_ConnectGATT, |
141 int /* thread_id */, | 147 int /* thread_id */, |
142 int /* request_id */, | 148 int /* request_id */, |
143 std::string /* device_instance_id */) | 149 std::string /* device_instance_id */) |
OLD | NEW |