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

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

Issue 1159523002: bluetooth: Browser side partial implementation of getPrimaryService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed order of gypi Created 5 years, 7 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/bluetooth_dispatcher_host.h
diff --git a/content/browser/bluetooth/bluetooth_dispatcher_host.h b/content/browser/bluetooth/bluetooth_dispatcher_host.h
index d2126c9a0a82645bf8c62a1d3e960f1f92804709..bd21686020a2766de0bc112530f90a71418f08c1 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: https://crbug.com/484504
+ 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_;
« no previous file with comments | « no previous file | content/browser/bluetooth/bluetooth_dispatcher_host.cc » ('j') | content/child/bluetooth/bluetooth_dispatcher.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698