OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/api/model_type_service.h" | 5 #include "components/sync/api/model_type_service.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "components/sync/api/data_type_error_handler.h" | |
10 #include "components/sync/api/model_type_change_processor.h" | |
11 | |
12 namespace syncer_v2 { | 9 namespace syncer_v2 { |
13 | 10 |
14 ModelTypeService::ModelTypeService( | 11 ModelTypeService::ModelTypeService( |
15 const ChangeProcessorFactory& change_processor_factory, | 12 const ChangeProcessorFactory& change_processor_factory, |
16 syncer::ModelType type) | 13 syncer::ModelType type) |
17 : change_processor_factory_(change_processor_factory), type_(type) {} | 14 : change_processor_factory_(change_processor_factory), type_(type) {} |
18 | 15 |
19 ModelTypeService::~ModelTypeService() {} | 16 ModelTypeService::~ModelTypeService() {} |
20 | 17 |
21 ConflictResolution ModelTypeService::ResolveConflict( | 18 ConflictResolution ModelTypeService::ResolveConflict( |
(...skipping 30 matching lines...) Expand all Loading... |
52 | 49 |
53 ModelTypeChangeProcessor* ModelTypeService::change_processor() const { | 50 ModelTypeChangeProcessor* ModelTypeService::change_processor() const { |
54 return change_processor_.get(); | 51 return change_processor_.get(); |
55 } | 52 } |
56 | 53 |
57 void ModelTypeService::clear_change_processor() { | 54 void ModelTypeService::clear_change_processor() { |
58 change_processor_.reset(); | 55 change_processor_.reset(); |
59 } | 56 } |
60 | 57 |
61 } // namespace syncer_v2 | 58 } // namespace syncer_v2 |
OLD | NEW |