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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_service_win.h

Issue 1898643002: Refactor device::BluetoothGattXXX classes to split into remote/local. (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
Index: device/bluetooth/bluetooth_remote_gatt_service_win.h
diff --git a/device/bluetooth/bluetooth_remote_gatt_service_win.h b/device/bluetooth/bluetooth_remote_gatt_service_win.h
index c2822dde4f10d8ab51c0531917a7cec1ddc39ba1..8f6fa43b0573191460bc221d8c9b4d41616aca6b 100644
--- a/device/bluetooth/bluetooth_remote_gatt_service_win.h
+++ b/device/bluetooth/bluetooth_remote_gatt_service_win.h
@@ -11,8 +11,8 @@
#include "base/files/file.h"
#include "base/memory/weak_ptr.h"
#include "base/sequenced_task_runner.h"
-#include "device/bluetooth/bluetooth_gatt_service.h"
#include "device/bluetooth/bluetooth_low_energy_defs_win.h"
+#include "device/bluetooth/bluetooth_remote_gatt_service.h"
namespace device {
@@ -21,10 +21,10 @@ class BluetoothDeviceWin;
class BluetoothRemoteGattCharacteristicWin;
class BluetoothTaskManagerWin;
-// The BluetoothRemoteGattServiceWin class implements BluetoothGattService
+// The BluetoothRemoteGattServiceWin class implements BluetoothRemoteGattService
// for remote GATT services on Windows 8 and later.
class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattServiceWin
- : public BluetoothGattService {
+ : public BluetoothRemoteGattService {
public:
BluetoothRemoteGattServiceWin(
BluetoothDeviceWin* device,
@@ -36,22 +36,16 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattServiceWin
scoped_refptr<base::SequencedTaskRunner>& ui_task_runner);
~BluetoothRemoteGattServiceWin() override;
- // Override BluetoothGattService interfaces.
+ // Override BluetoothRemoteGattService interfaces.
std::string GetIdentifier() const override;
BluetoothUUID GetUUID() const override;
- bool IsLocal() const override;
bool IsPrimary() const override;
BluetoothDevice* GetDevice() const override;
- std::vector<BluetoothGattCharacteristic*> GetCharacteristics() const override;
- std::vector<BluetoothGattService*> GetIncludedServices() const override;
- BluetoothGattCharacteristic* GetCharacteristic(
+ std::vector<BluetoothRemoteGattCharacteristic*> GetCharacteristics()
+ const override;
+ std::vector<BluetoothRemoteGattService*> GetIncludedServices() const override;
+ BluetoothRemoteGattCharacteristic* GetCharacteristic(
const std::string& identifier) const override;
- bool AddCharacteristic(BluetoothGattCharacteristic* characteristic) override;
- bool AddIncludedService(BluetoothGattService* service) override;
- void Register(const base::Closure& callback,
- const ErrorCallback& error_callback) override;
- void Unregister(const base::Closure& callback,
- const ErrorCallback& error_callback) override;
// Notify |characteristic| discovery complete, |characteristic| is the
// included characteritic of this service.
« no previous file with comments | « device/bluetooth/bluetooth_remote_gatt_service_unittest.cc ('k') | device/bluetooth/bluetooth_remote_gatt_service_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698