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

Issue 433283002: Adding the Copresence RpcHandler and HttpPost helper. (Closed)

Created:
6 years, 4 months ago by Charlie
Modified:
6 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@directive-handler
Project:
chromium
Visibility:
Public.

Description

This is part of the preliminary introduction of the chrome.copresence API, which enables the exchange of short messages with nearby devices. These classes manage all the communication between Chrome and the Copresence server. We access the server proto API through Apiary. I deleted most of deprecated proto fields, since we are no longer using them. Gone too are the unpublish and unsubscribe all calls, which are probably going to be removed on the server. The deprecated namespace field must stay, unfortunately, because we need some additional configuration for the new flow. Based on issue 419073002 (adding the directive handler). R=derat@chromium.org, xiyuan@chromium.org BUG=365493 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288540

Patch Set 1 #

Patch Set 2 : Rebasing off the correct CL #

Total comments: 99

Patch Set 3 : First round of review fixes #

Total comments: 14

Patch Set 4 : Some small fixes #

Total comments: 2

Patch Set 5 : Final fixes #

Patch Set 6 : Fixes for DEPS review #

Total comments: 5

Patch Set 7 : Adding cleanup logic for HttpPost. Also rebased to master. #

Total comments: 2

Patch Set 8 : Removing redundant reset() call. #

Total comments: 16

Patch Set 9 : Removing WeakPtrs and using Shutdown() instead. #

Patch Set 10 : More WeakPtr fixes #

Total comments: 11

Patch Set 11 : RpcHandler deletes HttpPosts #

Total comments: 4

Patch Set 12 : Addressing nits #

Total comments: 37

Patch Set 13 : Addressing comments from willchan #

Patch Set 14 : Fixing HttpPost deletion #

Patch Set 15 : Some last fixes #

Patch Set 16 : Merging to head #

Patch Set 17 : Reverting whispernet_client.h #

Patch Set 18 : Build/merge fixes #

Patch Set 19 : Moving proto changes to a different CL #

Patch Set 20 : Fixing Chromium breakage #

Patch Set 21 : Fixing Chromium and Windows build failures #

Patch Set 22 : Fixing RpcHandlerTest.Initialize #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1241 lines, -73 lines) Patch
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -2 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M components/copresence.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +5 lines, -1 line 0 comments Download
M components/copresence/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M components/copresence/DEPS View 1 2 3 4 5 13 1 chunk +2 lines, -0 lines 0 comments Download
M components/copresence/copresence_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +9 lines, -14 lines 0 comments Download
A + components/copresence/copresence_switches.h View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
A components/copresence/copresence_switches.cc View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
M components/copresence/handlers/directive_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +17 lines, -10 lines 0 comments Download
M components/copresence/handlers/directive_handler.cc View 1 2 3 2 chunks +9 lines, -3 lines 0 comments Download
M components/copresence/public/copresence_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -6 lines 1 comment Download
M components/copresence/public/copresence_client_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +6 lines, -5 lines 0 comments Download
A components/copresence/rpc/http_post.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +72 lines, -0 lines 0 comments Download
A components/copresence/rpc/http_post.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +98 lines, -0 lines 0 comments Download
A components/copresence/rpc/http_post_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +117 lines, -0 lines 0 comments Download
M components/copresence/rpc/rpc_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +85 lines, -16 lines 0 comments Download
M components/copresence/rpc/rpc_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +460 lines, -12 lines 0 comments Download
A components/copresence/rpc/rpc_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +329 lines, -0 lines 0 comments Download

Messages

Total messages: 86 (0 generated)
Charlie
Ping. Dan and Xiyuan, please take a look when you get a chance.
6 years, 4 months ago (2014-08-05 19:33:25 UTC) #1
xiyuan
https://codereview.chromium.org/433283002/diff/20001/components/copresence.gypi File components/copresence.gypi (right): https://codereview.chromium.org/433283002/diff/20001/components/copresence.gypi#newcode12 components/copresence.gypi:12: '../chrome/common_constants.gyp:common_constants', Is it allowed to have back dependency on ...
6 years, 4 months ago (2014-08-05 21:33:39 UTC) #2
Daniel Erat
taking a look now. (note that you need to explicitly mail changes to reviewers after ...
6 years, 4 months ago (2014-08-06 00:19:47 UTC) #3
chromium-reviews
Thanks. I thought maybe the review wasn't sent out for some reason. I added reviewers ...
6 years, 4 months ago (2014-08-06 00:22:27 UTC) #4
Daniel Erat
here are some initial comments (i didn't get beyond http_post.cc yet but will continue later) ...
6 years, 4 months ago (2014-08-06 00:44:47 UTC) #5
Daniel Erat
here are the rest of my comments on patch set 2 https://codereview.chromium.org/433283002/diff/20001/components/copresence/rpc/http_post_unittest.cc File components/copresence/rpc/http_post_unittest.cc (right): ...
6 years, 4 months ago (2014-08-06 16:01:18 UTC) #6
Charlie
https://codereview.chromium.org/433283002/diff/20001/chrome/common/chrome_switches.cc File chrome/common/chrome_switches.cc (right): https://codereview.chromium.org/433283002/diff/20001/chrome/common/chrome_switches.cc#newcode163 chrome/common/chrome_switches.cc:163: // Use this address for calls to the Copresence ...
6 years, 4 months ago (2014-08-06 19:32:21 UTC) #7
Daniel Erat
https://codereview.chromium.org/433283002/diff/20001/components/copresence/BUILD.gn File components/copresence/BUILD.gn (right): https://codereview.chromium.org/433283002/diff/20001/components/copresence/BUILD.gn#newcode3 components/copresence/BUILD.gn:3: # that can be found in the LICENSE file. ...
6 years, 4 months ago (2014-08-06 21:35:18 UTC) #8
Charlie
https://codereview.chromium.org/433283002/diff/20001/components/copresence/BUILD.gn File components/copresence/BUILD.gn (right): https://codereview.chromium.org/433283002/diff/20001/components/copresence/BUILD.gn#newcode3 components/copresence/BUILD.gn:3: # that can be found in the LICENSE file. ...
6 years, 4 months ago (2014-08-06 22:36:24 UTC) #9
Daniel Erat
lgtm with a nit i forgot to answer it earlier, but chromium uses c++-style comments ...
6 years, 4 months ago (2014-08-06 22:45:08 UTC) #10
xiyuan
As Dan pointed out, we should re-think how the lifetime of HttpPost is managed. I ...
6 years, 4 months ago (2014-08-06 23:05:36 UTC) #11
Charlie
https://codereview.chromium.org/433283002/diff/40001/components/copresence/rpc/http_post.h File components/copresence/rpc/http_post.h (right): https://codereview.chromium.org/433283002/diff/40001/components/copresence/rpc/http_post.h#newcode34 components/copresence/rpc/http_post.h:34: // TODO(ckehoe): Template this class to parse the proto ...
6 years, 4 months ago (2014-08-06 23:30:25 UTC) #12
Charlie
The CQ bit was checked by ckehoe@chromium.org
6 years, 4 months ago (2014-08-06 23:30:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckehoe@chromium.org/433283002/80001
6 years, 4 months ago (2014-08-06 23:32:39 UTC) #14
Charlie
+rogerta for googleapis OWNERS review. Sorry for the TODO. This is a time-sensitive CL targeted ...
6 years, 4 months ago (2014-08-06 23:52:26 UTC) #15
willchan no longer on Chromium
https://codereview.chromium.org/433283002/diff/100001/components/copresence/rpc/http_post.h File components/copresence/rpc/http_post.h (right): https://codereview.chromium.org/433283002/diff/100001/components/copresence/rpc/http_post.h#newcode54 components/copresence/rpc/http_post.h:54: // TODO(ckehoe): Self-deletion is a possible source of memory ...
6 years, 4 months ago (2014-08-06 23:57:39 UTC) #16
Charlie
https://codereview.chromium.org/433283002/diff/100001/components/copresence/rpc/http_post.cc File components/copresence/rpc/http_post.cc (right): https://codereview.chromium.org/433283002/diff/100001/components/copresence/rpc/http_post.cc#newcode39 components/copresence/rpc/http_post.cc:39: // TODO(ckehoe): Replace this with an app-specific key To ...
6 years, 4 months ago (2014-08-07 00:08:24 UTC) #17
willchan no longer on Chromium
https://codereview.chromium.org/433283002/diff/100001/components/copresence/rpc/http_post.h File components/copresence/rpc/http_post.h (right): https://codereview.chromium.org/433283002/diff/100001/components/copresence/rpc/http_post.h#newcode54 components/copresence/rpc/http_post.h:54: // TODO(ckehoe): Self-deletion is a possible source of memory ...
6 years, 4 months ago (2014-08-07 00:11:40 UTC) #18
rkc
https://codereview.chromium.org/433283002/diff/100001/components/copresence/rpc/http_post.h File components/copresence/rpc/http_post.h (right): https://codereview.chromium.org/433283002/diff/100001/components/copresence/rpc/http_post.h#newcode54 components/copresence/rpc/http_post.h:54: // TODO(ckehoe): Self-deletion is a possible source of memory ...
6 years, 4 months ago (2014-08-07 00:18:20 UTC) #19
Charlie
Ok, how's this?
6 years, 4 months ago (2014-08-07 17:24:34 UTC) #20
rkc
Nifty. lgtm to me, still need Will to approve though.
6 years, 4 months ago (2014-08-07 17:32:32 UTC) #21
Daniel Erat
https://codereview.chromium.org/433283002/diff/120001/components/copresence/rpc/http_post.cc File components/copresence/rpc/http_post.cc (right): https://codereview.chromium.org/433283002/diff/120001/components/copresence/rpc/http_post.cc#newcode74 components/copresence/rpc/http_post.cc:74: url_fetcher_.reset(); why do you need to explicitly reset this? ...
6 years, 4 months ago (2014-08-07 17:55:22 UTC) #22
Charlie
https://codereview.chromium.org/433283002/diff/120001/components/copresence/rpc/http_post.cc File components/copresence/rpc/http_post.cc (right): https://codereview.chromium.org/433283002/diff/120001/components/copresence/rpc/http_post.cc#newcode74 components/copresence/rpc/http_post.cc:74: url_fetcher_.reset(); On 2014/08/07 17:55:22, Daniel Erat wrote: > why ...
6 years, 4 months ago (2014-08-07 18:00:03 UTC) #23
rkc
https://codereview.chromium.org/433283002/diff/140001/components/copresence/rpc/http_post.cc File components/copresence/rpc/http_post.cc (right): https://codereview.chromium.org/433283002/diff/140001/components/copresence/rpc/http_post.cc#newcode74 components/copresence/rpc/http_post.cc:74: // This deletes the url_fetcher_, which aborts the request. ...
6 years, 4 months ago (2014-08-07 18:01:05 UTC) #24
Charlie
https://codereview.chromium.org/433283002/diff/140001/components/copresence/rpc/http_post.cc File components/copresence/rpc/http_post.cc (right): https://codereview.chromium.org/433283002/diff/140001/components/copresence/rpc/http_post.cc#newcode74 components/copresence/rpc/http_post.cc:74: // This deletes the url_fetcher_, which aborts the request. ...
6 years, 4 months ago (2014-08-07 18:05:01 UTC) #25
rkc
https://codereview.chromium.org/433283002/diff/140001/components/copresence/rpc/http_post.cc File components/copresence/rpc/http_post.cc (right): https://codereview.chromium.org/433283002/diff/140001/components/copresence/rpc/http_post.cc#newcode74 components/copresence/rpc/http_post.cc:74: // This deletes the url_fetcher_, which aborts the request. ...
6 years, 4 months ago (2014-08-07 19:25:07 UTC) #26
Roger Tawa OOO till Jul 10th
Hi guys, I don't see a problem adding a dep on google_apis for access to ...
6 years, 4 months ago (2014-08-07 19:53:18 UTC) #27
rkc
On 2014/08/07 19:53:18, Roger Tawa (build sheriff) wrote: > Hi guys, > > I don't ...
6 years, 4 months ago (2014-08-07 19:59:06 UTC) #28
Roger Tawa OOO till Jul 10th
lgtm
6 years, 4 months ago (2014-08-07 20:12:12 UTC) #29
willchan no longer on Chromium
I'm still going through this, but here's a first pass. https://codereview.chromium.org/433283002/diff/140001/components/copresence/rpc/http_post.cc File components/copresence/rpc/http_post.cc (right): https://codereview.chromium.org/433283002/diff/140001/components/copresence/rpc/http_post.cc#newcode74 ...
6 years, 4 months ago (2014-08-07 20:27:05 UTC) #30
willchan no longer on Chromium
I looked for the hook into the browser. This component seems to stand alone (cs.chromium.org ...
6 years, 4 months ago (2014-08-07 20:42:43 UTC) #31
rkc
On 2014/08/07 20:42:43, willchan wrote: > I looked for the hook into the browser. This ...
6 years, 4 months ago (2014-08-07 21:10:32 UTC) #32
willchan no longer on Chromium
Thanks for the pointers. That helps immensely.
6 years, 4 months ago (2014-08-07 21:40:28 UTC) #33
rkc
On 2014/08/07 21:40:28, willchan wrote: > Thanks for the pointers. That helps immensely. Uploaded a ...
6 years, 4 months ago (2014-08-07 21:45:30 UTC) #34
Charlie
Sorry if I missed any comments. Codereview seems not to be tracking them. https://codereview.chromium.org/433283002/diff/140001/components/copresence/copresence_client.cc File ...
6 years, 4 months ago (2014-08-07 22:40:58 UTC) #35
willchan no longer on Chromium
https://codereview.chromium.org/433283002/diff/140001/components/copresence/rpc/http_post.cc File components/copresence/rpc/http_post.cc (right): https://codereview.chromium.org/433283002/diff/140001/components/copresence/rpc/http_post.cc#newcode74 components/copresence/rpc/http_post.cc:74: // This deletes the url_fetcher_, which aborts the request. ...
6 years, 4 months ago (2014-08-07 22:47:53 UTC) #36
rkc
https://codereview.chromium.org/433283002/diff/180001/components/copresence/copresence_client.cc File components/copresence/copresence_client.cc (right): https://codereview.chromium.org/433283002/diff/180001/components/copresence/copresence_client.cc#newcode46 components/copresence/copresence_client.cc:46: void CopresenceClient::Shutdown() { Get rid of Shutdown. We aren't ...
6 years, 4 months ago (2014-08-07 22:49:51 UTC) #37
Charlie
https://codereview.chromium.org/433283002/diff/140001/components/copresence/rpc/http_post.cc File components/copresence/rpc/http_post.cc (right): https://codereview.chromium.org/433283002/diff/140001/components/copresence/rpc/http_post.cc#newcode74 components/copresence/rpc/http_post.cc:74: // This deletes the url_fetcher_, which aborts the request. ...
6 years, 4 months ago (2014-08-07 23:33:04 UTC) #38
rkc
lgtm https://codereview.chromium.org/433283002/diff/200001/components/copresence/rpc/rpc_handler.cc File components/copresence/rpc/rpc_handler.cc (right): https://codereview.chromium.org/433283002/diff/200001/components/copresence/rpc/rpc_handler.cc#newcode217 components/copresence/rpc/rpc_handler.cc:217: // On delete, this request will be cancelled. ...
6 years, 4 months ago (2014-08-07 23:41:18 UTC) #39
Charlie
https://codereview.chromium.org/433283002/diff/200001/components/copresence/rpc/rpc_handler.cc File components/copresence/rpc/rpc_handler.cc (right): https://codereview.chromium.org/433283002/diff/200001/components/copresence/rpc/rpc_handler.cc#newcode217 components/copresence/rpc/rpc_handler.cc:217: // On delete, this request will be cancelled. On ...
6 years, 4 months ago (2014-08-07 23:57:12 UTC) #40
willchan no longer on Chromium
https://codereview.chromium.org/433283002/diff/180001/components/copresence/rpc/http_post.cc File components/copresence/rpc/http_post.cc (right): https://codereview.chromium.org/433283002/diff/180001/components/copresence/rpc/http_post.cc#newcode12 components/copresence/rpc/http_post.cc:12: #include "content/public/browser/browser_context.h" Where is this used? https://codereview.chromium.org/433283002/diff/180001/components/copresence/rpc/http_post.cc#newcode45 components/copresence/rpc/http_post.cc:45: CommandLine* ...
6 years, 4 months ago (2014-08-08 01:05:59 UTC) #41
rkc
https://codereview.chromium.org/433283002/diff/180001/components/copresence/rpc/http_post.cc File components/copresence/rpc/http_post.cc (right): https://codereview.chromium.org/433283002/diff/180001/components/copresence/rpc/http_post.cc#newcode45 components/copresence/rpc/http_post.cc:45: CommandLine* command_line = CommandLine::ForCurrentProcess(); On 2014/08/08 01:05:58, willchan wrote: ...
6 years, 4 months ago (2014-08-08 01:29:07 UTC) #42
willchan no longer on Chromium
https://codereview.chromium.org/433283002/diff/180001/components/copresence/rpc/http_post.cc File components/copresence/rpc/http_post.cc (right): https://codereview.chromium.org/433283002/diff/180001/components/copresence/rpc/http_post.cc#newcode45 components/copresence/rpc/http_post.cc:45: CommandLine* command_line = CommandLine::ForCurrentProcess(); On 2014/08/08 01:29:07, Rahul Chaturvedi ...
6 years, 4 months ago (2014-08-08 18:01:20 UTC) #43
willchan no longer on Chromium
I'm going to cut this review short because I have no time to review this ...
6 years, 4 months ago (2014-08-08 20:55:53 UTC) #44
Charlie
On 2014/08/08 20:55:53, willchan wrote: > I'm going to cut this review short because I ...
6 years, 4 months ago (2014-08-08 21:01:27 UTC) #45
willchan no longer on Chromium
Adding Colin to this CL, although not in a blocking fashion. Just wanted him to ...
6 years, 4 months ago (2014-08-08 21:41:15 UTC) #46
willchan no longer on Chromium
https://codereview.chromium.org/433283002/diff/220001/components/copresence/rpc/rpc_handler.cc File components/copresence/rpc/rpc_handler.cc (right): https://codereview.chromium.org/433283002/diff/220001/components/copresence/rpc/rpc_handler.cc#newcode280 components/copresence/rpc/rpc_handler.cc:280: base::Unretained(this))); It looks like the |this| here gets passed ...
6 years, 4 months ago (2014-08-08 21:45:13 UTC) #47
Charlie
+darin for third_party/protobuf review. https://codereview.chromium.org/433283002/diff/180001/components/copresence/rpc/http_post.cc File components/copresence/rpc/http_post.cc (right): https://codereview.chromium.org/433283002/diff/180001/components/copresence/rpc/http_post.cc#newcode12 components/copresence/rpc/http_post.cc:12: #include "content/public/browser/browser_context.h" On 2014/08/08 01:05:58, ...
6 years, 4 months ago (2014-08-08 21:57:53 UTC) #48
rkc
https://codereview.chromium.org/433283002/diff/220001/components/copresence/rpc/rpc_handler.cc File components/copresence/rpc/rpc_handler.cc (right): https://codereview.chromium.org/433283002/diff/220001/components/copresence/rpc/rpc_handler.cc#newcode280 components/copresence/rpc/rpc_handler.cc:280: base::Unretained(this))); On 2014/08/08 21:45:13, willchan wrote: > It looks ...
6 years, 4 months ago (2014-08-08 22:00:37 UTC) #49
Charlie
https://codereview.chromium.org/433283002/diff/220001/components/copresence/rpc/http_post.h File components/copresence/rpc/http_post.h (right): https://codereview.chromium.org/433283002/diff/220001/components/copresence/rpc/http_post.h#newcode50 components/copresence/rpc/http_post.h:50: const ResponseCallback& response_callback); On 2014/08/08 21:57:53, Charlie wrote: > ...
6 years, 4 months ago (2014-08-08 22:25:47 UTC) #50
willchan no longer on Chromium
https://codereview.chromium.org/433283002/diff/180001/components/copresence/rpc/http_post.cc File components/copresence/rpc/http_post.cc (right): https://codereview.chromium.org/433283002/diff/180001/components/copresence/rpc/http_post.cc#newcode45 components/copresence/rpc/http_post.cc:45: CommandLine* command_line = CommandLine::ForCurrentProcess(); On 2014/08/08 21:57:52, Charlie wrote: ...
6 years, 4 months ago (2014-08-08 22:31:01 UTC) #51
Charlie
On 2014/08/08 22:31:01, willchan wrote: > https://codereview.chromium.org/433283002/diff/180001/components/copresence/rpc/http_post.cc > File components/copresence/rpc/http_post.cc (right): > > https://codereview.chromium.org/433283002/diff/180001/components/copresence/rpc/http_post.cc#newcode45 > ...
6 years, 4 months ago (2014-08-08 22:33:41 UTC) #52
willchan no longer on Chromium
On 2014/08/08 22:33:41, Charlie wrote: > On 2014/08/08 22:31:01, willchan wrote: > > > https://codereview.chromium.org/433283002/diff/180001/components/copresence/rpc/http_post.cc ...
6 years, 4 months ago (2014-08-08 22:35:19 UTC) #53
willchan no longer on Chromium
https://codereview.chromium.org/433283002/diff/220001/components/copresence/copresence_client.cc File components/copresence/copresence_client.cc (right): https://codereview.chromium.org/433283002/diff/220001/components/copresence/copresence_client.cc#newcode38 components/copresence/copresence_client.cc:38: // The WhispernetClient must discard this on Shutdown. On ...
6 years, 4 months ago (2014-08-08 22:53:34 UTC) #54
Charlie
+brettw for third_party/protobuf review
6 years, 4 months ago (2014-08-08 22:59:23 UTC) #55
willchan no longer on Chromium
Removing myself as blocking for this CL, since the net:: usage LGTM. That said, I ...
6 years, 4 months ago (2014-08-08 23:31:30 UTC) #56
Charlie
On 2014/08/08 23:31:30, willchan wrote: > Removing myself as blocking for this CL, since the ...
6 years, 4 months ago (2014-08-08 23:32:15 UTC) #57
Charlie
https://codereview.chromium.org/433283002/diff/220001/components/copresence/copresence_client.cc File components/copresence/copresence_client.cc (right): https://codereview.chromium.org/433283002/diff/220001/components/copresence/copresence_client.cc#newcode38 components/copresence/copresence_client.cc:38: // The WhispernetClient must discard this on Shutdown. On ...
6 years, 4 months ago (2014-08-08 23:38:31 UTC) #58
Charlie
The CQ bit was checked by ckehoe@chromium.org
6 years, 4 months ago (2014-08-08 23:46:06 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckehoe@chromium.org/433283002/300001
6 years, 4 months ago (2014-08-08 23:49:36 UTC) #60
Charlie
The CQ bit was checked by ckehoe@chromium.org
6 years, 4 months ago (2014-08-08 23:58:23 UTC) #61
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckehoe@chromium.org/433283002/320001
6 years, 4 months ago (2014-08-08 23:59:53 UTC) #62
Charlie
The CQ bit was checked by ckehoe@chromium.org
6 years, 4 months ago (2014-08-09 00:35:06 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckehoe@chromium.org/433283002/340001
6 years, 4 months ago (2014-08-09 00:37:40 UTC) #64
Charlie
The CQ bit was checked by ckehoe@chromium.org
6 years, 4 months ago (2014-08-09 01:00:19 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckehoe@chromium.org/433283002/360001
6 years, 4 months ago (2014-08-09 01:01:42 UTC) #66
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 4 months ago (2014-08-09 03:24:01 UTC) #67
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckehoe@chromium.org/433283002/390001
6 years, 4 months ago (2014-08-09 03:27:31 UTC) #68
Charlie
The CQ bit was checked by ckehoe@chromium.org
6 years, 4 months ago (2014-08-09 04:09:41 UTC) #69
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckehoe@chromium.org/433283002/410001
6 years, 4 months ago (2014-08-09 04:11:14 UTC) #70
rkc
The CQ bit was unchecked by rkc@chromium.org
6 years, 4 months ago (2014-08-09 07:14:56 UTC) #71
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 4 months ago (2014-08-09 07:15:25 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckehoe@chromium.org/433283002/410001
6 years, 4 months ago (2014-08-09 07:16:36 UTC) #73
rkc
The CQ bit was unchecked by rkc@chromium.org
6 years, 4 months ago (2014-08-09 08:00:46 UTC) #74
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 4 months ago (2014-08-09 08:04:54 UTC) #75
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckehoe@chromium.org/433283002/410001
6 years, 4 months ago (2014-08-09 08:06:00 UTC) #76
rkc
The CQ bit was unchecked by rkc@chromium.org
6 years, 4 months ago (2014-08-09 08:08:25 UTC) #77
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 4 months ago (2014-08-09 08:10:03 UTC) #78
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckehoe@chromium.org/433283002/410001
6 years, 4 months ago (2014-08-09 08:11:34 UTC) #79
commit-bot: I haz the power
Change committed as 288540
6 years, 4 months ago (2014-08-09 08:28:29 UTC) #80
blundell
Is it intended that clients of the copresence component should only access interfaces underneath its ...
6 years, 4 months ago (2014-08-11 12:42:54 UTC) #81
Charlie
On 2014/08/11 12:42:54, blundell wrote: > Is it intended that clients of the copresence component ...
6 years, 4 months ago (2014-08-11 15:37:28 UTC) #82
blundell
On 2014/08/11 15:37:28, Charlie wrote: > On 2014/08/11 12:42:54, blundell wrote: > > Is it ...
6 years, 4 months ago (2014-08-12 12:51:38 UTC) #83
blundell
On 2014/08/12 12:51:38, blundell wrote: > On 2014/08/11 15:37:28, Charlie wrote: > > On 2014/08/11 ...
6 years, 4 months ago (2014-08-12 12:52:37 UTC) #84
rkc
On 2014/08/12 12:52:37, blundell wrote: > On 2014/08/12 12:51:38, blundell wrote: > > On 2014/08/11 ...
6 years, 4 months ago (2014-08-12 17:57:34 UTC) #85
Charlie
6 years, 4 months ago (2014-08-13 20:25:45 UTC) #86
Message was sent while issue was closed.
On 2014/08/12 17:57:34, Rahul Chaturvedi wrote:
> On 2014/08/12 12:52:37, blundell wrote:
> > On 2014/08/12 12:51:38, blundell wrote:
> > > On 2014/08/11 15:37:28, Charlie wrote:
> > > > On 2014/08/11 12:42:54, blundell wrote:
> > > > > Is it intended that clients of the copresence component should only
> access
> > > > > interfaces underneath its public/ directory?
> > > > 
> > > > Yes.
> > > 
> > > Nice. Make sure that DEPS are set up correctly to enforce that (i.e., all
> DEPS
> > > files outside of //components/copresence should just have
> > > "+components/copresence/public").
> > > 
> > 
> > (meaning, of course, all DEPS files outside of //components/copresence that
> need
> > to reference copresence at all :)
> > 
> > > > 
> > > > > 
> > > > >
> > > >
> > >
> >
>
https://codereview.chromium.org/433283002/diff/410001/components/copresence/p...
> > > > > File components/copresence/public/copresence_client.h (left):
> > > > > 
> > > > >
> > > >
> > >
> >
>
https://codereview.chromium.org/433283002/diff/410001/components/copresence/p...
> > > > > components/copresence/public/copresence_client.h:38: // The
> > CopresenceClient
> > > > > class is the central interface for Copresence
> > > > > The "Client" suffix is typically used in Chromium to indicate an
> interface
> > > > > that's implemented and injected by the embedder (e.g., ContentClient,
> > > > > AutofillClient, ...). AFAICT, that's not what this class is, but
rather
> > it's
> > > > the
> > > > > chief entrypoint to the component?
> > > > 
> > > > That's right. We called it the client because mostly it just talks to
the
> > > > Copresence server. Do you have some different naming suggestions?
> > > 
> > > CopresenceManager or CopresenceService would be idiomatic names.
> 
> I like CopresenceManager. CopresenceService is actually taken by the
copresence
> browser context keyed service :)

Ok. I'm changing the name as part of some refactoring in another CL:

https://codereview.chromium.org/441103002/

Powered by Google App Engine
This is Rietveld 408576698