Chromium Code Reviews| 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 fff36712a7d6e60c3afb851c8b89d6359d6bd00b..d17ffb6c950c1b064ba40b4649661b9e8fa0bae0 100644 |
| --- a/content/browser/bluetooth/bluetooth_dispatcher_host.h |
| +++ b/content/browser/bluetooth/bluetooth_dispatcher_host.h |
| @@ -11,6 +11,7 @@ |
| #include "content/public/browser/browser_message_filter.h" |
| #include "device/bluetooth/bluetooth_adapter.h" |
| #include "device/bluetooth/bluetooth_gatt_connection.h" |
| +#include "device/bluetooth/bluetooth_gatt_service.h" |
| namespace content { |
| @@ -61,6 +62,9 @@ class CONTENT_EXPORT BluetoothDispatcherHost final |
| int request_id, |
| const std::string& service_instance_id, |
| const std::string& characteristic_uuid); |
| + void OnReadValue(int thread_id, |
| + int request_id, |
| + const std::string& characteristic_instance_id); |
| // Callbacks for BluetoothAdapter::StartDiscoverySession. |
| void OnDiscoverySessionStarted( |
| @@ -99,9 +103,20 @@ class CONTENT_EXPORT BluetoothDispatcherHost final |
| const std::string& device_instance_id, |
| const std::string& service_uuid); |
| + // Callbacks for BluetoothGattCharacteristic::ReadRemoteCharacteristic |
|
Jeffrey Yasskin
2015/06/10 21:03:45
Please end comments with punctuation.
ortuno
2015/06/10 22:03:01
Done.
|
| + void OnCharacteristicValueRead(int thread_id, |
| + int request_id, |
| + const std::vector<uint8>& value); |
| + void OnCharacteristicReadValueError( |
| + 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_; |
| + // Map of characteristic_instance_id to service_instance_id. |
| + std::map<std::string, std::string> characteristic_to_service_; |
| // Defines how long to scan for and how long to discover services for. |
| int current_delay_time_; |