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

Unified Diff: sync/engine/sync_scheduler.h

Issue 10917234: sync: make scheduling logic and job ownership more obvious. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test + comment + rebase Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sync/engine/sync_scheduler_impl.h » ('j') | sync/engine/sync_scheduler_impl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/sync_scheduler.h
diff --git a/sync/engine/sync_scheduler.h b/sync/engine/sync_scheduler.h
index d251b98599378ba202ec3babf969037ff5998195..94a35b1464e3c2ed30471eb91a5dca93bfbe7bb6 100644
--- a/sync/engine/sync_scheduler.h
+++ b/sync/engine/sync_scheduler.h
@@ -85,6 +85,9 @@ class SyncScheduler : public sessions::SyncSession::Delegate {
// The meat and potatoes. Both of these methods will post a delayed task
// to attempt the actual nudge (see ScheduleNudgeImpl).
+ // NOTE: |delay| is best-effort. If a nudge is already scheduled to depart
rlarocque 2012/09/24 21:15:14 Rename to max_delay? I think that would make the
akalin 2012/09/25 22:37:24 but it's not a max delay, right? the nudge can ha
tim (not reviewing) 2012/10/08 00:20:03 I renamed to desired_delay (following the base/tim
+ // earlier than Now() + delay, the scheduler can and will prefer to batch
+ // the two so that only one nudge is sent (at the earlier time).
virtual void ScheduleNudgeAsync(
const base::TimeDelta& delay,
NudgeSource source,
« no previous file with comments | « no previous file | sync/engine/sync_scheduler_impl.h » ('j') | sync/engine/sync_scheduler_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698