Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(887)

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_impl.cc

Issue 387733004: Move sync/notifier to components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (GN) Comment out dependency on internal target Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/logging.h" 8 #include "base/logging.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/sync/glue/sync_backend_host_core.h" 12 #include "chrome/browser/sync/glue/sync_backend_host_core.h"
13 #include "chrome/browser/sync/glue/sync_backend_registrar.h" 13 #include "chrome/browser/sync/glue/sync_backend_registrar.h"
14 #include "chrome/common/chrome_switches.h" 14 #include "chrome/common/chrome_switches.h"
15 #include "components/invalidation/invalidation_service.h" 15 #include "components/invalidation/invalidation_service.h"
16 #include "components/invalidation/object_id_invalidation_map.h"
16 #include "components/network_time/network_time_tracker.h" 17 #include "components/network_time/network_time_tracker.h"
17 #include "components/sync_driver/sync_frontend.h" 18 #include "components/sync_driver/sync_frontend.h"
18 #include "components/sync_driver/sync_prefs.h" 19 #include "components/sync_driver/sync_prefs.h"
19 #include "content/public/browser/browser_thread.h" 20 #include "content/public/browser/browser_thread.h"
20 #include "content/public/browser/notification_details.h" 21 #include "content/public/browser/notification_details.h"
21 #include "content/public/browser/notification_source.h" 22 #include "content/public/browser/notification_source.h"
22 #include "sync/internal_api/public/base_transaction.h" 23 #include "sync/internal_api/public/base_transaction.h"
23 #include "sync/internal_api/public/events/protocol_event.h" 24 #include "sync/internal_api/public/events/protocol_event.h"
24 #include "sync/internal_api/public/http_bridge.h" 25 #include "sync/internal_api/public/http_bridge.h"
25 #include "sync/internal_api/public/internal_components_factory.h" 26 #include "sync/internal_api/public/internal_components_factory.h"
26 #include "sync/internal_api/public/internal_components_factory_impl.h" 27 #include "sync/internal_api/public/internal_components_factory_impl.h"
27 #include "sync/internal_api/public/network_resources.h" 28 #include "sync/internal_api/public/network_resources.h"
28 #include "sync/internal_api/public/sync_manager.h" 29 #include "sync/internal_api/public/sync_manager.h"
29 #include "sync/internal_api/public/sync_manager_factory.h" 30 #include "sync/internal_api/public/sync_manager_factory.h"
30 #include "sync/internal_api/public/util/experiments.h" 31 #include "sync/internal_api/public/util/experiments.h"
31 #include "sync/internal_api/public/util/sync_string_conversions.h" 32 #include "sync/internal_api/public/util/sync_string_conversions.h"
32 #include "sync/notifier/object_id_invalidation_map.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 using syncer::InternalComponentsFactory; 41 using syncer::InternalComponentsFactory;
42 42
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 876
877 base::MessageLoop* SyncBackendHostImpl::GetSyncLoopForTesting() { 877 base::MessageLoop* SyncBackendHostImpl::GetSyncLoopForTesting() {
878 return registrar_->sync_thread()->message_loop(); 878 return registrar_->sync_thread()->message_loop();
879 } 879 }
880 880
881 } // namespace browser_sync 881 } // namespace browser_sync
882 882
883 #undef SDVLOG 883 #undef SDVLOG
884 884
885 #undef SLOG 885 #undef SLOG
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_impl.h ('k') | chrome/browser/sync/profile_sync_service_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698