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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_service_chromeos.h

Issue 418483003: device/bluetooth: Move GATT observer methods to BluetoothAdapter::Observer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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_remote_gatt_service_chromeos.h
diff --git a/device/bluetooth/bluetooth_remote_gatt_service_chromeos.h b/device/bluetooth/bluetooth_remote_gatt_service_chromeos.h
index 600233dc51510d2687238b2744dc5c201d9d41a0..54bde8930fcfec7edc5fa5e614ffc5244473e383 100644
--- a/device/bluetooth/bluetooth_remote_gatt_service_chromeos.h
+++ b/device/bluetooth/bluetooth_remote_gatt_service_chromeos.h
@@ -40,10 +40,6 @@ class BluetoothRemoteGattServiceChromeOS
public BluetoothGattCharacteristicClient::Observer {
public:
// device::BluetoothGattService overrides.
- virtual void AddObserver(
- device::BluetoothGattService::Observer* observer) OVERRIDE;
- virtual void RemoveObserver(
- device::BluetoothGattService::Observer* observer) OVERRIDE;
virtual std::string GetIdentifier() const OVERRIDE;
virtual device::BluetoothUUID GetUUID() const OVERRIDE;
virtual bool IsLocal() const OVERRIDE;
@@ -68,7 +64,7 @@ class BluetoothRemoteGattServiceChromeOS
const dbus::ObjectPath& object_path() const { return object_path_; }
// Returns the adapter associated with this service.
- scoped_refptr<device::BluetoothAdapter> GetAdapter() const;
+ BluetoothAdapterChromeOS* GetAdapter() const;
// Notifies its observers that the GATT service has changed. This is mainly
// used by BluetoothRemoteGattCharacteristicChromeOS instances to notify
@@ -127,9 +123,6 @@ class BluetoothRemoteGattServiceChromeOS
// Object path of the GATT service.
dbus::ObjectPath object_path_;
- // List of observers interested in event notifications from us.
- ObserverList<device::BluetoothGattService::Observer> observers_;
-
// The adapter associated with this service. It's ok to store a raw pointer
// here since |adapter_| indirectly owns this instance.
BluetoothAdapterChromeOS* adapter_;

Powered by Google App Engine
This is Rietveld 408576698