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 d2126c9a0a82645bf8c62a1d3e960f1f92804709..964acd616043bcfe0a791aae1bd3c32fffa813c5 100644 |
| --- a/content/browser/bluetooth/bluetooth_dispatcher_host.h |
| +++ b/content/browser/bluetooth/bluetooth_dispatcher_host.h |
| @@ -53,6 +53,10 @@ class CONTENT_EXPORT BluetoothDispatcherHost final |
| void OnRequestDevice(int thread_id, int request_id); |
| void OnConnectGATT(int thread_id, int request_id, |
| const std::string& device_instance_id); |
| + void OnGetPrimaryService(int thread_id, |
| + int request_id, |
| + const std::string& device_instance_id, |
| + const std::string& service_uuid); |
| // Callbacks for BluetoothAdapter::StartDiscoverySession. |
| void OnDiscoverySessionStarted( |
| @@ -83,8 +87,16 @@ class CONTENT_EXPORT BluetoothDispatcherHost final |
| const std::string& device_instance_id, |
| device::BluetoothDevice::ConnectErrorCode error_code); |
| - // Defines how long to scan for. |
| - int current_scan_time_; |
| + // Callback for future BluetoothAdapter::ServicesDiscovered callback: |
| + // For now we just post a delayed task. |
| + // See: http://crbug.com/484504 |
|
Jeffrey Yasskin
2015/05/27 18:36:59
Nit: Link to https://...
ortuno
2015/05/27 21:07:45
Done. Someone should fix the extension so that it
|
| + void OnServicesDiscovered(int thread_id, |
| + int request_id, |
| + const std::string& device_instance_id, |
| + const std::string& service_uuid); |
| + |
| + // Defines how long to scan for and how long to discover services for. |
| + int current_delay_time_; |
| // A BluetoothAdapter instance representing an adapter of the system. |
| scoped_refptr<device::BluetoothAdapter> adapter_; |