| 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" | 13 #include "base/single_thread_task_runner.h" |
| 14 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "base/trace_event/memory_dump_manager.h" | 15 #include "base/trace_event/memory_dump_manager.h" |
| 16 #include "components/data_use_measurement/core/data_use_user_data.h" | 16 #include "components/data_use_measurement/core/data_use_user_data.h" |
| 17 #include "components/invalidation/public/invalidation_util.h" | 17 #include "components/invalidation/public/invalidation_util.h" |
| 18 #include "components/invalidation/public/object_id_invalidation_map.h" | 18 #include "components/invalidation/public/object_id_invalidation_map.h" |
| 19 #include "components/sync/base/invalidation_adapter.h" | 19 #include "components/sync/base/invalidation_adapter.h" |
| 20 #include "components/sync/device_info/local_device_info_provider_impl.h" | 20 #include "components/sync/device_info/local_device_info_provider_impl.h" |
| 21 #include "components/sync/driver/glue/sync_backend_registrar.h" | |
| 22 #include "components/sync/engine/cycle/commit_counters.h" | 21 #include "components/sync/engine/cycle/commit_counters.h" |
| 23 #include "components/sync/engine/cycle/status_counters.h" | 22 #include "components/sync/engine/cycle/status_counters.h" |
| 24 #include "components/sync/engine/cycle/sync_cycle_snapshot.h" | 23 #include "components/sync/engine/cycle/sync_cycle_snapshot.h" |
| 25 #include "components/sync/engine/cycle/update_counters.h" | 24 #include "components/sync/engine/cycle/update_counters.h" |
| 26 #include "components/sync/engine/engine_components_factory.h" | 25 #include "components/sync/engine/engine_components_factory.h" |
| 27 #include "components/sync/engine/events/protocol_event.h" | 26 #include "components/sync/engine/events/protocol_event.h" |
| 28 #include "components/sync/engine/net/http_post_provider_factory.h" | 27 #include "components/sync/engine/net/http_post_provider_factory.h" |
| 28 #include "components/sync/engine/sync_backend_registrar.h" |
| 29 #include "components/sync/engine/sync_manager.h" | 29 #include "components/sync/engine/sync_manager.h" |
| 30 #include "components/sync/engine/sync_manager_factory.h" | 30 #include "components/sync/engine/sync_manager_factory.h" |
| 31 | 31 |
| 32 // Helper macros to log with the syncer thread name; useful when there | 32 // Helper macros to log with the syncer thread name; useful when there |
| 33 // are multiple syncers involved. | 33 // are multiple syncers involved. |
| 34 | 34 |
| 35 #define SLOG(severity) LOG(severity) << name_ << ": " | 35 #define SLOG(severity) LOG(severity) << name_ << ": " |
| 36 | 36 |
| 37 #define SDVLOG(verbose_level) DVLOG(verbose_level) << name_ << ": " | 37 #define SDVLOG(verbose_level) DVLOG(verbose_level) << name_ << ": " |
| 38 | 38 |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 } | 689 } |
| 690 | 690 |
| 691 void SyncBackendHostCore::ClearServerDataDone( | 691 void SyncBackendHostCore::ClearServerDataDone( |
| 692 const base::Closure& frontend_callback) { | 692 const base::Closure& frontend_callback) { |
| 693 DCHECK(thread_checker_.CalledOnValidThread()); | 693 DCHECK(thread_checker_.CalledOnValidThread()); |
| 694 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop, | 694 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop, |
| 695 frontend_callback); | 695 frontend_callback); |
| 696 } | 696 } |
| 697 | 697 |
| 698 } // namespace syncer | 698 } // namespace syncer |
| OLD | NEW |