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

Unified Diff: device/bluetooth/bluetooth_local_gatt_service.cc

Issue 1920693002: Complete //device/bt implementation for hosting local GATT attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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_local_gatt_service.h ('k') | device/bluetooth/bluez/bluetooth_adapter_bluez.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_local_gatt_service.cc
diff --git a/device/bluetooth/bluetooth_local_gatt_service.cc b/device/bluetooth/bluetooth_local_gatt_service.cc
index 17e43ac2df263d2adf75f0edfa94803d867a2db1..8efb4bdc8137d9e157ca239eb3d13cd71657055c 100644
--- a/device/bluetooth/bluetooth_local_gatt_service.cc
+++ b/device/bluetooth/bluetooth_local_gatt_service.cc
@@ -4,8 +4,28 @@
#include "device/bluetooth/bluetooth_local_gatt_service.h"
+#if defined(OS_CHROMEOS) || defined(OS_LINUX)
+#include "device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h"
+#endif
+
namespace device {
+// static
+base::WeakPtr<BluetoothLocalGattService> BluetoothLocalGattService::Create(
+ BluetoothAdapter* adapter,
+ const BluetoothUUID& uuid,
+ bool is_primary,
+ BluetoothLocalGattService* included_service,
+ BluetoothLocalGattService::Delegate* delegate) {
+#if defined(OS_CHROMEOS) || defined(OS_LINUX)
+ return bluez::BluetoothLocalGattServiceBlueZ::Create(
+ adapter, uuid, is_primary, included_service, delegate);
+#else
+ NOTIMPLEMENTED();
+ return nullptr;
+#endif
+}
+
BluetoothLocalGattService::BluetoothLocalGattService() {}
BluetoothLocalGattService::~BluetoothLocalGattService() {}
« no previous file with comments | « device/bluetooth/bluetooth_local_gatt_service.h ('k') | device/bluetooth/bluez/bluetooth_adapter_bluez.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698