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

Unified Diff: device/bluetooth/bluetooth_device_win.h

Issue 1606013002: BLE GATT service implementation in Chrome for Windows 8 and later (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Build.gn Created 4 years, 11 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_device_win.h
diff --git a/device/bluetooth/bluetooth_device_win.h b/device/bluetooth/bluetooth_device_win.h
index cd2106a49d736bc454d4c2098dc7377c778daa7e..0c6dc2e8db0e208acd6898834eca0432ab50d0e5 100644
--- a/device/bluetooth/bluetooth_device_win.h
+++ b/device/bluetooth/bluetooth_device_win.h
@@ -12,13 +12,13 @@
#include "base/macros.h"
#include "base/observer_list.h"
+#include "device/bluetooth/bluetooth_adapter_win.h"
#include "device/bluetooth/bluetooth_device.h"
#include "device/bluetooth/bluetooth_export.h"
#include "device/bluetooth/bluetooth_task_manager_win.h"
namespace device {
-class BluetoothAdapterWin;
class BluetoothServiceRecordWin;
class BluetoothSocketThread;
@@ -89,6 +89,10 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceWin : public BluetoothDevice {
// |device_state|.
void Update(const BluetoothTaskManagerWin::DeviceState& device_state);
+ const BluetoothAdapterWin* GetAdapter() {
+ return static_cast<BluetoothAdapterWin*>(adapter_);
+ }
+
protected:
// BluetoothDevice override
std::string GetDeviceName() const override;
@@ -97,6 +101,10 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceWin : public BluetoothDevice {
private:
friend class BluetoothAdapterWin;
+ friend class BluetoothDeviceWinTest;
+
+ void UpdateGattServices(
+ const BluetoothTaskManagerWin::DeviceState& device_state);
typedef ScopedVector<BluetoothServiceRecordWin> ServiceRecordList;

Powered by Google App Engine
This is Rietveld 408576698