summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/browser_context_keyed_service_factories.cc
diff options
context:
space:
mode:
authorarmansito@chromium.org <armansito@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-28 08:06:12 +0000
committerarmansito@chromium.org <armansito@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-28 08:06:12 +0000
commit4246cf873cd13565e3fbbe5e0ff037f7dd8a1922 (patch)
tree658d993697b7b193f536dd6ae50d658ee435a2a4 /chrome/browser/extensions/browser_context_keyed_service_factories.cc
parent3b92d8ee31bc364813da7703ed454f7d79fa3d98 (diff)
downloadchromium_src-4246cf873cd13565e3fbbe5e0ff037f7dd8a1922.zip
chromium_src-4246cf873cd13565e3fbbe5e0ff037f7dd8a1922.tar.gz
chromium_src-4246cf873cd13565e3fbbe5e0ff037f7dd8a1922.tar.bz2
chrome.bluetoothLowEnergy: Implement getService and getServices.
This patch implements the getService and getServices functions of the bluetoothLowEnergy API. The key changes introduced are: * BluetoothLowEnergyEventRouter, which tracks Observer events from the device/bluetooth API, maintains a mapping from instance IDs to the necessary metadata to look up a GATT object from the adapter, and handles basic logic such as conversion between device::BluetoothGatt* and extensions::api::bluetooth_low_energy::* objects and sending of API events. * Implementation of getService and getServices functions. * In browser unit tests for the above functions. BUG=265663 TEST=browser_tests --gtest_filter=BluetoothLowEnergyApiTest.*, device_unittests Review URL: https://codereview.chromium.org/256413003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266484 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/browser_context_keyed_service_factories.cc')
-rw-r--r--chrome/browser/extensions/browser_context_keyed_service_factories.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/extensions/browser_context_keyed_service_factories.cc b/chrome/browser/extensions/browser_context_keyed_service_factories.cc
index ef72634..8a79b26 100644
--- a/chrome/browser/extensions/browser_context_keyed_service_factories.cc
+++ b/chrome/browser/extensions/browser_context_keyed_service_factories.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/extensions/api/audio/audio_api.h"
#include "chrome/browser/extensions/api/bluetooth/bluetooth_api.h"
#include "chrome/browser/extensions/api/bluetooth/bluetooth_private_api.h"
+#include "chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h"
#include "chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.h"
#include "chrome/browser/extensions/api/bookmarks/bookmarks_api.h"
#include "chrome/browser/extensions/api/braille_display_private/braille_display_private_api.h"
@@ -90,6 +91,7 @@ void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
extensions::BookmarksAPI::GetFactoryInstance();
extensions::BookmarkManagerPrivateAPI::GetFactoryInstance();
extensions::BluetoothAPI::GetFactoryInstance();
+ extensions::BluetoothLowEnergyAPI::GetFactoryInstance();
extensions::BluetoothPrivateAPI::GetFactoryInstance();
extensions::BrailleDisplayPrivateAPI::GetFactoryInstance();
extensions::chromedirectsetting::ChromeDirectSettingAPI::GetFactoryInstance();