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_driver/non_blocking_data_type_manager.h" | 5 #include "components/sync_driver/non_blocking_data_type_manager.h" |
6 | 6 |
7 #include "base/sequenced_task_runner.h" | 7 #include "base/sequenced_task_runner.h" |
8 #include "components/sync_driver/non_blocking_data_type_controller.h" | 8 #include "components/sync_driver/non_blocking_data_type_controller.h" |
9 #include "sync/engine/model_type_sync_proxy_impl.h" | 9 #include "sync/engine/model_type_sync_proxy_impl.h" |
10 | 10 |
11 namespace browser_sync { | 11 namespace sync_driver { |
12 | 12 |
13 NonBlockingDataTypeManager::NonBlockingDataTypeManager() | 13 NonBlockingDataTypeManager::NonBlockingDataTypeManager() |
14 : non_blocking_data_type_controllers_deleter_( | 14 : non_blocking_data_type_controllers_deleter_( |
15 &non_blocking_data_type_controllers_) {} | 15 &non_blocking_data_type_controllers_) {} |
16 | 16 |
17 NonBlockingDataTypeManager::~NonBlockingDataTypeManager() {} | 17 NonBlockingDataTypeManager::~NonBlockingDataTypeManager() {} |
18 | 18 |
19 void NonBlockingDataTypeManager::RegisterType( | 19 void NonBlockingDataTypeManager::RegisterType( |
20 syncer::ModelType type, | 20 syncer::ModelType type, |
21 bool enabled) { | 21 bool enabled) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 syncer::ModelTypeSet NonBlockingDataTypeManager::GetRegisteredTypes() const { | 68 syncer::ModelTypeSet NonBlockingDataTypeManager::GetRegisteredTypes() const { |
69 syncer::ModelTypeSet result; | 69 syncer::ModelTypeSet result; |
70 for (NonBlockingDataTypeControllerMap::const_iterator it = | 70 for (NonBlockingDataTypeControllerMap::const_iterator it = |
71 non_blocking_data_type_controllers_.begin(); | 71 non_blocking_data_type_controllers_.begin(); |
72 it != non_blocking_data_type_controllers_.end(); ++it) { | 72 it != non_blocking_data_type_controllers_.end(); ++it) { |
73 result.Put(it->first); | 73 result.Put(it->first); |
74 } | 74 } |
75 return result; | 75 return result; |
76 } | 76 } |
77 | 77 |
78 } // namespace browser_sync | 78 } // namespace sync_driver |
OLD | NEW |