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

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

Issue 2654403002: Implement WebBluetooth descriptor.writeValue() (Closed)
Patch Set: #4 Created 3 years, 11 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 c8a4c590726844bb6fb92ca659fe42af7a45c7fa..21660329d44778147a769d2eaf542e25bbcf7e69 100644
--- a/content/browser/bluetooth/web_bluetooth_service_impl.h
+++ b/content/browser/bluetooth/web_bluetooth_service_impl.h
@@ -136,6 +136,10 @@ class CONTENT_EXPORT WebBluetoothServiceImpl
void RemoteDescriptorReadValue(
const std::string& characteristic_instance_id,
const RemoteDescriptorReadValueCallback& callback) override;
+ void RemoteDescriptorWriteValue(
+ const std::string& descriptor_instance_id,
+ const std::vector<uint8_t>& value,
+ const RemoteDescriptorWriteValueCallback& callback) override;
void RequestDeviceImpl(
blink::mojom::WebBluetoothRequestDeviceOptionsPtr options,
@@ -206,6 +210,13 @@ class CONTENT_EXPORT WebBluetoothServiceImpl
const RemoteDescriptorReadValueCallback& callback,
device::BluetoothRemoteGattService::GattErrorCode error_code);
+ // Callbacks for BluetoothRemoteGattDescriptor::WriteRemoteDescriptor.
+ void OnDescriptorWriteValueSuccess(
+ const RemoteDescriptorWriteValueCallback& callback);
+ void OnDescriptorWriteValueFailed(
+ const RemoteDescriptorWriteValueCallback& callback,
+ device::BluetoothRemoteGattService::GattErrorCode error_code);
+
// Functions to query the platform cache for the bluetooth object.
// result.outcome == CacheQueryOutcome::SUCCESS if the object was found in the
// cache. Otherwise result.outcome that can used to record the outcome and
« no previous file with comments | « content/browser/bluetooth/bluetooth_metrics.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