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/api/sync_error.h" | |
12 #include "components/sync/base/model_type.h" | 11 #include "components/sync/base/model_type.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 typedef std::map<ModelType, SyncError> TypeErrorMap; |
20 | 20 |
21 DataTypeStatusTable(); | 21 DataTypeStatusTable(); |
22 DataTypeStatusTable(const DataTypeStatusTable& other); | 22 DataTypeStatusTable(const DataTypeStatusTable& other); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |