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

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: Address jyasskin's comments 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..c8a8d81afcc9ac70806c4cb6b68417e487174151 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,13 @@ 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.
void OnWriteValueSuccess(
const RemoteCharacteristicWriteValueCallback& callback);
« no previous file with comments | « content/browser/bluetooth/bluetooth_dispatcher_host.cc ('k') | content/browser/bluetooth/web_bluetooth_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698