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

Side by Side Diff: components/sync/driver/glue/sync_backend_host_impl.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // subclasses can use them. 132 // subclasses can use them.
133 133
134 // Allows tests to perform alternate core initialization work. 134 // Allows tests to perform alternate core initialization work.
135 virtual void InitCore(std::unique_ptr<DoInitializeOptions> options); 135 virtual void InitCore(std::unique_ptr<DoInitializeOptions> options);
136 136
137 // Request the syncer to reconfigure with the specfied params. 137 // Request the syncer to reconfigure with the specfied params.
138 // Virtual for testing. 138 // Virtual for testing.
139 virtual void RequestConfigureSyncer( 139 virtual void RequestConfigureSyncer(
140 ConfigureReason reason, 140 ConfigureReason reason,
141 ModelTypeSet to_download, 141 ModelTypeSet to_download,
142 ModelTypeSet to_purge,
143 ModelTypeSet to_journal,
144 ModelTypeSet to_unapply,
145 ModelTypeSet to_ignore,
146 const ModelSafeRoutingInfo& routing_info, 142 const ModelSafeRoutingInfo& routing_info,
147 const base::Callback<void(ModelTypeSet, ModelTypeSet)>& ready_task, 143 const base::Callback<void(ModelTypeSet, ModelTypeSet)>& ready_task,
148 const base::Closure& retry_callback); 144 const base::Closure& retry_callback);
149 145
150 // Called when the syncer has finished performing a configuration. 146 // Called when the syncer has finished performing a configuration.
151 void FinishConfigureDataTypesOnFrontendLoop( 147 void FinishConfigureDataTypesOnFrontendLoop(
152 const ModelTypeSet enabled_types, 148 const ModelTypeSet enabled_types,
153 const ModelTypeSet succeeded_configuration_types, 149 const ModelTypeSet succeeded_configuration_types,
154 const ModelTypeSet failed_configuration_types, 150 const ModelTypeSet failed_configuration_types,
155 const base::Callback<void(ModelTypeSet, ModelTypeSet)>& ready_task); 151 const base::Callback<void(ModelTypeSet, ModelTypeSet)>& ready_task);
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 base::ThreadChecker thread_checker_; 336 base::ThreadChecker thread_checker_;
341 337
342 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; 338 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_;
343 339
344 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); 340 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl);
345 }; 341 };
346 342
347 } // namespace syncer 343 } // namespace syncer
348 344
349 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 345 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_core.cc ('k') | components/sync/driver/glue/sync_backend_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698