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

Issue 1872943002: Add support for local services/characteristics/descriptors. (Closed)

Created:
4 years, 8 months ago by rkc
Modified:
4 years, 8 months ago
Reviewers:
Lei Zhang, scheib, ortuno
CC:
chromium-reviews, ortuno+watch_chromium.org, puthik_chromium, 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

Add support for local services/characteristics/descriptors. We currently only support remote services, characteristics and descriptors. This prevents us from implementing GATT server support. This CL refactors the current code to allow us to have remote and local versions of these attributes. BluetoothGattDescriptors wasn't refactored into multiple classes since the only difference between local and remote was one flag. In the future, we might even remove this flag (at the moment it doesn't seem to have any purpose). R=scheib@chromium.org BUG=601935 Committed: https://crrev.com/4e63c0523e9e45a715f00371bbee0e93b95516c0 Cr-Commit-Position: refs/heads/master@{#387516}

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 96

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+838 lines, -547 lines) Patch
M device/bluetooth/BUILD.gn View 1 1 chunk +10 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth.gyp View 1 2 3 4 5 1 chunk +10 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_bluez.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_bluez.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M device/bluetooth/bluetooth_device_bluez.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
A device/bluetooth/bluetooth_gatt_characteristic_bluez.h View 1 2 3 4 5 6 1 chunk +79 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_gatt_characteristic_bluez.cc View 1 2 3 4 5 1 chunk +54 lines, -0 lines 0 comments Download
A + device/bluetooth/bluetooth_gatt_descriptor_bluez.h View 1 4 chunks +18 lines, -16 lines 0 comments Download
A + device/bluetooth/bluetooth_gatt_descriptor_bluez.cc View 1 2 3 4 5 6 chunks +30 lines, -24 lines 0 comments Download
M device/bluetooth/bluetooth_gatt_service.h View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
A device/bluetooth/bluetooth_gatt_service_bluez.h View 1 2 3 4 5 6 1 chunk +81 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_gatt_service_bluez.cc View 1 2 3 4 5 1 chunk +91 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_local_gatt_characteristic_bluez.h View 1 2 3 4 5 1 chunk +68 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_local_gatt_characteristic_bluez.cc View 1 2 3 4 5 6 1 chunk +91 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_local_gatt_service_bluez.h View 1 2 3 4 5 1 chunk +69 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_local_gatt_service_bluez.cc View 1 2 3 4 5 1 chunk +92 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_bluez.h View 1 2 3 4 5 6 chunks +14 lines, -37 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_bluez.cc View 1 2 3 4 5 18 chunks +72 lines, -99 lines 0 comments Download
D device/bluetooth/bluetooth_remote_gatt_descriptor_bluez.h View 1 chunk +0 lines, -81 lines 0 comments Download
D device/bluetooth/bluetooth_remote_gatt_descriptor_bluez.cc View 1 chunk +0 lines, -124 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_service_android.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_service_bluez.h View 1 2 3 4 5 7 chunks +9 lines, -44 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_service_bluez.cc View 1 2 3 4 5 11 chunks +39 lines, -104 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_service_win.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 43 (14 generated)
rkc
4 years, 8 months ago (2016-04-08 21:44:13 UTC) #1
scheib
I'll give this a closer look Monday -- but want to raise a testing topic. ...
4 years, 8 months ago (2016-04-10 04:15:46 UTC) #2
scheib
On 2016/04/10 04:15:46, scheib wrote: > I'll give this a closer look Monday -- but ...
4 years, 8 months ago (2016-04-11 23:36:06 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1872943002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1872943002/1
4 years, 8 months ago (2016-04-12 15:04:11 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/49149) ios_dbg_simulator_gn on ...
4 years, 8 months ago (2016-04-12 15:06:27 UTC) #7
scheib
https://codereview.chromium.org/1872943002/diff/1/device/bluetooth/bluetooth_gatt_descriptor_bluez.h File device/bluetooth/bluetooth_gatt_descriptor_bluez.h (right): https://codereview.chromium.org/1872943002/diff/1/device/bluetooth/bluetooth_gatt_descriptor_bluez.h#newcode30 device/bluetooth/bluetooth_gatt_descriptor_bluez.h:30: // BluetoothGattDescriptor for remote GATT characteristic descriptors for remote ...
4 years, 8 months ago (2016-04-12 18:05:46 UTC) #8
ortuno
Also please run git cl try before sending out for review. https://codereview.chromium.org/1872943002/diff/1/device/bluetooth/bluetooth_gatt_characteristic_bluez.cc File device/bluetooth/bluetooth_gatt_characteristic_bluez.cc (right): ...
4 years, 8 months ago (2016-04-13 14:40:27 UTC) #9
rkc
@Giovanni: I was going to, but someone beat me to it! :) https://codereview.chromium.org/1872943002/diff/1/device/bluetooth/bluetooth_gatt_characteristic_bluez.cc File device/bluetooth/bluetooth_gatt_characteristic_bluez.cc ...
4 years, 8 months ago (2016-04-13 22:47:25 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1872943002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1872943002/20001
4 years, 8 months ago (2016-04-13 22:48:20 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/53397)
4 years, 8 months ago (2016-04-13 23:03:29 UTC) #14
scheib
https://codereview.chromium.org/1872943002/diff/20001/device/bluetooth/bluetooth_gatt_characteristic_bluez.h File device/bluetooth/bluetooth_gatt_characteristic_bluez.h (right): https://codereview.chromium.org/1872943002/diff/20001/device/bluetooth/bluetooth_gatt_characteristic_bluez.h#newcode67 device/bluetooth/bluetooth_gatt_characteristic_bluez.h:67: friend class BluetoothRemoteGattServiceBlueZ; Instead of friending, just make the ...
4 years, 8 months ago (2016-04-13 23:06:28 UTC) #15
rkc
Fixed the build errors, I think :) https://codereview.chromium.org/1872943002/diff/20001/device/bluetooth/bluetooth_gatt_characteristic_bluez.h File device/bluetooth/bluetooth_gatt_characteristic_bluez.h (right): https://codereview.chromium.org/1872943002/diff/20001/device/bluetooth/bluetooth_gatt_characteristic_bluez.h#newcode67 device/bluetooth/bluetooth_gatt_characteristic_bluez.h:67: friend class ...
4 years, 8 months ago (2016-04-14 00:23:49 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1872943002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1872943002/60001
4 years, 8 months ago (2016-04-14 00:24:34 UTC) #18
scheib
LGTM
4 years, 8 months ago (2016-04-14 00:58:11 UTC) #19
chromium-reviews
Please wait for my review On Wed, Apr 13, 2016, 5:58 PM <scheib@chromium.org> wrote: > ...
4 years, 8 months ago (2016-04-14 01:06:02 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/145666)
4 years, 8 months ago (2016-04-14 01:15:12 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/1872943002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1872943002/80001
4 years, 8 months ago (2016-04-14 03:31:45 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-14 05:48:54 UTC) #26
ortuno
https://codereview.chromium.org/1872943002/diff/80001/device/bluetooth/bluetooth.gyp File device/bluetooth/bluetooth.gyp (right): https://codereview.chromium.org/1872943002/diff/80001/device/bluetooth/bluetooth.gyp#newcode143 device/bluetooth/bluetooth.gyp:143: 'bluetooth_gatt_characteristic_bluez.cc', The indentation seems wrong? Or is it just ...
4 years, 8 months ago (2016-04-14 17:42:36 UTC) #27
rkc
https://codereview.chromium.org/1872943002/diff/80001/device/bluetooth/bluetooth.gyp File device/bluetooth/bluetooth.gyp (right): https://codereview.chromium.org/1872943002/diff/80001/device/bluetooth/bluetooth.gyp#newcode143 device/bluetooth/bluetooth.gyp:143: 'bluetooth_gatt_characteristic_bluez.cc', On 2016/04/14 17:42:34, ortuno wrote: > The indentation ...
4 years, 8 months ago (2016-04-14 19:27:28 UTC) #28
ortuno
lgtm bar a couple of comments. https://codereview.chromium.org/1872943002/diff/80001/device/bluetooth/bluetooth.gyp File device/bluetooth/bluetooth.gyp (right): https://codereview.chromium.org/1872943002/diff/80001/device/bluetooth/bluetooth.gyp#newcode143 device/bluetooth/bluetooth.gyp:143: 'bluetooth_gatt_characteristic_bluez.cc', On 2016/04/14 ...
4 years, 8 months ago (2016-04-14 21:17:38 UTC) #29
rkc
https://codereview.chromium.org/1872943002/diff/80001/device/bluetooth/bluetooth.gyp File device/bluetooth/bluetooth.gyp (right): https://codereview.chromium.org/1872943002/diff/80001/device/bluetooth/bluetooth.gyp#newcode143 device/bluetooth/bluetooth.gyp:143: 'bluetooth_gatt_characteristic_bluez.cc', On 2016/04/14 21:17:37, ortuno wrote: > On 2016/04/14 ...
4 years, 8 months ago (2016-04-14 21:59:38 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1872943002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1872943002/120001
4 years, 8 months ago (2016-04-14 22:00:49 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/122082) linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 8 months ago (2016-04-14 22:13:55 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1872943002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1872943002/120001
4 years, 8 months ago (2016-04-14 23:00:15 UTC) #37
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 8 months ago (2016-04-15 01:53:26 UTC) #38
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/4e63c0523e9e45a715f00371bbee0e93b95516c0 Cr-Commit-Position: refs/heads/master@{#387516}
4 years, 8 months ago (2016-04-15 01:54:28 UTC) #40
Lei Zhang
This CL added static initializers and made https://build.chromium.org/p/chromium/builders/Linux%20x64/builds/18235 go red. I think it's because you ...
4 years, 8 months ago (2016-04-15 06:35:39 UTC) #42
Lei Zhang
4 years, 8 months ago (2016-04-15 06:49:07 UTC) #43
Message was sent while issue was closed.
On 2016/04/15 06:35:39, Lei Zhang wrote:
> This CL added static initializers and made
> https://build.chromium.org/p/chromium/builders/Linux%20x64/builds/18235 go
red.
> I think it's because you included iostream.

https://codereview.chromium.org/1893553002

Powered by Google App Engine
This is Rietveld 408576698