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

Unified Diff: device/bluetooth/bluetooth_adapter.h

Issue 1165053003: Adding support for Low Energy device discovery to BluetoothAdapterMac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment fixes Created 5 years, 6 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 | « device/bluetooth/bluetooth.gyp ('k') | device/bluetooth/bluetooth_adapter_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter.h
diff --git a/device/bluetooth/bluetooth_adapter.h b/device/bluetooth/bluetooth_adapter.h
index 7c87eb835018f15fea211b56417618f81569f2a3..2a14e37532332564ca578527ad2cfeda4e802858 100644
--- a/device/bluetooth/bluetooth_adapter.h
+++ b/device/bluetooth/bluetooth_adapter.h
@@ -422,7 +422,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapter
// success.
//
// |discovery_filter| passed to AddDiscoverySession and RemoveDiscoverySession
- // is owned by other objects and shall not be freed.
+ // is owned by other objects and shall not be freed. When the count is
+ // greater than 0 and AddDiscoverySession or RemoveDiscoverySession is called
+ // the filter being used by the underlying controller must be updated.
//
// These methods invoke |callback| for success and |error_callback| for
// failures.
@@ -433,6 +435,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapter
BluetoothDiscoveryFilter* discovery_filter,
const base::Closure& callback,
const ErrorCallback& error_callback) = 0;
+
+ // Used to set and update the discovery filter used by the underlying
+ // Bluetooth controller.
virtual void SetDiscoveryFilter(
scoped_ptr<BluetoothDiscoveryFilter> discovery_filter,
const base::Closure& callback,
« no previous file with comments | « device/bluetooth/bluetooth.gyp ('k') | device/bluetooth/bluetooth_adapter_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698