diff options
author | armansito@chromium.org <armansito@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-28 01:43:48 +0000 |
---|---|---|
committer | armansito@chromium.org <armansito@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-28 01:43:48 +0000 |
commit | 184a2e7847020fca1bd038bbbc65ed26d9f2609f (patch) | |
tree | d5d3a35390e91be6c40cdad7c72993f893f343ca /extensions/browser | |
parent | aa22ab042e9586fd22dd142e7262751931ebed7e (diff) | |
download | chromium_src-184a2e7847020fca1bd038bbbc65ed26d9f2609f.zip chromium_src-184a2e7847020fca1bd038bbbc65ed26d9f2609f.tar.gz chromium_src-184a2e7847020fca1bd038bbbc65ed26d9f2609f.tar.bz2 |
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
Diffstat (limited to 'extensions/browser')
-rw-r--r-- | extensions/browser/extension_function_histogram_value.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/browser/extension_function_histogram_value.h b/extensions/browser/extension_function_histogram_value.h index bb15481..2d87e95 100644 --- a/extensions/browser/extension_function_histogram_value.h +++ b/extensions/browser/extension_function_histogram_value.h @@ -879,6 +879,8 @@ enum HistogramValue { WEBVIEWINTERNAL_STOP, WEBVIEWINTERNAL_STOPFINDING, WEBVIEWINTERNAL_TERMINATE, + BLUETOOTHLOWENERGY_STARTCHARACTERISTICNOTIFICATIONS, + BLUETOOTHLOWENERGY_STOPCHARACTERISTICNOTIFICATIONS, // Last entry: Add new entries above and ensure to update // tools/metrics/histograms/histograms/histograms.xml. ENUM_BOUNDARY |