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

Unified Diff: components/sync/driver/data_type_status_table.h

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Fix tools and iOS. Created 4 years, 3 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
Index: components/sync/driver/data_type_status_table.h
diff --git a/components/sync/driver/data_type_status_table.h b/components/sync/driver/data_type_status_table.h
index d367b91694c01200b1c1fe31dbba51d087803abd..226d047ac64bf2fe4ec661143279370019027064 100644
--- a/components/sync/driver/data_type_status_table.h
+++ b/components/sync/driver/data_type_status_table.h
@@ -10,12 +10,12 @@
#include "components/sync/driver/data_type_manager.h"
-namespace sync_driver {
+namespace syncer {
// Class to keep track of data types that have encountered an error during sync.
class DataTypeStatusTable {
public:
- typedef std::map<syncer::ModelType, syncer::SyncError> TypeErrorMap;
+ typedef std::map<ModelType, SyncError> TypeErrorMap;
DataTypeStatusTable();
DataTypeStatusTable(const DataTypeStatusTable& other);
@@ -34,42 +34,42 @@ class DataTypeStatusTable {
void ResetCryptoErrors();
// Resets those persistence errors that intersect with |purged_types|.
- void ResetPersistenceErrorsFrom(syncer::ModelTypeSet purged_types);
+ void ResetPersistenceErrorsFrom(ModelTypeSet purged_types);
// Removes |type| from the data_type_errors_ set. Returns true if the type
// was removed from the error set, false if the type did not have a data type
// error to begin with.
- bool ResetDataTypeErrorFor(syncer::ModelType type);
+ bool ResetDataTypeErrorFor(ModelType type);
// Removes |type| from the unread_errors_ set. Returns true if the type
// was removed from the error set, false if the type did not have an unready
// error to begin with.
- bool ResetUnreadyErrorFor(syncer::ModelType type);
+ bool ResetUnreadyErrorFor(ModelType type);
// Returns a list of all the errors this class has recorded.
TypeErrorMap GetAllErrors() const;
// Returns all types with failure errors. This includes, fatal, crypto, and
// unready types.`
- syncer::ModelTypeSet GetFailedTypes() const;
+ ModelTypeSet GetFailedTypes() const;
// Returns the types that are failing due to unrecoverable or datatype errors.
- syncer::ModelTypeSet GetFatalErrorTypes() const;
+ ModelTypeSet GetFatalErrorTypes() const;
// Returns the types that are failing due to cryptographer errors.
- syncer::ModelTypeSet GetCryptoErrorTypes() const;
+ ModelTypeSet GetCryptoErrorTypes() const;
// Returns the types that are failing due to persistence errors.
- syncer::ModelTypeSet GetPersistenceErrorTypes() const;
+ ModelTypeSet GetPersistenceErrorTypes() const;
// Returns the types that cannot be configured due to not being ready.
- syncer::ModelTypeSet GetUnreadyErrorTypes() const;
+ ModelTypeSet GetUnreadyErrorTypes() const;
// Returns the types that triggered the unrecoverable error.
- syncer::ModelTypeSet GetUnrecoverableErrorTypes() const;
+ ModelTypeSet GetUnrecoverableErrorTypes() const;
// Returns the current unrecoverable error, if there is one.
- syncer::SyncError GetUnrecoverableError() const;
+ SyncError GetUnrecoverableError() const;
private:
// The current unrecoverable errors. Only one unrecoverable error can be
@@ -93,6 +93,6 @@ class DataTypeStatusTable {
TypeErrorMap unready_errors_;
};
-} // namespace sync_driver
+} // namespace syncer
#endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_

Powered by Google App Engine
This is Rietveld 408576698