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

Unified Diff: components/sync/api/model_type_service.h

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync/api/model_type_change_processor.cc ('k') | components/sync/api/model_type_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/api/model_type_service.h
diff --git a/components/sync/api/model_type_service.h b/components/sync/api/model_type_service.h
index 21fc9af73c82140e82b24eaa663953520857d182..4006bd54489359fa2f4c7563345ce3ef03b97dc2 100644
--- a/components/sync/api/model_type_service.h
+++ b/components/sync/api/model_type_service.h
@@ -19,7 +19,7 @@
#include "components/sync/api/sync_error.h"
#include "components/sync/core/activation_context.h"
-namespace syncer {
+namespace syncer_v2 {
class DataBatch;
class MetadataChangeList;
@@ -29,16 +29,16 @@ class MetadataChangeList;
// metadata for entities, as well as the model type state.
class ModelTypeService : public base::SupportsWeakPtr<ModelTypeService> {
public:
- typedef base::Callback<void(SyncError, std::unique_ptr<DataBatch>)>
+ typedef base::Callback<void(syncer::SyncError, std::unique_ptr<DataBatch>)>
DataCallback;
typedef std::vector<std::string> StorageKeyList;
typedef base::Callback<std::unique_ptr<ModelTypeChangeProcessor>(
- ModelType type,
+ syncer::ModelType type,
ModelTypeService* service)>
ChangeProcessorFactory;
ModelTypeService(const ChangeProcessorFactory& change_processor_factory,
- ModelType type);
+ syncer::ModelType type);
virtual ~ModelTypeService();
@@ -59,7 +59,7 @@ class ModelTypeService : public base::SupportsWeakPtr<ModelTypeService> {
// combine all change atomically, should save the metadata after the data
// changes, so that this merge will be re-driven by sync if is not completely
// saved during the current run.
- virtual SyncError MergeSyncData(
+ virtual syncer::SyncError MergeSyncData(
std::unique_ptr<MetadataChangeList> metadata_change_list,
EntityDataMap entity_data_map) = 0;
@@ -68,7 +68,7 @@ class ModelTypeService : public base::SupportsWeakPtr<ModelTypeService> {
// |metadata_change_list| in case when some of the data changes are filtered
// out, or even be empty in case when a commit confirmation is processed and
// only the metadata needs to persisted.
- virtual SyncError ApplySyncChanges(
+ virtual syncer::SyncError ApplySyncChanges(
std::unique_ptr<MetadataChangeList> metadata_change_list,
EntityChangeList entity_changes) = 0;
@@ -110,8 +110,9 @@ class ModelTypeService : public base::SupportsWeakPtr<ModelTypeService> {
// Called by the DataTypeController to gather additional information needed
// before the processor can be connected to a sync worker. Once the
// metadata has been loaded, the info is collected and given to |callback|.
- void OnSyncStarting(std::unique_ptr<DataTypeErrorHandler> error_handler,
- const ModelTypeChangeProcessor::StartCallback& callback);
+ void OnSyncStarting(
+ std::unique_ptr<syncer::DataTypeErrorHandler> error_handler,
+ const ModelTypeChangeProcessor::StartCallback& callback);
// Indicates that we no longer want to do any sync-related things for this
// data type. Severs all ties to the sync thread, deletes all local sync
@@ -131,9 +132,9 @@ class ModelTypeService : public base::SupportsWeakPtr<ModelTypeService> {
ChangeProcessorFactory change_processor_factory_;
- const ModelType type_;
+ const syncer::ModelType type_;
};
-} // namespace syncer
+} // namespace syncer_v2
#endif // COMPONENTS_SYNC_API_MODEL_TYPE_SERVICE_H_
« no previous file with comments | « components/sync/api/model_type_change_processor.cc ('k') | components/sync/api/model_type_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698