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

Side by Side Diff: components/sync/engine/fake_sync_manager.h

Issue 2563883006: [Sync] Separate purge types step from sync manager configuration. (Closed)
Patch Set: Created 4 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 COMPONENTS_SYNC_ENGINE_FAKE_SYNC_MANAGER_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_FAKE_SYNC_MANAGER_H_
6 #define COMPONENTS_SYNC_ENGINE_FAKE_SYNC_MANAGER_H_ 6 #define COMPONENTS_SYNC_ENGINE_FAKE_SYNC_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Block until the sync thread has finished processing any pending messages. 69 // Block until the sync thread has finished processing any pending messages.
70 void WaitForSyncThread(); 70 void WaitForSyncThread();
71 71
72 // SyncManager implementation. 72 // SyncManager implementation.
73 // Note: we treat whatever message loop this is called from as the sync 73 // Note: we treat whatever message loop this is called from as the sync
74 // loop for purposes of callbacks. 74 // loop for purposes of callbacks.
75 void Init(InitArgs* args) override; 75 void Init(InitArgs* args) override;
76 ModelTypeSet InitialSyncEndedTypes() override; 76 ModelTypeSet InitialSyncEndedTypes() override;
77 ModelTypeSet GetTypesWithEmptyProgressMarkerToken( 77 ModelTypeSet GetTypesWithEmptyProgressMarkerToken(
78 ModelTypeSet types) override; 78 ModelTypeSet types) override;
79 bool PurgePartiallySyncedTypes() override; 79 void PurgePartiallySyncedTypes() override;
80 void PurgeDisabledTypes(ModelTypeSet to_purge,
81 ModelTypeSet to_journal,
82 ModelTypeSet to_unapply) override;
80 void UpdateCredentials(const SyncCredentials& credentials) override; 83 void UpdateCredentials(const SyncCredentials& credentials) override;
81 void StartSyncingNormally(const ModelSafeRoutingInfo& routing_info, 84 void StartSyncingNormally(const ModelSafeRoutingInfo& routing_info,
82 base::Time last_poll_time) override; 85 base::Time last_poll_time) override;
83 void ConfigureSyncer(ConfigureReason reason, 86 void ConfigureSyncer(ConfigureReason reason,
84 ModelTypeSet to_download, 87 ModelTypeSet to_download,
85 ModelTypeSet to_purge,
86 ModelTypeSet to_journal,
87 ModelTypeSet to_unapply,
88 const ModelSafeRoutingInfo& new_routing_info, 88 const ModelSafeRoutingInfo& new_routing_info,
89 const base::Closure& ready_task, 89 const base::Closure& ready_task,
90 const base::Closure& retry_task) override; 90 const base::Closure& retry_task) override;
91 void OnIncomingInvalidation( 91 void OnIncomingInvalidation(
92 ModelType type, 92 ModelType type,
93 std::unique_ptr<InvalidationInterface> interface) override; 93 std::unique_ptr<InvalidationInterface> interface) override;
94 void SetInvalidatorEnabled(bool invalidator_enabled) override; 94 void SetInvalidatorEnabled(bool invalidator_enabled) override;
95 void AddObserver(Observer* observer) override; 95 void AddObserver(Observer* observer) override;
96 void RemoveObserver(Observer* observer) override; 96 void RemoveObserver(Observer* observer) override;
97 SyncStatus GetDetailedStatus() const override; 97 SyncStatus GetDetailedStatus() const override;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 // Number of invalidations received since startup. 150 // Number of invalidations received since startup.
151 int num_invalidations_received_; 151 int num_invalidations_received_;
152 152
153 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); 153 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager);
154 }; 154 };
155 155
156 } // namespace syncer 156 } // namespace syncer
157 157
158 #endif // COMPONENTS_SYNC_ENGINE_FAKE_SYNC_MANAGER_H_ 158 #endif // COMPONENTS_SYNC_ENGINE_FAKE_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_impl.cc ('k') | components/sync/engine/fake_sync_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698