| 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_FAILED_DATA_TYPES_HANDLER_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_FAILED_DATA_TYPES_HANDLER_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_FAILED_DATA_TYPES_HANDLER_H_ | 6 #define COMPONENTS_SYNC_DRIVER_FAILED_DATA_TYPES_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "components/sync_driver/data_type_manager.h" | 10 #include "components/sync_driver/data_type_manager.h" |
| 11 | 11 |
| 12 namespace browser_sync { | 12 namespace sync_driver { |
| 13 | 13 |
| 14 // Class to keep track of data types that have encountered an error during sync. | 14 // Class to keep track of data types that have encountered an error during sync. |
| 15 class FailedDataTypesHandler { | 15 class FailedDataTypesHandler { |
| 16 public: | 16 public: |
| 17 typedef std::map<syncer::ModelType, syncer::SyncError> TypeErrorMap; | 17 typedef std::map<syncer::ModelType, syncer::SyncError> TypeErrorMap; |
| 18 | 18 |
| 19 explicit FailedDataTypesHandler(); | 19 explicit FailedDataTypesHandler(); |
| 20 ~FailedDataTypesHandler(); | 20 ~FailedDataTypesHandler(); |
| 21 | 21 |
| 22 // Update the failed datatypes. Types will be added to their corresponding | 22 // Update the failed datatypes. Types will be added to their corresponding |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // version of their data. | 81 // version of their data. |
| 82 TypeErrorMap persistence_errors_; | 82 TypeErrorMap persistence_errors_; |
| 83 | 83 |
| 84 // List of data types that could not start due to not being ready. These can | 84 // List of data types that could not start due to not being ready. These can |
| 85 // be marked as ready by calling ResetUnreadyErrorFor(..). | 85 // be marked as ready by calling ResetUnreadyErrorFor(..). |
| 86 TypeErrorMap unready_errors_; | 86 TypeErrorMap unready_errors_; |
| 87 | 87 |
| 88 DISALLOW_COPY_AND_ASSIGN(FailedDataTypesHandler); | 88 DISALLOW_COPY_AND_ASSIGN(FailedDataTypesHandler); |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 } // namespace browser_sync | 91 } // namespace sync_driver |
| 92 | 92 |
| 93 #endif // COMPONENTS_SYNC_DRIVER_FAILED_DATA_TYPES_HANDLER_H_ | 93 #endif // COMPONENTS_SYNC_DRIVER_FAILED_DATA_TYPES_HANDLER_H_ |
| OLD | NEW |