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

Unified Diff: sync/engine/sync_scheduler.h

Issue 10006046: Abort sync cycles when download step fails (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rearrange SetSyncerStepsForPurpose Created 8 years, 8 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.cc » ('j') | sync/engine/sync_scheduler.cc » ('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 d5ff4c0a44522a1223f4be14e9118b5313c491f9..4ec621d77b45c72bbb4c13c992234b5cea4f4ced 100644
--- a/sync/engine/sync_scheduler.h
+++ b/sync/engine/sync_scheduler.h
@@ -179,6 +179,7 @@ class SyncScheduler : public sessions::SyncSession::Delegate {
};
friend class SyncSchedulerTest;
friend class SyncSchedulerWhiteboxTest;
+ friend class SyncerTest;
FRIEND_TEST_ALL_PREFIXES(SyncSchedulerWhiteboxTest,
DropNudgeWhileExponentialBackOff);
@@ -247,6 +248,12 @@ class SyncScheduler : public sessions::SyncSession::Delegate {
static const char* GetDecisionString(JobProcessDecision decision);
+ // Assign |start| and |end| to appropriate SyncerStep values for the
+ // specified |purpose|.
+ static void SetSyncerStepsForPurpose(
+ SyncSessionJob::SyncSessionJobPurpose purpose,
+ SyncerStep* start, SyncerStep* end);
Nicolas Zea 2012/04/09 19:09:14 have params on separate lines for consistency with
+
// Helpers that log before posting to |sync_loop_|. These will only post
// the task in between calls to Start/Stop.
void PostTask(const tracked_objects::Location& from_here,
@@ -340,12 +347,6 @@ class SyncScheduler : public sessions::SyncSession::Delegate {
// Creates a session for a poll and performs the sync.
void PollTimerCallback();
- // Assign |start| and |end| to appropriate SyncerStep values for the
- // specified |purpose|.
- void SetSyncerStepsForPurpose(SyncSessionJob::SyncSessionJobPurpose purpose,
- SyncerStep* start,
- SyncerStep* end);
-
// Used to update |connection_code_|, see below.
void UpdateServerConnectionManagerStatus(
HttpResponse::ServerConnectionCode code);
« no previous file with comments | « no previous file | sync/engine/sync_scheduler.cc » ('j') | sync/engine/sync_scheduler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698