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

Unified Diff: sync/sessions/sync_session_context.h

Issue 38803003: sync: Implement per-type update processing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix progress marker fetching Created 7 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: sync/sessions/sync_session_context.h
diff --git a/sync/sessions/sync_session_context.h b/sync/sessions/sync_session_context.h
index 3133c32a2ef3e4b85e76aed0a3480aba4d09b28c..fd7869e53d4efe5638eb1acaf79dd21bf6e6a5fd 100644
--- a/sync/sessions/sync_session_context.h
+++ b/sync/sessions/sync_session_context.h
@@ -25,6 +25,7 @@
#include "base/stl_util.h"
#include "sync/base/sync_export.h"
#include "sync/engine/sync_directory_commit_contributor.h"
+#include "sync/engine/sync_directory_update_handler.h"
#include "sync/engine/sync_engine_event.h"
#include "sync/engine/syncer_types.h"
#include "sync/engine/traffic_recorder.h"
@@ -75,6 +76,10 @@ class SYNC_EXPORT_PRIVATE SyncSessionContext {
void set_routing_info(const ModelSafeRoutingInfo& routing_info);
+ UpdateHandlerMap* update_handler_map() {
+ return &update_handler_map_;
+ }
+
CommitContributorMap* commit_contributor_map() {
return &commit_contributor_map_;
}
@@ -161,6 +166,14 @@ class SYNC_EXPORT_PRIVATE SyncSessionContext {
// A map of 'commit contributors', one for each enabled type.
// This must be kept in sync with the routing info. Our temporary solution to
// that problem is to initialize this map in set_routing_info().
+ UpdateHandlerMap update_handler_map_;
+
+ // Deleter for the |commit_contributor_map_|.
Nicolas Zea 2013/10/29 22:50:18 update comment
rlarocque 2013/10/30 00:32:22 Done.
+ STLValueDeleter<UpdateHandlerMap> update_handler_deleter_;
+
+ // A map of 'commit contributors', one for each enabled type.
+ // This must be kept in sync with the routing info. Our temporary solution to
+ // that problem is to initialize this map in set_routing_info().
CommitContributorMap commit_contributor_map_;
// Deleter for the |commit_contributor_map_|.

Powered by Google App Engine
This is Rietveld 408576698