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 <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
9 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
10 #include "sync/engine/commit_queue.h" | 12 #include "sync/engine/commit_queue.h" |
11 #include "sync/engine/directory_commit_contributor.h" | 13 #include "sync/engine/directory_commit_contributor.h" |
12 #include "sync/engine/directory_update_handler.h" | 14 #include "sync/engine/directory_update_handler.h" |
13 #include "sync/engine/model_type_worker.h" | 15 #include "sync/engine/model_type_worker.h" |
14 #include "sync/internal_api/public/activation_context.h" | 16 #include "sync/internal_api/public/activation_context.h" |
15 #include "sync/internal_api/public/model_type_processor.h" | 17 #include "sync/internal_api/public/model_type_processor.h" |
16 #include "sync/sessions/directory_type_debug_info_emitter.h" | 18 #include "sync/sessions/directory_type_debug_info_emitter.h" |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 ModelTypeSet enabled_off_thread_types; | 294 ModelTypeSet enabled_off_thread_types; |
293 for (ScopedVector<syncer_v2::ModelTypeWorker>::const_iterator it = | 295 for (ScopedVector<syncer_v2::ModelTypeWorker>::const_iterator it = |
294 model_type_workers_.begin(); | 296 model_type_workers_.begin(); |
295 it != model_type_workers_.end(); ++it) { | 297 it != model_type_workers_.end(); ++it) { |
296 enabled_off_thread_types.Put((*it)->GetModelType()); | 298 enabled_off_thread_types.Put((*it)->GetModelType()); |
297 } | 299 } |
298 return enabled_off_thread_types; | 300 return enabled_off_thread_types; |
299 } | 301 } |
300 | 302 |
301 } // namespace syncer | 303 } // namespace syncer |
OLD | NEW |