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

Unified Diff: components/sync_driver/data_type_status_table.h

Issue 513543004: [Sync] Rename FailedDataTypesHandler -> DataTypeStatusTable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 6 years, 4 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/failed_data_types_handler.h b/components/sync_driver/data_type_status_table.h
similarity index 90%
rename from components/sync_driver/failed_data_types_handler.h
rename to components/sync_driver/data_type_status_table.h
index 985e75923dfb9dc22141e2581711a7c2d68f0906..f3bb19aadb4713283049771ecee0be515b2db5fc 100644
--- a/components/sync_driver/failed_data_types_handler.h
+++ b/components/sync_driver/data_type_status_table.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_SYNC_DRIVER_FAILED_DATA_TYPES_HANDLER_H_
-#define COMPONENTS_SYNC_DRIVER_FAILED_DATA_TYPES_HANDLER_H_
+#ifndef COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_
+#define COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_
#include <string>
@@ -12,12 +12,14 @@
namespace sync_driver {
// Class to keep track of data types that have encountered an error during sync.
-class FailedDataTypesHandler {
+class DataTypeStatusTable {
public:
typedef std::map<syncer::ModelType, syncer::SyncError> TypeErrorMap;
- explicit FailedDataTypesHandler();
- ~FailedDataTypesHandler();
+ explicit DataTypeStatusTable();
+ ~DataTypeStatusTable();
+
+ // Copy and assign welcome.
// Update the failed datatypes. Types will be added to their corresponding
// error map based on their |error_type()|.
@@ -90,10 +92,8 @@ class FailedDataTypesHandler {
// List of data types that could not start due to not being ready. These can
// be marked as ready by calling ResetUnreadyErrorFor(..).
TypeErrorMap unready_errors_;
-
- DISALLOW_COPY_AND_ASSIGN(FailedDataTypesHandler);
};
} // namespace sync_driver
-#endif // COMPONENTS_SYNC_DRIVER_FAILED_DATA_TYPES_HANDLER_H_
+#endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_
« no previous file with comments | « components/sync_driver/data_type_manager_impl_unittest.cc ('k') | components/sync_driver/data_type_status_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698