summaryrefslogtreecommitdiffstats
path: root/sync/sessions/sync_session_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'sync/sessions/sync_session_context.h')
-rw-r--r--sync/sessions/sync_session_context.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sync/sessions/sync_session_context.h b/sync/sessions/sync_session_context.h
index 3133c32..d195943 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_;
}
@@ -158,6 +163,14 @@ class SYNC_EXPORT_PRIVATE SyncSessionContext {
// Must be updated manually when SBR's state is modified.
ModelSafeRoutingInfo routing_info_;
+ // A map of 'update handlers', 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 |update_handler_map_|.
+ 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().