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

Issue 13862023: Add abstract BluetoothProfile class (Closed)

Created:
7 years, 8 months ago by keybuk
Modified:
7 years, 8 months ago
Reviewers:
youngki
CC:
chromium-reviews, sail+watch_chromium.org, bryeung
Visibility:
Public.

Description

Add abstract BluetoothProfile class This class will form the base of the 4.0 BR+LE compatible API, allowing for both incoming connections for profiles we're clients for and implementing services within Chrome. BUG=229636 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195280

Patch Set 1 #

Total comments: 15

Patch Set 2 : replace getter/setter functions with an Options structure #

Patch Set 3 : address remaining review comments #

Patch Set 4 : fix error in windows file #

Total comments: 3

Patch Set 5 : Add constructor and destructor for Options #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -1 line) Patch
M device/bluetooth/bluetooth_device.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_chromeos.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_chromeos.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_experimental_chromeos.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_experimental_chromeos.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_mac.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_mac.mm View 1 1 chunk +6 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_win.h View 1 chunk +3 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_win.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_profile.h View 1 2 1 chunk +99 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_profile.cc View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_device.h View 2 chunks +4 lines, -1 line 0 comments Download
M device/device.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
keybuk
youngki: as discussed in meeting, here's the proposed BluetoothProfile API. BluetoothProfileCompat would be implemented for ...
7 years, 8 months ago (2013-04-09 22:04:50 UTC) #1
youngki
https://chromiumcodereview.appspot.com/13862023/diff/1/device/bluetooth/bluetooth_profile.h File device/bluetooth/bluetooth_profile.h (right): https://chromiumcodereview.appspot.com/13862023/diff/1/device/bluetooth/bluetooth_profile.h#newcode52 device/bluetooth/bluetooth_profile.h:52: // guaranteed to hold a reference so this may ...
7 years, 8 months ago (2013-04-10 01:28:49 UTC) #2
youngki
https://chromiumcodereview.appspot.com/13862023/diff/1/device/bluetooth/bluetooth_profile.cc File device/bluetooth/bluetooth_profile.cc (right): https://chromiumcodereview.appspot.com/13862023/diff/1/device/bluetooth/bluetooth_profile.cc#newcode24 device/bluetooth/bluetooth_profile.cc:24: // subclass just like BluetoothAdapterFactory Are we going to ...
7 years, 8 months ago (2013-04-10 16:38:19 UTC) #3
youngki
lgtm
7 years, 8 months ago (2013-04-10 19:32:39 UTC) #4
youngki
On 2013/04/10 19:32:39, youngki wrote: > lgtm We discussed this offline. LGTM
7 years, 8 months ago (2013-04-10 19:32:54 UTC) #5
youngki
https://chromiumcodereview.appspot.com/13862023/diff/1/device/bluetooth/bluetooth_profile.h File device/bluetooth/bluetooth_profile.h (right): https://chromiumcodereview.appspot.com/13862023/diff/1/device/bluetooth/bluetooth_profile.h#newcode52 device/bluetooth/bluetooth_profile.h:52: // guaranteed to hold a reference so this may ...
7 years, 8 months ago (2013-04-10 19:39:04 UTC) #6
youngki
https://chromiumcodereview.appspot.com/13862023/diff/1/device/bluetooth/bluetooth_profile.cc File device/bluetooth/bluetooth_profile.cc (right): https://chromiumcodereview.appspot.com/13862023/diff/1/device/bluetooth/bluetooth_profile.cc#newcode16 device/bluetooth/bluetooth_profile.cc:16: How about calling Unregister() in the destructor? https://chromiumcodereview.appspot.com/13862023/diff/1/device/bluetooth/bluetooth_profile.h File ...
7 years, 8 months ago (2013-04-11 18:33:41 UTC) #7
keybuk
https://chromiumcodereview.appspot.com/13862023/diff/1/device/bluetooth/bluetooth_profile.cc File device/bluetooth/bluetooth_profile.cc (right): https://chromiumcodereview.appspot.com/13862023/diff/1/device/bluetooth/bluetooth_profile.cc#newcode16 device/bluetooth/bluetooth_profile.cc:16: On 2013/04/11 18:33:41, youngki wrote: > How about calling ...
7 years, 8 months ago (2013-04-17 22:38:35 UTC) #8
keybuk
ptal; this replaces the get/set methods with an Options struct as we discussed other review ...
7 years, 8 months ago (2013-04-17 22:39:29 UTC) #9
youngki
https://chromiumcodereview.appspot.com/13862023/diff/1/device/bluetooth/bluetooth_profile.h File device/bluetooth/bluetooth_profile.h (right): https://chromiumcodereview.appspot.com/13862023/diff/1/device/bluetooth/bluetooth_profile.h#newcode93 device/bluetooth/bluetooth_profile.h:93: virtual ~BluetoothProfile(); On 2013/04/17 22:38:35, keybuk wrote: > On ...
7 years, 8 months ago (2013-04-19 16:26:36 UTC) #10
keybuk
https://chromiumcodereview.appspot.com/13862023/diff/1/device/bluetooth/bluetooth_profile.h File device/bluetooth/bluetooth_profile.h (right): https://chromiumcodereview.appspot.com/13862023/diff/1/device/bluetooth/bluetooth_profile.h#newcode93 device/bluetooth/bluetooth_profile.h:93: virtual ~BluetoothProfile(); On 2013/04/19 16:26:36, youngki wrote: > On ...
7 years, 8 months ago (2013-04-19 17:58:18 UTC) #11
youngki
lgtm https://chromiumcodereview.appspot.com/13862023/diff/1/device/bluetooth/bluetooth_profile.h File device/bluetooth/bluetooth_profile.h (right): https://chromiumcodereview.appspot.com/13862023/diff/1/device/bluetooth/bluetooth_profile.h#newcode93 device/bluetooth/bluetooth_profile.h:93: virtual ~BluetoothProfile(); On 2013/04/19 17:58:18, keybuk wrote: > ...
7 years, 8 months ago (2013-04-19 18:20:39 UTC) #12
keybuk
Oh, and the other reason: I figured Unregister might actually be asynchronous on some platforms ...
7 years, 8 months ago (2013-04-19 18:22:32 UTC) #13
youngki
lgtm
7 years, 8 months ago (2013-04-19 18:23:35 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keybuk@chromium.org/13862023/28001
7 years, 8 months ago (2013-04-19 18:38:35 UTC) #15
commit-bot: I haz the power
7 years, 8 months ago (2013-04-19 21:07:22 UTC) #16
Message was sent while issue was closed.
Change committed as 195280

Powered by Google App Engine
This is Rietveld 408576698