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/shared_change_processor.h" | 5 #include "components/sync/driver/shared_change_processor.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
10 #include "components/sync/api/sync_change.h" | |
11 #include "components/sync/api/syncable_service.h" | |
12 #include "components/sync/base/data_type_histogram.h" | 10 #include "components/sync/base/data_type_histogram.h" |
13 #include "components/sync/driver/generic_change_processor.h" | 11 #include "components/sync/driver/generic_change_processor.h" |
14 #include "components/sync/driver/generic_change_processor_factory.h" | 12 #include "components/sync/driver/generic_change_processor_factory.h" |
15 #include "components/sync/driver/shared_change_processor_ref.h" | 13 #include "components/sync/driver/shared_change_processor_ref.h" |
16 #include "components/sync/driver/sync_client.h" | 14 #include "components/sync/driver/sync_client.h" |
| 15 #include "components/sync/model/sync_change.h" |
| 16 #include "components/sync/model/syncable_service.h" |
17 | 17 |
18 using base::AutoLock; | 18 using base::AutoLock; |
19 | 19 |
20 namespace syncer { | 20 namespace syncer { |
21 class AttachmentService; | 21 class AttachmentService; |
22 } // namespace syncer | 22 } // namespace syncer |
23 | 23 |
24 namespace syncer { | 24 namespace syncer { |
25 | 25 |
26 SharedChangeProcessor::SharedChangeProcessor(ModelType type) | 26 SharedChangeProcessor::SharedChangeProcessor(ModelType type) |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 #undef PER_DATA_TYPE_MACRO | 319 #undef PER_DATA_TYPE_MACRO |
320 } | 320 } |
321 | 321 |
322 void SharedChangeProcessor::StopLocalService() { | 322 void SharedChangeProcessor::StopLocalService() { |
323 if (local_service_.get()) | 323 if (local_service_.get()) |
324 local_service_->StopSyncing(type_); | 324 local_service_->StopSyncing(type_); |
325 local_service_.reset(); | 325 local_service_.reset(); |
326 } | 326 } |
327 | 327 |
328 } // namespace syncer | 328 } // namespace syncer |
OLD | NEW |