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

Unified Diff: device/bluetooth/bluetooth_device.cc

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_device.h ('k') | device/bluetooth/bluetooth_device_bluez.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device.cc
diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc
index d62881b638a351dca6ef5a1dbb8c514a1a63e37a..7d37591f5ea21483e15af7ab315436d3e8a6e70e 100644
--- a/device/bluetooth/bluetooth_device.cc
+++ b/device/bluetooth/bluetooth_device.cc
@@ -14,7 +14,7 @@
#include "base/values.h"
#include "device/bluetooth/bluetooth_adapter.h"
#include "device/bluetooth/bluetooth_gatt_connection.h"
-#include "device/bluetooth/bluetooth_gatt_service.h"
+#include "device/bluetooth/bluetooth_remote_gatt_service.h"
#include "grit/bluetooth_strings.h"
#include "ui/base/l10n/l10n_util.h"
@@ -259,15 +259,15 @@ bool BluetoothDevice::IsGattServicesDiscoveryComplete() const {
return gatt_services_discovery_complete_;
}
-std::vector<BluetoothGattService*>
- BluetoothDevice::GetGattServices() const {
- std::vector<BluetoothGattService*> services;
+std::vector<BluetoothRemoteGattService*> BluetoothDevice::GetGattServices()
+ const {
+ std::vector<BluetoothRemoteGattService*> services;
for (const auto& iter : gatt_services_)
services.push_back(iter.second);
return services;
}
-BluetoothGattService* BluetoothDevice::GetGattService(
+BluetoothRemoteGattService* BluetoothDevice::GetGattService(
const std::string& identifier) const {
return gatt_services_.get(identifier);
}
« no previous file with comments | « device/bluetooth/bluetooth_device.h ('k') | device/bluetooth/bluetooth_device_bluez.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698