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/base/model_type.h" | 12 #include "components/sync/base/model_type.h" |
13 #include "components/sync/core/configure_reason.h" | |
14 #include "components/sync/driver/data_type_controller.h" | 13 #include "components/sync/driver/data_type_controller.h" |
15 #include "components/sync/driver/data_type_status_table.h" | 14 #include "components/sync/driver/data_type_status_table.h" |
| 15 #include "components/sync/engine/configure_reason.h" |
16 #include "components/sync/model/sync_error.h" | 16 #include "components/sync/model/sync_error.h" |
17 | 17 |
18 namespace syncer { | 18 namespace syncer { |
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. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // stopped. | 88 // stopped. |
89 virtual void Stop() = 0; | 89 virtual void Stop() = 0; |
90 | 90 |
91 // The current state of the data type manager. | 91 // The current state of the data type manager. |
92 virtual State state() const = 0; | 92 virtual State state() const = 0; |
93 }; | 93 }; |
94 | 94 |
95 } // namespace syncer | 95 } // namespace syncer |
96 | 96 |
97 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_H__ | 97 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_H__ |
OLD | NEW |