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/observer_list.h" | 8 #include "base/observer_list.h" |
9 #include "base/thread_task_runner_handle.h" | 9 #include "base/thread_task_runner_handle.h" |
10 #include "sync/engine/commit_queue.h" | 10 #include "sync/engine/commit_queue.h" |
11 #include "sync/engine/directory_commit_contributor.h" | 11 #include "sync/engine/directory_commit_contributor.h" |
12 #include "sync/engine/directory_update_handler.h" | 12 #include "sync/engine/directory_update_handler.h" |
13 #include "sync/engine/model_type_processor.h" | |
14 #include "sync/engine/model_type_processor_impl.h" | |
15 #include "sync/engine/model_type_worker.h" | 13 #include "sync/engine/model_type_worker.h" |
16 #include "sync/internal_api/public/activation_context.h" | 14 #include "sync/internal_api/public/activation_context.h" |
15 #include "sync/internal_api/public/model_type_processor.h" | |
16 #include "sync/internal_api/public/shared_model_type_processor.h" | |
stanisc
2015/10/05 18:11:35
Why does ModelTypeRegistry need to know about Shar
maxbogue
2015/10/08 17:59:56
Turns out it doesn't! Fixed.
| |
17 #include "sync/sessions/directory_type_debug_info_emitter.h" | 17 #include "sync/sessions/directory_type_debug_info_emitter.h" |
18 #include "sync/util/cryptographer.h" | 18 #include "sync/util/cryptographer.h" |
19 | 19 |
20 namespace syncer { | 20 namespace syncer { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 class ModelTypeProcessorProxy : public syncer_v2::ModelTypeProcessor { | 24 class ModelTypeProcessorProxy : public syncer_v2::ModelTypeProcessor { |
25 public: | 25 public: |
26 ModelTypeProcessorProxy( | 26 ModelTypeProcessorProxy( |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
350 ModelTypeSet enabled_off_thread_types; | 350 ModelTypeSet enabled_off_thread_types; |
351 for (ScopedVector<syncer_v2::ModelTypeWorker>::const_iterator it = | 351 for (ScopedVector<syncer_v2::ModelTypeWorker>::const_iterator it = |
352 model_type_workers_.begin(); | 352 model_type_workers_.begin(); |
353 it != model_type_workers_.end(); ++it) { | 353 it != model_type_workers_.end(); ++it) { |
354 enabled_off_thread_types.Put((*it)->GetModelType()); | 354 enabled_off_thread_types.Put((*it)->GetModelType()); |
355 } | 355 } |
356 return enabled_off_thread_types; | 356 return enabled_off_thread_types; |
357 } | 357 } |
358 | 358 |
359 } // namespace syncer | 359 } // namespace syncer |
OLD | NEW |