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"; |
11 | 11 |
| 12 option optimize_for = LITE_RUNTIME; |
| 13 option retain_unknown_fields = true; |
| 14 |
12 package sync_pb; | 15 package sync_pb; |
13 | 16 |
14 message ClientCommand { | 17 message ClientCommand { |
15 // Time to wait before sending any requests to the server. | 18 // Time to wait before sending any requests to the server. |
16 optional int32 set_sync_poll_interval = 1; // in seconds | 19 optional int32 set_sync_poll_interval = 1; // in seconds |
17 optional int32 set_sync_long_poll_interval = 2; // in seconds | 20 optional int32 set_sync_long_poll_interval = 2; // in seconds |
18 | 21 |
19 optional int32 max_commit_batch_size = 3; | 22 optional int32 max_commit_batch_size = 3; |
20 | 23 |
21 // Number of seconds to delay between a sessions | 24 // Number of seconds to delay between a sessions |
22 // action and sending a commit message to the | 25 // action and sending a commit message to the |
23 // server | 26 // server |
24 optional int32 sessions_commit_delay_seconds = 4; | 27 optional int32 sessions_commit_delay_seconds = 4; |
25 | 28 |
26 // Number of seconds to delay before the throttled client should retry. | 29 // Number of seconds to delay before the throttled client should retry. |
27 optional int32 throttle_delay_seconds = 5; | 30 optional int32 throttle_delay_seconds = 5; |
28 }; | 31 }; |
OLD | NEW |