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

Side by Side Diff: sync/engine/polling_constants.cc

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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/engine/polling_constants.h ('k') | sync/engine/post_commit_message_command.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) 2010 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 #include "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "chrome/browser/sync/engine/polling_constants.h" 6 #include "sync/engine/polling_constants.h"
7 7
8 namespace browser_sync { 8 namespace browser_sync {
9 9
10 // Server can overwrite these values via client commands. 10 // Server can overwrite these values via client commands.
11 // Standard short poll. This is used when XMPP is off. 11 // Standard short poll. This is used when XMPP is off.
12 // We use high values here to ensure that failure to receive poll updates from 12 // We use high values here to ensure that failure to receive poll updates from
13 // the server doesn't result in rapid-fire polling from the client due to low 13 // the server doesn't result in rapid-fire polling from the client due to low
14 // local limits. 14 // local limits.
15 const int64 kDefaultShortPollIntervalSeconds = 3600 * 8; 15 const int64 kDefaultShortPollIntervalSeconds = 3600 * 8;
16 // Long poll is used when XMPP is on. 16 // Long poll is used when XMPP is on.
17 const int64 kDefaultLongPollIntervalSeconds = 3600 * 12; 17 const int64 kDefaultLongPollIntervalSeconds = 3600 * 12;
18 18
19 // Maximum interval for exponential backoff. 19 // Maximum interval for exponential backoff.
20 const int64 kMaxBackoffSeconds = 60 * 60 * 4; // 4 hours. 20 const int64 kMaxBackoffSeconds = 60 * 60 * 4; // 4 hours.
21 21
22 // Backoff interval randomization factor. 22 // Backoff interval randomization factor.
23 const int kBackoffRandomizationFactor = 2; 23 const int kBackoffRandomizationFactor = 2;
24 24
25 } // namespace browser_sync 25 } // namespace browser_sync
26 26
OLDNEW
« no previous file with comments | « sync/engine/polling_constants.h ('k') | sync/engine/post_commit_message_command.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698