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

Issue 2382533002: Helium: Initial proto and Syncable interface definition (Closed)

Created:
4 years, 2 months ago by scf
Modified:
4 years ago
CC:
anandc+watch-blimp_chromium.org, bgoldman+watch-blimp_chromium.org, cbentzel+watch_chromium.org, 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 proto messages and Syncable interface definition. BUG=650461 Committed: https://crrev.com/d10e6413f024668200243747059fcbb9ef0e00aa Cr-Commit-Position: refs/heads/master@{#423919}

Patch Set 1 #

Patch Set 2 : remainder stuff #

Patch Set 3 : remainder stuff #

Patch Set 4 : remainder stuff #

Patch Set 5 : remainder stuff #

Patch Set 6 : Initial proto and Syncable interface definition #

Total comments: 54

Patch Set 7 : Addressing initial feedback #

Total comments: 8

Patch Set 8 : Couple minor tweaks #

Total comments: 57

Patch Set 9 : allthefeedback #

Patch Set 10 : git cl upload #

Patch Set 11 : https://memegen.googleplex.com/4141705 #

Total comments: 26

Patch Set 12 : addressing feedback #

Total comments: 16

Patch Set 13 : missed one comma #

Patch Set 14 : moar feedback #

Total comments: 5

Patch Set 15 : updating with feedback #

Total comments: 6

Patch Set 16 : making Apply async based on last discussions, and some minor comment updates #

Patch Set 17 : changes as discussed offline with @wez and @kevin #

Total comments: 5

Patch Set 18 : temp before sending out #

Patch Set 19 : internal before sharing #

Patch Set 20 : remainder stufft #

Total comments: 28

Patch Set 21 : addressing latest round of feedback #

Total comments: 3

Patch Set 22 : merging with master #

Total comments: 1

Patch Set 23 : test changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+484 lines, -1 line) Patch
M blimp/common/mandatory_callback.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +15 lines, -0 lines 0 comments Download
M blimp/common/proto/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A blimp/common/proto/helium.proto View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +59 lines, -0 lines 0 comments Download
M blimp/net/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +4 lines, -0 lines 0 comments Download
A blimp/net/helium/syncable.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +107 lines, -0 lines 0 comments Download
A blimp/net/helium/syncable_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +204 lines, -0 lines 0 comments Download
M blimp/net/helium/vector_clock.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +11 lines, -1 line 0 comments Download
M blimp/net/helium/vector_clock.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +11 lines, -0 lines 0 comments Download
A blimp/net/helium/vector_clock_generator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +33 lines, -0 lines 0 comments Download
A blimp/net/helium/vector_clock_generator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 70 (23 generated)
scf
4 years, 2 months ago (2016-09-29 18:15:52 UTC) #3
scf
some 2 questions/thoughts https://codereview.chromium.org/2382533002/diff/100001/blimp/net/helium/syncable.h File blimp/net/helium/syncable.h (right): https://codereview.chromium.org/2382533002/diff/100001/blimp/net/helium/syncable.h#newcode66 blimp/net/helium/syncable.h:66: VectorClock get_clock() { return clock_; } ...
4 years, 2 months ago (2016-09-29 18:26:53 UTC) #4
Sriram
https://codereview.chromium.org/2382533002/diff/100001/blimp/net/helium/syncable.h File blimp/net/helium/syncable.h (right): https://codereview.chromium.org/2382533002/diff/100001/blimp/net/helium/syncable.h#newcode17 blimp/net/helium/syncable.h:17: // SyncableObject and Syncable are conceptually very similar. Both ...
4 years, 2 months ago (2016-09-29 18:52:21 UTC) #6
Brian Goldman
https://codereview.chromium.org/2382533002/diff/100001/blimp/net/helium/syncable.h File blimp/net/helium/syncable.h (right): https://codereview.chromium.org/2382533002/diff/100001/blimp/net/helium/syncable.h#newcode17 blimp/net/helium/syncable.h:17: // SyncableObject and Syncable are conceptually very similar. Both ...
4 years, 2 months ago (2016-09-29 19:31:28 UTC) #8
Brian Goldman
https://codereview.chromium.org/2382533002/diff/100001/blimp/net/helium/syncable_unittest.cc File blimp/net/helium/syncable_unittest.cc (right): https://codereview.chromium.org/2382533002/diff/100001/blimp/net/helium/syncable_unittest.cc#newcode17 blimp/net/helium/syncable_unittest.cc:17: // ilustrate a sample implementation. Will replace with mocks. ...
4 years, 2 months ago (2016-09-29 19:44:23 UTC) #9
Kevin M
Haven't reviewed the unit tests yet, will look at them once the syncable.h feedback is ...
4 years, 2 months ago (2016-09-29 20:01:16 UTC) #10
CJ
https://codereview.chromium.org/2382533002/diff/100001/blimp/net/helium/syncable.h File blimp/net/helium/syncable.h (right): https://codereview.chromium.org/2382533002/diff/100001/blimp/net/helium/syncable.h#newcode13 blimp/net/helium/syncable.h:13: #include "vector_clock.h" Nit: I think you want to give ...
4 years, 2 months ago (2016-09-29 20:36:55 UTC) #11
scf
thanks for all the feedback. keep'em coming https://codereview.chromium.org/2382533002/diff/100001/blimp/common/proto/helium.proto File blimp/common/proto/helium.proto (right): https://codereview.chromium.org/2382533002/diff/100001/blimp/common/proto/helium.proto#newcode27 blimp/common/proto/helium.proto:27: message LegacyChangeset ...
4 years, 2 months ago (2016-09-29 23:13:39 UTC) #12
Brian Goldman
https://codereview.chromium.org/2382533002/diff/120001/blimp/net/helium/syncable.h File blimp/net/helium/syncable.h (right): https://codereview.chromium.org/2382533002/diff/120001/blimp/net/helium/syncable.h#newcode24 blimp/net/helium/syncable.h:24: // Syncable depends on its SyncableObject parent. Replace "Syncable" ...
4 years, 2 months ago (2016-09-29 23:18:03 UTC) #13
scf
https://codereview.chromium.org/2382533002/diff/120001/blimp/net/helium/syncable.cc File blimp/net/helium/syncable.cc (right): https://codereview.chromium.org/2382533002/diff/120001/blimp/net/helium/syncable.cc#newcode25 blimp/net/helium/syncable.cc:25: template class SyncableMember<int>; is there a way to write ...
4 years, 2 months ago (2016-09-29 23:20:08 UTC) #14
CJ
https://codereview.chromium.org/2382533002/diff/100001/blimp/net/helium/vector_clock.cc File blimp/net/helium/vector_clock.cc (right): https://codereview.chromium.org/2382533002/diff/100001/blimp/net/helium/vector_clock.cc#newcode58 blimp/net/helium/vector_clock.cc:58: helium::VectorClock result; On 2016/09/29 23:13:39, scf wrote: > On ...
4 years, 2 months ago (2016-09-29 23:44:00 UTC) #15
steimel
https://codereview.chromium.org/2382533002/diff/120001/blimp/net/helium/syncable.cc File blimp/net/helium/syncable.cc (right): https://codereview.chromium.org/2382533002/diff/120001/blimp/net/helium/syncable.cc#newcode25 blimp/net/helium/syncable.cc:25: template class SyncableMember<int>; On 2016/09/29 23:20:08, scf wrote: > ...
4 years, 2 months ago (2016-09-30 16:43:58 UTC) #16
scf
https://codereview.chromium.org/2382533002/diff/100001/blimp/net/helium/vector_clock.cc File blimp/net/helium/vector_clock.cc (right): https://codereview.chromium.org/2382533002/diff/100001/blimp/net/helium/vector_clock.cc#newcode58 blimp/net/helium/vector_clock.cc:58: helium::VectorClock result; On 2016/09/29 23:44:00, CJ wrote: > On ...
4 years, 2 months ago (2016-09-30 17:26:23 UTC) #17
Kevin M
https://codereview.chromium.org/2382533002/diff/140001/blimp/common/proto/helium.proto File blimp/common/proto/helium.proto (right): https://codereview.chromium.org/2382533002/diff/140001/blimp/common/proto/helium.proto#newcode7 blimp/common/proto/helium.proto:7: syntax = "proto3"; add blank line above this. https://codereview.chromium.org/2382533002/diff/140001/blimp/common/proto/helium.proto#newcode15 ...
4 years, 2 months ago (2016-09-30 18:34:37 UTC) #18
CJ
https://codereview.chromium.org/2382533002/diff/100001/blimp/net/helium/vector_clock.cc File blimp/net/helium/vector_clock.cc (right): https://codereview.chromium.org/2382533002/diff/100001/blimp/net/helium/vector_clock.cc#newcode58 blimp/net/helium/vector_clock.cc:58: helium::VectorClock result; On 2016/09/30 17:26:23, scf wrote: > On ...
4 years, 2 months ago (2016-09-30 19:47:12 UTC) #19
scf
https://codereview.chromium.org/2382533002/diff/100001/blimp/net/helium/vector_clock.cc File blimp/net/helium/vector_clock.cc (right): https://codereview.chromium.org/2382533002/diff/100001/blimp/net/helium/vector_clock.cc#newcode58 blimp/net/helium/vector_clock.cc:58: helium::VectorClock result; On 2016/09/30 19:47:12, CJ wrote: > On ...
4 years, 2 months ago (2016-09-30 22:13:24 UTC) #20
CJ
lgtm
4 years, 2 months ago (2016-10-03 20:28:07 UTC) #21
Kevin M
https://codereview.chromium.org/2382533002/diff/200001/blimp/common/proto/helium.proto File blimp/common/proto/helium.proto (right): https://codereview.chromium.org/2382533002/diff/200001/blimp/common/proto/helium.proto#newcode39 blimp/common/proto/helium.proto:39: // A message encapsulates the actual Changeset with the ...
4 years, 2 months ago (2016-10-03 21:44:27 UTC) #22
scf
https://codereview.chromium.org/2382533002/diff/200001/blimp/common/proto/helium.proto File blimp/common/proto/helium.proto (right): https://codereview.chromium.org/2382533002/diff/200001/blimp/common/proto/helium.proto#newcode39 blimp/common/proto/helium.proto:39: // A message encapsulates the actual Changeset with the ...
4 years, 2 months ago (2016-10-03 22:20:18 UTC) #23
Kevin M
https://codereview.chromium.org/2382533002/diff/220001/blimp/common/proto/helium.proto File blimp/common/proto/helium.proto (right): https://codereview.chromium.org/2382533002/diff/220001/blimp/common/proto/helium.proto#newcode14 blimp/common/proto/helium.proto:14: package blimp.helium; Recommend using the package "blimp.proto", so that ...
4 years, 2 months ago (2016-10-03 22:30:35 UTC) #24
scf
https://codereview.chromium.org/2382533002/diff/220001/blimp/common/proto/helium.proto File blimp/common/proto/helium.proto (right): https://codereview.chromium.org/2382533002/diff/220001/blimp/common/proto/helium.proto#newcode14 blimp/common/proto/helium.proto:14: package blimp.helium; On 2016/10/03 22:30:35, Kevin M wrote: > ...
4 years, 2 months ago (2016-10-03 22:52:33 UTC) #25
perumaal
https://codereview.chromium.org/2382533002/diff/140001/blimp/common/proto/helium.proto File blimp/common/proto/helium.proto (right): https://codereview.chromium.org/2382533002/diff/140001/blimp/common/proto/helium.proto#newcode19 blimp/common/proto/helium.proto:19: uint32 local_revision = 1; Following the semantics for timestamps, ...
4 years, 2 months ago (2016-10-04 00:07:37 UTC) #27
perumaal
4 years, 2 months ago (2016-10-04 00:07:38 UTC) #28
Kevin M
https://codereview.chromium.org/2382533002/diff/140001/blimp/common/proto/helium.proto File blimp/common/proto/helium.proto (right): https://codereview.chromium.org/2382533002/diff/140001/blimp/common/proto/helium.proto#newcode19 blimp/common/proto/helium.proto:19: uint32 local_revision = 1; On 2016/10/04 00:07:36, perumaal wrote: ...
4 years, 2 months ago (2016-10-04 00:49:37 UTC) #29
scf
https://codereview.chromium.org/2382533002/diff/140001/blimp/common/proto/helium.proto File blimp/common/proto/helium.proto (right): https://codereview.chromium.org/2382533002/diff/140001/blimp/common/proto/helium.proto#newcode19 blimp/common/proto/helium.proto:19: uint32 local_revision = 1; On 2016/10/04 00:49:37, Kevin M ...
4 years, 2 months ago (2016-10-04 17:07:20 UTC) #30
Kevin M
https://codereview.chromium.org/2382533002/diff/280001/blimp/net/helium/syncable.h File blimp/net/helium/syncable.h (right): https://codereview.chromium.org/2382533002/diff/280001/blimp/net/helium/syncable.h#newcode24 blimp/net/helium/syncable.h:24: // Changesets is a state that is propagated between ...
4 years, 2 months ago (2016-10-04 17:28:12 UTC) #31
scf
https://codereview.chromium.org/2382533002/diff/280001/blimp/net/helium/syncable.h File blimp/net/helium/syncable.h (right): https://codereview.chromium.org/2382533002/diff/280001/blimp/net/helium/syncable.h#newcode24 blimp/net/helium/syncable.h:24: // Changesets is a state that is propagated between ...
4 years, 2 months ago (2016-10-04 21:27:46 UTC) #32
steimel
https://codereview.chromium.org/2382533002/diff/320001/blimp/net/helium/syncable_unittest.cc File blimp/net/helium/syncable_unittest.cc (right): https://codereview.chromium.org/2382533002/diff/320001/blimp/net/helium/syncable_unittest.cc#newcode61 blimp/net/helium/syncable_unittest.cc:61: VectorClock last_modified_; Should we make this a protected member ...
4 years, 2 months ago (2016-10-05 00:57:38 UTC) #33
scf
https://codereview.chromium.org/2382533002/diff/320001/blimp/net/helium/syncable_unittest.cc File blimp/net/helium/syncable_unittest.cc (right): https://codereview.chromium.org/2382533002/diff/320001/blimp/net/helium/syncable_unittest.cc#newcode61 blimp/net/helium/syncable_unittest.cc:61: VectorClock last_modified_; On 2016/10/05 00:57:38, steimel wrote: > Should ...
4 years, 2 months ago (2016-10-05 16:45:11 UTC) #34
steimel
https://codereview.chromium.org/2382533002/diff/320001/blimp/net/helium/syncable_unittest.cc File blimp/net/helium/syncable_unittest.cc (right): https://codereview.chromium.org/2382533002/diff/320001/blimp/net/helium/syncable_unittest.cc#newcode61 blimp/net/helium/syncable_unittest.cc:61: VectorClock last_modified_; On 2016/10/05 16:45:10, scf wrote: > On ...
4 years, 2 months ago (2016-10-05 16:57:58 UTC) #35
Kevin M
https://codereview.chromium.org/2382533002/diff/320001/blimp/net/helium/syncable.h File blimp/net/helium/syncable.h (right): https://codereview.chromium.org/2382533002/diff/320001/blimp/net/helium/syncable.h#newcode81 blimp/net/helium/syncable.h:81: virtual void ApplyChangeset(const VectorClock& from, I'm not very comfortable ...
4 years, 2 months ago (2016-10-05 18:42:45 UTC) #36
Kevin M
https://codereview.chromium.org/2382533002/diff/320001/blimp/net/helium/syncable.h File blimp/net/helium/syncable.h (right): https://codereview.chromium.org/2382533002/diff/320001/blimp/net/helium/syncable.h#newcode81 blimp/net/helium/syncable.h:81: virtual void ApplyChangeset(const VectorClock& from, I'm not very comfortable ...
4 years, 2 months ago (2016-10-05 18:42:45 UTC) #37
perumaal
https://codereview.chromium.org/2382533002/diff/320001/blimp/net/helium/syncable.h File blimp/net/helium/syncable.h (right): https://codereview.chromium.org/2382533002/diff/320001/blimp/net/helium/syncable.h#newcode140 blimp/net/helium/syncable.h:140: VectorClock IncrementParentClock(); Why is there an IncrementParentClock / parent_clock ...
4 years, 2 months ago (2016-10-05 20:42:49 UTC) #38
scf
Updating after offline discussion with @wez and @kevin. The idea is to have the same ...
4 years, 2 months ago (2016-10-05 22:43:33 UTC) #39
scf
Updating after offline discussion with @wez and @kevin. The idea is to have the same ...
4 years, 2 months ago (2016-10-05 22:43:34 UTC) #40
Kevin M
https://codereview.chromium.org/2382533002/diff/380001/blimp/net/helium/syncable.h File blimp/net/helium/syncable.h (right): https://codereview.chromium.org/2382533002/diff/380001/blimp/net/helium/syncable.h#newcode33 blimp/net/helium/syncable.h:33: // objects (i.e. Simple register) or objects that the ...
4 years, 2 months ago (2016-10-05 23:41:31 UTC) #41
steimel
https://codereview.chromium.org/2382533002/diff/380001/blimp/net/helium/syncable.h File blimp/net/helium/syncable.h (right): https://codereview.chromium.org/2382533002/diff/380001/blimp/net/helium/syncable.h#newcode74 blimp/net/helium/syncable.h:74: virtual bool ModifiedSince(const VectorClock& from) = 0; Should this ...
4 years, 2 months ago (2016-10-06 17:44:33 UTC) #42
Kevin M
https://codereview.chromium.org/2382533002/diff/380001/blimp/net/helium/syncable.h File blimp/net/helium/syncable.h (right): https://codereview.chromium.org/2382533002/diff/380001/blimp/net/helium/syncable.h#newcode102 blimp/net/helium/syncable.h:102: const base::Closure& done) = 0; On 2016/10/05 23:41:30, Kevin ...
4 years, 2 months ago (2016-10-06 18:16:06 UTC) #43
scf
https://codereview.chromium.org/2382533002/diff/380001/blimp/net/helium/syncable.h File blimp/net/helium/syncable.h (right): https://codereview.chromium.org/2382533002/diff/380001/blimp/net/helium/syncable.h#newcode33 blimp/net/helium/syncable.h:33: // objects (i.e. Simple register) or objects that the ...
4 years, 2 months ago (2016-10-06 19:47:17 UTC) #44
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/2382533002/400001
4 years, 2 months ago (2016-10-06 22:51:34 UTC) #52
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 2 months ago (2016-10-06 22:51:38 UTC) #54
steimel
lgtm
4 years, 2 months ago (2016-10-06 23:02:14 UTC) #57
Kevin M
lgtm % test structure nits https://codereview.chromium.org/2382533002/diff/400001/blimp/net/helium/syncable_unittest.cc File blimp/net/helium/syncable_unittest.cc (right): https://codereview.chromium.org/2382533002/diff/400001/blimp/net/helium/syncable_unittest.cc#newcode155 blimp/net/helium/syncable_unittest.cc:155: void changeChild(FakeIntSyncable* child1, ChangeChild ...
4 years, 2 months ago (2016-10-06 23:26:19 UTC) #58
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/2382533002/440001
4 years, 2 months ago (2016-10-07 16:19:46 UTC) #63
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/2382533002/440001
4 years, 2 months ago (2016-10-07 17:48:04 UTC) #66
commit-bot: I haz the power
Committed patchset #23 (id:440001)
4 years, 2 months ago (2016-10-07 18:45:56 UTC) #68
commit-bot: I haz the power
4 years, 2 months ago (2016-10-07 18:47:49 UTC) #70
Message was sent while issue was closed.
Patchset 23 (id:??) landed as
https://crrev.com/d10e6413f024668200243747059fcbb9ef0e00aa
Cr-Commit-Position: refs/heads/master@{#423919}

Powered by Google App Engine
This is Rietveld 408576698