From 184a2e7847020fca1bd038bbbc65ed26d9f2609f Mon Sep 17 00:00:00 2001 From: "armansito@chromium.org" Date: Sat, 28 Jun 2014 01:43:48 +0000 Subject: bluetoothLowEnergy: Add functions to start/stop characteristic notifications. This CL adds the startCharacteristicNotifications and stopCharacteristicNotifications functions to the chrome.bluetoothLowEnergy API. These changes the API behavior from automatically getting characteristic value notifications to explicitly having to enable them by calling the new API method. Internally an API resource is created for each app on a per-characteristic basis, managing the life-time of a device::BluetoothGattNotifySession object. Notifications are physically enabled/disabled and shared among apps using session objects. BUG=387989 TEST=browser_tests --gtest_filter=BluetoothLowEnergyApiTest.* Review URL: https://codereview.chromium.org/351123002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280477 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/chrome_browser_extensions.gypi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chrome/chrome_browser_extensions.gypi') diff --git a/chrome/chrome_browser_extensions.gypi b/chrome/chrome_browser_extensions.gypi index 3fc3065..85497de 100644 --- a/chrome/chrome_browser_extensions.gypi +++ b/chrome/chrome_browser_extensions.gypi @@ -177,6 +177,8 @@ 'browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.h', 'browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc', 'browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h', + 'browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.cc', + 'browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h', 'browser/extensions/api/bluetooth_low_energy/utils.cc', 'browser/extensions/api/bluetooth_low_energy/utils.h', 'browser/extensions/api/bluetooth_socket/bluetooth_api_socket.h', -- cgit v1.1