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

Issue 1606013002: BLE GATT service implementation in Chrome for Windows 8 and later (Closed)

Created:
4 years, 11 months ago by gogerald
Modified:
4 years, 11 months ago
CC:
chromium-reviews, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

BLE GATT service implementation in Chrome for Windows 8 and later This CL implements Bluetooth low energy GATT service in Chrome for Windows. It implements BluetoothGattService, BluetoothGattCharacteristic, BluetoothGattDescriptor and so on. Right now, we can not programmatically pair Bluetooth device, but after manually bond the BLE device, Windows can auto reconnect to it when necessary (write/register notification). BUG=579202

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : reformat #

Patch Set 4 : add comments #

Patch Set 5 : #

Patch Set 6 : Update Build.gn #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+3033 lines, -169 lines) Patch
M device/bluetooth/BUILD.gn View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth.gyp View 2 chunks +8 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_win.h View 1 2 3 chunks +35 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter_win.cc View 2 chunks +87 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_device_win.h View 3 chunks +9 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_device_win.cc View 2 chunks +60 lines, -0 lines 2 comments Download
M device/bluetooth/bluetooth_device_win_unittest.cc View 4 chunks +87 lines, -5 lines 0 comments Download
A device/bluetooth/bluetooth_gatt_notify_session_win.h View 1 chunk +34 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_gatt_notify_session_win.cc View 1 chunk +33 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_win.h View 4 chunks +59 lines, -4 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_win.cc View 18 chunks +310 lines, -128 lines 0 comments Download
A device/bluetooth/bluetooth_remote_gatt_characteristic_win.h View 1 2 3 1 chunk +117 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc View 1 1 chunk +424 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_remote_gatt_characteristic_win_unittest.cc View 1 2 3 4 1 chunk +187 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_remote_gatt_descriptor_win.h View 1 2 3 1 chunk +75 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_remote_gatt_descriptor_win.cc View 1 2 1 chunk +170 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_remote_gatt_service_win.h View 1 chunk +114 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_remote_gatt_service_win.cc View 1 chunk +328 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_remote_gatt_service_win_unittest.cc View 1 2 3 4 1 chunk +274 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_task_manager_win.h View 1 2 5 chunks +146 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_task_manager_win.cc View 1 2 3 4 10 chunks +466 lines, -29 lines 0 comments Download
M device/device_tests.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (24 generated)
gogerald1
Hi Renaud, please help review this CL for implementing BLE GATT service in Chrome for ...
4 years, 11 months ago (2016-01-20 15:28:28 UTC) #20
rpaquay
On 2016/01/20 15:28:28, gogerald1 wrote: > Hi Renaud, please help review this CL for implementing ...
4 years, 11 months ago (2016-01-21 18:06:20 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1606013002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1606013002/100001
4 years, 11 months ago (2016-01-21 18:19:32 UTC) #24
ortuno
https://codereview.chromium.org/1606013002/diff/100001/device/bluetooth/bluetooth_device_win.cc File device/bluetooth/bluetooth_device_win.cc (right): https://codereview.chromium.org/1606013002/diff/100001/device/bluetooth/bluetooth_device_win.cc#newcode183 device/bluetooth/bluetooth_device_win.cc:183: void BluetoothDeviceWin::CreateGattConnection( I noticed you didn't implement CreateGattConnection or ...
4 years, 11 months ago (2016-01-21 19:00:42 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-21 19:27:17 UTC) #27
gogerald1
https://codereview.chromium.org/1606013002/diff/100001/device/bluetooth/bluetooth_device_win.cc File device/bluetooth/bluetooth_device_win.cc (right): https://codereview.chromium.org/1606013002/diff/100001/device/bluetooth/bluetooth_device_win.cc#newcode183 device/bluetooth/bluetooth_device_win.cc:183: void BluetoothDeviceWin::CreateGattConnection( On 2016/01/21 19:00:42, ortuno wrote: > I ...
4 years, 11 months ago (2016-01-21 20:00:20 UTC) #28
scheib
4 years, 11 months ago (2016-01-24 01:37:59 UTC) #31
As discussed over email/chat. 

Please split up the patch, for example into 
...
- basic service support
- BluetoothGattService::GetCharacteristics & stub BluetoothGattCharacteristic
(getUUID, properties etc)
- BluetoothGattCharacteristic read/writes
- BluetoothGattCharacteristic notify sessions
...
See examples in 
https://chromium.googlesource.com/chromium/src/+log/master/device/bluetooth/a...

The smaller patches will make review considerably faster and more effective at
finding issues.

Please use the cross platform testing fixture:
https://docs.google.com/document/d/1mBipxn1sJu6jMqP0RQZpkYXC1o601bzLCpCxwTA2y...

Powered by Google App Engine
This is Rietveld 408576698