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/scoped_vector.h" | 19 #include "base/memory/scoped_vector.h" |
20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
21 #include "base/observer_list.h" | 21 #include "base/observer_list.h" |
22 #include "base/strings/string16.h" | 22 #include "base/strings/string16.h" |
23 #include "base/time/time.h" | 23 #include "base/time/time.h" |
24 #include "base/timer/timer.h" | 24 #include "base/timer/timer.h" |
25 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 25 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
26 #include "chrome/browser/sync/backend_unrecoverable_error_handler.h" | 26 #include "chrome/browser/sync/backend_unrecoverable_error_handler.h" |
27 #include "chrome/browser/sync/backup_rollback_controller.h" | 27 #include "chrome/browser/sync/backup_rollback_controller.h" |
28 #include "chrome/browser/sync/glue/sync_backend_host.h" | 28 #include "chrome/browser/sync/glue/sync_backend_host.h" |
29 #include "chrome/browser/sync/protocol_event_observer.h" | |
30 #include "chrome/browser/sync/sessions/sessions_sync_manager.h" | 29 #include "chrome/browser/sync/sessions/sessions_sync_manager.h" |
31 #include "chrome/browser/sync/startup_controller.h" | 30 #include "chrome/browser/sync/startup_controller.h" |
32 #include "chrome/browser/sync/sync_stopped_reporter.h" | 31 #include "chrome/browser/sync/sync_stopped_reporter.h" |
33 #include "components/keyed_service/core/keyed_service.h" | 32 #include "components/keyed_service/core/keyed_service.h" |
34 #include "components/signin/core/browser/signin_manager_base.h" | 33 #include "components/signin/core/browser/signin_manager_base.h" |
35 #include "components/sync_driver/data_type_controller.h" | 34 #include "components/sync_driver/data_type_controller.h" |
36 #include "components/sync_driver/data_type_manager.h" | 35 #include "components/sync_driver/data_type_manager.h" |
37 #include "components/sync_driver/data_type_manager_observer.h" | 36 #include "components/sync_driver/data_type_manager_observer.h" |
38 #include "components/sync_driver/data_type_status_table.h" | 37 #include "components/sync_driver/data_type_status_table.h" |
39 #include "components/sync_driver/device_info_sync_service.h" | 38 #include "components/sync_driver/device_info_sync_service.h" |
40 #include "components/sync_driver/local_device_info_provider.h" | 39 #include "components/sync_driver/local_device_info_provider.h" |
41 #include "components/sync_driver/non_blocking_data_type_manager.h" | 40 #include "components/sync_driver/non_blocking_data_type_manager.h" |
| 41 #include "components/sync_driver/protocol_event_observer.h" |
42 #include "components/sync_driver/sync_frontend.h" | 42 #include "components/sync_driver/sync_frontend.h" |
43 #include "components/sync_driver/sync_prefs.h" | 43 #include "components/sync_driver/sync_prefs.h" |
44 #include "components/sync_driver/sync_service.h" | 44 #include "components/sync_driver/sync_service.h" |
45 #include "google_apis/gaia/google_service_auth_error.h" | 45 #include "google_apis/gaia/google_service_auth_error.h" |
46 #include "google_apis/gaia/oauth2_token_service.h" | 46 #include "google_apis/gaia/oauth2_token_service.h" |
47 #include "net/base/backoff_entry.h" | 47 #include "net/base/backoff_entry.h" |
48 #include "sync/internal_api/public/base/model_type.h" | 48 #include "sync/internal_api/public/base/model_type.h" |
49 #include "sync/internal_api/public/engine/model_safe_worker.h" | 49 #include "sync/internal_api/public/engine/model_safe_worker.h" |
50 #include "sync/internal_api/public/shutdown_reason.h" | 50 #include "sync/internal_api/public/shutdown_reason.h" |
51 #include "sync/internal_api/public/sync_manager_factory.h" | 51 #include "sync/internal_api/public/sync_manager_factory.h" |
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1088 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; | 1088 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; |
1089 | 1089 |
1090 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1090 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
1091 }; | 1091 }; |
1092 | 1092 |
1093 bool ShouldShowActionOnUI( | 1093 bool ShouldShowActionOnUI( |
1094 const syncer::SyncProtocolError& error); | 1094 const syncer::SyncProtocolError& error); |
1095 | 1095 |
1096 | 1096 |
1097 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1097 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |