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

Side by Side Diff: sync/engine/sync_scheduler_impl.h

Issue 171813013: sync: Merge GU retry logic into normal GU (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « sync/engine/get_updates_processor_unittest.cc ('k') | sync/engine/sync_scheduler_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #ifndef SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ 5 #ifndef SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_
6 #define SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ 6 #define SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // Invoke the syncer to perform a configuration job. 154 // Invoke the syncer to perform a configuration job.
155 void DoConfigurationSyncSessionJob(JobPriority priority); 155 void DoConfigurationSyncSessionJob(JobPriority priority);
156 156
157 // Helper function for Do{Nudge,Configuration}SyncSessionJob. 157 // Helper function for Do{Nudge,Configuration}SyncSessionJob.
158 void HandleFailure( 158 void HandleFailure(
159 const sessions::ModelNeutralState& model_neutral_state); 159 const sessions::ModelNeutralState& model_neutral_state);
160 160
161 // Invoke the Syncer to perform a poll job. 161 // Invoke the Syncer to perform a poll job.
162 void DoPollSyncSessionJob(); 162 void DoPollSyncSessionJob();
163 163
164 // Invoke the Syncer to perform a retry job.
165 void DoRetrySyncSessionJob();
166
167 // Helper function to calculate poll interval. 164 // Helper function to calculate poll interval.
168 base::TimeDelta GetPollInterval(); 165 base::TimeDelta GetPollInterval();
169 166
170 // Adjusts the poll timer to account for new poll interval, and possibly 167 // Adjusts the poll timer to account for new poll interval, and possibly
171 // resets the poll interval, depedning on the flag's value. 168 // resets the poll interval, depedning on the flag's value.
172 void AdjustPolling(PollAdjustType type); 169 void AdjustPolling(PollAdjustType type);
173 170
174 // Helper to restart waiting with |wait_interval_|'s timer. 171 // Helper to restart waiting with |wait_interval_|'s timer.
175 void RestartWaiting(); 172 void RestartWaiting();
176 173
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 // A second factory specially for weak_handle_this_, to allow the handle 327 // A second factory specially for weak_handle_this_, to allow the handle
331 // to be const and alleviate threading concerns. 328 // to be const and alleviate threading concerns.
332 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_; 329 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_;
333 330
334 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl); 331 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl);
335 }; 332 };
336 333
337 } // namespace syncer 334 } // namespace syncer
338 335
339 #endif // SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ 336 #endif // SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_
OLDNEW
« no previous file with comments | « sync/engine/get_updates_processor_unittest.cc ('k') | sync/engine/sync_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698