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 updated version of the GetUpdatesCallerInfo's | 587 // This value is an udpated 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]; | |
595 }; | 591 }; |
596 | 592 |
597 message AuthenticateMessage { | 593 message AuthenticateMessage { |
598 required string auth_token = 1; | 594 required string auth_token = 1; |
599 }; | 595 }; |
600 | 596 |
601 message ClearUserDataMessage { | 597 message ClearUserDataMessage { |
602 }; | 598 }; |
603 | 599 |
604 message ClearUserDataResponse { | 600 message ClearUserDataResponse { |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 // is absent then the whole client (all datatypes) is throttled. | 886 // is absent then the whole client (all datatypes) is throttled. |
891 repeated int32 error_data_type_ids = 5; | 887 repeated int32 error_data_type_ids = 5; |
892 } | 888 } |
893 optional Error error = 13; | 889 optional Error error = 13; |
894 | 890 |
895 // The new per-client state for this client. If set, should be persisted and | 891 // The new per-client state for this client. If set, should be persisted and |
896 // sent with any subsequent ClientToServerMessages. | 892 // sent with any subsequent ClientToServerMessages. |
897 optional ChipBag new_bag_of_chips = 14; | 893 optional ChipBag new_bag_of_chips = 14; |
898 }; | 894 }; |
899 | 895 |
OLD | NEW |