OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "sync/sessions/sync_session_context.h" | 5 #include "sync/sessions/sync_session_context.h" |
6 | 6 |
7 #include "sync/sessions/debug_info_getter.h" | 7 #include "sync/sessions/debug_info_getter.h" |
8 #include "sync/util/extensions_activity.h" | 8 #include "sync/util/extensions_activity.h" |
9 | 9 |
10 namespace syncer { | 10 namespace syncer { |
11 namespace sessions { | 11 namespace sessions { |
12 | 12 |
13 SyncSessionContext::SyncSessionContext( | 13 SyncSessionContext::SyncSessionContext( |
14 ServerConnectionManager* connection_manager, | 14 ServerConnectionManager* connection_manager, |
15 syncable::Directory* directory, | 15 syncable::Directory* directory, |
16 const std::vector<ModelSafeWorker*>& workers, | 16 const std::vector<scoped_refptr<ModelSafeWorker> >& workers, |
17 ExtensionsActivity* extensions_activity, | 17 ExtensionsActivity* extensions_activity, |
18 const std::vector<SyncEngineEventListener*>& listeners, | 18 const std::vector<SyncEngineEventListener*>& listeners, |
19 DebugInfoGetter* debug_info_getter, | 19 DebugInfoGetter* debug_info_getter, |
20 TrafficRecorder* traffic_recorder, | 20 TrafficRecorder* traffic_recorder, |
21 bool keystore_encryption_enabled, | 21 bool keystore_encryption_enabled, |
22 bool client_enabled_pre_commit_update_avoidance, | 22 bool client_enabled_pre_commit_update_avoidance, |
23 const std::string& invalidator_client_id) | 23 const std::string& invalidator_client_id) |
24 : connection_manager_(connection_manager), | 24 : connection_manager_(connection_manager), |
25 directory_(directory), | 25 directory_(directory), |
26 update_handler_deleter_(&update_handler_map_), | 26 update_handler_deleter_(&update_handler_map_), |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 update_handler_map_.insert(std::make_pair(type, handler)); | 70 update_handler_map_.insert(std::make_pair(type, handler)); |
71 | 71 |
72 SyncDirectoryCommitContributor* contributor = | 72 SyncDirectoryCommitContributor* contributor = |
73 new SyncDirectoryCommitContributor(directory(), type); | 73 new SyncDirectoryCommitContributor(directory(), type); |
74 commit_contributor_map_.insert(std::make_pair(type, contributor)); | 74 commit_contributor_map_.insert(std::make_pair(type, contributor)); |
75 } | 75 } |
76 } | 76 } |
77 | 77 |
78 } // namespace sessions | 78 } // namespace sessions |
79 } // namespace syncer | 79 } // namespace syncer |
OLD | NEW |