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

Unified Diff: sync/internal_api/sync_manager_impl.h

Issue 93433006: sync: Introduce ModelTypeRegistry and helpers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More review fixes Created 6 years, 11 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: sync/internal_api/sync_manager_impl.h
diff --git a/sync/internal_api/sync_manager_impl.h b/sync/internal_api/sync_manager_impl.h
index 5d5cfaab552bc96d5f3f5dd14cdffc2a754bf570..34e1df2f58a30568c8314569574061d32f4b4b82 100644
--- a/sync/internal_api/sync_manager_impl.h
+++ b/sync/internal_api/sync_manager_impl.h
@@ -34,6 +34,7 @@ namespace syncer {
class SyncAPIServerConnectionManager;
class WriteNode;
class WriteTransaction;
+class ModelTypeRegistry;
namespace sessions {
class SyncSessionContext;
@@ -314,6 +315,11 @@ class SYNC_EXPORT_PRIVATE SyncManagerImpl :
// client (the Syncer) and the sync server.
scoped_ptr<SyncAPIServerConnectionManager> connection_manager_;
+ // Maintains state that affects the way we interact with different sync types.
+ // This state will be updated during configuration cycles, but otherwise
tim (not reviewing) 2014/01/08 19:33:42 Perhaps saying "updated when routing info changes,
rlarocque 2014/01/09 00:31:18 Done. I went with the second suggestion.
+ // remains constant.
+ scoped_ptr<ModelTypeRegistry> model_type_registry_;
+
// A container of various bits of information used by the SyncScheduler to
// create SyncSessions. Must outlive the SyncScheduler.
scoped_ptr<sessions::SyncSessionContext> session_context_;

Powered by Google App Engine
This is Rietveld 408576698