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

Issue 267633003: Reimplement BluetoothSocketChromeOS (Closed)

Created:
6 years, 7 months ago by keybuk
Modified:
6 years, 7 months ago
CC:
chromium-reviews, Tim Song, xiyuan
Visibility:
Public.

Description

Reimplement BluetoothSocketChromeOS Since Chrome OS uses a socket-based interface much of the code already in BluetoothSocketWin is suitable. Separate out that common code into a new BluetoothSocketNet class and have both implementations derive from that class with their differing Connect implementations remaining separate. BUG=362613 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267804

Patch Set 1 #

Total comments: 13

Patch Set 2 : Review comments #1 #

Total comments: 6

Patch Set 3 : Review comments #2 #

Patch Set 4 : Not sure what's going on with std::queue<T>::swap() #

Patch Set 5 : Maybe try std::swap instead ? #

Patch Set 6 : An extra BluetoothSocketThreadWin crept in in another CL #

Patch Set 7 : Fix windows header #

Patch Set 8 : Got windows compiling, ship it #

Unified diffs Side-by-side diffs Delta from patch set Stats (+753 lines, -728 lines) Patch
M device/bluetooth/bluetooth.gyp View 1 chunk +4 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.h View 3 chunks +9 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.cc View 5 chunks +12 lines, -8 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_win.h View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_device_chromeos.h View 1 3 chunks +15 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_device_chromeos.cc View 3 chunks +8 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_device_win.h View 2 chunks +3 lines, -3 lines 0 comments Download
M device/bluetooth/bluetooth_device_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_device_win_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M device/bluetooth/bluetooth_profile.cc View 2 chunks +7 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_profile_chromeos.h View 5 chunks +25 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_profile_chromeos.cc View 1 2 3 chunks +39 lines, -5 lines 0 comments Download
M device/bluetooth/bluetooth_profile_win.h View 2 chunks +2 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_profile_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_socket.h View 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_socket_chromeos.h View 1 chunk +18 lines, -39 lines 0 comments Download
M device/bluetooth/bluetooth_socket_chromeos.cc View 1 chunk +66 lines, -154 lines 0 comments Download
A device/bluetooth/bluetooth_socket_net.h View 1 2 3 4 5 6 7 1 chunk +137 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_socket_net.cc View 1 2 3 4 1 chunk +333 lines, -0 lines 0 comments Download
A + device/bluetooth/bluetooth_socket_thread.h View 3 chunks +13 lines, -13 lines 0 comments Download
A + device/bluetooth/bluetooth_socket_thread.cc View 3 chunks +11 lines, -11 lines 0 comments Download
D device/bluetooth/bluetooth_socket_thread_win.h View 1 chunk +0 lines, -48 lines 0 comments Download
D device/bluetooth/bluetooth_socket_thread_win.cc View 1 chunk +0 lines, -66 lines 0 comments Download
M device/bluetooth/bluetooth_socket_win.h View 1 2 3 4 5 6 4 chunks +9 lines, -78 lines 0 comments Download
M device/bluetooth/bluetooth_socket_win.cc View 18 chunks +28 lines, -280 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_socket.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
keybuk
rpaquay: for _win changes isherman: for _mac changes armansito: for /bluetooth/
6 years, 7 months ago (2014-04-30 23:44:33 UTC) #1
Ilya Sherman
_mac changes LGTM with compilation fixed https://codereview.chromium.org/267633003/diff/1/device/bluetooth/bluetooth_socket_mac.mm File device/bluetooth/bluetooth_socket_mac.mm (right): https://codereview.chromium.org/267633003/diff/1/device/bluetooth/bluetooth_socket_mac.mm#newcode241 device/bluetooth/bluetooth_socket_mac.mm:241: callback.Run(); You should ...
6 years, 7 months ago (2014-04-30 23:57:42 UTC) #2
Ilya Sherman
/cc Xiyuan
6 years, 7 months ago (2014-04-30 23:58:40 UTC) #3
armansito
https://codereview.chromium.org/267633003/diff/1/device/bluetooth/bluetooth_device_chromeos.h File device/bluetooth/bluetooth_device_chromeos.h (right): https://codereview.chromium.org/267633003/diff/1/device/bluetooth/bluetooth_device_chromeos.h#newcode102 device/bluetooth/bluetooth_device_chromeos.h:102: scoped_refptr<base::SequencedTaskRunner> ui_task_runner_, Shouldn't have underscores at the end of ...
6 years, 7 months ago (2014-05-01 00:14:25 UTC) #4
keybuk
https://codereview.chromium.org/267633003/diff/1/device/bluetooth/bluetooth_device_chromeos.h File device/bluetooth/bluetooth_device_chromeos.h (right): https://codereview.chromium.org/267633003/diff/1/device/bluetooth/bluetooth_device_chromeos.h#newcode102 device/bluetooth/bluetooth_device_chromeos.h:102: scoped_refptr<base::SequencedTaskRunner> ui_task_runner_, On 2014/05/01 00:14:25, armansito wrote: > Shouldn't ...
6 years, 7 months ago (2014-05-01 00:24:09 UTC) #5
armansito
lgtm https://codereview.chromium.org/267633003/diff/1/device/bluetooth/bluetooth_socket_net.cc File device/bluetooth/bluetooth_socket_net.cc (right): https://codereview.chromium.org/267633003/diff/1/device/bluetooth/bluetooth_socket_net.cc#newcode127 device/bluetooth/bluetooth_socket_net.cc:127: void BluetoothSocketNet::ResetData() { On 2014/05/01 00:24:09, keybuk wrote: ...
6 years, 7 months ago (2014-05-01 00:54:17 UTC) #6
rpaquay
https://codereview.chromium.org/267633003/diff/10001/device/bluetooth/bluetooth_profile_chromeos.cc File device/bluetooth/bluetooth_profile_chromeos.cc (right): https://codereview.chromium.org/267633003/diff/10001/device/bluetooth/bluetooth_profile_chromeos.cc#newcode310 device/bluetooth/bluetooth_profile_chromeos.cc:310: VLOG(1) << object_path_.value() << ": Profile connection complete"; |callback| ...
6 years, 7 months ago (2014-05-01 15:23:58 UTC) #7
keybuk
https://codereview.chromium.org/267633003/diff/10001/device/bluetooth/bluetooth_profile_chromeos.cc File device/bluetooth/bluetooth_profile_chromeos.cc (right): https://codereview.chromium.org/267633003/diff/10001/device/bluetooth/bluetooth_profile_chromeos.cc#newcode310 device/bluetooth/bluetooth_profile_chromeos.cc:310: VLOG(1) << object_path_.value() << ": Profile connection complete"; On ...
6 years, 7 months ago (2014-05-01 18:07:15 UTC) #8
rpaquay
lgtm
6 years, 7 months ago (2014-05-01 18:54:24 UTC) #9
keybuk
The CQ bit was checked by keybuk@chromium.org
6 years, 7 months ago (2014-05-02 00:45:39 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keybuk@chromium.org/267633003/120001
6 years, 7 months ago (2014-05-02 00:46:29 UTC) #11
commit-bot: I haz the power
6 years, 7 months ago (2014-05-02 16:07:33 UTC) #12
Message was sent while issue was closed.
Change committed as 267804

Powered by Google App Engine
This is Rietveld 408576698