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

Side by Side Diff: sync/internal_api/sync_rollback_manager_base.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SYNC_ROLLBACK_MANAGER_BASE_H_ 5 #ifndef SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_
6 #define SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_ 6 #define SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 23 matching lines...) Expand all
34 public: 34 public:
35 SyncRollbackManagerBase(); 35 SyncRollbackManagerBase();
36 ~SyncRollbackManagerBase() override; 36 ~SyncRollbackManagerBase() override;
37 37
38 // SyncManager implementation. 38 // SyncManager implementation.
39 ModelTypeSet InitialSyncEndedTypes() override; 39 ModelTypeSet InitialSyncEndedTypes() override;
40 ModelTypeSet GetTypesWithEmptyProgressMarkerToken( 40 ModelTypeSet GetTypesWithEmptyProgressMarkerToken(
41 ModelTypeSet types) override; 41 ModelTypeSet types) override;
42 bool PurgePartiallySyncedTypes() override; 42 bool PurgePartiallySyncedTypes() override;
43 void UpdateCredentials(const SyncCredentials& credentials) override; 43 void UpdateCredentials(const SyncCredentials& credentials) override;
44 void StartSyncingNormally(const ModelSafeRoutingInfo& routing_info, 44 void StartSyncingNormally(const ModelSafeRoutingInfo& routing_info) override;
45 base::Time last_poll_time) override;
46 void ConfigureSyncer(ConfigureReason reason, 45 void ConfigureSyncer(ConfigureReason reason,
47 ModelTypeSet to_download, 46 ModelTypeSet to_download,
48 ModelTypeSet to_purge, 47 ModelTypeSet to_purge,
49 ModelTypeSet to_journal, 48 ModelTypeSet to_journal,
50 ModelTypeSet to_unapply, 49 ModelTypeSet to_unapply,
51 const ModelSafeRoutingInfo& new_routing_info, 50 const ModelSafeRoutingInfo& new_routing_info,
52 const base::Closure& ready_task, 51 const base::Closure& ready_task,
53 const base::Closure& retry_task) override; 52 const base::Closure& retry_task) override;
54 void SetInvalidatorEnabled(bool invalidator_enabled) override; 53 void SetInvalidatorEnabled(bool invalidator_enabled) override;
55 void OnIncomingInvalidation( 54 void OnIncomingInvalidation(
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 bool initialized_; 135 bool initialized_;
137 136
138 base::WeakPtrFactory<SyncRollbackManagerBase> weak_ptr_factory_; 137 base::WeakPtrFactory<SyncRollbackManagerBase> weak_ptr_factory_;
139 138
140 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManagerBase); 139 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManagerBase);
141 }; 140 };
142 141
143 } // namespace syncer 142 } // namespace syncer
144 143
145 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_ 144 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « sync/internal_api/sync_rollback_manager.cc ('k') | sync/internal_api/sync_rollback_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698