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

Unified Diff: sync/engine/sync_scheduler_impl.h

Issue 12317104: Remove canary member from SyncSessionJob (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 10 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.cc » ('j') | sync/engine/sync_scheduler_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/sync_scheduler_impl.h
diff --git a/sync/engine/sync_scheduler_impl.h b/sync/engine/sync_scheduler_impl.h
index 8f03e8945d811adcea1cd99a3f64b49facb98cbe..663c2ed8e1b7ec078e99d63674f492eb43a68403 100644
--- a/sync/engine/sync_scheduler_impl.h
+++ b/sync/engine/sync_scheduler_impl.h
@@ -171,7 +171,7 @@ class SYNC_EXPORT_PRIVATE SyncSchedulerImpl :
void ScheduleSyncSessionJob(scoped_ptr<SyncSessionJob> job);
// Invoke the Syncer to perform a sync.
- bool DoSyncSessionJob(scoped_ptr<SyncSessionJob> job);
+ bool DoSyncSessionJob(scoped_ptr<SyncSessionJob> job, bool is_canary);
// Called after the Syncer has performed the sync represented by |job|, to
// reset our state. |exited_prematurely| is true if the Syncer did not
@@ -195,7 +195,7 @@ class SYNC_EXPORT_PRIVATE SyncSchedulerImpl :
void HandleContinuationError(scoped_ptr<SyncSessionJob> old_job);
// Decide whether we should CONTINUE, SAVE or DROP the job.
- JobProcessDecision DecideOnJob(const SyncSessionJob& job);
+ JobProcessDecision DecideOnJob(const SyncSessionJob& job, bool is_canary);
// If DecideOnJob decides that |job| should be SAVEd, this function will
// carry out the task of actually "saving" (or coalescing) the job.
@@ -203,7 +203,8 @@ class SYNC_EXPORT_PRIVATE SyncSchedulerImpl :
// Decide on whether to CONTINUE, SAVE or DROP the job when we are in
// backoff mode.
- JobProcessDecision DecideWhileInWaitInterval(const SyncSessionJob& job);
+ JobProcessDecision DecideWhileInWaitInterval(const SyncSessionJob& job,
+ bool is_canary);
// 'Impl' here refers to real implementation of public functions, running on
// |thread_|.
« no previous file with comments | « no previous file | sync/engine/sync_scheduler_impl.cc » ('j') | sync/engine/sync_scheduler_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698