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

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

Issue 1382743002: bluetooth: Add characteristicvaluechanged event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-notifications-1
Patch Set: Address tkent's comments Created 5 years, 2 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
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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 int /* thread_id */, 195 int /* thread_id */,
196 int /* request_id */, 196 int /* request_id */,
197 blink::WebBluetoothError) 197 blink::WebBluetoothError)
198 198
199 // Informs the renderer that the user has successfully unsubscribed from 199 // Informs the renderer that the user has successfully unsubscribed from
200 // notifications. 200 // notifications.
201 IPC_MESSAGE_CONTROL2(BluetoothMsg_StopNotificationsSuccess, 201 IPC_MESSAGE_CONTROL2(BluetoothMsg_StopNotificationsSuccess,
202 int /* thread_id */, 202 int /* thread_id */,
203 int /* request_id */) 203 int /* request_id */)
204 204
205 // Informs the renderer that a characteristic's value changed.
206 IPC_MESSAGE_CONTROL3(BluetoothMsg_CharacteristicValueChanged,
207 int /* thread_id */,
208 std::string /* characteristic_instance_id */,
209 std::vector<uint8_t> /* value */)
210
205 // Messages sent from the renderer to the browser. 211 // Messages sent from the renderer to the browser.
206 212
207 // Requests a bluetooth device from the browser. 213 // Requests a bluetooth device from the browser.
208 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_RequestDevice, 214 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_RequestDevice,
209 int /* thread_id */, 215 int /* thread_id */,
210 int /* request_id */, 216 int /* request_id */,
211 int /* frame_routing_id */, 217 int /* frame_routing_id */,
212 std::vector<content::BluetoothScanFilter>, 218 std::vector<content::BluetoothScanFilter>,
213 std::vector<device::BluetoothUUID> /* optional_services */) 219 std::vector<device::BluetoothUUID> /* optional_services */)
214 220
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_StartNotifications, 255 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_StartNotifications,
250 int /* thread_id */, 256 int /* thread_id */,
251 int /* request_id */, 257 int /* request_id */,
252 std::string /* characteristic_instance_id */) 258 std::string /* characteristic_instance_id */)
253 259
254 // Unsubscribes from notifications from a device's characteristic. 260 // Unsubscribes from notifications from a device's characteristic.
255 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_StopNotifications, 261 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_StopNotifications,
256 int /* thread_id */, 262 int /* thread_id */,
257 int /* request_id */, 263 int /* request_id */,
258 std::string /* characteristic_instance_id */) 264 std::string /* characteristic_instance_id */)
265
266 // Register to receive characteristic value changed events.
267 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RegisterCharacteristic,
268 int /* thread_id */,
269 std::string /* characteristics_instance_id */)
270
271 // Unregister from characteristic value changed events.
272 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_UnregisterCharacteristic,
273 int /* thread_id */,
274 std::string /* characteristics_instance_id */)
OLDNEW
« no previous file with comments | « content/browser/bluetooth/bluetooth_dispatcher_host.cc ('k') | content/renderer/bluetooth/bluetooth_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698