| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/glue/sync_backend_host_core.h" | 5 #include "components/sync/driver/glue/sync_backend_host_core.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/single_thread_task_runner.h" | |
| 14 #include "base/threading/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "base/trace_event/memory_dump_manager.h" | 14 #include "base/trace_event/memory_dump_manager.h" |
| 16 #include "components/data_use_measurement/core/data_use_user_data.h" | 15 #include "components/data_use_measurement/core/data_use_user_data.h" |
| 17 #include "components/invalidation/public/invalidation_util.h" | 16 #include "components/invalidation/public/invalidation_util.h" |
| 18 #include "components/invalidation/public/object_id_invalidation_map.h" | 17 #include "components/invalidation/public/object_id_invalidation_map.h" |
| 19 #include "components/sync/base/invalidation_adapter.h" | 18 #include "components/sync/base/invalidation_adapter.h" |
| 20 #include "components/sync/device_info/local_device_info_provider_impl.h" | 19 #include "components/sync/device_info/local_device_info_provider_impl.h" |
| 21 #include "components/sync/engine/cycle/commit_counters.h" | 20 #include "components/sync/engine/cycle/commit_counters.h" |
| 22 #include "components/sync/engine/cycle/status_counters.h" | 21 #include "components/sync/engine/cycle/status_counters.h" |
| 23 #include "components/sync/engine/cycle/sync_cycle_snapshot.h" | 22 #include "components/sync/engine/cycle/sync_cycle_snapshot.h" |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 } | 643 } |
| 645 | 644 |
| 646 void SyncBackendHostCore::ClearServerDataDone( | 645 void SyncBackendHostCore::ClearServerDataDone( |
| 647 const base::Closure& frontend_callback) { | 646 const base::Closure& frontend_callback) { |
| 648 DCHECK(thread_checker_.CalledOnValidThread()); | 647 DCHECK(thread_checker_.CalledOnValidThread()); |
| 649 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop, | 648 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop, |
| 650 frontend_callback); | 649 frontend_callback); |
| 651 } | 650 } |
| 652 | 651 |
| 653 } // namespace syncer | 652 } // namespace syncer |
| OLD | NEW |