| 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_MANAGER_H__ | 5 #ifndef COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_H__ |
| 6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_H__ | 6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_H__ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 ABORTED, // Start was aborted by calling Stop() before | 38 ABORTED, // Start was aborted by calling Stop() before |
| 39 // all types were started. | 39 // all types were started. |
| 40 UNRECOVERABLE_ERROR // We got an unrecoverable error during startup. | 40 UNRECOVERABLE_ERROR // We got an unrecoverable error during startup. |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 // Note: |errors| is only filled when status is not OK. | 43 // Note: |errors| is only filled when status is not OK. |
| 44 struct ConfigureResult { | 44 struct ConfigureResult { |
| 45 ConfigureResult(); | 45 ConfigureResult(); |
| 46 ConfigureResult(ConfigureStatus status, | 46 ConfigureResult(ConfigureStatus status, |
| 47 syncer::ModelTypeSet requested_types); | 47 syncer::ModelTypeSet requested_types); |
| 48 ConfigureResult(const ConfigureResult& other); |
| 48 ~ConfigureResult(); | 49 ~ConfigureResult(); |
| 49 | 50 |
| 50 ConfigureStatus status; | 51 ConfigureStatus status; |
| 51 syncer::ModelTypeSet requested_types; | 52 syncer::ModelTypeSet requested_types; |
| 52 DataTypeStatusTable data_type_status_table; | 53 DataTypeStatusTable data_type_status_table; |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 virtual ~DataTypeManager() {} | 56 virtual ~DataTypeManager() {} |
| 56 | 57 |
| 57 // Convert a ConfigureStatus to string for debug purposes. | 58 // Convert a ConfigureStatus to string for debug purposes. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 88 // stopped. | 89 // stopped. |
| 89 virtual void Stop() = 0; | 90 virtual void Stop() = 0; |
| 90 | 91 |
| 91 // The current state of the data type manager. | 92 // The current state of the data type manager. |
| 92 virtual State state() const = 0; | 93 virtual State state() const = 0; |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 } // namespace sync_driver | 96 } // namespace sync_driver |
| 96 | 97 |
| 97 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_H__ | 98 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_H__ |
| OLD | NEW |