| 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_impl.h" | 5 #include "components/sync/driver/glue/sync_backend_host_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/feature_list.h" | 11 #include "base/feature_list.h" |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
| 15 #include "base/threading/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
| 16 #include "components/invalidation/public/invalidation_service.h" | 16 #include "components/invalidation/public/invalidation_service.h" |
| 17 #include "components/invalidation/public/object_id_invalidation_map.h" | 17 #include "components/invalidation/public/object_id_invalidation_map.h" |
| 18 #include "components/signin/core/browser/signin_client.h" | 18 #include "components/signin/core/browser/signin_client.h" |
| 19 #include "components/sync/base/experiments.h" | 19 #include "components/sync/base/experiments.h" |
| 20 #include "components/sync/base/invalidation_helper.h" | 20 #include "components/sync/base/invalidation_helper.h" |
| 21 #include "components/sync/base/sync_prefs.h" | 21 #include "components/sync/base/sync_prefs.h" |
| 22 #include "components/sync/driver/glue/sync_backend_host_core.h" | 22 #include "components/sync/driver/glue/sync_backend_host_core.h" |
| 23 #include "components/sync/driver/glue/sync_backend_registrar.h" | |
| 24 #include "components/sync/driver/sync_client.h" | 23 #include "components/sync/driver/sync_client.h" |
| 25 #include "components/sync/driver/sync_driver_switches.h" | 24 #include "components/sync/driver/sync_driver_switches.h" |
| 26 #include "components/sync/engine/activation_context.h" | 25 #include "components/sync/engine/activation_context.h" |
| 27 #include "components/sync/engine/engine_components_factory.h" | 26 #include "components/sync/engine/engine_components_factory.h" |
| 28 #include "components/sync/engine/engine_components_factory_impl.h" | 27 #include "components/sync/engine/engine_components_factory_impl.h" |
| 29 #include "components/sync/engine/events/protocol_event.h" | 28 #include "components/sync/engine/events/protocol_event.h" |
| 30 #include "components/sync/engine/net/http_bridge.h" | 29 #include "components/sync/engine/net/http_bridge.h" |
| 30 #include "components/sync/engine/sync_backend_registrar.h" |
| 31 #include "components/sync/engine/sync_engine_host.h" | 31 #include "components/sync/engine/sync_engine_host.h" |
| 32 #include "components/sync/engine/sync_manager_factory.h" | 32 #include "components/sync/engine/sync_manager_factory.h" |
| 33 #include "components/sync/engine/sync_string_conversions.h" | 33 #include "components/sync/engine/sync_string_conversions.h" |
| 34 #include "components/sync/syncable/base_transaction.h" | 34 #include "components/sync/syncable/base_transaction.h" |
| 35 | 35 |
| 36 // Helper macros to log with the syncer thread name; useful when there | 36 // Helper macros to log with the syncer thread name; useful when there |
| 37 // are multiple syncers involved. | 37 // are multiple syncers involved. |
| 38 | 38 |
| 39 #define SLOG(severity) LOG(severity) << name_ << ": " | 39 #define SLOG(severity) LOG(severity) << name_ << ": " |
| 40 | 40 |
| (...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 763 const SyncManager::ClearServerDataCallback& frontend_callback) { | 763 const SyncManager::ClearServerDataCallback& frontend_callback) { |
| 764 DCHECK(thread_checker_.CalledOnValidThread()); | 764 DCHECK(thread_checker_.CalledOnValidThread()); |
| 765 frontend_callback.Run(); | 765 frontend_callback.Run(); |
| 766 } | 766 } |
| 767 | 767 |
| 768 } // namespace syncer | 768 } // namespace syncer |
| 769 | 769 |
| 770 #undef SDVLOG | 770 #undef SDVLOG |
| 771 | 771 |
| 772 #undef SLOG | 772 #undef SLOG |
| OLD | NEW |