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/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/threading/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "components/invalidation/public/invalidation_service.h" | 14 #include "components/invalidation/public/invalidation_service.h" |
15 #include "components/invalidation/public/object_id_invalidation_map.h" | 15 #include "components/invalidation/public/object_id_invalidation_map.h" |
16 #include "components/signin/core/browser/signin_client.h" | 16 #include "components/signin/core/browser/signin_client.h" |
17 #include "components/sync/base/experiments.h" | 17 #include "components/sync/base/experiments.h" |
18 #include "components/sync/base/invalidation_helper.h" | 18 #include "components/sync/base/invalidation_helper.h" |
19 #include "components/sync/base/sync_prefs.h" | 19 #include "components/sync/base/sync_prefs.h" |
20 #include "components/sync/core/activation_context.h" | 20 #include "components/sync/core/activation_context.h" |
21 #include "components/sync/core/base_transaction.h" | |
22 #include "components/sync/core/internal_components_factory.h" | 21 #include "components/sync/core/internal_components_factory.h" |
23 #include "components/sync/core/internal_components_factory_impl.h" | 22 #include "components/sync/core/internal_components_factory_impl.h" |
24 #include "components/sync/core/sync_manager_factory.h" | 23 #include "components/sync/core/sync_manager_factory.h" |
25 #include "components/sync/driver/glue/sync_backend_host_core.h" | 24 #include "components/sync/driver/glue/sync_backend_host_core.h" |
26 #include "components/sync/driver/glue/sync_backend_registrar.h" | 25 #include "components/sync/driver/glue/sync_backend_registrar.h" |
27 #include "components/sync/driver/sync_client.h" | 26 #include "components/sync/driver/sync_client.h" |
28 #include "components/sync/driver/sync_driver_switches.h" | 27 #include "components/sync/driver/sync_driver_switches.h" |
29 #include "components/sync/driver/sync_frontend.h" | 28 #include "components/sync/driver/sync_frontend.h" |
30 #include "components/sync/engine/events/protocol_event.h" | 29 #include "components/sync/engine/events/protocol_event.h" |
31 #include "components/sync/engine/net/http_bridge.h" | 30 #include "components/sync/engine/net/http_bridge.h" |
32 #include "components/sync/engine/sync_string_conversions.h" | 31 #include "components/sync/engine/sync_string_conversions.h" |
| 32 #include "components/sync/syncable/base_transaction.h" |
33 | 33 |
34 // Helper macros to log with the syncer thread name; useful when there | 34 // Helper macros to log with the syncer thread name; useful when there |
35 // are multiple syncers involved. | 35 // are multiple syncers involved. |
36 | 36 |
37 #define SLOG(severity) LOG(severity) << name_ << ": " | 37 #define SLOG(severity) LOG(severity) << name_ << ": " |
38 | 38 |
39 #define SDVLOG(verbose_level) DVLOG(verbose_level) << name_ << ": " | 39 #define SDVLOG(verbose_level) DVLOG(verbose_level) << name_ << ": " |
40 | 40 |
41 namespace syncer { | 41 namespace syncer { |
42 | 42 |
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 const SyncManager::ClearServerDataCallback& frontend_callback) { | 816 const SyncManager::ClearServerDataCallback& frontend_callback) { |
817 DCHECK(ui_thread_->BelongsToCurrentThread()); | 817 DCHECK(ui_thread_->BelongsToCurrentThread()); |
818 frontend_callback.Run(); | 818 frontend_callback.Run(); |
819 } | 819 } |
820 | 820 |
821 } // namespace syncer | 821 } // namespace syncer |
822 | 822 |
823 #undef SDVLOG | 823 #undef SDVLOG |
824 | 824 |
825 #undef SLOG | 825 #undef SLOG |
OLD | NEW |