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> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "sync/engine/commit_queue.h" | 15 #include "sync/engine/commit_queue.h" |
16 #include "sync/engine/directory_commit_contributor.h" | 16 #include "sync/engine/directory_commit_contributor.h" |
17 #include "sync/engine/directory_update_handler.h" | 17 #include "sync/engine/directory_update_handler.h" |
18 #include "sync/engine/model_type_worker.h" | 18 #include "sync/engine/model_type_worker.h" |
19 #include "sync/internal_api/public/activation_context.h" | 19 #include "sync/internal_api/public/activation_context.h" |
20 #include "sync/internal_api/public/model_type_processor.h" | 20 #include "sync/internal_api/public/model_type_processor.h" |
21 #include "sync/sessions/directory_type_debug_info_emitter.h" | 21 #include "sync/sessions/directory_type_debug_info_emitter.h" |
22 #include "sync/util/cryptographer.h" | 22 #include "sync/util/cryptographer.h" |
23 | 23 |
24 namespace syncer { | 24 namespace syncer { |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 ModelTypeSet enabled_non_blocking_types; | 319 ModelTypeSet enabled_non_blocking_types; |
320 for (ScopedVector<syncer_v2::ModelTypeWorker>::const_iterator it = | 320 for (ScopedVector<syncer_v2::ModelTypeWorker>::const_iterator it = |
321 model_type_workers_.begin(); | 321 model_type_workers_.begin(); |
322 it != model_type_workers_.end(); ++it) { | 322 it != model_type_workers_.end(); ++it) { |
323 enabled_non_blocking_types.Put((*it)->GetModelType()); | 323 enabled_non_blocking_types.Put((*it)->GetModelType()); |
324 } | 324 } |
325 return enabled_non_blocking_types; | 325 return enabled_non_blocking_types; |
326 } | 326 } |
327 | 327 |
328 } // namespace syncer | 328 } // namespace syncer |
OLD | NEW |