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

Unified Diff: device/bluetooth/bluetooth_gatt_service.h

Issue 256413003: chrome.bluetoothLowEnergy: Implement getService and getServices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 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_device.h ('k') | device/bluetooth/bluetooth_remote_gatt_service_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_gatt_service.h
diff --git a/device/bluetooth/bluetooth_gatt_service.h b/device/bluetooth/bluetooth_gatt_service.h
index 94b7e3041eda17bad56960c2323a376848bbb083..346772e587d43ddf948dc3b693386211e736737d 100644
--- a/device/bluetooth/bluetooth_gatt_service.h
+++ b/device/bluetooth/bluetooth_gatt_service.h
@@ -13,6 +13,7 @@
namespace device {
+class BluetoothDevice;
class BluetoothGattCharacteristic;
class BluetoothGattDescriptor;
@@ -225,6 +226,10 @@ class BluetoothGattService {
// services.
virtual bool IsPrimary() const = 0;
+ // Returns the BluetoothDevice that this GATT service was received from, which
+ // also owns this service. Local services always return NULL.
+ virtual BluetoothDevice* GetDevice() const = 0;
+
// List of characteristics that belong to this service.
virtual std::vector<BluetoothGattCharacteristic*>
GetCharacteristics() const = 0;
@@ -236,7 +241,7 @@ class BluetoothGattService {
// Returns the GATT characteristic with identifier |identifier| if it belongs
// to this GATT service.
virtual BluetoothGattCharacteristic* GetCharacteristic(
- const std::string& identifier) = 0;
+ const std::string& identifier) const = 0;
// Adds characteristics and included services to the local attribute hierarchy
// represented by this service. These methods only make sense for local
« no previous file with comments | « device/bluetooth/bluetooth_device.h ('k') | device/bluetooth/bluetooth_remote_gatt_service_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698