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

Unified Diff: components/sync/engine_impl/model_type_registry.h

Issue 2420213002: [USS] Show USS counters in Types tab (Closed)
Patch Set: rebase Created 4 years, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: components/sync/engine_impl/model_type_registry.h
diff --git a/components/sync/engine_impl/model_type_registry.h b/components/sync/engine_impl/model_type_registry.h
index f225fac236f55969f6e9fba9fb676a7956ccac9c..ca2c38fc3a40f8c89f615891afa2eea03eb70755 100644
--- a/components/sync/engine_impl/model_type_registry.h
+++ b/components/sync/engine_impl/model_type_registry.h
@@ -23,8 +23,8 @@
namespace syncer {
class CommitContributor;
+class DataTypeDebugInfoEmitter;
class DirectoryCommitContributor;
-class DirectoryTypeDebugInfoEmitter;
class DirectoryUpdateHandler;
class ModelTypeProcessor;
class ModelTypeWorker;
@@ -102,13 +102,13 @@ class ModelTypeRegistry : public ModelTypeConnector,
base::WeakPtr<ModelTypeConnector> AsWeakPtr();
private:
- typedef std::map<ModelType, std::unique_ptr<DirectoryTypeDebugInfoEmitter>>
- DirectoryTypeDebugInfoEmitterMap;
+ typedef std::map<ModelType, std::unique_ptr<DataTypeDebugInfoEmitter>>
+ DataTypeDebugInfoEmitterMap;
void OnEncryptionStateChanged();
// DebugInfoEmitters are never deleted. Returns an existing one if we have it.
- DirectoryTypeDebugInfoEmitter* GetOrCreateEmitter(ModelType type);
+ DataTypeDebugInfoEmitter* GetEmitter(ModelType type);
ModelTypeSet GetEnabledNonBlockingTypes() const;
ModelTypeSet GetEnabledDirectoryTypes() const;
@@ -126,9 +126,9 @@ class ModelTypeRegistry : public ModelTypeConnector,
UpdateHandlerMap update_handler_map_;
CommitContributorMap commit_contributor_map_;
- // Map of DebugInfoEmitters for directory types.
- // Non-blocking types handle debug info differently.
- DirectoryTypeDebugInfoEmitterMap directory_type_debug_info_emitter_map_;
+ // Map of DebugInfoEmitters for directory types and Non-blocking types.
+ // Does not own its contents.
+ DataTypeDebugInfoEmitterMap data_type_debug_info_emitter_map_;
// The known ModelSafeWorkers.
std::map<ModelSafeGroup, scoped_refptr<ModelSafeWorker>> workers_map_;
« no previous file with comments | « components/sync/engine_impl/directory_update_handler.cc ('k') | components/sync/engine_impl/model_type_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698