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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 126 // Informs the renderer that the connection request |request_id| failed. |
127 IPC_MESSAGE_CONTROL3(BluetoothMsg_ConnectGATTError, | 127 IPC_MESSAGE_CONTROL3(BluetoothMsg_ConnectGATTError, |
128 int /* thread_id */, | 128 int /* thread_id */, |
129 int /* request_id */, | 129 int /* request_id */, |
130 content::BluetoothError /* result */) | 130 content::BluetoothError /* result */) |
131 | 131 |
| 132 // Informs the renderer that primary service request |request_id| succeeded. |
| 133 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetPrimaryServiceSuccess, |
| 134 int /* thread_id */, |
| 135 int /* request_id */, |
| 136 std::string /* service_instance_id */) |
| 137 |
| 138 // Informs the renderer that the primary service request |request_id| failed. |
| 139 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetPrimaryServiceError, |
| 140 int /* thread_id */, |
| 141 int /* request_id */, |
| 142 content::BluetoothError /* result */) |
| 143 |
132 // Messages sent from the renderer to the browser. | 144 // Messages sent from the renderer to the browser. |
133 | 145 |
134 // Requests a bluetooth device from the browser. | 146 // Requests a bluetooth device from the browser. |
135 // TODO(scheib): UI to select and permit access to a device crbug.com/436280. | 147 // TODO(scheib): UI to select and permit access to a device crbug.com/436280. |
136 // This will include refactoring messages to be associated with an origin | 148 // This will include refactoring messages to be associated with an origin |
137 // and making this initial requestDevice call with an associated frame. | 149 // and making this initial requestDevice call with an associated frame. |
138 // This work is deferred to simplify initial prototype patches. | 150 // This work is deferred to simplify initial prototype patches. |
139 // The Bluetooth feature, and the BluetoothDispatcherHost are behind | 151 // The Bluetooth feature, and the BluetoothDispatcherHost are behind |
140 // the --enable-experimental-web-platform-features flag. | 152 // the --enable-experimental-web-platform-features flag. |
141 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RequestDevice, | 153 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RequestDevice, |
142 int /* thread_id */, | 154 int /* thread_id */, |
143 int /* request_id */) | 155 int /* request_id */) |
144 | 156 |
145 // Connects to a bluetooth device. | 157 // Connects to a bluetooth device. |
146 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_ConnectGATT, | 158 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_ConnectGATT, |
147 int /* thread_id */, | 159 int /* thread_id */, |
148 int /* request_id */, | 160 int /* request_id */, |
149 std::string /* device_instance_id */) | 161 std::string /* device_instance_id */) |
| 162 |
| 163 // Gets primary service from bluetooth device. |
| 164 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_GetPrimaryService, |
| 165 int /* thread_id */, |
| 166 int /* request_id */, |
| 167 std::string /* device_instance_id */, |
| 168 std::string /* service_uuid */) |
OLD | NEW |