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 "components/sync/engine_impl/model_type_registry.h" | 5 #include "components/sync/engine_impl/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/metrics/histogram.h" | 13 #include "base/metrics/histogram_macros.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
15 #include "base/threading/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
16 #include "components/sync/base/cryptographer.h" | 16 #include "components/sync/base/cryptographer.h" |
17 #include "components/sync/engine/activation_context.h" | 17 #include "components/sync/engine/activation_context.h" |
18 #include "components/sync/engine/commit_queue.h" | 18 #include "components/sync/engine/commit_queue.h" |
19 #include "components/sync/engine/model_type_processor.h" | 19 #include "components/sync/engine/model_type_processor.h" |
20 #include "components/sync/engine_impl/cycle/directory_type_debug_info_emitter.h" | 20 #include "components/sync/engine_impl/cycle/directory_type_debug_info_emitter.h" |
21 #include "components/sync/engine_impl/cycle/non_blocking_type_debug_info_emitter
.h" | 21 #include "components/sync/engine_impl/cycle/non_blocking_type_debug_info_emitter
.h" |
22 #include "components/sync/engine_impl/directory_commit_contributor.h" | 22 #include "components/sync/engine_impl/directory_commit_contributor.h" |
23 #include "components/sync/engine_impl/directory_update_handler.h" | 23 #include "components/sync/engine_impl/directory_update_handler.h" |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 | 346 |
347 ModelTypeSet ModelTypeRegistry::GetEnabledNonBlockingTypes() const { | 347 ModelTypeSet ModelTypeRegistry::GetEnabledNonBlockingTypes() const { |
348 ModelTypeSet enabled_non_blocking_types; | 348 ModelTypeSet enabled_non_blocking_types; |
349 for (const auto& worker : model_type_workers_) { | 349 for (const auto& worker : model_type_workers_) { |
350 enabled_non_blocking_types.Put(worker->GetModelType()); | 350 enabled_non_blocking_types.Put(worker->GetModelType()); |
351 } | 351 } |
352 return enabled_non_blocking_types; | 352 return enabled_non_blocking_types; |
353 } | 353 } |
354 | 354 |
355 } // namespace syncer | 355 } // namespace syncer |
OLD | NEW |