| 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 "chrome/browser/sync/glue/sync_backend_host_impl.h" | 5 #include "chrome/browser/sync/glue/sync_backend_host_impl.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| 11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| 12 #include "chrome/browser/chrome_notification_types.h" | 12 #include "chrome/browser/chrome_notification_types.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/signin/chrome_signin_client_factory.h" | 14 #include "chrome/browser/signin/chrome_signin_client_factory.h" |
| 15 #include "chrome/browser/sync/glue/sync_backend_host_core.h" | 15 #include "chrome/browser/sync/glue/sync_backend_host_core.h" |
| 16 #include "chrome/browser/sync/glue/sync_backend_registrar.h" | 16 #include "chrome/browser/sync/glue/sync_backend_registrar.h" |
| 17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
| 18 #include "components/invalidation/public/invalidation_service.h" | 18 #include "components/invalidation/public/invalidation_service.h" |
| 19 #include "components/invalidation/public/object_id_invalidation_map.h" | 19 #include "components/invalidation/public/object_id_invalidation_map.h" |
| 20 #include "components/network_time/network_time_tracker.h" | 20 #include "components/network_time/network_time_tracker.h" |
| 21 #include "components/signin/core/browser/signin_client.h" | 21 #include "components/signin/core/browser/signin_client.h" |
| 22 #include "components/sync_driver/invalidation_helper.h" | |
| 23 #include "components/sync_driver/sync_driver_switches.h" | 22 #include "components/sync_driver/sync_driver_switches.h" |
| 24 #include "components/sync_driver/sync_frontend.h" | 23 #include "components/sync_driver/sync_frontend.h" |
| 25 #include "components/sync_driver/sync_prefs.h" | 24 #include "components/sync_driver/sync_prefs.h" |
| 26 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
| 27 #include "content/public/browser/notification_details.h" | 26 #include "content/public/browser/notification_details.h" |
| 28 #include "content/public/browser/notification_source.h" | 27 #include "content/public/browser/notification_source.h" |
| 29 #include "sync/internal_api/public/base_transaction.h" | 28 #include "sync/internal_api/public/base_transaction.h" |
| 30 #include "sync/internal_api/public/events/protocol_event.h" | 29 #include "sync/internal_api/public/events/protocol_event.h" |
| 31 #include "sync/internal_api/public/http_bridge.h" | 30 #include "sync/internal_api/public/http_bridge.h" |
| 32 #include "sync/internal_api/public/internal_components_factory.h" | 31 #include "sync/internal_api/public/internal_components_factory.h" |
| 33 #include "sync/internal_api/public/internal_components_factory_impl.h" | 32 #include "sync/internal_api/public/internal_components_factory_impl.h" |
| 34 #include "sync/internal_api/public/network_resources.h" | 33 #include "sync/internal_api/public/network_resources.h" |
| 35 #include "sync/internal_api/public/sync_manager.h" | 34 #include "sync/internal_api/public/sync_manager.h" |
| 36 #include "sync/internal_api/public/sync_manager_factory.h" | 35 #include "sync/internal_api/public/sync_manager_factory.h" |
| 37 #include "sync/internal_api/public/util/experiments.h" | 36 #include "sync/internal_api/public/util/experiments.h" |
| 38 #include "sync/internal_api/public/util/sync_string_conversions.h" | 37 #include "sync/internal_api/public/util/sync_string_conversions.h" |
| 38 #include "sync/util/invalidation_helper.h" |
| 39 | 39 |
| 40 // Helper macros to log with the syncer thread name; useful when there | 40 // Helper macros to log with the syncer thread name; useful when there |
| 41 // are multiple syncers involved. | 41 // are multiple syncers involved. |
| 42 | 42 |
| 43 #define SLOG(severity) LOG(severity) << name_ << ": " | 43 #define SLOG(severity) LOG(severity) << name_ << ": " |
| 44 | 44 |
| 45 #define SDVLOG(verbose_level) DVLOG(verbose_level) << name_ << ": " | 45 #define SDVLOG(verbose_level) DVLOG(verbose_level) << name_ << ": " |
| 46 | 46 |
| 47 using syncer::InternalComponentsFactory; | 47 using syncer::InternalComponentsFactory; |
| 48 | 48 |
| (...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 895 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) { | 895 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) { |
| 896 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 896 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
| 897 frontend_callback.Run(); | 897 frontend_callback.Run(); |
| 898 } | 898 } |
| 899 | 899 |
| 900 } // namespace browser_sync | 900 } // namespace browser_sync |
| 901 | 901 |
| 902 #undef SDVLOG | 902 #undef SDVLOG |
| 903 | 903 |
| 904 #undef SLOG | 904 #undef SLOG |
| OLD | NEW |