OLD | NEW |
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/driver/data_type_manager.h" | 11 #include "components/sync/api/sync_error.h" |
| 12 #include "components/sync/base/model_type.h" |
12 | 13 |
13 namespace sync_driver { | 14 namespace sync_driver { |
14 | 15 |
15 // 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. |
16 class DataTypeStatusTable { | 17 class DataTypeStatusTable { |
17 public: | 18 public: |
18 typedef std::map<syncer::ModelType, syncer::SyncError> TypeErrorMap; | 19 typedef std::map<syncer::ModelType, syncer::SyncError> TypeErrorMap; |
19 | 20 |
20 DataTypeStatusTable(); | 21 DataTypeStatusTable(); |
21 DataTypeStatusTable(const DataTypeStatusTable& other); | 22 DataTypeStatusTable(const DataTypeStatusTable& other); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 TypeErrorMap persistence_errors_; | 90 TypeErrorMap persistence_errors_; |
90 | 91 |
91 // 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 |
92 // be marked as ready by calling ResetUnreadyErrorFor(..). | 93 // be marked as ready by calling ResetUnreadyErrorFor(..). |
93 TypeErrorMap unready_errors_; | 94 TypeErrorMap unready_errors_; |
94 }; | 95 }; |
95 | 96 |
96 } // namespace sync_driver | 97 } // namespace sync_driver |
97 | 98 |
98 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_ | 99 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_STATUS_TABLE_H_ |
OLD | NEW |