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

Unified Diff: device/bluetooth/bluetooth_device.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
« no previous file with comments | « device/bluetooth/bluetooth_bluez_unittest.cc ('k') | device/bluetooth/bluetooth_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device.h
diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h
index 0227037244894ce52c80755f159bafd3cbbcf739..2d7f4b96d6991375155559beb44fb2ee72ea7b53 100644
--- a/device/bluetooth/bluetooth_device.h
+++ b/device/bluetooth/bluetooth_device.h
@@ -30,7 +30,7 @@ namespace device {
class BluetoothAdapter;
class BluetoothGattConnection;
-class BluetoothGattService;
+class BluetoothRemoteGattService;
class BluetoothSocket;
class BluetoothUUID;
@@ -450,11 +450,11 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDevice {
virtual bool IsGattServicesDiscoveryComplete() const;
// Returns the list of discovered GATT services.
- virtual std::vector<BluetoothGattService*> GetGattServices() const;
+ virtual std::vector<BluetoothRemoteGattService*> GetGattServices() const;
// Returns the GATT service with device-specific identifier |identifier|.
// Returns NULL, if no such service exists.
- virtual BluetoothGattService* GetGattService(
+ virtual BluetoothRemoteGattService* GetGattService(
const std::string& identifier) const;
// Returns service data of a service given its UUID.
@@ -538,9 +538,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDevice {
std::set<BluetoothGattConnection*> gatt_connections_;
// Mapping from the platform-specific GATT service identifiers to
- // BluetoothGattService objects.
+ // BluetoothRemoteGattService objects.
typedef base::ScopedPtrHashMap<std::string,
- std::unique_ptr<BluetoothGattService>>
+ std::unique_ptr<BluetoothRemoteGattService>>
GattServiceMap;
GattServiceMap gatt_services_;
bool gatt_services_discovery_complete_;
« no previous file with comments | « device/bluetooth/bluetooth_bluez_unittest.cc ('k') | device/bluetooth/bluetooth_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698