Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: sync/protocol/client_commands.proto

Issue 488843002: [Sync] Add support for server controlled nudge delays (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/internal_api/sync_manager_impl_unittest.cc ('k') | sync/sessions/data_type_tracker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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; 12 option optimize_for = LITE_RUNTIME;
13 option retain_unknown_fields = true; 13 option retain_unknown_fields = true;
14 14
15 package sync_pb; 15 package sync_pb;
16 16
17 message CustomNudgeDelay {
18 optional int32 datatype_id = 1; // Datatype id.
19 optional int32 delay_ms = 2; // Delay in milliseconds.
20 };
21
17 message ClientCommand { 22 message ClientCommand {
18 // Time to wait before sending any requests to the server. 23 // Time to wait before sending any requests to the server.
19 optional int32 set_sync_poll_interval = 1; // in seconds 24 optional int32 set_sync_poll_interval = 1; // in seconds
20 optional int32 set_sync_long_poll_interval = 2; // in seconds 25 optional int32 set_sync_long_poll_interval = 2; // in seconds
21 26
22 optional int32 max_commit_batch_size = 3; 27 optional int32 max_commit_batch_size = 3;
23 28
24 // Number of seconds to delay between a sessions 29 // Number of seconds to delay between a sessions action and sending a commit
25 // action and sending a commit message to the 30 // message to the server. Can be overridden by |custom_nudge_delays|.
26 // server
27 optional int32 sessions_commit_delay_seconds = 4; 31 optional int32 sessions_commit_delay_seconds = 4;
28 32
29 // Number of seconds to delay before the throttled client should retry. 33 // Number of seconds to delay before the throttled client should retry.
30 optional int32 throttle_delay_seconds = 5; 34 optional int32 throttle_delay_seconds = 5;
31 35
32 // Maximum number of local nudges to buffer per-type. 36 // Maximum number of local nudges to buffer per-type.
33 optional int32 client_invalidation_hint_buffer_size = 6; 37 optional int32 client_invalidation_hint_buffer_size = 6;
34 38
35 // Time to wait before issuing a retry GU. 39 // Time to wait before issuing a retry GU.
36 optional int32 gu_retry_delay_seconds = 7; 40 optional int32 gu_retry_delay_seconds = 7;
41
42 // A dictionary of custom nudge delays.
43 // Note: if a SESSIONS value is present, this will override
44 // |sessions_commit_delay_seconds|
45 // New in M39.
46 repeated CustomNudgeDelay custom_nudge_delays = 8;
37 }; 47 };
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl_unittest.cc ('k') | sync/sessions/data_type_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698