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

Side by Side Diff: sync/internal_api/public/sync_manager.h

Issue 1144443004: Revert of [Sync] Refactoring polling to be reliable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
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_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_
6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 // Purge from the directory those types with non-empty progress markers 291 // Purge from the directory those types with non-empty progress markers
292 // but without initial synced ended set. 292 // but without initial synced ended set.
293 // Returns false if an error occurred, true otherwise. 293 // Returns false if an error occurred, true otherwise.
294 virtual bool PurgePartiallySyncedTypes() = 0; 294 virtual bool PurgePartiallySyncedTypes() = 0;
295 295
296 // Update tokens that we're using in Sync. Email must stay the same. 296 // Update tokens that we're using in Sync. Email must stay the same.
297 virtual void UpdateCredentials(const SyncCredentials& credentials) = 0; 297 virtual void UpdateCredentials(const SyncCredentials& credentials) = 0;
298 298
299 // Put the syncer in normal mode ready to perform nudges and polls. 299 // Put the syncer in normal mode ready to perform nudges and polls.
300 virtual void StartSyncingNormally( 300 virtual void StartSyncingNormally(
301 const ModelSafeRoutingInfo& routing_info, 301 const ModelSafeRoutingInfo& routing_info) = 0;
302 base::Time last_poll_time) = 0;
303 302
304 // Switches the mode of operation to CONFIGURATION_MODE and performs 303 // Switches the mode of operation to CONFIGURATION_MODE and performs
305 // any configuration tasks needed as determined by the params. Once complete, 304 // any configuration tasks needed as determined by the params. Once complete,
306 // syncer will remain in CONFIGURATION_MODE until StartSyncingNormally is 305 // syncer will remain in CONFIGURATION_MODE until StartSyncingNormally is
307 // called. 306 // called.
308 // Data whose types are not in |new_routing_info| are purged from sync 307 // Data whose types are not in |new_routing_info| are purged from sync
309 // directory, unless they're part of |to_ignore|, in which case they're left 308 // directory, unless they're part of |to_ignore|, in which case they're left
310 // untouched. The purged data is backed up in delete journal for recovery in 309 // untouched. The purged data is backed up in delete journal for recovery in
311 // next session if its type is in |to_journal|. If in |to_unapply| 310 // next session if its type is in |to_journal|. If in |to_unapply|
312 // only the local data is removed; the server data is preserved. 311 // only the local data is removed; the server data is preserved.
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 syncer::TypeDebugInfoObserver* observer) = 0; 391 syncer::TypeDebugInfoObserver* observer) = 0;
393 392
394 // Request that all current counter values be emitted as though they had just 393 // Request that all current counter values be emitted as though they had just
395 // been updated. Useful for initializing new observers' state. 394 // been updated. Useful for initializing new observers' state.
396 virtual void RequestEmitDebugInfo() = 0; 395 virtual void RequestEmitDebugInfo() = 0;
397 }; 396 };
398 397
399 } // namespace syncer 398 } // namespace syncer
400 399
401 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ 400 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/sessions/sync_session_snapshot_unittest.cc ('k') | sync/internal_api/public/test/fake_sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698