| 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 SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_ | 5 #ifndef SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_ |
| 6 #define SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_ | 6 #define SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 // The set of enabled directory types. | 144 // The set of enabled directory types. |
| 145 ModelTypeSet enabled_directory_types_; | 145 ModelTypeSet enabled_directory_types_; |
| 146 | 146 |
| 147 // The set of observers of per-type debug info. | 147 // The set of observers of per-type debug info. |
| 148 // | 148 // |
| 149 // Each of the DirectoryTypeDebugInfoEmitters needs such a list. There's | 149 // Each of the DirectoryTypeDebugInfoEmitters needs such a list. There's |
| 150 // a lot of them, and their lifetimes are unpredictable, so it makes the | 150 // a lot of them, and their lifetimes are unpredictable, so it makes the |
| 151 // book-keeping easier if we just store the list here. That way it's | 151 // book-keeping easier if we just store the list here. That way it's |
| 152 // guaranteed to live as long as this sync backend. | 152 // guaranteed to live as long as this sync backend. |
| 153 ObserverList<TypeDebugInfoObserver> type_debug_info_observers_; | 153 base::ObserverList<TypeDebugInfoObserver> type_debug_info_observers_; |
| 154 | 154 |
| 155 base::WeakPtrFactory<ModelTypeRegistry> weak_ptr_factory_; | 155 base::WeakPtrFactory<ModelTypeRegistry> weak_ptr_factory_; |
| 156 | 156 |
| 157 DISALLOW_COPY_AND_ASSIGN(ModelTypeRegistry); | 157 DISALLOW_COPY_AND_ASSIGN(ModelTypeRegistry); |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 } // namespace syncer | 160 } // namespace syncer |
| 161 | 161 |
| 162 #endif // SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_ | 162 #endif // SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_ |
| OLD | NEW |