| 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_ENGINE_IMPL_MODEL_TYPE_REGISTRY_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_MODEL_TYPE_REGISTRY_H_ |
| 6 #define COMPONENTS_SYNC_ENGINE_IMPL_MODEL_TYPE_REGISTRY_H_ | 6 #define COMPONENTS_SYNC_ENGINE_IMPL_MODEL_TYPE_REGISTRY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "components/sync/engine_impl/nudge_handler.h" | 21 #include "components/sync/engine_impl/nudge_handler.h" |
| 22 #include "components/sync/engine_impl/uss_migrator.h" | 22 #include "components/sync/engine_impl/uss_migrator.h" |
| 23 #include "components/sync/syncable/user_share.h" | 23 #include "components/sync/syncable/user_share.h" |
| 24 | 24 |
| 25 namespace syncer { | 25 namespace syncer { |
| 26 | 26 |
| 27 class CommitContributor; | 27 class CommitContributor; |
| 28 class DataTypeDebugInfoEmitter; | 28 class DataTypeDebugInfoEmitter; |
| 29 class DirectoryCommitContributor; | 29 class DirectoryCommitContributor; |
| 30 class DirectoryUpdateHandler; | 30 class DirectoryUpdateHandler; |
| 31 class ModelTypeProcessor; | |
| 32 class ModelTypeWorker; | 31 class ModelTypeWorker; |
| 33 class UpdateHandler; | 32 class UpdateHandler; |
| 34 struct ModelTypeState; | |
| 35 | 33 |
| 36 typedef std::map<ModelType, UpdateHandler*> UpdateHandlerMap; | 34 typedef std::map<ModelType, UpdateHandler*> UpdateHandlerMap; |
| 37 typedef std::map<ModelType, CommitContributor*> CommitContributorMap; | 35 typedef std::map<ModelType, CommitContributor*> CommitContributorMap; |
| 38 | 36 |
| 39 // Keeps track of the sets of active update handlers and commit contributors. | 37 // Keeps track of the sets of active update handlers and commit contributors. |
| 40 class ModelTypeRegistry : public ModelTypeConnector, | 38 class ModelTypeRegistry : public ModelTypeConnector, |
| 41 public SyncEncryptionHandler::Observer { | 39 public SyncEncryptionHandler::Observer { |
| 42 public: | 40 public: |
| 43 // Constructs a ModelTypeRegistry that supports directory types. | 41 // Constructs a ModelTypeRegistry that supports directory types. |
| 44 ModelTypeRegistry(const std::vector<scoped_refptr<ModelSafeWorker>>& workers, | 42 ModelTypeRegistry(const std::vector<scoped_refptr<ModelSafeWorker>>& workers, |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 base::ObserverList<TypeDebugInfoObserver> type_debug_info_observers_; | 161 base::ObserverList<TypeDebugInfoObserver> type_debug_info_observers_; |
| 164 | 162 |
| 165 base::WeakPtrFactory<ModelTypeRegistry> weak_ptr_factory_; | 163 base::WeakPtrFactory<ModelTypeRegistry> weak_ptr_factory_; |
| 166 | 164 |
| 167 DISALLOW_COPY_AND_ASSIGN(ModelTypeRegistry); | 165 DISALLOW_COPY_AND_ASSIGN(ModelTypeRegistry); |
| 168 }; | 166 }; |
| 169 | 167 |
| 170 } // namespace syncer | 168 } // namespace syncer |
| 171 | 169 |
| 172 #endif // COMPONENTS_SYNC_ENGINE_IMPL_MODEL_TYPE_REGISTRY_H_ | 170 #endif // COMPONENTS_SYNC_ENGINE_IMPL_MODEL_TYPE_REGISTRY_H_ |
| OLD | NEW |