OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/model_type_registry.h" | 5 #include "sync/sessions/model_type_registry.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "sync/engine/directory_commit_contributor.h" | 10 #include "sync/engine/directory_commit_contributor.h" |
11 #include "sync/engine/directory_update_handler.h" | 11 #include "sync/engine/directory_update_handler.h" |
| 12 #include "sync/engine/non_blocking_type_processor.h" |
12 #include "sync/engine/non_blocking_type_processor_core.h" | 13 #include "sync/engine/non_blocking_type_processor_core.h" |
13 #include "sync/internal_api/public/non_blocking_type_processor.h" | |
14 #include "sync/sessions/directory_type_debug_info_emitter.h" | 14 #include "sync/sessions/directory_type_debug_info_emitter.h" |
15 | 15 |
16 namespace syncer { | 16 namespace syncer { |
17 | 17 |
18 ModelTypeRegistry::ModelTypeRegistry() : directory_(NULL) {} | 18 ModelTypeRegistry::ModelTypeRegistry() : directory_(NULL) {} |
19 | 19 |
20 ModelTypeRegistry::ModelTypeRegistry( | 20 ModelTypeRegistry::ModelTypeRegistry( |
21 const std::vector<scoped_refptr<ModelSafeWorker> >& workers, | 21 const std::vector<scoped_refptr<ModelSafeWorker> >& workers, |
22 syncable::Directory* directory) | 22 syncable::Directory* directory) |
23 : directory_(directory) { | 23 : directory_(directory) { |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 ModelTypeSet enabled_off_thread_types; | 199 ModelTypeSet enabled_off_thread_types; |
200 for (ScopedVector<NonBlockingTypeProcessorCore>::const_iterator it = | 200 for (ScopedVector<NonBlockingTypeProcessorCore>::const_iterator it = |
201 non_blocking_type_processor_cores_.begin(); | 201 non_blocking_type_processor_cores_.begin(); |
202 it != non_blocking_type_processor_cores_.end(); ++it) { | 202 it != non_blocking_type_processor_cores_.end(); ++it) { |
203 enabled_off_thread_types.Put((*it)->GetModelType()); | 203 enabled_off_thread_types.Put((*it)->GetModelType()); |
204 } | 204 } |
205 return enabled_off_thread_types; | 205 return enabled_off_thread_types; |
206 } | 206 } |
207 | 207 |
208 } // namespace syncer | 208 } // namespace syncer |
OLD | NEW |