OLD | NEW |
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 "sync/sessions/nudge_tracker.h" | 5 #include "sync/sessions/nudge_tracker.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "base/basictypes.h" | |
10 #include "sync/internal_api/public/engine/polling_constants.h" | 11 #include "sync/internal_api/public/engine/polling_constants.h" |
11 #include "sync/protocol/sync.pb.h" | 12 #include "sync/protocol/sync.pb.h" |
12 | 13 |
13 namespace syncer { | 14 namespace syncer { |
14 namespace sessions { | 15 namespace sessions { |
15 | 16 |
16 namespace { | 17 namespace { |
17 | 18 |
18 // Delays for syncer nudges. | 19 // Delays for syncer nudges. |
19 const int kDefaultNudgeDelayMilliseconds = 200; | 20 const int kDefaultNudgeDelayMilliseconds = 200; |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 } | 404 } |
404 } | 405 } |
405 } | 406 } |
406 | 407 |
407 void NudgeTracker::SetDefaultNudgeDelay(base::TimeDelta nudge_delay) { | 408 void NudgeTracker::SetDefaultNudgeDelay(base::TimeDelta nudge_delay) { |
408 minimum_local_nudge_delay_ = nudge_delay; | 409 minimum_local_nudge_delay_ = nudge_delay; |
409 } | 410 } |
410 | 411 |
411 } // namespace sessions | 412 } // namespace sessions |
412 } // namespace syncer | 413 } // namespace syncer |
OLD | NEW |