| 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 <map> | 7 #include <map> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/feature_list.h" | 12 #include "base/feature_list.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.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/sync_string_conversions.h" | |
| 21 #include "components/sync/core/activation_context.h" | 20 #include "components/sync/core/activation_context.h" |
| 22 #include "components/sync/core/base_transaction.h" | 21 #include "components/sync/core/base_transaction.h" |
| 23 #include "components/sync/core/http_bridge.h" | 22 #include "components/sync/core/http_bridge.h" |
| 24 #include "components/sync/core/internal_components_factory.h" | 23 #include "components/sync/core/internal_components_factory.h" |
| 25 #include "components/sync/core/internal_components_factory_impl.h" | 24 #include "components/sync/core/internal_components_factory_impl.h" |
| 26 #include "components/sync/core/sync_manager.h" | 25 #include "components/sync/core/sync_manager.h" |
| 27 #include "components/sync/core/sync_manager_factory.h" | 26 #include "components/sync/core/sync_manager_factory.h" |
| 28 #include "components/sync/driver/glue/sync_backend_host_core.h" | 27 #include "components/sync/driver/glue/sync_backend_host_core.h" |
| 29 #include "components/sync/driver/glue/sync_backend_registrar.h" | 28 #include "components/sync/driver/glue/sync_backend_registrar.h" |
| 30 #include "components/sync/driver/invalidation_helper.h" | 29 #include "components/sync/driver/invalidation_helper.h" |
| 31 #include "components/sync/driver/sync_client.h" | 30 #include "components/sync/driver/sync_client.h" |
| 32 #include "components/sync/driver/sync_driver_switches.h" | 31 #include "components/sync/driver/sync_driver_switches.h" |
| 33 #include "components/sync/driver/sync_frontend.h" | 32 #include "components/sync/driver/sync_frontend.h" |
| 34 #include "components/sync/driver/sync_prefs.h" | 33 #include "components/sync/driver/sync_prefs.h" |
| 35 #include "components/sync/engine/events/protocol_event.h" | 34 #include "components/sync/engine/events/protocol_event.h" |
| 35 #include "components/sync/engine/sync_string_conversions.h" |
| 36 | 36 |
| 37 // Helper macros to log with the syncer thread name; useful when there | 37 // Helper macros to log with the syncer thread name; useful when there |
| 38 // are multiple syncers involved. | 38 // are multiple syncers involved. |
| 39 | 39 |
| 40 #define SLOG(severity) LOG(severity) << name_ << ": " | 40 #define SLOG(severity) LOG(severity) << name_ << ": " |
| 41 | 41 |
| 42 #define SDVLOG(verbose_level) DVLOG(verbose_level) << name_ << ": " | 42 #define SDVLOG(verbose_level) DVLOG(verbose_level) << name_ << ": " |
| 43 | 43 |
| 44 using syncer::InternalComponentsFactory; | 44 using syncer::InternalComponentsFactory; |
| 45 | 45 |
| (...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) { | 850 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) { |
| 851 DCHECK(ui_thread_->BelongsToCurrentThread()); | 851 DCHECK(ui_thread_->BelongsToCurrentThread()); |
| 852 frontend_callback.Run(); | 852 frontend_callback.Run(); |
| 853 } | 853 } |
| 854 | 854 |
| 855 } // namespace browser_sync | 855 } // namespace browser_sync |
| 856 | 856 |
| 857 #undef SDVLOG | 857 #undef SDVLOG |
| 858 | 858 |
| 859 #undef SLOG | 859 #undef SLOG |
| OLD | NEW |