| 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 COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ |
| 6 #define COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ | 6 #define COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <utility> | 11 #include <utility> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
| 16 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
| 17 #include "base/location.h" | 17 #include "base/location.h" |
| 18 #include "base/macros.h" | 18 #include "base/macros.h" |
| 19 #include "base/memory/memory_pressure_listener.h" | 19 #include "base/memory/memory_pressure_listener.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/threading/thread_checker.h" | 23 #include "base/threading/thread_checker.h" |
| 24 #include "base/time/time.h" | 24 #include "base/time/time.h" |
| 25 #include "base/timer/timer.h" | 25 #include "base/timer/timer.h" |
| 26 #include "build/build_config.h" | 26 #include "build/build_config.h" |
| 27 #include "components/keyed_service/core/keyed_service.h" | 27 #include "components/keyed_service/core/keyed_service.h" |
| 28 #include "components/signin/core/browser/gaia_cookie_manager_service.h" | 28 #include "components/signin/core/browser/gaia_cookie_manager_service.h" |
| 29 #include "components/signin/core/browser/signin_manager_base.h" | 29 #include "components/signin/core/browser/signin_manager_base.h" |
| 30 #include "components/sync/base/experiments.h" |
| 31 #include "components/sync/base/model_type.h" |
| 32 #include "components/sync/base/unrecoverable_error_handler.h" |
| 33 #include "components/sync/core/network_time_update_callback.h" |
| 34 #include "components/sync/core/shutdown_reason.h" |
| 35 #include "components/sync/core/sync_manager_factory.h" |
| 36 #include "components/sync/core/user_share.h" |
| 37 #include "components/sync/engine/model_safe_worker.h" |
| 38 #include "components/sync/js/sync_js_controller.h" |
| 30 #include "components/sync_driver/data_type_controller.h" | 39 #include "components/sync_driver/data_type_controller.h" |
| 31 #include "components/sync_driver/data_type_manager.h" | 40 #include "components/sync_driver/data_type_manager.h" |
| 32 #include "components/sync_driver/data_type_manager_observer.h" | 41 #include "components/sync_driver/data_type_manager_observer.h" |
| 33 #include "components/sync_driver/data_type_status_table.h" | 42 #include "components/sync_driver/data_type_status_table.h" |
| 34 #include "components/sync_driver/glue/sync_backend_host.h" | 43 #include "components/sync_driver/glue/sync_backend_host.h" |
| 35 #include "components/sync_driver/local_device_info_provider.h" | 44 #include "components/sync_driver/local_device_info_provider.h" |
| 36 #include "components/sync_driver/protocol_event_observer.h" | 45 #include "components/sync_driver/protocol_event_observer.h" |
| 37 #include "components/sync_driver/startup_controller.h" | 46 #include "components/sync_driver/startup_controller.h" |
| 38 #include "components/sync_driver/sync_client.h" | 47 #include "components/sync_driver/sync_client.h" |
| 39 #include "components/sync_driver/sync_frontend.h" | 48 #include "components/sync_driver/sync_frontend.h" |
| 40 #include "components/sync_driver/sync_prefs.h" | 49 #include "components/sync_driver/sync_prefs.h" |
| 41 #include "components/sync_driver/sync_service.h" | 50 #include "components/sync_driver/sync_service.h" |
| 42 #include "components/sync_driver/sync_stopped_reporter.h" | 51 #include "components/sync_driver/sync_stopped_reporter.h" |
| 43 #include "components/version_info/version_info.h" | 52 #include "components/version_info/version_info.h" |
| 44 #include "google_apis/gaia/google_service_auth_error.h" | 53 #include "google_apis/gaia/google_service_auth_error.h" |
| 45 #include "google_apis/gaia/oauth2_token_service.h" | 54 #include "google_apis/gaia/oauth2_token_service.h" |
| 46 #include "net/base/backoff_entry.h" | 55 #include "net/base/backoff_entry.h" |
| 47 #include "sync/internal_api/public/base/model_type.h" | |
| 48 #include "sync/internal_api/public/engine/model_safe_worker.h" | |
| 49 #include "sync/internal_api/public/network_time_update_callback.h" | |
| 50 #include "sync/internal_api/public/shutdown_reason.h" | |
| 51 #include "sync/internal_api/public/sync_manager_factory.h" | |
| 52 #include "sync/internal_api/public/user_share.h" | |
| 53 #include "sync/internal_api/public/util/experiments.h" | |
| 54 #include "sync/internal_api/public/util/unrecoverable_error_handler.h" | |
| 55 #include "sync/js/sync_js_controller.h" | |
| 56 #include "url/gurl.h" | 56 #include "url/gurl.h" |
| 57 | 57 |
| 58 class Profile; | 58 class Profile; |
| 59 class ProfileOAuth2TokenService; | 59 class ProfileOAuth2TokenService; |
| 60 class SigninManagerWrapper; | 60 class SigninManagerWrapper; |
| 61 class SyncErrorController; | 61 class SyncErrorController; |
| 62 class SyncTypePreferenceProvider; | 62 class SyncTypePreferenceProvider; |
| 63 | 63 |
| 64 namespace browser_sync { | 64 namespace browser_sync { |
| 65 class BackendMigrator; | 65 class BackendMigrator; |
| (...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1020 base::WeakPtrFactory<ProfileSyncService> weak_factory_; | 1020 base::WeakPtrFactory<ProfileSyncService> weak_factory_; |
| 1021 | 1021 |
| 1022 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1022 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 1023 }; | 1023 }; |
| 1024 | 1024 |
| 1025 bool ShouldShowActionOnUI( | 1025 bool ShouldShowActionOnUI( |
| 1026 const syncer::SyncProtocolError& error); | 1026 const syncer::SyncProtocolError& error); |
| 1027 | 1027 |
| 1028 | 1028 |
| 1029 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ | 1029 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |