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 "components/sync/engine_impl/cycle/sync_cycle_context.h" | 5 #include "components/sync/engine_impl/cycle/sync_cycle_context.h" |
6 | 6 |
7 #include "components/sync/base/extensions_activity.h" | 7 #include "components/sync/base/extensions_activity.h" |
8 #include "components/sync/engine_impl/cycle/debug_info_getter.h" | |
9 | 8 |
10 namespace syncer { | 9 namespace syncer { |
11 | 10 |
12 SyncCycleContext::SyncCycleContext( | 11 SyncCycleContext::SyncCycleContext( |
13 ServerConnectionManager* connection_manager, | 12 ServerConnectionManager* connection_manager, |
14 syncable::Directory* directory, | 13 syncable::Directory* directory, |
15 ExtensionsActivity* extensions_activity, | 14 ExtensionsActivity* extensions_activity, |
16 const std::vector<SyncEngineEventListener*>& listeners, | 15 const std::vector<SyncEngineEventListener*>& listeners, |
17 DebugInfoGetter* debug_info_getter, | 16 DebugInfoGetter* debug_info_getter, |
18 ModelTypeRegistry* model_type_registry, | 17 ModelTypeRegistry* model_type_registry, |
(...skipping 24 matching lines...) Expand all Loading... |
43 ModelTypeSet SyncCycleContext::GetEnabledTypes() const { | 42 ModelTypeSet SyncCycleContext::GetEnabledTypes() const { |
44 return model_type_registry_->GetEnabledTypes(); | 43 return model_type_registry_->GetEnabledTypes(); |
45 } | 44 } |
46 | 45 |
47 void SyncCycleContext::SetRoutingInfo( | 46 void SyncCycleContext::SetRoutingInfo( |
48 const ModelSafeRoutingInfo& routing_info) { | 47 const ModelSafeRoutingInfo& routing_info) { |
49 model_type_registry_->SetEnabledDirectoryTypes(routing_info); | 48 model_type_registry_->SetEnabledDirectoryTypes(routing_info); |
50 } | 49 } |
51 | 50 |
52 } // namespace syncer | 51 } // namespace syncer |
OLD | NEW |