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> |
11 | 11 |
| 12 #include "components/sync/api/sync_error.h" |
| 13 #include "components/sync/base/model_type.h" |
| 14 #include "components/sync/core/configure_reason.h" |
12 #include "components/sync_driver/data_type_controller.h" | 15 #include "components/sync_driver/data_type_controller.h" |
13 #include "components/sync_driver/data_type_status_table.h" | 16 #include "components/sync_driver/data_type_status_table.h" |
14 #include "sync/api/sync_error.h" | |
15 #include "sync/internal_api/public/base/model_type.h" | |
16 #include "sync/internal_api/public/configure_reason.h" | |
17 | 17 |
18 namespace sync_driver { | 18 namespace sync_driver { |
19 | 19 |
20 // This interface is for managing the start up and shut down life cycle | 20 // This interface is for managing the start up and shut down life cycle |
21 // of many different syncable data types. | 21 // of many different syncable data types. |
22 class DataTypeManager { | 22 class DataTypeManager { |
23 public: | 23 public: |
24 enum State { | 24 enum State { |
25 STOPPED, // No data types are currently running. | 25 STOPPED, // No data types are currently running. |
26 CONFIGURING, // Data types are being started. | 26 CONFIGURING, // Data types are being started. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // stopped. | 89 // stopped. |
90 virtual void Stop() = 0; | 90 virtual void Stop() = 0; |
91 | 91 |
92 // The current state of the data type manager. | 92 // The current state of the data type manager. |
93 virtual State state() const = 0; | 93 virtual State state() const = 0; |
94 }; | 94 }; |
95 | 95 |
96 } // namespace sync_driver | 96 } // namespace sync_driver |
97 | 97 |
98 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_H__ | 98 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_H__ |
OLD | NEW |