Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: content/common/bluetooth/bluetooth_messages.h

Issue 1861013005: bluetooth: Move GetCharacteristic(s) over to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-separate-tests-read-value
Patch Set: Address palmer's comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/bluetooth/web_bluetooth_service_impl.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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://webbluetoothchrome.github.io/web-bluetooth 10 // https://webbluetoothchrome.github.io/web-bluetooth
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 int /* thread_id */, 144 int /* thread_id */,
145 int /* request_id */, 145 int /* request_id */,
146 std::string /* service_instance_id */) 146 std::string /* service_instance_id */)
147 147
148 // Informs the renderer that the primary service request |request_id| failed. 148 // Informs the renderer that the primary service request |request_id| failed.
149 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetPrimaryServiceError, 149 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetPrimaryServiceError,
150 int /* thread_id */, 150 int /* thread_id */,
151 int /* request_id */, 151 int /* request_id */,
152 blink::WebBluetoothError /* result */) 152 blink::WebBluetoothError /* result */)
153 153
154 // Informs the renderer that characteristic request |request_id| succeeded.
155 IPC_MESSAGE_CONTROL4(BluetoothMsg_GetCharacteristicSuccess,
156 int /* thread_id */,
157 int /* request_id */,
158 std::string /* characteristic_instance_id */,
159 uint32_t /* characteristic_properties */)
160
161 // Informs the renderer that the characteristic request |request_id| failed.
162 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetCharacteristicError,
163 int /* thread_id */,
164 int /* request_id */,
165 blink::WebBluetoothError /* result */)
166
167 // Informs the renderer that the multiple-characteristic request |request_id|
168 // succeeded.
169 IPC_MESSAGE_CONTROL5(
170 BluetoothMsg_GetCharacteristicsSuccess,
171 int /* thread_id */,
172 int /* request_id */,
173 std::vector<std::string> /* characteristics_instance_ids */,
174 std::vector<std::string> /* characteristics_uuids */,
175 std::vector<uint32_t> /* characteristics_properties */)
176
177 // Informs the renderer that the multiple-characteristic request |request_id|
178 // failed.
179 IPC_MESSAGE_CONTROL3(BluetoothMsg_GetCharacteristicsError,
180 int /* thread_id */,
181 int /* request_id */,
182 blink::WebBluetoothError /* result */)
183
184 // Messages sent from the renderer to the browser. 154 // Messages sent from the renderer to the browser.
185 155
186 // Requests a bluetooth device from the browser. 156 // Requests a bluetooth device from the browser.
187 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_RequestDevice, 157 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_RequestDevice,
188 int /* thread_id */, 158 int /* thread_id */,
189 int /* request_id */, 159 int /* request_id */,
190 int /* frame_routing_id */, 160 int /* frame_routing_id */,
191 std::vector<content::BluetoothScanFilter>, 161 std::vector<content::BluetoothScanFilter>,
192 std::vector<device::BluetoothUUID> /* optional_services */) 162 std::vector<device::BluetoothUUID> /* optional_services */)
193 163
(...skipping 10 matching lines...) Expand all
204 int /* frame_routing_id */, 174 int /* frame_routing_id */,
205 std::string /* device_id */) 175 std::string /* device_id */)
206 176
207 // Gets primary service from bluetooth device. 177 // Gets primary service from bluetooth device.
208 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetPrimaryService, 178 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetPrimaryService,
209 int /* thread_id */, 179 int /* thread_id */,
210 int /* request_id */, 180 int /* request_id */,
211 int /* frame_routing_id */, 181 int /* frame_routing_id */,
212 std::string /* device_id */, 182 std::string /* device_id */,
213 std::string /* service_uuid */) 183 std::string /* service_uuid */)
214
215 // Gets a GATT Characteristic within a GATT Service.
216 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetCharacteristic,
217 int /* thread_id */,
218 int /* request_id */,
219 int /* frame_routing_id */,
220 std::string /* service_instance_id */,
221 std::string /* characteristic_uuid */)
222
223 // Gets GATT Characteristics within a GATT Service.
224 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetCharacteristics,
225 int /* thread_id */,
226 int /* request_id */,
227 int /* frame_routing_id */,
228 std::string /* service_instance_id */,
229 std::string /* characteristics_uuid */)
OLDNEW
« no previous file with comments | « content/browser/bluetooth/web_bluetooth_service_impl.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698