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

Unified Diff: sync/protocol/sync.proto

Issue 10916174: Implement a bag of chips for sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Follow review Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/engine/syncer_proto_util.cc ('k') | sync/syncable/directory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/protocol/sync.proto
diff --git a/sync/protocol/sync.proto b/sync/protocol/sync.proto
index 6d0622b211671d11765649b0e840793246fd31d1..5e637ed39c0ca4ff7464d38fc9ac9bb935170edd 100644
--- a/sync/protocol/sync.proto
+++ b/sync/protocol/sync.proto
@@ -463,6 +463,10 @@ message AuthenticateMessage {
required string auth_token = 1;
};
+// Opaque data used by the server to track the client with.
+message ChipBag {
+};
+
message ClientToServerMessage {
required string share = 1;
optional int32 protocol_version = 2 [default = 31];
@@ -491,6 +495,10 @@ message ClientToServerMessage {
// This is only sent on the first getupdates of every sync cycle,
// as an optimization to save bandwidth.
optional DebugInfo debug_info = 10;
+
+ // Per-client state for use by the server. Sent with every message sent to the
+ // server.
+ optional ChipBag bag_of_chips = 11;
};
message CommitResponse {
@@ -678,5 +686,9 @@ message ClientToServerResponse {
repeated int32 error_data_type_ids = 5;
}
optional Error error = 13;
+
+ // The new per-client state for this client. If set, should be persisted and
+ // sent with any subsequent ClientToServerMessages.
+ optional ChipBag new_bag_of_chips = 14;
};
« no previous file with comments | « sync/engine/syncer_proto_util.cc ('k') | sync/syncable/directory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698