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

Side by Side Diff: components/sync/driver/data_type_status_table.h

Issue 2689773002: [Sync] Replace typedef with using. (Closed)
Patch Set: [Sync] Replace typedef with using. Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DATA_TYPE_STATUS_TABLE_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_
6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_ 6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "components/sync/base/model_type.h" 11 #include "components/sync/base/model_type.h"
12 #include "components/sync/model/sync_error.h" 12 #include "components/sync/model/sync_error.h"
13 13
14 namespace syncer { 14 namespace syncer {
15 15
16 // Class to keep track of data types that have encountered an error during sync. 16 // Class to keep track of data types that have encountered an error during sync.
17 class DataTypeStatusTable { 17 class DataTypeStatusTable {
18 public: 18 public:
19 typedef std::map<ModelType, SyncError> TypeErrorMap; 19 using TypeErrorMap = std::map<ModelType, SyncError>;
20 20
21 DataTypeStatusTable(); 21 DataTypeStatusTable();
22 DataTypeStatusTable(const DataTypeStatusTable& other); 22 DataTypeStatusTable(const DataTypeStatusTable& other);
23 ~DataTypeStatusTable(); 23 ~DataTypeStatusTable();
24 24
25 // Copy and assign welcome. 25 // Copy and assign welcome.
26 26
27 // Update the failed datatypes. Types will be added to their corresponding 27 // Update the failed datatypes. Types will be added to their corresponding
28 // error map based on their |error_type()|. 28 // error map based on their |error_type()|.
29 void UpdateFailedDataTypes(const TypeErrorMap& errors); 29 void UpdateFailedDataTypes(const TypeErrorMap& errors);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 TypeErrorMap persistence_errors_; 90 TypeErrorMap persistence_errors_;
91 91
92 // List of data types that could not start due to not being ready. These can 92 // List of data types that could not start due to not being ready. These can
93 // be marked as ready by calling ResetUnreadyErrorFor(..). 93 // be marked as ready by calling ResetUnreadyErrorFor(..).
94 TypeErrorMap unready_errors_; 94 TypeErrorMap unready_errors_;
95 }; 95 };
96 96
97 } // namespace syncer 97 } // namespace syncer
98 98
99 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_ 99 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_
OLDNEW
« no previous file with comments | « components/sync/driver/data_type_manager_impl.h ('k') | components/sync/driver/generic_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698