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

Side by Side Diff: blimp/common/proto/helium.proto

Issue 2382533002: Helium: Initial proto and Syncable interface definition (Closed)
Patch Set: https://memegen.googleplex.com/4141705 Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // Over-the-wire message definitions used for the Helium synchronization
6 // protocol.
7
8 syntax = "proto3";
9
10 option optimize_for = LITE_RUNTIME;
11
12 import "blimp_message.proto";
13
14 package blimp.helium;
15
16 // Vector clock that is used to get the partial order of changes.
17 // This class is the proto definition of
18 // //blimp/net/helium/vector_clock.h
19 message VectorClockMessage {
20 uint32 local_revision = 1;
21 uint32 remote_revision = 2;
22 }
23
24 // Sample proto for test purposes
25 message TestChangesetMessage {
26 int32 value1 = 1;
27 int32 value2 = 2;
28 }
29
30 // A union of serializable Changeset types. There will be one for each Helium
31 // Object that requires serialization.
32 message ChangesetMessage {
33 oneof data {
34 // Sample message for the test
35 TestChangesetMessage test = 1;
36 };
37 }
38
39 // A message encapsulates the actual Changeset with the identifier of the
Kevin M 2016/10/03 21:44:26 This is already self-evident by the contents of th
scf 2016/10/03 22:20:17 Done.
40 // object and the timestamp of the checkpoint.
41 message HeliumMessage {
42 // Identifies the local revision that this changeset applies to (relative
43 // to the sender), and the remote revision that the local side most recently
44 // received (i.e. an ACK, in effect).
45 VectorClockMessage from = 1;
46
47 // Provides the local view of the vector-clock following application of
48 // the changeset. This allows a single changeset to collate changes across
49 // several revisions, following a break in connectivity, rather than simply
50 // re-transmitting the lost changesets.
51 VectorClockMessage to = 2;
52
53 // Identifies the Object to which this changeset applies.
54 uint32 object_id = 3;
55
56 // The changeset that contain the actual changes
Kevin M 2016/10/03 21:44:26 missing a trailing period
scf 2016/10/03 22:20:17 Done.
57 ChangesetMessage change = 4;
58 }
OLDNEW
« no previous file with comments | « blimp/common/proto/BUILD.gn ('k') | blimp/net/BUILD.gn » ('j') | blimp/net/helium/syncable.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698