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_CONTROLLER_H__ | 5 #ifndef COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_H__ |
6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_H__ | 6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_H__ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/threading/thread_checker.h" | 15 #include "base/threading/thread_checker.h" |
16 #include "components/sync/api/data_type_error_handler.h" | |
17 #include "components/sync/base/model_type.h" | 16 #include "components/sync/base/model_type.h" |
18 #include "components/sync/base/unrecoverable_error_handler.h" | 17 #include "components/sync/base/unrecoverable_error_handler.h" |
19 #include "components/sync/engine/cycle/status_counters.h" | 18 #include "components/sync/engine/cycle/status_counters.h" |
| 19 #include "components/sync/model/data_type_error_handler.h" |
20 | 20 |
21 namespace syncer { | 21 namespace syncer { |
22 | 22 |
23 class BackendDataTypeConfigurer; | 23 class BackendDataTypeConfigurer; |
24 class SyncError; | 24 class SyncError; |
25 class SyncMergeResult; | 25 class SyncMergeResult; |
26 | 26 |
27 // DataTypeControllers are responsible for managing the state of a single data | 27 // DataTypeControllers are responsible for managing the state of a single data |
28 // type. They are not thread safe and should only be used on the UI thread. | 28 // type. They are not thread safe and should only be used on the UI thread. |
29 class DataTypeController : public base::SupportsWeakPtr<DataTypeController> { | 29 class DataTypeController : public base::SupportsWeakPtr<DataTypeController> { |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // The type this object is responsible for controlling. | 171 // The type this object is responsible for controlling. |
172 const ModelType type_; | 172 const ModelType type_; |
173 | 173 |
174 // Used to check that functions are called on the correct thread. | 174 // Used to check that functions are called on the correct thread. |
175 base::ThreadChecker thread_checker_; | 175 base::ThreadChecker thread_checker_; |
176 }; | 176 }; |
177 | 177 |
178 } // namespace syncer | 178 } // namespace syncer |
179 | 179 |
180 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_H__ | 180 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_H__ |
OLD | NEW |