diff options
author | armansito@chromium.org <armansito@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-08 05:18:28 +0000 |
---|---|---|
committer | armansito@chromium.org <armansito@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-08 05:18:28 +0000 |
commit | e65bc222634ed32194386ba1c0785cc93499309d (patch) | |
tree | ebba25c995609f5a1b0ef8ec62f2cefd2df433e1 /device/bluetooth/bluetooth_device_win.cc | |
parent | 05e5d16199f7c4c91e4024b6b7c2f2d9f8ace930 (diff) | |
download | chromium_src-e65bc222634ed32194386ba1c0785cc93499309d.zip chromium_src-e65bc222634ed32194386ba1c0785cc93499309d.tar.gz chromium_src-e65bc222634ed32194386ba1c0785cc93499309d.tar.bz2 |
device/bluetooth: Add chromeos::BluetoothRemoteGattServiceChromeOS.
Added the chromeos::BluetoothRemoteGattServiceChromeOS class which implements
a remote instance of device::BluetoothGattService for the Chrome OS
platform. This CL also introduces some minor changes to the GATT API,
namely removing the characteristic and descriptor Observer interfaces.
Addition, removal, and value changes of remote characteristics will instead
be tracked via BluetoothGattService::Observer.
BUG=360266,340529
TEST=device_unittests
Review URL: https://codereview.chromium.org/224953003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262327 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device/bluetooth/bluetooth_device_win.cc')
-rw-r--r-- | device/bluetooth/bluetooth_device_win.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/device/bluetooth/bluetooth_device_win.cc b/device/bluetooth/bluetooth_device_win.cc index 1834096..42d7fdd 100644 --- a/device/bluetooth/bluetooth_device_win.cc +++ b/device/bluetooth/bluetooth_device_win.cc @@ -69,6 +69,19 @@ void BluetoothDeviceWin::SetVisible(bool visible) { visible_ = visible; } +void BluetoothDeviceWin::AddObserver( + device::BluetoothDevice::Observer* observer) { + DCHECK(observer); + observers_.AddObserver(observer); +} + +void BluetoothDeviceWin::RemoveObserver( + device::BluetoothDevice::Observer* observer) { + DCHECK(observer); + observers_.RemoveObserver(observer); +} + + uint32 BluetoothDeviceWin::GetBluetoothClass() const { return bluetooth_class_; } |