OLD | NEW |
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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 // This flag is set if this GetUpdate request is due at least in part due | 485 // This flag is set if this GetUpdate request is due at least in part due |
486 // to the fact that this type has not finished initial sync yet, and the | 486 // to the fact that this type has not finished initial sync yet, and the |
487 // client would like to initialize itself with the server data. | 487 // client would like to initialize itself with the server data. |
488 // | 488 // |
489 // Only some types support performing an initial sync as part of a normal | 489 // Only some types support performing an initial sync as part of a normal |
490 // GetUpdate request. Many types must be in configure mode when fetching | 490 // GetUpdate request. Many types must be in configure mode when fetching |
491 // initial sync data. | 491 // initial sync data. |
492 // | 492 // |
493 // Introduced in M38. | 493 // Introduced in M38. |
494 optional bool initial_sync_in_progress = 7; | 494 optional bool initial_sync_in_progress = 7; |
| 495 |
| 496 // This flag is set if this GetUpdate request is due to client receiving |
| 497 // conflict response from server, so client needs to sync and then resolve |
| 498 // conflict locally, and then commit again. |
| 499 // |
| 500 // Introduced in M42. |
| 501 optional bool sync_for_resolve_conflict_in_progress = 8; |
495 } | 502 } |
496 | 503 |
497 message GarbageCollectionDirective { | 504 message GarbageCollectionDirective { |
498 enum Type { | 505 enum Type { |
499 UNKNOWN = 0; | 506 UNKNOWN = 0; |
500 VERSION_WATERMARK = 1; | 507 VERSION_WATERMARK = 1; |
501 AGE_WATERMARK = 2; | 508 AGE_WATERMARK = 2; |
502 MAX_ITEM_COUNT = 3; | 509 MAX_ITEM_COUNT = 3; |
503 } | 510 } |
504 | 511 |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
962 // Currently only meaningful if |error_type| is throttled. If this field | 969 // Currently only meaningful if |error_type| is throttled. If this field |
963 // is absent then the whole client (all datatypes) is throttled. | 970 // is absent then the whole client (all datatypes) is throttled. |
964 repeated int32 error_data_type_ids = 5; | 971 repeated int32 error_data_type_ids = 5; |
965 } | 972 } |
966 optional Error error = 13; | 973 optional Error error = 13; |
967 | 974 |
968 // The new per-client state for this client. If set, should be persisted and | 975 // The new per-client state for this client. If set, should be persisted and |
969 // sent with any subsequent ClientToServerMessages. | 976 // sent with any subsequent ClientToServerMessages. |
970 optional ChipBag new_bag_of_chips = 14; | 977 optional ChipBag new_bag_of_chips = 14; |
971 }; | 978 }; |
OLD | NEW |