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

Issue 278663002: Implement chrome.bluetoothSocket.listenUsing*() (Closed)

Created:
6 years, 7 months ago by keybuk
Modified:
6 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Implement chrome.bluetoothSocket.listenUsing*() Includes the C++ BluetoothAdapter and BluetoothSocket API changes, but does not include platform-specific implementations. Tests are included since there is sufficient mock code to drive a test. BUG=349475, 364581 TEST=browser_tests --gtest_filter=BluetoothSocketApiTest.Listen Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269814

Patch Set 1 #

Total comments: 10

Patch Set 2 : AcceptErrorCallback fixes #

Patch Set 3 : OnSocketResume cleanup #

Patch Set 4 : Fix BluetoothAdapterMac include typo #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+916 lines, -81 lines) Patch
M chrome/browser/extensions/api/bluetooth/bluetooth_api_socket.h View 5 chunks +23 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_api_socket.cc View 3 chunks +42 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.h View 1 chunk +89 lines, -12 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc View 2 chunks +187 lines, -15 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_apitest.cc View 1 chunk +58 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_dispatcher.h View 4 chunks +31 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc View 1 2 8 chunks +150 lines, -14 lines 0 comments Download
M chrome/common/extensions/api/bluetooth_socket.idl View 1 chunk +1 line, -3 lines 0 comments Download
A chrome/test/data/extensions/api_test/bluetooth_socket/listen/manifest.json View 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/bluetooth_socket/listen/runtest.js View 1 chunk +111 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter.h View 2 chunks +34 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.h View 1 chunk +11 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.cc View 2 chunks +23 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.h View 1 chunk +11 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.mm View 1 2 3 2 chunks +21 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_unittest.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_win.h View 1 chunk +11 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_win.cc View 2 chunks +21 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_socket.h View 3 chunks +13 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_socket_chromeos.h View 3 chunks +5 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_socket_chromeos.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_socket_mac.h View 1 chunk +3 lines, -0 lines 1 comment Download
M device/bluetooth/bluetooth_socket_mac.mm View 1 chunk +6 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_socket_net.h View 1 chunk +0 lines, -6 lines 0 comments Download
M device/bluetooth/bluetooth_socket_net.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M device/bluetooth/bluetooth_socket_win.h View 1 chunk +5 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_socket_win.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_adapter.h View 1 chunk +11 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_socket.h View 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
keybuk
armansito: for /bluetooth/ rpaquay: for API review and _win isherman: for _mac iserhman + miket: ...
6 years, 7 months ago (2014-05-08 21:50:24 UTC) #1
armansito
lgtm https://codereview.chromium.org/278663002/diff/1/chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc File chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc (right): https://codereview.chromium.org/278663002/diff/1/chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc#newcode48 chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc:48: if (socket->IsConnected()) Does IsConnected imply listening? https://codereview.chromium.org/278663002/diff/1/chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc File ...
6 years, 7 months ago (2014-05-08 22:00:15 UTC) #2
keybuk
https://codereview.chromium.org/278663002/diff/1/chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc File chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc (right): https://codereview.chromium.org/278663002/diff/1/chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc#newcode48 chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc:48: if (socket->IsConnected()) On 2014/05/08 22:00:16, armansito wrote: > Does ...
6 years, 7 months ago (2014-05-08 22:02:46 UTC) #3
armansito
https://codereview.chromium.org/278663002/diff/1/chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc File chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc (right): https://codereview.chromium.org/278663002/diff/1/chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc#newcode48 chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc:48: if (socket->IsConnected()) On 2014/05/08 22:02:46, keybuk wrote: > On ...
6 years, 7 months ago (2014-05-08 22:25:14 UTC) #4
keybuk
On 2014/05/08 22:25:14, armansito wrote: > OK. I commented on this because your previous comment ...
6 years, 7 months ago (2014-05-08 22:32:36 UTC) #5
armansito
On 2014/05/08 22:32:36, keybuk wrote: > On 2014/05/08 22:25:14, armansito wrote: > > > OK. ...
6 years, 7 months ago (2014-05-08 22:33:51 UTC) #6
rpaquay
lgtm https://codereview.chromium.org/278663002/diff/1/chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc File chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc (right): https://codereview.chromium.org/278663002/diff/1/chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc#newcode311 chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc:311: // This happens when resuming a socket which ...
6 years, 7 months ago (2014-05-09 16:09:52 UTC) #7
keybuk
https://codereview.chromium.org/278663002/diff/1/chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc File chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc (right): https://codereview.chromium.org/278663002/diff/1/chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc#newcode311 chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc:311: // This happens when resuming a socket which already ...
6 years, 7 months ago (2014-05-09 18:28:23 UTC) #8
Ilya Sherman
Mac changes lgtm. https://codereview.chromium.org/278663002/diff/60001/device/bluetooth/bluetooth_socket_mac.h File device/bluetooth/bluetooth_socket_mac.h (right): https://codereview.chromium.org/278663002/diff/60001/device/bluetooth/bluetooth_socket_mac.h#newcode65 device/bluetooth/bluetooth_socket_mac.h:65: const ErrorCompletionCallback& error_callback) OVERRIDE; This method ...
6 years, 7 months ago (2014-05-09 23:44:14 UTC) #9
keybuk
The CQ bit was checked by keybuk@chromium.org
6 years, 7 months ago (2014-05-09 23:44:50 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/278663002/60001
6 years, 7 months ago (2014-05-09 23:48:25 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-10 01:55:34 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-10 02:02:23 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/66967)
6 years, 7 months ago (2014-05-10 02:02:24 UTC) #14
keybuk
ah, missed LGTM from miket or kalman for IDL change
6 years, 7 months ago (2014-05-10 02:08:37 UTC) #15
not at google - send to devlin
lgtm
6 years, 7 months ago (2014-05-12 17:09:25 UTC) #16
keybuk
The CQ bit was checked by keybuk@chromium.org
6 years, 7 months ago (2014-05-12 17:10:01 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keybuk@chromium.org/278663002/60001
6 years, 7 months ago (2014-05-12 17:11:10 UTC) #18
commit-bot: I haz the power
6 years, 7 months ago (2014-05-12 18:09:55 UTC) #19
Message was sent while issue was closed.
Change committed as 269814

Powered by Google App Engine
This is Rietveld 408576698