OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 // Time to wait before sending any requests to the server. | 579 // Time to wait before sending any requests to the server. |
580 optional int32 set_sync_poll_interval = 1; // in seconds | 580 optional int32 set_sync_poll_interval = 1; // in seconds |
581 optional int32 set_sync_long_poll_interval = 2; // in seconds | 581 optional int32 set_sync_long_poll_interval = 2; // in seconds |
582 | 582 |
583 optional int32 max_commit_batch_size = 3; | 583 optional int32 max_commit_batch_size = 3; |
584 | 584 |
585 // Number of seconds to delay between a sessions | 585 // Number of seconds to delay between a sessions |
586 // action and sending a commit message to the | 586 // action and sending a commit message to the |
587 // server | 587 // server |
588 optional int32 sessions_commit_delay_seconds = 4; | 588 optional int32 sessions_commit_delay_seconds = 4; |
| 589 |
| 590 // Number of seconds to delay before the throttled client should retry. |
| 591 optional int32 throttle_delay_seconds = 5; |
589 }; | 592 }; |
590 | 593 |
591 message ClientToServerResponse { | 594 message ClientToServerResponse { |
592 optional CommitResponse commit = 1; | 595 optional CommitResponse commit = 1; |
593 optional GetUpdatesResponse get_updates = 2; | 596 optional GetUpdatesResponse get_updates = 2; |
594 optional AuthenticateResponse authenticate = 3; | 597 optional AuthenticateResponse authenticate = 3; |
595 optional ClearUserDataResponse clear_user_data = 9; | 598 optional ClearUserDataResponse clear_user_data = 9; |
596 optional GetUpdatesMetadataResponse stream_metadata = 10; | 599 optional GetUpdatesMetadataResponse stream_metadata = 10; |
597 // If GetUpdatesStreamingResponse is contained in the ClientToServerResponse, | 600 // If GetUpdatesStreamingResponse is contained in the ClientToServerResponse, |
598 // none of the other fields (error_code and etc) will be set. | 601 // none of the other fields (error_code and etc) will be set. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 optional string store_birthday = 6; | 644 optional string store_birthday = 6; |
642 | 645 |
643 optional ClientCommand client_command = 7; | 646 optional ClientCommand client_command = 7; |
644 optional ProfilingData profiling_data = 8; | 647 optional ProfilingData profiling_data = 8; |
645 | 648 |
646 // The data types whose storage has been migrated. Present when the value of | 649 // The data types whose storage has been migrated. Present when the value of |
647 // error_code is MIGRATION_DONE. | 650 // error_code is MIGRATION_DONE. |
648 repeated int32 migrated_data_type_id = 12; | 651 repeated int32 migrated_data_type_id = 12; |
649 }; | 652 }; |
650 | 653 |
OLD | NEW |