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

Unified Diff: device/bluetooth/bluetooth_adapter.h

Issue 1920353002: Implement create attribute API functions for BTLE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@api_changes
Patch Set: owners 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
Index: device/bluetooth/bluetooth_adapter.h
diff --git a/device/bluetooth/bluetooth_adapter.h b/device/bluetooth/bluetooth_adapter.h
index a6df9c8341750825f69308f061d04a87219e12c0..a9224562426118cae2a0fa293fd8fef09dc7ae83 100644
--- a/device/bluetooth/bluetooth_adapter.h
+++ b/device/bluetooth/bluetooth_adapter.h
@@ -23,13 +23,13 @@
#include "device/bluetooth/bluetooth_audio_sink.h"
#include "device/bluetooth/bluetooth_device.h"
#include "device/bluetooth/bluetooth_export.h"
-#include "device/bluetooth/bluetooth_local_gatt_service.h"
namespace device {
class BluetoothAdvertisement;
class BluetoothDiscoveryFilter;
class BluetoothDiscoverySession;
+class BluetoothLocalGattService;
class BluetoothRemoteGattCharacteristic;
class BluetoothRemoteGattDescriptor;
class BluetoothRemoteGattService;
@@ -421,6 +421,11 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapter
const CreateAdvertisementCallback& callback,
const CreateAdvertisementErrorCallback& error_callback) = 0;
+ // Returns the local GATT services associated with this adapter with the
+ // given identifier. Returns NULL if the service doesn't exist.
+ virtual BluetoothLocalGattService* GetGattService(
+ const std::string& identifier) const = 0;
+
// The following methods are used to send various events to observers.
void NotifyAdapterStateChanged(bool powered);
#if defined(OS_CHROMEOS) || defined(OS_LINUX)

Powered by Google App Engine
This is Rietveld 408576698