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 <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "chrome/browser/sync/invalidations/invalidator_storage.h" | 27 #include "chrome/browser/sync/invalidations/invalidator_storage.h" |
28 #include "chrome/browser/sync/profile_sync_service_observer.h" | 28 #include "chrome/browser/sync/profile_sync_service_observer.h" |
29 #include "chrome/browser/sync/sync_prefs.h" | 29 #include "chrome/browser/sync/sync_prefs.h" |
30 #include "chrome/common/net/gaia/google_service_auth_error.h" | 30 #include "chrome/common/net/gaia/google_service_auth_error.h" |
31 #include "content/public/browser/notification_observer.h" | 31 #include "content/public/browser/notification_observer.h" |
32 #include "content/public/browser/notification_registrar.h" | 32 #include "content/public/browser/notification_registrar.h" |
33 #include "content/public/browser/notification_types.h" | 33 #include "content/public/browser/notification_types.h" |
34 #include "googleurl/src/gurl.h" | 34 #include "googleurl/src/gurl.h" |
35 #include "sync/internal_api/public/base/model_type.h" | 35 #include "sync/internal_api/public/base/model_type.h" |
36 #include "sync/internal_api/public/engine/model_safe_worker.h" | 36 #include "sync/internal_api/public/engine/model_safe_worker.h" |
| 37 #include "sync/internal_api/public/sync_manager_factory.h" |
37 #include "sync/internal_api/public/util/experiments.h" | 38 #include "sync/internal_api/public/util/experiments.h" |
38 #include "sync/internal_api/public/util/unrecoverable_error_handler.h" | 39 #include "sync/internal_api/public/util/unrecoverable_error_handler.h" |
39 #include "sync/js/sync_js_controller.h" | 40 #include "sync/js/sync_js_controller.h" |
40 | 41 |
41 class Profile; | 42 class Profile; |
42 class ProfileSyncComponentsFactory; | 43 class ProfileSyncComponentsFactory; |
43 class SigninManager; | 44 class SigninManager; |
44 class SyncGlobalError; | 45 class SyncGlobalError; |
45 | 46 |
46 namespace browser_sync { | 47 namespace browser_sync { |
47 class BackendMigrator; | 48 class BackendMigrator; |
48 class ChangeProcessor; | 49 class ChangeProcessor; |
49 class DataTypeManager; | 50 class DataTypeManager; |
50 class JsController; | 51 class JsController; |
51 class SessionModelAssociator; | 52 class SessionModelAssociator; |
| 53 |
52 namespace sessions { class SyncSessionSnapshot; } | 54 namespace sessions { class SyncSessionSnapshot; } |
53 } | 55 } |
54 | 56 |
55 namespace syncer { | 57 namespace syncer { |
56 class BaseTransaction; | 58 class BaseTransaction; |
57 struct SyncCredentials; | 59 struct SyncCredentials; |
58 struct UserShare; | 60 struct UserShare; |
59 } | 61 } |
60 | 62 |
61 namespace sync_pb { | 63 namespace sync_pb { |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 | 787 |
786 browser_sync::DataTypeManager::ConfigureStatus configure_status_; | 788 browser_sync::DataTypeManager::ConfigureStatus configure_status_; |
787 | 789 |
788 // If |true|, there is setup UI visible so we should not start downloading | 790 // If |true|, there is setup UI visible so we should not start downloading |
789 // data types. | 791 // data types. |
790 bool setup_in_progress_; | 792 bool setup_in_progress_; |
791 | 793 |
792 // The set of currently enabled sync experiments. | 794 // The set of currently enabled sync experiments. |
793 syncer::Experiments current_experiments; | 795 syncer::Experiments current_experiments; |
794 | 796 |
| 797 // Factory the backend will use to build the SyncManager. |
| 798 syncer::SyncManagerFactory sync_manager_factory_; |
| 799 |
795 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 800 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
796 }; | 801 }; |
797 | 802 |
798 bool ShouldShowActionOnUI( | 803 bool ShouldShowActionOnUI( |
799 const syncer::SyncProtocolError& error); | 804 const syncer::SyncProtocolError& error); |
800 | 805 |
801 | 806 |
802 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 807 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |