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

Unified Diff: content/browser/bluetooth/web_bluetooth_service_impl.h

Issue 1865613002: bluetooth: Move read value to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-separate-tests-notifications
Patch Set: Merge Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/bluetooth/web_bluetooth_service_impl.h
diff --git a/content/browser/bluetooth/web_bluetooth_service_impl.h b/content/browser/bluetooth/web_bluetooth_service_impl.h
index 78994bd1d60a27868ca6349ca1d5aa99651e1597..e86821da00371755ccb0e7bac2aaa7c91e625e4f 100644
--- a/content/browser/bluetooth/web_bluetooth_service_impl.h
+++ b/content/browser/bluetooth/web_bluetooth_service_impl.h
@@ -77,6 +77,9 @@ class WebBluetoothServiceImpl : public blink::mojom::WebBluetoothService,
blink::mojom::WebBluetoothServiceClientAssociatedPtrInfo client) override;
// WebBluetoothService methods:
+ void RemoteCharacteristicReadValue(
+ const mojo::String& characteristic_instance_id,
+ const RemoteCharacteristicReadValueCallback& callback) override;
void RemoteCharacteristicWriteValue(
const mojo::String& characteristic_instance_id,
mojo::Array<uint8_t> value,
@@ -88,6 +91,12 @@ class WebBluetoothServiceImpl : public blink::mojom::WebBluetoothService,
const mojo::String& characteristic_instance_id,
const RemoteCharacteristicStopNotificationsCallback& callback) override;
+ // Callbacks for BluetoothGattCharacteristic::ReadRemoteCharacteristic.
+ void OnReadValueSuccess(const RemoteCharacteristicReadValueCallback& callback,
+ const std::vector<uint8_t>& value);
+ void OnReadValueFailed(
+ const RemoteCharacteristicReadValueCallback& callback,
+ device::BluetoothGattService::GattErrorCode error_code);
// Callbacks for BluetoothGattCharacteristic::WriteRemoteCharacteristic.
Jeffrey Yasskin 2016/04/15 20:59:35 Add a blank line between groups of callbacks.
ortuno 2016/04/15 21:34:07 Done.
void OnWriteValueSuccess(
const RemoteCharacteristicWriteValueCallback& callback);

Powered by Google App Engine
This is Rietveld 408576698