Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: components/sync/engine_impl/model_type_registry.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/get_updates_processor.h ('k') | components/sync/engine_impl/model_type_worker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698