Chromium Code Reviews| Index: sync/protocol/client_commands.proto |
| diff --git a/sync/protocol/client_commands.proto b/sync/protocol/client_commands.proto |
| index e36914a3aa42fdc07c8072a1cfa51e800ed7e144..05d8f2a725d630a1c64f4bb1ccb73c1b254fb64b 100644 |
| --- a/sync/protocol/client_commands.proto |
| +++ b/sync/protocol/client_commands.proto |
| @@ -14,6 +14,11 @@ option retain_unknown_fields = true; |
| package sync_pb; |
| +message CustomNudgeDelay { |
| + optional int32 datatype_id = 1; // Datatype id. |
| + optional int32 delay_ms = 2; // Delay in milliseconds. |
| +}; |
| + |
| message ClientCommand { |
| // Time to wait before sending any requests to the server. |
| optional int32 set_sync_poll_interval = 1; // in seconds |
| @@ -21,9 +26,8 @@ message ClientCommand { |
| optional int32 max_commit_batch_size = 3; |
| - // Number of seconds to delay between a sessions |
| - // action and sending a commit message to the |
| - // server |
| + // Number of seconds to delay between a sessions action and sending a commit |
| + // message to the server. Can be overridden by |custom_nudge_delays|. |
| optional int32 sessions_commit_delay_seconds = 4; |
| // Number of seconds to delay before the throttled client should retry. |
| @@ -34,4 +38,9 @@ message ClientCommand { |
| // Time to wait before issuing a retry GU. |
| optional int32 gu_retry_delay_seconds = 7; |
| + |
| + // A dictionary of custom nudge delays. |
| + // Note: if a SESSIONS value is present, this will override |
| + // |sessions_commit_delay_seconds| |
|
rlarocque
2014/08/20 00:13:32
Comment: New in M39?
Nicolas Zea
2014/08/20 22:49:43
Done.
|
| + repeated CustomNudgeDelay custom_nudge_delays = 8; |
| }; |