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

Side by Side Diff: components/sync/engine_impl/cycle/nudge_tracker.cc

Issue 2258873003: [Sync] Move sessions/ to engine/cycle/ and rename things to match. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 4 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/sessions_impl/nudge_tracker.h" 5 #include "components/sync/engine_impl/cycle/nudge_tracker.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "components/sync/engine/polling_constants.h" 12 #include "components/sync/engine/polling_constants.h"
13 #include "components/sync/protocol/sync.pb.h" 13 #include "components/sync/protocol/sync.pb.h"
14 14
15 namespace syncer { 15 namespace syncer {
16 namespace sessions {
17 16
18 namespace { 17 namespace {
19 18
20 // Delays for syncer nudges. 19 // Delays for syncer nudges.
21 const int kDefaultNudgeDelayMilliseconds = 200; 20 const int kDefaultNudgeDelayMilliseconds = 200;
22 const int kSlowNudgeDelayMilliseconds = 2000; 21 const int kSlowNudgeDelayMilliseconds = 2000;
23 const int kDefaultSessionsCommitDelaySeconds = 10; 22 const int kDefaultSessionsCommitDelaySeconds = 10;
24 const int kSyncRefreshDelayMilliseconds = 500; 23 const int kSyncRefreshDelayMilliseconds = 500;
25 const int kSyncSchedulerDelayMilliseconds = 250; 24 const int kSyncSchedulerDelayMilliseconds = 250;
26 25
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 type_iter->second->UpdateLocalNudgeDelay( 398 type_iter->second->UpdateLocalNudgeDelay(
400 GetDefaultDelayForType(type, minimum_local_nudge_delay_)); 399 GetDefaultDelayForType(type, minimum_local_nudge_delay_));
401 } 400 }
402 } 401 }
403 } 402 }
404 403
405 void NudgeTracker::SetDefaultNudgeDelay(base::TimeDelta nudge_delay) { 404 void NudgeTracker::SetDefaultNudgeDelay(base::TimeDelta nudge_delay) {
406 minimum_local_nudge_delay_ = nudge_delay; 405 minimum_local_nudge_delay_ = nudge_delay;
407 } 406 }
408 407
409 } // namespace sessions
410 } // namespace syncer 408 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/cycle/nudge_tracker.h ('k') | components/sync/engine_impl/cycle/nudge_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698