OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATION_MANAGER_H__ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATION_MANAGER_H__ |
6 #define CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATION_MANAGER_H__ | 6 #define CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATION_MANAGER_H__ |
7 #pragma once | |
8 | 7 |
9 #include <list> | 8 #include <list> |
10 | 9 |
11 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
12 #include "base/timer.h" | 11 #include "base/timer.h" |
13 | 12 |
14 #include "chrome/browser/sync/glue/data_type_manager.h" | 13 #include "chrome/browser/sync/glue/data_type_manager.h" |
15 | 14 |
16 // |ModelAssociationManager| does the heavy lifting for doing the actual model | 15 // |ModelAssociationManager| does the heavy lifting for doing the actual model |
17 // association. It instructs DataTypeControllers to load models, start | 16 // association. It instructs DataTypeControllers to load models, start |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 159 |
161 // Set of all registered controllers. | 160 // Set of all registered controllers. |
162 const DataTypeController::TypeMap* controllers_; | 161 const DataTypeController::TypeMap* controllers_; |
163 ModelAssociationResultProcessor* result_processor_; | 162 ModelAssociationResultProcessor* result_processor_; |
164 base::WeakPtrFactory<ModelAssociationManager> weak_ptr_factory_; | 163 base::WeakPtrFactory<ModelAssociationManager> weak_ptr_factory_; |
165 base::OneShotTimer<ModelAssociationManager> timer_; | 164 base::OneShotTimer<ModelAssociationManager> timer_; |
166 DISALLOW_COPY_AND_ASSIGN(ModelAssociationManager); | 165 DISALLOW_COPY_AND_ASSIGN(ModelAssociationManager); |
167 }; | 166 }; |
168 } // namespace browser_sync | 167 } // namespace browser_sync |
169 #endif // CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATION_MANAGER_H__ | 168 #endif // CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATION_MANAGER_H__ |
OLD | NEW |