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

Issue 426093003: Add the copresence component. (Closed)

Created:
6 years, 4 months ago by rkc
Modified:
6 years, 4 months ago
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Add the copresence component. This CL adds the copresence component that will be used by the Copresence API. This code exposes the CopresenceClient class. This class provides all the functionality needed by any user of Copresence, which currently is only the Chrome API. A few notes on the CL: . I have stubbed out as much code as possible while still keeping the implementation of at least the client in the CL. This required me to have the proto buffers (since the delegate we use sends its data back and forth in proto buffs) and the stub RPC handler (which the client directly depends on). . The protobufs are automatically generated by pulling them from the server code and running a tool that strips out unnecessary fields. This has the unfortunate side effect of pulling out all comments/formatting and leaving us with no control on naming (unless we go change the server code). This does ensure though that we are constantly up-to-date with the server protos. - We also have a few deprecated fields in the protobufs, since they are still needed on the server for Chrome specific server code. We have bugs out on the server to fix this and as soon as that happens, we will be getting rid of all the deprecated fields from here too. An open question I have is about the .GN files. Are those going to get autogenerated from the GYPs? Or do I need to manually add them? R=jochen@chromium.org, willchan@chromium.org BUG=365493 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287036

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : #

Total comments: 5

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+860 lines, -4 lines) Patch
M components/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/OWNERS View 1 chunk +5 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A components/copresence.gypi View 1 2 3 4 1 chunk +52 lines, -0 lines 0 comments Download
A components/copresence/BUILD.gn View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download
A + components/copresence/DEPS View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
A components/copresence/OWNERS View 1 chunk +4 lines, -0 lines 0 comments Download
A components/copresence/copresence_client.cc View 1 2 3 4 5 1 chunk +108 lines, -0 lines 0 comments Download
A + components/copresence/proto/BUILD.gn View 1 1 chunk +6 lines, -3 lines 0 comments Download
A components/copresence/proto/codes.proto View 1 chunk +23 lines, -0 lines 0 comments Download
A components/copresence/proto/data.proto View 1 chunk +147 lines, -0 lines 0 comments Download
A components/copresence/proto/enums.proto View 1 chunk +97 lines, -0 lines 0 comments Download
A components/copresence/proto/identity.proto View 1 chunk +21 lines, -0 lines 0 comments Download
A components/copresence/proto/rpcs.proto View 1 chunk +74 lines, -0 lines 0 comments Download
A components/copresence/public/copresence_client.h View 1 2 3 4 5 6 1 chunk +81 lines, -0 lines 0 comments Download
A components/copresence/public/copresence_client_delegate.h View 1 2 3 4 5 1 chunk +51 lines, -0 lines 0 comments Download
A components/copresence/public/whispernet_client.h View 1 2 1 chunk +70 lines, -0 lines 0 comments Download
A components/copresence/rpc/rpc_handler.h View 1 2 1 chunk +57 lines, -0 lines 0 comments Download
A components/copresence/rpc/rpc_handler.cc View 1 2 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
rkc
6 years, 4 months ago (2014-07-30 07:06:04 UTC) #1
jochen (gone - plz use gerrit)
mostly nits. can you include the code that uses the API from chrome? The build.gn ...
6 years, 4 months ago (2014-07-30 09:29:01 UTC) #2
rkc
Added the BUILD.gn files. I've uploaded the complete reference code for copresence, as it looks ...
6 years, 4 months ago (2014-07-30 10:16:45 UTC) #3
jochen (gone - plz use gerrit)
I left a bunch of comments on the reference code
6 years, 4 months ago (2014-07-30 15:11:59 UTC) #4
rkc
Updated to match https://codereview.chromium.org/428113002/
6 years, 4 months ago (2014-07-30 22:21:06 UTC) #5
Charlie
https://codereview.chromium.org/426093003/diff/40001/components/copresence/public/copresence_client_delegate.h File components/copresence/public/copresence_client_delegate.h (right): https://codereview.chromium.org/426093003/diff/40001/components/copresence/public/copresence_client_delegate.h#newcode5 components/copresence/public/copresence_client_delegate.h:5: #ifndef COMPONENTS_COPRESENCE_INTERFACE_COPRESENCE_DELGATE_H_ Update define. Watch the spelling of "delegate".
6 years, 4 months ago (2014-07-31 02:37:16 UTC) #6
Charlie
https://codereview.chromium.org/426093003/diff/40001/components/copresence/public/copresence_client_delegate.h File components/copresence/public/copresence_client_delegate.h (right): https://codereview.chromium.org/426093003/diff/40001/components/copresence/public/copresence_client_delegate.h#newcode5 components/copresence/public/copresence_client_delegate.h:5: #ifndef COMPONENTS_COPRESENCE_INTERFACE_COPRESENCE_DELGATE_H_ Update define. Watch the spelling of "delegate".
6 years, 4 months ago (2014-07-31 02:37:16 UTC) #7
rkc
https://codereview.chromium.org/426093003/diff/40001/components/copresence/public/copresence_client_delegate.h File components/copresence/public/copresence_client_delegate.h (right): https://codereview.chromium.org/426093003/diff/40001/components/copresence/public/copresence_client_delegate.h#newcode5 components/copresence/public/copresence_client_delegate.h:5: #ifndef COMPONENTS_COPRESENCE_INTERFACE_COPRESENCE_DELGATE_H_ On 2014/07/31 02:37:16, ckehoe wrote: > Update ...
6 years, 4 months ago (2014-07-31 06:08:17 UTC) #8
jochen (gone - plz use gerrit)
https://codereview.chromium.org/426093003/diff/80001/chrome/chrome_browser.gypi File chrome/chrome_browser.gypi (right): https://codereview.chromium.org/426093003/diff/80001/chrome/chrome_browser.gypi#newcode2954 chrome/chrome_browser.gypi:2954: '../components/components.gyp:copresence', nit. move the changes to chrome_browser.gypi to e.g. ...
6 years, 4 months ago (2014-07-31 14:27:06 UTC) #9
jochen (gone - plz use gerrit)
https://codereview.chromium.org/426093003/diff/80001/components/copresence/public/copresence_client.h File components/copresence/public/copresence_client.h (right): https://codereview.chromium.org/426093003/diff/80001/components/copresence/public/copresence_client.h#newcode50 components/copresence/public/copresence_client.h:50: // WhispernetClient. i'm not really sure how to make ...
6 years, 4 months ago (2014-07-31 14:46:41 UTC) #10
rkc
https://codereview.chromium.org/426093003/diff/80001/chrome/chrome_browser.gypi File chrome/chrome_browser.gypi (right): https://codereview.chromium.org/426093003/diff/80001/chrome/chrome_browser.gypi#newcode2954 chrome/chrome_browser.gypi:2954: '../components/components.gyp:copresence', On 2014/07/31 14:27:06, jochen wrote: > nit. move ...
6 years, 4 months ago (2014-07-31 15:44:14 UTC) #11
jochen (gone - plz use gerrit)
On 2014/07/31 at 15:44:14, rkc wrote: > https://codereview.chromium.org/426093003/diff/80001/chrome/chrome_browser.gypi > File chrome/chrome_browser.gypi (right): > > https://codereview.chromium.org/426093003/diff/80001/chrome/chrome_browser.gypi#newcode2954 ...
6 years, 4 months ago (2014-07-31 19:15:56 UTC) #12
jochen (gone - plz use gerrit)
https://codereview.chromium.org/426093003/diff/100001/chrome/chrome_browser.gypi File chrome/chrome_browser.gypi (right): https://codereview.chromium.org/426093003/diff/100001/chrome/chrome_browser.gypi#newcode2954 chrome/chrome_browser.gypi:2954: '../components/components.gyp:copresence', i meant: as long as you don't use ...
6 years, 4 months ago (2014-07-31 19:22:46 UTC) #13
rkc
https://codereview.chromium.org/426093003/diff/100001/chrome/chrome_browser.gypi File chrome/chrome_browser.gypi (right): https://codereview.chromium.org/426093003/diff/100001/chrome/chrome_browser.gypi#newcode2954 chrome/chrome_browser.gypi:2954: '../components/components.gyp:copresence', On 2014/07/31 19:22:46, jochen wrote: > i meant: ...
6 years, 4 months ago (2014-07-31 20:13:36 UTC) #14
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 4 months ago (2014-07-31 20:45:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/426093003/120001
6 years, 4 months ago (2014-07-31 20:47:34 UTC) #16
willchan no longer on Chromium
lgtm The base/ dep LGTM Let me know later when you add the net/ one ...
6 years, 4 months ago (2014-07-31 21:18:57 UTC) #17
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 4 months ago (2014-07-31 21:20:45 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/426093003/140001
6 years, 4 months ago (2014-07-31 21:24:20 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-01 03:00:10 UTC) #20
rkc
6 years, 4 months ago (2014-08-01 17:32:20 UTC) #21
Message was sent while issue was closed.
Committed patchset #8 manually as r287036 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698