| 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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 // Note: this should typically only be set on the first GetUpdates a client | 577 // Note: this should typically only be set on the first GetUpdates a client |
| 578 // requests. Clients are expected to persist the encryption key from then on. | 578 // requests. Clients are expected to persist the encryption key from then on. |
| 579 // The allowed frequency for requesting encryption keys is much lower than | 579 // The allowed frequency for requesting encryption keys is much lower than |
| 580 // other datatypes, so repeated usage will likely result in throttling. | 580 // other datatypes, so repeated usage will likely result in throttling. |
| 581 optional bool need_encryption_key = 8 [default = false]; | 581 optional bool need_encryption_key = 8 [default = false]; |
| 582 | 582 |
| 583 // Whether to create the mobile bookmarks folder if it's not | 583 // Whether to create the mobile bookmarks folder if it's not |
| 584 // already created. Should be set to true only by mobile clients. | 584 // already created. Should be set to true only by mobile clients. |
| 585 optional bool create_mobile_bookmarks_folder = 1000 [default = false]; | 585 optional bool create_mobile_bookmarks_folder = 1000 [default = false]; |
| 586 | 586 |
| 587 // This value is an udpated version of the GetUpdatesCallerInfo's | 587 // This value is an updated version of the GetUpdatesCallerInfo's |
| 588 // GetUpdatesSource. It describes the reason for the GetUpdate request. | 588 // GetUpdatesSource. It describes the reason for the GetUpdate request. |
| 589 // Introduced in M29. | 589 // Introduced in M29. |
| 590 optional SyncEnums.GetUpdatesOrigin get_updates_origin = 9; | 590 optional SyncEnums.GetUpdatesOrigin get_updates_origin = 9; |
| 591 |
| 592 // Whether this GU also serves as a retry GU. Any GU that happens after |
| 593 // retry timer timeout is a retry GU effectively. |
| 594 optional bool is_retry = 10 [default = false]; |
| 591 }; | 595 }; |
| 592 | 596 |
| 593 message AuthenticateMessage { | 597 message AuthenticateMessage { |
| 594 required string auth_token = 1; | 598 required string auth_token = 1; |
| 595 }; | 599 }; |
| 596 | 600 |
| 597 message ClearUserDataMessage { | 601 message ClearUserDataMessage { |
| 598 }; | 602 }; |
| 599 | 603 |
| 600 message ClearUserDataResponse { | 604 message ClearUserDataResponse { |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 886 // is absent then the whole client (all datatypes) is throttled. | 890 // is absent then the whole client (all datatypes) is throttled. |
| 887 repeated int32 error_data_type_ids = 5; | 891 repeated int32 error_data_type_ids = 5; |
| 888 } | 892 } |
| 889 optional Error error = 13; | 893 optional Error error = 13; |
| 890 | 894 |
| 891 // The new per-client state for this client. If set, should be persisted and | 895 // The new per-client state for this client. If set, should be persisted and |
| 892 // sent with any subsequent ClientToServerMessages. | 896 // sent with any subsequent ClientToServerMessages. |
| 893 optional ChipBag new_bag_of_chips = 14; | 897 optional ChipBag new_bag_of_chips = 14; |
| 894 }; | 898 }; |
| 895 | 899 |
| OLD | NEW |