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

Issue 610633002: Prototype for copresenceSockets. (Closed)

Created:
6 years, 2 months ago by rkc
Modified:
6 years, 2 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Prototype for copresenceSockets. This is the prototype implementation of the chrome.copresenceSocket API. This CL adds the API and the copresence_sockets component (which is a currently a thin wrapper around the bluetooth APIs). Only the receive parts of the code have been implemented with this CL. Reviews requested, rockot@ - Extension parts armansito@ - BT parts caitkp@ - Owners review for components BUG=418615 Committed: https://crrev.com/a3e8914682cb7e046b5a76e93c053f070ea25a0b Cr-Commit-Position: refs/heads/master@{#298577}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 38

Patch Set 4 : #

Total comments: 38

Patch Set 5 : #

Patch Set 6 : #

Total comments: 8

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : merge #

Patch Set 10 : gn fix #

Patch Set 11 : moar build fixes #

Patch Set 12 : format specifiers build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+964 lines, --1 lines) Patch
A chrome/common/extensions/docs/templates/public/apps/copresenceSocket.html View 1 chunk +1 line, -0 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -1 line 0 comments Download
M components/OWNERS View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
A components/copresence_sockets.gypi View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
A components/copresence_sockets/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +19 lines, -0 lines 0 comments Download
A + components/copresence_sockets/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A + components/copresence_sockets/OWNERS View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A components/copresence_sockets/copresence_peer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +157 lines, -0 lines 0 comments Download
A components/copresence_sockets/public/copresence_peer.h View 1 2 3 4 1 chunk +81 lines, -0 lines 0 comments Download
A components/copresence_sockets/public/copresence_socket.h View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download
A components/copresence_sockets/transports/bluetooth/copresence_socket_bluetooth.h View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download
A components/copresence_sockets/transports/bluetooth/copresence_socket_bluetooth.cc View 1 2 3 4 1 chunk +74 lines, -0 lines 0 comments Download
M extensions/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
A extensions/browser/api/copresence_socket/DEPS View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A + extensions/browser/api/copresence_socket/OWNERS View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A extensions/browser/api/copresence_socket/copresence_socket_api.h View 1 2 3 4 1 chunk +120 lines, -0 lines 0 comments Download
A extensions/browser/api/copresence_socket/copresence_socket_api.cc View 1 2 3 4 1 chunk +222 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/common/api/_api_features.json View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
A extensions/common/api/copresence_socket.idl View 1 2 3 4 1 chunk +135 lines, -0 lines 0 comments Download
M extensions/common/api/schemas.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (13 generated)
rkc
This is just the prototype implementation. As we decide the details of the protocol between ...
6 years, 2 months ago (2014-09-30 01:03:25 UTC) #2
Ken Rockot(use gerrit already)
lgtm with some optional nits. https://codereview.chromium.org/610633002/diff/40001/components/copresence_sockets.gypi File components/copresence_sockets.gypi (right): https://codereview.chromium.org/610633002/diff/40001/components/copresence_sockets.gypi#newcode19 components/copresence_sockets.gypi:19: # Note: sources list ...
6 years, 2 months ago (2014-09-30 17:26:05 UTC) #3
Cait (Slow)
A few comments inline. Also, consider adding a couple basic tests to make sure all ...
6 years, 2 months ago (2014-09-30 17:56:02 UTC) #4
armansito
First round of comments. https://codereview.chromium.org/610633002/diff/40001/components/copresence_sockets/copresence_peer.cc File components/copresence_sockets/copresence_peer.cc (right): https://codereview.chromium.org/610633002/diff/40001/components/copresence_sockets/copresence_peer.cc#newcode68 components/copresence_sockets/copresence_peer.cc:68: accept_callback_(accept_callback), It looks like |accept_callback_| ...
6 years, 2 months ago (2014-09-30 20:37:58 UTC) #5
rkc
Adding rsleevi for adding //net deps and isherman for extension_function_histogram.h https://codereview.chromium.org/610633002/diff/40001/components/copresence_sockets.gypi File components/copresence_sockets.gypi (right): https://codereview.chromium.org/610633002/diff/40001/components/copresence_sockets.gypi#newcode19 ...
6 years, 2 months ago (2014-10-01 19:08:24 UTC) #7
Ilya Sherman
Please run the script to update histograms.xml.
6 years, 2 months ago (2014-10-01 19:27:38 UTC) #8
Ryan Sleevi
As this is a new socket API (effectively), I have attempted to carefully review this ...
6 years, 2 months ago (2014-10-01 19:47:26 UTC) #9
rkc
Edited histograms.xml by hand. Where is the script that does this automatically? (Adding brettw@ for ...
6 years, 2 months ago (2014-10-01 22:38:49 UTC) #11
Ryan Sleevi
I'm still a little shaky on the sync vs async on send/receive, but you've resolved ...
6 years, 2 months ago (2014-10-01 23:38:32 UTC) #12
Ilya Sherman
On 2014/10/01 22:38:49, Rahul Chaturvedi wrote: > Edited histograms.xml by hand. Where is the script ...
6 years, 2 months ago (2014-10-02 00:23:21 UTC) #13
Cait (Slow)
components/ changes LGTM as far as style and respecting layering/DEPs rules. I'll defer to those ...
6 years, 2 months ago (2014-10-02 16:41:21 UTC) #14
armansito
https://codereview.chromium.org/610633002/diff/100001/components/copresence_sockets/copresence_peer.cc File components/copresence_sockets/copresence_peer.cc (right): https://codereview.chromium.org/610633002/diff/100001/components/copresence_sockets/copresence_peer.cc#newcode73 components/copresence_sockets/copresence_peer.cc:73: if (!device::BluetoothAdapterFactory::IsBluetoothAdapterAvailable()) { This check may not be enough ...
6 years, 2 months ago (2014-10-03 15:27:54 UTC) #15
rkc
Ilya, update_extension_function.py (run from its own directory) doesn't do anything for me. It just hangs ...
6 years, 2 months ago (2014-10-03 21:57:40 UTC) #16
armansito
https://codereview.chromium.org/610633002/diff/100001/components/copresence_sockets/copresence_peer.cc File components/copresence_sockets/copresence_peer.cc (right): https://codereview.chromium.org/610633002/diff/100001/components/copresence_sockets/copresence_peer.cc#newcode73 components/copresence_sockets/copresence_peer.cc:73: if (!device::BluetoothAdapterFactory::IsBluetoothAdapterAvailable()) { On 2014/10/03 21:57:39, Rahul Chaturvedi wrote: ...
6 years, 2 months ago (2014-10-03 22:43:21 UTC) #17
rkc
https://codereview.chromium.org/610633002/diff/100001/components/copresence_sockets/copresence_peer.cc File components/copresence_sockets/copresence_peer.cc (right): https://codereview.chromium.org/610633002/diff/100001/components/copresence_sockets/copresence_peer.cc#newcode73 components/copresence_sockets/copresence_peer.cc:73: if (!device::BluetoothAdapterFactory::IsBluetoothAdapterAvailable()) { On 2014/10/03 22:43:21, armansito wrote: > ...
6 years, 2 months ago (2014-10-03 22:46:18 UTC) #18
armansito
Bluetooth lgtm
6 years, 2 months ago (2014-10-04 00:33:56 UTC) #19
rkc
Adding mark for adding //base DEPS change. Ilya, I got the script to run. It ...
6 years, 2 months ago (2014-10-04 02:03:59 UTC) #21
Mark Mentovai
Rahul Chaturvedi wrote: > Adding mark for adding //base DEPS change. I don’t see any ...
6 years, 2 months ago (2014-10-04 04:10:57 UTC) #22
rkc
I'm adding DEPS to base (in //components/copresence_sockets) which requires an owners approvals from a //base ...
6 years, 2 months ago (2014-10-04 04:17:41 UTC) #23
Mark Mentovai
You’d need a base OWNERS approval to add a new dependency to base/DEPS, but for ...
6 years, 2 months ago (2014-10-05 15:27:28 UTC) #24
rkc
Adding a dependency on //base _really should not require an owners approval. //base is needed ...
6 years, 2 months ago (2014-10-05 17:00:14 UTC) #25
Mark Mentovai
That’s nuts. LGTM.
6 years, 2 months ago (2014-10-05 18:59:24 UTC) #26
Ilya Sherman
Histograms LGTM, thanks.
6 years, 2 months ago (2014-10-06 21:17:26 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/610633002/160001
6 years, 2 months ago (2014-10-06 23:54:28 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/22252)
6 years, 2 months ago (2014-10-07 01:38:54 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/610633002/180001
6 years, 2 months ago (2014-10-07 16:15:44 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/10630)
6 years, 2 months ago (2014-10-07 16:26: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/610633002/180001
6 years, 2 months ago (2014-10-07 16:31:47 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/610633002/200001
6 years, 2 months ago (2014-10-07 16:59:06 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/5638) android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/22387) mac_chromium_compile_dbg ...
6 years, 2 months ago (2014-10-07 17:11:57 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/610633002/220001
6 years, 2 months ago (2014-10-07 19:16:49 UTC) #44
commit-bot: I haz the power
Committed patchset #12 (id:220001) as e8fb23d21de9e8c026a39203a8d7e187c766e2be
6 years, 2 months ago (2014-10-07 21:27:30 UTC) #45
commit-bot: I haz the power
6 years, 2 months ago (2014-10-07 21:28:10 UTC) #46
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/a3e8914682cb7e046b5a76e93c053f070ea25a0b
Cr-Commit-Position: refs/heads/master@{#298577}

Powered by Google App Engine
This is Rietveld 408576698