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

Issue 2377873002: Initial definition of HeliumSyncManager and SyncRegistration objects. (Closed)

Created:
4 years, 2 months ago by Kevin M
Modified:
4 years, 2 months ago
Reviewers:
scf, steimel, Wez
CC:
anandc+watch-blimp_chromium.org, bgoldman+watch-blimp_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, dtrainor+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, scf+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, steimel+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Initial definition of HeliumSyncManager and SyncRegistration objects. This CL contains an abstract interface for SyncManager and a private class skeleton SyncManagerImpl with the method bodies stubbed out. R=steimel@chromium.org,scf@chromium.org CC=wez@chromium.org BUG=650469 Committed: https://crrev.com/35a16a011800bf25273c58f0c937b0140b55d9bd Cr-Commit-Position: refs/heads/master@{#423660}

Patch Set 1 #

Total comments: 26

Patch Set 2 : code review feedback #

Patch Set 3 : Remove review cruft from CL #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -0 lines) Patch
M blimp/net/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A blimp/net/helium/helium_sync_manager.h View 1 1 chunk +94 lines, -0 lines 6 comments Download
A blimp/net/helium/helium_sync_manager.cc View 1 2 1 chunk +84 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (5 generated)
Kevin M
4 years, 2 months ago (2016-09-28 01:14:01 UTC) #2
scf
https://codereview.chromium.org/2377873002/diff/1/blimp/common/proto/helium.proto File blimp/common/proto/helium.proto (right): https://codereview.chromium.org/2377873002/diff/1/blimp/common/proto/helium.proto#newcode8 blimp/common/proto/helium.proto:8: syntax = "proto2"; use proto3 as you describe no? ...
4 years, 2 months ago (2016-09-28 17:18:00 UTC) #3
perumaal
One major question on Helium Message vs Blimp Message wrapping. https://codereview.chromium.org/2377873002/diff/1/blimp/common/proto/BUILD.gn File blimp/common/proto/BUILD.gn (right): https://codereview.chromium.org/2377873002/diff/1/blimp/common/proto/BUILD.gn#newcode34 ...
4 years, 2 months ago (2016-09-28 23:31:30 UTC) #4
Kevin M
Sorry, please disregard helium.proto. I forked from an earlier local experimental branch for this CL ...
4 years, 2 months ago (2016-09-28 23:47:44 UTC) #5
Kevin M
https://codereview.chromium.org/2377873002/diff/1/blimp/common/proto/BUILD.gn File blimp/common/proto/BUILD.gn (right): https://codereview.chromium.org/2377873002/diff/1/blimp/common/proto/BUILD.gn#newcode34 blimp/common/proto/BUILD.gn:34: "helium.proto", On 2016/09/28 23:31:30, perumaal wrote: > Could you ...
4 years, 2 months ago (2016-09-29 00:06:28 UTC) #6
Kevin M
4 years, 2 months ago (2016-10-03 17:51:03 UTC) #8
scf
https://codereview.chromium.org/2377873002/diff/1/blimp/net/helium/helium_sync_manager.h File blimp/net/helium/helium_sync_manager.h (right): https://codereview.chromium.org/2377873002/diff/1/blimp/net/helium/helium_sync_manager.h#newcode60 blimp/net/helium/helium_sync_manager.h:60: std::unique_ptr<HeliumTransport> transport); On 2016/09/29 00:06:28, Kevin M wrote: > ...
4 years, 2 months ago (2016-10-03 17:59:33 UTC) #9
Kevin M
¡Friendly ping!
4 years, 2 months ago (2016-10-06 00:48:20 UTC) #10
steimel
lgtm
4 years, 2 months ago (2016-10-06 15:54:40 UTC) #11
scf
lgtm https://codereview.chromium.org/2377873002/diff/40001/blimp/net/helium/helium_sync_manager.h File blimp/net/helium/helium_sync_manager.h (right): https://codereview.chromium.org/2377873002/diff/40001/blimp/net/helium/helium_sync_manager.h#newcode19 blimp/net/helium/helium_sync_manager.h:19: using HeliumObjectId = uint32_t; I with proto allowed ...
4 years, 2 months ago (2016-10-06 17:37:50 UTC) #12
scf
lgtm
4 years, 2 months ago (2016-10-06 17:37:51 UTC) #13
Kevin M
https://codereview.chromium.org/2377873002/diff/40001/blimp/net/helium/helium_sync_manager.h File blimp/net/helium/helium_sync_manager.h (right): https://codereview.chromium.org/2377873002/diff/40001/blimp/net/helium/helium_sync_manager.h#newcode32 blimp/net/helium/helium_sync_manager.h:32: // object from the SyncManager. On 2016/10/06 17:37:49, scf ...
4 years, 2 months ago (2016-10-06 18:41:09 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2377873002/40001
4 years, 2 months ago (2016-10-06 18:45:05 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-06 20:45:15 UTC) #18
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/35a16a011800bf25273c58f0c937b0140b55d9bd Cr-Commit-Position: refs/heads/master@{#423660}
4 years, 2 months ago (2016-10-06 20:47:01 UTC) #20
Wez
4 years, 2 months ago (2016-10-08 00:38:21 UTC) #21
Message was sent while issue was closed.
Very late to the game; just a couple of things to follow-up on - otherwise LGTM

https://codereview.chromium.org/2377873002/diff/40001/blimp/net/helium/helium...
File blimp/net/helium/helium_sync_manager.h (right):

https://codereview.chromium.org/2377873002/diff/40001/blimp/net/helium/helium...
blimp/net/helium/helium_sync_manager.h:32: // object from the SyncManager.
On 2016/10/06 18:41:09, Kevin M wrote:
> On 2016/10/06 17:37:49, scf wrote:
> > Who owns the SyncRegistration? Should we add to the TwoPhaseSyncable so that
> it
> > can enforce destruction?
> 
> The Object, which is the TwoPhaseSyncable. So yeah, adding a non-virtual
> SyncRegistration setter to the TwoPhaseSyncable seems like a good idea.

It would be preferable to keep a clean separation between interfaces and
base-classes, though.

It would also be good to avoid "polluting" Syncable primitives with knowledge of
registration, while still allowing them to be synchronized directly.

https://codereview.chromium.org/2377873002/diff/40001/blimp/net/helium/helium...
blimp/net/helium/helium_sync_manager.h:60: std::unique_ptr<HeliumTransport>
transport);
Given that the impl in this CL is a no-op, and that we may well have a
SyncManager shim to run on 0.5, I'd suggest omitting this for now and adding it
once we have an impl to return. :)

https://codereview.chromium.org/2377873002/diff/40001/blimp/net/helium/helium...
blimp/net/helium/helium_sync_manager.h:81: virtual void Pause(HeliumObjectId id,
bool paused) = 0;
Let's leave out stuff like this until we get to implementing it :)

Powered by Google App Engine
This is Rietveld 408576698