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_MODEL_ASSOCIATION_MANAGER_H__ | 5 #ifndef COMPONENTS_SYNC_DRIVER_MODEL_ASSOCIATION_MANAGER_H__ |
6 #define COMPONENTS_SYNC_DRIVER_MODEL_ASSOCIATION_MANAGER_H__ | 6 #define COMPONENTS_SYNC_DRIVER_MODEL_ASSOCIATION_MANAGER_H__ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
13 | 13 |
14 #include "components/sync/base/weak_handle.h" | 14 #include "components/sync/base/weak_handle.h" |
15 #include "components/sync/core/data_type_association_stats.h" | 15 #include "components/sync/core/data_type_association_stats.h" |
16 #include "components/sync_driver/data_type_manager.h" | 16 #include "components/sync/driver/data_type_manager.h" |
17 | 17 |
18 namespace sync_driver { | 18 namespace sync_driver { |
19 | 19 |
20 class DataTypeController; | 20 class DataTypeController; |
21 | 21 |
22 // |ModelAssociationManager| does the heavy lifting for doing the actual model | 22 // |ModelAssociationManager| does the heavy lifting for doing the actual model |
23 // association. It instructs DataTypeControllers to load models, start | 23 // association. It instructs DataTypeControllers to load models, start |
24 // associating and stopping. Since the operations are async it uses an | 24 // associating and stopping. Since the operations are async it uses an |
25 // interface to inform DataTypeManager the results of the operations. | 25 // interface to inform DataTypeManager the results of the operations. |
26 // This class is owned by DataTypeManager. | 26 // This class is owned by DataTypeManager. |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 bool notified_about_ready_for_configure_; | 173 bool notified_about_ready_for_configure_; |
174 | 174 |
175 base::WeakPtrFactory<ModelAssociationManager> weak_ptr_factory_; | 175 base::WeakPtrFactory<ModelAssociationManager> weak_ptr_factory_; |
176 | 176 |
177 DISALLOW_COPY_AND_ASSIGN(ModelAssociationManager); | 177 DISALLOW_COPY_AND_ASSIGN(ModelAssociationManager); |
178 }; | 178 }; |
179 | 179 |
180 } // namespace sync_driver | 180 } // namespace sync_driver |
181 | 181 |
182 #endif // COMPONENTS_SYNC_DRIVER_MODEL_ASSOCIATION_MANAGER_H__ | 182 #endif // COMPONENTS_SYNC_DRIVER_MODEL_ASSOCIATION_MANAGER_H__ |
OLD | NEW |