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

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

Issue 1217983004: bluetooth: browser-side implementation of writeValue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-origin
Patch Set: Remove comment Created 5 years, 5 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
« no previous file with comments | « content/browser/bad_message.h ('k') | content/browser/bluetooth/bluetooth_dispatcher_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/bluetooth/bluetooth_dispatcher_host.h
diff --git a/content/browser/bluetooth/bluetooth_dispatcher_host.h b/content/browser/bluetooth/bluetooth_dispatcher_host.h
index 0e023828ce655efab003d30e6021baa5e929a16e..f448468bb7328ae35f03baa6a71b625789458311 100644
--- a/content/browser/bluetooth/bluetooth_dispatcher_host.h
+++ b/content/browser/bluetooth/bluetooth_dispatcher_host.h
@@ -77,6 +77,10 @@ class CONTENT_EXPORT BluetoothDispatcherHost final
void OnReadValue(int thread_id,
int request_id,
const std::string& characteristic_instance_id);
+ void OnWriteValue(int thread_id,
+ int request_id,
+ const std::string& characteristic_instance_id,
+ const std::vector<uint8_t>& value);
// Callbacks for BluetoothAdapter::StartDiscoverySession.
void OnDiscoverySessionStarted(
@@ -128,6 +132,12 @@ class CONTENT_EXPORT BluetoothDispatcherHost final
int request_id,
device::BluetoothGattService::GattErrorCode);
+ // Callbacks for BluetoothGattCharacteristic::WriteRemoteCharacteristic.
+ void OnWriteValueSuccess(int thread_id, int request_id);
+ void OnWriteValueFailed(int thread_id,
+ int request_id,
+ device::BluetoothGattService::GattErrorCode);
+
// Maps to get the object's parent based on it's instanceID
// Map of service_instance_id to device_instance_id.
std::map<std::string, std::string> service_to_device_;
« no previous file with comments | « content/browser/bad_message.h ('k') | content/browser/bluetooth/bluetooth_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698