OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
16 #include "base/location.h" | 16 #include "base/location.h" |
17 #include "base/memory/memory_pressure_listener.h" | 17 #include "base/memory/memory_pressure_listener.h" |
18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
19 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
20 #include "base/observer_list.h" | 20 #include "base/observer_list.h" |
21 #include "base/strings/string16.h" | 21 #include "base/strings/string16.h" |
22 #include "base/time/time.h" | 22 #include "base/time/time.h" |
23 #include "base/timer/timer.h" | 23 #include "base/timer/timer.h" |
24 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 24 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
25 #include "chrome/browser/sync/backup_rollback_controller.h" | |
26 #include "chrome/browser/sync/glue/sync_backend_host.h" | 25 #include "chrome/browser/sync/glue/sync_backend_host.h" |
27 #include "chrome/browser/sync/sessions/sessions_sync_manager.h" | 26 #include "chrome/browser/sync/sessions/sessions_sync_manager.h" |
28 #include "chrome/browser/sync/startup_controller.h" | 27 #include "chrome/browser/sync/startup_controller.h" |
29 #include "components/keyed_service/core/keyed_service.h" | 28 #include "components/keyed_service/core/keyed_service.h" |
30 #include "components/signin/core/browser/signin_manager_base.h" | 29 #include "components/signin/core/browser/signin_manager_base.h" |
| 30 #include "components/sync_driver/backup_rollback_controller.h" |
31 #include "components/sync_driver/data_type_controller.h" | 31 #include "components/sync_driver/data_type_controller.h" |
32 #include "components/sync_driver/data_type_manager.h" | 32 #include "components/sync_driver/data_type_manager.h" |
33 #include "components/sync_driver/data_type_manager_observer.h" | 33 #include "components/sync_driver/data_type_manager_observer.h" |
34 #include "components/sync_driver/data_type_status_table.h" | 34 #include "components/sync_driver/data_type_status_table.h" |
35 #include "components/sync_driver/device_info_sync_service.h" | 35 #include "components/sync_driver/device_info_sync_service.h" |
36 #include "components/sync_driver/local_device_info_provider.h" | 36 #include "components/sync_driver/local_device_info_provider.h" |
37 #include "components/sync_driver/protocol_event_observer.h" | 37 #include "components/sync_driver/protocol_event_observer.h" |
38 #include "components/sync_driver/sync_frontend.h" | 38 #include "components/sync_driver/sync_frontend.h" |
39 #include "components/sync_driver/sync_prefs.h" | 39 #include "components/sync_driver/sync_prefs.h" |
40 #include "components/sync_driver/sync_service.h" | 40 #include "components/sync_driver/sync_service.h" |
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 scoped_ptr<sync_driver::LocalDeviceInfoProvider> local_device_; | 939 scoped_ptr<sync_driver::LocalDeviceInfoProvider> local_device_; |
940 | 940 |
941 // Locally owned SyncableService implementations. | 941 // Locally owned SyncableService implementations. |
942 scoped_ptr<browser_sync::SessionsSyncManager> sessions_sync_manager_; | 942 scoped_ptr<browser_sync::SessionsSyncManager> sessions_sync_manager_; |
943 scoped_ptr<sync_driver::DeviceInfoSyncService> device_info_sync_service_; | 943 scoped_ptr<sync_driver::DeviceInfoSyncService> device_info_sync_service_; |
944 | 944 |
945 scoped_ptr<syncer::NetworkResources> network_resources_; | 945 scoped_ptr<syncer::NetworkResources> network_resources_; |
946 | 946 |
947 scoped_ptr<browser_sync::StartupController> startup_controller_; | 947 scoped_ptr<browser_sync::StartupController> startup_controller_; |
948 | 948 |
949 scoped_ptr<browser_sync::BackupRollbackController> | 949 scoped_ptr<sync_driver::BackupRollbackController> backup_rollback_controller_; |
950 backup_rollback_controller_; | |
951 | 950 |
952 // Mode of current backend. | 951 // Mode of current backend. |
953 BackendMode backend_mode_; | 952 BackendMode backend_mode_; |
954 | 953 |
955 // Whether backup is needed before sync starts. | 954 // Whether backup is needed before sync starts. |
956 bool need_backup_; | 955 bool need_backup_; |
957 | 956 |
958 // Whether backup is finished. | 957 // Whether backup is finished. |
959 bool backup_finished_; | 958 bool backup_finished_; |
960 | 959 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1006 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; | 1005 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; |
1007 | 1006 |
1008 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1007 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
1009 }; | 1008 }; |
1010 | 1009 |
1011 bool ShouldShowActionOnUI( | 1010 bool ShouldShowActionOnUI( |
1012 const syncer::SyncProtocolError& error); | 1011 const syncer::SyncProtocolError& error); |
1013 | 1012 |
1014 | 1013 |
1015 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1014 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |