Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: sync/sessions/model_type_registry.cc

Issue 1382743004: [Sync] Move ModelTypeProcessor* and rename *Impl to Shared*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
17 #include "sync/sessions/directory_type_debug_info_emitter.h" 16 #include "sync/sessions/directory_type_debug_info_emitter.h"
18 #include "sync/util/cryptographer.h" 17 #include "sync/util/cryptographer.h"
19 18
20 namespace syncer { 19 namespace syncer {
21 20
22 namespace { 21 namespace {
23 22
24 class ModelTypeProcessorProxy : public syncer_v2::ModelTypeProcessor { 23 class ModelTypeProcessorProxy : public syncer_v2::ModelTypeProcessor {
25 public: 24 public:
26 ModelTypeProcessorProxy( 25 ModelTypeProcessorProxy(
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 ModelTypeSet enabled_off_thread_types; 349 ModelTypeSet enabled_off_thread_types;
351 for (ScopedVector<syncer_v2::ModelTypeWorker>::const_iterator it = 350 for (ScopedVector<syncer_v2::ModelTypeWorker>::const_iterator it =
352 model_type_workers_.begin(); 351 model_type_workers_.begin();
353 it != model_type_workers_.end(); ++it) { 352 it != model_type_workers_.end(); ++it) {
354 enabled_off_thread_types.Put((*it)->GetModelType()); 353 enabled_off_thread_types.Put((*it)->GetModelType());
355 } 354 }
356 return enabled_off_thread_types; 355 return enabled_off_thread_types;
357 } 356 }
358 357
359 } // namespace syncer 358 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/sync_context_proxy_impl_unittest.cc ('k') | sync/sessions/model_type_registry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698