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_CONTROL4(BluetoothMsg_GetPrimaryServiceSuccess, | |
134 int /* thread_id */, | |
135 int /* request_id */, | |
136 std::string /* device_instance_id */, | |
137 std::string /* service_uuid */) | |
138 | |
139 // Informs the renderer that the primary service request |request_id| failed. | |
140 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetPrimaryServiceError, | |
141 int /* thread_id */, | |
142 int /* request_id */, | |
143 content::BluetoothError /* result */) | |
144 | |
132 // Messages sent from the renderer to the browser. | 145 // Messages sent from the renderer to the browser. |
133 | 146 |
134 // Requests a bluetooth device from the browser. | 147 // Requests a bluetooth device from the browser. |
135 // TODO(scheib): UI to select and permit access to a device crbug.com/436280. | 148 // 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 | 149 // This will include refactoring messages to be associated with an origin |
137 // and making this initial requestDevice call with an associated frame. | 150 // and making this initial requestDevice call with an associated frame. |
138 // This work is deferred to simplify initial prototype patches. | 151 // This work is deferred to simplify initial prototype patches. |
139 // The Bluetooth feature, and the BluetoothDispatcherHost are behind | 152 // The Bluetooth feature, and the BluetoothDispatcherHost are behind |
140 // the --enable-experimental-web-platform-features flag. | 153 // the --enable-experimental-web-platform-features flag. |
141 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RequestDevice, | 154 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RequestDevice, |
142 int /* thread_id */, | 155 int /* thread_id */, |
143 int /* request_id */) | 156 int /* request_id */) |
144 | 157 |
145 // Connects to a bluetooth device. | 158 // Connects to a bluetooth device. |
146 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_ConnectGATT, | 159 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_ConnectGATT, |
147 int /* thread_id */, | 160 int /* thread_id */, |
148 int /* request_id */, | 161 int /* request_id */, |
149 std::string /* device_instance_id */) | 162 std::string /* device_instance_id */) |
163 | |
164 // Gets primary service from bluetooth device. | |
165 IPC_MESSAGE_CONTROL4(BluetoothHostMsg_GetPrimaryService, | |
166 int /* thread_id */, | |
167 int /* request_id */, | |
168 std::string /* device_instance_id */, | |
169 std::string /* service_uuid */) | |
Jeffrey Yasskin
2015/05/27 18:36:59
In the long run, we're probably going to want to c
ortuno
2015/05/27 21:07:45
Ack.
| |
OLD | NEW |