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

Side by Side Diff: sync/protocol/sync.proto

Issue 10920017: [Sync] Generalize StringOrdinal to handle ordinal_in_parent field (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix another compile error 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Sync protocol for communication between sync client and server. 5 // Sync protocol for communication between sync client and server.
6 6
7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change
8 // any fields in this file. 8 // any fields in this file.
9 9
10 syntax = "proto2"; 10 syntax = "proto2";
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // If present in Commit updates for the entity, it will be ignored. 301 // If present in Commit updates for the entity, it will be ignored.
302 // 302 //
303 // Available in version 24+. 303 // Available in version 24+.
304 // 304 //
305 // May be returned in GetUpdatesMessage and sent up in CommitMessage. 305 // May be returned in GetUpdatesMessage and sent up in CommitMessage.
306 // 306 //
307 optional string client_defined_unique_tag = 23; 307 optional string client_defined_unique_tag = 23;
308 308
309 // Supplies an ordinal for this item, relative to other items with the 309 // Supplies an ordinal for this item, relative to other items with the
310 // same parent. Ordinals are ordered lexicographically bytewise. 310 // same parent. Ordinals are ordered lexicographically bytewise.
311 // Ordinals must be a least 8 bytes (for backwards compatibility), and 311 // Ordinals must be at least 8 bytes (for backwards compatibility), and
312 // must not be all zeroes. 312 // must not be all zeroes.
313 // 313 //
314 // Clients should not make sure that each item they know of has a 314 // Clients should not make sure that each item they know of has a
315 // unique ordinal-in-parent. However, updates from the server might 315 // unique ordinal-in-parent. However, updates from the server might
316 // break this invariant. In that case, among the items with the 316 // break this invariant. In that case, among the items with the
317 // same ordinal-in-parent, a client should randomly pick one, and 317 // same ordinal-in-parent, a client should randomly pick one, and
rlarocque 2012/09/05 21:43:46 "randomly pick one" will limit our ability to test
akalin 2012/09/06 19:25:14 A secondary goal was to minimize the number of con
rlarocque 2012/09/06 21:25:55 I'm not convinced, but this is the wrong place for
318 // then perturb the ordinal-in-parents of all the other ones (within 318 // then perturb the ordinal-in-parents of all the other ones (within
319 // the bounds of the preceding and succeeding ordinal-in-parent) 319 // the bounds of the preceding and succeeding ordinal-in-parent)
320 // until they're unique; a byte of randomness per item should be 320 // until they're unique; a byte of randomness per item should be
321 // more than enough. 321 // more than enough.
322 // 322 //
323 // Available in version 31+. 323 // Available in version 31+.
324 // 324 //
325 // Present in both GetUpdatesResponse and CommitMessage. 325 // Present in both GetUpdatesResponse and CommitMessage.
326 // 326 //
327 // In a CommitMessage context, server implementations may choose whether 327 // In a CommitMessage context, server implementations may choose whether
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 optional string url = 3; 673 optional string url = 3;
674 optional SyncEnums.Action action = 4 [default = UNKNOWN_ACTION]; 674 optional SyncEnums.Action action = 4 [default = UNKNOWN_ACTION];
675 675
676 // Currently only meaningful if |error_type| is throttled. If this field 676 // Currently only meaningful if |error_type| is throttled. If this field
677 // is absent then the whole client (all datatypes) is throttled. 677 // is absent then the whole client (all datatypes) is throttled.
678 repeated int32 error_data_type_ids = 5; 678 repeated int32 error_data_type_ids = 5;
679 } 679 }
680 optional Error error = 13; 680 optional Error error = 13;
681 }; 681 };
682 682
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698