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

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

Issue 2387553002: [Sync] Removing duplicated includes between cc and h files. (Closed)
Patch Set: Fixing DataTypeStatusTable Created 4 years, 2 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
« no previous file with comments | « components/sync/engine/model_safe_worker.cc ('k') | components/sync/engine_impl/all_status.cc » ('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 #include <stdint.h>
6
7 #include "components/sync/engine/polling_constants.h" 5 #include "components/sync/engine/polling_constants.h"
8 6
9 namespace syncer { 7 namespace syncer {
10 8
11 // Server can overwrite these values via client commands. 9 // Server can overwrite these values via client commands.
12 // Standard short poll. This is used when XMPP is off. 10 // Standard short poll. This is used when XMPP is off.
13 // We use high values here to ensure that failure to receive poll updates from 11 // We use high values here to ensure that failure to receive poll updates from
14 // the server doesn't result in rapid-fire polling from the client due to low 12 // the server doesn't result in rapid-fire polling from the client due to low
15 // local limits. 13 // local limits.
16 const int64_t kDefaultShortPollIntervalSeconds = 3600 * 8; 14 const int64_t kDefaultShortPollIntervalSeconds = 3600 * 8;
(...skipping 15 matching lines...) Expand all
32 // DDoS if it were used as a seed for exponential backoff, although the client 30 // DDoS if it were used as a seed for exponential backoff, although the client
33 // would still follow exponential backoff. Useful for debugging and tests (when 31 // would still follow exponential backoff. Useful for debugging and tests (when
34 // you don't want to wait 5 minutes). 32 // you don't want to wait 5 minutes).
35 const int kInitialBackoffShortRetrySeconds = 1; 33 const int kInitialBackoffShortRetrySeconds = 1;
36 34
37 // Similar to kInitialBackoffRetrySeconds above, but only to be used in 35 // Similar to kInitialBackoffRetrySeconds above, but only to be used in
38 // certain exceptional error cases, such as MIGRATION_DONE. 36 // certain exceptional error cases, such as MIGRATION_DONE.
39 const int kInitialBackoffImmediateRetrySeconds = 0; 37 const int kInitialBackoffImmediateRetrySeconds = 0;
40 38
41 } // namespace syncer 39 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine/model_safe_worker.cc ('k') | components/sync/engine_impl/all_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698