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

Side by Side Diff: components/sync/engine_impl/cycle/nudge_tracker.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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "components/sync/engine_impl/cycle/nudge_tracker.h" 5 #include "components/sync/engine_impl/cycle/nudge_tracker.h"
6 6
7 #include <stddef.h>
8
9 #include <utility> 7 #include <utility>
10 8
11 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
12 #include "components/sync/engine/polling_constants.h" 10 #include "components/sync/engine/polling_constants.h"
13 #include "components/sync/protocol/sync.pb.h"
14 11
15 namespace syncer { 12 namespace syncer {
16 13
17 namespace { 14 namespace {
18 15
19 // Delays for syncer nudges. 16 // Delays for syncer nudges.
20 const int kDefaultNudgeDelayMilliseconds = 200; 17 const int kDefaultNudgeDelayMilliseconds = 200;
21 const int kSlowNudgeDelayMilliseconds = 2000; 18 const int kSlowNudgeDelayMilliseconds = 2000;
22 const int kDefaultSessionsCommitDelaySeconds = 10; 19 const int kDefaultSessionsCommitDelaySeconds = 10;
23 const int kSyncRefreshDelayMilliseconds = 500; 20 const int kSyncRefreshDelayMilliseconds = 500;
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 GetDefaultDelayForType(type, minimum_local_nudge_delay_)); 396 GetDefaultDelayForType(type, minimum_local_nudge_delay_));
400 } 397 }
401 } 398 }
402 } 399 }
403 400
404 void NudgeTracker::SetDefaultNudgeDelay(base::TimeDelta nudge_delay) { 401 void NudgeTracker::SetDefaultNudgeDelay(base::TimeDelta nudge_delay) {
405 minimum_local_nudge_delay_ = nudge_delay; 402 minimum_local_nudge_delay_ = nudge_delay;
406 } 403 }
407 404
408 } // namespace syncer 405 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/cycle/data_type_tracker.cc ('k') | components/sync/engine_impl/cycle/status_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698